Home
last modified time | relevance | path

Searched refs:uiomem (Results 1 – 4 of 4) sorted by relevance

/linux-6.1.9/drivers/uio/
Duio_dmem_genirq.c47 struct uio_mem *uiomem; in uio_dmem_genirq_open() local
50 uiomem = &priv->uioinfo->mem[priv->dmem_region_start]; in uio_dmem_genirq_open()
53 while (!priv->refcnt && uiomem < &priv->uioinfo->mem[MAX_UIO_MAPS]) { in uio_dmem_genirq_open()
55 if (!uiomem->size) in uio_dmem_genirq_open()
58 addr = dma_alloc_coherent(&priv->pdev->dev, uiomem->size, in uio_dmem_genirq_open()
59 (dma_addr_t *)&uiomem->addr, GFP_KERNEL); in uio_dmem_genirq_open()
61 uiomem->addr = DMEM_MAP_ERROR; in uio_dmem_genirq_open()
64 ++uiomem; in uio_dmem_genirq_open()
77 struct uio_mem *uiomem; in uio_dmem_genirq_release() local
83 uiomem = &priv->uioinfo->mem[priv->dmem_region_start]; in uio_dmem_genirq_release()
[all …]
Duio_pci_generic.c75 struct uio_mem *uiomem; in probe() local
106 uiomem = &gdev->info.mem[0]; in probe()
113 if (uiomem >= &gdev->info.mem[MAX_UIO_MAPS]) { in probe()
121 uiomem->memtype = UIO_MEM_PHYS; in probe()
122 uiomem->addr = r->start & PAGE_MASK; in probe()
123 uiomem->offs = r->start & ~PAGE_MASK; in probe()
124 uiomem->size = in probe()
125 (uiomem->offs + resource_size(r) + PAGE_SIZE - 1) & in probe()
127 uiomem->name = r->name; in probe()
128 ++uiomem; in probe()
[all …]
Duio_dfl.c19 struct uio_mem *uiomem; in uio_dfl_probe() local
29 uiomem = &uioinfo->mem[0]; in uio_dfl_probe()
30 uiomem->memtype = UIO_MEM_PHYS; in uio_dfl_probe()
31 uiomem->addr = r->start & PAGE_MASK; in uio_dfl_probe()
32 uiomem->offs = r->start & ~PAGE_MASK; in uio_dfl_probe()
33 uiomem->size = (uiomem->offs + resource_size(r) in uio_dfl_probe()
35 uiomem->name = r->name; in uio_dfl_probe()
Duio_pdrv_genirq.c115 struct uio_mem *uiomem; in uio_pdrv_genirq_probe() local
192 uiomem = &uioinfo->mem[0]; in uio_pdrv_genirq_probe()
200 if (uiomem >= &uioinfo->mem[MAX_UIO_MAPS]) { in uio_pdrv_genirq_probe()
207 uiomem->memtype = UIO_MEM_PHYS; in uio_pdrv_genirq_probe()
208 uiomem->addr = r->start & PAGE_MASK; in uio_pdrv_genirq_probe()
209 uiomem->offs = r->start & ~PAGE_MASK; in uio_pdrv_genirq_probe()
210 uiomem->size = (uiomem->offs + resource_size(r) in uio_pdrv_genirq_probe()
212 uiomem->name = r->name; in uio_pdrv_genirq_probe()
213 ++uiomem; in uio_pdrv_genirq_probe()
216 while (uiomem < &uioinfo->mem[MAX_UIO_MAPS]) { in uio_pdrv_genirq_probe()
[all …]