/linux-6.6.21/drivers/net/ethernet/hisilicon/hns3/hns3_common/ |
D | hclge_comm_cmd.c | 20 reg_val |= ring->desc_num >> HCLGE_COMM_NIC_CMQ_DESC_NUM_S; in hclge_comm_cmd_config_regs() 29 reg_val = ring->desc_num >> HCLGE_COMM_NIC_CMQ_DESC_NUM_S; in hclge_comm_cmd_config_regs() 104 int size = ring->desc_num * sizeof(struct hclge_desc); in hclge_comm_free_cmd_desc() 116 int size = ring->desc_num * sizeof(struct hclge_desc); in hclge_comm_alloc_cmd_desc() 286 int used = (ntu - ntc + ring->desc_num) % ring->desc_num; in hclge_comm_ring_space() 288 return ring->desc_num - used - 1; in hclge_comm_ring_space() 301 if (hw->cmq.csq.next_to_use >= hw->cmq.csq.desc_num) in hclge_comm_cmd_copy_desc() 339 clean = (head - csq->next_to_clean + csq->desc_num) % csq->desc_num; in hclge_comm_cmd_csq_clean() 418 if (ntc >= hw->cmq.csq.desc_num) in hclge_comm_cmd_check_retval() 561 cmdq->csq.desc_num = HCLGE_COMM_NIC_CMQ_DESC_NUM; in hclge_comm_cmd_queue_init() [all …]
|
D | hclge_comm_cmd.h | 410 u16 desc_num; member
|
/linux-6.6.21/drivers/dma/xilinx/ |
D | xdma.c | 94 u32 desc_num; member 164 last_blk_desc = (sw_desc->desc_num - 1) & XDMA_DESC_ADJACENT_MASK; in xdma_link_desc_blocks() 236 xdma_alloc_desc(struct xdma_chan *chan, u32 desc_num) in xdma_alloc_desc() argument 250 sw_desc->desc_num = desc_num; in xdma_alloc_desc() 251 dblk_num = DIV_ROUND_UP(desc_num, XDMA_DESC_ADJACENT); in xdma_alloc_desc() 324 val = (desc->desc_num - 1) & XDMA_DESC_ADJACENT_MASK; in xdma_xfer_start() 458 u32 desc_num = 0, i, len, rest; in xdma_prep_device_sg() local 467 desc_num += DIV_ROUND_UP(sg_dma_len(sg), XDMA_DESC_BLEN_MAX); in xdma_prep_device_sg() 469 sw_desc = xdma_alloc_desc(xdma_chan, desc_num); in xdma_prep_device_sg() 486 desc_num = 1; in xdma_prep_device_sg() [all …]
|
/linux-6.6.21/drivers/net/wireless/ath/wcn36xx/ |
D | dxe.c | 62 for (i = 0; i < ch->desc_num && ctl; i++) { in wcn36xx_dxe_free_ctl_block() 76 for (i = 0; i < ch->desc_num; i++) { in wcn36xx_dxe_allocate_ctl_block() 85 } else if (ch->desc_num - 1 == i) { in wcn36xx_dxe_allocate_ctl_block() 110 wcn->dxe_tx_l_ch.desc_num = WCN36XX_DXE_CH_DESC_NUMB_TX_L; in wcn36xx_dxe_alloc_ctl_blks() 111 wcn->dxe_tx_h_ch.desc_num = WCN36XX_DXE_CH_DESC_NUMB_TX_H; in wcn36xx_dxe_alloc_ctl_blks() 112 wcn->dxe_rx_l_ch.desc_num = WCN36XX_DXE_CH_DESC_NUMB_RX_L; in wcn36xx_dxe_alloc_ctl_blks() 113 wcn->dxe_rx_h_ch.desc_num = WCN36XX_DXE_CH_DESC_NUMB_RX_H; in wcn36xx_dxe_alloc_ctl_blks() 177 size = wcn_ch->desc_num * sizeof(struct wcn36xx_dxe_desc); in wcn36xx_dxe_init_descs() 186 for (i = 0; i < wcn_ch->desc_num; i++) { in wcn36xx_dxe_init_descs() 211 } else if ((0 < i) && (i < wcn_ch->desc_num - 1)) { in wcn36xx_dxe_init_descs() [all …]
|
D | dxe.h | 434 enum wcn36xx_dxe_ch_desc_num desc_num; member
|
/linux-6.6.21/drivers/net/ethernet/hisilicon/hns/ |
D | hnae.h | 279 u16 desc_num; /* total number of desc */ member 301 ((ring)->p = ((ring)->p + 1) % (ring)->desc_num) 303 ((ring)->p = ((ring)->p - 1 + (ring)->desc_num) % (ring)->desc_num) 311 assert((idx) >= 0 && (idx) < (ring)->desc_num) 321 return (end - begin + ring->desc_num) % ring->desc_num; in ring_dist() 326 return ring->desc_num - in ring_space() 666 for (j = 0; j < ring->desc_num; j++) in hnae_reinit_all_ring_desc() 681 for (j = 0; j < ring->desc_num; j++) { in hnae_reinit_all_ring_page_off()
|
D | hnae.c | 123 for (i = 0; i < ring->desc_num; i++) in hnae_free_buffers() 132 for (i = 0; i < ring->desc_num; i++) { in hnae_alloc_buffers() 150 ring->desc_num * sizeof(ring->desc[0]), in hnae_free_desc() 160 int size = ring->desc_num * sizeof(ring->desc[0]); in hnae_alloc_desc() 197 if (ring->desc_num <= 0 || ring->buf_size <= 0) in hnae_init_ring() 209 ring->desc_cb = kcalloc(ring->desc_num, sizeof(ring->desc_cb[0]), in hnae_init_ring()
|
D | hns_dsaf_rcb.c | 384 hns_rcb_set_port_desc_cnt(rcb_common, i, rcb_common->desc_num); in hns_rcb_common_init_hw() 442 u16 desc_num, mdnum_ppkt; in hns_rcb_ring_get_cfg() local 462 desc_num = rcb_common->dsaf_dev->desc_num; in hns_rcb_ring_get_cfg() 471 ring->desc_num = desc_num; in hns_rcb_ring_get_cfg() 676 if (coalesced_frames >= rcb_common->desc_num || in hns_rcb_set_rx_coalesced_frames() 795 rcb_common->desc_num = dsaf_dev->desc_num; in hns_rcb_common_get_cfg()
|
D | hns_dsaf_rcb.h | 109 u32 desc_num; /* desc num per queue*/ member
|
D | hns_ae_adapt.c | 605 (dsaf_dev->desc_num - 1 > HNS_RCB_TX_FRAMES_HIGH) ? in hns_ae_get_coalesce_range() 606 HNS_RCB_TX_FRAMES_HIGH : dsaf_dev->desc_num - 1; in hns_ae_get_coalesce_range() 610 *rx_frames_high = (dsaf_dev->desc_num - 1 > HNS_RCB_RX_FRAMES_HIGH) ? in hns_ae_get_coalesce_range() 611 HNS_RCB_RX_FRAMES_HIGH : dsaf_dev->desc_num - 1; in hns_ae_get_coalesce_range()
|
/linux-6.6.21/drivers/usb/dwc2/ |
D | hcd.h | 686 struct dwc2_hcd_urb *dwc2_urb, int desc_num, u32 offset, in dwc2_hcd_urb_set_iso_desc_params() argument 689 dwc2_urb->iso_descs[desc_num].offset = offset; in dwc2_hcd_urb_set_iso_desc_params() 690 dwc2_urb->iso_descs[desc_num].length = length; in dwc2_hcd_urb_set_iso_desc_params() 694 struct dwc2_hcd_urb *dwc2_urb, int desc_num) in dwc2_hcd_urb_get_iso_desc_status() argument 696 return dwc2_urb->iso_descs[desc_num].status; in dwc2_hcd_urb_get_iso_desc_status() 700 struct dwc2_hcd_urb *dwc2_urb, int desc_num) in dwc2_hcd_urb_get_iso_desc_actual_length() argument 702 return dwc2_urb->iso_descs[desc_num].actual_length; in dwc2_hcd_urb_get_iso_desc_actual_length()
|
D | hcd_ddma.c | 1122 int desc_num, in dwc2_process_non_isoc_desc() argument 1138 qh->desc_list_dma + (desc_num * in dwc2_process_non_isoc_desc() 1143 dma_desc = &qh->desc_list[desc_num]; in dwc2_process_non_isoc_desc() 1144 n_bytes = qh->n_bytes[desc_num]; in dwc2_process_non_isoc_desc() 1147 qtd, urb, desc_num, dma_desc, n_bytes); in dwc2_process_non_isoc_desc() 1174 } else if (desc_num + 1 == qtd->n_desc) { in dwc2_process_non_isoc_desc() 1200 int desc_num = 0; in dwc2_complete_non_isoc_xfer_ddma() local 1218 desc_num, halt_status, in dwc2_complete_non_isoc_xfer_ddma() 1224 desc_num++; in dwc2_complete_non_isoc_xfer_ddma()
|
/linux-6.6.21/drivers/dma/ti/ |
D | cppi41.c | 258 u32 desc_num; in desc_to_chan() local 267 desc_num = (desc - cdd->descs_phys) / sizeof(struct cppi41_desc); in desc_to_chan() 268 BUG_ON(desc_num >= ALLOC_DECS_NUM); in desc_to_chan() 269 c = cdd->chan_busy[desc_num]; in desc_to_chan() 270 cdd->chan_busy[desc_num] = NULL; in desc_to_chan() 434 u32 desc_num; in push_desc_queue() local 466 desc_num = (desc_phys - cdd->descs_phys) / sizeof(struct cppi41_desc); in push_desc_queue() 467 WARN_ON(cdd->chan_busy[desc_num]); in push_desc_queue() 468 cdd->chan_busy[desc_num] = c; in push_desc_queue() 740 u32 desc_num; in cppi41_stop_chan() local [all …]
|
/linux-6.6.21/drivers/net/ethernet/ti/ |
D | davinci_cpdma.c | 116 u32 desc_num; member 680 int rx, int desc_num, in cpdma_chan_set_descs() argument 684 int desc_cnt = desc_num; in cpdma_chan_set_descs() 688 if (!desc_num) in cpdma_chan_set_descs() 705 chan->desc_num = (chan->weight * desc_num) / 100; in cpdma_chan_set_descs() 707 chan->desc_num = per_ch_desc; in cpdma_chan_set_descs() 709 desc_cnt -= chan->desc_num; in cpdma_chan_set_descs() 711 if (most_dnum < chan->desc_num) { in cpdma_chan_set_descs() 712 most_dnum = chan->desc_num; in cpdma_chan_set_descs() 718 most_chan->desc_num += desc_cnt; in cpdma_chan_set_descs() [all …]
|
/linux-6.6.21/drivers/dma/lgm/ |
D | lgm-dma.c | 217 u32 desc_num; member 636 int desc_num) in ldma_chan_desc_hw_cfg() argument 652 writel(desc_num, d->base + DMA_CDLEN); in ldma_chan_desc_hw_cfg() 659 ldma_chan_desc_cfg(struct dma_chan *chan, dma_addr_t desc_base, int desc_num) in ldma_chan_desc_cfg() argument 666 if (!desc_num) { in ldma_chan_desc_cfg() 672 if (desc_num > DMA_MAX_DESC_NUM) { in ldma_chan_desc_cfg() 674 c->nr, desc_num); in ldma_chan_desc_cfg() 678 ldma_chan_desc_hw_cfg(c, desc_base, desc_num); in ldma_chan_desc_cfg() 681 c->desc_cnt = desc_num; in ldma_chan_desc_cfg() 980 if (num > c->desc_num) { in dma_alloc_desc_resource() [all …]
|
/linux-6.6.21/drivers/dma/ |
D | mmp_tdma.c | 109 int desc_num; member 359 int size = tdmac->desc_num * sizeof(struct mmp_tdma_desc); in mmp_tdma_free_descriptor() 411 int size = tdmac->desc_num * sizeof(struct mmp_tdma_desc); in mmp_tdma_alloc_descriptor() 450 tdmac->desc_num = num_periods; in mmp_tdma_prep_dma_cyclic()
|
D | k3dma.c | 73 size_t desc_num; member 410 for (; index < ds->desc_num; index++) { in k3_dma_tx_status() 450 if (num != ds->desc_num - 1) in k3_dma_fill_desc() 485 ds->desc_num = num; in k3_dma_alloc_desc_resource()
|
/linux-6.6.21/drivers/dma/sh/ |
D | shdma-base.c | 233 schan->desc_num = NR_DESCS_PER_CHANNEL; in shdma_alloc_chan_resources() 479 schan->desc_num = 0; in shdma_free_chan_resources() 649 BUG_ON(!schan->desc_num); in shdma_prep_memcpy() 674 BUG_ON(!schan->desc_num); in shdma_prep_slave_sg() 709 BUG_ON(!schan->desc_num); in shdma_prep_dma_cyclic()
|
/linux-6.6.21/include/linux/ |
D | shdma-base.h | 64 int desc_num; /* desc count */ member
|
/linux-6.6.21/drivers/net/ethernet/hisilicon/hns3/ |
D | hns3_enet.c | 1975 for (i = 0; i < ring->desc_num; i++) { in hns3_clear_desc() 2057 int idx = (ring->next_to_use - num + ring->desc_num) % in hns3_tx_push_bd() 2058 ring->desc_num; in hns3_tx_push_bd() 2335 (ring->desc_num - 1); in hns3_nic_net_xmit() 3468 for (i = 0; i < ring->desc_num; i++) in hns3_free_buffers() 3475 int size = ring->desc_num * sizeof(ring->desc[0]); in hns3_free_desc() 3488 int size = ring->desc_num * sizeof(ring->desc[0]); in hns3_alloc_desc() 3538 for (i = 0; i < ring->desc_num; i++) { in hns3_alloc_ring_buffers() 3609 if (++ntc == ring->desc_num) in hns3_nic_reclaim_desc() 3674 return ring->desc_num; in hns3_desc_unused() [all …]
|
D | hclge_mbx.h | 248 (crq->next_to_use = (crq->next_to_use + 1) % crq->desc_num)
|
D | hnae3.h | 184 ((ring)->p = ((ring)->p + 1) % (ring)->desc_num) 186 ((ring)->p = ((ring)->p - 1 + (ring)->desc_num) % (ring)->desc_num)
|
D | hns3_enet.h | 480 u16 desc_num; /* total number of desc */ member 630 return ((end >= begin) ? (ring->desc_num - end + begin) : in ring_space()
|
D | hns3_ethtool.c | 688 param->tx_pending = priv->ring[0].desc_num; in hns3_get_ringparam() 689 param->rx_pending = priv->ring[rx_queue_index].desc_num; in hns3_get_ringparam() 1080 priv->ring[i].desc_num = tx_desc_num; in hns3_change_all_ring_bd_num() 1081 priv->ring[i + h->kinfo.num_tqps].desc_num = rx_desc_num; in hns3_change_all_ring_bd_num() 1156 old_ringparam->tx_desc_num = priv->ring[0].desc_num; in hns3_is_ringparam_changed() 1157 old_ringparam->rx_desc_num = priv->ring[queue_num].desc_num; in hns3_is_ringparam_changed()
|
/linux-6.6.21/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hclge_err.c | 1369 int desc_num = 1; in hclge_cmd_query_error() local 1376 desc_num = 2; in hclge_cmd_query_error() 1379 ret = hclge_cmd_send(&hdev->hw, &desc[0], desc_num); in hclge_cmd_query_error() 1632 int desc_num = 1; in hclge_config_ppu_error_interrupts() local 1659 desc_num = 2; in hclge_config_ppu_error_interrupts() 1681 ret = hclge_cmd_send(&hdev->hw, &desc[0], desc_num); in hclge_config_ppu_error_interrupts()
|