num_desc 616 drivers/atm/iphase.c int num_desc; num_desc 618 drivers/atm/iphase.c num_desc = ia_avail_descs(iadev); num_desc 620 drivers/atm/iphase.c while (num_desc && (skb = skb_dequeue(&iadev->tx_backlog))) { num_desc 634 drivers/atm/iphase.c num_desc--; num_desc 147 drivers/dma/mic_x100_dma.c int num_desc = len / max_xfer_size + 3; num_desc 151 drivers/dma/mic_x100_dma.c num_desc++; num_desc 153 drivers/dma/mic_x100_dma.c ret = mic_dma_avail_desc_ring_space(ch, num_desc); num_desc 65 drivers/dma/qcom/bam_dma.c u32 num_desc; num_desc 642 drivers/dma/qcom/bam_dma.c async_desc->num_desc = num_alloc; num_desc 834 drivers/dma/qcom/bam_dma.c async_desc->num_desc -= async_desc->xfer_len; num_desc 843 drivers/dma/qcom/bam_dma.c if (!async_desc->num_desc) { num_desc 934 drivers/dma/qcom/bam_dma.c for (i = 0; i < async_desc->num_desc; i++) num_desc 1016 drivers/dma/qcom/bam_dma.c if (async_desc->num_desc > avail) num_desc 1019 drivers/dma/qcom/bam_dma.c async_desc->xfer_len = async_desc->num_desc; num_desc 1022 drivers/dma/qcom/bam_dma.c if (async_desc->num_desc == async_desc->xfer_len) num_desc 158 drivers/gpu/drm/amd/amdgpu/psp_gfx_if.h uint32_t num_desc; /* number of buffer descriptors in the list */ num_desc 69 drivers/gpu/drm/via/via_dmablit.c int num_desc = vsg->num_desc; num_desc 70 drivers/gpu/drm/via/via_dmablit.c unsigned cur_descriptor_page = num_desc / vsg->descriptors_per_page; num_desc 71 drivers/gpu/drm/via/via_dmablit.c unsigned descriptor_this_page = num_desc % vsg->descriptors_per_page; num_desc 76 drivers/gpu/drm/via/via_dmablit.c while (num_desc--) { num_desc 112 drivers/gpu/drm/via/via_dmablit.c int num_desc = 0; num_desc 151 drivers/gpu/drm/via/via_dmablit.c num_desc++; num_desc 164 drivers/gpu/drm/via/via_dmablit.c vsg->num_desc = num_desc; num_desc 269 drivers/gpu/drm/via/via_dmablit.c vsg->num_desc_pages = (vsg->num_desc + vsg->descriptors_per_page - 1) / num_desc 282 drivers/gpu/drm/via/via_dmablit.c vsg->num_desc); num_desc 45 drivers/gpu/drm/via/via_dmablit.h int num_desc; num_desc 342 drivers/infiniband/hw/hfi1/iowait.h u16 num_desc = 0; num_desc 348 drivers/infiniband/hw/hfi1/iowait.h num_desc = tx->num_desc; num_desc 352 drivers/infiniband/hw/hfi1/iowait.h return num_desc; num_desc 357 drivers/infiniband/hw/hfi1/iowait.h u32 num_desc = 0; num_desc 359 drivers/infiniband/hw/hfi1/iowait.h num_desc = iowait_get_desc(&w->wait[IOWAIT_IB_SE]); num_desc 360 drivers/infiniband/hw/hfi1/iowait.h num_desc += iowait_get_desc(&w->wait[IOWAIT_TID_SE]); num_desc 361 drivers/infiniband/hw/hfi1/iowait.h return num_desc; num_desc 1681 drivers/infiniband/hw/hfi1/sdma.c if (tx->num_desc) { num_desc 1689 drivers/infiniband/hw/hfi1/sdma.c for (i = 1 + skip; i < tx->num_desc; i++) num_desc 1691 drivers/infiniband/hw/hfi1/sdma.c tx->num_desc = 0; num_desc 1788 drivers/infiniband/hw/hfi1/sdma.c u32 num_desc; num_desc 1795 drivers/infiniband/hw/hfi1/sdma.c num_desc = iowait_get_all_desc(wait); num_desc 1796 drivers/infiniband/hw/hfi1/sdma.c if (num_desc > avail) num_desc 1798 drivers/infiniband/hw/hfi1/sdma.c avail -= num_desc; num_desc 2323 drivers/infiniband/hw/hfi1/sdma.c for (i = 1; i < tx->num_desc; i++, descp++) { num_desc 2347 drivers/infiniband/hw/hfi1/sdma.c sde->desc_avail -= tx->num_desc; num_desc 2363 drivers/infiniband/hw/hfi1/sdma.c if (tx->num_desc <= sde->desc_avail) num_desc 2412 drivers/infiniband/hw/hfi1/sdma.c if (unlikely(tx->num_desc > sde->desc_avail)) num_desc 2432 drivers/infiniband/hw/hfi1/sdma.c iowait_inc_wait_count(wait, tx->num_desc); num_desc 2489 drivers/infiniband/hw/hfi1/sdma.c if (unlikely(tx->num_desc > sde->desc_avail)) num_desc 2528 drivers/infiniband/hw/hfi1/sdma.c iowait_inc_wait_count(wait, tx->num_desc); num_desc 3061 drivers/infiniband/hw/hfi1/sdma.c if (unlikely((tx->num_desc == (MAX_DESC - 1)))) { num_desc 3076 drivers/infiniband/hw/hfi1/sdma.c if (unlikely(tx->num_desc == MAX_DESC)) num_desc 3089 drivers/infiniband/hw/hfi1/sdma.c for (i = 0; i < tx->num_desc; i++) num_desc 3205 drivers/infiniband/hw/hfi1/sdma.c tx->num_desc++; num_desc 3206 drivers/infiniband/hw/hfi1/sdma.c if ((unlikely(tx->num_desc == tx->desc_limit))) { num_desc 3248 drivers/infiniband/hw/hfi1/sdma.c tx->num_desc++; num_desc 3252 drivers/infiniband/hw/hfi1/sdma.c tx->num_desc++; num_desc 3257 drivers/infiniband/hw/hfi1/sdma.c tx->num_desc++; num_desc 556 drivers/infiniband/hw/hfi1/sdma.h tx->num_desc = 0; num_desc 641 drivers/infiniband/hw/hfi1/sdma.h struct sdma_desc *desc = &tx->descp[tx->num_desc]; num_desc 643 drivers/infiniband/hw/hfi1/sdma.h if (!tx->num_desc) { num_desc 667 drivers/infiniband/hw/hfi1/sdma.h if (tx->num_desc) num_desc 675 drivers/infiniband/hw/hfi1/sdma.h tx->descp[tx->num_desc].qw[0] |= num_desc 677 drivers/infiniband/hw/hfi1/sdma.h tx->descp[tx->num_desc].qw[1] |= num_desc 680 drivers/infiniband/hw/hfi1/sdma.h tx->descp[tx->num_desc].qw[1] |= num_desc 710 drivers/infiniband/hw/hfi1/sdma.h tx->num_desc++; num_desc 740 drivers/infiniband/hw/hfi1/sdma.h if ((unlikely(tx->num_desc == tx->desc_limit))) { num_desc 787 drivers/infiniband/hw/hfi1/sdma.h if ((unlikely(tx->num_desc == tx->desc_limit))) { num_desc 822 drivers/infiniband/hw/hfi1/sdma.h if ((unlikely(tx->num_desc == tx->desc_limit))) { num_desc 903 drivers/infiniband/hw/hfi1/sdma.h if (tx->num_desc > sde->desc_avail) num_desc 118 drivers/infiniband/hw/hfi1/sdma_txreq.h u16 num_desc; num_desc 133 drivers/infiniband/hw/hfi1/sdma_txreq.h return tx->num_desc; num_desc 95 drivers/infiniband/hw/hfi1/verbs_txreq.h tx->txreq.num_desc = 0; num_desc 298 drivers/infiniband/hw/hfi1/vnic_sdma.c vnic_sdma->stx.num_desc = HFI1_VNIC_SDMA_DESC_WTRMRK; num_desc 716 drivers/mailbox/bcm-pdc-mailbox.c u32 num_desc; num_desc 721 drivers/mailbox/bcm-pdc-mailbox.c num_desc = (u32)sg_nents(sg); num_desc 726 drivers/mailbox/bcm-pdc-mailbox.c if (unlikely(num_desc > tx_avail)) { num_desc 883 drivers/mailbox/bcm-pdc-mailbox.c u32 num_desc; num_desc 888 drivers/mailbox/bcm-pdc-mailbox.c num_desc = (u32)sg_nents(sg); num_desc 892 drivers/mailbox/bcm-pdc-mailbox.c if (unlikely(num_desc > rx_avail)) { num_desc 338 drivers/net/ethernet/chelsio/cxgb4/cudbg_entity.h u32 num_desc; num_desc 244 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.h entry->num_desc = txq->size; num_desc 256 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.h entry->num_desc = rxq->size; num_desc 268 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.h entry->num_desc = flq->size; num_desc 60 drivers/net/ethernet/qlogic/netxen/netxen_nic.h (sizeof(struct rcv_desc) * (rds_ring)->num_desc) num_desc 62 drivers/net/ethernet/qlogic/netxen/netxen_nic.h (sizeof(struct netxen_rx_buffer) * rds_ring->num_desc) num_desc 64 drivers/net/ethernet/qlogic/netxen/netxen_nic.h (sizeof(struct status_desc) * (sds_ring)->num_desc) num_desc 66 drivers/net/ethernet/qlogic/netxen/netxen_nic.h (sizeof(struct netxen_cmd_buffer) * tx_ring->num_desc) num_desc 68 drivers/net/ethernet/qlogic/netxen/netxen_nic.h (sizeof(struct cmd_desc_type0) * tx_ring->num_desc) num_desc 611 drivers/net/ethernet/qlogic/netxen/netxen_nic.h u32 num_desc; num_desc 625 drivers/net/ethernet/qlogic/netxen/netxen_nic.h u32 num_desc; num_desc 646 drivers/net/ethernet/qlogic/netxen/netxen_nic.h u32 num_desc; num_desc 1862 drivers/net/ethernet/qlogic/netxen/netxen_nic.h tx_ring->sw_consumer, tx_ring->num_desc); num_desc 328 drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c prq_rds[i].ring_size = cpu_to_le32(rds_ring->num_desc); num_desc 341 drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c prq_sds[i].ring_size = cpu_to_le32(sds_ring->num_desc); num_desc 468 drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c prq_cds->ring_size = cpu_to_le32(tx_ring->num_desc); num_desc 694 drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c hwctx->cmd_ring_size = cpu_to_le32(tx_ring->num_desc); num_desc 703 drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c cpu_to_le32(rds_ring->num_desc); num_desc 711 drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c hwctx->sts_ring_size = cpu_to_le32(sds_ring->num_desc); num_desc 714 drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c hwctx->sts_rings[ring].size = cpu_to_le32(sds_ring->num_desc); num_desc 418 drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c u32 num_desc; num_desc 419 drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c num_desc = max(val, min); num_desc 420 drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c num_desc = min(num_desc, max); num_desc 421 drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c num_desc = roundup_pow_of_two(num_desc); num_desc 423 drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c if (val != num_desc) { num_desc 425 drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c netxen_nic_driver_name, r_name, num_desc, val); num_desc 428 drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c return num_desc; num_desc 587 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c producer = get_next_index(producer, tx_ring->num_desc); num_desc 101 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c for (i = 0; i < rds_ring->num_desc; ++i) { num_desc 124 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c for (i = 0; i < tx_ring->num_desc; i++) { num_desc 196 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c tx_ring->num_desc = adapter->num_txd; num_desc 218 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c rds_ring->num_desc = adapter->num_rxd; num_desc 237 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c rds_ring->num_desc = adapter->num_jumbo_rxd; num_desc 253 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c rds_ring->num_desc = adapter->num_lro_rxd; num_desc 270 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c for (i = 0; i < rds_ring->num_desc; i++) { num_desc 284 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c sds_ring->num_desc = adapter->num_rxd; num_desc 1438 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c index = get_next_index(index, sds_ring->num_desc); num_desc 1532 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c if (unlikely(index >= rds_ring->num_desc)) num_desc 1593 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c if (unlikely(index >= rds_ring->num_desc)) num_desc 1703 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c consumer = get_next_index(consumer, sds_ring->num_desc); num_desc 1772 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c sw_consumer = get_next_index(sw_consumer, tx_ring->num_desc); num_desc 1838 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c producer = get_next_index(producer, rds_ring->num_desc); num_desc 1844 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c (producer-1) & (rds_ring->num_desc-1)); num_desc 1856 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c (rds_ring->num_desc - 1))); num_desc 1898 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c producer = get_next_index(producer, rds_ring->num_desc); num_desc 1904 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c (producer - 1) & (rds_ring->num_desc - 1)); num_desc 1954 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c producer = get_next_index(producer, tx_ring->num_desc); num_desc 1971 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c producer = get_next_index(producer, tx_ring->num_desc); num_desc 2050 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c u32 num_txd = tx_ring->num_desc; num_desc 1261 drivers/net/ethernet/qlogic/qed/qed_ll2.c u16 num_desc = p_ll2_info->input.rx_num_desc; num_desc 1263 drivers/net/ethernet/qlogic/qed/qed_ll2.c if (!num_desc) num_desc 1265 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_ll2_info->input.rx_num_ooo_buffers = num_desc * 2; num_desc 66 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h (sizeof(struct rcv_desc) * (rds_ring)->num_desc) num_desc 68 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h (sizeof(struct qlcnic_rx_buffer) * rds_ring->num_desc) num_desc 70 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h (sizeof(struct status_desc) * (sds_ring)->num_desc) num_desc 72 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h (sizeof(struct qlcnic_cmd_buffer) * tx_ring->num_desc) num_desc 74 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h (sizeof(struct cmd_desc_type0) * tx_ring->num_desc) num_desc 580 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h u32 num_desc; num_desc 592 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h u32 num_desc; num_desc 625 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h u32 num_desc; num_desc 1731 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h return tx_ring->sw_consumer + tx_ring->num_desc - num_desc 1095 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c sds_mbx.sds_ring_size = sds->num_desc; num_desc 1218 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c sds_mbx.sds_ring_size = sds->num_desc; num_desc 1240 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c rds_mbx.reg_ring_len = rds->num_desc; num_desc 1247 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c rds_mbx.jmb_ring_len = rds->num_desc; num_desc 1338 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c mbx.size = tx->num_desc; num_desc 316 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c prq_rds[i].ring_size = cpu_to_le32(rds_ring->num_desc); num_desc 329 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c prq_sds[i].ring_size = cpu_to_le32(sds_ring->num_desc); num_desc 480 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c prq_cds->ring_size = cpu_to_le32(tx_ring->num_desc); num_desc 652 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c u32 num_desc; num_desc 653 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c num_desc = max(val, min); num_desc 654 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c num_desc = min(num_desc, max); num_desc 655 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c num_desc = roundup_pow_of_two(num_desc); num_desc 657 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c if (val != num_desc) { num_desc 659 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c qlcnic_driver_name, r_name, num_desc, val); num_desc 662 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c return num_desc; num_desc 423 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c producer = get_next_index(producer, tx_ring->num_desc); num_desc 93 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c for (i = 0; i < rds_ring->num_desc; ++i) { num_desc 122 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c for (i = 0; i < rds_ring->num_desc; i++) { num_desc 140 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c for (i = 0; i < tx_ring->num_desc; i++) { num_desc 206 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c rds_ring->num_desc = adapter->num_rxd; num_desc 212 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c rds_ring->num_desc = adapter->num_jumbo_rxd; num_desc 234 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c for (i = 0; i < rds_ring->num_desc; i++) { num_desc 247 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c sds_ring->num_desc = adapter->num_rxd; num_desc 297 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c tx_ring->producer = get_next_index(producer, tx_ring->num_desc); num_desc 413 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c producer = get_next_index(producer, tx_ring->num_desc); num_desc 536 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c producer = get_next_index(producer, tx_ring->num_desc); num_desc 549 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c producer = get_next_index(producer, tx_ring->num_desc); num_desc 675 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c num_txd = tx_ring->num_desc; num_desc 876 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c producer = get_next_index(producer, rds_ring->num_desc); num_desc 880 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c writel((producer - 1) & (rds_ring->num_desc - 1), num_desc 921 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c sw_consumer = get_next_index(sw_consumer, tx_ring->num_desc); num_desc 1096 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c index = get_next_index(index, sds_ring->num_desc); num_desc 1212 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c if (unlikely(index >= rds_ring->num_desc)) num_desc 1284 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c if (unlikely(index >= rds_ring->num_desc)) num_desc 1407 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c consumer = get_next_index(consumer, sds_ring->num_desc); num_desc 1468 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c producer = get_next_index(producer, rds_ring->num_desc); num_desc 1473 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c writel((producer-1) & (rds_ring->num_desc-1), num_desc 1506 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c if (unlikely(index >= rds_ring->num_desc)) num_desc 1566 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c consumer = get_next_index(consumer, sds_ring->num_desc); num_desc 1736 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c if (unlikely(index >= rds_ring->num_desc)) num_desc 1808 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c if (unlikely(index >= rds_ring->num_desc)) num_desc 1925 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c consumer = get_next_index(consumer, sds_ring->num_desc); num_desc 2187 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c if (unlikely(index >= rds_ring->num_desc)) num_desc 2229 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c consumer = get_next_index(consumer, sds_ring->num_desc); num_desc 2412 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c tx_ring->num_desc = adapter->num_txd; num_desc 2998 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c for (i = 0; i < tx_ring->num_desc; i++) { num_desc 3025 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c rds_ring->producer, rds_ring->num_desc); num_desc 3036 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c sds_ring->num_desc); num_desc 3063 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c tx_ring->num_desc, qlcnic_tx_avail(tx_ring)); num_desc 85 drivers/net/ethernet/ti/davinci_cpdma.c int num_desc; num_desc 226 drivers/net/ethernet/ti/davinci_cpdma.c pool->num_desc = pool->mem_size / pool->desc_size; num_desc 234 drivers/net/ethernet/ti/davinci_cpdma.c pool->num_desc = cpdma_params->descs_pool_size; num_desc 235 drivers/net/ethernet/ti/davinci_cpdma.c pool->mem_size = pool->desc_size * pool->num_desc; num_desc 301 drivers/net/ethernet/ti/davinci_cpdma.c struct cpdma_desc __iomem *desc, int num_desc) num_desc 527 drivers/net/ethernet/ti/davinci_cpdma.c ctlr->num_tx_desc = ctlr->pool->num_desc / 2; num_desc 528 drivers/net/ethernet/ti/davinci_cpdma.c ctlr->num_rx_desc = ctlr->pool->num_desc - ctlr->num_tx_desc; num_desc 1434 drivers/net/ethernet/ti/davinci_cpdma.c ctlr->num_tx_desc = ctlr->pool->num_desc - ctlr->num_rx_desc; num_desc 1438 drivers/net/ethernet/ti/davinci_cpdma.c ctlr->num_tx_desc = ctlr->pool->num_desc - ctlr->num_rx_desc; num_desc 286 drivers/net/ethernet/toshiba/spider_net.c dma_free_coherent(&card->pdev->dev, chain->num_desc, num_desc 310 drivers/net/ethernet/toshiba/spider_net.c alloc_size = chain->num_desc * sizeof(struct spider_net_hw_descr); num_desc 317 drivers/net/ethernet/toshiba/spider_net.c memset(chain->ring, 0, chain->num_desc * sizeof(struct spider_net_descr)); num_desc 323 drivers/net/ethernet/toshiba/spider_net.c for (i=0; i < chain->num_desc; i++, descr++, hwdescr++) { num_desc 720 drivers/net/ethernet/toshiba/spider_net.c if (cnt < card->tx_chain.num_desc/4) num_desc 994 drivers/net/ethernet/toshiba/spider_net.c chain->num_desc); num_desc 1024 drivers/net/ethernet/toshiba/spider_net.c int from = (chain->num_desc + off - cnt) % chain->num_desc; num_desc 1025 drivers/net/ethernet/toshiba/spider_net.c int to = (chain->num_desc + off - 1) % chain->num_desc; num_desc 1093 drivers/net/ethernet/toshiba/spider_net.c for (i=0; i<chain->num_desc; i++) { num_desc 1113 drivers/net/ethernet/toshiba/spider_net.c for (i=0; i<chain->num_desc; i++) { num_desc 1121 drivers/net/ethernet/toshiba/spider_net.c if ((i == chain->num_desc) || (i == 0)) num_desc 2327 drivers/net/ethernet/toshiba/spider_net.c card->rx_chain.num_desc = rx_descriptors; num_desc 2329 drivers/net/ethernet/toshiba/spider_net.c card->tx_chain.num_desc = tx_descriptors; num_desc 397 drivers/net/ethernet/toshiba/spider_net.h int num_desc; num_desc 118 drivers/net/ethernet/toshiba/spider_net_ethtool.c ering->tx_pending = card->tx_chain.num_desc; num_desc 120 drivers/net/ethernet/toshiba/spider_net_ethtool.c ering->rx_pending = card->rx_chain.num_desc; num_desc 199 drivers/soc/ti/knav_qmss.h unsigned num_desc; num_desc 226 drivers/soc/ti/knav_qmss.h int num_desc; num_desc 700 drivers/soc/ti/knav_qmss_queue.c for (i = 0; i < pool->num_desc; i++) { num_desc 734 drivers/soc/ti/knav_qmss_queue.c WARN_ON(i != pool->num_desc); num_desc 765 drivers/soc/ti/knav_qmss_queue.c int num_desc, int region_id) num_desc 814 drivers/soc/ti/knav_qmss_queue.c if (num_desc > (region->num_desc - region->used_desc)) { num_desc 829 drivers/soc/ti/knav_qmss_queue.c if ((pi->region_offset - last_offset) >= num_desc) { num_desc 833 drivers/soc/ti/knav_qmss_queue.c last_offset = pi->region_offset + pi->num_desc; num_desc 839 drivers/soc/ti/knav_qmss_queue.c pool->num_desc = num_desc; num_desc 841 drivers/soc/ti/knav_qmss_queue.c region->used_desc += num_desc; num_desc 881 drivers/soc/ti/knav_qmss_queue.c pool->region->used_desc -= pool->num_desc; num_desc 999 drivers/soc/ti/knav_qmss_queue.c if (!region->num_desc) { num_desc 1005 drivers/soc/ti/knav_qmss_queue.c hw_num_desc = ilog2(region->num_desc - 1) + 1; num_desc 1008 drivers/soc/ti/knav_qmss_queue.c if (region->num_desc < 32) { num_desc 1009 drivers/soc/ti/knav_qmss_queue.c region->num_desc = 0; num_desc 1015 drivers/soc/ti/knav_qmss_queue.c size = region->num_desc * region->desc_size; num_desc 1019 drivers/soc/ti/knav_qmss_queue.c region->num_desc = 0; num_desc 1041 drivers/soc/ti/knav_qmss_queue.c pool->num_desc = 0; num_desc 1042 drivers/soc/ti/knav_qmss_queue.c pool->region_offset = region->num_desc; num_desc 1047 drivers/soc/ti/knav_qmss_queue.c region->name, id, region->desc_size, region->num_desc, num_desc 1069 drivers/soc/ti/knav_qmss_queue.c region->num_desc = 0; num_desc 1104 drivers/soc/ti/knav_qmss_queue.c region->num_desc = temp[0]; num_desc 79 include/linux/soc/ti/knav_qmss.h int num_desc, int region_id);