Searched defs:bytes (Results 1 - 23 of 23) sorted by relevance

/net/mac80211/
H A Dled.h58 ieee80211_tpt_led_trig_tx(struct ieee80211_local *local, __le16 fc, int bytes) argument
62 local->tpt_led_trigger->tx_bytes += bytes;
67 ieee80211_tpt_led_trig_rx(struct ieee80211_local *local, __le16 fc, int bytes) argument
71 local->tpt_led_trigger->rx_bytes += bytes;
/net/netfilter/
H A Dxt_connbytes.c16 MODULE_DESCRIPTION("Xtables: Number of packets/bytes per connection matching");
27 u_int64_t bytes = 0; local
59 what = atomic64_read(&counters[IP_CT_DIR_ORIGINAL].bytes);
62 what = atomic64_read(&counters[IP_CT_DIR_REPLY].bytes);
65 what = atomic64_read(&counters[IP_CT_DIR_ORIGINAL].bytes);
66 what += atomic64_read(&counters[IP_CT_DIR_REPLY].bytes);
73 bytes = atomic64_read(&counters[IP_CT_DIR_ORIGINAL].bytes);
77 bytes = atomic64_read(&counters[IP_CT_DIR_REPLY].bytes);
[all...]
H A Dnft_counter.c22 u64 bytes; member in struct:nft_counter
33 priv->bytes += pkt->skb->len;
42 u64 bytes; local
47 bytes = priv->bytes;
51 if (nla_put_be64(skb, NFTA_COUNTER_BYTES, cpu_to_be64(bytes)))
75 priv->bytes = be64_to_cpu(nla_get_be64(tb[NFTA_COUNTER_BYTES]));
H A Dnfnetlink_acct.c34 atomic64_t bytes; member in struct:nf_acct
82 atomic64_set(&matching->bytes, 0);
119 atomic64_set(&nfacct->bytes,
138 u64 pkts, bytes; local
157 bytes = atomic64_xchg(&acct->bytes, 0);
163 bytes = atomic64_read(&acct->bytes);
166 nla_put_be64(skb, NFACCT_BYTES, cpu_to_be64(bytes)) ||
433 atomic64_add(skb->len, &nfacct->bytes);
[all...]
H A Dnf_conntrack_h323_asn1.c208 unsigned int v, l, shift, bytes; local
222 for (bytes = l >> 3, shift = 24, v = 0; bytes;
223 bytes--, shift -= 8)
H A Dxt_qtaguid_internal.h174 uint64_t bytes; member in struct:byte_packet_counters
186 return counters->bpc[set][direction][IFS_TCP].bytes
187 + counters->bpc[set][direction][IFS_UDP].bytes
188 + counters->bpc[set][direction][IFS_PROTO_OTHER].bytes;
H A Dnf_conntrack_netlink.c220 u64 pkts, bytes; local
224 bytes = atomic64_xchg(&counter[dir].bytes, 0);
227 bytes = atomic64_read(&counter[dir].bytes);
235 nla_put_be64(skb, CTA_COUNTERS_BYTES, cpu_to_be64(bytes)))
H A Dnf_tables_api.c888 u64 pkts, bytes; local
897 bytes = cpu_stats->bytes;
900 total.bytes += bytes;
907 nla_put_be64(skb, NFTA_COUNTER_BYTES, cpu_to_be64(total.bytes)))
1134 stats->bytes = be64_to_cpu(nla_get_be64(tb[NFTA_COUNTER_BYTES]));
H A Dxt_qtaguid.c169 int bytes,
172 counters->bpc[set][direction][ifs_proto].bytes += bytes;
690 cnts->bpc[cnt_set][IFS_RX][IFS_TCP].bytes,
692 cnts->bpc[cnt_set][IFS_RX][IFS_UDP].bytes,
694 cnts->bpc[cnt_set][IFS_RX][IFS_PROTO_OTHER].bytes,
696 cnts->bpc[cnt_set][IFS_TX][IFS_TCP].bytes,
698 cnts->bpc[cnt_set][IFS_TX][IFS_UDP].bytes,
700 cnts->bpc[cnt_set][IFS_TX][IFS_PROTO_OTHER].bytes,
765 iface_entry->totals_via_dev[IFS_RX].bytes,
166 dc_add_byte_packets(struct data_counters *counters, int set, enum ifs_tx_rx direction, enum ifs_proto ifs_proto, int bytes, int packets) argument
1105 data_counters_update(struct data_counters *dc, int set, enum ifs_tx_rx direction, int proto, int bytes) argument
1189 int bytes = skb->len; local
1239 tag_stat_update(struct tag_stat *tag_entry, enum ifs_tx_rx direction, int proto, int bytes) argument
1278 if_tag_stat_update(const char *ifname, uid_t uid, const struct sock *sk, enum ifs_tx_rx direction, int proto, int bytes) argument
[all...]
/net/irda/
H A Dwrapper.c53 * buf. The buffer must at all times be able to have two bytes inserted.
56 * (2000 bytes on P6 200MHz, non-inlined ~370us, inline ~170us) - Jean II
91 __u8 bytes[2]; member in union:__anon63
133 * bufsize-5 since the maximum number of bytes that can be
149 n += stuff_byte(fcs.bytes[0], tx_buff+n);
150 n += stuff_byte(fcs.bytes[1], tx_buff+n);
152 n += stuff_byte(fcs.bytes[1], tx_buff+n);
153 n += stuff_byte(fcs.bytes[0], tx_buff+n);
167 * (16 bytes on P6 200MHz, old 5 to 7 us, new 4 to 6 us)
168 * (24 bytes o
[all...]
/net/rds/
H A Dinfo.c116 unsigned long bytes)
120 while (bytes) {
124 this = min(bytes, PAGE_SIZE - iter->offset);
127 "bytes %lu\n", *iter->pages, iter->addr,
128 iter->offset, this, data, bytes);
133 bytes -= this;
151 * on output is the size of the requested snapshot in bytes.
155 * On success it returns the positive number of bytes of each array element
115 rds_info_copy(struct rds_info_iterator *iter, void *data, unsigned long bytes) argument
H A Dpage.c57 void __user *ptr, unsigned long bytes,
65 rds_stats_add(s_copy_to_user, bytes);
66 ret = copy_to_user(ptr, addr + offset, bytes);
68 rds_stats_add(s_copy_from_user, bytes);
69 ret = copy_from_user(addr + offset, ptr, bytes);
81 * @bytes: the number of bytes needed.
87 * If @bytes is at least a full page then this just returns a page from
90 * If @bytes is a partial page then this stores the unused region of the
97 int rds_page_remainder_alloc(struct scatterlist *scat, unsigned long bytes, argument
56 rds_page_copy_user(struct page *page, unsigned long offset, void __user *ptr, unsigned long bytes, int to_user) argument
[all...]
H A Diw.h59 unsigned int bytes; member in struct:rds_iw_scatterlist
/net/x25/
H A Dx25_out.c35 int bytes = 1; local
41 bytes *= 2;
43 return bytes;
49 * Returns the amount of user data bytes sent on success
81 " failed, err=%d, %d bytes "
/net/core/
H A Dgen_stats.c109 u64 bytes; local
114 bytes = bcpu->bstats.bytes;
118 bstats->bytes += bytes;
131 bstats->bytes = b->bytes;
158 d->tc_stats.bytes = bstats.bytes;
166 sb.bytes
[all...]
/net/irda/irlan/
H A Dirlan_client.c437 __u8 *bytes; local
522 bytes = value;
523 IRDA_DEBUG(4, "Ethernet address = %pM\n", bytes);
525 self->dev->dev_addr[i] = bytes[i];
/net/ipv4/
H A Dfib_semantics.c691 static struct hlist_head *fib_info_hash_alloc(int bytes) argument
693 if (bytes <= PAGE_SIZE)
694 return kzalloc(bytes, GFP_KERNEL);
698 get_order(bytes));
701 static void fib_info_hash_free(struct hlist_head *hash, int bytes) argument
706 if (bytes <= PAGE_SIZE)
709 free_pages((unsigned long) hash, get_order(bytes));
718 unsigned int i, bytes; local
763 bytes = old_size * sizeof(struct hlist_head *);
764 fib_info_hash_free(old_info_hash, bytes);
806 unsigned int bytes; local
[all...]
H A Dfib_trie.c2101 unsigned int i, max, pointers, bytes, avdepth; local
2113 bytes = sizeof(struct leaf) * stat->leaves;
2116 bytes += sizeof(struct leaf_info) * stat->prefixes;
2119 bytes += sizeof(struct tnode) * stat->tnodes;
2134 bytes += sizeof(struct rt_trie_node *) * pointers;
2136 seq_printf(seq, "Total size: %u kB\n", (bytes + 1023) / 1024);
2174 " %Zd bytes, size of tnode: %Zd bytes.\n",
/net/ceph/
H A Dmessenger.c161 /* static tag bytes (protocol control messages) */
172 * buffer," which is this many bytes in size.
843 size_t bytes)
857 BUG_ON(cursor->resid < bytes);
858 cursor->resid -= bytes;
860 bio_advance_iter(bio, &cursor->bvec_iter, bytes);
862 if (bytes < bio_vec.bv_len)
863 return false; /* more bytes to process in this segment */
935 size_t bytes)
939 BUG_ON(cursor->page_offset + bytes > PAGE_SIZ
842 ceph_msg_data_bio_advance(struct ceph_msg_data_cursor *cursor, size_t bytes) argument
934 ceph_msg_data_pages_advance(struct ceph_msg_data_cursor *cursor, size_t bytes) argument
1014 ceph_msg_data_pagelist_advance(struct ceph_msg_data_cursor *cursor, size_t bytes) argument
1138 ceph_msg_data_advance(struct ceph_msg_data_cursor *cursor, size_t bytes) argument
[all...]
H A Dosd_client.c1708 u32 bytes; local
1760 dout(" op %d has %d bytes\n", i, len);
1764 bytes = le32_to_cpu(msg->hdr.data_len);
1765 if (payload_len != bytes) {
1767 payload_len, bytes);
1811 dout("handle_reply result %d bytes %d\n", req->r_result,
1812 bytes);
1814 req->r_result = bytes;
2616 * *plen. Return number of bytes read, or error.
2641 dout("readpages final extent is %llu~%llu (%llu bytes alig
[all...]
/net/sched/
H A Dsch_htb.c607 static inline void htb_accnt_tokens(struct htb_class *cl, int bytes, s64 diff) argument
613 toks -= (s64) psched_l2t_ns(&cl->rate, bytes);
620 static inline void htb_accnt_ctokens(struct htb_class *cl, int bytes, s64 diff) argument
626 toks -= (s64) psched_l2t_ns(&cl->ceil, bytes);
634 * htb_charge_class - charges amount "bytes" to leaf and ancestors
636 * Routine assumes that packet "bytes" long was dequeued from leaf cl
637 * borrowing from "level". It accounts bytes to ceil leaky bucket for
647 int bytes = qdisc_pkt_len(skb); local
656 htb_accnt_tokens(cl, bytes, diff);
661 htb_accnt_ctokens(cl, bytes, dif
[all...]
/net/sunrpc/
H A Dclnt.c1080 * Returns the number of bytes that are actually in the stored address.
1084 size_t bytes; local
1090 bytes = xprt->addrlen;
1091 if (bytes > bufsize)
1092 bytes = bufsize;
1093 memcpy(buf, &xprt->addr, bytes);
1096 return bytes;
1234 * @buflen: size of target buffer, in bytes
1318 * rpc_max_payload - Get maximum payload size for a transport, in bytes
2166 dprintk("RPC: %s: too small RPC reply size (%d bytes)\
[all...]
/net/ipv6/
H A Daddrconf.c4393 __s32 *array, int bytes)
4395 BUG_ON(bytes < (DEVCONF_MAX * 4));
4397 memset(array, 0, bytes);
4471 int items, int bytes)
4474 int pad = bytes - sizeof(u64) * items;
4486 int items, int bytes, size_t syncpoff)
4489 int pad = bytes - sizeof(u64) * items;
4501 int bytes)
4506 IPSTATS_MIB_MAX, bytes, offsetof(struct ipstats_mib, syncp));
4509 __snmp6_fill_statsdev(stats, idev->stats.icmpv6dev->mibs, ICMP6_MIB_MAX, bytes);
4392 ipv6_store_devconf(struct ipv6_devconf *cnf, __s32 *array, int bytes) argument
4470 __snmp6_fill_statsdev(u64 *stats, atomic_long_t *mib, int items, int bytes) argument
4485 __snmp6_fill_stats64(u64 *stats, void __percpu *mib, int items, int bytes, size_t syncpoff) argument
4500 snmp6_fill_stats(u64 *stats, struct inet6_dev *idev, int attrtype, int bytes) argument
[all...]

Completed in 275 milliseconds