Home
last modified time | relevance | path

Searched refs:num_descs (Results 1 – 25 of 45) sorted by relevance

12

/linux-6.6.21/drivers/dma/ioat/
Dprep.c110 int num_descs, idx, i; in ioat_dma_prep_memcpy_lock() local
115 num_descs = ioat_xferlen_to_descs(ioat_chan, len); in ioat_dma_prep_memcpy_lock()
116 if (likely(num_descs) && in ioat_dma_prep_memcpy_lock()
117 ioat_check_space_lock(ioat_chan, num_descs) == 0) in ioat_dma_prep_memcpy_lock()
137 } while (++i < num_descs); in ioat_dma_prep_memcpy_lock()
164 int num_descs, with_ext, idx, i; in __ioat_prep_xor_lock() local
170 num_descs = ioat_xferlen_to_descs(ioat_chan, len); in __ioat_prep_xor_lock()
176 num_descs *= 2; in __ioat_prep_xor_lock()
185 if (likely(num_descs) && in __ioat_prep_xor_lock()
186 ioat_check_space_lock(ioat_chan, num_descs+1) == 0) in __ioat_prep_xor_lock()
[all …]
Ddma.h334 u16 num_descs = len >> ioat_chan->xfercap_log; in ioat_xferlen_to_descs() local
336 num_descs += !!(len & ((1 << ioat_chan->xfercap_log) - 1)); in ioat_xferlen_to_descs()
337 return num_descs; in ioat_xferlen_to_descs()
397 int ioat_check_space_lock(struct ioatdma_chan *ioat_chan, int num_descs);
Ddma.c463 int ioat_check_space_lock(struct ioatdma_chan *ioat_chan, int num_descs) in ioat_check_space_lock() argument
471 if (likely(ioat_ring_space(ioat_chan) > num_descs)) { in ioat_check_space_lock()
473 __func__, num_descs, ioat_chan->head, in ioat_check_space_lock()
475 ioat_chan->produce = num_descs; in ioat_check_space_lock()
482 __func__, num_descs, ioat_chan->head, in ioat_check_space_lock()
/linux-6.6.21/drivers/net/ethernet/amd/pds_core/
Dcore.c172 for (i = 0, cur = q->info; i < q->num_descs; i++, cur++) in pdsc_q_map()
184 for (i = 0, cur = cq->info; i < cq->num_descs; i++, cur++) in pdsc_cq_map()
189 const char *name, unsigned int flags, unsigned int num_descs, in pdsc_qcq_alloc() argument
199 qcq->q.info = vcalloc(num_descs, sizeof(*qcq->q.info)); in pdsc_qcq_alloc()
211 qcq->q.num_descs = num_descs; in pdsc_qcq_alloc()
222 qcq->cq.info = vcalloc(num_descs, sizeof(*qcq->cq.info)); in pdsc_qcq_alloc()
229 qcq->cq.num_descs = num_descs; in pdsc_qcq_alloc()
237 ALIGN(num_descs * desc_size, PDS_PAGE_SIZE) + in pdsc_qcq_alloc()
238 ALIGN(num_descs * cq_desc_size, PDS_PAGE_SIZE); in pdsc_qcq_alloc()
252 ALIGN(num_descs * desc_size, PDS_PAGE_SIZE), in pdsc_qcq_alloc()
[all …]
Dadminq.c53 cq->tail_idx = (cq->tail_idx + 1) & (cq->num_descs - 1); in pdsc_process_notifyq()
111 q->tail_idx = (q->tail_idx + 1) & (q->num_descs - 1); in pdsc_process_adminq()
118 if (cq->tail_idx == cq->num_descs - 1) in pdsc_process_adminq()
120 cq->tail_idx = (cq->tail_idx + 1) & (cq->num_descs - 1); in pdsc_process_adminq()
184 avail += q->num_descs - q->head_idx - 1; in __pdsc_adminq_post()
222 q->head_idx = (q->head_idx + 1) & (q->num_descs - 1); in __pdsc_adminq_post()
Dcore.h56 unsigned int num_descs; member
109 unsigned int num_descs; member
291 const char *name, unsigned int flags, unsigned int num_descs,
Ddebugfs.c132 debugfs_create_u32("num_descs", 0400, q_dentry, &q->num_descs); in pdsc_debugfs_add_qcq()
144 debugfs_create_u32("num_descs", 0400, cq_dentry, &cq->num_descs); in pdsc_debugfs_add_qcq()
/linux-6.6.21/drivers/net/ethernet/pensando/ionic/
Dionic_dev.c590 .q_init.ring_size = ilog2(q->num_descs), in ionic_dev_cmd_adminq_init()
632 unsigned int num_descs, size_t desc_size) in ionic_cq_init() argument
636 if (desc_size == 0 || !is_power_of_2(num_descs)) in ionic_cq_init()
639 ring_size = ilog2(num_descs); in ionic_cq_init()
645 cq->num_descs = num_descs; in ionic_cq_init()
661 for (i = 0, cur = cq->info; i < cq->num_descs; i++, cur++) in ionic_cq_map()
682 if (cq->tail_idx == cq->num_descs - 1) in ionic_cq_service()
684 cq->tail_idx = (cq->tail_idx + 1) & (cq->num_descs - 1); in ionic_cq_service()
699 unsigned int num_descs, size_t desc_size, in ionic_q_init() argument
704 if (desc_size == 0 || !is_power_of_2(num_descs)) in ionic_q_init()
[all …]
Dionic_dev.h238 unsigned int num_descs; member
287 unsigned int num_descs; member
308 avail += q->num_descs - q->head_idx - 1; in ionic_q_space_avail()
363 unsigned int num_descs, size_t desc_size);
374 unsigned int num_descs, size_t desc_size,
Dionic_debugfs.c140 debugfs_create_u32("num_descs", 0400, q_dentry, &q->num_descs); in ionic_debugfs_add_qcq()
154 desc_blob->size = (unsigned long)q->num_descs * q->desc_size; in ionic_debugfs_add_qcq()
162 desc_blob->size = (unsigned long)q->num_descs * q->sg_desc_size; in ionic_debugfs_add_qcq()
170 debugfs_create_u32("num_descs", 0400, cq_dentry, &cq->num_descs); in ionic_debugfs_add_qcq()
180 desc_blob->size = (unsigned long)cq->num_descs * cq->desc_size; in ionic_debugfs_add_qcq()
Dionic_lif.c533 unsigned int num_descs, unsigned int desc_size, in ionic_qcq_alloc() argument
559 new->q.info = vcalloc(num_descs, sizeof(*new->q.info)); in ionic_qcq_alloc()
569 err = ionic_q_init(lif, idev, &new->q, index, name, num_descs, in ionic_qcq_alloc()
580 new->cq.info = vcalloc(num_descs, sizeof(*new->cq.info)); in ionic_qcq_alloc()
587 err = ionic_cq_init(lif, &new->cq, &new->intr, num_descs, cq_desc_size); in ionic_qcq_alloc()
600 q_size = ALIGN(num_descs * desc_size, PAGE_SIZE); in ionic_qcq_alloc()
602 ALIGN(num_descs * cq_desc_size, PAGE_SIZE); in ionic_qcq_alloc()
620 new->q_size = PAGE_SIZE + (num_descs * desc_size); in ionic_qcq_alloc()
634 new->cmb_q_size = num_descs * desc_size; in ionic_qcq_alloc()
659 new->cq_size = PAGE_SIZE + (num_descs * cq_desc_size); in ionic_qcq_alloc()
[all …]
/linux-6.6.21/drivers/net/ethernet/amazon/ena/
Dena_eth_com.h129 u16 num_descs; in ena_com_is_doorbell_needed() local
135 num_descs = ena_tx_ctx->num_bufs; in ena_com_is_doorbell_needed()
139 ++num_descs; in ena_com_is_doorbell_needed()
141 if (num_descs > llq_info->descs_num_before_header) { in ena_com_is_doorbell_needed()
142 descs_after_first_entry = num_descs - llq_info->descs_num_before_header; in ena_com_is_doorbell_needed()
149 io_sq->qid, num_descs, num_entries_needed); in ena_com_is_doorbell_needed()
/linux-6.6.21/drivers/net/ethernet/marvell/octeon_ep/
Doctep_config.h54 #define CFG_GET_IQ_NUM_DESC(cfg) ((cfg)->iq.num_descs)
61 #define CFG_GET_OQ_NUM_DESC(cfg) ((cfg)->oq.num_descs)
90 u16 num_descs; member
112 u16 num_descs; member
/linux-6.6.21/drivers/dma/bestcomm/
Dfec.c169 int num_descs; in self_modified_drd() local
173 num_descs = bcom_task_num_descs(tasknum); in self_modified_drd()
174 desc = bcom_task_desc(tasknum) + num_descs - 1; in self_modified_drd()
176 for (i=0; i<num_descs; i++, desc--) in self_modified_drd()
Dbestcomm.c205 int num_descs; in bcom_set_initiator() local
217 num_descs = bcom_task_num_descs(task); in bcom_set_initiator()
219 for (i=0; i<num_descs; i++, desc++) { in bcom_set_initiator()
/linux-6.6.21/drivers/net/ethernet/cavium/liquidio/
Docteon_device.c874 u32 num_descs = 0; in octeon_setup_instr_queues() local
880 num_descs = in octeon_setup_instr_queues()
883 num_descs = CFG_GET_NUM_DEF_TX_DESCS(CHIP_CONF(oct, cn23xx_pf)); in octeon_setup_instr_queues()
885 num_descs = CFG_GET_NUM_DEF_TX_DESCS(CHIP_CONF(oct, cn23xx_vf)); in octeon_setup_instr_queues()
905 if (octeon_init_instr_queue(oct, txpciq, num_descs)) { in octeon_setup_instr_queues()
919 u32 num_descs = 0; in octeon_setup_output_queues() local
925 num_descs = in octeon_setup_output_queues()
930 num_descs = CFG_GET_NUM_DEF_RX_DESCS(CHIP_CONF(oct, cn23xx_pf)); in octeon_setup_output_queues()
933 num_descs = CFG_GET_NUM_DEF_RX_DESCS(CHIP_CONF(oct, cn23xx_vf)); in octeon_setup_output_queues()
943 if (octeon_init_droq(oct, oq_no, num_descs, desc_size, NULL)) { in octeon_setup_output_queues()
Docteon_droq.h339 u32 num_descs,
403 u32 num_descs, u32 desc_size, void *app_ctx);
Docteon_iq.h350 u32 num_descs);
394 int q_index, union oct_txpciq iq_no, u32 num_descs,
Drequest_manager.c49 u32 num_descs) in octeon_init_instr_queue() argument
71 q_size = (u32)conf->instr_type * num_descs; in octeon_init_instr_queue()
84 iq->max_count = num_descs; in octeon_init_instr_queue()
89 iq->request_list = vzalloc_node(array_size(num_descs, sizeof(*iq->request_list)), in octeon_init_instr_queue()
92 iq->request_list = vzalloc(array_size(num_descs, sizeof(*iq->request_list))); in octeon_init_instr_queue()
195 u32 num_descs, in octeon_setup_iq() argument
221 if (octeon_init_instr_queue(oct, txpciq, num_descs)) { in octeon_setup_iq()
Docteon_droq.c224 u32 num_descs, in octeon_init_droq() argument
245 c_num_descs = num_descs; in octeon_init_droq()
930 u32 q_no, u32 num_descs, in octeon_create_droq() argument
956 if (octeon_init_droq(oct, q_no, num_descs, desc_size, app_ctx)) { in octeon_create_droq()
/linux-6.6.21/drivers/net/wireless/ath/wil6210/
Dtrace.h256 __field(u8, num_descs)
264 __entry->num_descs = msg->num_descriptors;
272 __entry->num_descs, __entry->status, __entry->mcs)
/linux-6.6.21/drivers/dma/idxd/
Ddevice.c45 for (i = 0; i < wq->num_descs; i++) in free_hw_descs()
78 for (i = 0; i < wq->num_descs; i++) in free_descs()
112 int rc, num_descs, i; in idxd_wq_alloc_resources() local
117 num_descs = wq_dedicated(wq) ? wq->size : wq->threshold; in idxd_wq_alloc_resources()
118 wq->num_descs = num_descs; in idxd_wq_alloc_resources()
120 rc = alloc_hw_descs(wq, num_descs); in idxd_wq_alloc_resources()
124 wq->compls_size = num_descs * idxd->data->compl_size; in idxd_wq_alloc_resources()
131 rc = alloc_descs(wq, num_descs); in idxd_wq_alloc_resources()
135 rc = sbitmap_queue_init_node(&wq->sbq, num_descs, -1, false, GFP_KERNEL, in idxd_wq_alloc_resources()
140 for (i = 0; i < num_descs; i++) { in idxd_wq_alloc_resources()
/linux-6.6.21/lib/
Ddynamic_debug.c1234 v3pr_info("add-module: %s.%d sites\n", modname, di->num_descs); in ddebug_add_module()
1235 if (!di->num_descs) { in ddebug_add_module()
1253 dt->num_ddebugs = di->num_descs; in ddebug_add_module()
1265 vpr_info("%3u debug prints in module %s\n", di->num_descs, modname); in ddebug_add_module()
1414 .num_descs = __stop___dyndbg - __start___dyndbg, in dynamic_debug_init()
1444 di.num_descs = mod_sites; in dynamic_debug_init()
1455 di.num_descs = mod_sites; in dynamic_debug_init()
/linux-6.6.21/drivers/media/i2c/ccs/
Dccs-data.h153 u8 num_descs; member
/linux-6.6.21/sound/soc/intel/avs/
Dmessages.c794 size_t *num_descs) in avs_ipc_probe_get_points() argument
809 *num_descs = payload_size / sizeof(**descs); in avs_ipc_probe_get_points()
815 size_t num_descs) in avs_ipc_probe_connect_points() argument
820 (u8 *)descs, array_size(sizeof(*descs), num_descs)); in avs_ipc_probe_connect_points()

12