Home
last modified time | relevance | path

Searched refs:desc_ring (Results 1 – 22 of 22) sorted by relevance

/linux-6.1.9/kernel/printk/
Dprintk_ringbuffer.c311 #define DESCS_COUNT(desc_ring) _DESCS_COUNT((desc_ring)->count_bits) argument
312 #define DESCS_COUNT_MASK(desc_ring) (DESCS_COUNT(desc_ring) - 1) argument
318 #define DESC_INDEX(desc_ring, n) ((n) & DESCS_COUNT_MASK(desc_ring)) argument
333 #define DESC_ID_PREV_WRAP(desc_ring, id) \ argument
334 DESC_ID((id) - DESCS_COUNT(desc_ring))
355 static struct prb_desc *to_desc(struct prb_desc_ring *desc_ring, u64 n) in to_desc() argument
357 return &desc_ring->descs[DESC_INDEX(desc_ring, n)]; in to_desc()
364 static struct printk_info *to_info(struct prb_desc_ring *desc_ring, u64 n) in to_info() argument
366 return &desc_ring->infos[DESC_INDEX(desc_ring, n)]; in to_info()
432 static enum desc_state desc_read(struct prb_desc_ring *desc_ring, in desc_read() argument
[all …]
Dprintk_ringbuffer.h88 struct prb_desc_ring desc_ring; member
256 .desc_ring = { \
Dprintk.c927 VMCOREINFO_OFFSET(printk_ringbuffer, desc_ring); in log_buf_vmcoreinfo_setup()
/linux-6.1.9/drivers/net/ethernet/marvell/octeon_ep/
Doctep_rx.c34 struct octep_oq_desc_hw *desc_ring = oq->desc_ring; in octep_oq_fill_ring_buffers() local
44 desc_ring[i].buffer_ptr = dma_map_page(oq->dev, page, 0, in octep_oq_fill_ring_buffers()
47 if (dma_mapping_error(oq->dev, desc_ring[i].buffer_ptr)) { in octep_oq_fill_ring_buffers()
63 dma_unmap_page(oq->dev, desc_ring[i].buffer_ptr, PAGE_SIZE, DMA_FROM_DEVICE); in octep_oq_fill_ring_buffers()
81 struct octep_oq_desc_hw *desc_ring = oq->desc_ring; in octep_oq_refill() local
94 desc_ring[refill_idx].buffer_ptr = dma_map_page(oq->dev, page, 0, in octep_oq_refill()
96 if (dma_mapping_error(oq->dev, desc_ring[refill_idx].buffer_ptr)) { in octep_oq_refill()
152 oq->desc_ring = dma_alloc_coherent(oq->dev, desc_ring_size, in octep_setup_oq()
155 if (unlikely(!oq->desc_ring)) { in octep_setup_oq()
182 oq->desc_ring, oq->desc_ring_dma); in octep_setup_oq()
[all …]
Doctep_tx.c200 iq->desc_ring = dma_alloc_coherent(iq->dev, desc_ring_size, in octep_setup_iq()
202 if (unlikely(!iq->desc_ring)) { in octep_setup_iq()
250 iq->desc_ring, iq->desc_ring_dma); in octep_setup_iq()
275 if (iq->desc_ring) in octep_free_iq()
277 iq->desc_ring, iq->desc_ring_dma); in octep_free_iq()
Doctep_rx.h192 struct octep_oq_desc_hw *desc_ring; member
Doctep_tx.h164 struct octep_tx_desc_hw *desc_ring; member
Doctep_main.c648 hw_desc = &iq->desc_ring[wi]; in octep_start_xmit()
/linux-6.1.9/drivers/net/ethernet/google/gve/
Dgve_rx_dqo.c203 if (rx->dqo.bufq.desc_ring) { in gve_rx_free_ring_dqo()
204 size = sizeof(rx->dqo.bufq.desc_ring[0]) * buffer_queue_slots; in gve_rx_free_ring_dqo()
205 dma_free_coherent(hdev, size, rx->dqo.bufq.desc_ring, in gve_rx_free_ring_dqo()
207 rx->dqo.bufq.desc_ring = NULL; in gve_rx_free_ring_dqo()
210 if (rx->dqo.complq.desc_ring) { in gve_rx_free_ring_dqo()
211 size = sizeof(rx->dqo.complq.desc_ring[0]) * in gve_rx_free_ring_dqo()
213 dma_free_coherent(hdev, size, rx->dqo.complq.desc_ring, in gve_rx_free_ring_dqo()
215 rx->dqo.complq.desc_ring = NULL; in gve_rx_free_ring_dqo()
264 size = sizeof(rx->dqo.complq.desc_ring[0]) * in gve_rx_alloc_ring_dqo()
266 rx->dqo.complq.desc_ring = in gve_rx_alloc_ring_dqo()
[all …]
Dgve_rx.c53 dma_free_coherent(dev, bytes, rx->desc.desc_ring, rx->desc.bus); in gve_rx_free_ring()
54 rx->desc.desc_ring = NULL; in gve_rx_free_ring()
214 rx->desc.desc_ring = dma_alloc_coherent(hdev, bytes, &rx->desc.bus, in gve_rx_alloc_ring()
216 if (!rx->desc.desc_ring) { in gve_rx_alloc_ring()
429 desc = &rx->desc.desc_ring[idx]; in gve_rx_ctx_init()
455 prefetch(rx->desc.desc_ring + idx); in gve_rx_ctx_init()
555 first_desc = &rx->desc.desc_ring[idx]; in gve_rx()
592 desc = &rx->desc.desc_ring[idx]; in gve_rx()
641 desc = rx->desc.desc_ring + next_idx; in gve_rx_work_pending()
713 desc = &rx->desc.desc_ring[idx]; in gve_clean_rx_done()
[all …]
Dgve.h52 struct gve_rx_desc *desc_ring; /* the descriptor ring */ member
91 struct gve_rx_desc_dqo *desc_ring; member
100 struct gve_rx_compl_desc_dqo *desc_ring; member
Dgve_adminq.c660 if (priv->rx_desc_cnt * sizeof(priv->rx->desc.desc_ring[0]) in gve_set_desc_cnt()
/linux-6.1.9/scripts/gdb/linux/
Ddmesg.py44 desc_ring = utils.read_memoryview(inf, addr, sz).tobytes()
48 desc_ring_count = 1 << utils.read_u32(desc_ring, off)
51 desc_addr = utils.read_ulong(desc_ring, off)
56 info_addr = utils.read_ulong(desc_ring, off)
89 tail_id = utils.read_atomic_long(desc_ring, off)
91 head_id = utils.read_atomic_long(desc_ring, off)
/linux-6.1.9/drivers/net/ethernet/cavium/liquidio/
Docteon_droq.c172 struct octeon_droq_desc *desc_ring = droq->desc_ring; in octeon_droq_setup_ring_buffers() local
186 desc_ring[i].info_ptr = 0; in octeon_droq_setup_ring_buffers()
187 desc_ring[i].buffer_ptr = in octeon_droq_setup_ring_buffers()
207 if (droq->desc_ring) in octeon_delete_droq()
209 droq->desc_ring, droq->desc_ring_dma); in octeon_delete_droq()
269 droq->desc_ring = lio_dma_alloc(oct, desc_ring_size, in octeon_init_droq()
272 if (!droq->desc_ring) { in octeon_init_droq()
279 q_no, droq->desc_ring, droq->desc_ring_dma); in octeon_init_droq()
390 struct octeon_droq_desc *desc_ring) in octeon_droq_refill_pullup_descs() argument
402 desc_ring[droq->refill_idx].buffer_ptr = in octeon_droq_refill_pullup_descs()
[all …]
Docteon_droq.h257 struct octeon_droq_desc *desc_ring; member
/linux-6.1.9/drivers/dma/
Dplx_dma.c116 struct plx_dma_desc **desc_ring; member
131 return plxdev->desc_ring[i & (PLX_DMA_RING_COUNT - 1)]; in plx_dma_get_desc()
381 plxdev->desc_ring = kcalloc(PLX_DMA_RING_COUNT, in plx_dma_alloc_desc()
382 sizeof(*plxdev->desc_ring), GFP_KERNEL); in plx_dma_alloc_desc()
383 if (!plxdev->desc_ring) in plx_dma_alloc_desc()
395 plxdev->desc_ring[i] = desc; in plx_dma_alloc_desc()
402 kfree(plxdev->desc_ring[i]); in plx_dma_alloc_desc()
403 kfree(plxdev->desc_ring); in plx_dma_alloc_desc()
480 kfree(plxdev->desc_ring[i]); in plx_dma_free_chan_resources()
482 kfree(plxdev->desc_ring); in plx_dma_free_chan_resources()
/linux-6.1.9/drivers/net/ethernet/ti/
Dcpmac.c192 struct cpmac_desc *desc_ring; member
552 desc = &priv->desc_ring[queue]; in cpmac_start_xmit()
585 desc = &priv->desc_ring[queue]; in cpmac_end_xmit()
704 if (unlikely(!priv->desc_ring)) in cpmac_clear_tx()
707 priv->desc_ring[i].dataflags = 0; in cpmac_clear_tx()
708 if (priv->desc_ring[i].skb) { in cpmac_clear_tx()
709 dev_kfree_skb_any(priv->desc_ring[i].skb); in cpmac_clear_tx()
710 priv->desc_ring[i].skb = NULL; in cpmac_clear_tx()
930 priv->desc_ring = dma_alloc_coherent(&dev->dev, in cpmac_open()
934 if (!priv->desc_ring) { in cpmac_open()
[all …]
/linux-6.1.9/drivers/net/ethernet/socionext/
Dnetsec.c292 struct netsec_desc_ring desc_ring[NETSEC_RING_MAX]; member
637 struct netsec_desc_ring *dring = &priv->desc_ring[NETSEC_RING_TX]; in netsec_clean_tx_dring()
739 struct netsec_desc_ring *dring = &priv->desc_ring[NETSEC_RING_RX]; in netsec_alloc_rx_data()
761 struct netsec_desc_ring *dring = &priv->desc_ring[NETSEC_RING_RX]; in netsec_rx_fill()
832 struct netsec_desc_ring *tx_ring = &priv->desc_ring[NETSEC_RING_TX]; in netsec_xdp_queue_one()
861 &priv->desc_ring[NETSEC_RING_RX]; in netsec_xdp_queue_one()
884 struct netsec_desc_ring *tx_ring = &priv->desc_ring[NETSEC_RING_TX]; in netsec_xdp_xmit_back()
901 struct netsec_desc_ring *dring = &priv->desc_ring[NETSEC_RING_RX]; in netsec_run_xdp()
953 struct netsec_desc_ring *dring = &priv->desc_ring[NETSEC_RING_RX]; in netsec_process_rx()
1115 struct netsec_desc_ring *dring = &priv->desc_ring[NETSEC_RING_TX]; in netsec_check_stop_tx()
[all …]
/linux-6.1.9/Documentation/admin-guide/kdump/
Dgdbmacros.txt298 set var $desc_count = 1U << prb->desc_ring.count_bits
301 set var $id = prb->desc_ring.tail_id.counter
302 set var $end_id = prb->desc_ring.head_id.counter
305 set var $desc = &prb->desc_ring.descs[$id % $desc_count]
306 set var $info = &prb->desc_ring.infos[$id % $desc_count]
Dvmcoreinfo.rst229 (printk_ringbuffer, desc_ring|text_data_ring|dict_data_ring|fail)
/linux-6.1.9/drivers/net/ethernet/cortina/
Dgemini.c552 struct gmac_txdesc *desc_ring; in gmac_setup_txqs() local
565 desc_ring = dma_alloc_coherent(geth->dev, len * sizeof(*desc_ring), in gmac_setup_txqs()
568 if (!desc_ring) { in gmac_setup_txqs()
575 dma_free_coherent(geth->dev, len * sizeof(*desc_ring), in gmac_setup_txqs()
576 desc_ring, port->txq_dma_base); in gmac_setup_txqs()
585 txq->ring = desc_ring; in gmac_setup_txqs()
596 desc_ring += entries; in gmac_setup_txqs()
/linux-6.1.9/drivers/net/ethernet/rdc/
Dr6040.c294 static void r6040_init_ring_desc(struct r6040_descriptor *desc_ring, in r6040_init_ring_desc() argument
297 struct r6040_descriptor *desc = desc_ring; in r6040_init_ring_desc()
308 desc->vndescp = desc_ring; in r6040_init_ring_desc()