Searched refs:mem (Results 1 – 13 of 13) sorted by relevance
| /net/core/ |
| A D | xdp.c | 58 return xa->mem.id != mem_id; in xdp_mem_id_cmp() 120 int type = mem->type; in xdp_unreg_mem_model() 121 int id = mem->id; in xdp_unreg_mem_model() 124 mem->id = 0; in xdp_unreg_mem_model() 125 mem->type = 0; in xdp_unreg_mem_model() 283 mem->type = type; in __xdp_reg_mem_model() 310 mem->id = id; in __xdp_reg_mem_model() 311 xdp_alloc->mem = *mem; in __xdp_reg_mem_model() 318 mem->id = 0; in __xdp_reg_mem_model() 383 struct xdp_mem_info mem; in xdp_reg_page_pool() local [all …]
|
| A D | sock_diag.c | 68 u32 mem[SK_MEMINFO_VARS]; in sock_diag_put_meminfo() local 70 sk_get_meminfo(sk, mem); in sock_diag_put_meminfo() 72 return nla_put(skb, attrtype, sizeof(mem), &mem); in sock_diag_put_meminfo()
|
| A D | sock.c | 2860 void *mem; in sock_kmalloc() local 2866 if (mem) in sock_kmalloc() 2867 return mem; in sock_kmalloc() 2881 void *mem; in sock_kmemdup() local 2884 if (mem) in sock_kmemdup() 2885 memcpy(mem, src, size); in sock_kmemdup() 2886 return mem; in sock_kmemdup() 2897 if (WARN_ON_ONCE(!mem)) in __sock_kfree_s() 2900 kfree_sensitive(mem); in __sock_kfree_s() 2902 kfree(mem); in __sock_kfree_s() [all …]
|
| A D | page_pool.c | 1197 const struct xdp_mem_info *mem) in page_pool_use_xdp_mem() argument 1201 pool->xdp_mem_id = mem->id; in page_pool_use_xdp_mem()
|
| A D | filter.c | 4150 if (rxq->mem.type == MEM_TYPE_XSK_BUFF_POOL) in bpf_xdp_frags_increase_tail() 4172 enum xdp_mem_type mem_type = xdp->rxq->mem.type; in bpf_xdp_shrink_data()
|
| /net/sctp/ |
| A D | diag.c | 157 u32 mem[SK_MEMINFO_VARS]; in inet_sctp_diag_fill() local 164 mem[SK_MEMINFO_WMEM_ALLOC] = amt; in inet_sctp_diag_fill() 169 mem[SK_MEMINFO_RMEM_ALLOC] = amt; in inet_sctp_diag_fill() 170 mem[SK_MEMINFO_RCVBUF] = sk->sk_rcvbuf; in inet_sctp_diag_fill() 171 mem[SK_MEMINFO_SNDBUF] = sk->sk_sndbuf; in inet_sctp_diag_fill() 172 mem[SK_MEMINFO_FWD_ALLOC] = sk->sk_forward_alloc; in inet_sctp_diag_fill() 173 mem[SK_MEMINFO_WMEM_QUEUED] = sk->sk_wmem_queued; in inet_sctp_diag_fill() 174 mem[SK_MEMINFO_OPTMEM] = atomic_read(&sk->sk_omem_alloc); in inet_sctp_diag_fill() 175 mem[SK_MEMINFO_BACKLOG] = READ_ONCE(sk->sk_backlog.len); in inet_sctp_diag_fill() 176 mem[SK_MEMINFO_DROPS] = atomic_read(&sk->sk_drops); in inet_sctp_diag_fill() [all …]
|
| /net/netfilter/ |
| A D | x_tables.c | 719 size_t mem; in xt_compat_init_offsets() local 1073 void *mem; in xt_copy_counters() local 1111 mem = vmalloc(len); in xt_copy_counters() 1112 if (!mem) in xt_copy_counters() 1116 return mem; in xt_copy_counters() 1118 vfree(mem); in xt_copy_counters() 1372 struct xt_counters *mem; in xt_counters_alloc() local 1377 counters *= sizeof(*mem); in xt_counters_alloc() 1933 if (!state->mem) { in xt_percpu_counter_alloc() 1936 if (!state->mem) in xt_percpu_counter_alloc() [all …]
|
| A D | nft_set_pipapo.c | 1146 void *mem; local 1152 mem = s; 1153 mem -= s->align_off; 1154 kvfree(mem);
|
| /net/bpf/ |
| A D | test_run.c | 118 struct xdp_mem_info mem; member 156 frm->mem_type = new_ctx->rxq->mem.type; in xdp_test_run_init_page() 189 err = xdp_reg_mem_model(&xdp->mem, MEM_TYPE_PAGE_POOL, pp); in xdp_test_run_setup() 199 xdp->rxq.mem.type = MEM_TYPE_PAGE_POOL; in xdp_test_run_setup() 200 xdp->rxq.mem.id = pp->xdp_mem_id; in xdp_test_run_setup() 217 xdp_unreg_mem_model(&xdp->mem); in xdp_test_run_teardown() 249 head->frame->mem_type = head->orig_ctx.rxq->mem.type; in reset_ctx()
|
| /net/sched/ |
| A D | sch_fq_codel.c | 145 unsigned int mem = 0; in fq_codel_drop() local 170 mem += get_codel_cb(skb)->mem_usage; in fq_codel_drop() 178 q->memory_usage -= mem; in fq_codel_drop()
|
| /net/tls/ |
| A D | tls_sw.c | 1509 u8 *mem; in tls_decrypt_sg() local 1543 mem = kmalloc(aead_size + struct_size(dctx, sg, size_add(n_sgin, n_sgout)), in tls_decrypt_sg() 1545 if (!mem) { in tls_decrypt_sg() 1551 aead_req = (struct aead_request *)mem; in tls_decrypt_sg() 1552 dctx = (struct tls_decrypt_ctx *)(mem + aead_size); in tls_decrypt_sg() 1656 kfree(mem); in tls_decrypt_sg()
|
| /net/tipc/ |
| A D | crypto.c | 692 u8 *mem; in tipc_aead_mem_alloc() local 705 mem = kmalloc(len, GFP_ATOMIC); in tipc_aead_mem_alloc() 706 if (!mem) in tipc_aead_mem_alloc() 709 *iv = (u8 *)PTR_ALIGN(mem + crypto_ctx_size, in tipc_aead_mem_alloc() 716 return (void *)mem; in tipc_aead_mem_alloc()
|
| /net/xdp/ |
| A D | xsk.c | 368 if (xdp->rxq->mem.type == MEM_TYPE_XSK_BUFF_POOL) { in xsk_rcv()
|
Completed in 79 milliseconds