/arch/powerpc/platforms/ps3/ |
D | mm.c | 352 return r->bus_addr + lpar_addr - r->offset; in dma_sb_lpar_to_bus() 362 DBG("%s:%d: bus_addr %lxh\n", func, line, r->bus_addr); in _dma_dump_region() 384 unsigned long bus_addr; member 396 DBG("%s:%d: r.bus_addr %lxh\n", func, line, c->region->bus_addr); in _dma_dump_chunk() 401 DBG("%s:%d: c.bus_addr %lxh\n", func, line, c->bus_addr); in _dma_dump_chunk() 406 unsigned long bus_addr, unsigned long len) in dma_find_chunk() argument 409 unsigned long aligned_bus = _ALIGN_DOWN(bus_addr, 1 << r->page_size); in dma_find_chunk() 410 unsigned long aligned_len = _ALIGN_UP(len+bus_addr-aligned_bus, in dma_find_chunk() 415 if (aligned_bus >= c->bus_addr && in dma_find_chunk() 416 aligned_bus + aligned_len <= c->bus_addr + c->len) in dma_find_chunk() [all …]
|
D | gelic_udbg.c | 40 static u64 bus_addr; variable 110 u64 bus_addr = 0; in map_dma_mem() local 116 &bus_addr); in map_dma_mem() 121 bus_addr, map_end - map_start, in map_dma_mem() 126 *real_bus_addr = bus_addr + real_addr - map_start; in map_dma_mem() 129 static int unmap_dma_mem(int bus_id, int dev_id, u64 bus_addr, size_t len) in unmap_dma_mem() argument 134 real_bus_addr = bus_addr & ~0xfff; in unmap_dma_mem() 135 len += bus_addr - real_bus_addr; in unmap_dma_mem() 158 &bus_addr); in gelic_debug_init() 162 dbg.descr.buf_addr = bus_addr + offsetof(struct debug_block, pkt); in gelic_debug_init() [all …]
|
D | system-bus.c | 247 pr_debug("%s:%d: bus_addr %lxh\n", func, line, r->bus_addr); in _dump_mmio_region() 258 r->bus_addr, r->len, r->page_size, &lpar_addr); in ps3_sb_mmio_region_create() 324 struct ps3_mmio_region *r, unsigned long bus_addr, unsigned long len, in ps3_mmio_region_init() argument 328 r->bus_addr = bus_addr; in ps3_mmio_region_init() 576 dma_addr_t bus_addr; in ps3_sb_map_page() local 580 &bus_addr, in ps3_sb_map_page() 589 return bus_addr; in ps3_sb_map_page() 599 dma_addr_t bus_addr; in ps3_ioc0_map_page() local 619 &bus_addr, iopte_flag); in ps3_ioc0_map_page() 625 return bus_addr; in ps3_ioc0_map_page()
|
D | platform.h | 129 unsigned int dev_index, unsigned int reg_index, u64 *bus_addr, 133 enum ps3_reg_type *reg_type, u64 *bus_addr, u64 *len); 156 enum ps3_reg_type reg_type, u64 *bus_addr, u64 *len);
|
D | repository.c | 291 unsigned int dev_index, unsigned int reg_index, u64 *bus_addr, u64 *len) in ps3_repository_read_dev_reg_addr() argument 298 bus_addr, len); in ps3_repository_read_dev_reg_addr() 303 enum ps3_reg_type *reg_type, u64 *bus_addr, u64 *len) in ps3_repository_read_dev_reg() argument 309 reg_index, bus_addr, len); in ps3_repository_read_dev_reg() 545 enum ps3_reg_type reg_type, u64 *bus_addr, u64 *len) in ps3_repository_find_reg() argument 552 *bus_addr = *len = 0; in ps3_repository_find_reg() 569 *bus_addr = a; in ps3_repository_find_reg() 1037 u64 bus_addr; in ps3_repository_dump_resource_info() local 1041 repo->dev_index, res_index, ®_type, &bus_addr, &len); in ps3_repository_dump_resource_info() 1053 reg_type, bus_addr, len); in ps3_repository_dump_resource_info()
|
D | device-init.c | 202 u64 bus_addr; in ps3_setup_uhc_device() local 234 &bus_addr, &len); in ps3_setup_uhc_device() 251 result = ps3_mmio_region_init(&p->dev, p->dev.m_region, bus_addr, len, in ps3_setup_uhc_device()
|
/arch/ia64/sn/kernel/ |
D | msi_sn.c | 72 u64 bus_addr; in sn_setup_msi_irq() local 124 bus_addr = (*provider->dma_map_consistent)(pdev, in sn_setup_msi_irq() 128 if (! bus_addr) { in sn_setup_msi_irq() 136 sn_msi_info[irq].pci_addr = bus_addr; in sn_setup_msi_irq() 138 msg.address_hi = (u32)(bus_addr >> 32); in sn_setup_msi_irq() 139 msg.address_lo = (u32)(bus_addr & 0x00000000ffffffff); in sn_setup_msi_irq() 161 u64 bus_addr; in sn_set_msi_irq_affinity() local 183 bus_addr = (u64)(msg.address_hi) << 32 | (u64)(msg.address_lo); in sn_set_msi_irq_affinity() 184 (*provider->dma_unmap)(pdev, bus_addr, PCI_DMA_FROMDEVICE); in sn_set_msi_irq_affinity() 199 bus_addr = (*provider->dma_map_consistent)(pdev, in sn_set_msi_irq_affinity() [all …]
|
/arch/alpha/include/asm/ |
D | floppy.h | 42 static dma_addr_t bus_addr = 0; in alpha_fd_dma_setup() local 49 if (bus_addr in alpha_fd_dma_setup() 52 pci_unmap_single(isa_bridge, bus_addr, prev_size, prev_dir); 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 = pci_map_single(isa_bridge, addr, size, dir); in alpha_fd_dma_setup() 67 set_dma_addr(FLOPPY_DMA, bus_addr); in alpha_fd_dma_setup()
|
/arch/powerpc/platforms/pasemi/ |
D | iommu.c | 93 unsigned long bus_addr; in iobmap_build() local 97 bus_addr = (tbl->it_offset + index) << IOBMAP_PAGE_SHIFT; in iobmap_build() 106 out_le32(iob+IOB_AT_INVAL_TLB_REG, bus_addr >> 14); in iobmap_build() 109 bus_addr += IOBMAP_PAGE_SIZE; in iobmap_build() 119 unsigned long bus_addr; in iobmap_free() local 123 bus_addr = (tbl->it_offset + index) << IOBMAP_PAGE_SHIFT; in iobmap_free() 130 out_le32(iob+IOB_AT_INVAL_TLB_REG, bus_addr >> 14); in iobmap_free() 131 bus_addr += IOBMAP_PAGE_SIZE; in iobmap_free()
|
/arch/ia64/sn/pci/ |
D | tioca_provider.c | 285 dma_addr_t bus_addr; in tioca_dma_d64() local 287 bus_addr = PHYS_TO_TIODMA(paddr); in tioca_dma_d64() 289 BUG_ON(!bus_addr); in tioca_dma_d64() 290 BUG_ON(bus_addr >> 54); in tioca_dma_d64() 293 bus_addr |= (1UL << 60); in tioca_dma_d64() 295 return bus_addr; in tioca_dma_d64() 330 dma_addr_t bus_addr; in tioca_dma_d48() local 342 bus_addr = (dma_addr_t) (ct_addr & 0xffffffffffffUL); in tioca_dma_d48() 360 return bus_addr; in tioca_dma_d48() 379 dma_addr_t bus_addr = 0; in tioca_dma_mapped() local [all …]
|
D | tioce_provider.c | 206 u64 bus_addr; in tioce_dma_d64() local 208 bus_addr = ct_addr | (1UL << 63); in tioce_dma_d64() 210 bus_addr |= (1UL << 61); in tioce_dma_d64() 212 return bus_addr; in tioce_dma_d64() 393 dma_addr_t bus_addr; in tioce_dma_d32() local 416 bus_addr = TIOCE_D32_MIN + ct_lower; in tioce_dma_d32() 418 bus_addr = 0; in tioce_dma_d32() 420 return bus_addr; in tioce_dma_d32() 432 tioce_dma_barrier(u64 bus_addr, int on) in tioce_dma_barrier() argument 437 if (TIOCE_M40_ADDR(bus_addr) || TIOCE_M40S_ADDR(bus_addr)) in tioce_dma_barrier() [all …]
|
/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() 157 set_dma_addr(FLOPPY_DMA, bus_addr); in hard_dma_setup()
|
D | ps3.h | 103 unsigned long bus_addr; member 116 dma_addr_t *bus_addr, 119 dma_addr_t bus_addr, 137 unsigned long len, dma_addr_t *bus_addr, 139 int ps3_dma_unmap(struct ps3_dma_region *r, dma_addr_t bus_addr, 159 unsigned long bus_addr; member 177 struct ps3_mmio_region *r, unsigned long bus_addr, unsigned long len,
|
/arch/sparc/kernel/ |
D | iommu.c | 364 u32 bus_addr, ret; in dma_4u_map_page() local 387 bus_addr = (iommu->page_table_map_base + in dma_4u_map_page() 389 ret = bus_addr | (oaddr & ~IO_PAGE_MASK); in dma_4u_map_page() 477 static void dma_4u_unmap_page(struct device *dev, dma_addr_t bus_addr, in dma_4u_unmap_page() argument 495 npages = IO_PAGE_ALIGN(bus_addr + sz) - (bus_addr & IO_PAGE_MASK); in dma_4u_unmap_page() 498 ((bus_addr - iommu->page_table_map_base) >> IO_PAGE_SHIFT); in dma_4u_unmap_page() 499 bus_addr &= IO_PAGE_MASK; in dma_4u_unmap_page() 510 strbuf_flush(strbuf, iommu, bus_addr, ctx, in dma_4u_unmap_page() 517 iommu_range_free(iommu, bus_addr, npages); in dma_4u_unmap_page() 685 u32 bus_addr; in fetch_sg_ctx() local [all …]
|
D | pci_sun4v.c | 243 u32 bus_addr, ret; in dma_4v_map_page() local 263 bus_addr = (iommu->page_table_map_base + in dma_4v_map_page() 265 ret = bus_addr | (oaddr & ~IO_PAGE_MASK); in dma_4v_map_page() 295 iommu_range_free(iommu, bus_addr, npages); in dma_4v_map_page() 301 static void dma_4v_unmap_page(struct device *dev, dma_addr_t bus_addr, in dma_4v_unmap_page() argument 321 npages = IO_PAGE_ALIGN(bus_addr + sz) - (bus_addr & IO_PAGE_MASK); in dma_4v_unmap_page() 323 bus_addr &= IO_PAGE_MASK; in dma_4v_unmap_page() 327 iommu_range_free(iommu, bus_addr, npages); in dma_4v_unmap_page() 329 entry = (bus_addr - iommu->page_table_map_base) >> IO_PAGE_SHIFT; in dma_4v_unmap_page()
|
D | ebus.c | 176 int ebus_dma_request(struct ebus_dma_info *p, dma_addr_t bus_addr, size_t len) in ebus_dma_request() argument 195 writel(bus_addr, p->regs + EBDMA_ADDR); in ebus_dma_request()
|
/arch/arm/mach-ixp4xx/include/mach/ |
D | io.h | 88 static inline void __indirect_writesb(volatile void __iomem *bus_addr, in __indirect_writesb() argument 92 writeb(*vaddr++, bus_addr); in __indirect_writesb() 111 static inline void __indirect_writesw(volatile void __iomem *bus_addr, in __indirect_writesw() argument 115 writew(*vaddr++, bus_addr); in __indirect_writesw() 130 static inline void __indirect_writesl(volatile void __iomem *bus_addr, in __indirect_writesl() argument 134 writel(*vaddr++, bus_addr); in __indirect_writesl() 153 static inline void __indirect_readsb(const volatile void __iomem *bus_addr, in __indirect_readsb() argument 157 *vaddr++ = readb(bus_addr); in __indirect_readsb() 176 static inline void __indirect_readsw(const volatile void __iomem *bus_addr, in __indirect_readsw() argument 180 *vaddr++ = readw(bus_addr); in __indirect_readsw() [all …]
|
/arch/alpha/kernel/ |
D | core_cia.c | 286 void __iomem *bus_addr; in cia_pci_tbi_try2() local 309 bus_addr = cia_ioremap(CIA_BROKEN_TBIA_BASE, 32768 * 4); in cia_pci_tbi_try2() 311 cia_readl(bus_addr + 0x00000); in cia_pci_tbi_try2() 312 cia_readl(bus_addr + 0x08000); in cia_pci_tbi_try2() 313 cia_readl(bus_addr + 0x10000); in cia_pci_tbi_try2() 314 cia_readl(bus_addr + 0x18000); in cia_pci_tbi_try2() 316 cia_iounmap(bus_addr); in cia_pci_tbi_try2() 355 void __iomem *bus_addr; in verify_tb_operation() local 390 bus_addr = cia_ioremap(addr0, 8*PAGE_SIZE); in verify_tb_operation() 427 temp = cia_readl(bus_addr); in verify_tb_operation() [all …]
|
/arch/sparc/include/asm/ |
D | ebus_dma.h | 28 extern int ebus_dma_request(struct ebus_dma_info *p, dma_addr_t bus_addr,
|
/arch/mips/pnx833x/common/ |
D | platform.c | 169 .bus_addr = 0, /* no slave support */ 176 .bus_addr = 0, /* no slave support */
|