Home
last modified time | relevance | path

Searched refs:baddr (Results 1 – 25 of 40) sorted by relevance

12

/linux/arch/m68k/sun3/
H A Dsun3dvma.c25 #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 Ddvma.c44 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 Dcore_irongate.c316 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 Dcore_marvel.c687 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 Dcore_titan.c458 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 Ddvma.c146 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 Drrunner.h502 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, &regs->RxRingHi); in set_rxaddr()
518 writel(baddr >> 32, &regs->RxRingLo); in set_rxaddr()
520 writel(baddr >> 32, &regs->RxRingHi); in set_rxaddr()
521 writel(baddr & 0xffffffff, &regs->RxRingLo); in set_rxaddr()
524 writel(baddr, &regs->RxRingLo); in set_rxaddr()
532 unsigned long baddr = addr; in set_infoaddr() local
[all …]
/linux/drivers/net/wireless/ath/ath10k/
H A Dce.h347 #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 Ddvma.h20 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 Dtraps.h259 unsigned long baddr; /* stage B address */ member
/linux/drivers/xen/
H A Dswiotlb-xen.c50 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 Drx.c348 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 Dopal-imc.c87 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 Dkvm_mmu.h304 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 Dsym_hipd.h1131 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 Dat.c20 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 Dqedr_roce_cm.c85 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 Dzl38060.c157 __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 Dgianfar.c128 u32 __iomem *baddr; in gfar_init_tx_rx_base() local
131 baddr = &regs->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 = &regs->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 = &regs->rqprm0; in gfar_init_rqprm()
152 gfar_write(baddr, priv->rx_queue[i]->rx_ring_size | in gfar_init_rqprm()
[all …]
H A Dgianfar.h1258 u32 __iomem *baddr = &regs->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 Dacenic.h714 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 Dj1939.rst358 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 Dpci-xtalk-bridge.c34 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 Drio_mport_cdev.c899 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 Dqed_rdma_if.h553 dma_addr_t baddr; member
558 dma_addr_t baddr; member

12