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

/net/rds/
H A Dtcp_listen.c111 void rds_tcp_listen_data_ready(struct sock *sk, int bytes) argument
113 void (*ready)(struct sock *sk, int bytes);
135 ready(sk, bytes);
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 Dtcp_recv.c317 void rds_tcp_data_ready(struct sock *sk, int bytes) argument
319 void (*ready)(struct sock *sk, int bytes);
323 rdsdebug("data ready sk %p bytes %d\n", sk, bytes);
340 ready(sk, bytes);
H A Diw.h59 unsigned int bytes; member in struct:rds_iw_scatterlist
/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
57 what = atomic64_read(&counters[IP_CT_DIR_ORIGINAL].bytes);
60 what = atomic64_read(&counters[IP_CT_DIR_REPLY].bytes);
63 what = atomic64_read(&counters[IP_CT_DIR_ORIGINAL].bytes);
64 what += atomic64_read(&counters[IP_CT_DIR_REPLY].bytes);
71 bytes = atomic64_read(&counters[IP_CT_DIR_ORIGINAL].bytes);
75 bytes = atomic64_read(&counters[IP_CT_DIR_REPLY].bytes);
[all...]
H A Dnfnetlink_acct.c34 atomic64_t bytes; member in struct:nf_acct
70 atomic64_set(&matching->bytes, 0);
83 atomic64_set(&nfacct->bytes,
102 u64 pkts, bytes; local
119 bytes = atomic64_xchg(&acct->bytes, 0);
122 bytes = atomic64_read(&acct->bytes);
125 nla_put_be64(skb, NFACCT_BYTES, cpu_to_be64(bytes)) ||
335 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.c213 dump_counters(struct sk_buff *skb, u64 pkts, u64 bytes, argument
224 nla_put_be64(skb, CTA_COUNTERS_BYTES, cpu_to_be64(bytes)))
240 u64 pkts, bytes; local
248 bytes = atomic64_xchg(&acct[dir].bytes, 0);
251 bytes = atomic64_read(&acct[dir].bytes);
253 return dump_counters(skb, pkts, bytes, dir);
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:__anon61
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/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/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.c687 static struct hlist_head *fib_info_hash_alloc(int bytes) argument
689 if (bytes <= PAGE_SIZE)
690 return kzalloc(bytes, GFP_KERNEL);
694 get_order(bytes));
697 static void fib_info_hash_free(struct hlist_head *hash, int bytes) argument
702 if (bytes <= PAGE_SIZE)
705 free_pages((unsigned long) hash, get_order(bytes));
714 unsigned int i, bytes; local
759 bytes = old_size * sizeof(struct hlist_head *);
760 fib_info_hash_free(old_info_hash, bytes);
802 unsigned int bytes; local
[all...]
H A Dfib_trie.c2111 unsigned int i, max, pointers, bytes, avdepth; local
2123 bytes = sizeof(struct leaf) * stat->leaves;
2126 bytes += sizeof(struct leaf_info) * stat->prefixes;
2129 bytes += sizeof(struct tnode) * stat->tnodes;
2144 bytes += sizeof(struct rt_trie_node *) * pointers;
2146 seq_printf(seq, "Total size: %u kB\n", (bytes + 1023) / 1024);
2184 " %Zd bytes, size of tnode: %Zd bytes.\n",
/net/sunrpc/
H A Dclnt.c942 * Returns the number of bytes that are actually in the stored address.
946 size_t bytes; local
952 bytes = xprt->addrlen;
953 if (bytes > bufsize)
954 bytes = bufsize;
955 memcpy(buf, &xprt->addr, bytes);
958 return bytes;
1096 * @buflen: size of target buffer, in bytes
1180 * rpc_max_payload - Get maximum payload size for a transport, in bytes
2001 dprintk("RPC: %s: too small RPC reply size (%d bytes)\
[all...]
H A Dxprtsock.c630 /* Still some bytes left; set up for a retry later. */
714 * reset the count of bytes sent. */
1087 dprintk("RPC: reading XID (%Zu bytes)\n", len);
1112 * (4 bytes for the xid and 4 bytes for the call/reply flag).
1118 dprintk("RPC: reading CALL/REPLY flag (%Zu bytes)\n", len);
1209 dprintk("RPC: XID %08x read %Zd bytes\n",
1351 dprintk("RPC: discarded %Zu bytes\n", len);
1388 /* Skip over any trailing bytes on short reads */
1398 * @bytes
1401 xs_tcp_data_ready(struct sock *sk, int bytes) argument
[all...]
/net/bluetooth/rfcomm/
H A Dcore.c156 /* CRC on 2 bytes */
159 /* FCS on 2 bytes */
165 /* FCS on 3 bytes */
189 static void rfcomm_l2data_ready(struct sock *sk, int bytes) argument
191 BT_DBG("%p bytes %d", sk, bytes);
/net/ceph/
H A Dmessenger.c160 /* static tag bytes (protocol control messages) */
171 * buffer," which is this many bytes in size.
821 size_t bytes)
838 BUG_ON(cursor->resid < bytes);
839 cursor->resid -= bytes;
840 cursor->vector_offset += bytes;
842 return false; /* more bytes to process in this segment */
913 size_t bytes)
917 BUG_ON(cursor->page_offset + bytes > PAGE_SIZE);
921 cursor->resid -= bytes;
820 ceph_msg_data_bio_advance(struct ceph_msg_data_cursor *cursor, size_t bytes) argument
912 ceph_msg_data_pages_advance(struct ceph_msg_data_cursor *cursor, size_t bytes) argument
989 ceph_msg_data_pagelist_advance(struct ceph_msg_data_cursor *cursor, size_t bytes) argument
1110 ceph_msg_data_advance(struct ceph_msg_data_cursor *cursor, size_t bytes) argument
[all...]
H A Dosd_client.c1462 u32 bytes; local
1513 dout(" op %d has %d bytes\n", i, len);
1517 bytes = le32_to_cpu(msg->hdr.data_len);
1518 if (payload_len != bytes) {
1520 payload_len, bytes);
1532 dout("handle_reply result %d bytes %d\n", req->r_result,
1533 bytes);
1535 req->r_result = bytes;
2291 * *plen. Return number of bytes read, or error.
2316 dout("readpages final extent is %llu~%llu (%llu bytes alig
[all...]
/net/sched/
H A Dsch_htb.c585 static inline void htb_accnt_tokens(struct htb_class *cl, int bytes, s64 diff) argument
591 toks -= (s64) psched_l2t_ns(&cl->rate, bytes);
598 static inline void htb_accnt_ctokens(struct htb_class *cl, int bytes, s64 diff) argument
604 toks -= (s64) psched_l2t_ns(&cl->ceil, bytes);
612 * htb_charge_class - charges amount "bytes" to leaf and ancestors
614 * Routine assumes that packet "bytes" long was dequeued from leaf cl
615 * borrowing from "level". It accounts bytes to ceil leaky bucket for
625 int bytes = qdisc_pkt_len(skb); local
634 htb_accnt_tokens(cl, bytes, diff);
639 htb_accnt_ctokens(cl, bytes, dif
[all...]
/net/ipv6/
H A Daddrconf.c4199 __s32 *array, int bytes)
4201 BUG_ON(bytes < (DEVCONF_MAX * 4));
4203 memset(array, 0, bytes);
4273 int items, int bytes)
4276 int pad = bytes - sizeof(u64) * items;
4288 int items, int bytes, size_t syncpoff)
4291 int pad = bytes - sizeof(u64) * items;
4303 int bytes)
4308 IPSTATS_MIB_MAX, bytes, offsetof(struct ipstats_mib, syncp)); local
4311 __snmp6_fill_statsdev(stats, idev->stats.icmpv6dev->mibs, ICMP6_MIB_MAX, bytes);
4198 ipv6_store_devconf(struct ipv6_devconf *cnf, __s32 *array, int bytes) argument
4272 __snmp6_fill_statsdev(u64 *stats, atomic_long_t *mib, int items, int bytes) argument
4287 __snmp6_fill_stats64(u64 *stats, void __percpu **mib, int items, int bytes, size_t syncpoff) argument
4302 snmp6_fill_stats(u64 *stats, struct inet6_dev *idev, int attrtype, int bytes) argument
[all...]

Completed in 1054 milliseconds