Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/infiniband/sw/rxe/
Drxe_queue.c55 struct rxe_queue *rxe_queue_init(struct rxe_dev *rxe, int *num_elem, in rxe_queue_init() argument
63 if (*num_elem < 0) in rxe_queue_init()
83 num_slots = *num_elem + 1; in rxe_queue_init()
98 *num_elem = num_slots - 1; in rxe_queue_init()
111 unsigned int num_elem) in resize_finish() argument
118 if (!queue_empty(q, q->type) && (num_elem < queue_count(q, type))) in resize_finish()
153 unsigned int num_elem = *num_elem_p; in rxe_queue_resize() local
158 new_q = rxe_queue_init(q->rxe, &num_elem, elem_size, q->type); in rxe_queue_resize()
174 err = resize_finish(q, new_q, num_elem); in rxe_queue_resize()
177 err = resize_finish(q, new_q, num_elem); in rxe_queue_resize()
[all …]
Drxe_pool.c107 atomic_set(&pool->num_elem, 0); in rxe_pool_init()
125 if (atomic_inc_return(&pool->num_elem) > pool->max_elem) in __rxe_add_to_pool()
149 atomic_dec(&pool->num_elem); in __rxe_add_to_pool()
235 atomic_dec(&pool->num_elem); in __rxe_cleanup()
Drxe_pool.h38 atomic_t num_elem; member
Drxe_queue.h85 struct rxe_queue *rxe_queue_init(struct rxe_dev *rxe, int *num_elem,
/linux-6.6.21/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-6.6.21/kernel/bpf/
Dstackmap.c389 u32 trace_nr, copy_len, elem_size, num_elem, max_depth; in __bpf_get_stack() local
422 num_elem = size / elem_size; in __bpf_get_stack()
423 max_depth = num_elem + skip; in __bpf_get_stack()
441 trace_nr = (trace_nr <= num_elem) ? trace_nr : num_elem; in __bpf_get_stack()
/linux-6.6.21/drivers/net/ethernet/qlogic/qed/
Dqed_sp.h276 int qed_eq_alloc(struct qed_hwfn *p_hwfn, u16 num_elem);
Dqed_spq.c397 int qed_eq_alloc(struct qed_hwfn *p_hwfn, u16 num_elem) in qed_eq_alloc() argument
403 .num_elems = num_elem, in qed_eq_alloc()
/linux-6.6.21/net/tls/
Dtls_sw.c1369 int rc = 0, i = 0, num_elem = *pages_used, maxpages; in tls_setup_from_iter() local
1377 maxpages = to_max_pages - num_elem; in tls_setup_from_iter()
1395 sg_set_page(&to[num_elem], in tls_setup_from_iter()
1397 sg_unmark_end(&to[num_elem]); in tls_setup_from_iter()
1404 num_elem++; in tls_setup_from_iter()
1408 if (num_elem > *pages_used) in tls_setup_from_iter()
1409 sg_mark_end(&to[num_elem - 1]); in tls_setup_from_iter()
1413 *pages_used = num_elem; in tls_setup_from_iter()
/linux-6.6.21/arch/x86/kernel/apic/
Dx2apic_uv_x.c1492 static int __init alloc_conv_table(int num_elem, unsigned short **table) in alloc_conv_table() argument
1497 bytes = num_elem * sizeof(*table[0]); in alloc_conv_table()
1501 for (i = 0; i < num_elem; i++) in alloc_conv_table()
/linux-6.6.21/drivers/staging/rtl8723bs/core/
Drtw_security.c1473 static int omac1_aes_128_vector(u8 *key, size_t num_elem, in omac1_aes_128_vector() argument
1488 for (e = 0; e < num_elem; e++) in omac1_aes_128_vector()
/linux-6.6.21/drivers/infiniband/hw/irdma/
Dtype.h774 u32 num_elem; member
Dctrl.c4170 if (info->num_elem < info->dev->hw_attrs.uk_attrs.min_hw_cq_size || in irdma_sc_ccq_init()
4171 info->num_elem > info->dev->hw_attrs.uk_attrs.max_hw_cq_size) in irdma_sc_ccq_init()
4189 cq->cq_uk.cq_size = info->num_elem; in irdma_sc_ccq_init()
4192 IRDMA_RING_INIT(cq->cq_uk.cq_ring, info->num_elem); in irdma_sc_ccq_init()
Dhw.c1061 info.num_elem = IW_CCQ_SIZE; in irdma_create_ccq()