| /net/netfilter/ |
| A D | xt_connbytes.c | 27 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()
|
| A D | nft_counter.c | 20 u64_stats_t bytes; member 25 s64 bytes; member 47 u64_stats_add(&this_cpu->bytes, pkt->skb->len); in nft_counter_do_eval() 79 u64_stats_set(&this_cpu->bytes, in nft_counter_do_init() 121 u64_stats_add(&this_cpu->bytes, -total->bytes); in nft_counter_reset() 131 u64 bytes, packets; in nft_counter_fetch() local 142 bytes = u64_stats_read(&this_cpu->bytes); in nft_counter_fetch() 146 total->bytes += bytes; in nft_counter_fetch() 159 if (nla_put_be64(skb, NFTA_COUNTER_BYTES, cpu_to_be64(total.bytes), in nft_counter_do_dump() 254 u64_stats_set(&this_cpu->bytes, total.bytes); in nft_counter_clone() [all …]
|
| A D | nfnetlink_acct.c | 31 atomic64_t bytes; member 90 atomic64_set(&matching->bytes, 0); in nfnl_acct_new() 129 atomic64_set(&nfacct->bytes, in nfnl_acct_new() 147 u64 pkts, bytes; in nfnl_acct_fill_info() local 162 bytes = atomic64_xchg(&acct->bytes, 0); in nfnl_acct_fill_info() 168 bytes = atomic64_read(&acct->bytes); in nfnl_acct_fill_info() 172 nla_put_be64(skb, NFACCT_BYTES, cpu_to_be64(bytes), in nfnl_acct_fill_info() 456 atomic64_add(skb->len, &nfacct->bytes); in nfnl_acct_update() 490 atomic64_read(&nfacct->pkts) : atomic64_read(&nfacct->bytes); in nfnl_acct_overquota()
|
| A D | xt_repldata.h | 20 unsigned int bytes = 0, hooknum = 0, i = 0; \ 41 tbl->repl.hook_entry[hooknum] = bytes; \ 42 tbl->repl.underflow[hooknum] = bytes; \ 45 bytes += sizeof(struct type##_standard); \
|
| A D | nf_conntrack_h323_asn1.c | 165 static int nf_h323_error_boundary(struct bitstr *bs, size_t bytes, size_t bits) in nf_h323_error_boundary() argument 168 bytes += bits / BITS_PER_BYTE; in nf_h323_error_boundary() 170 bytes++; in nf_h323_error_boundary() 172 if (bs->cur + bytes > bs->end) in nf_h323_error_boundary() 215 unsigned int v, l, shift, bytes; in get_bitmap() local 229 for (bytes = l >> 3, shift = 24, v = 0; bytes; in get_bitmap() 230 bytes--, shift -= 8) in get_bitmap()
|
| A D | xt_set.c | 46 .ext.bytes = b, \ 172 info->packets.value, info->bytes.value, in set_match_v3() 173 info->packets.op, info->bytes.op); in set_match_v3() 176 info->bytes.op != IPSET_COUNTER_NONE) in set_match_v3() 195 info->packets.value, info->bytes.value, in set_match_v4() 196 info->packets.op, info->bytes.op); in set_match_v4() 199 info->bytes.op != IPSET_COUNTER_NONE) in set_match_v4()
|
| /net/core/ |
| A D | gen_stats.c | 120 u64_stats_set(&b->bytes, 0); in gnet_stats_basic_sync_init() 135 u64 bytes, packets; in gnet_stats_add_basic_cpu() local 139 bytes = u64_stats_read(&bcpu->bytes); in gnet_stats_add_basic_cpu() 143 t_bytes += bytes; in gnet_stats_add_basic_cpu() 154 u64 bytes = 0; in gnet_stats_add_basic() local 166 bytes = u64_stats_read(&b->bytes); in gnet_stats_add_basic() 187 u64 bytes, packets; in gnet_stats_read_basic() local 191 bytes = u64_stats_read(&bcpu->bytes); in gnet_stats_read_basic() 195 t_bytes += bytes; in gnet_stats_read_basic() 221 d->tc_stats.bytes = bstats_bytes; in ___gnet_stats_copy_basic() [all …]
|
| A D | skmsg.c | 146 sge->length -= bytes; in sk_msg_return_zero() 153 bytes -= sge->length; in sk_msg_return_zero() 168 int uncharge = (bytes < sge->length) ? bytes : sge->length; in sk_msg_return() 171 bytes -= uncharge; in sk_msg_return() 229 while (bytes) { in __sk_msg_free_partial() 258 u32 bytes) in sk_msg_free_partial_nocharge() argument 320 while (bytes > 0) { in sk_msg_zerocopy_from_iter() 335 bytes -= copied; in sk_msg_zerocopy_from_iter() 388 copy = (buf_size > bytes) ? bytes : buf_size; in sk_msg_memcopy_from_iter() 399 bytes -= copy; in sk_msg_memcopy_from_iter() [all …]
|
| A D | datagram.c | 385 size_t bytes, 487 static size_t crc32c_and_copy_to_iter(const void *addr, size_t bytes, in crc32c_and_copy_to_iter() argument 493 copied = copy_to_iter(addr, bytes, i); in crc32c_and_copy_to_iter() 518 static size_t simple_copy_to_iter(const void *addr, size_t bytes, in simple_copy_to_iter() argument 521 return copy_to_iter(addr, bytes, i); in simple_copy_to_iter() 820 csum_partial(addr, bytes, 0), in csum_and_copy_to_iter() 822 csstate->off += bytes; in csum_and_copy_to_iter() 823 return bytes; in csum_and_copy_to_iter() 828 bytes = iterate_and_advance2(i, bytes, (void *)addr, &sum, in csum_and_copy_to_iter() 832 csstate->off += bytes; in csum_and_copy_to_iter() [all …]
|
| A D | gen_estimator.c | 84 b_bytes = u64_stats_read(&b.bytes); in est_timer() 173 est->last_bytes = u64_stats_read(&b.bytes); in gen_new_estimator()
|
| /net/rds/ |
| A D | page.c | 70 int rds_page_remainder_alloc(struct scatterlist *scat, unsigned long bytes, in rds_page_remainder_alloc() argument 80 if (bytes >= PAGE_SIZE) { in rds_page_remainder_alloc() 97 if (rem->r_page && bytes > (PAGE_SIZE - rem->r_offset)) { in rds_page_remainder_alloc() 104 if (rem->r_page && bytes <= (PAGE_SIZE - rem->r_offset)) { in rds_page_remainder_alloc() 105 sg_set_page(scat, rem->r_page, bytes, rem->r_offset); in rds_page_remainder_alloc() 111 rem->r_offset += ALIGN(bytes, 8); in rds_page_remainder_alloc() 149 rdsdebug("bytes %lu ret %d %p %u %u\n", bytes, ret, in rds_page_remainder_alloc()
|
| A D | rdma.c | 57 if ((vec->addr + vec->bytes <= vec->addr) || in rds_pages_in_vec() 58 (vec->bytes > (u64)UINT_MAX)) in rds_pages_in_vec() 203 (args->vec.addr + args->vec.bytes)) { in __rds_rdma_map() 228 args->vec.addr, args->vec.bytes, nr_pages); in __rds_rdma_map() 292 args->vec.addr, args->vec.bytes, in __rds_rdma_map() 716 rs->rs_user_bytes = iov->bytes; in rds_cmsg_rdma_args() 746 iov->addr, iov->bytes, ODP_VIRTUAL); in rds_cmsg_rdma_args() 762 nr_bytes, nr, iov->bytes, iov->addr); in rds_cmsg_rdma_args() 764 nr_bytes += iov->bytes; in rds_cmsg_rdma_args() 780 iov->bytes -= sg->length; in rds_cmsg_rdma_args() [all …]
|
| A D | info.c | 116 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()
|
| /net/ncsi/ |
| A D | ncsi-cmd.c | 80 cmd->hw_arbitration = nca->bytes[0]; in ncsi_cmd_handler_sp() 92 cmd->ald = nca->bytes[0]; in ncsi_cmd_handler_dc() 115 cmd->mc_id = nca->bytes[0]; in ncsi_cmd_handler_ae() 142 cmd->index = nca->bytes[6]; in ncsi_cmd_handler_svf() 143 cmd->enable = nca->bytes[7]; in ncsi_cmd_handler_svf() 155 cmd->mode = nca->bytes[3]; in ncsi_cmd_handler_ev() 169 cmd->mac[i] = nca->bytes[i]; in ncsi_cmd_handler_sma() 170 cmd->index = nca->bytes[6]; in ncsi_cmd_handler_sma() 171 cmd->at_e = nca->bytes[7]; in ncsi_cmd_handler_sma() 207 cmd->mode = nca->bytes[0]; in ncsi_cmd_handler_snfc()
|
| A D | ncsi-manage.c | 491 nca.bytes[0] = 0; in ncsi_suspend_channel() 493 nca.bytes[0] = 1; in ncsi_suspend_channel() 548 nca.bytes[0] = 1; in ncsi_suspend_channel() 628 nca->bytes[7] = 0x00; in clear_one_vid() 689 nca->bytes[7] = 0x01; in set_one_vid() 1008 nca.bytes[0] = 0; in ncsi_configure_channel() 1010 nca.bytes[0] = 1; in ncsi_configure_channel() 1121 nca.bytes[6] = 0x1; in ncsi_configure_channel() 1122 nca.bytes[7] = 0x1; in ncsi_configure_channel() 1160 nca.bytes[0] = 0; in ncsi_configure_channel() [all …]
|
| /net/ceph/ |
| A D | messenger.c | 751 size_t bytes) in ceph_msg_data_bio_advance() argument 758 cursor->resid -= bytes; in ceph_msg_data_bio_advance() 806 size_t bytes) in ceph_msg_data_bvecs_advance() argument 813 cursor->resid -= bytes; in ceph_msg_data_bvecs_advance() 868 size_t bytes) in ceph_msg_data_pages_advance() argument 876 cursor->resid -= bytes; in ceph_msg_data_pages_advance() 941 size_t bytes) in ceph_msg_data_pagelist_advance() argument 956 cursor->resid -= bytes; in ceph_msg_data_pagelist_advance() 957 cursor->offset += bytes; in ceph_msg_data_pagelist_advance() 1013 size_t bytes) in ceph_msg_data_iter_advance() argument [all …]
|
| /net/vmw_vsock/ |
| A D | virtio_transport_common.c | 546 size_t bytes; in virtio_transport_stream_do_peek() local 562 total += bytes; in virtio_transport_stream_do_peek() 685 size_t bytes; in virtio_transport_seqpacket_do_peek() local 855 s64 bytes; in virtio_transport_stream_has_data() local 861 return bytes; in virtio_transport_stream_has_data() 881 s64 bytes; in virtio_transport_has_space() local 884 if (bytes < 0) in virtio_transport_has_space() 885 bytes = 0; in virtio_transport_has_space() 887 return bytes; in virtio_transport_has_space() 893 s64 bytes; in virtio_transport_stream_has_space() local [all …]
|
| /net/mac80211/ |
| A D | led.h | 71 ieee80211_tpt_led_trig_tx(struct ieee80211_local *local, int bytes) in ieee80211_tpt_led_trig_tx() argument 75 local->tpt_led_trigger->tx_bytes += bytes; in ieee80211_tpt_led_trig_tx() 80 ieee80211_tpt_led_trig_rx(struct ieee80211_local *local, int bytes) in ieee80211_tpt_led_trig_rx() argument 84 local->tpt_led_trigger->rx_bytes += bytes; in ieee80211_tpt_led_trig_rx()
|
| /net/9p/ |
| A D | trans_xen.c | 325 void *bytes = NULL; in xen_9pfs_front_alloc_dataring() local 339 bytes = alloc_pages_exact(1UL << (order + XEN_PAGE_SHIFT), in xen_9pfs_front_alloc_dataring() 341 if (!bytes) { in xen_9pfs_front_alloc_dataring() 347 dev->otherend_id, virt_to_gfn(bytes) + i, 0); in xen_9pfs_front_alloc_dataring() 353 ring->data.in = bytes; in xen_9pfs_front_alloc_dataring() 354 ring->data.out = bytes + XEN_FLEX_RING_SIZE(order); in xen_9pfs_front_alloc_dataring() 368 if (bytes) { in xen_9pfs_front_alloc_dataring() 371 free_pages_exact(bytes, 1UL << (order + XEN_PAGE_SHIFT)); in xen_9pfs_front_alloc_dataring()
|
| /net/smc/ |
| A D | smc_rx.c | 158 int bytes, nr_pages; in smc_rx_splice() local 212 bytes = splice_to_pipe(pipe, &spd); in smc_rx_splice() 213 if (bytes > 0) { in smc_rx_splice() 216 for (i = 0; i < PAGE_ALIGN(bytes + offset) / PAGE_SIZE; i++) in smc_rx_splice() 221 atomic_add(bytes, &smc->conn.splice_pending); in smc_rx_splice() 227 return bytes; in smc_rx_splice()
|
| /net/x25/ |
| A D | x25_out.c | 30 int bytes = 1; in x25_pacsize_to_bytes() local 36 bytes *= 2; in x25_pacsize_to_bytes() 38 return bytes; in x25_pacsize_to_bytes()
|
| /net/sched/ |
| A D | sch_htb.c | 664 toks -= (s64) psched_l2t_ns(&cl->rate, bytes); in htb_accnt_tokens() 677 toks -= (s64) psched_l2t_ns(&cl->ceil, bytes); in htb_accnt_ctokens() 702 int bytes = qdisc_pkt_len(skb); in htb_charge_class() local 711 htb_accnt_tokens(cl, bytes, diff); in htb_charge_class() 716 htb_accnt_ctokens(cl, bytes, diff); in htb_charge_class() 1295 u64 bytes = 0, packets = 0; in htb_offload_aggregate_stats() local 1311 bytes += u64_stats_read(&c->bstats_bias.bytes); in htb_offload_aggregate_stats() 1314 bytes += u64_stats_read(&c->leaf.q->bstats.bytes); in htb_offload_aggregate_stats() 1319 _bstats_update(&cl->bstats, bytes, packets); in htb_offload_aggregate_stats() 1570 u64_stats_read(&q->bstats.bytes), in htb_destroy_class_offload() [all …]
|
| /net/can/ |
| A D | Kconfig | 66 As CAN frames can only transport a small amount of data bytes 67 (max. 8 bytes for CAN CC and max. 64 bytes for CAN FD) this
|
| /net/tipc/ |
| A D | core.h | 209 static inline u32 hash128to32(char *bytes) in hash128to32() argument 211 __be32 *tmp = (__be32 *)bytes; in hash128to32()
|
| /net/tls/ |
| A D | tls_device.c | 393 static int tls_device_copy_data(void *addr, size_t bytes, struct iov_iter *i) in tls_device_copy_data() argument 399 pre_copy = min(pre_copy, bytes); in tls_device_copy_data() 402 bytes -= pre_copy; in tls_device_copy_data() 406 nocache = round_down(bytes, SMP_CACHE_BYTES); in tls_device_copy_data() 409 bytes -= nocache; in tls_device_copy_data() 412 if (bytes && copy_from_iter(addr, bytes, i) != bytes) in tls_device_copy_data()
|