Home
last modified time | relevance | path

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

12

/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.h335 u16 num_descs = len >> ioat_chan->xfercap_log; in ioat_xferlen_to_descs() local
337 num_descs += !!(len & ((1 << ioat_chan->xfercap_log) - 1)); in ioat_xferlen_to_descs()
338 return num_descs; in ioat_xferlen_to_descs()
398 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()
/drivers/net/ethernet/pensando/ionic/
Dionic_dev.c520 .q_init.ring_size = ilog2(q->num_descs), in ionic_dev_cmd_adminq_init()
535 unsigned int num_descs, size_t desc_size) in ionic_cq_init() argument
539 if (desc_size == 0 || !is_power_of_2(num_descs)) in ionic_cq_init()
542 ring_size = ilog2(num_descs); in ionic_cq_init()
548 cq->num_descs = num_descs; in ionic_cq_init()
564 for (i = 0, cur = cq->info; i < cq->num_descs; i++, cur++) in ionic_cq_map()
585 if (cq->tail_idx == cq->num_descs - 1) in ionic_cq_service()
587 cq->tail_idx = (cq->tail_idx + 1) & (cq->num_descs - 1); in ionic_cq_service()
603 unsigned int num_descs, size_t desc_size, in ionic_q_init() argument
608 if (desc_size == 0 || !is_power_of_2(num_descs)) in ionic_q_init()
[all …]
Dionic_debugfs.c140 debugfs_create_u32("num_descs", 0400, q_dentry, &q->num_descs); in ionic_debugfs_add_qcq()
156 desc_blob->size = (unsigned long)q->num_descs * q->desc_size; in ionic_debugfs_add_qcq()
164 desc_blob->size = (unsigned long)q->num_descs * q->sg_desc_size; in ionic_debugfs_add_qcq()
172 debugfs_create_u32("num_descs", 0400, cq_dentry, &cq->num_descs); in ionic_debugfs_add_qcq()
182 desc_blob->size = (unsigned long)cq->num_descs * cq->desc_size; in ionic_debugfs_add_qcq()
Dionic_dev.h222 unsigned int num_descs; member
272 unsigned int num_descs; member
294 avail += q->num_descs - q->head_idx - 1; in ionic_q_space_avail()
341 unsigned int num_descs, size_t desc_size);
352 unsigned int num_descs, size_t desc_size,
Dionic_txrx.c339 q->tail_idx = (q->tail_idx + 1) & (q->num_descs - 1); in ionic_rx_service()
369 q->num_descs / IONIC_RX_FILL_DIV); in ionic_rx_fill()
444 for (i = 0; i < q->num_descs; i++) { in ionic_rx_empty()
773 q->tail_idx = (q->tail_idx + 1) & (q->num_descs - 1); in ionic_tx_service()
794 work_done = ionic_cq_service(cq, cq->num_descs, in ionic_tx_flush()
811 q->tail_idx = (q->tail_idx + 1) & (q->num_descs - 1); in ionic_tx_empty()
Dionic_lif.c508 unsigned int num_descs, unsigned int desc_size, in ionic_qcq_alloc() argument
534 new->q.info = devm_kcalloc(dev, num_descs, sizeof(*new->q.info), in ionic_qcq_alloc()
545 err = ionic_q_init(lif, idev, &new->q, index, name, num_descs, in ionic_qcq_alloc()
556 new->cq.info = devm_kcalloc(dev, num_descs, sizeof(*new->cq.info), in ionic_qcq_alloc()
564 err = ionic_cq_init(lif, &new->cq, &new->intr, num_descs, cq_desc_size); in ionic_qcq_alloc()
574 q_size = ALIGN(num_descs * desc_size, PAGE_SIZE); in ionic_qcq_alloc()
575 cq_size = ALIGN(num_descs * cq_desc_size, PAGE_SIZE); in ionic_qcq_alloc()
594 new->q_size = PAGE_SIZE + (num_descs * desc_size); in ionic_qcq_alloc()
606 new->cq_size = PAGE_SIZE + (num_descs * cq_desc_size); in ionic_qcq_alloc()
621 new->sg_size = PAGE_SIZE + (num_descs * sg_desc_size); in ionic_qcq_alloc()
[all …]
/drivers/net/ethernet/amazon/ena/
Dena_eth_com.h125 u16 num_descs; in ena_com_is_doorbell_needed() local
131 num_descs = ena_tx_ctx->num_bufs; in ena_com_is_doorbell_needed()
135 ++num_descs; in ena_com_is_doorbell_needed()
137 if (num_descs > llq_info->descs_num_before_header) { in ena_com_is_doorbell_needed()
138 descs_after_first_entry = num_descs - llq_info->descs_num_before_header; in ena_com_is_doorbell_needed()
145 io_sq->qid, num_descs, num_entries_needed); in ena_com_is_doorbell_needed()
/drivers/dma/bestcomm/
Dfec.c173 int num_descs; in self_modified_drd() local
177 num_descs = bcom_task_num_descs(tasknum); in self_modified_drd()
178 desc = bcom_task_desc(tasknum) + num_descs - 1; in self_modified_drd()
180 for (i=0; i<num_descs; i++, desc--) in self_modified_drd()
Dbestcomm.c208 int num_descs; in bcom_set_initiator() local
220 num_descs = bcom_task_num_descs(task); in bcom_set_initiator()
222 for (i=0; i<num_descs; i++, desc++) { in bcom_set_initiator()
/drivers/net/ethernet/cavium/liquidio/
Docteon_device.c866 u32 num_descs = 0; in octeon_setup_instr_queues() local
872 num_descs = in octeon_setup_instr_queues()
875 num_descs = CFG_GET_NUM_DEF_TX_DESCS(CHIP_CONF(oct, cn23xx_pf)); in octeon_setup_instr_queues()
877 num_descs = CFG_GET_NUM_DEF_TX_DESCS(CHIP_CONF(oct, cn23xx_vf)); in octeon_setup_instr_queues()
897 if (octeon_init_instr_queue(oct, txpciq, num_descs)) { in octeon_setup_instr_queues()
910 u32 num_descs = 0; in octeon_setup_output_queues() local
916 num_descs = in octeon_setup_output_queues()
921 num_descs = CFG_GET_NUM_DEF_RX_DESCS(CHIP_CONF(oct, cn23xx_pf)); in octeon_setup_output_queues()
924 num_descs = CFG_GET_NUM_DEF_RX_DESCS(CHIP_CONF(oct, cn23xx_vf)); in octeon_setup_output_queues()
934 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);
Drequest_manager.c58 u32 num_descs) in octeon_init_instr_queue() argument
80 q_size = (u32)conf->instr_type * num_descs; in octeon_init_instr_queue()
93 iq->max_count = num_descs; in octeon_init_instr_queue()
98 iq->request_list = vzalloc_node(array_size(num_descs, sizeof(*iq->request_list)), in octeon_init_instr_queue()
101 iq->request_list = vzalloc(array_size(num_descs, sizeof(*iq->request_list))); in octeon_init_instr_queue()
203 u32 num_descs, in octeon_setup_iq() argument
229 if (octeon_init_instr_queue(oct, txpciq, num_descs)) { in octeon_setup_iq()
Docteon_iq.h350 u32 num_descs);
394 int q_index, union oct_txpciq iq_no, u32 num_descs,
Docteon_droq.c222 u32 num_descs, in octeon_init_droq() argument
243 c_num_descs = num_descs; in octeon_init_droq()
926 u32 q_no, u32 num_descs, in octeon_create_droq() argument
952 if (octeon_init_droq(oct, q_no, num_descs, desc_size, app_ctx)) { in octeon_create_droq()
/drivers/dma/idxd/
Ddevice.c70 for (i = 0; i < wq->num_descs; i++) in free_hw_descs()
103 for (i = 0; i < wq->num_descs; i++) in free_descs()
137 int rc, num_descs, i; in idxd_wq_alloc_resources() local
144 num_descs = wq_dedicated(wq) ? wq->size : wq->threshold; in idxd_wq_alloc_resources()
145 wq->num_descs = num_descs; in idxd_wq_alloc_resources()
147 rc = alloc_hw_descs(wq, num_descs); in idxd_wq_alloc_resources()
152 wq->compls_size = num_descs * idxd->data->compl_size + align; in idxd_wq_alloc_resources()
166 rc = alloc_descs(wq, num_descs); in idxd_wq_alloc_resources()
170 rc = sbitmap_queue_init_node(&wq->sbq, num_descs, -1, false, GFP_KERNEL, in idxd_wq_alloc_resources()
175 for (i = 0; i < num_descs; i++) { in idxd_wq_alloc_resources()
/drivers/net/wireless/ath/wil6210/
Dtrace.h259 __field(u8, num_descs)
267 __entry->num_descs = msg->num_descriptors;
275 __entry->num_descs, __entry->status, __entry->mcs)
Dtxrx_edma.c1171 unsigned int num_descs, num_statuses = 0; in wil_tx_sring_handler() local
1183 num_descs = msg.num_descriptors; in wil_tx_sring_handler()
1184 if (!num_descs) { in wil_tx_sring_handler()
1222 ring_id, num_descs); in wil_tx_sring_handler()
1226 for (i = 0 ; i < num_descs; ++i) { in wil_tx_sring_handler()
/drivers/media/i2c/ccs/
Dccs-data.h153 u8 num_descs; member
/drivers/gpio/
Dgpiolib-cdev.c117 u32 num_descs; member
210 for (i = 0; i < lh->num_descs; i++) { in linehandle_set_config()
254 lh->num_descs, lh->descs, in linehandle_ioctl_unlocked()
260 for (i = 0; i < lh->num_descs; i++) in linehandle_ioctl_unlocked()
279 for (i = 0; i < lh->num_descs; i++) in linehandle_ioctl_unlocked()
285 lh->num_descs, in linehandle_ioctl_unlocked()
317 for (i = 0; i < lh->num_descs; i++) in linehandle_free()
377 lh->num_descs = handlereq.lines; in linehandle_create()
451 lh->num_descs); in linehandle_create()
/drivers/net/ethernet/google/gve/
Dgve_tx_dqo.c581 int num_descs; in gve_num_buffer_descs_needed() local
584 num_descs = gve_num_descs_per_buf(skb_headlen(skb)); in gve_num_buffer_descs_needed()
589 num_descs += gve_num_descs_per_buf(frag_size); in gve_num_buffer_descs_needed()
592 return num_descs; in gve_num_buffer_descs_needed()
/drivers/edac/
Dmce_amd.c470 unsigned int num_descs; member
1072 if (xec < smca_mce_descs[bank_type].num_descs) in decode_smca_error()
/drivers/net/wireless/ti/wl1251/
Dacx.h1119 u8 num_descs; member
1130 u8 num_descs; member
Dacx.c893 mem_conf->rx_queue_config.num_descs = ACX_RX_DESC_DEF; in wl1251_acx_mem_cfg()
899 mem_conf->tx_queue_config[i].num_descs = ACX_TX_DESC_DEF; in wl1251_acx_mem_cfg()

12