Searched refs:ring_sz (Results 1 – 6 of 6) sorted by relevance
/linux/tools/include/io_uring/ |
H A D | mini_liburing.h | 40 size_t ring_sz; member 51 size_t ring_sz; member 75 sq->ring_sz = p->sq_off.array + p->sq_entries * sizeof(unsigned int); in io_uring_mmap() 76 ptr = mmap(0, sq->ring_sz, PROT_READ | PROT_WRITE, in io_uring_mmap() 94 munmap(sq->khead, sq->ring_sz); in io_uring_mmap() 98 cq->ring_sz = p->cq_off.cqes + p->cq_entries * sizeof(struct io_uring_cqe); in io_uring_mmap() 99 ptr = mmap(0, cq->ring_sz, PROT_READ | PROT_WRITE, in io_uring_mmap() 225 munmap(sq->khead, sq->ring_sz); in io_uring_queue_exit()
|
/linux/drivers/dma/ |
H A D | plx_dma.c | 410 size_t ring_sz = PLX_DMA_RING_COUNT * sizeof(*plxdev->hw_ring); in plx_dma_alloc_chan_resources() local 414 plxdev->hw_ring = dma_alloc_coherent(plxdev->dma_dev.dev, ring_sz, in plx_dma_alloc_chan_resources() 447 dma_free_coherent(plxdev->dma_dev.dev, ring_sz, plxdev->hw_ring, in plx_dma_alloc_chan_resources() 455 size_t ring_sz = PLX_DMA_RING_COUNT * sizeof(*plxdev->hw_ring); in plx_dma_free_chan_resources() local 483 dma_free_coherent(plxdev->dma_dev.dev, ring_sz, plxdev->hw_ring, in plx_dma_free_chan_resources()
|
/linux/drivers/gpu/drm/i915/gt/ |
H A D | intel_migrate.c | 923 int ring_sz; in emit_clear() local 929 ring_sz = XY_FAST_COLOR_BLT_DW; in emit_clear() 931 ring_sz = 8; in emit_clear() 933 ring_sz = 6; in emit_clear() 935 cs = intel_ring_begin(rq, ring_sz); in emit_clear()
|
/linux/drivers/net/wireless/realtek/rtw88/ |
H A D | pci.c | 117 int ring_sz = len * tx_ring->r.desc_size; in rtw_pci_free_tx_ring() local 122 dma_free_coherent(&pdev->dev, ring_sz, head, tx_ring->r.dma); in rtw_pci_free_tx_ring() 152 int ring_sz = rx_ring->r.desc_size * rx_ring->r.len; in rtw_pci_free_rx_ring() local 156 dma_free_coherent(&pdev->dev, ring_sz, head, rx_ring->r.dma); in rtw_pci_free_rx_ring() 182 int ring_sz = desc_size * len; in rtw_pci_init_tx_ring() local 191 head = dma_alloc_coherent(&pdev->dev, ring_sz, &dma, GFP_KERNEL); in rtw_pci_init_tx_ring() 259 int ring_sz = desc_size * len; in rtw_pci_init_rx_ring() local 264 head = dma_alloc_coherent(&pdev->dev, ring_sz, &dma, GFP_KERNEL); in rtw_pci_init_rx_ring() 307 dma_free_coherent(&pdev->dev, ring_sz, head, dma); in rtw_pci_init_rx_ring()
|
/linux/drivers/net/ethernet/mscc/ |
H A D | ocelot_fdma.c | 46 static u16 ocelot_fdma_idx_next(u16 idx, u16 ring_sz) in ocelot_fdma_idx_next() argument 48 return unlikely(idx == ring_sz - 1) ? 0 : idx + 1; in ocelot_fdma_idx_next() 51 static u16 ocelot_fdma_idx_prev(u16 idx, u16 ring_sz) in ocelot_fdma_idx_prev() argument 53 return unlikely(idx == 0) ? ring_sz - 1 : idx - 1; in ocelot_fdma_idx_prev()
|
/linux/drivers/dma/amd/qdma/ |
H A D | qdma.c | 499 u32 ring_sz = QDMA_DEFAULT_RING_SIZE; in qdma_device_setup() local 509 ret = qdma_reg_write(qdev, &ring_sz, QDMA_REGO_RING_SIZE); in qdma_device_setup()
|