Home
last modified time | relevance | path

Searched refs:size (Results 1 – 25 of 397) sorted by relevance

12345678910>>...16

/net/wireless/
A Dradiotap.c26 [IEEE80211_RADIOTAP_TSFT] = { .align = 8, .size = 8, },
28 [IEEE80211_RADIOTAP_RATE] = { .align = 1, .size = 1, },
30 [IEEE80211_RADIOTAP_FHSS] = { .align = 2, .size = 2, },
217 int pad, align, size, subns; in ieee80211_radiotap_iterator_next() local
233 size = 0; in ieee80211_radiotap_iterator_next()
237 size = 6; in ieee80211_radiotap_iterator_next()
247 size = iterator->current_namespace->align_size[iterator->_arg_index].size; in ieee80211_radiotap_iterator_next()
280 if ((unsigned long)iterator->_arg + size - in ieee80211_radiotap_iterator_next()
295 size += vnslen; in ieee80211_radiotap_iterator_next()
304 iterator->this_arg_size = size; in ieee80211_radiotap_iterator_next()
[all …]
/net/atm/
A Dresources.c195 int error, len, size = 0; in atm_getnames() local
204 size += sizeof(int); in atm_getnames()
205 if (size > len) { in atm_getnames()
220 put_user(size, iobuf_len)) in atm_getnames()
229 int error, len, size = 0; in atm_dev_ioctl() local
249 size = ESI_LEN; in atm_dev_ioctl()
302 size = sizeof(int); in atm_dev_ioctl()
348 size = error; in atm_dev_ioctl()
387 if (size < 0) { in atm_dev_ioctl()
388 error = (size == -ENOIOCTLCMD ? -ENOTTY : size); in atm_dev_ioctl()
[all …]
/net/core/
A Dtso.c9 int size, bool is_last) in tso_build_hdr() argument
19 iph->tot_len = htons(size + hdr_len - mac_hdr_len); in tso_build_hdr()
24 iph->payload_len = htons(size + tso->tlen); in tso_build_hdr()
41 uh->len = htons(sizeof(*uh) + size); in tso_build_hdr()
49 tso->size -= size; in tso_build_data()
50 tso->data += size; in tso_build_data()
52 if ((tso->size == 0) && in tso_build_data()
57 tso->size = skb_frag_size(frag); in tso_build_data()
76 tso->size = skb_headlen(skb) - hdr_len; in tso_start()
78 if ((tso->size == 0) && in tso_start()
[all …]
A Ddev.h167 unsigned int size) in netif_set_gso_max_size() argument
170 WRITE_ONCE(dev->gso_max_size, size); in netif_set_gso_max_size()
171 if (size <= GSO_LEGACY_MAX_SIZE) in netif_set_gso_max_size()
172 WRITE_ONCE(dev->gso_ipv4_max_size, size); in netif_set_gso_max_size()
183 unsigned int size) in netif_set_gro_max_size() argument
186 WRITE_ONCE(dev->gro_max_size, size); in netif_set_gro_max_size()
187 if (size <= GRO_LEGACY_MAX_SIZE) in netif_set_gro_max_size()
192 unsigned int size) in netif_set_gso_ipv4_max_size() argument
195 WRITE_ONCE(dev->gso_ipv4_max_size, size); in netif_set_gso_ipv4_max_size()
199 unsigned int size) in netif_set_gro_ipv4_max_size() argument
[all …]
/net/ipv4/netfilter/
A Darp_tables.c358 if (pos + size >= newinfo->size) in mark_source_chains()
361 pos += size; in mark_source_chains()
530 newinfo->size = repl->size; in translate_table()
828 info.size = private->size; in get_info()
866 if (get.size == private->size) in get_entries()
1057 u32 size; member
1115 *size += off; in check_compat_entry_size_and_hooks()
1174 size = compatr->size; in translate_compat_table()
1210 size = compatr->size; in translate_compat_table()
1229 repl.size = newinfo->size; in translate_compat_table()
[all …]
A Dip_tables.c420 if (pos + size >= newinfo->size) in mark_source_chains()
423 pos += size; in mark_source_chains()
669 newinfo->size = repl->size; in translate_table()
983 info.size = private->size; in get_info()
1021 if (get.size == private->size) in get_entries()
1209 u32 size; member
1336 *size += off; in check_compat_entry_size_and_hooks()
1406 size = compatr->size; in translate_compat_table()
1442 size = compatr->size; in translate_compat_table()
1466 repl.size = newinfo->size; in translate_compat_table()
[all …]
/net/ipv6/netfilter/
A Dip6_tables.c438 if (pos + size >= newinfo->size) in mark_source_chains()
441 pos += size; in mark_source_chains()
686 newinfo->size = repl->size; in translate_table()
999 info.size = private->size; in get_info()
1038 if (get.size == private->size) in get_entries()
1225 u32 size; member
1352 *size += off; in check_compat_entry_size_and_hooks()
1421 size = compatr->size; in translate_compat_table()
1457 size = compatr->size; in translate_compat_table()
1475 repl.size = newinfo->size; in translate_compat_table()
[all …]
/net/ipv4/
A Dtcp_bpf.c37 u32 size, copied = 0; in bpf_tcp_ingress() local
58 sk_mem_charge(sk, size); in bpf_tcp_ingress()
61 copied += size; in bpf_tcp_ingress()
67 apply_bytes -= size; in bpf_tcp_ingress()
97 int size, ret = 0; in tcp_bpf_push() local
128 msg->sg.size -= ret; in tcp_bpf_push()
133 if (ret != size) { in tcp_bpf_push()
134 size -= ret; in tcp_bpf_push()
400 delta = msg->sg.size; in tcp_bpf_send_verdict()
402 delta -= msg->sg.size; in tcp_bpf_send_verdict()
[all …]
/net/9p/
A Dprotocol.c213 size_t len = min(pdu->size - pdu->offset, size); in pdu_read()
217 return size - len; in pdu_read()
222 size_t len = min(pdu->capacity - pdu->size, size); in pdu_write()
225 pdu->size += len; in pdu_write()
226 return size - len; in pdu_write()
232 size_t len = min(pdu->capacity - pdu->size, size); in pdu_write_u()
237 pdu->size += len; in pdu_write_u()
749 int size = pdu->size; in p9pdu_finalize() local
752 pdu->size = 0; in p9pdu_finalize()
754 pdu->size = size; in p9pdu_finalize()
[all …]
/net/smc/
A Dsmc_cdc.h94 if (curs->count >= size) { in smc_curs_add()
96 curs->count -= size; in smc_curs_add()
155 ((size - old->count) + new->count)); in smc_curs_diff()
169 return -smc_curs_diff(size, new, old); in smc_curs_comp()
170 return smc_curs_diff(size, old, new); in smc_curs_comp()
182 (size - old->count) + new->count + in smc_curs_diff_large()
183 (new->wrap - old->wrap - 1) * size, in smc_curs_diff_large()
184 size); in smc_curs_diff_large()
188 (size - old->count) + new->count + in smc_curs_diff_large()
189 (new->wrap + 0xffff - old->wrap) * size, in smc_curs_diff_large()
[all …]
/net/nfc/
A Dllcp_commands.c314 u8 cmd, u16 size) in llcp_allocate_pdu() argument
361 u16 size = 0; in nfc_llcp_send_symm() local
368 size += LLCP_HEADER_SIZE; in nfc_llcp_send_symm()
402 u16 size = 0; in nfc_llcp_send_connect() local
432 size += miux_tlv_length; in nfc_llcp_send_connect()
439 size += rw_tlv_length; in nfc_llcp_send_connect()
476 u16 size = 0; in nfc_llcp_send_cc() local
494 size += miux_tlv_length; in nfc_llcp_send_cc()
501 size += rw_tlv_length; in nfc_llcp_send_cc()
531 u16 size = 0; in nfc_llcp_allocate_snl() local
[all …]
/net/xdp/
A Dxsk_queue.c27 size_t size; in xskq_create() local
36 size = xskq_get_ring_size(q, umem_queue); in xskq_create()
42 if (unlikely(size == SIZE_MAX)) { in xskq_create()
47 size = PAGE_ALIGN(size); in xskq_create()
49 q->ring = vmalloc_user(size); in xskq_create()
55 q->ring_vmalloc_size = size; in xskq_create()
/net/batman-adv/
A Dhash.c19 for (i = 0; i < hash->size; i++) { in batadv_hash_init()
44 struct batadv_hashtable *batadv_hash_new(u32 size) in batadv_hash_new() argument
52 hash->table = kmalloc_array(size, sizeof(*hash->table), GFP_ATOMIC); in batadv_hash_new()
56 hash->list_locks = kmalloc_array(size, sizeof(*hash->list_locks), in batadv_hash_new()
61 hash->size = size; in batadv_hash_new()
82 for (i = 0; i < hash->size; i++) in batadv_hash_set_lock_class()
A Dfragmentation.c71 chain->size = 0; in batadv_frag_purge_orig()
117 chain->size = 0; in batadv_frag_init_chain()
174 chain->size = skb->len - hdr_size; in batadv_frag_insert_packet()
191 chain->size += skb->len - hdr_size; in batadv_frag_insert_packet()
204 chain->size += skb->len - hdr_size; in batadv_frag_insert_packet()
210 if (chain->size > batadv_frag_size_limit() || in batadv_frag_insert_packet()
218 chain->size = 0; in batadv_frag_insert_packet()
222 chain->size = 0; in batadv_frag_insert_packet()
252 int size, hdr_size = sizeof(struct batadv_frag_packet); in batadv_frag_merge_packets() local
264 size = ntohs(packet->total_size) + hdr_size; in batadv_frag_merge_packets()
[all …]
/net/ethtool/
A Dtunnels.c23 ssize_t size; in ethnl_udp_table_reply_size() local
27 if (size < 0) in ethnl_udp_table_reply_size()
28 return size; in ethnl_udp_table_reply_size()
30 return size + in ethnl_udp_table_reply_size()
43 size_t size; in ethnl_tunnel_info_reply_size() local
52 size = nla_total_size(0); /* _INFO_UDP_PORTS */ in ethnl_tunnel_info_reply_size()
62 size += ret; in ethnl_tunnel_info_reply_size()
64 size += udp_tunnel_nic_dump_size(req_base->dev, i); in ethnl_tunnel_info_reply_size()
71 size += ret; in ethnl_tunnel_info_reply_size()
73 size += nla_total_size(0) + /* _TABLE_ENTRY */ in ethnl_tunnel_info_reply_size()
[all …]
A Dphy.c40 size_t size = 0; in phy_reply_size() local
43 size += nla_total_size(sizeof(u32)); in phy_reply_size()
47 size += nla_total_size(strlen(rep_data->drvname) + 1); in phy_reply_size()
50 size += nla_total_size(strlen(rep_data->name) + 1); in phy_reply_size()
53 size += nla_total_size(sizeof(u32)); in phy_reply_size()
57 size += nla_total_size(strlen(rep_data->upstream_sfp_name) + 1); in phy_reply_size()
61 size += nla_total_size(sizeof(u32)); in phy_reply_size()
65 size += nla_total_size(strlen(rep_data->downstream_sfp_name) + 1); in phy_reply_size()
67 return size; in phy_reply_size()
/net/sunrpc/xprtrdma/
A Dbackchannel.c172 size_t size; in rpcrdma_bc_rqst_get() local
191 size = min_t(size_t, r_xprt->rx_ep->re_inline_recv, PAGE_SIZE); in rpcrdma_bc_rqst_get()
192 req = rpcrdma_req_create(r_xprt, size); in rpcrdma_bc_rqst_get()
204 xdr_buf_init(&rqst->rq_snd_buf, rdmab_data(req->rl_sendbuf), size); in rpcrdma_bc_rqst_get()
227 size_t size; in rpcrdma_bc_receive_call() local
231 size = xdr_stream_remaining(&rep->rr_stream); in rpcrdma_bc_receive_call()
235 __func__, be32_to_cpup(p), size); in rpcrdma_bc_receive_call()
236 pr_info("RPC: %s: %*ph\n", __func__, size, p); in rpcrdma_bc_receive_call()
246 rqst->rq_private_buf.len = size; in rpcrdma_bc_receive_call()
251 buf->head[0].iov_len = size; in rpcrdma_bc_receive_call()
[all …]
/net/bpf/
A Dtest_run.c455 u32 copy_size = size; in bpf_test_finish()
502 if (copy_to_user(&uattr->test.data_size_out, &size, sizeof(size))) in bpf_test_finish()
671 size = SKB_DATA_ALIGN(size); in BTF_ID_FLAGS()
836 size = min_t(u32, max_size, size); in bpf_ctx_init()
847 u32 size) in bpf_ctx_finish() argument
863 if (copy_to_user(&uattr->test.ctx_size_out, &size, sizeof(size))) in bpf_ctx_finish()
1129 size = skb->len; in bpf_prog_test_run_skb()
1263 size = max_data_sz; in bpf_prog_test_run_xdp()
1313 size += data_len; in bpf_prog_test_run_xdp()
1386 if (size < ETH_HLEN) in bpf_prog_test_run_flow_dissector()
[all …]
/net/ceph/
A Dosdmap.c476 int size = 0; in crush_decode() local
507 BUG_ON(size == 0); in crush_decode()
841 pi->min_size = pi->size - pi->size / 2; in decode_pool()
2238 if (lhs->size == rhs->size && in __osds_equal()
2286 dest->size = src->size; in ceph_osds_copy()
2358 if (!old_acting->size && !new_acting->size) in primary_changed()
2361 if (!old_acting->size ^ !new_acting->size) in primary_changed()
2564 pi->size); in pg_to_raw_osds()
2583 pi->size); in pg_to_raw_osds()
2587 raw->size = len; in pg_to_raw_osds()
[all …]
A Dmessenger_v1.c618 int size; in read_partial_banner() local
626 end = size; in read_partial_banner()
632 end += size; in read_partial_banner()
639 end += size; in read_partial_banner()
651 int size; in read_partial_connect() local
658 end = size; in read_partial_connect()
672 end += size; in read_partial_connect()
1150 int size; in read_partial_message() local
1163 end = size; in read_partial_message()
1269 end += size; in read_partial_message()
[all …]
/net/bluetooth/cmtp/
A Dcore.c110 int size; in cmtp_add_msgpart() local
114 size = (skb) ? skb->len + count : count; in cmtp_add_msgpart()
116 nskb = alloc_skb(size, GFP_ATOMIC); in cmtp_add_msgpart()
213 unsigned int size, tail; in cmtp_process_transmit() local
243 if (size < 256) { in cmtp_process_transmit()
247 | ((skb->len == size) ? 0x00 : 0x01); in cmtp_process_transmit()
248 hdr[1] = size; in cmtp_process_transmit()
254 hdr[1] = size & 0xff; in cmtp_process_transmit()
255 hdr[2] = size >> 8; in cmtp_process_transmit()
258 skb_copy_from_linear_data(skb, skb_put(nskb, size), size); in cmtp_process_transmit()
[all …]
/net/netfilter/
A Dx_tables.c441 size -= res; in textify_hooks()
468 if (strnlen(name, size) == size) in xt_check_proc_name()
773 *size += off; in xt_compat_match_from_user()
803 *size -= off; in xt_compat_match_to_user()
1074 u64 size; in xt_copy_counters() local
1108 if (size != (u64)len) in xt_copy_counters()
1154 *size += off; in xt_compat_target_from_user()
1178 *size -= off; in xt_compat_target_to_user()
1198 info->size = size; in xt_alloc_table_info()
1329 unsigned int size; in xt_jumpstack_alloc() local
[all …]
A Dnft_byteorder.c23 u8 size; member
39 switch (priv->size) { in nft_byteorder_eval()
102 u32 size, len; in nft_byteorder_init() local
121 err = nft_parse_u32_check(tb[NFTA_BYTEORDER_SIZE], U8_MAX, &size); in nft_byteorder_init()
125 priv->size = size; in nft_byteorder_init()
127 switch (priv->size) { in nft_byteorder_init()
165 if (nla_put_be32(skb, NFTA_BYTEORDER_SIZE, htonl(priv->size))) in nft_byteorder_dump()
185 .size = NFT_EXPR_SIZE(sizeof(struct nft_byteorder)),
A Dnft_set_pipapo.h249 u64 size; in pipapo_estimate_size() local
270 size = desc->size * entry_size; in pipapo_estimate_size()
271 if (size && div_u64(size, desc->size) != entry_size) in pipapo_estimate_size()
274 size += sizeof(struct nft_pipapo) + sizeof(struct nft_pipapo_match) * 2; in pipapo_estimate_size()
276 size += sizeof(struct nft_pipapo_field) * desc->field_count; in pipapo_estimate_size()
278 return size; in pipapo_estimate_size()
/net/vmw_vsock/
A Dvmci_transport.c116 u64 size, in vmci_transport_packet_init() argument
139 pkt->u.size = 0; in vmci_transport_packet_init()
144 pkt->u.size = size; in vmci_transport_packet_init()
155 pkt->u.size = 0; in vmci_transport_packet_init()
169 pkt->u.size = size; in vmci_transport_packet_init()
189 u64 size, in __vmci_transport_send_control_pkt() argument
210 u64 size, in vmci_transport_reply_control_pkt_fast() argument
234 u64 size, in vmci_transport_send_control_pkt_bh() argument
280 u64 size, in vmci_transport_send_control_pkt() argument
614 size_t size; in vmci_transport_recv_dgram_cb() local
[all …]

Completed in 78 milliseconds

12345678910>>...16