/openbmc/linux/drivers/dma/ioat/ |
H A D | prep.c | 110 int num_descs, idx, i; in ioat_dma_prep_memcpy_lock() local 116 if (likely(num_descs) && 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 176 num_descs *= 2; in __ioat_prep_xor_lock() 185 if (likely(num_descs) && in __ioat_prep_xor_lock() 372 num_descs *= 2; in __ioat_prep_pq_lock() 381 if (likely(num_descs) && in __ioat_prep_pq_lock() 475 int i, s, idx, num_descs; in __ioat_prep_pq16_lock() local 488 if (num_descs && ioat_check_space_lock(ioat_chan, num_descs) == 0) in __ioat_prep_pq16_lock() [all …]
|
H A D | dma.h | 334 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);
|
H A 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()
|
/openbmc/linux/drivers/net/ethernet/amd/pds_core/ |
H A D | core.c | 172 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() 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() 255 ALIGN(num_descs * desc_size, PDS_PAGE_SIZE), in pdsc_qcq_alloc() [all …]
|
H A D | adminq.c | 53 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()
|
H A D | core.h | 56 unsigned int num_descs; member 109 unsigned int num_descs; member 291 const char *name, unsigned int flags, unsigned int num_descs,
|
H A D | debugfs.c | 132 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()
|
/openbmc/linux/drivers/net/ethernet/pensando/ionic/ |
H A D | ionic_dev.c | 613 .q_init.ring_size = ilog2(q->num_descs), in ionic_dev_cmd_adminq_init() 655 unsigned int num_descs, size_t desc_size) in ionic_cq_init() argument 659 if (desc_size == 0 || !is_power_of_2(num_descs)) in ionic_cq_init() 662 ring_size = ilog2(num_descs); in ionic_cq_init() 668 cq->num_descs = num_descs; in ionic_cq_init() 705 if (cq->tail_idx == cq->num_descs - 1) in ionic_cq_service() 722 unsigned int num_descs, size_t desc_size, in ionic_q_init() argument 727 if (desc_size == 0 || !is_power_of_2(num_descs)) in ionic_q_init() 730 ring_size = ilog2(num_descs); in ionic_q_init() 737 q->num_descs = num_descs; in ionic_q_init() [all …]
|
H A D | ionic_dev.h | 238 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,
|
H A D | ionic_debugfs.c | 140 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()
|
H A D | ionic_lif.c | 531 unsigned int num_descs, unsigned int desc_size, in ionic_qcq_alloc() argument 557 new->q.info = vcalloc(num_descs, sizeof(*new->q.info)); in ionic_qcq_alloc() 598 q_size = ALIGN(num_descs * desc_size, PAGE_SIZE); in ionic_qcq_alloc() 600 ALIGN(num_descs * cq_desc_size, PAGE_SIZE); in ionic_qcq_alloc() 618 new->q_size = PAGE_SIZE + (num_descs * desc_size); in ionic_qcq_alloc() 632 new->cmb_q_size = num_descs * desc_size; in ionic_qcq_alloc() 803 .ring_size = ilog2(q->num_descs), in ionic_lif_txq_init() 871 .ring_size = ilog2(q->num_descs), in ionic_lif_rxq_init() 2828 swap(a->q.num_descs, b->q.num_descs); in ionic_swap_queues() 2844 swap(a->cq.num_descs, b->cq.num_descs); in ionic_swap_queues() [all …]
|
/openbmc/linux/drivers/net/ethernet/amazon/ena/ |
H A D | ena_eth_com.h | 129 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() 148 "Queue: %d num_descs: %d num_entries_needed: %d\n", io_sq->qid, num_descs, in ena_com_is_doorbell_needed()
|
/openbmc/linux/drivers/net/ethernet/marvell/octeon_ep/ |
H A D | octep_config.h | 54 #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
|
/openbmc/linux/drivers/dma/bestcomm/ |
H A D | fec.c | 169 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()
|
H A D | bestcomm.c | 205 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()
|
/openbmc/linux/drivers/net/ethernet/cavium/liquidio/ |
H A D | octeon_device.c | 874 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()
|
H A D | octeon_droq.h | 339 u32 num_descs, 403 u32 num_descs, u32 desc_size, void *app_ctx);
|
H A D | octeon_iq.h | 350 u32 num_descs); 394 int q_index, union oct_txpciq iq_no, u32 num_descs,
|
H A D | request_manager.c | 49 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()
|
H A D | octeon_droq.c | 224 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()
|
/openbmc/linux/drivers/net/wireless/ath/wil6210/ |
H A D | trace.h | 256 __field(u8, num_descs) 264 __entry->num_descs = msg->num_descriptors; 272 __entry->num_descs, __entry->status, __entry->mcs)
|
/openbmc/linux/drivers/dma/idxd/ |
H A D | device.c | 45 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()
|
/openbmc/linux/lib/ |
H A D | dynamic_debug.c | 1238 v3pr_info("add-module: %s.%d sites\n", modname, di->num_descs); in ddebug_add_module() 1239 if (!di->num_descs) { in ddebug_add_module() 1257 dt->num_ddebugs = di->num_descs; in ddebug_add_module() 1269 vpr_info("%3u debug prints in module %s\n", di->num_descs, modname); in ddebug_add_module() 1418 .num_descs = __stop___dyndbg - __start___dyndbg, in dynamic_debug_init() 1448 di.num_descs = mod_sites; in dynamic_debug_init() 1459 di.num_descs = mod_sites; in dynamic_debug_init()
|
/openbmc/linux/drivers/media/i2c/ccs/ |
H A D | ccs-data.h | 153 u8 num_descs; member
|
/openbmc/linux/sound/soc/intel/avs/ |
H A D | messages.c | 794 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()
|