Home
last modified time | relevance | path

Searched refs:desc_num (Results 1 – 25 of 38) sorted by relevance

12

/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_cmd.c22 used = (ntu - ntc + ring->desc_num) % ring->desc_num; in hclgevf_ring_space()
24 return ring->desc_num - used - 1; in hclgevf_ring_space()
58 clean = (head - csq->next_to_clean + csq->desc_num) % csq->desc_num; in hclgevf_cmd_csq_clean()
99 reg_val |= (ring->desc_num >> HCLGEVF_NIC_CMQ_DESC_NUM_S); in hclgevf_cmd_config_regs()
110 reg_val = (ring->desc_num >> HCLGEVF_NIC_CMQ_DESC_NUM_S); in hclgevf_cmd_config_regs()
126 int size = ring->desc_num * sizeof(struct hclgevf_desc); in hclgevf_alloc_cmd_desc()
138 int size = ring->desc_num * sizeof(struct hclgevf_desc); in hclgevf_free_cmd_desc()
194 if (hw->cmq.csq.next_to_use == hw->cmq.csq.desc_num) in hclgevf_cmd_copy_desc()
237 if (ntc == hw->cmq.csq.desc_num) in hclgevf_cmd_check_retval()
414 hdev->hw.cmq.csq.desc_num = HCLGEVF_NIC_CMQ_DESC_NUM; in hclgevf_cmd_queue_init()
[all …]
Dhclgevf_cmd.h41 u16 desc_num; member
/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_cmd.c20 int used = (ntu - ntc + ring->desc_num) % ring->desc_num; in hclge_ring_space()
22 return ring->desc_num - used - 1; in hclge_ring_space()
38 int size = ring->desc_num * sizeof(struct hclge_desc); in hclge_alloc_cmd_desc()
50 int size = ring->desc_num * sizeof(struct hclge_desc); in hclge_free_cmd_desc()
113 reg_val |= ring->desc_num >> HCLGE_NIC_CMQ_DESC_NUM_S; in hclge_cmd_config_regs()
123 ring->desc_num >> HCLGE_NIC_CMQ_DESC_NUM_S); in hclge_cmd_config_regs()
156 clean = (head - csq->next_to_clean + csq->desc_num) % csq->desc_num; in hclge_cmd_csq_clean()
210 if (hw->cmq.csq.next_to_use >= hw->cmq.csq.desc_num) in hclge_cmd_copy_desc()
252 if (ntc >= hw->cmq.csq.desc_num) in hclge_cmd_check_retval()
443 hdev->hw.cmq.csq.desc_num = HCLGE_NIC_CMQ_DESC_NUM; in hclge_cmd_queue_init()
[all …]
Dhclge_err.c1355 int desc_num = 1; in hclge_cmd_query_error() local
1362 desc_num = 2; in hclge_cmd_query_error()
1365 ret = hclge_cmd_send(&hdev->hw, &desc[0], desc_num); in hclge_cmd_query_error()
1618 int desc_num = 1; in hclge_config_ppu_error_interrupts() local
1645 desc_num = 2; in hclge_config_ppu_error_interrupts()
1667 ret = hclge_cmd_send(&hdev->hw, &desc[0], desc_num); in hclge_config_ppu_error_interrupts()
/drivers/net/wireless/ath/wcn36xx/
Ddxe.c62 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()
176 size = wcn_ch->desc_num * sizeof(struct wcn36xx_dxe_desc); in wcn36xx_dxe_init_descs()
185 for (i = 0; i < wcn_ch->desc_num; i++) { in wcn36xx_dxe_init_descs()
210 } else if ((0 < i) && (i < wcn_ch->desc_num - 1)) { in wcn36xx_dxe_init_descs()
[all …]
Ddxe.h434 enum wcn36xx_dxe_ch_desc_num desc_num; member
/drivers/net/ethernet/hisilicon/hns/
Dhnae.h279 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()
Dhnae.c123 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()
Dhns_dsaf_rcb.c388 hns_rcb_set_port_desc_cnt(rcb_common, i, rcb_common->desc_num); in hns_rcb_common_init_hw()
446 u16 desc_num, mdnum_ppkt; in hns_rcb_ring_get_cfg() local
466 desc_num = rcb_common->dsaf_dev->desc_num; in hns_rcb_ring_get_cfg()
475 ring->desc_num = desc_num; in hns_rcb_ring_get_cfg()
680 if (coalesced_frames >= rcb_common->desc_num || in hns_rcb_set_rx_coalesced_frames()
799 rcb_common->desc_num = dsaf_dev->desc_num; in hns_rcb_common_get_cfg()
Dhns_ae_adapt.c606 (dsaf_dev->desc_num - 1 > HNS_RCB_TX_FRAMES_HIGH) ? in hns_ae_get_coalesce_range()
607 HNS_RCB_TX_FRAMES_HIGH : dsaf_dev->desc_num - 1; in hns_ae_get_coalesce_range()
611 *rx_frames_high = (dsaf_dev->desc_num - 1 > HNS_RCB_RX_FRAMES_HIGH) ? in hns_ae_get_coalesce_range()
612 HNS_RCB_RX_FRAMES_HIGH : dsaf_dev->desc_num - 1; in hns_ae_get_coalesce_range()
Dhns_dsaf_rcb.h109 u32 desc_num; /* desc num per queue*/ member
Dhns_dsaf_main.c44 u32 desc_num; in hns_dsaf_get_cfg() local
164 ret = device_property_read_u32(dsaf_dev->dev, "desc-num", &desc_num); in hns_dsaf_get_cfg()
165 if (ret < 0 || desc_num < HNS_DSAF_MIN_DESC_CNT || in hns_dsaf_get_cfg()
166 desc_num > HNS_DSAF_MAX_DESC_CNT) { in hns_dsaf_get_cfg()
168 desc_num, ret); in hns_dsaf_get_cfg()
171 dsaf_dev->desc_num = desc_num; in hns_dsaf_get_cfg()
/drivers/usb/dwc2/
Dhcd.h715 struct dwc2_hcd_urb *dwc2_urb, int desc_num, u32 offset, in dwc2_hcd_urb_set_iso_desc_params() argument
718 dwc2_urb->iso_descs[desc_num].offset = offset; in dwc2_hcd_urb_set_iso_desc_params()
719 dwc2_urb->iso_descs[desc_num].length = length; in dwc2_hcd_urb_set_iso_desc_params()
723 struct dwc2_hcd_urb *dwc2_urb, int desc_num) in dwc2_hcd_urb_get_iso_desc_status() argument
725 return dwc2_urb->iso_descs[desc_num].status; in dwc2_hcd_urb_get_iso_desc_status()
729 struct dwc2_hcd_urb *dwc2_urb, int desc_num) in dwc2_hcd_urb_get_iso_desc_actual_length() argument
731 return dwc2_urb->iso_descs[desc_num].actual_length; in dwc2_hcd_urb_get_iso_desc_actual_length()
Dhcd_ddma.c1152 int desc_num, in dwc2_process_non_isoc_desc() argument
1168 qh->desc_list_dma + (desc_num * in dwc2_process_non_isoc_desc()
1173 dma_desc = &qh->desc_list[desc_num]; in dwc2_process_non_isoc_desc()
1174 n_bytes = qh->n_bytes[desc_num]; in dwc2_process_non_isoc_desc()
1177 qtd, urb, desc_num, dma_desc, n_bytes); in dwc2_process_non_isoc_desc()
1204 } else if (desc_num + 1 == qtd->n_desc) { in dwc2_process_non_isoc_desc()
1230 int desc_num = 0; in dwc2_complete_non_isoc_xfer_ddma() local
1248 desc_num, halt_status, in dwc2_complete_non_isoc_xfer_ddma()
1254 desc_num++; in dwc2_complete_non_isoc_xfer_ddma()
/drivers/dma/ti/
Dcppi41.c258 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 …]
/drivers/net/ethernet/ti/
Ddavinci_cpdma.c116 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 …]
/drivers/dma/lgm/
Dlgm-dma.c217 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 …]
/drivers/dma/
Dmmp_tdma.c109 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()
Dk3dma.c73 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()
/drivers/dma/sh/
Dshdma-base.c233 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()
/drivers/net/ethernet/hisilicon/hns3/
Dhns3_enet.c1916 for (i = 0; i < ring->desc_num; i++) { in hns3_clear_desc()
2190 (ring->desc_num - 1); in hns3_nic_net_xmit()
3271 for (i = 0; i < ring->desc_num; i++) in hns3_free_buffers()
3278 int size = ring->desc_num * sizeof(ring->desc[0]); in hns3_free_desc()
3291 int size = ring->desc_num * sizeof(ring->desc[0]); in hns3_alloc_desc()
3341 for (i = 0; i < ring->desc_num; i++) { in hns3_alloc_ring_buffers()
3413 if (++ntc == ring->desc_num) in hns3_nic_reclaim_desc()
3478 return ring->desc_num; in hns3_desc_unused()
3480 return ((ntc >= ntu) ? 0 : ring->desc_num) + ntc - ntu; in hns3_desc_unused()
3832 if (unlikely(ring->next_to_clean == ring->desc_num)) in hns3_rx_ring_move_fw()
[all …]
Dhnae3.h158 ((ring)->p = ((ring)->p + 1) % (ring)->desc_num)
160 ((ring)->p = ((ring)->p - 1 + (ring)->desc_num) % (ring)->desc_num)
Dhclge_mbx.h212 (crq->next_to_use = (crq->next_to_use + 1) % crq->desc_num)
Dhns3_enet.h469 u16 desc_num; /* total number of desc */ member
619 return ((end >= begin) ? (ring->desc_num - end + begin) : in ring_space()
Dhns3_ethtool.c658 param->tx_pending = priv->ring[0].desc_num; in hns3_get_ringparam()
659 param->rx_pending = priv->ring[queue_num].desc_num; in hns3_get_ringparam()
1041 priv->ring[i].desc_num = tx_desc_num; in hns3_change_all_ring_bd_num()
1042 priv->ring[i + h->kinfo.num_tqps].desc_num = rx_desc_num; in hns3_change_all_ring_bd_num()
1106 old_tx_desc_num = priv->ring[0].desc_num; in hns3_set_ringparam()
1107 old_rx_desc_num = priv->ring[queue_num].desc_num; in hns3_set_ringparam()

12