Home
last modified time | relevance | path

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

/arch/powerpc/platforms/ps3/
Dmm.c352 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 …]
Dgelic_udbg.c46 static u64 bus_addr; variable
85 u64 bus_addr = 0; in map_dma_mem() local
91 &bus_addr); in map_dma_mem()
96 bus_addr, map_end - map_start, in map_dma_mem()
101 *real_bus_addr = bus_addr + real_addr - map_start; in map_dma_mem()
104 static int unmap_dma_mem(int bus_id, int dev_id, u64 bus_addr, size_t len) in unmap_dma_mem() argument
109 real_bus_addr = bus_addr & ~0xfff; in unmap_dma_mem()
110 len += bus_addr - real_bus_addr; in unmap_dma_mem()
133 &bus_addr); in gelic_debug_init()
137 dbg.descr.buf_addr = bus_addr + offsetof(struct debug_block, pkt); in gelic_debug_init()
[all …]
Dsystem-bus.c247 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()
578 dma_addr_t bus_addr; in ps3_sb_map_page() local
582 &bus_addr, in ps3_sb_map_page()
591 return bus_addr; in ps3_sb_map_page()
601 dma_addr_t bus_addr; in ps3_ioc0_map_page() local
621 &bus_addr, iopte_flag); in ps3_ioc0_map_page()
627 return bus_addr; in ps3_ioc0_map_page()
Dplatform.h129 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);
Drepository.c279 unsigned int dev_index, unsigned int reg_index, u64 *bus_addr, u64 *len) in ps3_repository_read_dev_reg_addr() argument
286 bus_addr, len); in ps3_repository_read_dev_reg_addr()
291 enum ps3_reg_type *reg_type, u64 *bus_addr, u64 *len) in ps3_repository_read_dev_reg() argument
297 reg_index, bus_addr, len); in ps3_repository_read_dev_reg()
533 enum ps3_reg_type reg_type, u64 *bus_addr, u64 *len) in ps3_repository_find_reg() argument
540 *bus_addr = *len = 0; in ps3_repository_find_reg()
557 *bus_addr = a; in ps3_repository_find_reg()
1223 u64 bus_addr; in ps3_repository_dump_resource_info() local
1227 repo->dev_index, res_index, &reg_type, &bus_addr, &len); in ps3_repository_dump_resource_info()
1239 reg_type, bus_addr, len); in ps3_repository_dump_resource_info()
Ddevice-init.c202 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/
Dmsi_sn.c72 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/
Dfloppy.h42 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/ia64/sn/pci/
Dtioca_provider.c285 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 …]
Dtioce_provider.c206 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/platforms/pasemi/
Diommu.c95 unsigned long bus_addr; in iobmap_build() local
99 bus_addr = (tbl->it_offset + index) << IOBMAP_PAGE_SHIFT; in iobmap_build()
108 out_le32(iob+IOB_AT_INVAL_TLB_REG, bus_addr >> 14); in iobmap_build()
111 bus_addr += IOBMAP_PAGE_SIZE; in iobmap_build()
121 unsigned long bus_addr; in iobmap_free() local
125 bus_addr = (tbl->it_offset + index) << IOBMAP_PAGE_SHIFT; in iobmap_free()
132 out_le32(iob+IOB_AT_INVAL_TLB_REG, bus_addr >> 14); in iobmap_free()
133 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()
157 set_dma_addr(FLOPPY_DMA, bus_addr); in hard_dma_setup()
Dps3.h102 unsigned long bus_addr; member
115 dma_addr_t *bus_addr,
118 dma_addr_t bus_addr,
136 unsigned long len, dma_addr_t *bus_addr,
138 int ps3_dma_unmap(struct ps3_dma_region *r, dma_addr_t bus_addr,
158 unsigned long bus_addr; member
176 struct ps3_mmio_region *r, unsigned long bus_addr, unsigned long len,
/arch/sparc/kernel/
Diommu.c274 u32 bus_addr, ret; in dma_4u_map_page() local
297 bus_addr = (iommu->tbl.table_map_base + in dma_4u_map_page()
299 ret = bus_addr | (oaddr & ~IO_PAGE_MASK); in dma_4u_map_page()
387 static void dma_4u_unmap_page(struct device *dev, dma_addr_t bus_addr, in dma_4u_unmap_page() argument
405 npages = IO_PAGE_ALIGN(bus_addr + sz) - (bus_addr & IO_PAGE_MASK); in dma_4u_unmap_page()
408 ((bus_addr - iommu->tbl.table_map_base) >> IO_PAGE_SHIFT); in dma_4u_unmap_page()
409 bus_addr &= IO_PAGE_MASK; in dma_4u_unmap_page()
420 strbuf_flush(strbuf, iommu, bus_addr, ctx, in dma_4u_unmap_page()
430 iommu_tbl_range_free(&iommu->tbl, bus_addr, npages, IOMMU_ERROR_CODE); in dma_4u_unmap_page()
597 u32 bus_addr; in fetch_sg_ctx() local
[all …]
Dpci_sun4v.c363 dma_addr_t bus_addr, ret; in dma_4v_map_page() local
388 bus_addr = (tbl->table_map_base + (entry << IO_PAGE_SHIFT)); in dma_4v_map_page()
389 ret = bus_addr | (oaddr & ~IO_PAGE_MASK); in dma_4v_map_page()
421 iommu_tbl_range_free(tbl, bus_addr, npages, IOMMU_ERROR_CODE); in dma_4v_map_page()
425 static void dma_4v_unmap_page(struct device *dev, dma_addr_t bus_addr, in dma_4v_unmap_page() argument
449 npages = IO_PAGE_ALIGN(bus_addr + sz) - (bus_addr & IO_PAGE_MASK); in dma_4v_unmap_page()
451 bus_addr &= IO_PAGE_MASK; in dma_4v_unmap_page()
453 if (bus_addr <= DMA_BIT_MASK(32)) { in dma_4v_unmap_page()
460 entry = (bus_addr - tbl->table_map_base) >> IO_PAGE_SHIFT; in dma_4v_unmap_page()
461 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.h97 static inline void __indirect_writesb(volatile void __iomem *bus_addr, in __indirect_writesb() argument
103 writeb(*vaddr++, bus_addr); in __indirect_writesb()
122 static inline void __indirect_writesw(volatile void __iomem *bus_addr, in __indirect_writesw() argument
128 writew(*vaddr++, bus_addr); in __indirect_writesw()
143 static inline void __indirect_writesl(volatile void __iomem *bus_addr, in __indirect_writesl() argument
148 writel(*vaddr++, bus_addr); in __indirect_writesl()
167 static inline void __indirect_readsb(const volatile void __iomem *bus_addr, in __indirect_readsb() argument
173 *vaddr++ = readb(bus_addr); in __indirect_readsb()
192 static inline void __indirect_readsw(const volatile void __iomem *bus_addr, in __indirect_readsw() argument
198 *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()
356 void __iomem *bus_addr; in verify_tb_operation() local
391 bus_addr = cia_ioremap(addr0, 8*PAGE_SIZE); in verify_tb_operation()
428 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,