Home
last modified time | relevance | path

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

12

/linux-6.1.9/drivers/net/ethernet/fungible/funeth/
Dfuneth_tx.c349 unsigned int ndesc; in fun_start_xmit() local
358 ndesc = write_pkt_desc(skb, q, tls_len); in fun_start_xmit()
359 if (unlikely(!ndesc)) { in fun_start_xmit()
364 q->prod_cnt += ndesc; in fun_start_xmit()
426 unsigned int npkts = 0, nbytes = 0, ndesc = 0; in fun_txq_reclaim() local
449 ndesc += pkt_desc; in fun_txq_reclaim()
455 q->cons_cnt += ndesc; in fun_txq_reclaim()
487 unsigned int npkts = 0, ndesc = 0, head, reclaim_idx; in fun_xdpq_clean() local
506 ndesc += pkt_desc; in fun_xdpq_clean()
511 q->cons_cnt += ndesc; in fun_xdpq_clean()
[all …]
Dfuneth_txrx.h254 unsigned int ndesc, struct fun_irq *irq, int state,
/linux-6.1.9/drivers/net/ethernet/altera/
Daltera_sgdma.c13 struct sgdma_descrip __iomem *ndesc,
173 struct sgdma_descrip __iomem *ndesc = &descbase[1]; in sgdma_tx_buffer() local
180 ndesc, /* next descriptor */ in sgdma_tx_buffer()
181 sgdma_txphysaddr(priv, ndesc), in sgdma_tx_buffer()
294 struct sgdma_descrip __iomem *ndesc, in sgdma_setup_descrip() argument
305 u32 ctrl = csrrd8(ndesc, sgdma_descroffs(control)); in sgdma_setup_descrip()
307 csrwr8(ctrl, ndesc, sgdma_descroffs(control)); in sgdma_setup_descrip()
342 struct sgdma_descrip __iomem *ndesc = &descbase[1]; in sgdma_async_read() local
353 ndesc, /* next descriptor */ in sgdma_async_read()
354 sgdma_rxphysaddr(priv, ndesc), in sgdma_async_read()
/linux-6.1.9/drivers/net/ethernet/socionext/
Dsni_ave.c232 u32 ndesc; /* number of descriptor */ member
682 u32 proc_idx, done_idx, ndesc, cmdsts; in ave_tx_complete() local
689 ndesc = priv->tx.ndesc; in ave_tx_complete()
722 done_idx = (done_idx + 1) % ndesc; in ave_tx_complete()
749 u32 ndesc, cmdsts; in ave_rx_receive() local
753 ndesc = priv->rx.ndesc; in ave_rx_receive()
754 restpkt = ((proc_idx + ndesc - 1) - done_idx) % ndesc; in ave_rx_receive()
769 proc_idx = (proc_idx + 1) % ndesc; in ave_rx_receive()
793 proc_idx = (proc_idx + 1) % ndesc; in ave_rx_receive()
808 done_idx = (done_idx + 1) % ndesc; in ave_rx_receive()
[all …]
/linux-6.1.9/drivers/net/wireless/mediatek/mt76/
Ddma.c119 Q_WRITE(dev, q, ring_size, q->ndesc); in mt76_dma_sync_idx()
129 if (!q || !q->ndesc) in mt76_dma_queue_reset()
133 for (i = 0; i < q->ndesc; i++) in mt76_dma_queue_reset()
160 q->head = (q->head + 1) % q->ndesc; in mt76_dma_add_buf()
239 if (!q || !q->ndesc) in mt76_dma_tx_cleanup()
314 q->tail = (q->tail + 1) % q->ndesc; in mt76_dma_dequeue()
327 if (q->queued + 1 >= q->ndesc - 1) in mt76_dma_tx_queue_skb_raw()
402 if (q->queued + (tx_info.nbuf + 1) / 2 >= q->ndesc - 1) { in mt76_dma_tx_queue_skb()
453 if (!q->ndesc) in mt76_dma_rx_fill()
458 while (q->queued < q->ndesc - 1) { in mt76_dma_rx_fill()
[all …]
Dusb.c448 q->tail = (q->tail + 1) % q->ndesc; in mt76u_get_next_rx_entry()
581 q->head = (q->head + 1) % q->ndesc; in mt76u_complete_rx()
648 for (i = 0; i < q->ndesc; i++) { in mt76u_submit_rx_buffers()
673 q->ndesc = MT_NUM_RX_ENTRIES; in mt76u_alloc_rx_queue()
676 for (i = 0; i < q->ndesc; i++) { in mt76u_alloc_rx_queue()
697 for (i = 0; i < q->ndesc; i++) { in mt76u_free_rx_queue()
733 for (j = 0; j < q->ndesc; j++) in mt76u_stop_rx()
747 for (j = 0; j < q->ndesc; j++) in mt76u_resume_rx()
865 if (q->queued == q->ndesc) in mt76u_tx_queue_skb()
881 q->head = (q->head + 1) % q->ndesc; in mt76u_tx_queue_skb()
[all …]
Dsdio.c315 q->ndesc = MT76S_NUM_RX_ENTRIES; in mt76s_alloc_rx_queue()
338 q->ndesc = MT76S_NUM_TX_ENTRIES; in mt76s_alloc_tx_queue()
374 q->tail = (q->tail + 1) % q->ndesc; in mt76s_get_next_rx_entry()
527 if (q->queued == q->ndesc) in mt76s_tx_queue_skb()
541 q->head = (q->head + 1) % q->ndesc; in mt76s_tx_queue_skb()
553 if (q->queued == q->ndesc) in mt76s_tx_queue_skb_raw()
565 q->head = (q->head + 1) % q->ndesc; in mt76s_tx_queue_skb_raw()
613 for (j = 0; j < q->ndesc; j++) { in mt76s_deinit()
Dsdio_txrx.c119 int index = (q->head + i) % q->ndesc; in mt76s_rx_run_queue()
133 if (q->queued + i + 1 == q->ndesc) in mt76s_rx_run_queue()
142 q->head = (q->head + i) % q->ndesc; in mt76s_rx_run_queue()
288 q->first = (q->first + 1) % q->ndesc; in mt76s_tx_run_queue()
Ddebugfs.c83 queued = mt76_is_usb(dev) ? q->ndesc - q->queued : q->queued; in mt76_rx_queues_read()
Dtx.c433 q->queued + MT_TXQ_FREE_THR >= q->ndesc; in mt76_txq_stopped()
519 q->queued + 2 * MT_TXQ_FREE_THR >= q->ndesc) { in mt76_txq_schedule_list()
702 q->tail = (q->tail + 1) % q->ndesc; in mt76_queue_tx_complete()
/linux-6.1.9/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/
Dchcr_ktls.c848 u32 len, cpl = 0, ndesc, wr_len, wr_mid = 0; in chcr_ktls_xmit_tcb_cpls() local
856 ndesc = DIV_ROUND_UP(len, 64); in chcr_ktls_xmit_tcb_cpls()
858 credits = chcr_txq_avail(&q->q) - ndesc; in chcr_ktls_xmit_tcb_cpls()
926 ndesc = DIV_ROUND_UP(len, 64); in chcr_ktls_xmit_tcb_cpls()
927 chcr_txq_advance(&q->q, ndesc); in chcr_ktls_xmit_tcb_cpls()
928 cxgb4_ring_tx_db(tx_info->adap, &q->q, ndesc); in chcr_ktls_xmit_tcb_cpls()
999 unsigned int ndesc; in chcr_ktls_write_tcp_options() local
1020 ndesc = DIV_ROUND_UP(len16, 4); in chcr_ktls_write_tcp_options()
1022 credits = chcr_txq_avail(&q->q) - ndesc; in chcr_ktls_write_tcp_options()
1083 chcr_txq_advance(&q->q, ndesc); in chcr_ktls_write_tcp_options()
[all …]
/linux-6.1.9/drivers/net/ethernet/chelsio/inline_crypto/ch_ipsec/
Dchcr_ipsec.c572 u16 ndesc; in ch_ipsec_crypto_wreq() local
581 ndesc = DIV_ROUND_UP(flits, 2); in ch_ipsec_crypto_wreq()
597 wr_mid = FW_CRYPTO_LOOKASIDE_WR_LEN16_V(ndesc); in ch_ipsec_crypto_wreq()
610 wr->req.ulptx.len = htonl(ndesc - 1); in ch_ipsec_crypto_wreq()
707 unsigned int last_desc, ndesc, flits = 0; in ch_ipsec_xmit() local
737 ndesc = flits_to_desc(flits); in ch_ipsec_xmit()
738 credits = txq_avail(&q->q) - ndesc; in ch_ipsec_xmit()
744 dev->name, qidx, credits, ndesc, txq_avail(&q->q), in ch_ipsec_xmit()
749 last_desc = q->q.pidx + ndesc - 1; in ch_ipsec_xmit()
787 txq_advance(&q->q, ndesc); in ch_ipsec_xmit()
[all …]
/linux-6.1.9/drivers/net/ethernet/ti/
Dnetcp_core.c108 static void get_pkt_info(dma_addr_t *buff, u32 *buff_len, dma_addr_t *ndesc, in get_pkt_info() argument
113 *ndesc = le32_to_cpu(desc->next_desc); in get_pkt_info()
150 static void set_pkt_info(dma_addr_t buff, u32 buff_len, u32 ndesc, in set_pkt_info() argument
155 desc->next_desc = cpu_to_le32(ndesc); in set_pkt_info()
580 struct knav_dma_desc *ndesc; in netcp_free_rx_desc_chain() local
582 unsigned int buf_len, dma_sz = sizeof(*ndesc); in netcp_free_rx_desc_chain()
589 ndesc = knav_pool_desc_unmap(netcp->rx_pool, dma_desc, dma_sz); in netcp_free_rx_desc_chain()
590 if (unlikely(!ndesc)) { in netcp_free_rx_desc_chain()
594 get_pkt_info(&dma_buf, &tmp, &dma_desc, ndesc); in netcp_free_rx_desc_chain()
598 buf_ptr = (void *)GET_SW_DATA0(ndesc); in netcp_free_rx_desc_chain()
[all …]
/linux-6.1.9/drivers/usb/mon/
Dmon_bin.c113 unsigned int ndesc; /* Actual number of ISO descriptors */ member
448 struct urb *urb, unsigned int ndesc) in mon_bin_collate_isodesc() argument
455 while (ndesc-- != 0) { in mon_bin_collate_isodesc()
466 unsigned int offset, struct urb *urb, char ev_type, unsigned int ndesc) in mon_bin_get_isodesc() argument
472 while (ndesc-- != 0) { in mon_bin_get_isodesc()
495 unsigned int ndesc, lendesc; in mon_bin_event() local
513 ndesc = 0; in mon_bin_event()
515 ndesc = ISODESC_MAX; in mon_bin_event()
517 ndesc = urb->number_of_packets; in mon_bin_event()
520 length = mon_bin_collate_isodesc(rp, urb, ndesc); in mon_bin_event()
[all …]
Dmon_text.c200 int i, ndesc; in mon_text_event() local
233 if ((ndesc = urb->number_of_packets) > ISODESC_MAX) in mon_text_event()
234 ndesc = ISODESC_MAX; in mon_text_event()
237 for (i = 0; i < ndesc; i++) { in mon_text_event()
591 int ndesc; /* Display this many */ in mon_text_read_isodesc() local
597 ndesc = ep->numdesc; in mon_text_read_isodesc()
598 if (ndesc > ISODESC_MAX) in mon_text_read_isodesc()
599 ndesc = ISODESC_MAX; in mon_text_read_isodesc()
600 if (ndesc < 0) in mon_text_read_isodesc()
601 ndesc = 0; in mon_text_read_isodesc()
[all …]
/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb4/
Dsge.c1505 unsigned int last_desc, flits, ndesc; in cxgb4_eth_xmit() local
1563 ndesc = flits_to_desc(flits); in cxgb4_eth_xmit()
1564 credits = txq_avail(&q->q) - ndesc; in cxgb4_eth_xmit()
1580 last_desc = q->q.pidx + ndesc - 1; in cxgb4_eth_xmit()
1733 txq_advance(&q->q, ndesc); in cxgb4_eth_xmit()
1735 cxgb4_ring_tx_db(adap, &q->q, ndesc); in cxgb4_eth_xmit()
1826 unsigned int last_desc, flits, ndesc; in cxgb4_vf_eth_xmit() local
1870 ndesc = flits_to_desc(flits); in cxgb4_vf_eth_xmit()
1871 credits = txq_avail(&txq->q) - ndesc; in cxgb4_vf_eth_xmit()
1886 last_desc = txq->q.pidx + ndesc - 1; in cxgb4_vf_eth_xmit()
[all …]
/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb3/
Dsge.c1092 static void write_wr_hdr_sgl(unsigned int ndesc, struct sk_buff *skb, in write_wr_hdr_sgl() argument
1110 if (likely(ndesc == 1)) { in write_wr_hdr_sgl()
1133 ndesc--; in write_wr_hdr_sgl()
1163 WARN_ON(ndesc != 0); in write_wr_hdr_sgl()
1184 struct sge_txq *q, unsigned int ndesc, in write_tx_pkt_wr() argument
1242 sgp = ndesc == 1 ? (struct sg_ent *)&d->flit[flits] : sgl; in write_tx_pkt_wr()
1245 write_wr_hdr_sgl(ndesc, skb, d, pidx, q, sgl, flits, sgl_flits, gen, in write_tx_pkt_wr()
1268 unsigned int ndesc, pidx, credits, gen, compl; in t3_eth_xmit() local
1293 ndesc = calc_tx_descs(skb); in t3_eth_xmit()
1295 if (unlikely(credits < ndesc)) { in t3_eth_xmit()
[all …]
/linux-6.1.9/drivers/dma/
Didma64.c187 static struct idma64_desc *idma64_alloc_desc(unsigned int ndesc) in idma64_alloc_desc() argument
195 desc->hw = kcalloc(ndesc, sizeof(*desc->hw), GFP_NOWAIT); in idma64_alloc_desc()
209 if (desc->ndesc) { in idma64_desc_free()
210 unsigned int i = desc->ndesc; in idma64_desc_free()
272 unsigned int i = desc->ndesc; in idma64_desc_fill()
312 desc->ndesc = i; in idma64_prep_slave_sg()
321 desc->ndesc = sg_len; in idma64_prep_slave_sg()
354 } while (++i < desc->ndesc); in idma64_active_desc_size()
Didma64.h117 unsigned int ndesc; member
/linux-6.1.9/drivers/net/wireless/ath/ath9k/
Dinit.c285 int nbuf, int ndesc, bool is_tx) in ath_descdma_setup() argument
292 name, nbuf, ndesc); in ath_descdma_setup()
308 dd->dd_desc_len = desc_len * nbuf * ndesc; in ath_descdma_setup()
348 for (i = 0; i < nbuf; i++, bf++, ds += (desc_len * ndesc)) { in ath_descdma_setup()
364 ds += (desc_len * ndesc); in ath_descdma_setup()
379 for (i = 0; i < nbuf; i++, bf++, ds += (desc_len * ndesc)) { in ath_descdma_setup()
395 ds += (desc_len * ndesc); in ath_descdma_setup()
/linux-6.1.9/drivers/infiniband/hw/qib/
Dqib_verbs.c143 u32 ndesc = 1; /* count the header */ in qib_count_sge() local
150 ndesc = 0; in qib_count_sge()
153 ndesc++; in qib_count_sge()
173 return ndesc; in qib_count_sge()
782 u32 ndesc; in qib_verbs_send_dma() local
817 ndesc = qib_count_sge(ss, len); in qib_verbs_send_dma()
818 if (ndesc >= ppd->sdma_descq_cnt) in qib_verbs_send_dma()
819 ndesc = 0; in qib_verbs_send_dma()
821 ndesc = 1; in qib_verbs_send_dma()
822 if (ndesc) { in qib_verbs_send_dma()
[all …]
Dqib_user_sdma.c808 int *maxpkts, int *ndesc) in qib_user_sdma_queue_pkts() argument
1028 *ndesc += pkt->naddr; in qib_user_sdma_queue_pkts()
1414 int ndesc = 0; in qib_user_sdma_writev() local
1417 iov, dim, &list, &mxp, &ndesc); in qib_user_sdma_writev()
1430 if (qib_sdma_descq_freecnt(ppd) < ndesc) { in qib_user_sdma_writev()
/linux-6.1.9/drivers/infiniband/ulp/srp/
Dib_srp.h347 unsigned int ndesc; member
/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb4vf/
Dsge.c1162 unsigned int flits, ndesc; in t4vf_eth_xmit() local
1213 ndesc = flits_to_desc(flits); in t4vf_eth_xmit()
1214 credits = txq_avail(&txq->q) - ndesc; in t4vf_eth_xmit()
1364 ndesc, credits, txq->q.pidx, skb->len, ssi->nr_frags); in t4vf_eth_xmit()
1435 last_desc = tq->pidx + ndesc - 1; in t4vf_eth_xmit()
1446 txq_advance(&txq->q, ndesc); in t4vf_eth_xmit()
1448 ring_tx_db(adapter, &txq->q, ndesc); in t4vf_eth_xmit()
/linux-6.1.9/drivers/net/ethernet/atheros/
Dag71xx.c1468 int i, ring_mask, ndesc, split; in ag71xx_fill_dma_desc() local
1472 ndesc = 0; in ag71xx_fill_dma_desc()
1481 i = (ring->curr + ndesc) & ring_mask; in ag71xx_fill_dma_desc()
1505 if (!ndesc) in ag71xx_fill_dma_desc()
1509 ndesc++; in ag71xx_fill_dma_desc()
1512 return ndesc; in ag71xx_fill_dma_desc()

12