/linux-6.12.1/drivers/misc/sgi-gru/ |
D | gru_instructions.h | 132 unsigned long nelem; /* DW 3 */ member 355 ins->nelem = 1; in gru_vload_phys() 367 ins->nelem = 1; in gru_vstore_phys() 374 unsigned int tri0, unsigned char xtype, unsigned long nelem, in gru_vload() argument 380 ins->nelem = nelem; in gru_vload() 387 unsigned int tri0, unsigned char xtype, unsigned long nelem, in gru_vstore() argument 393 ins->nelem = nelem; in gru_vstore() 401 unsigned long nelem, unsigned long hints) in gru_ivload() argument 406 ins->nelem = nelem; in gru_ivload() 414 unsigned char xtype, unsigned long nelem, unsigned long hints) in gru_ivstore() argument [all …]
|
/linux-6.12.1/drivers/gpu/drm/etnaviv/ |
D | etnaviv_drv.h | 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()
|
/linux-6.12.1/drivers/sbus/char/ |
D | oradax.c | 402 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() argument 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()
|
/linux-6.12.1/drivers/accel/qaic/ |
D | qaic_control.c | 215 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() 696 resources->nelem = nelem; in encode_activate() [all …]
|
D | qaic_data.c | 927 if (bo->total_slice_nents > bo->dbc->nelem) { in qaic_attach_slicing_bo() 1078 avail = fifo_space_avail(head, tail, dbc->nelem); in copy_exec_reqs() 1082 if (tail + slice->nents > dbc->nelem) { in copy_exec_reqs() 1083 avail = dbc->nelem - tail; in copy_exec_reqs() 1094 *ptail = (tail + slice->nents) % dbc->nelem; in copy_exec_reqs() 1110 avail = fifo_space_avail(head, tail, dbc->nelem); in copy_partial_exec_reqs() 1129 if (tail + first_n > dbc->nelem) { in copy_partial_exec_reqs() 1130 avail = dbc->nelem - tail; in copy_partial_exec_reqs() 1146 last_req = fifo_at(dbc->req_q_base, (tail + first_n) % dbc->nelem); in copy_partial_exec_reqs() 1161 *ptail = (tail + first_n + 1) % dbc->nelem; in copy_partial_exec_reqs() [all …]
|
D | qaic_debugfs.c | 84 seq_printf(s, "%u\n", dbc->nelem); in read_dbc_fifo_size() 111 seq_printf(s, "%u\n", dbc->nelem - head + tail); in read_dbc_queued()
|
D | qaic.h | 78 u32 nelem; member
|
/linux-6.12.1/drivers/net/ethernet/tehuti/ |
D | tehuti.c | 922 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() 962 BDX_ASSERT((n >= db->nelem) || (n < 0)); in bdx_rxdb_free_elem() [all …]
|
D | tn40.c | 69 static struct tn40_rxdb *tn40_rxdb_alloc(int nelem) in tn40_rxdb_alloc() argument 71 size_t size = sizeof(struct tn40_rxdb) + (nelem * sizeof(int)) + in tn40_rxdb_alloc() 72 (nelem * sizeof(struct tn40_rx_map)); in tn40_rxdb_alloc() 79 db->elems = (void *)(db->stack + nelem); in tn40_rxdb_alloc() 80 db->nelem = nelem; in tn40_rxdb_alloc() 81 db->top = nelem; in tn40_rxdb_alloc() 83 for (i = 0; i < nelem; i++) in tn40_rxdb_alloc() 84 db->stack[i] = nelem - i - 1; in tn40_rxdb_alloc() 182 netdev_dbg(priv->ndev, "total =%d free =%d busy =%d\n", db->nelem, in tn40_rx_free_buffers() 184 db->nelem - tn40_rxdb_available(db)); in tn40_rx_free_buffers() [all …]
|
D | tn40.h | 78 unsigned int nelem; member
|
D | tehuti.h | 179 int nelem; member
|
/linux-6.12.1/drivers/xen/ |
D | privcmd.c | 120 unsigned nelem, size_t size, in gather_array() argument 132 while (nelem--) { in gather_array() 164 static int traverse_pages(unsigned nelem, size_t size, in traverse_pages() argument 178 while (nelem--) { in traverse_pages() 200 static int traverse_pages_block(unsigned nelem, size_t size, in traverse_pages_block() argument 210 while (nelem) { in traverse_pages_block() 213 if (nr > nelem) in traverse_pages_block() 214 nr = nelem; in traverse_pages_block() 221 nelem -= nr; in traverse_pages_block()
|
/linux-6.12.1/drivers/ata/ |
D | sata_qstor.c | 266 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()
|
/linux-6.12.1/drivers/net/ethernet/chelsio/cxgb4vf/ |
D | sge.c | 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()
|
/linux-6.12.1/drivers/net/ethernet/chelsio/cxgb3/ |
D | sge.c | 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()
|
/linux-6.12.1/drivers/net/ethernet/chelsio/cxgb4/ |
D | sge.c | 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()
|
/linux-6.12.1/drivers/gpu/drm/i915/display/ |
D | intel_dp.c | 1426 const int *array, int nelem) in snprintf_int_array() argument 1432 for (i = 0; i < nelem; i++) { in snprintf_int_array()
|