Home
last modified time | relevance | path

Searched refs:data_ring (Results 1 – 6 of 6) sorted by relevance

/linux-6.12.1/kernel/printk/
Dprintk_ringbuffer.c312 #define DATA_SIZE(data_ring) _DATA_SIZE((data_ring)->size_bits) argument
313 #define DATA_SIZE_MASK(data_ring) (DATA_SIZE(data_ring) - 1) argument
319 #define DATA_INDEX(data_ring, lpos) ((lpos) & DATA_SIZE_MASK(data_ring)) argument
325 #define DATA_WRAPS(data_ring, lpos) ((lpos) >> (data_ring)->size_bits) argument
333 #define DATA_THIS_WRAP_START_LPOS(data_ring, lpos) \ argument
334 ((lpos) & ~DATA_SIZE_MASK(data_ring))
373 static struct prb_data_block *to_block(struct prb_data_ring *data_ring, in to_block() argument
376 return (void *)&data_ring->data[DATA_INDEX(data_ring, begin_lpos)]; in to_block()
398 static bool data_check_size(struct prb_data_ring *data_ring, unsigned int size) in data_check_size() argument
411 if (size > DATA_SIZE(data_ring) - sizeof(db->id)) in data_check_size()
[all …]
/linux-6.12.1/drivers/net/ethernet/google/gve/
Dgve_rx.c39 &rx->data.data_ring[i]); in gve_rx_unfill_pages()
125 if (rx->data.data_ring) { in gve_rx_free_ring_gqi()
126 bytes = sizeof(*rx->data.data_ring) * slots; in gve_rx_free_ring_gqi()
127 dma_free_coherent(dev, bytes, rx->data.data_ring, in gve_rx_free_ring_gqi()
129 rx->data.data_ring = NULL; in gve_rx_free_ring_gqi()
203 &rx->data.data_ring[i].qpl_offset); in gve_rx_prefill_pages()
208 &rx->data.data_ring[i], rx); in gve_rx_prefill_pages()
255 &rx->data.data_ring[i]); in gve_rx_prefill_pages()
291 bytes = sizeof(*rx->data.data_ring) * slots; in gve_rx_alloc_ring_gqi()
292 rx->data.data_ring = dma_alloc_coherent(hdev, bytes, in gve_rx_alloc_ring_gqi()
[all …]
Dgve.h122 union gve_rx_data_slot *data_ring; /* read by NIC */ member
/linux-6.12.1/drivers/net/vmxnet3/
Dvmxnet3_drv.c521 if (tq->data_ring.base) { in vmxnet3_tq_destroy()
523 tq->data_ring.size * tq->txdata_desc_size, in vmxnet3_tq_destroy()
524 tq->data_ring.base, tq->data_ring.basePA); in vmxnet3_tq_destroy()
525 tq->data_ring.base = NULL; in vmxnet3_tq_destroy()
567 memset(tq->data_ring.base, 0, in vmxnet3_tq_init()
568 tq->data_ring.size * tq->txdata_desc_size); in vmxnet3_tq_init()
593 BUG_ON(tq->tx_ring.base || tq->data_ring.base || in vmxnet3_tq_create()
604 tq->data_ring.base = dma_alloc_coherent(&adapter->pdev->dev, in vmxnet3_tq_create()
605 tq->data_ring.size * tq->txdata_desc_size, in vmxnet3_tq_create()
606 &tq->data_ring.basePA, GFP_KERNEL); in vmxnet3_tq_create()
[all …]
Dvmxnet3_int.h262 struct vmxnet3_tx_data_ring data_ring; member
331 struct vmxnet3_rx_data_ring data_ring; member
Dvmxnet3_ethtool.c562 buf[j++] = VMXNET3_GET_ADDR_LO(tq->data_ring.basePA); in vmxnet3_get_regs()
563 buf[j++] = VMXNET3_GET_ADDR_HI(tq->data_ring.basePA); in vmxnet3_get_regs()
564 buf[j++] = tq->data_ring.size; in vmxnet3_get_regs()
599 buf[j++] = VMXNET3_GET_ADDR_LO(rq->data_ring.basePA); in vmxnet3_get_regs()
600 buf[j++] = VMXNET3_GET_ADDR_HI(rq->data_ring.basePA); in vmxnet3_get_regs()
602 buf[j++] = rq->data_ring.desc_size; in vmxnet3_get_regs()