Home
last modified time | relevance | path

Searched refs:nelem (Results 1 - 25 of 25) sorted by relevance

/kernel/linux/linux-5.10/drivers/misc/sgi-gru/
H A Dgru_instructions.h142 unsigned long nelem; /* DW 3 */ member
356 * - nelem and stride are in elements
365 ins->nelem = 1; in gru_vload_phys()
377 ins->nelem = 1; in gru_vstore_phys()
384 unsigned int tri0, unsigned char xtype, unsigned long nelem, in gru_vload()
390 ins->nelem = nelem; in gru_vload()
397 unsigned int tri0, unsigned char xtype, unsigned long nelem, in gru_vstore()
403 ins->nelem = nelem; in gru_vstore()
383 gru_vload(void *cb, unsigned long mem_addr, unsigned int tri0, unsigned char xtype, unsigned long nelem, unsigned long stride, unsigned long hints) gru_vload() argument
396 gru_vstore(void *cb, unsigned long mem_addr, unsigned int tri0, unsigned char xtype, unsigned long nelem, unsigned long stride, unsigned long hints) gru_vstore() argument
409 gru_ivload(void *cb, unsigned long mem_addr, unsigned int tri0, unsigned int tri1, unsigned char xtype, unsigned long nelem, unsigned long hints) gru_ivload() argument
422 gru_ivstore(void *cb, unsigned long mem_addr, unsigned int tri0, unsigned int tri1, unsigned char xtype, unsigned long nelem, unsigned long hints) gru_ivstore() argument
435 gru_vset(void *cb, unsigned long mem_addr, unsigned long value, unsigned char xtype, unsigned long nelem, unsigned long stride, unsigned long hints) gru_vset() argument
449 gru_ivset(void *cb, unsigned long mem_addr, unsigned int tri1, unsigned long value, unsigned char xtype, unsigned long nelem, unsigned long hints) gru_ivset() argument
463 gru_vflush(void *cb, unsigned long mem_addr, unsigned long nelem, unsigned char xtype, unsigned long stride, unsigned long hints) gru_vflush() argument
484 gru_bcopy(void *cb, const unsigned long src, unsigned long dest, unsigned int tri0, unsigned int xtype, unsigned long nelem, unsigned int bufsize, unsigned long hints) gru_bcopy() argument
499 gru_bstore(void *cb, const unsigned long src, unsigned long dest, unsigned int tri0, unsigned int xtype, unsigned long nelem, unsigned long hints) gru_bstore() argument
570 gru_mesq(void *cb, unsigned long queue, unsigned long tri0, unsigned long nelem, unsigned long hints) gru_mesq() argument
[all...]
/kernel/linux/linux-6.6/drivers/misc/sgi-gru/
H A Dgru_instructions.h142 unsigned long nelem; /* DW 3 */ member
356 * - nelem and stride are in elements
365 ins->nelem = 1; in gru_vload_phys()
377 ins->nelem = 1; in gru_vstore_phys()
384 unsigned int tri0, unsigned char xtype, unsigned long nelem, in gru_vload()
390 ins->nelem = nelem; in gru_vload()
397 unsigned int tri0, unsigned char xtype, unsigned long nelem, in gru_vstore()
403 ins->nelem = nelem; in gru_vstore()
383 gru_vload(void *cb, unsigned long mem_addr, unsigned int tri0, unsigned char xtype, unsigned long nelem, unsigned long stride, unsigned long hints) gru_vload() argument
396 gru_vstore(void *cb, unsigned long mem_addr, unsigned int tri0, unsigned char xtype, unsigned long nelem, unsigned long stride, unsigned long hints) gru_vstore() argument
409 gru_ivload(void *cb, unsigned long mem_addr, unsigned int tri0, unsigned int tri1, unsigned char xtype, unsigned long nelem, unsigned long hints) gru_ivload() argument
422 gru_ivstore(void *cb, unsigned long mem_addr, unsigned int tri0, unsigned int tri1, unsigned char xtype, unsigned long nelem, unsigned long hints) gru_ivstore() argument
435 gru_vset(void *cb, unsigned long mem_addr, unsigned long value, unsigned char xtype, unsigned long nelem, unsigned long stride, unsigned long hints) gru_vset() argument
449 gru_ivset(void *cb, unsigned long mem_addr, unsigned int tri1, unsigned long value, unsigned char xtype, unsigned long nelem, unsigned long hints) gru_ivset() argument
463 gru_vflush(void *cb, unsigned long mem_addr, unsigned long nelem, unsigned char xtype, unsigned long stride, unsigned long hints) gru_vflush() argument
484 gru_bcopy(void *cb, const unsigned long src, unsigned long dest, unsigned int tri0, unsigned int xtype, unsigned long nelem, unsigned int bufsize, unsigned long hints) gru_bcopy() argument
499 gru_bstore(void *cb, const unsigned long src, unsigned long dest, unsigned int tri0, unsigned int xtype, unsigned long nelem, unsigned long hints) gru_bstore() argument
570 gru_mesq(void *cb, unsigned long queue, unsigned long tri0, unsigned long nelem, unsigned long hints) gru_mesq() argument
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/etnaviv/
H A Detnaviv_drv.h95 * The array is nelem elements of elem_size, where the base structure
98 static inline size_t size_vstruct(size_t nelem, size_t elem_size, size_t base) in size_vstruct() argument
100 if (elem_size && nelem > (SIZE_MAX - base) / elem_size) in size_vstruct()
102 return base + nelem * elem_size; in size_vstruct()
/kernel/linux/linux-6.6/drivers/gpu/drm/etnaviv/
H A Detnaviv_drv.h95 * The array is nelem elements of elem_size, where the base structure
98 static inline size_t size_vstruct(size_t nelem, size_t elem_size, size_t base) in size_vstruct() argument
100 if (elem_size && nelem > (SIZE_MAX - base) / elem_size) in size_vstruct()
102 return base + nelem * elem_size; in size_vstruct()
/kernel/linux/linux-5.10/drivers/sbus/char/
H A Doradax.c403 static void dax_unlock_pages(struct dax_ctx *ctx, int ccb_index, int nelem) in dax_unlock_pages() argument
407 for (i = ccb_index; i < ccb_index + nelem; i++) { in dax_unlock_pages()
437 int nelem, u64 *err_va) in dax_lock_pages()
441 for (i = 0; i < nelem; i++) { in dax_lock_pages()
497 dax_unlock_pages(ctx, idx, nelem); in dax_lock_pages()
758 static void dax_prt_ccbs(struct dax_ccb *ccb, int nelem) in dax_prt_ccbs() argument
764 for (i = 0; i < nelem; i++) { in dax_prt_ccbs()
777 static int dax_preprocess_usr_ccbs(struct dax_ctx *ctx, int idx, int nelem) in dax_preprocess_usr_ccbs() argument
787 for (i = 0; i < nelem; i++) { in dax_preprocess_usr_ccbs()
436 dax_lock_pages(struct dax_ctx *ctx, int idx, int nelem, u64 *err_va) dax_lock_pages() argument
/kernel/linux/linux-5.10/drivers/xen/
H A Dprivcmd.c107 unsigned nelem, size_t size, in gather_array()
119 while (nelem--) { in gather_array()
151 static int traverse_pages(unsigned nelem, size_t size, in traverse_pages() argument
165 while (nelem--) { in traverse_pages()
187 static int traverse_pages_block(unsigned nelem, size_t size, in traverse_pages_block() argument
197 while (nelem) { in traverse_pages_block()
200 if (nr > nelem) in traverse_pages_block()
201 nr = nelem; in traverse_pages_block()
208 nelem -= nr; in traverse_pages_block()
106 gather_array(struct list_head *pagelist, unsigned nelem, size_t size, const void __user *data) gather_array() argument
/kernel/linux/linux-6.6/drivers/sbus/char/
H A Doradax.c402 static void dax_unlock_pages(struct dax_ctx *ctx, int ccb_index, int nelem) in dax_unlock_pages() argument
406 for (i = ccb_index; i < ccb_index + nelem; i++) { in dax_unlock_pages()
436 int nelem, u64 *err_va) in dax_lock_pages()
440 for (i = 0; i < nelem; i++) { in dax_lock_pages()
496 dax_unlock_pages(ctx, idx, nelem); in dax_lock_pages()
757 static void dax_prt_ccbs(struct dax_ccb *ccb, int nelem) in dax_prt_ccbs() argument
763 for (i = 0; i < nelem; i++) { in dax_prt_ccbs()
776 static int dax_preprocess_usr_ccbs(struct dax_ctx *ctx, int idx, int nelem) in dax_preprocess_usr_ccbs() argument
786 for (i = 0; i < nelem; i++) { in dax_preprocess_usr_ccbs()
435 dax_lock_pages(struct dax_ctx *ctx, int idx, int nelem, u64 *err_va) dax_lock_pages() argument
/kernel/linux/linux-5.10/drivers/net/ethernet/tehuti/
H A Dtehuti.c928 static struct rxdb *bdx_rxdb_create(int nelem) in bdx_rxdb_create() argument
934 + (nelem * sizeof(int)) in bdx_rxdb_create()
935 + (nelem * sizeof(struct rx_map))); in bdx_rxdb_create()
938 db->elems = (void *)(db->stack + nelem); in bdx_rxdb_create()
939 db->nelem = nelem; in bdx_rxdb_create()
940 db->top = nelem; in bdx_rxdb_create()
941 for (i = 0; i < nelem; i++) in bdx_rxdb_create()
942 db->stack[i] = nelem - i - 1; /* to make first allocs in bdx_rxdb_create()
957 BDX_ASSERT((n < 0) || (n >= db->nelem)); in bdx_rxdb_addr_elem()
[all...]
H A Dtehuti.h179 int nelem; member
/kernel/linux/linux-6.6/drivers/net/ethernet/tehuti/
H A Dtehuti.c922 static struct rxdb *bdx_rxdb_create(int nelem) in bdx_rxdb_create() argument
928 + (nelem * sizeof(int)) in bdx_rxdb_create()
929 + (nelem * sizeof(struct rx_map))); in bdx_rxdb_create()
932 db->elems = (void *)(db->stack + nelem); in bdx_rxdb_create()
933 db->nelem = nelem; in bdx_rxdb_create()
934 db->top = nelem; in bdx_rxdb_create()
935 for (i = 0; i < nelem; i++) in bdx_rxdb_create()
936 db->stack[i] = nelem - i - 1; /* to make first allocs in bdx_rxdb_create()
951 BDX_ASSERT((n < 0) || (n >= db->nelem)); in bdx_rxdb_addr_elem()
[all...]
H A Dtehuti.h179 int nelem; member
/kernel/linux/linux-6.6/drivers/xen/
H A Dprivcmd.c112 unsigned nelem, size_t size, in gather_array()
124 while (nelem--) { in gather_array()
156 static int traverse_pages(unsigned nelem, size_t size, in traverse_pages() argument
170 while (nelem--) { in traverse_pages()
192 static int traverse_pages_block(unsigned nelem, size_t size, in traverse_pages_block() argument
202 while (nelem) { in traverse_pages_block()
205 if (nr > nelem) in traverse_pages_block()
206 nr = nelem; in traverse_pages_block()
213 nelem -= nr; in traverse_pages_block()
111 gather_array(struct list_head *pagelist, unsigned nelem, size_t size, const void __user *data) gather_array() argument
/kernel/linux/linux-6.6/drivers/accel/qaic/
H A Dqaic_data.c909 if (bo->total_slice_nents > qdev->dbc[hdr->dbc_id].nelem) { in qaic_attach_slicing_bo()
1053 avail += dbc->nelem; in copy_exec_reqs()
1060 if (tail + slice->nents > dbc->nelem) { in copy_exec_reqs()
1061 avail = dbc->nelem - tail; in copy_exec_reqs()
1074 *ptail = (tail + slice->nents) % dbc->nelem; in copy_exec_reqs()
1100 avail += dbc->nelem; in copy_partial_exec_reqs()
1124 if (tail + first_n > dbc->nelem) { in copy_partial_exec_reqs()
1125 avail = dbc->nelem - tail; in copy_partial_exec_reqs()
1142 last_req = dbc->req_q_base + (tail + first_n) % dbc->nelem * get_dbc_req_elem_size(); in copy_partial_exec_reqs()
1154 *ptail = (tail + first_n + 1) % dbc->nelem; in copy_partial_exec_reqs()
[all...]
H A Dqaic_control.c215 u32 nelem; member
308 qdev->dbc[dbc_id].nelem = resources->nelem; in save_dbc_buf()
640 u32 nelem; in encode_activate() local
657 nelem = in_trans->queue_size; in encode_activate()
658 size = (get_dbc_req_elem_size() + get_dbc_rsp_elem_size()) * nelem; in encode_activate()
659 if (size / nelem != get_dbc_req_elem_size() + get_dbc_rsp_elem_size()) in encode_activate()
684 out_trans->req_q_size = cpu_to_le32(nelem); in encode_activate()
685 out_trans->rsp_q_addr = cpu_to_le64(dma_addr + size - nelem * get_dbc_rsp_elem_size()); in encode_activate()
686 out_trans->rsp_q_size = cpu_to_le32(nelem); in encode_activate()
[all...]
H A Dqaic.h65 u32 nelem; member
/kernel/linux/linux-5.10/drivers/ata/
H A Dsata_qstor.c269 unsigned int nelem; in qs_qc_prep() local
277 nelem = qs_fill_sg(qc); in qs_qc_prep()
288 *(__le32 *)(&buf[ 8]) = cpu_to_le32(nelem); in qs_qc_prep()
/kernel/linux/linux-6.6/drivers/ata/
H A Dsata_qstor.c266 unsigned int nelem; in qs_qc_prep() local
272 nelem = qs_fill_sg(qc); in qs_qc_prep()
283 *(__le32 *)(&buf[ 8]) = cpu_to_le32(nelem); in qs_qc_prep()
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4vf/
H A Dsge.c735 * @nelem: the number of descriptors
751 static void *alloc_ring(struct device *dev, size_t nelem, size_t hwsize, in alloc_ring() argument
758 size_t hwlen = nelem * hwsize + stat_size; in alloc_ring()
770 void *swring = kcalloc(nelem, swsize, GFP_KERNEL); in alloc_ring()
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/cxgb4vf/
H A Dsge.c735 * @nelem: the number of descriptors
751 static void *alloc_ring(struct device *dev, size_t nelem, size_t hwsize, in alloc_ring() argument
758 size_t hwlen = nelem * hwsize + stat_size; in alloc_ring()
770 void *swring = kcalloc(nelem, swsize, GFP_KERNEL); in alloc_ring()
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb3/
H A Dsge.c604 * @nelem: the number of descriptors
618 static void *alloc_ring(struct pci_dev *pdev, size_t nelem, size_t elem_size, in alloc_ring() argument
621 size_t len = nelem * elem_size; in alloc_ring()
628 s = kcalloc(nelem, sw_size, GFP_KERNEL); in alloc_ring()
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/cxgb3/
H A Dsge.c600 * @nelem: the number of descriptors
614 static void *alloc_ring(struct pci_dev *pdev, size_t nelem, size_t elem_size, in alloc_ring() argument
617 size_t len = nelem * elem_size; in alloc_ring()
624 s = kcalloc(nelem, sw_size, GFP_KERNEL); in alloc_ring()
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4/
H A Dsge.c641 * @nelem: the number of descriptors
657 static void *alloc_ring(struct device *dev, size_t nelem, size_t elem_size, in alloc_ring() argument
661 size_t len = nelem * elem_size + stat_size; in alloc_ring()
668 s = kcalloc_node(sw_size, nelem, GFP_KERNEL, node); in alloc_ring()
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/cxgb4/
H A Dsge.c641 * @nelem: the number of descriptors
657 static void *alloc_ring(struct device *dev, size_t nelem, size_t elem_size, in alloc_ring() argument
661 size_t len = nelem * elem_size + stat_size; in alloc_ring()
668 s = kcalloc_node(sw_size, nelem, GFP_KERNEL, node); in alloc_ring()
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/display/
H A Dintel_dp.c1231 const int *array, int nelem) in snprintf_int_array()
1237 for (i = 0; i < nelem; i++) { in snprintf_int_array()
1230 snprintf_int_array(char *str, size_t len, const int *array, int nelem) snprintf_int_array() argument
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/
H A Dintel_dp.c1881 const int *array, int nelem) in snprintf_int_array()
1887 for (i = 0; i < nelem; i++) { in snprintf_int_array()
1880 snprintf_int_array(char *str, size_t len, const int *array, int nelem) snprintf_int_array() argument

Completed in 69 milliseconds