Home
last modified time | relevance | path

Searched refs:bus_addr (Results 1 – 17 of 17) sorted by relevance

/arch/powerpc/platforms/ps3/
Dmm.c345 return r->bus_addr + lpar_addr - r->offset; in dma_sb_lpar_to_bus()
355 DBG("%s:%d: bus_addr %lxh\n", func, line, r->bus_addr); in _dma_dump_region()
377 unsigned long bus_addr; member
389 DBG("%s:%d: r.bus_addr %lxh\n", func, line, c->region->bus_addr); in _dma_dump_chunk()
394 DBG("%s:%d: c.bus_addr %lxh\n", func, line, c->bus_addr); in _dma_dump_chunk()
399 unsigned long bus_addr, unsigned long len) in dma_find_chunk() argument
402 unsigned long aligned_bus = ALIGN_DOWN(bus_addr, 1 << r->page_size); in dma_find_chunk()
403 unsigned long aligned_len = ALIGN(len+bus_addr-aligned_bus, in dma_find_chunk()
408 if (aligned_bus >= c->bus_addr && in dma_find_chunk()
409 aligned_bus + aligned_len <= c->bus_addr + c->len) in dma_find_chunk()
[all …]
Dgelic_udbg.c41 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 …]
Dsystem-bus.c236 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()
Dplatform.h117 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);
Drepository.c267 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, &reg_type, &bus_addr, &len); in ps3_repository_dump_resource_info()
1227 reg_type, bus_addr, len); in ps3_repository_dump_resource_info()
Ddevice-init.c191 u64 bus_addr; in ps3_setup_uhc_device() local
223 &bus_addr, &len); in ps3_setup_uhc_device()
240 result = ps3_mmio_region_init(&p->dev, p->dev.m_region, bus_addr, len, in ps3_setup_uhc_device()
/arch/alpha/include/asm/
Dfloppy.h41 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()
/arch/powerpc/platforms/pasemi/
Diommu.c83 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()
/arch/powerpc/include/asm/
Dfloppy.h131 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()
Dps3.h92 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,
/arch/sparc/kernel/
Diommu.c273 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 …]
Dpci_sun4v.c366 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 …]
Debus.c176 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/
Dio.h94 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 …]
/arch/alpha/kernel/
Dcore_cia.c287 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 …]
/arch/sparc/include/asm/
Debus_dma.h29 int ebus_dma_request(struct ebus_dma_info *p, dma_addr_t bus_addr,
/arch/mips/loongson64/
Dinit.c206 range.bus_addr); in reserve_pio_range()
214 range.bus_addr); in reserve_pio_range()