Home
last modified time | relevance | path

Searched refs:num_elem (Results 1 – 13 of 13) sorted by relevance

/Linux-v5.4/drivers/infiniband/sw/rxe/
Drxe_queue.c80 int *num_elem, in rxe_queue_init() argument
88 if (*num_elem < 0) in rxe_queue_init()
107 num_slots = *num_elem + 1; in rxe_queue_init()
122 *num_elem = num_slots - 1; in rxe_queue_init()
136 unsigned int num_elem) in resize_finish() argument
138 if (!queue_empty(q) && (num_elem < queue_count(q))) in resize_finish()
159 unsigned int num_elem = *num_elem_p; in rxe_queue_resize() local
163 new_q = rxe_queue_init(q->rxe, &num_elem, elem_size); in rxe_queue_resize()
179 err = resize_finish(q, new_q, num_elem); in rxe_queue_resize()
182 err = resize_finish(q, new_q, num_elem); in rxe_queue_resize()
[all …]
Drxe_pool.c216 atomic_set(&pool->num_elem, 0); in rxe_pool_init()
260 if (atomic_read(&pool->num_elem) > 0) in rxe_pool_cleanup()
406 if (atomic_inc_return(&pool->num_elem) > pool->max_elem) in rxe_alloc()
421 atomic_dec(&pool->num_elem); in rxe_alloc()
445 if (atomic_inc_return(&pool->num_elem) > pool->max_elem) in rxe_add_to_pool()
454 atomic_dec(&pool->num_elem); in rxe_add_to_pool()
472 atomic_dec(&pool->num_elem); in rxe_elem_release()
Drxe_pool.h103 atomic_t num_elem; member
Drxe_queue.h86 int *num_elem,
/Linux-v5.4/net/mac80211/
Dfils_aead.c26 size_t num_elem, const u8 *addr[], size_t len[], u8 *v) in aes_s2v() argument
37 for (i = 0; i < num_elem - 1; i++) { in aes_s2v()
68 size_t num_elem, const u8 *addr[], in aes_siv_encrypt() argument
81 addr[num_elem] = plain; in aes_siv_encrypt()
82 len[num_elem] = plain_len; in aes_siv_encrypt()
83 num_elem++; in aes_siv_encrypt()
93 res = aes_s2v(tfm, num_elem, addr, len, v); in aes_siv_encrypt()
146 size_t num_elem, const u8 *addr[], size_t len[], in aes_siv_decrypt() argument
160 addr[num_elem] = out; in aes_siv_decrypt()
161 len[num_elem] = crypt_len; in aes_siv_decrypt()
[all …]
/Linux-v5.4/kernel/bpf/
Dstackmap.c448 u32 init_nr, trace_nr, copy_len, elem_size, num_elem; in BPF_CALL_4() local
468 num_elem = size / elem_size; in BPF_CALL_4()
469 if (sysctl_perf_event_max_stack < num_elem) in BPF_CALL_4()
472 init_nr = sysctl_perf_event_max_stack - num_elem; in BPF_CALL_4()
483 trace_nr = (trace_nr <= num_elem) ? trace_nr : num_elem; in BPF_CALL_4()
/Linux-v5.4/net/tls/
Dtls_sw.c1286 int rc = 0, i = 0, num_elem = *pages_used, maxpages; in tls_setup_from_iter() local
1294 maxpages = to_max_pages - num_elem; in tls_setup_from_iter()
1314 sg_set_page(&to[num_elem], in tls_setup_from_iter()
1316 sg_unmark_end(&to[num_elem]); in tls_setup_from_iter()
1323 num_elem++; in tls_setup_from_iter()
1327 if (num_elem > *pages_used) in tls_setup_from_iter()
1328 sg_mark_end(&to[num_elem - 1]); in tls_setup_from_iter()
1333 *pages_used = num_elem; in tls_setup_from_iter()
/Linux-v5.4/drivers/net/ethernet/qlogic/qed/
Dqed_sp.h303 int qed_eq_alloc(struct qed_hwfn *p_hwfn, u16 num_elem);
Dqed_spq.c405 int qed_eq_alloc(struct qed_hwfn *p_hwfn, u16 num_elem) in qed_eq_alloc() argument
419 num_elem, in qed_eq_alloc()
/Linux-v5.4/drivers/staging/rtl8723bs/core/
Drtw_security.c2310 static int omac1_aes_128_vector(u8 *key, size_t num_elem, in omac1_aes_128_vector() argument
2324 for (e = 0; e < num_elem; e++) in omac1_aes_128_vector()
/Linux-v5.4/drivers/infiniband/hw/i40iw/
Di40iw_type.h653 u32 num_elem; member
Di40iw_ctrl.c1939 if (info->num_elem < I40IW_MIN_CQ_SIZE || info->num_elem > I40IW_MAX_CQ_SIZE) in i40iw_sc_ccq_init()
1957 cq->cq_uk.cq_size = info->num_elem; in i40iw_sc_ccq_init()
1960 I40IW_RING_INIT(cq->cq_uk.cq_ring, info->num_elem); in i40iw_sc_ccq_init()
Di40iw_main.c659 info.num_elem = IW_CCQ_SIZE; in i40iw_create_ccq()