/linux/drivers/dma/ioat/ |
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 …]
|
A 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);
|
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()
|
/linux/drivers/net/ethernet/pensando/ionic/ |
A D | ionic_dev.c | 515 .q_init.ring_size = ilog2(q->num_descs), in ionic_dev_cmd_adminq_init() 530 unsigned int num_descs, size_t desc_size) in ionic_cq_init() argument 534 if (desc_size == 0 || !is_power_of_2(num_descs)) in ionic_cq_init() 537 ring_size = ilog2(num_descs); in ionic_cq_init() 543 cq->num_descs = num_descs; in ionic_cq_init() 580 if (cq->tail_idx == cq->num_descs - 1) in ionic_cq_service() 597 unsigned int num_descs, size_t desc_size, in ionic_q_init() argument 602 if (desc_size == 0 || !is_power_of_2(num_descs)) in ionic_q_init() 605 ring_size = ilog2(num_descs); in ionic_q_init() 612 q->num_descs = num_descs; in ionic_q_init() [all …]
|
A D | ionic_dev.h | 220 unsigned int num_descs; member 267 unsigned int num_descs; member 288 avail += q->num_descs - q->head_idx - 1; in ionic_q_space_avail() 335 unsigned int num_descs, size_t desc_size); 346 unsigned int num_descs, size_t desc_size,
|
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()
|
A D | ionic_txrx.c | 334 q->tail_idx = (q->tail_idx + 1) & (q->num_descs - 1); in ionic_rx_service() 427 for (i = 0; i < q->num_descs; i++) { in ionic_rx_empty() 526 cq->num_descs / IONIC_RX_FILL_DIV); in ionic_rx_napi() 570 rxcq->num_descs / IONIC_RX_FILL_DIV); in ionic_txrx_napi() 756 q->tail_idx = (q->tail_idx + 1) & (q->num_descs - 1); in ionic_tx_service() 777 work_done = ionic_cq_service(cq, cq->num_descs, in ionic_tx_flush() 794 q->tail_idx = (q->tail_idx + 1) & (q->num_descs - 1); in ionic_tx_empty()
|
A D | ionic_lif.c | 505 unsigned int num_descs, unsigned int desc_size, in ionic_qcq_alloc() argument 571 q_size = ALIGN(num_descs * desc_size, PAGE_SIZE); in ionic_qcq_alloc() 572 cq_size = ALIGN(num_descs * cq_desc_size, PAGE_SIZE); in ionic_qcq_alloc() 591 new->q_size = PAGE_SIZE + (num_descs * desc_size); in ionic_qcq_alloc() 603 new->cq_size = PAGE_SIZE + (num_descs * cq_desc_size); in ionic_qcq_alloc() 618 new->sg_size = PAGE_SIZE + (num_descs * sg_desc_size); in ionic_qcq_alloc() 742 .ring_size = ilog2(q->num_descs), in ionic_lif_txq_init() 803 .ring_size = ilog2(q->num_descs), in ionic_lif_rxq_init() 2428 swap(a->q.num_descs, b->q.num_descs); in ionic_swap_queues() 2444 swap(a->cq.num_descs, b->cq.num_descs); in ionic_swap_queues() [all …]
|
/linux/drivers/net/ethernet/amazon/ena/ |
A 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() 145 io_sq->qid, num_descs, num_entries_needed); in ena_com_is_doorbell_needed()
|
/linux/drivers/dma/bestcomm/ |
A 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()
|
A 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()
|
/linux/drivers/net/ethernet/cavium/liquidio/ |
A D | octeon_device.c | 866 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()
|
A D | octeon_droq.h | 339 u32 num_descs, 403 u32 num_descs, u32 desc_size, void *app_ctx);
|
A 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()
|
A D | octeon_iq.h | 350 u32 num_descs); 394 int q_index, union oct_txpciq iq_no, u32 num_descs,
|
A 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()
|
/linux/drivers/dma/idxd/ |
A D | device.c | 70 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 142 num_descs = wq_dedicated(wq) ? wq->size : wq->threshold; in idxd_wq_alloc_resources() 143 wq->num_descs = num_descs; in idxd_wq_alloc_resources() 145 rc = alloc_hw_descs(wq, num_descs); in idxd_wq_alloc_resources() 149 wq->compls_size = num_descs * idxd->data->compl_size; in idxd_wq_alloc_resources() 156 rc = alloc_descs(wq, num_descs); in idxd_wq_alloc_resources() 160 rc = sbitmap_queue_init_node(&wq->sbq, num_descs, -1, false, GFP_KERNEL, in idxd_wq_alloc_resources() 165 for (i = 0; i < num_descs; i++) { in idxd_wq_alloc_resources()
|
A D | dma.c | 235 for (i = 0; i < wq->num_descs; i++) { in idxd_register_dma_channel()
|
/linux/drivers/net/wireless/ath/wil6210/ |
A D | trace.h | 259 __field(u8, num_descs) 267 __entry->num_descs = msg->num_descriptors; 275 __entry->num_descs, __entry->status, __entry->mcs)
|
A D | txrx_edma.c | 1171 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()
|
/linux/drivers/gpio/ |
A D | gpiolib-cdev.c | 73 u32 num_descs; member 166 for (i = 0; i < lh->num_descs; i++) { in linehandle_set_config() 206 lh->num_descs, in linehandle_ioctl() 214 for (i = 0; i < lh->num_descs; i++) in linehandle_ioctl() 233 for (i = 0; i < lh->num_descs; i++) in linehandle_ioctl() 239 lh->num_descs, in linehandle_ioctl() 261 for (i = 0; i < lh->num_descs; i++) in linehandle_free() 321 lh->num_descs = handlereq.lines; in linehandle_create() 395 lh->num_descs); in linehandle_create()
|
/linux/drivers/media/i2c/ccs/ |
A D | ccs-data.h | 153 u8 num_descs; member
|
/linux/drivers/net/ethernet/google/gve/ |
A D | gve_tx_dqo.c | 578 int num_descs; in gve_num_buffer_descs_needed() local 581 num_descs = gve_num_descs_per_buf(skb_headlen(skb)); in gve_num_buffer_descs_needed() 586 num_descs += gve_num_descs_per_buf(frag_size); in gve_num_buffer_descs_needed() 589 return num_descs; in gve_num_buffer_descs_needed()
|
/linux/drivers/edac/ |
A D | mce_amd.c | 470 unsigned int num_descs; member 1072 if (xec < smca_mce_descs[bank_type].num_descs) in decode_smca_error()
|
/linux/drivers/net/wireless/ti/wl1251/ |
A D | acx.h | 1119 u8 num_descs; member 1130 u8 num_descs; member
|