Home
last modified time | relevance | path

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

1234567891011

/net/wireless/
Dradiotap.c26 [IEEE80211_RADIOTAP_TSFT] = { .align = 8, .size = 8, },
27 [IEEE80211_RADIOTAP_FLAGS] = { .align = 1, .size = 1, },
28 [IEEE80211_RADIOTAP_RATE] = { .align = 1, .size = 1, },
29 [IEEE80211_RADIOTAP_CHANNEL] = { .align = 2, .size = 4, },
30 [IEEE80211_RADIOTAP_FHSS] = { .align = 2, .size = 2, },
31 [IEEE80211_RADIOTAP_DBM_ANTSIGNAL] = { .align = 1, .size = 1, },
32 [IEEE80211_RADIOTAP_DBM_ANTNOISE] = { .align = 1, .size = 1, },
33 [IEEE80211_RADIOTAP_LOCK_QUALITY] = { .align = 2, .size = 2, },
34 [IEEE80211_RADIOTAP_TX_ATTENUATION] = { .align = 2, .size = 2, },
35 [IEEE80211_RADIOTAP_DB_TX_ATTENUATION] = { .align = 2, .size = 2, },
[all …]
/net/sctp/
Dssnmap.c56 int size; in sctp_ssnmap_new() local
58 size = sctp_ssnmap_size(in, out); in sctp_ssnmap_new()
59 if (size <= KMALLOC_MAX_SIZE) in sctp_ssnmap_new()
60 retval = kmalloc(size, gfp); in sctp_ssnmap_new()
63 __get_free_pages(gfp, get_order(size)); in sctp_ssnmap_new()
75 if (size <= KMALLOC_MAX_SIZE) in sctp_ssnmap_new()
78 free_pages((unsigned long)retval, get_order(size)); in sctp_ssnmap_new()
104 size_t size; in sctp_ssnmap_clear() local
106 size = (map->in.len + map->out.len) * sizeof(__u16); in sctp_ssnmap_clear()
107 memset(map->in.ssn, 0x00, size); in sctp_ssnmap_clear()
[all …]
/net/core/
Dtso.c15 int size, bool is_last) in tso_build_hdr() argument
25 iph->tot_len = htons(size + hdr_len - mac_hdr_len); in tso_build_hdr()
39 void tso_build_data(struct sk_buff *skb, struct tso_t *tso, int size) in tso_build_data() argument
41 tso->tcp_seq += size; in tso_build_data()
42 tso->size -= size; in tso_build_data()
43 tso->data += size; in tso_build_data()
45 if ((tso->size == 0) && in tso_build_data()
50 tso->size = frag->size; in tso_build_data()
66 tso->size = skb_headlen(skb) - hdr_len; in tso_start()
68 if ((tso->size == 0) && in tso_start()
[all …]
Dsysctl_net_core.c36 unsigned int orig_size, size; in rps_sock_flow_sysctl() local
39 .data = &size, in rps_sock_flow_sysctl()
40 .maxlen = sizeof(size), in rps_sock_flow_sysctl()
50 size = orig_size = orig_sock_table ? orig_sock_table->mask + 1 : 0; in rps_sock_flow_sysctl()
55 if (size) { in rps_sock_flow_sysctl()
56 if (size > 1<<30) { in rps_sock_flow_sysctl()
61 size = roundup_pow_of_two(size); in rps_sock_flow_sysctl()
62 if (size != orig_size) { in rps_sock_flow_sysctl()
64 vmalloc(RPS_SOCK_FLOW_TABLE_SIZE(size)); in rps_sock_flow_sysctl()
70 sock_table->mask = size - 1; in rps_sock_flow_sysctl()
[all …]
/net/ipv4/netfilter/
Darp_tables.c407 unsigned int oldpos, size; in mark_source_chains() local
436 size = e->next_offset; in mark_source_chains()
438 (entry0 + pos + size); in mark_source_chains()
439 if (pos + size >= newinfo->size) in mark_source_chains()
442 pos += size; in mark_source_chains()
449 if (newpos > newinfo->size - in mark_source_chains()
468 if (newpos >= newinfo->size) in mark_source_chains()
523 find_check_entry(struct arpt_entry *e, const char *name, unsigned int size) in find_check_entry() argument
641 newinfo->size = repl->size; in translate_table()
650 duprintf("translate_table: size %u\n", newinfo->size); in translate_table()
[all …]
Dip_tables.c270 xt_entry_foreach(iter, root, private->size - private->hook_entry[hook]) in trace_packet()
480 unsigned int oldpos, size; in mark_source_chains() local
517 size = e->next_offset; in mark_source_chains()
519 (entry0 + pos + size); in mark_source_chains()
520 if (pos + size >= newinfo->size) in mark_source_chains()
523 pos += size; in mark_source_chains()
530 if (newpos > newinfo->size - in mark_source_chains()
548 if (newpos >= newinfo->size) in mark_source_chains()
663 unsigned int size) in find_check_entry() argument
810 newinfo->size = repl->size; in translate_table()
[all …]
/net/atm/
Dresources.c198 int error, len, number, size = 0; in atm_dev_ioctl() local
230 size += sizeof(int); in atm_dev_ioctl()
231 if (size > len) { in atm_dev_ioctl()
235 tmp_buf = kmalloc(size, GFP_ATOMIC); in atm_dev_ioctl()
246 error = ((copy_to_user(buf, tmp_buf, size)) || in atm_dev_ioctl()
247 put_user(size, iobuf_len)) in atm_dev_ioctl()
289 size = strlen(dev->type) + 1; in atm_dev_ioctl()
290 if (copy_to_user(buf, dev->type, size)) { in atm_dev_ioctl()
296 size = ESI_LEN; in atm_dev_ioctl()
297 if (copy_to_user(buf, dev->esi, size)) { in atm_dev_ioctl()
[all …]
/net/9p/
Dprotocol.c55 size_t pdu_read(struct p9_fcall *pdu, void *data, size_t size) in pdu_read() argument
57 size_t len = min(pdu->size - pdu->offset, size); in pdu_read()
60 return size - len; in pdu_read()
63 static size_t pdu_write(struct p9_fcall *pdu, const void *data, size_t size) in pdu_write() argument
65 size_t len = min(pdu->capacity - pdu->size, size); in pdu_write()
66 memcpy(&pdu->sdata[pdu->size], data, len); in pdu_write()
67 pdu->size += len; in pdu_write()
68 return size - len; in pdu_write()
72 pdu_write_u(struct p9_fcall *pdu, const char __user *udata, size_t size) in pdu_write_u() argument
74 size_t len = min(pdu->capacity - pdu->size, size); in pdu_write_u()
[all …]
/net/ipv6/netfilter/
Dip6_tables.c296 xt_entry_foreach(iter, root, private->size - private->hook_entry[hook]) in trace_packet()
490 unsigned int oldpos, size; in mark_source_chains() local
527 size = e->next_offset; in mark_source_chains()
529 (entry0 + pos + size); in mark_source_chains()
530 if (pos + size >= newinfo->size) in mark_source_chains()
533 pos += size; in mark_source_chains()
540 if (newpos > newinfo->size - in mark_source_chains()
558 if (newpos >= newinfo->size) in mark_source_chains()
674 unsigned int size) in find_check_entry() argument
820 newinfo->size = repl->size; in translate_table()
[all …]
/net/netfilter/ipset/
Dip_set_list_set.c41 u32 size; /* size of set list array */ member
64 for (i = 0; i < map->size; i++) { in list_set_ktest()
97 for (i = 0; i < map->size; i++) { in list_set_kadd()
121 for (i = 0; i < map->size; i++) { in list_set_kdel()
161 if (i >= map->size) in id_eq()
178 if (i == map->size - 1) { in list_set_add()
184 map->size - 1); in list_set_add()
192 set->dsize * (map->size - (i + 1))); in list_set_add()
219 if (i < map->size - 1) in list_set_del()
221 set->dsize * (map->size - (i + 1))); in list_set_del()
[all …]
/net/batman-adv/
Dhash.c26 for (i = 0; i < hash->size; i++) { in batadv_hash_init()
41 struct batadv_hashtable *batadv_hash_new(uint32_t size) in batadv_hash_new() argument
49 hash->table = kmalloc_array(size, sizeof(*hash->table), GFP_ATOMIC); in batadv_hash_new()
53 hash->list_locks = kmalloc_array(size, sizeof(*hash->list_locks), in batadv_hash_new()
58 hash->size = size; in batadv_hash_new()
74 for (i = 0; i < hash->size; i++) in batadv_hash_set_lock_class()
Dfragmentation.c62 orig_node->fragments[i].size = 0; in batadv_frag_purge_orig()
106 chain->size = 0; in batadv_frag_init_chain()
163 chain->size = skb->len - hdr_size; in batadv_frag_insert_packet()
179 chain->size += skb->len - hdr_size; in batadv_frag_insert_packet()
192 chain->size += skb->len - hdr_size; in batadv_frag_insert_packet()
198 if (chain->size > batadv_frag_size_limit() || in batadv_frag_insert_packet()
204 chain->size = 0; in batadv_frag_insert_packet()
205 } else if (ntohs(frag_packet->total_size) == chain->size) { in batadv_frag_insert_packet()
208 chain->size = 0; in batadv_frag_insert_packet()
237 int size, hdr_size = sizeof(struct batadv_frag_packet); in batadv_frag_merge_packets() local
[all …]
Dhash.h39 uint32_t size; /* size of hashtable */ member
43 struct batadv_hashtable *batadv_hash_new(uint32_t size);
65 for (i = 0; i < hash->size; i++) { in batadv_hash_delete()
91 uint32_t size) in batadv_hash_bytes() argument
96 for (i = 0; i < size; i++) { in batadv_hash_bytes()
130 index = choose(data, hash->size); in batadv_hash_add()
170 index = choose(data, hash->size); in batadv_hash_remove()
/net/netfilter/
Dnft_hash.c51 unsigned int size; in nft_hash_insert() local
56 size = sizeof(*he); in nft_hash_insert()
58 size += sizeof(he->data[0]); in nft_hash_insert()
60 he = kzalloc(size, GFP_KERNEL); in nft_hash_insert()
132 for (i = 0; i < tbl->size; i++) { in nft_hash_walk()
167 .nelem_hint = desc->size ? : NFT_HASH_ELEMENT_HINT, in nft_hash_init()
187 for (i = 0; i < tbl->size; i++) { in nft_hash_destroy()
206 if (desc->size) { in nft_hash_estimate()
207 est->size = sizeof(struct rhashtable) + in nft_hash_estimate()
208 roundup_pow_of_two(desc->size * 4 / 3) * in nft_hash_estimate()
[all …]
Dxt_quota2.c87 size_t size; in quota2_log() local
93 size = NLMSG_SPACE(sizeof(*pm)); in quota2_log()
94 size = max(size, (size_t)NLMSG_GOODSIZE); in quota2_log()
95 log_skb = alloc_skb(size, GFP_ATOMIC); in quota2_log()
142 size_t size, loff_t *ppos) in quota_proc_read() argument
151 return simple_read_from_buffer(buf, size, ppos, tmp, tmp_size); in quota_proc_read()
155 size_t size, loff_t *ppos) in quota_proc_write() argument
160 if (size > sizeof(buf)) in quota_proc_write()
161 size = sizeof(buf); in quota_proc_write()
162 if (copy_from_user(buf, input, size) != 0) in quota_proc_write()
[all …]
Dx_tables.c333 textify_hooks(char *buf, size_t size, unsigned int mask, uint8_t nfproto) in textify_hooks() argument
355 res = snprintf(p, size, "%s%s", np ? "/" : "", names[i]); in textify_hooks()
357 size -= res; in textify_hooks()
367 unsigned int size, u_int8_t proto, bool inv_proto) in xt_check_match() argument
371 if (XT_ALIGN(par->match->matchsize) != size && in xt_check_match()
381 XT_ALIGN(par->match->matchsize), size); in xt_check_match()
532 unsigned int *size) in xt_compat_match_from_user() argument
556 *size += off; in xt_compat_match_from_user()
562 void __user **dstptr, unsigned int *size) in xt_compat_match_to_user() argument
583 *size -= off; in xt_compat_match_to_user()
[all …]
Dnf_conntrack_labels.c67 unsigned int size, i; in nf_connlabels_replace() local
74 size = labels->words * sizeof(long); in nf_connlabels_replace()
75 if (size < (words32 * sizeof(u32))) in nf_connlabels_replace()
76 words32 = size / sizeof(u32); in nf_connlabels_replace()
84 size /= sizeof(u32); in nf_connlabels_replace()
85 for (i = words32; i < size; i++) /* pad */ in nf_connlabels_replace()
/net/nfc/
Dllcp_commands.c320 u8 cmd, u16 size) in llcp_allocate_pdu() argument
329 size + LLCP_HEADER_SIZE, &err); in llcp_allocate_pdu()
369 u16 size = 0; in nfc_llcp_send_symm() local
377 size += LLCP_HEADER_SIZE; in nfc_llcp_send_symm()
378 size += dev->tx_headroom + dev->tx_tailroom + NFC_HEADER_SIZE; in nfc_llcp_send_symm()
380 skb = alloc_skb(size, GFP_KERNEL); in nfc_llcp_send_symm()
404 u16 size = 0, miux; in nfc_llcp_send_connect() local
417 size += service_name_tlv_length; in nfc_llcp_send_connect()
427 size += miux_tlv_length; in nfc_llcp_send_connect()
430 size += rw_tlv_length; in nfc_llcp_send_connect()
[all …]
Ddigital_dep.c115 u8 size; in digital_skb_pull_dep_sod() local
123 size = skb->data[0]; in digital_skb_pull_dep_sod()
124 if (size != skb->len) in digital_skb_pull_dep_sod()
288 uint size; in digital_in_send_atr_req() local
290 size = DIGITAL_ATR_REQ_MIN_SIZE + gb_len; in digital_in_send_atr_req()
292 if (size > DIGITAL_ATR_REQ_MAX_SIZE) { in digital_in_send_atr_req()
297 skb = digital_skb_alloc(ddev, size); in digital_in_send_atr_req()
370 uint size; in digital_in_recv_dep_res() local
440 size = sizeof(struct digital_dep_req_res); in digital_in_recv_dep_res()
443 size++; in digital_in_recv_dep_res()
[all …]
/net/wimax/
Dop-msg.c122 const void *msg, size_t size, in wimax_msg_alloc() argument
131 msg_size = nla_total_size(size) in wimax_msg_alloc()
158 result = nla_put(skb, WIMAX_GNL_MSG_DATA, size, msg); in wimax_msg_alloc()
161 "attribute: %d\n", msg, size, result); in wimax_msg_alloc()
184 const void *wimax_msg_data_len(struct sk_buff *msg, size_t *size) in wimax_msg_data_len() argument
195 *size = nla_len(nla); in wimax_msg_data_len()
277 size_t size = skb->len; in wimax_msg_send() local
280 d_printf(1, dev, "CTX: wimax msg, %zu bytes\n", size); in wimax_msg_send()
281 d_dump(2, dev, msg, size); in wimax_msg_send()
310 const void *buf, size_t size, gfp_t gfp_flags) in wimax_msg() argument
[all …]
/net/bluetooth/cmtp/
Dcore.c109 int size; in cmtp_add_msgpart() local
113 size = (skb) ? skb->len + count : count; in cmtp_add_msgpart()
115 nskb = alloc_skb(size, GFP_ATOMIC); in cmtp_add_msgpart()
213 unsigned int size, tail; in cmtp_process_transmit() local
233 size = min_t(uint, ((tail < 258) ? (tail - 2) : (tail - 3)), skb->len); in cmtp_process_transmit()
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()
253 | ((skb->len == size) ? 0x00 : 0x01); in cmtp_process_transmit()
254 hdr[1] = size & 0xff; in cmtp_process_transmit()
[all …]
/net/ceph/crush/
Dmapper.c36 int crush_find_rule(const struct crush_map *map, int ruleset, int type, int size) in crush_find_rule() argument
44 map->rules[i]->mask.min_size <= size && in crush_find_rule()
45 map->rules[i]->mask.max_size >= size) in crush_find_rule()
72 unsigned int pr = r % bucket->size; in bucket_perm_choose()
83 bucket->size; in bucket_perm_choose()
89 for (i = 0; i < bucket->size; i++) in bucket_perm_choose()
94 for (i = 1; i < bucket->size; i++) in bucket_perm_choose()
106 if (p < bucket->size - 1) { in bucket_perm_choose()
108 (bucket->size - p); in bucket_perm_choose()
118 for (i = 0; i < bucket->size; i++) in bucket_perm_choose()
[all …]
/net/vmw_vsock/
Dvmci_transport.c139 u64 size, in vmci_transport_packet_init() argument
162 pkt->u.size = 0; in vmci_transport_packet_init()
167 pkt->u.size = size; in vmci_transport_packet_init()
178 pkt->u.size = 0; in vmci_transport_packet_init()
192 pkt->u.size = size; in vmci_transport_packet_init()
212 u64 size, in __vmci_transport_send_control_pkt() argument
221 vmci_transport_packet_init(pkt, src, dst, type, size, mode, wait, in __vmci_transport_send_control_pkt()
233 u64 size, in vmci_transport_reply_control_pkt_fast() argument
247 size, mode, wait, in vmci_transport_reply_control_pkt_fast()
257 u64 size, in vmci_transport_send_control_pkt_bh() argument
[all …]
/net/tipc/
Dname_distr.c48 u32 size; member
53 .size = 0,
58 .size = 0,
63 .size = 0,
104 static struct sk_buff *named_prepare_buf(u32 type, u32 size, u32 dest) in named_prepare_buf() argument
106 struct sk_buff *buf = tipc_buf_acquire(INT_H_SIZE + size); in named_prepare_buf()
112 msg_set_size(msg, INT_H_SIZE + size); in named_prepare_buf()
150 publ_lists[publ->scope]->size++; in tipc_named_publish()
175 publ_lists[publ->scope]->size--; in tipc_named_withdraw()
203 uint dsz = pls->size * ITEM_SIZE; in named_distribute()
/net/ceph/
Dsnapshot.c46 size_t size; in ceph_create_snap_context() local
48 size = sizeof (struct ceph_snap_context); in ceph_create_snap_context()
49 size += snap_count * sizeof (snapc->snaps[0]); in ceph_create_snap_context()
50 snapc = kzalloc(size, gfp_flags); in ceph_create_snap_context()

1234567891011