/arch/m68k/sun3/ |
D | sun3dvma.c | 24 extern void dvma_unmap_iommu(unsigned long baddr, int len); 37 #define dvma_index(baddr) ((baddr - DVMA_START) >> DVMA_PAGE_SHIFT) argument 39 #define dvma_entry_use(baddr) (iommu_use[dvma_index(baddr)]) argument 202 static inline int free_baddr(unsigned long baddr) in free_baddr() argument 210 orig_baddr = baddr; in free_baddr() 211 len = dvma_entry_use(baddr); in free_baddr() 212 dvma_entry_use(baddr) = 0; in free_baddr() 213 baddr &= DVMA_PAGE_MASK; in free_baddr() 214 dvma_unmap_iommu(baddr, len); in free_baddr() 224 if(hole->end == baddr) { in free_baddr() [all …]
|
D | dvma.c | 44 int dvma_map_iommu(unsigned long kaddr, unsigned long baddr, in dvma_map_iommu() argument 51 vaddr = dvma_btov(baddr); in dvma_map_iommu()
|
/arch/alpha/kernel/ |
D | core_irongate.c | 317 unsigned long baddr, last; in irongate_ioremap() local 367 for(baddr = addr; baddr <= last; baddr += PAGE_SIZE) in irongate_ioremap() 369 cur_gatt = phys_to_virt(GET_GATT(baddr) & ~1); in irongate_ioremap() 370 pte = cur_gatt[GET_GATT_OFF(baddr)] & ~1; in irongate_ioremap() 382 for(baddr = addr, vaddr = (unsigned long)area->addr; in irongate_ioremap() 383 baddr <= last; in irongate_ioremap() 384 baddr += PAGE_SIZE, vaddr += PAGE_SIZE) in irongate_ioremap() 386 cur_gatt = phys_to_virt(GET_GATT(baddr) & ~1); in irongate_ioremap() 387 pte = cur_gatt[GET_GATT_OFF(baddr)] & ~1; in irongate_ioremap()
|
D | core_marvel.c | 687 unsigned long baddr, last; in marvel_ioremap() local 711 baddr = addr - hose->mem_space->start; in marvel_ioremap() 712 last = baddr + size - 1; in marvel_ioremap() 717 if ((baddr >= __direct_map_base) && in marvel_ioremap() 718 ((baddr + size - 1) < __direct_map_base + __direct_map_size)) { in marvel_ioremap() 719 addr = IDENT_ADDR | (baddr - __direct_map_base); in marvel_ioremap() 727 baddr >= (unsigned long)hose->sg_pci->dma_base && in marvel_ioremap() 733 baddr -= hose->sg_pci->dma_base; in marvel_ioremap() 735 baddr &= PAGE_MASK; in marvel_ioremap() 736 size = PAGE_ALIGN(last) - baddr; in marvel_ioremap() [all …]
|
D | core_titan.c | 458 unsigned long baddr = addr & ~TITAN_HOSE_MASK; in titan_ioremap() local 459 unsigned long last = baddr + size - 1; in titan_ioremap() 488 if ((baddr >= __direct_map_base) && in titan_ioremap() 489 ((baddr + size - 1) < __direct_map_base + __direct_map_size)) { in titan_ioremap() 498 baddr >= (unsigned long)hose->sg_pci->dma_base && in titan_ioremap() 504 baddr -= hose->sg_pci->dma_base; in titan_ioremap() 506 baddr &= PAGE_MASK; in titan_ioremap() 507 size = PAGE_ALIGN(last) - baddr; in titan_ioremap() 520 baddr <= last; in titan_ioremap() 521 baddr += PAGE_SIZE, vaddr += PAGE_SIZE) { in titan_ioremap() [all …]
|
/arch/m68k/sun3x/ |
D | dvma.c | 146 inline int dvma_map_iommu(unsigned long kaddr, unsigned long baddr, in dvma_map_iommu() argument 151 index = baddr >> DVMA_PAGE_SHIFT; in dvma_map_iommu() 152 end = ((baddr+len) >> DVMA_PAGE_SHIFT); in dvma_map_iommu() 172 for(index = (baddr >> DVMA_PAGE_SHIFT); index < end; index++) in dvma_map_iommu() 179 void dvma_unmap_iommu(unsigned long baddr, int len) in dvma_unmap_iommu() argument 185 index = baddr >> DVMA_PAGE_SHIFT; in dvma_unmap_iommu() 186 end = (DVMA_PAGE_ALIGN(baddr+len) >> DVMA_PAGE_SHIFT); in dvma_unmap_iommu()
|
/arch/h8300/kernel/ |
D | setup.c | 164 int baddr; \ 165 baddr = ((addr) / 0x200000 * 2); \ 166 w *= (readw((base) + 2) & (3 << baddr)) + 1; \ 171 int baddr; \ 172 baddr = ((addr) / 0x200000 * 16); \ 173 w *= (readl((base) + 2) & (7 << baddr)) + 1; \
|
/arch/arm64/include/asm/ |
D | kvm_mmu.h | 275 u64 vmid_field, baddr; in kvm_get_vttbr() local 278 baddr = mmu->pgd_phys; in kvm_get_vttbr() 281 return kvm_phys_to_vttbr(baddr) | vmid_field | cnp; in kvm_get_vttbr()
|
/arch/powerpc/platforms/powernv/ |
D | opal-imc.c | 88 u64 *base_addr_arr, baddr; in imc_get_mem_addr_nest() local 119 baddr = base_addr_arr[i] + offset; in imc_get_mem_addr_nest() 120 pmu_ptr->mem_info[i].vbase = phys_to_virt(baddr); in imc_get_mem_addr_nest()
|
/arch/m68k/kernel/ |
D | traps.c | 381 fp->ptregs.format == 0xa ? fp->ptregs.pc + 2 : fp->un.fmtb.baddr - 2 in bus_error030() 383 fp->ptregs.format == 0xa ? fp->ptregs.pc + 4 : fp->un.fmtb.baddr); in bus_error030() 482 addr = fp->un.fmtb.baddr; in bus_error030() 512 fp->ptregs.format == 0xa ? fp->ptregs.pc + 2 : fp->un.fmtb.baddr - 2 in bus_error030() 514 fp->ptregs.format == 0xa ? fp->ptregs.pc + 4 : fp->un.fmtb.baddr); in bus_error030() 628 addr = fp->un.fmtb.baddr; in bus_error030() 908 fp->un.fmtb.baddr, fp->un.fmtb.dibuf, fp->un.fmtb.ver); in show_registers() 987 fp->ptregs.pc + 2 : fp->un.fmtb.baddr - 2); in bad_super_trap() 991 fp->ptregs.pc + 4 : fp->un.fmtb.baddr); in bad_super_trap()
|
/arch/m68k/include/asm/ |
D | dvma.h | 20 extern int dvma_map_iommu(unsigned long kaddr, unsigned long baddr, 31 extern void dvma_unmap(void *baddr);
|
D | traps.h | 259 unsigned long baddr; /* stage B address */ member
|
/arch/mips/pci/ |
D | pci-xtalk-bridge.c | 34 return bc->baddr + paddr; in phys_to_dma() 568 static int bridge_get_partnum(u64 baddr, char *partnum) in bridge_get_partnum() argument 576 snprintf(prefix, sizeof(prefix), "bridge-%012llx-0b-", baddr); in bridge_get_partnum() 663 bc->baddr = (u64)bd->masterwid << 60 | PCI64_ATTR_BAR; in bridge_probe()
|
/arch/mips/include/asm/pci/ |
D | bridge.h | 806 unsigned long baddr; member
|
/arch/mips/include/asm/octeon/ |
D | cvmx-npi-defs.h | 156 uint64_t baddr:61; member 160 uint64_t baddr:61; 169 uint64_t baddr:61; member 173 uint64_t baddr:61;
|