/linux-6.6.21/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);
|
D | repository.c | 267 unsigned int dev_index, unsigned int reg_index, u64 *bus_addr, u64 *len) in ps3_repository_read_dev_reg_addr() argument 274 bus_addr, len); in ps3_repository_read_dev_reg_addr() 279 enum ps3_reg_type *reg_type, u64 *bus_addr, u64 *len) in ps3_repository_read_dev_reg() argument 285 reg_index, bus_addr, len); in ps3_repository_read_dev_reg() 521 enum ps3_reg_type reg_type, u64 *bus_addr, u64 *len) in ps3_repository_find_reg() argument 528 *bus_addr = *len = 0; in ps3_repository_find_reg() 545 *bus_addr = a; in ps3_repository_find_reg() 1211 u64 bus_addr; in ps3_repository_dump_resource_info() local 1215 repo->dev_index, res_index, ®_type, &bus_addr, &len); in ps3_repository_dump_resource_info() 1227 reg_type, bus_addr, len); in ps3_repository_dump_resource_info()
|
/linux-6.6.21/drivers/net/mdio/ |
D | mdio-i2c.c | 39 int bus_addr, ret; in i2c_mii_read_default_c45() local 51 bus_addr = i2c_mii_phy_addr(phy_id); in i2c_mii_read_default_c45() 52 msgs[0].addr = bus_addr; in i2c_mii_read_default_c45() 56 msgs[1].addr = bus_addr; in i2c_mii_read_default_c45() 147 static int __i2c_rollball_get_page(struct i2c_adapter *i2c, int bus_addr, in __i2c_rollball_get_page() argument 153 msgs[0].addr = bus_addr; in __i2c_rollball_get_page() 158 msgs[1].addr = bus_addr; in __i2c_rollball_get_page() 166 static int __i2c_rollball_set_page(struct i2c_adapter *i2c, int bus_addr, in __i2c_rollball_set_page() argument 175 msg.addr = bus_addr; in __i2c_rollball_set_page() 228 static int i2c_rollball_mii_poll(struct mii_bus *bus, int bus_addr, u8 *buf, in i2c_rollball_mii_poll() argument [all …]
|
/linux-6.6.21/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-6.6.21/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-6.6.21/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 | 367 dma_addr_t bus_addr, ret; in dma_4v_map_page() local 392 bus_addr = (tbl->table_map_base + (entry << IO_PAGE_SHIFT)); in dma_4v_map_page() 393 ret = bus_addr | (oaddr & ~IO_PAGE_MASK); in dma_4v_map_page() 425 iommu_tbl_range_free(tbl, bus_addr, npages, IOMMU_ERROR_CODE); in dma_4v_map_page() 429 static void dma_4v_unmap_page(struct device *dev, dma_addr_t bus_addr, in dma_4v_unmap_page() argument 453 npages = IO_PAGE_ALIGN(bus_addr + sz) - (bus_addr & IO_PAGE_MASK); in dma_4v_unmap_page() 455 bus_addr &= IO_PAGE_MASK; in dma_4v_unmap_page() 457 if (bus_addr <= DMA_BIT_MASK(32)) { in dma_4v_unmap_page() 464 entry = (bus_addr - tbl->table_map_base) >> IO_PAGE_SHIFT; in dma_4v_unmap_page() 465 dma_4v_iommu_demap(dev, devhandle, bus_addr, iotsb_num, entry, npages); in dma_4v_unmap_page() [all …]
|
/linux-6.6.21/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-6.6.21/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 105 if (pa < p_mem->bus_addr || in stm32_rproc_pa_to_da() 106 pa >= p_mem->bus_addr + p_mem->size) in stm32_rproc_pa_to_da() 108 *da = pa - p_mem->bus_addr + p_mem->dev_addr; in stm32_rproc_pa_to_da() 181 p_mems[i].bus_addr = mem_range[i].bus_addr; in stm32_rproc_of_memory_translations() 186 i, p_mems[i].dev_addr, &p_mems[i].bus_addr, in stm32_rproc_of_memory_translations() 606 *pa = da - p_mem->dev_addr + p_mem->bus_addr; in stm32_rproc_da_to_pa()
|
D | ti_k3_r5_remoteproc.c | 67 phys_addr_t bus_addr; member 732 phys_addr_t bus_addr; in k3_r5_rproc_da_to_va() local 742 bus_addr = core->mem[i].bus_addr; in k3_r5_rproc_da_to_va() 754 if (da >= bus_addr && ((da + len) <= (bus_addr + size))) { in k3_r5_rproc_da_to_va() 755 offset = da - bus_addr; in k3_r5_rproc_da_to_va() 1007 kproc->rmem[i].bus_addr = rmem->base; in k3_r5_reserved_mem_init() 1029 i + 1, &kproc->rmem[i].bus_addr, in k3_r5_reserved_mem_init() 1396 core->mem[i].bus_addr = res->start; in k3_r5_core_of_get_internal_memories() 1416 mem_names[i], &core->mem[i].bus_addr, in k3_r5_core_of_get_internal_memories() 1461 core->sram[i].bus_addr = res.start; in k3_r5_core_of_get_sram_memories() [all …]
|
/linux-6.6.21/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-6.6.21/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-6.6.21/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-6.6.21/drivers/dma/ |
D | fsl-qdma.c | 192 dma_addr_t bus_addr; member 200 dma_addr_t bus_addr; member 327 comp_temp->bus_addr); in fsl_qdma_free_chan_resources() 339 comp_temp->bus_addr); in fsl_qdma_free_chan_resources() 372 qdma_desc_addr_set64(ccdf, fsl_comp->bus_addr + 16); in fsl_qdma_comp_fill_memcpy() 412 &comp_temp->bus_addr); in fsl_qdma_pre_request_enqueue_desc() 429 comp_temp->bus_addr); in fsl_qdma_pre_request_enqueue_desc() 440 comp_temp->bus_addr); in fsl_qdma_pre_request_enqueue_desc() 522 &queue_temp->bus_addr, in fsl_qdma_alloc_queue_resources() 571 &status_head->bus_addr, in fsl_qdma_prep_status_queue() [all …]
|
/linux-6.6.21/drivers/crypto/intel/qat/qat_common/ |
D | qat_uclo.c | 1219 u64 bus_addr; in qat_uclo_auth_fw() local 1221 bus_addr = ADD_ADDR(desc->css_hdr_high, desc->css_hdr_low) in qat_uclo_auth_fw() 1229 SET_CAP_CSR(handle, fcu_dram_hi_csr, (bus_addr >> BITS_IN_DWORD)); in qat_uclo_auth_fw() 1230 SET_CAP_CSR(handle, fcu_dram_lo_csr, bus_addr); in qat_uclo_auth_fw() 1420 u64 virt_addr, bus_addr, virt_base; in qat_uclo_map_auth_fw() local 1441 bus_addr = img_desc.dram_bus_addr + simg_offset; in qat_uclo_map_auth_fw() 1443 auth_desc->css_hdr_high = (unsigned int)(bus_addr >> BITS_IN_DWORD); in qat_uclo_map_auth_fw() 1444 auth_desc->css_hdr_low = (unsigned int)bus_addr; in qat_uclo_map_auth_fw() 1449 bus_addr = ADD_ADDR(auth_desc->css_hdr_high, auth_desc->css_hdr_low) + in qat_uclo_map_auth_fw() 1453 auth_desc->fwsk_pub_high = (unsigned int)(bus_addr >> BITS_IN_DWORD); in qat_uclo_map_auth_fw() [all …]
|
/linux-6.6.21/drivers/firmware/ |
D | raspberrypi.c | 93 dma_addr_t bus_addr; in rpi_firmware_property_list() local 100 buf = dma_alloc_coherent(fw->cl.dev, PAGE_ALIGN(size), &bus_addr, in rpi_firmware_property_list() 114 ret = rpi_firmware_transaction(fw, MBOX_CHAN_PROPERTY, bus_addr); in rpi_firmware_property_list() 129 dma_free_coherent(fw->cl.dev, PAGE_ALIGN(size), buf, bus_addr); in rpi_firmware_property_list()
|
/linux-6.6.21/drivers/scsi/aic94xx/ |
D | aic94xx_task.c | 56 sg_arr[0].bus_addr = cpu_to_le64((u64)dma); in asd_map_scatterlist() 85 sg->bus_addr = cpu_to_le64((u64)sg_dma_address(sc)); in asd_map_scatterlist() 92 sg_arr[i].bus_addr = in asd_map_scatterlist() 100 sg_arr[2].bus_addr=cpu_to_le64((u64)ascb->sg_arr->dma_handle); in asd_map_scatterlist() 104 sg_arr[i].bus_addr = in asd_map_scatterlist() 129 le64_to_cpu(ascb->scb->ssp_task.sg_element[0].bus_addr); in asd_unmap_scatterlist() 429 scb->smp_task.smp_req.bus_addr = in asd_build_smp_ascb() 434 scb->smp_task.smp_resp.bus_addr = in asd_build_smp_ascb()
|
/linux-6.6.21/drivers/media/v4l2-core/ |
D | videobuf-dma-sg.c | 275 dma->bus_addr = addr; in videobuf_dma_init_overlay() 294 if (dma->bus_addr) { in videobuf_dma_map() 298 sg_dma_address(&dma->sglist[0]) = dma->bus_addr in videobuf_dma_map() 300 dma->sglist[0].offset = dma->bus_addr & ~PAGE_MASK; in videobuf_dma_map() 308 if (!dma->bus_addr) { in videobuf_dma_map() 370 if (dma->bus_addr) in videobuf_dma_free() 371 dma->bus_addr = 0; in videobuf_dma_free()
|
/linux-6.6.21/Documentation/driver-api/ |
D | zorro.rst | 84 virt_addr = ZTWO_VADDR(bus_addr); 85 bus_addr = ZTWO_PADDR(virt_addr); 90 virt_addr = z_ioremap(bus_addr, size);
|