Home
last modified time | relevance | path

Searched refs:nelem (Results 1 – 10 of 10) sorted by relevance

/linux/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() argument
440 for (i = 0; i < nelem; i++) { in dax_lock_pages()
496 dax_unlock_pages(ctx, idx, nelem); in dax_lock_pages()
756 static void dax_prt_ccbs(struct dax_ccb *ccb, int nelem) in dax_prt_ccbs() argument
762 for (i = 0; i < nelem; i++) { in dax_prt_ccbs()
775 static int dax_preprocess_usr_ccbs(struct dax_ctx *ctx, int idx, int nelem) in dax_preprocess_usr_ccbs() argument
785 for (i = 0; i < nelem; i++) { in dax_preprocess_usr_ccbs()
/linux/drivers/accel/qaic/
H A Dqaic_control.c216 u32 nelem; member
309 qdev->dbc[dbc_id].nelem = resources->nelem; in save_dbc_buf()
643 u32 nelem; in encode_activate() local
660 nelem = in_trans->queue_size; in encode_activate()
662 nelem, in encode_activate()
688 out_trans->req_q_size = cpu_to_le32(nelem); in encode_activate()
689 out_trans->rsp_q_addr = cpu_to_le64(dma_addr + size - nelem * get_dbc_rsp_elem_size()); in encode_activate()
690 out_trans->rsp_q_size = cpu_to_le32(nelem); in encode_activate()
700 resources->nelem = nelem; in encode_activate()
701 resources->rsp_q_base = buf + size - nelem * get_dbc_rsp_elem_size(); in encode_activate()
/linux/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()
962 BDX_ASSERT((n >= db->nelem) || (n < 0)); in bdx_rxdb_free_elem()
[all …]
H A Dtn40.c69 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 …]
H A Dtn40.h81 unsigned int nelem; member
H A Dtehuti.h179 int nelem; member
/linux/drivers/net/ethernet/chelsio/cxgb4vf/
H A Dsge.c751 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/drivers/net/ethernet/chelsio/cxgb3/
H A Dsge.c614 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/drivers/net/ethernet/chelsio/cxgb4/
H A Dsge.c657 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/drivers/gpu/drm/i915/display/
H A Dintel_dp.c1506 static void seq_buf_print_array(struct seq_buf *s, const int *array, int nelem) in seq_buf_print_array() argument
1510 for (i = 0; i < nelem; i++) in seq_buf_print_array()