/Linux-v5.10/arch/powerpc/platforms/ps3/ |
D | mm.c | 342 return r->bus_addr + lpar_addr - r->offset; in dma_sb_lpar_to_bus() 352 DBG("%s:%d: bus_addr %lxh\n", func, line, r->bus_addr); in _dma_dump_region() 374 unsigned long bus_addr; member 386 DBG("%s:%d: r.bus_addr %lxh\n", func, line, c->region->bus_addr); in _dma_dump_chunk() 391 DBG("%s:%d: c.bus_addr %lxh\n", func, line, c->bus_addr); in _dma_dump_chunk() 396 unsigned long bus_addr, unsigned long len) in dma_find_chunk() argument 399 unsigned long aligned_bus = ALIGN_DOWN(bus_addr, 1 << r->page_size); in dma_find_chunk() 400 unsigned long aligned_len = ALIGN(len+bus_addr-aligned_bus, in dma_find_chunk() 405 if (aligned_bus >= c->bus_addr && in dma_find_chunk() 406 aligned_bus + aligned_len <= c->bus_addr + c->len) in dma_find_chunk() [all …]
|
D | gelic_udbg.c | 41 static u64 bus_addr; variable 80 u64 bus_addr = 0; in map_dma_mem() local 86 &bus_addr); in map_dma_mem() 91 bus_addr, map_end - map_start, in map_dma_mem() 96 *real_bus_addr = bus_addr + real_addr - map_start; in map_dma_mem() 99 static int unmap_dma_mem(int bus_id, int dev_id, u64 bus_addr, size_t len) in unmap_dma_mem() argument 104 real_bus_addr = bus_addr & ~0xfff; in unmap_dma_mem() 105 len += bus_addr - real_bus_addr; in unmap_dma_mem() 128 &bus_addr); in gelic_debug_init() 132 dbg.descr.buf_addr = bus_addr + offsetof(struct debug_block, pkt); in gelic_debug_init() [all …]
|
D | system-bus.c | 235 pr_debug("%s:%d: bus_addr %lxh\n", func, line, r->bus_addr); in _dump_mmio_region() 246 r->bus_addr, r->len, r->page_size, &lpar_addr); in ps3_sb_mmio_region_create() 312 struct ps3_mmio_region *r, unsigned long bus_addr, unsigned long len, in ps3_mmio_region_init() argument 316 r->bus_addr = bus_addr; in ps3_mmio_region_init() 566 dma_addr_t bus_addr; in ps3_sb_map_page() local 570 &bus_addr, in ps3_sb_map_page() 579 return bus_addr; in ps3_sb_map_page() 589 dma_addr_t bus_addr; in ps3_ioc0_map_page() local 609 &bus_addr, iopte_flag); in ps3_ioc0_map_page() 615 return bus_addr; in ps3_ioc0_map_page()
|
/Linux-v5.10/arch/alpha/include/asm/ |
D | floppy.h | 41 static dma_addr_t bus_addr = 0; in alpha_fd_dma_setup() local 48 if (bus_addr in alpha_fd_dma_setup() 51 pci_unmap_single(isa_bridge, bus_addr, prev_size, prev_dir); in alpha_fd_dma_setup() 52 bus_addr = 0; in alpha_fd_dma_setup() 55 if (!bus_addr) /* need to map it */ in alpha_fd_dma_setup() 56 bus_addr = pci_map_single(isa_bridge, addr, size, dir); in alpha_fd_dma_setup() 65 set_dma_addr(FLOPPY_DMA, bus_addr); in alpha_fd_dma_setup()
|
/Linux-v5.10/arch/powerpc/platforms/pasemi/ |
D | iommu.c | 83 unsigned long bus_addr; in iobmap_build() local 87 bus_addr = (tbl->it_offset + index) << IOBMAP_PAGE_SHIFT; in iobmap_build() 96 out_le32(iob+IOB_AT_INVAL_TLB_REG, bus_addr >> 14); in iobmap_build() 99 bus_addr += IOBMAP_PAGE_SIZE; in iobmap_build() 109 unsigned long bus_addr; in iobmap_free() local 113 bus_addr = (tbl->it_offset + index) << IOBMAP_PAGE_SHIFT; in iobmap_free() 120 out_le32(iob+IOB_AT_INVAL_TLB_REG, bus_addr >> 14); in iobmap_free() 121 bus_addr += IOBMAP_PAGE_SIZE; in iobmap_free()
|
/Linux-v5.10/arch/sparc/kernel/ |
D | iommu.c | 273 u32 bus_addr, ret; in dma_4u_map_page() local 296 bus_addr = (iommu->tbl.table_map_base + in dma_4u_map_page() 298 ret = bus_addr | (oaddr & ~IO_PAGE_MASK); in dma_4u_map_page() 386 static void dma_4u_unmap_page(struct device *dev, dma_addr_t bus_addr, in dma_4u_unmap_page() argument 404 npages = IO_PAGE_ALIGN(bus_addr + sz) - (bus_addr & IO_PAGE_MASK); in dma_4u_unmap_page() 407 ((bus_addr - iommu->tbl.table_map_base) >> IO_PAGE_SHIFT); in dma_4u_unmap_page() 408 bus_addr &= IO_PAGE_MASK; in dma_4u_unmap_page() 419 strbuf_flush(strbuf, iommu, bus_addr, ctx, in dma_4u_unmap_page() 429 iommu_tbl_range_free(&iommu->tbl, bus_addr, npages, IOMMU_ERROR_CODE); in dma_4u_unmap_page() 595 u32 bus_addr; in fetch_sg_ctx() local [all …]
|
/Linux-v5.10/arch/powerpc/include/asm/ |
D | floppy.h | 131 static dma_addr_t bus_addr = 0; in hard_dma_setup() local 139 if (bus_addr in hard_dma_setup() 142 pci_unmap_single(isa_bridge_pcidev, bus_addr, prev_size, prev_dir); in hard_dma_setup() 143 bus_addr = 0; in hard_dma_setup() 146 if (!bus_addr) /* need to map it */ in hard_dma_setup() 147 bus_addr = pci_map_single(isa_bridge_pcidev, addr, size, dir); in hard_dma_setup() 156 set_dma_addr(FLOPPY_DMA, bus_addr); in hard_dma_setup()
|
D | ps3.h | 90 unsigned long bus_addr; member 103 dma_addr_t *bus_addr, 106 dma_addr_t bus_addr, 124 unsigned long len, dma_addr_t *bus_addr, 126 int ps3_dma_unmap(struct ps3_dma_region *r, dma_addr_t bus_addr, 146 unsigned long bus_addr; member 164 struct ps3_mmio_region *r, unsigned long bus_addr, unsigned long len,
|
/Linux-v5.10/drivers/net/mdio/ |
D | mdio-i2c.c | 36 int bus_addr, ret; in i2c_mii_read() local 48 bus_addr = i2c_mii_phy_addr(phy_id); in i2c_mii_read() 49 msgs[0].addr = bus_addr; in i2c_mii_read() 53 msgs[1].addr = bus_addr; in i2c_mii_read()
|
/Linux-v5.10/arch/arm/mach-ixp4xx/include/mach/ |
D | io.h | 94 static inline void __indirect_writesb(volatile void __iomem *bus_addr, in __indirect_writesb() argument 100 writeb(*vaddr++, bus_addr); in __indirect_writesb() 119 static inline void __indirect_writesw(volatile void __iomem *bus_addr, in __indirect_writesw() argument 125 writew(*vaddr++, bus_addr); in __indirect_writesw() 140 static inline void __indirect_writesl(volatile void __iomem *bus_addr, in __indirect_writesl() argument 145 writel(*vaddr++, bus_addr); in __indirect_writesl() 164 static inline void __indirect_readsb(const volatile void __iomem *bus_addr, in __indirect_readsb() argument 170 *vaddr++ = readb(bus_addr); in __indirect_readsb() 189 static inline void __indirect_readsw(const volatile void __iomem *bus_addr, in __indirect_readsw() argument 195 *vaddr++ = readw(bus_addr); in __indirect_readsw() [all …]
|
/Linux-v5.10/drivers/remoteproc/ |
D | keystone_remoteproc.c | 36 phys_addr_t bus_addr; member 253 phys_addr_t bus_addr; in keystone_rproc_da_to_va() local 262 bus_addr = ksproc->mem[i].bus_addr; in keystone_rproc_da_to_va() 276 if ((da >= bus_addr) && in keystone_rproc_da_to_va() 277 (da + len) <= (bus_addr + size)) { in keystone_rproc_da_to_va() 278 offset = da - bus_addr; in keystone_rproc_da_to_va() 319 ksproc->mem[i].bus_addr = res->start; in keystone_rproc_of_get_memories()
|
D | ti_k3_dsp_remoteproc.c | 35 phys_addr_t bus_addr; member 361 phys_addr_t bus_addr; in k3_dsp_rproc_da_to_va() local 370 bus_addr = kproc->mem[i].bus_addr; in k3_dsp_rproc_da_to_va() 384 if (da >= bus_addr && in k3_dsp_rproc_da_to_va() 385 (da + len) <= (bus_addr + size)) { in k3_dsp_rproc_da_to_va() 386 offset = da - bus_addr; in k3_dsp_rproc_da_to_va() 453 kproc->mem[i].bus_addr = res->start; in k3_dsp_rproc_of_get_memories() 458 data->mems[i].name, &kproc->mem[i].bus_addr, in k3_dsp_rproc_of_get_memories() 520 kproc->rmem[i].bus_addr = rmem->base; in k3_dsp_reserved_mem_init() 533 i + 1, &kproc->rmem[i].bus_addr, in k3_dsp_reserved_mem_init()
|
D | ti_k3_r5_remoteproc.c | 60 phys_addr_t bus_addr; member 565 phys_addr_t bus_addr; in k3_r5_rproc_da_to_va() local 575 bus_addr = core->mem[i].bus_addr; in k3_r5_rproc_da_to_va() 587 if (da >= bus_addr && ((da + len) <= (bus_addr + size))) { in k3_r5_rproc_da_to_va() 588 offset = da - bus_addr; in k3_r5_rproc_da_to_va() 808 kproc->rmem[i].bus_addr = rmem->base; in k3_r5_reserved_mem_init() 830 i + 1, &kproc->rmem[i].bus_addr, in k3_r5_reserved_mem_init() 1017 core->mem[i].bus_addr = res->start; in k3_r5_core_of_get_internal_memories() 1037 mem_names[i], &core->mem[i].bus_addr, in k3_r5_core_of_get_internal_memories() 1082 core->sram[i].bus_addr = res.start; in k3_r5_core_of_get_sram_memories() [all …]
|
D | stm32_rproc.c | 60 phys_addr_t bus_addr; member 67 u32 bus_addr; member 103 if (pa < p_mem->bus_addr || in stm32_rproc_pa_to_da() 104 pa >= p_mem->bus_addr + p_mem->size) in stm32_rproc_pa_to_da() 106 *da = pa - p_mem->bus_addr + p_mem->dev_addr; in stm32_rproc_pa_to_da() 179 p_mems[i].bus_addr = mem_range[i].bus_addr; in stm32_rproc_of_memory_translations() 184 i, p_mems[i].dev_addr, &p_mems[i].bus_addr, in stm32_rproc_of_memory_translations() 710 *pa = da - p_mem->dev_addr + p_mem->bus_addr; in stm32_rproc_da_to_pa()
|
/Linux-v5.10/arch/alpha/kernel/ |
D | core_cia.c | 287 void __iomem *bus_addr; in cia_pci_tbi_try2() local 310 bus_addr = cia_ioremap(CIA_BROKEN_TBIA_BASE, 32768 * 4); in cia_pci_tbi_try2() 312 cia_readl(bus_addr + 0x00000); in cia_pci_tbi_try2() 313 cia_readl(bus_addr + 0x08000); in cia_pci_tbi_try2() 314 cia_readl(bus_addr + 0x10000); in cia_pci_tbi_try2() 315 cia_readl(bus_addr + 0x18000); in cia_pci_tbi_try2() 317 cia_iounmap(bus_addr); in cia_pci_tbi_try2() 359 void __iomem *bus_addr; in verify_tb_operation() local 394 bus_addr = cia_ioremap(addr0, 8*PAGE_SIZE); in verify_tb_operation() 431 temp = cia_readl(bus_addr); in verify_tb_operation() [all …]
|
/Linux-v5.10/drivers/gpu/drm/r128/ |
D | ati_pcigart.c | 76 if (gart_info->bus_addr) { in drm_ati_pcigart_cleanup() 90 gart_info->bus_addr = 0; in drm_ati_pcigart_cleanup() 138 bus_address = gart_info->bus_addr; in drm_ati_pcigart_init() 208 gart_info->bus_addr = bus_address; in drm_ati_pcigart_init()
|
/Linux-v5.10/drivers/crypto/qat/qat_common/ |
D | qat_uclo.c | 1157 u64 bus_addr; in qat_uclo_auth_fw() local 1159 bus_addr = ADD_ADDR(desc->css_hdr_high, desc->css_hdr_low) in qat_uclo_auth_fw() 1161 SET_CAP_CSR(handle, FCU_DRAM_ADDR_HI, (bus_addr >> BITS_IN_DWORD)); in qat_uclo_auth_fw() 1162 SET_CAP_CSR(handle, FCU_DRAM_ADDR_LO, bus_addr); in qat_uclo_auth_fw() 1227 u64 virt_addr, bus_addr, virt_base; in qat_uclo_map_auth_fw() local 1247 bus_addr = img_desc.dram_bus_addr + simg_offset; in qat_uclo_map_auth_fw() 1249 auth_desc->css_hdr_high = (unsigned int)(bus_addr >> BITS_IN_DWORD); in qat_uclo_map_auth_fw() 1250 auth_desc->css_hdr_low = (unsigned int)bus_addr; in qat_uclo_map_auth_fw() 1255 bus_addr = ADD_ADDR(auth_desc->css_hdr_high, auth_desc->css_hdr_low) + in qat_uclo_map_auth_fw() 1259 auth_desc->fwsk_pub_high = (unsigned int)(bus_addr >> BITS_IN_DWORD); in qat_uclo_map_auth_fw() [all …]
|
/Linux-v5.10/drivers/tty/serial/8250/ |
D | 8250_acorn.c | 44 unsigned long bus_addr; in serial_card_probe() local 53 bus_addr = ecard_resource_start(ec, type->type); in serial_card_probe() 72 uart.port.mapbase = bus_addr + type->offset[i]; in serial_card_probe()
|
/Linux-v5.10/drivers/dma/ |
D | fsl-qdma.c | 191 dma_addr_t bus_addr; member 199 dma_addr_t bus_addr; member 326 comp_temp->bus_addr); in fsl_qdma_free_chan_resources() 338 comp_temp->bus_addr); in fsl_qdma_free_chan_resources() 371 qdma_desc_addr_set64(ccdf, fsl_comp->bus_addr + 16); in fsl_qdma_comp_fill_memcpy() 410 &comp_temp->bus_addr); in fsl_qdma_pre_request_enqueue_desc() 427 comp_temp->bus_addr); in fsl_qdma_pre_request_enqueue_desc() 438 comp_temp->bus_addr); in fsl_qdma_pre_request_enqueue_desc() 520 &queue_temp->bus_addr, in fsl_qdma_alloc_queue_resources() 569 &status_head->bus_addr, in fsl_qdma_prep_status_queue() [all …]
|
/Linux-v5.10/drivers/firmware/ |
D | raspberrypi.c | 89 dma_addr_t bus_addr; in rpi_firmware_property_list() local 96 buf = dma_alloc_coherent(fw->cl.dev, PAGE_ALIGN(size), &bus_addr, in rpi_firmware_property_list() 110 ret = rpi_firmware_transaction(fw, MBOX_CHAN_PROPERTY, bus_addr); in rpi_firmware_property_list() 125 dma_free_coherent(fw->cl.dev, PAGE_ALIGN(size), buf, bus_addr); in rpi_firmware_property_list()
|
/Linux-v5.10/drivers/scsi/aic94xx/ |
D | aic94xx_task.c | 53 sg_arr[0].bus_addr = cpu_to_le64((u64)dma); in asd_map_scatterlist() 82 sg->bus_addr = cpu_to_le64((u64)sg_dma_address(sc)); in asd_map_scatterlist() 89 sg_arr[i].bus_addr = in asd_map_scatterlist() 97 sg_arr[2].bus_addr=cpu_to_le64((u64)ascb->sg_arr->dma_handle); in asd_map_scatterlist() 101 sg_arr[i].bus_addr = in asd_map_scatterlist() 126 le64_to_cpu(ascb->scb->ssp_task.sg_element[0].bus_addr); in asd_unmap_scatterlist() 432 scb->smp_task.smp_req.bus_addr = in asd_build_smp_ascb() 437 scb->smp_task.smp_resp.bus_addr = in asd_build_smp_ascb()
|
/Linux-v5.10/drivers/media/v4l2-core/ |
D | videobuf-dma-sg.c | 279 dma->bus_addr = addr; in videobuf_dma_init_overlay() 298 if (dma->bus_addr) { in videobuf_dma_map() 302 sg_dma_address(&dma->sglist[0]) = dma->bus_addr in videobuf_dma_map() 304 dma->sglist[0].offset = dma->bus_addr & ~PAGE_MASK; in videobuf_dma_map() 312 if (!dma->bus_addr) { in videobuf_dma_map() 374 if (dma->bus_addr) in videobuf_dma_free() 375 dma->bus_addr = 0; in videobuf_dma_free()
|
/Linux-v5.10/drivers/misc/habanalabs/common/ |
D | command_buffer.c | 21 dma_addr_t bus_addr; in cb_map_mem() local 41 for (bus_addr = cb->bus_address; in cb_map_mem() 42 bus_addr < cb->bus_address + cb->size; in cb_map_mem() 43 bus_addr += page_size) { in cb_map_mem() 68 bus_addr = cb->bus_address; in cb_map_mem() 71 rc = hl_mmu_map(ctx, va_block->start, bus_addr, va_block->size, in cb_map_mem() 80 bus_addr += va_block->size; in cb_map_mem()
|
/Linux-v5.10/drivers/of/ |
D | address.c | 768 range->bus_addr = of_read_number(parser->range + busflag_na, na - busflag_na); in of_pci_range_parser_one() 783 u64 bus_addr, cpu_addr, size; in of_pci_range_parser_one() local 786 bus_addr = of_read_number(parser->range + busflag_na, na - busflag_na); in of_pci_range_parser_one() 797 if (bus_addr != range->bus_addr + range->size || in of_pci_range_parser_one() 1009 range.bus_addr, range.cpu_addr, range.size); in of_dma_get_range() 1012 range.bus_addr, node); in of_dma_get_range() 1016 r->dma_start = range.bus_addr; in of_dma_get_range() 1018 r->offset = range.cpu_addr - range.bus_addr; in of_dma_get_range()
|
/Linux-v5.10/arch/mips/loongson64/ |
D | init.c | 130 range.bus_addr); in reserve_pio_range() 138 range.bus_addr); in reserve_pio_range()
|