Searched refs:elem_size (Results 1 – 3 of 3) sorted by relevance
/net/sunrpc/ |
D | xdr.c | 1359 desc->elem_size > buf->len) in xdr_xcode_array2() 1367 todo = desc->array_len * desc->elem_size; in xdr_xcode_array2() 1376 while (avail_here >= desc->elem_size) { in xdr_xcode_array2() 1380 c += desc->elem_size; in xdr_xcode_array2() 1381 avail_here -= desc->elem_size; in xdr_xcode_array2() 1385 elem = kmalloc(desc->elem_size, GFP_KERNEL); in xdr_xcode_array2() 1419 if (copied || avail_page < desc->elem_size) { in xdr_xcode_array2() 1421 desc->elem_size - copied); in xdr_xcode_array2() 1423 elem = kmalloc(desc->elem_size, in xdr_xcode_array2() 1437 if (copied == desc->elem_size) in xdr_xcode_array2() [all …]
|
/net/core/ |
D | bpf_sk_storage.c | 51 u16 elem_size; member 127 if (charge_omem && omem_charge(sk, smap->elem_size)) in selem_alloc() 130 selem = kzalloc(smap->elem_size, GFP_ATOMIC | __GFP_NOWARN); in selem_alloc() 138 atomic_sub(smap->elem_size, &sk->sk_omem_alloc); in selem_alloc() 162 atomic_sub(smap->elem_size, &sk->sk_omem_alloc); in __selem_unlink_sk() 419 atomic_sub(smap->elem_size, &sk->sk_omem_alloc); in sk_storage_update() 671 smap->elem_size = sizeof(struct bpf_sk_storage_elem) + attr->value_size; in bpf_sk_storage_map_alloc() 820 atomic_sub(smap->elem_size, in bpf_sk_storage_clone()
|
D | sock_map.c | 573 u32 elem_size; member 692 new = kmalloc_node(htab->elem_size, GFP_ATOMIC | __GFP_NOWARN, in sock_hash_alloc_elem() 867 htab->elem_size = sizeof(struct bpf_htab_elem) + in sock_hash_alloc() 876 (u64) htab->elem_size * htab->map.max_entries; in sock_hash_alloc()
|