/linux/arch/powerpc/platforms/ps3/ |
A D | mm.c | 577 c->bus_addr = r->bus_addr; in dma_ioc0_map_pages() 582 c->bus_addr = last->bus_addr + last->len; in dma_ioc0_map_pages() 642 u64 bus_addr; in dma_sb_region_create() local 666 &bus_addr); in dma_sb_region_create() 667 r->bus_addr = bus_addr; in dma_sb_region_create() 681 u64 bus_addr; in dma_ioc0_region_create() local 690 r->bus_addr = bus_addr; in dma_ioc0_region_create() 729 r->bus_addr); in dma_sb_region_free() 816 *bus_addr = 0; in dma_sb_map_area() 853 *bus_addr = c->bus_addr + phys_addr - aligned_phys; in dma_ioc0_map_area() [all …]
|
A 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() 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() 186 if (bus_addr) in gelic_debug_shutdown() [all …]
|
A D | system-bus.c | 236 pr_debug("%s:%d: bus_addr %lxh\n", func, line, r->bus_addr); in _dump_mmio_region() 247 r->bus_addr, r->len, r->page_size, &lpar_addr); in ps3_sb_mmio_region_create() 313 struct ps3_mmio_region *r, unsigned long bus_addr, unsigned long len, in ps3_mmio_region_init() argument 317 r->bus_addr = bus_addr; in ps3_mmio_region_init() 565 dma_addr_t bus_addr; in ps3_sb_map_page() local 569 &bus_addr, in ps3_sb_map_page() 578 return bus_addr; in ps3_sb_map_page() 588 dma_addr_t bus_addr; in ps3_ioc0_map_page() local 608 &bus_addr, iopte_flag); in ps3_ioc0_map_page() 614 return bus_addr; in ps3_ioc0_map_page()
|
/linux/arch/alpha/include/asm/ |
A 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/arch/sparc/kernel/ |
A 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() 404 npages = IO_PAGE_ALIGN(bus_addr + sz) - (bus_addr & IO_PAGE_MASK); in dma_4u_unmap_page() 408 bus_addr &= IO_PAGE_MASK; in dma_4u_unmap_page() 593 u32 bus_addr; in fetch_sg_ctx() local 658 dma_addr_t bus_addr, size_t sz, in dma_4u_sync_single_for_cpu() argument 673 npages = IO_PAGE_ALIGN(bus_addr + sz) - (bus_addr & IO_PAGE_MASK); in dma_4u_sync_single_for_cpu() 675 bus_addr &= IO_PAGE_MASK; in dma_4u_sync_single_for_cpu() 703 u32 bus_addr; in dma_4u_sync_sg_for_cpu() local [all …]
|
A D | pci_sun4v.c | 366 dma_addr_t bus_addr, ret; in dma_4v_map_page() local 391 bus_addr = (tbl->table_map_base + (entry << IO_PAGE_SHIFT)); in dma_4v_map_page() 392 ret = bus_addr | (oaddr & ~IO_PAGE_MASK); in dma_4v_map_page() 424 iommu_tbl_range_free(tbl, bus_addr, npages, IOMMU_ERROR_CODE); in dma_4v_map_page() 428 static void dma_4v_unmap_page(struct device *dev, dma_addr_t bus_addr, in dma_4v_unmap_page() argument 452 npages = IO_PAGE_ALIGN(bus_addr + sz) - (bus_addr & IO_PAGE_MASK); in dma_4v_unmap_page() 454 bus_addr &= IO_PAGE_MASK; in dma_4v_unmap_page() 456 if (bus_addr <= DMA_BIT_MASK(32)) { in dma_4v_unmap_page() 463 entry = (bus_addr - tbl->table_map_base) >> IO_PAGE_SHIFT; in dma_4v_unmap_page() 464 dma_4v_iommu_demap(dev, devhandle, bus_addr, iotsb_num, entry, npages); in dma_4v_unmap_page() [all …]
|
/linux/arch/powerpc/platforms/pasemi/ |
A 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/arch/powerpc/include/asm/ |
A 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()
|
A D | ps3.h | 92 unsigned long bus_addr; member 105 dma_addr_t *bus_addr, 108 dma_addr_t bus_addr, 126 unsigned long len, dma_addr_t *bus_addr, 128 int ps3_dma_unmap(struct ps3_dma_region *r, dma_addr_t bus_addr, 148 unsigned long bus_addr; member 166 struct ps3_mmio_region *r, unsigned long bus_addr, unsigned long len,
|
/linux/arch/arm/mach-ixp4xx/include/mach/ |
A 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/drivers/remoteproc/ |
A 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()
|
A 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()
|
A D | ti_k3_r5_remoteproc.c | 66 phys_addr_t bus_addr; member 637 phys_addr_t bus_addr; in k3_r5_rproc_da_to_va() local 647 bus_addr = core->mem[i].bus_addr; in k3_r5_rproc_da_to_va() 659 if (da >= bus_addr && ((da + len) <= (bus_addr + size))) { in k3_r5_rproc_da_to_va() 660 offset = da - bus_addr; in k3_r5_rproc_da_to_va() 915 kproc->rmem[i].bus_addr = rmem->base; in k3_r5_reserved_mem_init() 937 i + 1, &kproc->rmem[i].bus_addr, in k3_r5_reserved_mem_init() 1164 core->mem[i].bus_addr = res->start; in k3_r5_core_of_get_internal_memories() 1184 mem_names[i], &core->mem[i].bus_addr, in k3_r5_core_of_get_internal_memories() 1229 core->sram[i].bus_addr = res.start; in k3_r5_core_of_get_sram_memories() [all …]
|
A D | stm32_rproc.c | 61 phys_addr_t bus_addr; member 68 u32 bus_addr; member 104 if (pa < p_mem->bus_addr || in stm32_rproc_pa_to_da() 105 pa >= p_mem->bus_addr + p_mem->size) in stm32_rproc_pa_to_da() 107 *da = pa - p_mem->bus_addr + p_mem->dev_addr; in stm32_rproc_pa_to_da() 180 p_mems[i].bus_addr = mem_range[i].bus_addr; in stm32_rproc_of_memory_translations() 185 i, p_mems[i].dev_addr, &p_mems[i].bus_addr, in stm32_rproc_of_memory_translations() 578 *pa = da - p_mem->dev_addr + p_mem->bus_addr; in stm32_rproc_da_to_pa()
|
/linux/arch/alpha/kernel/ |
A D | core_cia.c | 287 void __iomem *bus_addr; in cia_pci_tbi_try2() local 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 431 temp = cia_readl(bus_addr); in verify_tb_operation() 468 temp = cia_readl(bus_addr + 4*PAGE_SIZE); in verify_tb_operation() 492 temp = cia_readl(bus_addr + 5*PAGE_SIZE); in verify_tb_operation() [all …]
|
/linux/drivers/net/mdio/ |
A 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/drivers/dma/ |
A 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() 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() 670 if (fsl_comp->bus_addr + 16 != in fsl_qdma_queue_transfer_complete() [all …]
|
/linux/drivers/gpu/drm/r128/ |
A D | ati_pcigart.c | 93 if (gart_info->bus_addr) { in drm_ati_pcigart_cleanup() 107 gart_info->bus_addr = 0; in drm_ati_pcigart_cleanup() 156 bus_address = gart_info->bus_addr; in drm_ati_pcigart_init() 226 gart_info->bus_addr = bus_address; in drm_ati_pcigart_init()
|
/linux/drivers/tty/serial/8250/ |
A 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/drivers/crypto/qat/qat_common/ |
A D | qat_uclo.c | 1214 u64 bus_addr; in qat_uclo_auth_fw() local 1225 SET_CAP_CSR(handle, fcu_dram_lo_csr, bus_addr); in qat_uclo_auth_fw() 1373 u64 virt_addr, bus_addr, virt_base; in qat_uclo_map_auth_fw() local 1394 bus_addr = img_desc.dram_bus_addr + simg_offset; in qat_uclo_map_auth_fw() 1397 auth_desc->css_hdr_low = (unsigned int)bus_addr; in qat_uclo_map_auth_fw() 1424 bus_addr = ADD_ADDR(auth_desc->fwsk_pub_high, in qat_uclo_map_auth_fw() 1437 bus_addr = ADD_ADDR(auth_desc->signature_high, in qat_uclo_map_auth_fw() 1443 auth_desc->img_low = (unsigned int)bus_addr; in qat_uclo_map_auth_fw() 1459 (bus_addr >> BITS_IN_DWORD); in qat_uclo_map_auth_fw() 1461 bus_addr += ICP_QAT_SIMG_AE_INIT_SEQ_LEN; in qat_uclo_map_auth_fw() [all …]
|
/linux/drivers/firmware/ |
A D | raspberrypi.c | 92 dma_addr_t bus_addr; in rpi_firmware_property_list() local 99 buf = dma_alloc_coherent(fw->cl.dev, PAGE_ALIGN(size), &bus_addr, in rpi_firmware_property_list() 113 ret = rpi_firmware_transaction(fw, MBOX_CHAN_PROPERTY, bus_addr); in rpi_firmware_property_list() 128 dma_free_coherent(fw->cl.dev, PAGE_ALIGN(size), buf, bus_addr); in rpi_firmware_property_list()
|
/linux/drivers/scsi/aic94xx/ |
A 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/drivers/media/v4l2-core/ |
A 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/drivers/of/ |
A D | address.c | 729 range->bus_addr = of_read_number(parser->range + busflag_na, na - busflag_na); in of_pci_range_parser_one() 744 u64 bus_addr, cpu_addr, size; in of_pci_range_parser_one() local 747 bus_addr = of_read_number(parser->range + busflag_na, na - busflag_na); in of_pci_range_parser_one() 758 if (bus_addr != range->bus_addr + range->size || in of_pci_range_parser_one() 982 range.bus_addr, range.cpu_addr, range.size); in of_dma_get_range() 985 range.bus_addr, node); in of_dma_get_range() 989 r->dma_start = range.bus_addr; in of_dma_get_range() 991 r->offset = range.cpu_addr - range.bus_addr; in of_dma_get_range()
|
/linux/drivers/net/ethernet/toshiba/ |
A D | ps3_gelic_net.c | 163 card->rx_chain.head->bus_addr, 0); in gelic_card_enable_rxdmac() 227 descr->next_descr_addr = cpu_to_be32(descr->next->bus_addr); in gelic_card_reset_chain() 290 dma_unmap_single(ctodev(card), descr->bus_addr, in gelic_card_free_chain() 292 descr->bus_addr = 0; in gelic_card_free_chain() 321 descr->bus_addr = in gelic_card_init_chain() 326 if (!descr->bus_addr) in gelic_card_init_chain() 339 descr->next_descr_addr = cpu_to_be32(descr->next->bus_addr); in gelic_card_init_chain() 352 if (descr->bus_addr) in gelic_card_init_chain() 353 dma_unmap_single(ctodev(card), descr->bus_addr, in gelic_card_init_chain() 818 descr->bus_addr, 0); in gelic_card_kick_txdma() [all …]
|