Home
last modified time | relevance | path

Searched refs:bytes (Results 1 – 25 of 64) sorted by relevance

123

/net/rds/
Dpage.c57 void __user *ptr, unsigned long bytes, in rds_page_copy_user() argument
65 rds_stats_add(s_copy_to_user, bytes); in rds_page_copy_user()
66 ret = copy_to_user(ptr, addr + offset, bytes); in rds_page_copy_user()
68 rds_stats_add(s_copy_from_user, bytes); in rds_page_copy_user()
69 ret = copy_from_user(addr + offset, ptr, bytes); in rds_page_copy_user()
97 int rds_page_remainder_alloc(struct scatterlist *scat, unsigned long bytes, in rds_page_remainder_alloc() argument
108 if (bytes >= PAGE_SIZE) { in rds_page_remainder_alloc()
124 if (rem->r_page && bytes > (PAGE_SIZE - rem->r_offset)) { in rds_page_remainder_alloc()
131 if (rem->r_page && bytes <= (PAGE_SIZE - rem->r_offset)) { in rds_page_remainder_alloc()
132 sg_set_page(scat, rem->r_page, bytes, rem->r_offset); in rds_page_remainder_alloc()
[all …]
Dinfo.c116 unsigned long bytes) in rds_info_copy() argument
120 while (bytes) { in rds_info_copy()
124 this = min(bytes, PAGE_SIZE - iter->offset); in rds_info_copy()
128 iter->offset, this, data, bytes); in rds_info_copy()
133 bytes -= this; in rds_info_copy()
Drdma.c57 if ((vec->addr + vec->bytes <= vec->addr) || in rds_pages_in_vec()
58 (vec->bytes > (u64)UINT_MAX)) in rds_pages_in_vec()
61 return ((vec->addr + vec->bytes + PAGE_SIZE - 1) >> PAGE_SHIFT) - in rds_pages_in_vec()
211 args->vec.addr, args->vec.bytes, nr_pages); in __rds_rdma_map()
674 rs->rs_user_bytes = iov->bytes; in rds_cmsg_rdma_args()
686 nr_bytes, nr, iov->bytes, iov->addr); in rds_cmsg_rdma_args()
688 nr_bytes += iov->bytes; in rds_cmsg_rdma_args()
696 min_t(unsigned int, iov->bytes, PAGE_SIZE - offset), in rds_cmsg_rdma_args()
700 sg->offset, sg->length, iov->addr, iov->bytes); in rds_cmsg_rdma_args()
703 iov->bytes -= sg->length; in rds_cmsg_rdma_args()
[all …]
Drds.h784 int rds_page_remainder_alloc(struct scatterlist *scat, unsigned long bytes,
787 void __user *ptr, unsigned long bytes,
789 #define rds_page_copy_to_user(page, offset, ptr, bytes) \ argument
790 rds_page_copy_user(page, offset, ptr, bytes, 1)
791 #define rds_page_copy_from_user(page, offset, ptr, bytes) \ argument
792 rds_page_copy_user(page, offset, ptr, bytes, 0)
Dinfo.h26 unsigned long bytes);
/net/netfilter/
Dxt_connbytes.c27 u_int64_t bytes = 0; in connbytes_mt() local
59 what = atomic64_read(&counters[IP_CT_DIR_ORIGINAL].bytes); in connbytes_mt()
62 what = atomic64_read(&counters[IP_CT_DIR_REPLY].bytes); in connbytes_mt()
65 what = atomic64_read(&counters[IP_CT_DIR_ORIGINAL].bytes); in connbytes_mt()
66 what += atomic64_read(&counters[IP_CT_DIR_REPLY].bytes); in connbytes_mt()
73 bytes = atomic64_read(&counters[IP_CT_DIR_ORIGINAL].bytes); in connbytes_mt()
77 bytes = atomic64_read(&counters[IP_CT_DIR_REPLY].bytes); in connbytes_mt()
81 bytes = atomic64_read(&counters[IP_CT_DIR_ORIGINAL].bytes) + in connbytes_mt()
82 atomic64_read(&counters[IP_CT_DIR_REPLY].bytes); in connbytes_mt()
88 what = div64_u64(bytes, pkts); in connbytes_mt()
Dnft_counter.c21 u64 bytes; member
44 this_cpu->counter.bytes += pkt->skb->len; in nft_counter_eval()
54 u64 bytes, packets; in nft_counter_fetch() local
63 bytes = cpu_stats->counter.bytes; in nft_counter_fetch()
68 total->bytes += bytes; in nft_counter_fetch()
79 if (nla_put_be64(skb, NFTA_COUNTER_BYTES, cpu_to_be64(total.bytes), in nft_counter_dump()
114 this_cpu->counter.bytes = in nft_counter_init()
148 this_cpu->counter.bytes = total.bytes; in nft_counter_clone()
Dxt_qtaguid_print.c84 dc->bpc[0][IFS_RX][IFS_TCP].bytes, in pp_data_counters()
86 dc->bpc[0][IFS_RX][IFS_UDP].bytes, in pp_data_counters()
88 dc->bpc[0][IFS_RX][IFS_PROTO_OTHER].bytes, in pp_data_counters()
90 dc->bpc[0][IFS_TX][IFS_TCP].bytes, in pp_data_counters()
92 dc->bpc[0][IFS_TX][IFS_UDP].bytes, in pp_data_counters()
94 dc->bpc[0][IFS_TX][IFS_PROTO_OTHER].bytes, in pp_data_counters()
96 dc->bpc[1][IFS_RX][IFS_TCP].bytes, in pp_data_counters()
98 dc->bpc[1][IFS_RX][IFS_UDP].bytes, in pp_data_counters()
100 dc->bpc[1][IFS_RX][IFS_PROTO_OTHER].bytes, in pp_data_counters()
102 dc->bpc[1][IFS_TX][IFS_TCP].bytes, in pp_data_counters()
[all …]
Dxt_repldata.h19 unsigned int bytes = 0, hooknum = 0, i = 0; \
40 tbl->repl.hook_entry[hooknum] = bytes; \
41 tbl->repl.underflow[hooknum] = bytes; \
44 bytes += sizeof(struct type##_standard); \
Dnfnetlink_acct.c32 atomic64_t bytes; member
80 atomic64_set(&matching->bytes, 0); in nfnl_acct_new()
119 atomic64_set(&nfacct->bytes, in nfnl_acct_new()
138 u64 pkts, bytes; in nfnl_acct_fill_info() local
157 bytes = atomic64_xchg(&acct->bytes, 0); in nfnl_acct_fill_info()
163 bytes = atomic64_read(&acct->bytes); in nfnl_acct_fill_info()
167 nla_put_be64(skb, NFACCT_BYTES, cpu_to_be64(bytes), in nfnl_acct_fill_info()
442 atomic64_add(skb->len, &nfacct->bytes); in nfnl_acct_update()
478 atomic64_read(&nfacct->pkts) : atomic64_read(&nfacct->bytes); in nfnl_acct_overquota()
Dxt_qtaguid.c170 int bytes, in dc_add_byte_packets() argument
173 counters->bpc[set][direction][ifs_proto].bytes += bytes; in dc_add_byte_packets()
689 cnts->bpc[cnt_set][IFS_RX][IFS_TCP].bytes, in pp_iface_stat_line()
691 cnts->bpc[cnt_set][IFS_RX][IFS_UDP].bytes, in pp_iface_stat_line()
693 cnts->bpc[cnt_set][IFS_RX][IFS_PROTO_OTHER].bytes, in pp_iface_stat_line()
695 cnts->bpc[cnt_set][IFS_TX][IFS_TCP].bytes, in pp_iface_stat_line()
697 cnts->bpc[cnt_set][IFS_TX][IFS_UDP].bytes, in pp_iface_stat_line()
699 cnts->bpc[cnt_set][IFS_TX][IFS_PROTO_OTHER].bytes, in pp_iface_stat_line()
764 iface_entry->totals_via_dev[IFS_RX].bytes, in iface_stat_fmt_proc_show()
766 iface_entry->totals_via_dev[IFS_TX].bytes, in iface_stat_fmt_proc_show()
[all …]
Dxt_qtaguid_internal.h174 uint64_t bytes; member
186 return counters->bpc[set][direction][IFS_TCP].bytes in dc_sum_bytes()
187 + counters->bpc[set][direction][IFS_UDP].bytes in dc_sum_bytes()
188 + counters->bpc[set][direction][IFS_PROTO_OTHER].bytes; in dc_sum_bytes()
Dxt_set.c191 info->bytes.op != IPSET_COUNTER_NONE) in set_match_v3()
202 return match_counter0(opt.ext.bytes, &info->bytes); in set_match_v3()
238 info->bytes.op != IPSET_COUNTER_NONE) in set_match_v4()
249 return match_counter(opt.ext.bytes, &info->bytes); in set_match_v4()
/net/core/
Dgen_stats.c118 u64 bytes; in __gnet_stats_copy_basic_cpu() local
123 bytes = bcpu->bstats.bytes; in __gnet_stats_copy_basic_cpu()
127 bstats->bytes += bytes; in __gnet_stats_copy_basic_cpu()
147 bstats->bytes = b->bytes; in __gnet_stats_copy_basic()
177 d->tc_stats.bytes = bstats.bytes; in gnet_stats_copy_basic()
185 sb.bytes = bstats.bytes; in gnet_stats_copy_basic()
Dgen_estimator.c133 brate = (b.bytes - e->last_bytes)<<(7 - idx); in est_timer()
134 e->last_bytes = b.bytes; in est_timer()
242 est->last_bytes = b.bytes; in gen_new_estimator()
/net/ncsi/
Dncsi-cmd.c83 cmd->hw_arbitration = nca->bytes[0]; in ncsi_cmd_handler_sp()
96 cmd->ald = nca->bytes[0]; in ncsi_cmd_handler_dc()
121 cmd->mc_id = nca->bytes[0]; in ncsi_cmd_handler_ae()
150 cmd->index = nca->bytes[2]; in ncsi_cmd_handler_svf()
151 cmd->enable = nca->bytes[3]; in ncsi_cmd_handler_svf()
164 cmd->mode = nca->bytes[0]; in ncsi_cmd_handler_ev()
179 cmd->mac[i] = nca->bytes[i]; in ncsi_cmd_handler_sma()
180 cmd->index = nca->bytes[6]; in ncsi_cmd_handler_sma()
181 cmd->at_e = nca->bytes[7]; in ncsi_cmd_handler_sma()
220 cmd->mode = nca->bytes[0]; in ncsi_cmd_handler_snfc()
Dncsi-manage.c549 nca.bytes[0] = 0; in ncsi_suspend_channel()
551 nca.bytes[0] = 1; in ncsi_suspend_channel()
604 nca.bytes[0] = 1; in ncsi_suspend_channel()
664 nca.bytes[0] = 0; in ncsi_configure_channel()
666 nca.bytes[0] = 1; in ncsi_configure_channel()
709 nca.bytes[index] = dev->dev_addr[index]; in ncsi_configure_channel()
710 nca.bytes[6] = 0x1; in ncsi_configure_channel()
711 nca.bytes[7] = 0x1; in ncsi_configure_channel()
740 nca.bytes[0] = 0; in ncsi_configure_channel()
924 nca.bytes[0] = 1; in ncsi_probe_channel()
[all …]
/net/mac80211/
Dled.h78 ieee80211_tpt_led_trig_tx(struct ieee80211_local *local, __le16 fc, int bytes) in ieee80211_tpt_led_trig_tx() argument
82 local->tpt_led_trigger->tx_bytes += bytes; in ieee80211_tpt_led_trig_tx()
87 ieee80211_tpt_led_trig_rx(struct ieee80211_local *local, __le16 fc, int bytes) in ieee80211_tpt_led_trig_rx() argument
91 local->tpt_led_trigger->rx_bytes += bytes; in ieee80211_tpt_led_trig_rx()
/net/vmw_vsock/
Dvirtio_transport_common.c197 size_t bytes, total = 0; in virtio_transport_stream_do_dequeue() local
205 bytes = len - total; in virtio_transport_stream_do_dequeue()
206 if (bytes > pkt->len - pkt->off) in virtio_transport_stream_do_dequeue()
207 bytes = pkt->len - pkt->off; in virtio_transport_stream_do_dequeue()
214 err = memcpy_to_msg(msg, pkt->buf + pkt->off, bytes); in virtio_transport_stream_do_dequeue()
220 total += bytes; in virtio_transport_stream_do_dequeue()
221 pkt->off += bytes; in virtio_transport_stream_do_dequeue()
266 s64 bytes; in virtio_transport_stream_has_data() local
269 bytes = vvs->rx_bytes; in virtio_transport_stream_has_data()
272 return bytes; in virtio_transport_stream_has_data()
[all …]
/net/irda/
Dwrapper.c91 __u8 bytes[2]; in async_wrap_skb() member
149 n += stuff_byte(fcs.bytes[0], tx_buff+n); in async_wrap_skb()
150 n += stuff_byte(fcs.bytes[1], tx_buff+n); in async_wrap_skb()
152 n += stuff_byte(fcs.bytes[1], tx_buff+n); in async_wrap_skb()
153 n += stuff_byte(fcs.bytes[0], tx_buff+n); in async_wrap_skb()
/net/ipv4/
Dfib_semantics.c848 static struct hlist_head *fib_info_hash_alloc(int bytes) in fib_info_hash_alloc() argument
850 if (bytes <= PAGE_SIZE) in fib_info_hash_alloc()
851 return kzalloc(bytes, GFP_KERNEL); in fib_info_hash_alloc()
855 get_order(bytes)); in fib_info_hash_alloc()
858 static void fib_info_hash_free(struct hlist_head *hash, int bytes) in fib_info_hash_free() argument
863 if (bytes <= PAGE_SIZE) in fib_info_hash_free()
866 free_pages((unsigned long) hash, get_order(bytes)); in fib_info_hash_free()
875 unsigned int i, bytes; in fib_info_hash_move() local
916 bytes = old_size * sizeof(struct hlist_head *); in fib_info_hash_move()
917 fib_info_hash_free(old_info_hash, bytes); in fib_info_hash_move()
[all …]
/net/x25/
Dx25_out.c35 int bytes = 1; in x25_pacsize_to_bytes() local
41 bytes *= 2; in x25_pacsize_to_bytes()
43 return bytes; in x25_pacsize_to_bytes()
/net/irda/irlan/
Dirlan_client.c423 __u8 *bytes; in irlan_check_response_param() local
508 bytes = value; in irlan_check_response_param()
509 pr_debug("Ethernet address = %pM\n", bytes); in irlan_check_response_param()
511 self->dev->dev_addr[i] = bytes[i]; in irlan_check_response_param()
/net/ceph/
Dmessenger.c868 size_t bytes) in ceph_msg_data_bio_advance() argument
882 BUG_ON(cursor->resid < bytes); in ceph_msg_data_bio_advance()
883 cursor->resid -= bytes; in ceph_msg_data_bio_advance()
885 bio_advance_iter(bio, &cursor->bvec_iter, bytes); in ceph_msg_data_bio_advance()
887 if (bytes < bio_vec.bv_len) in ceph_msg_data_bio_advance()
960 size_t bytes) in ceph_msg_data_pages_advance() argument
964 BUG_ON(cursor->page_offset + bytes > PAGE_SIZE); in ceph_msg_data_pages_advance()
968 cursor->resid -= bytes; in ceph_msg_data_pages_advance()
969 cursor->page_offset = (cursor->page_offset + bytes) & ~PAGE_MASK; in ceph_msg_data_pages_advance()
970 if (!bytes || cursor->page_offset) in ceph_msg_data_pages_advance()
[all …]
/net/sched/
Dsch_mqprio.c235 sch->bstats.bytes += qdisc->bstats.bytes; in mqprio_dump()
347 bstats.bytes += qdisc->bstats.bytes; in mqprio_dump_class_stats()

123