/openbmc/linux/drivers/mfd/ |
H A D | ezx-pcap.c | 14 #include <linux/mfd/ezx-pcap.h> 55 static int ezx_pcap_putget(struct pcap_chip *pcap, u32 *data) in ezx_pcap_putget() argument 66 pcap->buf = *data; in ezx_pcap_putget() 67 t.tx_buf = (u8 *) &pcap->buf; in ezx_pcap_putget() 68 t.rx_buf = (u8 *) &pcap->buf; in ezx_pcap_putget() 69 status = spi_sync(pcap->spi, &m); in ezx_pcap_putget() 72 *data = pcap->buf; in ezx_pcap_putget() 77 int ezx_pcap_write(struct pcap_chip *pcap, u8 reg_num, u32 value) in ezx_pcap_write() argument 82 spin_lock_irqsave(&pcap->io_lock, flags); in ezx_pcap_write() 86 ret = ezx_pcap_putget(pcap, &value); in ezx_pcap_write() [all …]
|
/openbmc/linux/drivers/rtc/ |
H A D | rtc-pcap.c | 3 * pcap rtc code for Motorola EZX phones 14 #include <linux/mfd/ezx-pcap.h> 20 struct pcap_chip *pcap; member 29 if (irq == pcap_to_irq(pcap_rtc->pcap, PCAP_IRQ_1HZ)) in pcap_rtc_irq() 31 else if (irq == pcap_to_irq(pcap_rtc->pcap, PCAP_IRQ_TODA)) in pcap_rtc_irq() 48 ezx_pcap_read(pcap_rtc->pcap, PCAP_REG_RTC_TODA, &tod); in pcap_rtc_read_alarm() 51 ezx_pcap_read(pcap_rtc->pcap, PCAP_REG_RTC_DAYA, &days); in pcap_rtc_read_alarm() 66 ezx_pcap_write(pcap_rtc->pcap, PCAP_REG_RTC_TODA, tod); in pcap_rtc_set_alarm() 69 ezx_pcap_write(pcap_rtc->pcap, PCAP_REG_RTC_DAYA, days); in pcap_rtc_set_alarm() 80 ezx_pcap_read(pcap_rtc->pcap, PCAP_REG_RTC_TOD, &tod); in pcap_rtc_read_time() [all …]
|
/openbmc/linux/drivers/input/misc/ |
H A D | pcap_keys.c | 3 * Input driver for PCAP events: 14 #include <linux/mfd/ezx-pcap.h> 18 struct pcap_chip *pcap; member 26 int pirq = irq_to_pcap(pcap_keys->pcap, irq); in pcap_keys_handler() 29 ezx_pcap_read(pcap_keys->pcap, PCAP_REG_PSTAT, &pstat); in pcap_keys_handler() 56 pcap_keys->pcap = dev_get_drvdata(pdev->dev.parent); in pcap_keys_probe() 66 input_dev->phys = "pcap-keys/input0"; in pcap_keys_probe() 78 err = request_irq(pcap_to_irq(pcap_keys->pcap, PCAP_IRQ_ONOFF), in pcap_keys_probe() 83 err = request_irq(pcap_to_irq(pcap_keys->pcap, PCAP_IRQ_MIC), in pcap_keys_probe() 91 free_irq(pcap_to_irq(pcap_keys->pcap, PCAP_IRQ_ONOFF), pcap_keys); in pcap_keys_probe() [all …]
|
/openbmc/openbmc-tools/dbus-pcap/ |
H A D | README.md | 1 # dbus-pcap: A tool to analyse D-Bus traffic captures 3 `dbus-pcap` is a tool to slice, dice and display captures of D-Bus traffic 4 captured into a the standard `pcap` packet container. 9 busctl capture > /tmp/dbus.pcap 15 $ ./dbus-pcap --help 16 usage: dbus-pcap [-h] [--json] [--no-track-calls] file [expressions [expressions ...]] 19 file The pcap file 33 $ ./dbus-pcap dbus.pcap | head -n 3 45 $ ./dbus-pcap --json | head -n 2 46 $ dbus-pcap --json dbus.pcap | head [all …]
|
/openbmc/linux/arch/um/drivers/ |
H A D | pcap_user.c | 7 #include <pcap.h> 31 pri->pcap = p; in pcap_user_init() 41 if (pri->pcap == NULL) in pcap_user_open() 58 err = pcap_compile(pri->pcap, in pcap_user_open() 63 "'%s'\n", pcap_geterr(pri->pcap)); in pcap_user_open() 67 err = pcap_setfilter(pri->pcap, pri->compiled); in pcap_user_open() 70 "failed - '%s'\n", pcap_geterr(pri->pcap)); in pcap_user_open() 75 return PCAP_FD(pri->pcap); in pcap_user_open() 89 if (pri->pcap != NULL) in pcap_remove() 90 pcap_close(pri->pcap); in pcap_remove() [all …]
|
H A D | Makefile | 6 # pcap is broken in 2.5 because kbuild doesn't allow pcap.a to be linked 7 # in to pcap.o 29 $(obj)/pcap.o: $(obj)/pcap_kern.o $(obj)/pcap_user.o 40 #targets += $(obj)/pcap.o 52 obj-$(CONFIG_UML_NET_PCAP) += pcap.o
|
/openbmc/openpower-occ-control/ |
H A D | powercap.cpp | 227 uint32_t PowerCap::getOccInput(uint32_t pcap, bool pcapEnabled) in getOccInput() argument 231 // Pcap disabled, return 0 to indicate disabled in getOccInput() 235 // If pcap is not disabled then just return the pcap with the derating in getOccInput() 237 return ((static_cast<uint64_t>(pcap) * PS_DERATING_FACTOR) / 100); in getOccInput() 242 utils::PropertyValue pcap{}; in getPcap() local 245 pcap = utils::getProperty(PCAP_PATH, PCAP_INTERFACE, POWER_CAP_PROP); in getPcap() 247 return std::get<uint32_t>(pcap); in getPcap() 286 // Search for pcap file based on the supplied expr in getPcapFilename() 389 uint32_t pcap = 0; in pcapChanged() local 401 pcap = std::get<uint32_t>(value); in pcapChanged() [all …]
|
H A D | powercap.hpp | 160 * @param[in] pcap - Current user power cap setting (input/AC power) 163 * @return The value to write to the occ user pcap 165 uint32_t getOccInput(uint32_t pcap, bool pcapEnabled); 174 /** @brief Callback for pcap setting changes 178 * @param[in] msg - Data associated with pcap change signal 185 * @return Power cap, 0 on failure to indicate no pcap 222 /** @brief Used to subscribe to dbus pcap property changes **/
|
/openbmc/linux/drivers/input/touchscreen/ |
H A D | pcap_ts.c | 18 #include <linux/mfd/ezx-pcap.h> 21 struct pcap_chip *pcap; member 90 pcap_set_ts_bits(pcap_ts->pcap, in pcap_ts_work() 99 pcap_adc_async(pcap_ts->pcap, PCAP_ADC_BANK_1, 0, ch, in pcap_ts_work() 131 pcap_set_ts_bits(pcap_ts->pcap, in pcap_ts_close() 145 pcap_ts->pcap = dev_get_drvdata(pdev->dev.parent); in pcap_ts_probe() 155 pcap_set_ts_bits(pcap_ts->pcap, in pcap_ts_probe() 161 input_dev->name = "pcap-touchscreen"; in pcap_ts_probe() 182 err = request_irq(pcap_to_irq(pcap_ts->pcap, PCAP_IRQ_TS), in pcap_ts_probe() 204 free_irq(pcap_to_irq(pcap_ts->pcap, PCAP_IRQ_TS), pcap_ts); in pcap_ts_remove() [all …]
|
/openbmc/linux/drivers/regulator/ |
H A D | pcap-regulator.c | 15 #include <linux/mfd/ezx-pcap.h> 145 void *pcap = rdev_get_drvdata(rdev); in pcap_regulator_set_voltage_sel() local 151 return ezx_pcap_set_bits(pcap, vreg->reg, in pcap_regulator_set_voltage_sel() 159 void *pcap = rdev_get_drvdata(rdev); in pcap_regulator_get_voltage_sel() local 165 ezx_pcap_read(pcap, vreg->reg, &tmp); in pcap_regulator_get_voltage_sel() 173 void *pcap = rdev_get_drvdata(rdev); in pcap_regulator_enable() local 178 return ezx_pcap_set_bits(pcap, vreg->reg, 1 << vreg->en, 1 << vreg->en); in pcap_regulator_enable() 184 void *pcap = rdev_get_drvdata(rdev); in pcap_regulator_disable() local 189 return ezx_pcap_set_bits(pcap, vreg->reg, 1 << vreg->en, 0); in pcap_regulator_disable() 195 void *pcap = rdev_get_drvdata(rdev); in pcap_regulator_is_enabled() local [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/fpga/ |
H A D | xlnx,zynqmp-pcap-fpga.yaml | 4 $id: http://devicetree.org/schemas/fpga/xlnx,zynqmp-pcap-fpga.yaml# 14 The ZynqMP SoC uses the PCAP (Processor Configuration Port) to 20 const: xlnx,zynqmp-pcap-fpga 31 zynqmp_pcap: pcap { 32 compatible = "xlnx,zynqmp-pcap-fpga";
|
/openbmc/linux/drivers/net/wireless/ath/ath9k/ |
H A D | hw.c | 1546 struct ath9k_hw_capabilities *pCap = &ah->caps; in ath9k_hw_channel_change() local 1552 if (pCap->hw_caps & ATH9K_HW_CAP_FCC_BAND_SWITCH) { in ath9k_hw_channel_change() 1790 struct ath9k_hw_capabilities *pCap = &ah->caps; in ath9k_hw_do_fastcc() local 1812 if (!(pCap->hw_caps & ATH9K_HW_CAP_FCC_BAND_SWITCH) && in ath9k_hw_do_fastcc() 2140 struct ath9k_hw_capabilities *pCap = &ah->caps; in ath9k_set_power_network_sleep() local 2144 if (!(pCap->hw_caps & ATH9K_HW_CAP_AUTOSLEEP)) { in ath9k_set_power_network_sleep() 2325 struct ath9k_hw_capabilities *pCap = &ah->caps; in ath9k_hw_set_sta_beacon_timers() local 2367 if (pCap->hw_caps & ATH9K_HW_CAP_AUTOSLEEP) in ath9k_hw_set_sta_beacon_timers() 2431 struct ath9k_hw_capabilities *pCap = &ah->caps; in ath9k_gpio_cap_init() local 2434 pCap->num_gpio_pins = AR9271_NUM_GPIO; in ath9k_gpio_cap_init() [all …]
|
H A D | ar9002_mac.c | 37 struct ath9k_hw_capabilities *pCap = &ah->caps; in ar9002_hw_get_isr() local 81 if (!(pCap->hw_caps & ATH9K_HW_CAP_RAC_SUPPORTED)) { in ar9002_hw_get_isr() 87 if (pCap->hw_caps & ATH9K_HW_CAP_RAC_SUPPORTED) in ar9002_hw_get_isr() 108 if (pCap->hw_caps & ATH9K_HW_CAP_RAC_SUPPORTED) { in ar9002_hw_get_isr() 140 if (pCap->hw_caps & ATH9K_HW_CAP_RAC_SUPPORTED) { in ar9002_hw_get_isr() 156 !(pCap->hw_caps & ATH9K_HW_CAP_AUTOSLEEP)) in ar9002_hw_get_isr() 159 if (!(pCap->hw_caps & ATH9K_HW_CAP_RAC_SUPPORTED)) { in ar9002_hw_get_isr() 165 if (!(pCap->hw_caps & ATH9K_HW_CAP_RAC_SUPPORTED)) { in ar9002_hw_get_isr()
|
/openbmc/openbmc-tools/dbus-vis/ |
H A D | initialization.js | 73 …sercontent.com/openbmc/openbmc-tools/08ce0a5bad2b5c970af567c2e9888d444afe3946/dbus-pcap/dbus-pcap'; 76 const path = 'dbus-pcap'; 81 alert("dbus-pcap download complete!"); 112 const dbus_pcap = '../dbus-pcap/dbus-pcap'; 114 if (fs.existsSync('dbus-pcap')) { 117 fs.symlinkSync(dbus_pcap, './dbus-pcap'); 142 msg += 'dbus-pcap found, md5sum: ' + 143 md5File.sync('dbus-pcap');
|
H A D | dbus_pcap_loader.js | 12 // 1. Launch "linecount.py" to get the total packet count in the PCAP file for 14 // 2. Launch "dbus-pcap" to get the timestamps of each DBus message 15 // 3. Launch "dbus-pcap" to get the JSON representation of each DBus message 18 // First try to parse using dbus-pcap 20 ShowBlocker('Determining the number of packets in the pcap file ...'); 30 ShowBlocker('Running dbus-pcap (Pass 1/2, packet timestamps) ...'); 32 //spawn('python3', ['dbus-pcap', file_name, '--json', '--progress']); 33 spawn('python3', ['dbus-pcap', file_name]); 59 …ShowBlocker('Running dbus-pcap (Pass 1/2, packet timestamps): ' + count1 + '/' + num_packets + ' (… 69 ShowBlocker('Running dbus-pcap (Pass 2/2, packet contents) ...'); [all …]
|
H A D | index.html | 81 <li>DBus pcap file</li> 88 dbus-pcap status goes here 91 …The <b>dbus-pcap</b> script is not found; dbus-vis needs <b>dbus-pcap</b> for parsing PCAP files.<… 92 Click to down <b>dbus-pcap</b> from: <br/> 93 …nt.com/openbmc/openbmc-tools/08ce0a5bad2b5c970af567c2e9888d444afe3946/dbus-pcap/dbus-pcap<br/><br/> 97 …The <b>scapy</b> Python module is not installed. dbus-vis depends on dbus-pcap, which in turn depe…
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | drop_monitor_tests.sh | 79 timeout 5 dwdump -o sw -w ${dir}/packets.pcap 80 (( $(tshark -r ${dir}/packets.pcap \ 84 rm ${dir}/packets.pcap 87 timeout 5 dwdump -o sw -w ${dir}/packets.pcap 88 (( $(tshark -r ${dir}/packets.pcap \ 107 timeout 5 dwdump -o hw -w ${dir}/packets.pcap 108 (( $(tshark -r ${dir}/packets.pcap \ 113 rm ${dir}/packets.pcap 116 timeout 5 dwdump -o hw -w ${dir}/packets.pcap 117 (( $(tshark -r ${dir}/packets.pcap \
|
/openbmc/libmctp/utils/ |
H A D | mctp-demux-daemon.c | 81 } pcap; member 409 if (ctx->pcap.socket.path) in client_process_recv() 410 capture_socket(ctx->pcap.socket.dumper, ctx->buf, rc, in client_process_recv() 600 ctx->pcap.binding.path = NULL; in main() 601 ctx->pcap.socket.path = NULL; in main() 609 ctx->pcap.binding.path = optarg; in main() 612 ctx->pcap.socket.path = optarg; in main() 649 if (ctx->pcap.binding.path || ctx->pcap.socket.path) { in main() 656 if (ctx->pcap.binding.path) { in main() 657 rc = capture_prepare(&ctx->pcap.binding); in main() [all …]
|
H A D | mctp-capture.h | 16 #include <pcap/pcap.h> 27 pcap_t *pcap; member
|
H A D | mctp-capture.c | 8 #include <pcap/sll.h> 33 if (!(cap->pcap = pcap_open_dead(CAPTURE_LINKTYPE_LINUX_SLL2, in capture_prepare() 38 if (!(cap->dumper = pcap_dump_open(cap->pcap, cap->path))) { in capture_prepare() 50 pcap_close(cap->pcap); in capture_close()
|
/openbmc/linux/arch/powerpc/platforms/powernv/ |
H A D | opal-powercap.c | 25 static struct pcap { struct 36 u32 pcap; in powercap_show() argument 49 ret = opal_get_powercap(pcap_attr->handle, token, (u32 *)__pa(&pcap)); in powercap_show() 60 ret = sprintf(buf, "%u\n", be32_to_cpu(pcap)); in powercap_show() 66 ret = sprintf(buf, "%u\n", be32_to_cpu(pcap)); in powercap_show() 88 u32 pcap; in powercap_store() local 91 ret = kstrtoint(buf, 0, &pcap); in powercap_store() 105 ret = opal_set_powercap(pcap_attr->handle, token, pcap); in powercap_store()
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-security/nmap/ |
H A D | nmap_7.95.bb | 18 PACKAGECONFIG ?= "pcre ncat nping pcap" 20 PACKAGECONFIG[pcap] = "--with-pcap=linux, --without-pcap, libpcap, libpcap"
|
/openbmc/openbmc/poky/meta/recipes-connectivity/libpcap/ |
H A D | libpcap_1.10.5.bb | 10 file://pcap.h;beginline=1;endline=32;md5=39af3510e011f34b8872f120b1dc31d2" 18 BINCONFIG = "${bindir}/pcap-config" 24 --with-pcap=linux \
|
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-filter/ulogd2/ |
H A D | ulogd2_2.0.8.bb | 24 PACKAGECONFIG ?= "dbi json nfacct nfct nflog pcap sqlite3 ulog" 32 PACKAGECONFIG[pcap] = "--enable-pcap,--disable-pcap,libpcap"
|
/openbmc/linux/drivers/fpga/ |
H A D | zynq-fpga.c | 63 /* Enable PCAP for PR */ 65 /* Enable PCAP */ 73 /* Internal PCAP loopback */ 86 /* DMA and PCAP cmd done */ 103 /* Signal this is the last DMA transfer, wait for the AXI and PCAP before 175 /* The last transfer waits for the PCAP to finish too, in zynq_step_dma() 203 /* The last transfer changes to DMA & PCAP mode since we do in zynq_step_dma() 205 * the PCAP. in zynq_step_dma() 346 * - enable PCAP interface in zynq_fpga_ops_write_init() 370 /* ensure internal PCAP loopback is disabled */ in zynq_fpga_ops_write_init()
|