Searched refs:packets (Results 1 - 25 of 301) sorted by relevance

1234567891011>>

/linux-master/sound/firewire/
H A Dpackets-buffer.c3 * helpers for managing a buffer for many packets
11 #include "packets-buffer.h"
14 * iso_packets_buffer_init - allocates the memory for packets
17 * @count: the number of packets
30 b->packets = kmalloc_array(count, sizeof(*b->packets), GFP_KERNEL);
31 if (!b->packets) {
53 b->packets[i].buffer = p + offset_in_page;
54 b->packets[i].offset = page_index * PAGE_SIZE + offset_in_page;
60 kfree(b->packets);
[all...]
H A Dpackets-buffer.h9 * struct iso_packets_buffer - manages a buffer for many packets
10 * @iso_buffer: the memory containing the packets
11 * @packets: an array, with each element pointing to one packet
18 } *packets; member in struct:iso_packets_buffer
H A DMakefile5 snd-firewire-lib-objs := lib.o iso-resources.o packets-buffer.o \
/linux-master/tools/testing/selftests/bpf/
H A Dnetcnt_common.h25 __u64 packets; member in struct:percpu_net_cnt::__anon5156
38 __u64 packets; member in struct:net_cnt::__anon5157
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dnetcnt.c17 unsigned long packets; local
57 /* Some packets can be still in per-cpu cache, but not more than
60 packets = netcnt.packets;
63 ASSERT_LE(percpu_netcnt[cpu].packets, MAX_PERCPU_PACKETS, "MAX_PERCPU_PACKETS");
65 packets += percpu_netcnt[cpu].packets;
69 /* No packets should be lost */
70 ASSERT_GE(packets, 10000, "packets");
[all...]
/linux-master/tools/testing/selftests/bpf/progs/
H A Dnetcnt_prog.c36 percpu_cnt->packets++;
39 if (percpu_cnt->packets > MAX_PERCPU_PACKETS) {
40 __sync_fetch_and_add(&cnt->packets,
41 percpu_cnt->packets);
42 percpu_cnt->packets = 0;
62 percpu_cnt->prev_packets = cnt->packets;
/linux-master/drivers/net/ethernet/marvell/prestera/
H A Dprestera_counter.h10 u64 packets; member in struct:prestera_counter_stats
28 u32 counter_id, u64 *packets, u64 *bytes);
/linux-master/drivers/input/joystick/iforce/
H A DMakefile9 iforce-y := iforce-ff.o iforce-main.o iforce-packets.o
/linux-master/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
[all...]
H A Dudpgso_bench_rx.c53 static unsigned long packets, bytes; variable
181 packets++;
278 packets++;
280 if (cfg_expected_pkt_nr && packets >= cfg_expected_pkt_nr)
379 if (packets)
383 bytes >> 20, packets);
384 bytes = packets = 0;
392 if (cfg_expected_pkt_nr && (packets != cfg_expected_pkt_nr))
394 packets, cfg_expected_pkt_nr);
/linux-master/net/netfilter/
H A Dnft_counter.c21 s64 packets; member in struct:nft_counter
44 this_cpu->packets++;
72 this_cpu->packets =
113 this_cpu->packets -= total->packets;
123 u64 bytes, packets; local
134 packets = this_cpu->packets;
138 total->packets += packets;
[all...]
H A Dxt_connbytes.c16 MODULE_DESCRIPTION("Xtables: Number of packets/bytes per connection matching");
45 what = atomic64_read(&counters[IP_CT_DIR_ORIGINAL].packets);
48 what = atomic64_read(&counters[IP_CT_DIR_REPLY].packets);
51 what = atomic64_read(&counters[IP_CT_DIR_ORIGINAL].packets);
52 what += atomic64_read(&counters[IP_CT_DIR_REPLY].packets);
74 pkts = atomic64_read(&counters[IP_CT_DIR_ORIGINAL].packets);
78 pkts = atomic64_read(&counters[IP_CT_DIR_REPLY].packets);
83 pkts = atomic64_read(&counters[IP_CT_DIR_ORIGINAL].packets) +
84 atomic64_read(&counters[IP_CT_DIR_REPLY].packets);
/linux-master/net/core/
H A Dgen_stats.c121 u64_stats_set(&b->packets, 0);
135 u64 bytes, packets; local
140 packets = u64_stats_read(&bcpu->packets);
144 t_packets += packets;
155 u64 packets = 0; local
167 packets = u64_stats_read(&b->packets);
170 _bstats_update(bstats, bytes, packets);
187 u64 bytes, packets; local
[all...]
/linux-master/drivers/vdpa/mlx5/net/
H A Ddebug.c56 u64 packets; local
60 err = mlx5_fc_query(counter->mdev, counter->counter, &packets, &bytes);
64 seq_printf(file, "0x%llx\n", packets);
71 u64 packets; local
75 err = mlx5_fc_query(counter->mdev, counter->counter, &packets, &bytes);
83 DEFINE_SHOW_ATTRIBUTE(packets); variable
89 debugfs_create_file("packets", 0444, parent, counter,
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/esw/
H A Dbridge_debugfs.c44 u64 packets, bytes, lastuse; local
53 mlx5_fc_query_cached_raw(entry->ingress_counter, &bytes, &packets, &lastuse);
55 entry->dev->name, entry->key.addr, entry->key.vid, packets, bytes, lastuse,
/linux-master/include/uapi/linux/
H A Dgen_stats.h24 * @packets: number of seen packets
28 __u32 packets; member in struct:gnet_stats_basic
55 * @drops: number of dropped packets
/linux-master/include/linux/
H A Ddim.h54 * @pkt_ctr: Number of packets
78 int ppms; /* packets per msec */
247 * @packets: number of packets to set
252 dim_update_sample(u16 event_ctr, u64 packets, u64 bytes, struct dim_sample *s) argument
255 s->pkt_ctr = packets;
264 * @packets: number of packets to set
270 dim_update_sample_with_comps(u16 event_ctr, u64 packets, u64 bytes, u64 comps, argument
273 dim_update_sample(event_ctr, packets, byte
[all...]
/linux-master/tools/testing/selftests/drivers/net/mlxsw/spectrum/
H A Dvxlan_flooding_ipv6.sh6 # verifies that packets are correctly flooded in various cases such as deletion
202 local packets=("$@")
203 local num_remotes=${#packets[@]}
207 tc_check_packets "dev $rp2 ingress" $i ${packets[i - 1]}
208 check_err $? "remote $i - did not get expected number of packets"
215 # 'packets' will store how many packets are expected to be received
217 declare -a packets=(1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1)
224 # packets were flooded to each remote VTEP
230 flooding_check_packets "${packets[
[all...]
/linux-master/include/uapi/linux/netfilter/
H A Dxt_set.h70 struct ip_set_counter_match0 packets; member in struct:xt_set_info_match_v3
89 struct ip_set_counter_match packets; member in struct:xt_set_info_match_v4
/linux-master/samples/bpf/
H A Dsockex2_user.c12 __u64 packets; member in struct:pair
54 printf("ip %s bytes %lld packets %lld\n",
56 value.bytes, value.packets);
/linux-master/include/net/netfilter/
H A Dnf_conntrack_acct.h15 atomic64_t packets; member in struct:nf_conn_counter
68 void nf_ct_acct_add(struct nf_conn *ct, u32 dir, unsigned int packets,
/linux-master/drivers/net/
H A Dloopback.c22 * on packets received on the loopback
95 void dev_lstats_read(struct net_device *dev, u64 *packets, u64 *bytes) argument
99 *packets = 0;
110 tpackets = u64_stats_read(&lb_stats->packets);
114 *packets += tpackets;
122 u64 packets, bytes; local
124 dev_lstats_read(dev, &packets, &bytes);
126 stats->rx_packets = packets;
127 stats->tx_packets = packets;
/linux-master/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/
H A Dvxlan_flooding_ipv6.sh6 # verifies that packets are correctly flooded in various cases such as deletion
162 # Prevent unwanted packets from entering the bridge and interfering
219 local packets=("$@")
220 local num_remotes=${#packets[@]}
224 tc_check_packets "dev $rp2 ingress" $i ${packets[i - 1]}
225 check_err $? "remote $i - did not get expected number of packets"
232 # 'packets' will store how many packets are expected to be received
234 declare -a packets=(1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1)
241 # packets wer
[all...]
/linux-master/tools/testing/selftests/drivers/net/mlxsw/
H A Dvxlan_flooding.sh6 # verifies that packets are correctly flooded in various cases such as deletion
175 # Prevent unwanted packets from entering the bridge and interfering
218 local packets=("$@")
219 local num_remotes=${#packets[@]}
223 tc_check_packets "dev $rp2 ingress" $i ${packets[i - 1]}
224 check_err $? "remote $i - did not get expected number of packets"
231 # 'packets' will store how many packets are expected to be received
233 declare -a packets=(1 1 1 1 1 1 1 1 1 1 1 1)
240 # packets wer
[all...]
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/
H A Dfs_counters.c49 u64 packets; member in struct:mlx5_fc_cache
59 /* last{packets,bytes} members are used when calculating the delta since
102 * query/dump - packets and bytes might be inconsistent (since update is not
166 u64 packets = MLX5_GET64(traffic_counter, stats, packets); local
169 if (cache->packets == packets)
172 cache->packets = packets;
366 counter->lastpackets = counter->cache.packets;
480 mlx5_fc_query(struct mlx5_core_dev *dev, struct mlx5_fc *counter, u64 *packets, u64 *bytes) argument
492 mlx5_fc_query_cached(struct mlx5_fc *counter, u64 *bytes, u64 *packets, u64 *lastuse) argument
507 mlx5_fc_query_cached_raw(struct mlx5_fc *counter, u64 *bytes, u64 *packets, u64 *lastuse) argument
[all...]

Completed in 271 milliseconds

1234567891011>>