Home
last modified time | relevance | path

Searched full:pcap (Results 1 – 25 of 59) sorted by relevance

123

/linux/drivers/mfd/
H A Dezx-pcap.c14 #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 …]
/linux/drivers/rtc/
H A Drtc-pcap.c3 * 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 …]
/linux/drivers/input/misc/
H A Dpcap_keys.c3 * 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 …]
/linux/drivers/input/touchscreen/
H A Dpcap_ts.c18 #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 …]
/linux/drivers/regulator/
H A Dpcap-regulator.c15 #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 …]
/linux/tools/testing/selftests/bpf/
H A Dnetwork_helpers.c33 /* Prevent pcap.h from including pcap/bpf.h and causing conflicts */
35 #include <pcap/pcap.h>
36 #include <pcap/dlt.h>
726 pcap_t *pcap; member
892 pcap_t *pcap = ctx->pcap; in traffic_monitor_thread() local
910 log_err("Fail to select on pcap fd and wake fd"); in traffic_monitor_thread()
914 /* This instance of pcap is non-blocking */ in traffic_monitor_thread()
915 packet = pcap_next(pcap, &header); in traffic_monitor_thread()
965 /* Prepare the pcap handle to capture packets.
967 * This pcap is non-blocking and immediate mode is enabled to receive
[all …]
/linux/drivers/net/wireless/ath/ath9k/
H A Dhw.c1546 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 Dar9002_mac.c37 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()
H A Dar9003_mac.c188 struct ath9k_hw_capabilities *pCap = &ah->caps; in ar9003_hw_get_isr() local
234 if (!(pCap->hw_caps & ATH9K_HW_CAP_RAC_SUPPORTED)) { in ar9003_hw_get_isr()
240 if ((pCap->hw_caps & ATH9K_HW_CAP_RAC_SUPPORTED)) in ar9003_hw_get_isr()
267 if (!(pCap->hw_caps & ATH9K_HW_CAP_RAC_SUPPORTED)) { in ar9003_hw_get_isr()
282 if (pCap->hw_caps & ATH9K_HW_CAP_RAC_SUPPORTED) in ar9003_hw_get_isr()
296 if (!(pCap->hw_caps & ATH9K_HW_CAP_RAC_SUPPORTED)) { in ar9003_hw_get_isr()
305 if (!(pCap->hw_caps & ATH9K_HW_CAP_RAC_SUPPORTED)) { in ar9003_hw_get_isr()
/linux/tools/testing/selftests/net/
H A Ddrop_monitor_tests.sh73 timeout 5 dwdump -o sw -w ${dir}/packets.pcap
74 (( $(tshark -r ${dir}/packets.pcap \
78 rm ${dir}/packets.pcap
81 timeout 5 dwdump -o sw -w ${dir}/packets.pcap
82 (( $(tshark -r ${dir}/packets.pcap \
101 timeout 5 dwdump -o hw -w ${dir}/packets.pcap
102 (( $(tshark -r ${dir}/packets.pcap \
107 rm ${dir}/packets.pcap
110 timeout 5 dwdump -o hw -w ${dir}/packets.pcap
111 (( $(tshark -r ${dir}/packets.pcap \
[all...]
/linux/Documentation/devicetree/bindings/fpga/
H A Dxlnx,zynqmp-pcap-fpga.yaml4 $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";
/linux/arch/powerpc/platforms/powernv/
H A Dopal-powercap.c25 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()
/linux/Documentation/devicetree/bindings/firmware/xilinx/
H A Dxlnx,zynqmp-firmware.yaml71 pcap:
72 $ref: /schemas/fpga/xlnx,zynqmp-pcap-fpga.yaml
73 description: The ZynqMP SoC uses the PCAP (Processor Configuration Port) to
136 pcap {
137 compatible = "xlnx,zynqmp-pcap-fpga";
/linux/arch/um/drivers/
H A DMakefile6 # pcap is broken in 2.5 because kbuild doesn't allow pcap.a to be linked
7 # in to pcap.o
35 #targets += $(obj)/pcap.o
/linux/tools/testing/selftests/net/rds/
H A Dtest.py123 pcap = logdir+'/'+net+'.pcap' variable
124 subprocess.check_call(['touch', pcap])
125 user = getpwuid(stat(pcap).st_uid).pw_name
126 ip(f"netns exec {net} /usr/sbin/tcpdump -Z {user} -i any -w {pcap}")
/linux/tools/bpf/
H A Dbpf_dbg.c6 * and allows for single stepping through selected packets from a pcap
22 * 3) > load pcap foo.pcap
28 * 6) > select 3 (`run` etc will start from the 3rd packet in the pcap)
911 rl_printf("no pcap file loaded!\n"); in pcap_loaded()
951 rl_printf("cannot open pcap [%s]!\n", strerror(errno)); in try_load_pcap()
957 rl_printf("cannot fstat pcap file!\n"); in try_load_pcap()
962 rl_printf("not a regular pcap file, duh!\n"); in try_load_pcap()
968 rl_printf("pcap file too small!\n"); in try_load_pcap()
981 rl_printf("wrong pcap magic!\n"); in try_load_pcap()
1080 } else if (matches(subcmd, "pcap") == 0) { in cmd_load()
[all …]
/linux/Documentation/networking/
H A Dfilter.rst397 for testing BPF filters against given pcap files, single stepping through the
398 BPF code on the pcap's packets and to do BPF machine register dumps.
423 * load pcap foo.pcap
425 Loads standard tcpdump pcap file.
430 Runs through all packets from a pcap to account how many passes and fails
467 will walk through the pcap file continuing from the current packet and
480 -- packet dump -- <-- Current packet from pcap (hex)
503 Selects a given packet from the pcap file to continue from. Thus, on
H A Dsnmp_counter.rst1655 nstatuser@nstat-a:~$ sudo tcpdump -c 1 -w /tmp/syn.pcap port 9000
1665 offload for the TCP checksum, so the checksum in the /tmp/syn.pcap
1668 nstatuser@nstat-a:~$ tcprewrite --infile=/tmp/syn.pcap --outfile=/tmp/syn_fixcsum.pcap --fixcsum
1682 nstatuser@nstat-a:~$ for i in {1..3}; do sudo tcpreplay -i ens3 /tmp/syn_fixcsum.pcap; done
1702 nstatuser@nstat-a:~$ sudo tcpdump -w /tmp/paws_pre.pcap -c 1 port 9000
1713 nstatuser@nstat-a:~$ tcprewrite --infile /tmp/paws_pre.pcap --outfile /tmp/paws.pcap --fixcsum
1717 nstatuser@nstat-a:~$ for i in {1..2}; do sudo tcpreplay -i ens3 /tmp/paws.pcap; done
1758 nstatuser@nstat-a:~$ sudo tcpdump -w /tmp/seq_pre.pcap -c 1 dst port 9001
1780 …nstatuser@nstat-a:~$ tcprewrite --infile /tmp/seq_pre.pcap --outfile /tmp/seq.pcap -r 9001:9000 -r…
1782 Now the /tmp/seq.pcap is the packet we need. Send it to nstat-b::
[all …]
/linux/Documentation/devicetree/bindings/clock/
H A Dzynq-7000.txt53 12: pcap
98 "dci", "lqspi", "smc", "pcap", "gem0", "gem1",
/linux/tools/testing/selftests/net/mptcp/
H A D.gitignore6 *.pcap
H A DMakefile16 EXTRA_CLEAN := *.pcap
H A Dsimult_flows.sh149 ip netns exec ${ns3} tcpdump ${capopt} -w "${capfile}-listener.pcap" >> "${capout}" 2>&1 &
152 ip netns exec ${ns1} tcpdump ${capopt} -w "${capfile}-connector.pcap" >> "${capout}" 2>&1 &
/linux/include/linux/mfd/
H A Dezx-pcap.h50 /* registers accessible by both pcap ports */
72 /* registers accessible by pcap port 1 only (a1200, e2 & e6) */
/linux/include/dt-bindings/clock/
H A Dxlnx-zynqmp-clk.h53 #define PCAP 41 macro
/linux/Documentation/ABI/testing/
H A Dsysfs-driver-zynqmp-fpga1 What: /sys/bus/platform/drivers/zynqmp_fpga_manager/firmware:zynqmp-firmware:pcap/status

123