/linux/arch/m68k/sun3/ |
H A D | sun3dvma.c | 25 #define dvma_index(baddr) ((baddr - DVMA_START) >> DVMA_PAGE_SHIFT) argument 27 #define dvma_entry_use(baddr) (iommu_use[dvma_index(baddr)]) argument 190 static inline int free_baddr(unsigned long baddr) in free_baddr() argument 197 len = dvma_entry_use(baddr); in free_baddr() 198 dvma_entry_use(baddr) = 0; in free_baddr() 199 baddr &= DVMA_PAGE_MASK; in free_baddr() 200 dvma_unmap_iommu(baddr, len); in free_baddr() 210 if(hole->end == baddr) { in free_baddr() 214 } else if(hole->start == (baddr + len)) { in free_baddr() 215 hole->start = baddr; in free_baddr() [all …]
|
H A 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()
|
/linux/arch/alpha/kernel/ |
H A D | core_irongate.c | 316 unsigned long baddr, last; in irongate_ioremap() local 366 for(baddr = addr; baddr <= last; baddr += PAGE_SIZE) in irongate_ioremap() 368 cur_gatt = phys_to_virt(GET_GATT(baddr) & ~1); in irongate_ioremap() 369 pte = cur_gatt[GET_GATT_OFF(baddr)] & ~1; in irongate_ioremap() 381 for(baddr = addr, vaddr = (unsigned long)area->addr; in irongate_ioremap() 382 baddr <= last; in irongate_ioremap() 383 baddr += PAGE_SIZE, vaddr += PAGE_SIZE) in irongate_ioremap() 385 cur_gatt = phys_to_virt(GET_GATT(baddr) & ~1); in irongate_ioremap() 386 pte = cur_gatt[GET_GATT_OFF(baddr)] & ~1; in irongate_ioremap()
|
H A 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 …]
|
H A 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 …]
|
/linux/arch/m68k/sun3x/ |
H A D | dvma.c | 146 int dvma_map_iommu(unsigned long kaddr, unsigned long baddr, int len) in dvma_map_iommu() argument 150 index = baddr >> DVMA_PAGE_SHIFT; in dvma_map_iommu() 151 end = ((baddr+len) >> DVMA_PAGE_SHIFT); in dvma_map_iommu() 171 for(index = (baddr >> DVMA_PAGE_SHIFT); index < end; index++) in dvma_map_iommu() 178 void dvma_unmap_iommu(unsigned long baddr, int len) in dvma_unmap_iommu() argument 184 index = baddr >> DVMA_PAGE_SHIFT; in dvma_unmap_iommu() 185 end = (DVMA_PAGE_ALIGN(baddr+len) >> DVMA_PAGE_SHIFT); in dvma_unmap_iommu()
|
/linux/drivers/net/hippi/ |
H A D | rrunner.h | 502 unsigned long baddr = addr; in set_rraddr() local 504 ra->addrlo = baddr; in set_rraddr() 507 ra->addrlo = baddr; in set_rraddr() 515 unsigned long baddr = addr; in set_rxaddr() local 517 writel(baddr & 0xffffffff, ®s->RxRingHi); in set_rxaddr() 518 writel(baddr >> 32, ®s->RxRingLo); in set_rxaddr() 520 writel(baddr >> 32, ®s->RxRingHi); in set_rxaddr() 521 writel(baddr & 0xffffffff, ®s->RxRingLo); in set_rxaddr() 524 writel(baddr, ®s->RxRingLo); in set_rxaddr() 532 unsigned long baddr = addr; in set_infoaddr() local [all …]
|
/linux/drivers/net/wireless/ath/ath10k/ |
H A D | ce.h | 347 #define CE_SRC_RING_TO_DESC(baddr, idx) \ argument 348 (&(((struct ce_desc *)baddr)[idx])) 350 #define CE_DEST_RING_TO_DESC(baddr, idx) \ argument 351 (&(((struct ce_desc *)baddr)[idx])) 353 #define CE_SRC_RING_TO_DESC_64(baddr, idx) \ argument 354 (&(((struct ce_desc_64 *)baddr)[idx])) 356 #define CE_DEST_RING_TO_DESC_64(baddr, idx) \ argument 357 (&(((struct ce_desc_64 *)baddr)[idx]))
|
/linux/arch/m68k/include/asm/ |
H A D | dvma.h | 20 extern int dvma_map_iommu(unsigned long kaddr, unsigned long baddr, 31 extern void dvma_unmap(void *baddr); 69 static inline void dvma_unmap_iommu(unsigned long baddr, int len) { } in dvma_unmap_iommu() argument 89 void dvma_unmap_iommu(unsigned long baddr, int len);
|
H A D | traps.h | 259 unsigned long baddr; /* stage B address */ member
|
/linux/drivers/xen/ |
H A D | swiotlb-xen.c | 50 phys_addr_t baddr = (phys_addr_t)bfn << XEN_PAGE_SHIFT; in xen_phys_to_bus() local 52 baddr |= paddr & ~XEN_PAGE_MASK; in xen_phys_to_bus() 53 return baddr; in xen_phys_to_bus() 62 phys_addr_t baddr) in xen_bus_to_phys() argument 64 unsigned long xen_pfn = bfn_to_pfn(XEN_PFN_DOWN(baddr)); in xen_bus_to_phys() 66 (baddr & ~XEN_PAGE_MASK); in xen_bus_to_phys()
|
/linux/drivers/scsi/aacraid/ |
H A D | rx.c | 348 dma_addr_t paddr, baddr; in aac_rx_check_health() local 353 buffer = dma_alloc_coherent(&dev->pdev->dev, 512, &baddr, in aac_rx_check_health() 362 dma_free_coherent(&dev->pdev->dev, 512, buffer, baddr); in aac_rx_check_health() 367 post->Post_Address = cpu_to_le32(baddr); in aac_rx_check_health() 369 rx_sync_cmd(dev, COMMAND_POST_RESULTS, baddr, 0, 0, 0, 0, 0, in aac_rx_check_health() 377 dma_free_coherent(&dev->pdev->dev, 512, buffer, baddr); in aac_rx_check_health()
|
/linux/arch/powerpc/platforms/powernv/ |
H A D | opal-imc.c | 87 u64 *base_addr_arr, baddr; in imc_get_mem_addr_nest() local 118 baddr = base_addr_arr[i] + offset; in imc_get_mem_addr_nest() 119 pmu_ptr->mem_info[i].vbase = phys_to_virt(baddr); in imc_get_mem_addr_nest()
|
/linux/arch/arm64/include/asm/ |
H A D | kvm_mmu.h | 304 u64 vmid_field, baddr; in kvm_get_vttbr() local 307 baddr = mmu->pgd_phys; in kvm_get_vttbr() 310 return kvm_phys_to_vttbr(baddr) | vmid_field | cnp; in kvm_get_vttbr()
|
/linux/drivers/scsi/sym53c8xx_2/ |
H A D | sym_hipd.h | 1131 dma_addr_t baddr; /* Bus physical address */ member 1196 dma_addr_t baddr = 0; in sym_m_get_dma_mem_cluster() local 1198 vaddr = dma_alloc_coherent(mp->dev_dmat, SYM_MEM_CLUSTER_SIZE, &baddr, in sym_m_get_dma_mem_cluster() 1202 vbp->baddr = baddr; in sym_m_get_dma_mem_cluster() 1210 vbp->baddr); in sym_m_free_dma_mem_cluster()
|
/linux/arch/arm64/kvm/ |
H A D | at.c | 20 u64 baddr; member 337 wi->baddr = ttbr & TTBRx_EL1_BADDR; in setup_s1_walk() 340 if (check_output_size(wi->baddr, wi)) in setup_s1_walk() 343 wi->baddr &= GENMASK_ULL(wi->max_oa_bits - 1, x); in setup_s1_walk() 359 u64 va_top, va_bottom, baddr, desc; in walk_s1() local 364 baddr = wi->baddr; in walk_s1() 374 ipa = baddr | index; in walk_s1() 428 baddr = desc & GENMASK_ULL(47, wi->pgshift); in walk_s1() 431 if (check_output_size(baddr, wi)) in walk_s1()
|
/linux/drivers/infiniband/hw/qedr/ |
H A D | qedr_roce_cm.c | 85 pkt->header.baddr); in qedr_ll2_complete_tx_packet() 200 ll2_tx_pkt.first_frag = pkt->header.baddr; in qedr_ll2_post_tx() 211 pkt->header.vaddr, pkt->header.baddr); in qedr_ll2_post_tx() 223 pkt->payload[i].baddr, in qedr_ll2_post_tx() 515 &packet->header.baddr, in qedr_gsi_build_packet() 532 packet->payload[i].baddr = swr->sg_list[i].addr; in qedr_gsi_build_packet()
|
/linux/sound/soc/codecs/ |
H A D | zl38060.c | 157 __be32 baddr = cpu_to_be32(addr); in zl38_fw_send_xaddr() local 159 return regmap_raw_write(regmap, REG_FWR_EXEC, &baddr, sizeof(baddr)); in zl38_fw_send_xaddr()
|
/linux/drivers/net/ethernet/freescale/ |
H A D | gianfar.c | 128 u32 __iomem *baddr; in gfar_init_tx_rx_base() local 131 baddr = ®s->tbase0; in gfar_init_tx_rx_base() 133 gfar_write(baddr, priv->tx_queue[i]->tx_bd_dma_base); in gfar_init_tx_rx_base() 134 baddr += 2; in gfar_init_tx_rx_base() 137 baddr = ®s->rbase0; in gfar_init_tx_rx_base() 139 gfar_write(baddr, priv->rx_queue[i]->rx_bd_dma_base); in gfar_init_tx_rx_base() 140 baddr += 2; in gfar_init_tx_rx_base() 147 u32 __iomem *baddr; in gfar_init_rqprm() local 150 baddr = ®s->rqprm0; in gfar_init_rqprm() 152 gfar_write(baddr, priv->rx_queue[i]->rx_ring_size | in gfar_init_rqprm() [all …]
|
H A D | gianfar.h | 1258 u32 __iomem *baddr = ®s->isrg0; in gfar_write_isrg() local 1273 gfar_write(baddr, isrg); in gfar_write_isrg() 1275 baddr++; in gfar_write_isrg()
|
/linux/drivers/net/ethernet/alteon/ |
H A D | acenic.h | 714 u64 baddr = (u64) addr; in set_aceaddr() local 715 aa->addrlo = baddr & 0xffffffff; in set_aceaddr() 716 aa->addrhi = baddr >> 32; in set_aceaddr()
|
/linux/Documentation/networking/ |
H A D | j1939.rst | 358 struct sockaddr_can baddr = { 368 bind(sock, (struct sockaddr *)&baddr, sizeof(baddr)); 432 struct sockaddr_can baddr = { 442 bind(sock, (struct sockaddr *)&baddr, sizeof(baddr));
|
/linux/arch/mips/pci/ |
H A 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()
|
/linux/drivers/rapidio/devices/ |
H A D | rio_mport_cdev.c | 899 dma_addr_t baddr; in rio_dma_transfer() local 902 baddr = (dma_addr_t)xfer->handle; in rio_dma_transfer() 906 if (baddr >= map->phys_addr && in rio_dma_transfer() 907 baddr < (map->phys_addr + map->size)) { in rio_dma_transfer() 932 req->map->virt_addr + (baddr - req->map->phys_addr) + in rio_dma_transfer() 2203 dma_addr_t baddr; in mport_cdev_mmap() local 2212 baddr = ((dma_addr_t)vma->vm_pgoff << PAGE_SHIFT); in mport_cdev_mmap() 2216 if (baddr >= map->phys_addr && in mport_cdev_mmap() 2217 baddr < (map->phys_addr + map->size)) { in mport_cdev_mmap() 2227 offset = baddr - map->phys_addr; in mport_cdev_mmap()
|
/linux/include/linux/qed/ |
H A D | qed_rdma_if.h | 553 dma_addr_t baddr; member 558 dma_addr_t baddr; member
|