/Linux-v6.1/arch/powerpc/platforms/ps3/ |
D | mm.c | 344 return r->bus_addr + lpar_addr - r->offset; in dma_sb_lpar_to_bus() 354 DBG("%s:%d: bus_addr %lxh\n", func, line, r->bus_addr); in _dma_dump_region() 376 unsigned long bus_addr; member 388 DBG("%s:%d: r.bus_addr %lxh\n", func, line, c->region->bus_addr); in _dma_dump_chunk() 393 DBG("%s:%d: c.bus_addr %lxh\n", func, line, c->bus_addr); in _dma_dump_chunk() 398 unsigned long bus_addr, unsigned long len) in dma_find_chunk() argument 401 unsigned long aligned_bus = ALIGN_DOWN(bus_addr, 1 << r->page_size); in dma_find_chunk() 402 unsigned long aligned_len = ALIGN(len+bus_addr-aligned_bus, in dma_find_chunk() 407 if (aligned_bus >= c->bus_addr && in dma_find_chunk() 408 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 | 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()
|
D | platform.h | 117 unsigned int dev_index, unsigned int reg_index, u64 *bus_addr, 121 enum ps3_reg_type *reg_type, u64 *bus_addr, u64 *len); 144 enum ps3_reg_type reg_type, u64 *bus_addr, u64 *len);
|
/Linux-v6.1/drivers/net/mdio/ |
D | mdio-i2c.c | 38 int bus_addr, ret; in i2c_mii_read_default() local 50 bus_addr = i2c_mii_phy_addr(phy_id); in i2c_mii_read_default() 51 msgs[0].addr = bus_addr; in i2c_mii_read_default() 55 msgs[1].addr = bus_addr; in i2c_mii_read_default() 135 static int __i2c_rollball_get_page(struct i2c_adapter *i2c, int bus_addr, in __i2c_rollball_get_page() argument 141 msgs[0].addr = bus_addr; in __i2c_rollball_get_page() 146 msgs[1].addr = bus_addr; in __i2c_rollball_get_page() 154 static int __i2c_rollball_set_page(struct i2c_adapter *i2c, int bus_addr, in __i2c_rollball_set_page() argument 163 msg.addr = bus_addr; in __i2c_rollball_set_page() 216 static int i2c_rollball_mii_poll(struct mii_bus *bus, int bus_addr, u8 *buf, in i2c_rollball_mii_poll() argument [all …]
|
/Linux-v6.1/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 dma_unmap_single(&isa_bridge->dev, bus_addr, prev_size, in alpha_fd_dma_setup() 53 bus_addr = 0; in alpha_fd_dma_setup() 56 if (!bus_addr) /* need to map it */ in alpha_fd_dma_setup() 57 bus_addr = dma_map_single(&isa_bridge->dev, addr, size, dir); in alpha_fd_dma_setup() 66 set_dma_addr(FLOPPY_DMA, bus_addr); in alpha_fd_dma_setup()
|
/Linux-v6.1/arch/powerpc/platforms/pasemi/ |
D | iommu.c | 84 unsigned long bus_addr; in iobmap_build() local 88 bus_addr = (tbl->it_offset + index) << IOBMAP_PAGE_SHIFT; in iobmap_build() 97 out_le32(iob+IOB_AT_INVAL_TLB_REG, bus_addr >> 14); in iobmap_build() 100 bus_addr += IOBMAP_PAGE_SIZE; in iobmap_build() 110 unsigned long bus_addr; in iobmap_free() local 114 bus_addr = (tbl->it_offset + index) << IOBMAP_PAGE_SHIFT; in iobmap_free() 121 out_le32(iob+IOB_AT_INVAL_TLB_REG, bus_addr >> 14); in iobmap_free() 122 bus_addr += IOBMAP_PAGE_SIZE; in iobmap_free()
|
/Linux-v6.1/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() 593 u32 bus_addr; in fetch_sg_ctx() local [all …]
|
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-v6.1/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 dma_unmap_single(&isa_bridge_pcidev->dev, bus_addr, prev_size, in hard_dma_setup() 144 bus_addr = 0; in hard_dma_setup() 147 if (!bus_addr) /* need to map it */ in hard_dma_setup() 148 bus_addr = dma_map_single(&isa_bridge_pcidev->dev, addr, size, in hard_dma_setup() 158 set_dma_addr(FLOPPY_DMA, bus_addr); in hard_dma_setup()
|
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-v6.1/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 447 phys_addr_t bus_addr; in k3_dsp_rproc_da_to_va() local 456 bus_addr = kproc->mem[i].bus_addr; in k3_dsp_rproc_da_to_va() 470 if (da >= bus_addr && in k3_dsp_rproc_da_to_va() 471 (da + len) <= (bus_addr + size)) { in k3_dsp_rproc_da_to_va() 472 offset = da - bus_addr; in k3_dsp_rproc_da_to_va() 539 kproc->mem[i].bus_addr = res->start; in k3_dsp_rproc_of_get_memories() 544 data->mems[i].name, &kproc->mem[i].bus_addr, in k3_dsp_rproc_of_get_memories() 606 kproc->rmem[i].bus_addr = rmem->base; in k3_dsp_reserved_mem_init() 619 i + 1, &kproc->rmem[i].bus_addr, in k3_dsp_reserved_mem_init()
|
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()
|
D | ti_k3_r5_remoteproc.c | 66 phys_addr_t bus_addr; member 727 phys_addr_t bus_addr; in k3_r5_rproc_da_to_va() local 737 bus_addr = core->mem[i].bus_addr; in k3_r5_rproc_da_to_va() 749 if (da >= bus_addr && ((da + len) <= (bus_addr + size))) { in k3_r5_rproc_da_to_va() 750 offset = da - bus_addr; in k3_r5_rproc_da_to_va() 1005 kproc->rmem[i].bus_addr = rmem->base; in k3_r5_reserved_mem_init() 1027 i + 1, &kproc->rmem[i].bus_addr, in k3_r5_reserved_mem_init() 1389 core->mem[i].bus_addr = res->start; in k3_r5_core_of_get_internal_memories() 1409 mem_names[i], &core->mem[i].bus_addr, in k3_r5_core_of_get_internal_memories() 1454 core->sram[i].bus_addr = res.start; in k3_r5_core_of_get_sram_memories() [all …]
|
/Linux-v6.1/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-v6.1/drivers/net/wwan/t7xx/ |
D | t7xx_hif_dpmaif_tx.c | 103 dma_unmap_single(dpmaif_ctrl->dev, cur_drb_skb->bus_addr, in t7xx_dpmaif_release_tx_buffer() 227 bool is_frag, bool is_last_one, dma_addr_t bus_addr, in t7xx_record_drb_skb() argument 234 drb_skb->bus_addr = bus_addr; in t7xx_record_drb_skb() 282 dma_addr_t bus_addr; in t7xx_dpmaif_add_skb_to_ring() local 297 bus_addr = dma_map_single(dpmaif_ctrl->dev, data_addr, data_len, DMA_TO_DEVICE); in t7xx_dpmaif_add_skb_to_ring() 298 if (dma_mapping_error(dpmaif_ctrl->dev, bus_addr)) in t7xx_dpmaif_add_skb_to_ring() 304 t7xx_setup_payload_drb(dpmaif_ctrl, txq->index, cur_idx, bus_addr, data_len, in t7xx_dpmaif_add_skb_to_ring() 307 is_last_one, bus_addr, data_len); in t7xx_dpmaif_add_skb_to_ring() 324 dma_unmap_single(dpmaif_ctrl->dev, drb_skb->bus_addr, in t7xx_dpmaif_add_skb_to_ring() 577 dma_unmap_single(txq->dpmaif_ctrl->dev, drb_skb->bus_addr, in t7xx_dpmaif_tx_free_drb_skb()
|
/Linux-v6.1/drivers/gpu/drm/r128/ |
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-v6.1/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-v6.1/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-v6.1/drivers/crypto/qat/qat_common/ |
D | qat_uclo.c | 1218 u64 bus_addr; in qat_uclo_auth_fw() local 1220 bus_addr = ADD_ADDR(desc->css_hdr_high, desc->css_hdr_low) in qat_uclo_auth_fw() 1228 SET_CAP_CSR(handle, fcu_dram_hi_csr, (bus_addr >> BITS_IN_DWORD)); in qat_uclo_auth_fw() 1229 SET_CAP_CSR(handle, fcu_dram_lo_csr, bus_addr); in qat_uclo_auth_fw() 1419 u64 virt_addr, bus_addr, virt_base; in qat_uclo_map_auth_fw() local 1440 bus_addr = img_desc.dram_bus_addr + simg_offset; in qat_uclo_map_auth_fw() 1442 auth_desc->css_hdr_high = (unsigned int)(bus_addr >> BITS_IN_DWORD); in qat_uclo_map_auth_fw() 1443 auth_desc->css_hdr_low = (unsigned int)bus_addr; in qat_uclo_map_auth_fw() 1448 bus_addr = ADD_ADDR(auth_desc->css_hdr_high, auth_desc->css_hdr_low) + in qat_uclo_map_auth_fw() 1452 auth_desc->fwsk_pub_high = (unsigned int)(bus_addr >> BITS_IN_DWORD); in qat_uclo_map_auth_fw() [all …]
|
/Linux-v6.1/drivers/firmware/ |
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-v6.1/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() 431 scb->smp_task.smp_req.bus_addr = in asd_build_smp_ascb() 436 scb->smp_task.smp_resp.bus_addr = in asd_build_smp_ascb()
|
/Linux-v6.1/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-v6.1/drivers/of/ |
D | address.c | 731 range->bus_addr = of_read_number(parser->range + busflag_na, na - busflag_na); in of_pci_range_parser_one() 746 u64 bus_addr, cpu_addr, size; in of_pci_range_parser_one() local 749 bus_addr = of_read_number(parser->range + busflag_na, na - busflag_na); in of_pci_range_parser_one() 760 if (bus_addr != range->bus_addr + range->size || in of_pci_range_parser_one() 984 range.bus_addr, range.cpu_addr, range.size); in of_dma_get_range() 987 range.bus_addr, node); in of_dma_get_range() 991 r->dma_start = range.bus_addr; in of_dma_get_range() 993 r->offset = range.cpu_addr - range.bus_addr; in of_dma_get_range()
|