/kernel/linux/linux-5.10/drivers/net/ethernet/pensando/ionic/ |
D | ionic_dev.c | 451 .q_init.ring_size = ilog2(q->num_descs), in ionic_dev_cmd_adminq_init() 466 unsigned int num_descs, size_t desc_size) in ionic_cq_init() argument 470 if (desc_size == 0 || !is_power_of_2(num_descs)) in ionic_cq_init() 473 ring_size = ilog2(num_descs); in ionic_cq_init() 479 cq->num_descs = num_descs; in ionic_cq_init() 495 for (i = 0, cur = cq->info; i < cq->num_descs; i++, cur++) in ionic_cq_map() 516 if (cq->tail_idx == cq->num_descs - 1) in ionic_cq_service() 518 cq->tail_idx = (cq->tail_idx + 1) & (cq->num_descs - 1); in ionic_cq_service() 534 unsigned int num_descs, size_t desc_size, in ionic_q_init() argument 539 if (desc_size == 0 || !is_power_of_2(num_descs)) in ionic_q_init() [all …]
|
D | ionic_debugfs.c | 140 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()
|
D | ionic_dev.h | 203 unsigned int num_descs; member 252 unsigned int num_descs; member 274 avail += q->num_descs - q->head_idx - 1; in ionic_q_space_avail() 321 unsigned int num_descs, size_t desc_size); 332 unsigned int num_descs, size_t desc_size,
|
D | ionic_lif.c | 486 unsigned int num_descs, unsigned int desc_size, in ionic_qcq_alloc() argument 511 new->q.info = devm_kcalloc(dev, num_descs, sizeof(*new->q.info), in ionic_qcq_alloc() 521 err = ionic_q_init(lif, idev, &new->q, index, name, num_descs, in ionic_qcq_alloc() 532 new->cq.info = devm_kcalloc(dev, num_descs, sizeof(*new->cq.info), in ionic_qcq_alloc() 540 err = ionic_cq_init(lif, &new->cq, &new->intr, num_descs, cq_desc_size); in ionic_qcq_alloc() 550 q_size = ALIGN(num_descs * desc_size, PAGE_SIZE); in ionic_qcq_alloc() 551 cq_size = ALIGN(num_descs * cq_desc_size, PAGE_SIZE); in ionic_qcq_alloc() 570 new->q_size = PAGE_SIZE + (num_descs * desc_size); in ionic_qcq_alloc() 582 new->cq_size = PAGE_SIZE + (num_descs * cq_desc_size); in ionic_qcq_alloc() 597 new->sg_size = PAGE_SIZE + (num_descs * sg_desc_size); in ionic_qcq_alloc() [all …]
|
D | ionic_txrx.c | 244 q->tail_idx = (q->tail_idx + 1) & (q->num_descs - 1); in ionic_rx_service() 405 for (i = 0; i < q->num_descs; i++) { in ionic_rx_empty() 663 q->tail_idx = (q->tail_idx + 1) & (q->num_descs - 1); in ionic_tx_service() 677 work_done = ionic_cq_service(cq, cq->num_descs, in ionic_tx_flush() 691 q->tail_idx = (q->tail_idx + 1) & (q->num_descs - 1); in ionic_tx_empty() 950 rewind = (rewind + 1) & (q->num_descs - 1); in ionic_tx_tso()
|
/kernel/linux/linux-5.10/drivers/dma/ioat/ |
D | prep.c | 110 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 …]
|
D | dma.h | 335 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);
|
D | dma.c | 463 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()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/amazon/ena/ |
D | ena_eth_com.h | 125 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() 144 num_descs, num_entries_needed); in ena_com_is_doorbell_needed()
|
/kernel/linux/linux-5.10/drivers/dma/bestcomm/ |
D | fec.c | 173 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()
|
D | bestcomm.c | 208 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()
|
/kernel/linux/linux-5.10/drivers/dma/idxd/ |
D | device.c | 66 for (i = 0; i < wq->num_descs; i++) in free_hw_descs() 99 for (i = 0; i < wq->num_descs; i++) in free_descs() 133 int rc, num_descs, i; in idxd_wq_alloc_resources() local 138 wq->num_descs = wq->size; in idxd_wq_alloc_resources() 139 num_descs = wq->size; in idxd_wq_alloc_resources() 141 rc = alloc_hw_descs(wq, num_descs); in idxd_wq_alloc_resources() 145 wq->compls_size = num_descs * sizeof(struct dsa_completion_record); in idxd_wq_alloc_resources() 153 rc = alloc_descs(wq, num_descs); in idxd_wq_alloc_resources() 157 rc = sbitmap_queue_init_node(&wq->sbq, num_descs, -1, false, GFP_KERNEL, in idxd_wq_alloc_resources() 162 for (i = 0; i < num_descs; i++) { in idxd_wq_alloc_resources()
|
D | idxd.h | 118 int num_descs; member
|
D | dma.c | 265 for (i = 0; i < wq->num_descs; i++) { in idxd_register_dma_channel()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/cavium/liquidio/ |
D | octeon_device.c | 867 u32 num_descs = 0; in octeon_setup_instr_queues() local 873 num_descs = in octeon_setup_instr_queues() 876 num_descs = CFG_GET_NUM_DEF_TX_DESCS(CHIP_CONF(oct, cn23xx_pf)); in octeon_setup_instr_queues() 878 num_descs = CFG_GET_NUM_DEF_TX_DESCS(CHIP_CONF(oct, cn23xx_vf)); in octeon_setup_instr_queues() 898 if (octeon_init_instr_queue(oct, txpciq, num_descs)) { in octeon_setup_instr_queues() 911 u32 num_descs = 0; in octeon_setup_output_queues() local 917 num_descs = in octeon_setup_output_queues() 922 num_descs = CFG_GET_NUM_DEF_RX_DESCS(CHIP_CONF(oct, cn23xx_pf)); in octeon_setup_output_queues() 925 num_descs = CFG_GET_NUM_DEF_RX_DESCS(CHIP_CONF(oct, cn23xx_vf)); in octeon_setup_output_queues() 935 if (octeon_init_droq(oct, oq_no, num_descs, desc_size, NULL)) { in octeon_setup_output_queues()
|
D | octeon_droq.h | 339 u32 num_descs, 403 u32 num_descs, u32 desc_size, void *app_ctx);
|
D | octeon_iq.h | 350 u32 num_descs); 394 int q_index, union oct_txpciq iq_no, u32 num_descs,
|
D | request_manager.c | 58 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()
|
D | octeon_droq.c | 222 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()
|
/kernel/linux/linux-5.10/drivers/net/wireless/ath/wil6210/ |
D | trace.h | 259 __field(u8, num_descs) 267 __entry->num_descs = msg->num_descriptors; 275 __entry->num_descs, __entry->status, __entry->mcs)
|
D | txrx_edma.c | 1169 unsigned int num_descs, num_statuses = 0; in wil_tx_sring_handler() local 1181 num_descs = msg.num_descriptors; in wil_tx_sring_handler() 1182 if (!num_descs) { in wil_tx_sring_handler() 1220 ring_id, num_descs); in wil_tx_sring_handler() 1224 for (i = 0 ; i < num_descs; ++i) { in wil_tx_sring_handler()
|
/kernel/linux/linux-5.10/drivers/gpio/ |
D | gpiolib-cdev.c | 73 u32 num_descs; member 166 for (i = 0; i < lh->num_descs; i++) { in linehandle_set_config() 210 lh->num_descs, lh->descs, in linehandle_ioctl() 216 for (i = 0; i < lh->num_descs; i++) in linehandle_ioctl() 235 for (i = 0; i < lh->num_descs; i++) in linehandle_ioctl() 241 lh->num_descs, in linehandle_ioctl() 264 for (i = 0; i < lh->num_descs; i++) in linehandle_free() 324 lh->num_descs = handlereq.lines; in linehandle_create() 398 lh->num_descs); in linehandle_create()
|
/kernel/linux/linux-5.10/drivers/edac/ |
D | mce_amd.c | 405 unsigned int num_descs; member 1002 if (xec < smca_mce_descs[bank_type].num_descs) in decode_smca_error()
|
/kernel/linux/linux-5.10/drivers/net/wireless/ti/wl1251/ |
D | acx.h | 1119 u8 num_descs; member 1130 u8 num_descs; member
|
D | acx.c | 893 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()
|