Home
last modified time | relevance | path

Searched refs:num_desc (Results 1 – 25 of 66) sorted by relevance

123

/linux/drivers/infiniband/hw/hfi1/
H A Diowait.h301 u16 num_desc = 0; in iowait_get_desc() local
307 num_desc = tx->num_desc; in iowait_get_desc()
311 return num_desc; in iowait_get_desc()
316 u32 num_desc = 0; in iowait_get_all_desc() local
318 num_desc = iowait_get_desc(&w->wait[IOWAIT_IB_SE]); in iowait_get_all_desc()
319 num_desc += iowait_get_desc(&w->wait[IOWAIT_TID_SE]); in iowait_get_all_desc()
320 return num_desc; in iowait_get_all_desc()
H A Dsdma.h515 tx->num_desc = 0; in sdma_txinit_ahg()
603 struct sdma_desc *desc = &tx->descp[tx->num_desc]; in make_tx_sdma_desc()
605 if (!tx->num_desc) { in make_tx_sdma_desc()
634 if (tx->num_desc) in sdma_txclean()
642 u16 last_desc = tx->num_desc - 1; in _sdma_close_tx()
669 tx->num_desc++; in _sdma_txadd_daddr()
721 if ((unlikely(tx->num_desc == tx->desc_limit))) { in sdma_txadd_page()
768 if ((unlikely(tx->num_desc == tx->desc_limit))) { in sdma_txadd_daddr()
804 if ((unlikely(tx->num_desc == tx->desc_limit))) { in sdma_txadd_kvaddr()
885 if (tx->num_desc > sde->desc_avail) in sdma_progress()
H A Dsdma_txreq.h79 u16 num_desc; member
94 return tx->num_desc; in sdma_txreq_built()
H A Dsdma.c1639 if (tx->num_desc) { in __sdma_txclean()
1649 tx->num_desc = 0; in __sdma_txclean()
1746 u32 num_desc; in sdma_desc_avail() local
1754 if (num_desc > avail) in sdma_desc_avail()
1756 avail -= num_desc; in sdma_desc_avail()
2305 sde->desc_avail -= tx->num_desc; in submit_tx()
3045 for (i = 0; i < tx->num_desc; i++) in _extend_sdma_tx_descs()
3176 tx->num_desc++; in _pad_sdma_tx_descs()
3206 tx->num_desc++; in _sdma_txreq_ahgadd()
3210 tx->num_desc++; in _sdma_txreq_ahgadd()
[all …]
/linux/sound/soc/sof/
H A Dsof-client-probes-ipc4.c177 size_t *num_desc) in ipc4_probes_points_info() argument
181 *num_desc = 0; in ipc4_probes_points_info()
197 size_t num_desc) in ipc4_probes_points_add() argument
213 points = kcalloc(num_desc, sizeof(*points), GFP_KERNEL); in ipc4_probes_points_add()
217 for (i = 0; i < num_desc; i++) { in ipc4_probes_points_add()
229 msg.data_size = sizeof(*points) * num_desc; in ipc4_probes_points_add()
H A Dsof-client-probes-ipc3.c156 size_t *num_desc) in ipc3_probes_points_info() argument
159 (void **)desc, num_desc); in ipc3_probes_points_info()
177 size_t num_desc) in ipc3_probes_points_add() argument
180 size_t size = struct_size(msg, desc, num_desc); in ipc3_probes_points_add()
187 msg->num_elems = num_desc; in ipc3_probes_points_add()
H A Dsof-client-probes.h43 size_t *num_desc);
46 size_t num_desc);
H A Dsof-client-probes.c68 size_t num_desc; in sof_probes_compr_shutdown() local
72 ret = ipc->points_info(cdev, &desc, &num_desc); in sof_probes_compr_shutdown()
78 for (i = 0; i < num_desc; i++) in sof_probes_compr_shutdown()
200 size_t num_desc; in sof_probes_dfs_points_read() local
219 ret = ipc->points_info(cdev, &desc, &num_desc); in sof_probes_dfs_points_read()
223 for (i = 0; i < num_desc; i++) { in sof_probes_dfs_points_read()
/linux/tools/testing/selftests/kvm/
H A Dkvm_binary_stats_test.c54 if (header.num_desc == 0) { in stats_test()
68 (header.desc_offset + size_desc * header.num_desc <= header.data_offset), in stats_test()
75 for (i = 0; i < header.num_desc; ++i) { in stats_test()
149 TEST_ASSERT(size_data >= header.num_desc * sizeof(*stats_data), in stats_test()
159 for (i = 0; i < header.num_desc; ++i) { in stats_test()
/linux/drivers/net/ethernet/ti/
H A Dk3-cppi-desc-pool.c23 size_t num_desc; member
64 pool->num_desc = size; in k3_cppi_desc_pool_create_name()
65 pool->mem_size = pool->num_desc * pool->desc_size; in k3_cppi_desc_pool_create_name()
80 pool->desc_infos = kcalloc(pool->num_desc, in k3_cppi_desc_pool_create_name()
H A Ddavinci_cpdma.c85 int num_desc; member
226 pool->num_desc = pool->mem_size / pool->desc_size; in cpdma_desc_pool_create()
234 pool->num_desc = cpdma_params->descs_pool_size; in cpdma_desc_pool_create()
235 pool->mem_size = pool->desc_size * pool->num_desc; in cpdma_desc_pool_create()
301 struct cpdma_desc __iomem *desc, int num_desc) in cpdma_desc_free() argument
527 ctlr->num_tx_desc = ctlr->pool->num_desc / 2; in cpdma_ctlr_create()
528 ctlr->num_rx_desc = ctlr->pool->num_desc - ctlr->num_tx_desc; in cpdma_ctlr_create()
1434 ctlr->num_tx_desc = ctlr->pool->num_desc - ctlr->num_rx_desc; in cpdma_set_num_rx_descs()
1438 ctlr->num_tx_desc = ctlr->pool->num_desc - ctlr->num_rx_desc; in cpdma_set_num_rx_descs()
/linux/drivers/soc/ti/
H A Dknav_qmss_queue.c729 WARN_ON(i != pool->num_desc); in kdesc_empty_pool()
808 if (num_desc > (region->num_desc - region->used_desc)) { in knav_pool_create()
832 pool->num_desc = num_desc; in knav_pool_create()
834 region->used_desc += num_desc; in knav_pool_create()
993 if (!region->num_desc) { in knav_queue_setup_region()
1002 if (region->num_desc < 32) { in knav_queue_setup_region()
1003 region->num_desc = 0; in knav_queue_setup_region()
1013 region->num_desc = 0; in knav_queue_setup_region()
1035 pool->num_desc = 0; in knav_queue_setup_region()
1063 region->num_desc = 0; in knav_queue_setup_region()
[all …]
H A Dknav_qmss.h199 unsigned num_desc; member
226 int num_desc; member
/linux/drivers/net/ethernet/qlogic/netxen/
H A Dnetxen_nic_init.c101 for (i = 0; i < rds_ring->num_desc; ++i) { in netxen_release_rx_buffers()
122 for (i = 0; i < tx_ring->num_desc; i++) { in netxen_release_tx_buffers()
194 tx_ring->num_desc = adapter->num_txd; in netxen_alloc_sw_resources()
216 rds_ring->num_desc = adapter->num_rxd; in netxen_alloc_sw_resources()
251 rds_ring->num_desc = adapter->num_lro_rxd; in netxen_alloc_sw_resources()
268 for (i = 0; i < rds_ring->num_desc; i++) { in netxen_alloc_sw_resources()
282 sds_ring->num_desc = adapter->num_rxd; in netxen_alloc_sw_resources()
1529 if (unlikely(index >= rds_ring->num_desc)) in netxen_process_rcv()
1590 if (unlikely(index >= rds_ring->num_desc)) in netxen_process_lro()
1842 (producer-1) & (rds_ring->num_desc-1)); in netxen_post_rx_buffers()
[all …]
H A Dnetxen_nic_ethtool.c420 u32 num_desc; in netxen_validate_ringparam() local
421 num_desc = max(val, min); in netxen_validate_ringparam()
422 num_desc = min(num_desc, max); in netxen_validate_ringparam()
423 num_desc = roundup_pow_of_two(num_desc); in netxen_validate_ringparam()
425 if (val != num_desc) { in netxen_validate_ringparam()
427 netxen_nic_driver_name, r_name, num_desc, val); in netxen_validate_ringparam()
430 return num_desc; in netxen_validate_ringparam()
H A Dnetxen_nic_ctx.c329 prq_rds[i].ring_size = cpu_to_le32(rds_ring->num_desc); in nx_fw_cmd_create_rx_ctx()
342 prq_sds[i].ring_size = cpu_to_le32(sds_ring->num_desc); in nx_fw_cmd_create_rx_ctx()
470 prq_cds->ring_size = cpu_to_le32(tx_ring->num_desc); in nx_fw_cmd_create_tx_ctx()
694 hwctx->cmd_ring_size = cpu_to_le32(tx_ring->num_desc); in netxen_init_old_ctx()
703 cpu_to_le32(rds_ring->num_desc); in netxen_init_old_ctx()
711 hwctx->sts_ring_size = cpu_to_le32(sds_ring->num_desc); in netxen_init_old_ctx()
714 hwctx->sts_rings[ring].size = cpu_to_le32(sds_ring->num_desc); in netxen_init_old_ctx()
H A Dnetxen_nic.h60 (sizeof(struct rcv_desc) * (rds_ring)->num_desc)
62 (sizeof(struct netxen_rx_buffer) * rds_ring->num_desc)
64 (sizeof(struct status_desc) * (sds_ring)->num_desc)
66 (sizeof(struct netxen_cmd_buffer) * tx_ring->num_desc)
68 (sizeof(struct cmd_desc_type0) * tx_ring->num_desc)
611 u32 num_desc; member
625 u32 num_desc; member
646 u32 num_desc; member
1859 tx_ring->sw_consumer, tx_ring->num_desc); in netxen_tx_avail()
/linux/drivers/net/ethernet/qlogic/qlcnic/
H A Dqlcnic_io.c413 producer = get_next_index(producer, tx_ring->num_desc); in qlcnic_tx_encap_pkt()
674 num_txd = tx_ring->num_desc; in qlcnic_xmit_frame()
879 writel((producer - 1) & (rds_ring->num_desc - 1), in qlcnic_post_rx_buffers_nodb()
1095 index = get_next_index(index, sds_ring->num_desc); in qlcnic_handle_fw_message()
1211 if (unlikely(index >= rds_ring->num_desc)) in qlcnic_process_rcv()
1283 if (unlikely(index >= rds_ring->num_desc)) in qlcnic_process_lro()
1473 writel((producer-1) & (rds_ring->num_desc-1), in qlcnic_post_rx_buffers()
1506 if (unlikely(index >= rds_ring->num_desc)) in qlcnic_process_rcv_diag()
1734 if (unlikely(index >= rds_ring->num_desc)) in qlcnic_83xx_process_rcv()
1806 if (unlikely(index >= rds_ring->num_desc)) in qlcnic_83xx_process_lro()
[all …]
/linux/drivers/net/ethernet/toshiba/
H A Dspider_net.c312 alloc_size = chain->num_desc * sizeof(struct spider_net_hw_descr); in spider_net_init_chain()
323 for (i=0; i < chain->num_desc; i++, descr++, hwdescr++) { in spider_net_init_chain()
729 if (cnt < card->tx_chain.num_desc/4) in spider_net_set_low_watermark()
1005 chain->num_desc); in show_rx_chain()
1035 int from = (chain->num_desc + off - cnt) % chain->num_desc; in show_rx_chain()
1036 int to = (chain->num_desc + off - 1) % chain->num_desc; in show_rx_chain()
1105 for (i=0; i<chain->num_desc; i++) { in spider_net_resync_head_ptr()
1125 for (i=0; i<chain->num_desc; i++) { in spider_net_resync_tail_ptr()
1133 if ((i == chain->num_desc) || (i == 0)) in spider_net_resync_tail_ptr()
2347 card->rx_chain.num_desc = rx_descriptors; in spider_net_alloc_card()
[all …]
H A Dspider_net_ethtool.c120 ering->tx_pending = card->tx_chain.num_desc; in spider_net_ethtool_get_ringparam()
122 ering->rx_pending = card->rx_chain.num_desc; in spider_net_ethtool_get_ringparam()
/linux/sound/soc/intel/avs/
H A Dprobes.c89 size_t num_desc; in avs_probe_compr_free() local
93 ret = avs_ipc_probe_get_points(adev, &desc, &num_desc); in avs_probe_compr_free()
100 for (i = 0; i < num_desc; i++) in avs_probe_compr_free()
H A Ddebugfs.c101 size_t num_desc, len = 0; in probe_points_read() local
113 ret = avs_ipc_probe_get_points(adev, &desc, &num_desc); in probe_points_read()
119 for (i = 0; i < num_desc; i++) { in probe_points_read()
/linux/drivers/net/ethernet/chelsio/cxgb4/
H A Dcudbg_lib.h248 entry->num_desc = txq->size; in cudbg_fill_qdesc_txq()
260 entry->num_desc = rxq->size; in cudbg_fill_qdesc_rxq()
272 entry->num_desc = flq->size; in cudbg_fill_qdesc_flq()
/linux/drivers/dma/qcom/
H A Dbam_dma.c65 u32 num_desc; member
77 struct bam_desc_hw desc[] __counted_by(num_desc);
683 async_desc->num_desc = num_alloc; in bam_prep_slave_sg()
871 async_desc->num_desc -= async_desc->xfer_len; in process_channel_irqs()
880 if (!async_desc->num_desc) { in process_channel_irqs()
971 for (i = 0; i < async_desc->num_desc; i++) in bam_tx_status()
1053 if (async_desc->num_desc > avail) in bam_start_dma()
1056 async_desc->xfer_len = async_desc->num_desc; in bam_start_dma()
1059 if (async_desc->num_desc == async_desc->xfer_len) in bam_start_dma()
/linux/include/linux/soc/ti/
H A Dknav_qmss.h71 int num_desc, int region_id);

123