/Linux-v4.19/arch/m68k/sun3/ |
D | sun3dvma.c | 25 extern void dvma_unmap_iommu(unsigned long baddr, int len); 38 #define dvma_index(baddr) ((baddr - DVMA_START) >> DVMA_PAGE_SHIFT) argument 40 #define dvma_entry_use(baddr) (iommu_use[dvma_index(baddr)]) argument 203 static inline int free_baddr(unsigned long baddr) in free_baddr() argument 211 orig_baddr = baddr; in free_baddr() 212 len = dvma_entry_use(baddr); in free_baddr() 213 dvma_entry_use(baddr) = 0; in free_baddr() 214 baddr &= DVMA_PAGE_MASK; in free_baddr() 215 dvma_unmap_iommu(baddr, len); in free_baddr() 225 if(hole->end == baddr) { in free_baddr() [all …]
|
D | dvma.c | 45 int dvma_map_iommu(unsigned long kaddr, unsigned long baddr, in dvma_map_iommu() argument 52 vaddr = dvma_btov(baddr); in dvma_map_iommu()
|
/Linux-v4.19/arch/alpha/kernel/ |
D | core_irongate.c | 320 unsigned long baddr, last; in irongate_ioremap() local 370 for(baddr = addr; baddr <= last; baddr += PAGE_SIZE) in irongate_ioremap() 372 cur_gatt = phys_to_virt(GET_GATT(baddr) & ~1); in irongate_ioremap() 373 pte = cur_gatt[GET_GATT_OFF(baddr)] & ~1; in irongate_ioremap() 385 for(baddr = addr, vaddr = (unsigned long)area->addr; in irongate_ioremap() 386 baddr <= last; in irongate_ioremap() 387 baddr += PAGE_SIZE, vaddr += PAGE_SIZE) in irongate_ioremap() 389 cur_gatt = phys_to_virt(GET_GATT(baddr) & ~1); in irongate_ioremap() 390 pte = cur_gatt[GET_GATT_OFF(baddr)] & ~1; in irongate_ioremap()
|
D | core_marvel.c | 684 unsigned long baddr, last; in marvel_ioremap() local 708 baddr = addr - hose->mem_space->start; in marvel_ioremap() 709 last = baddr + size - 1; in marvel_ioremap() 714 if ((baddr >= __direct_map_base) && in marvel_ioremap() 715 ((baddr + size - 1) < __direct_map_base + __direct_map_size)) { in marvel_ioremap() 716 addr = IDENT_ADDR | (baddr - __direct_map_base); in marvel_ioremap() 724 baddr >= (unsigned long)hose->sg_pci->dma_base && in marvel_ioremap() 730 baddr -= hose->sg_pci->dma_base; in marvel_ioremap() 732 baddr &= PAGE_MASK; in marvel_ioremap() 733 size = PAGE_ALIGN(last) - baddr; in marvel_ioremap() [all …]
|
D | core_titan.c | 457 unsigned long baddr = addr & ~TITAN_HOSE_MASK; in titan_ioremap() local 458 unsigned long last = baddr + size - 1; in titan_ioremap() 487 if ((baddr >= __direct_map_base) && in titan_ioremap() 488 ((baddr + size - 1) < __direct_map_base + __direct_map_size)) { in titan_ioremap() 497 baddr >= (unsigned long)hose->sg_pci->dma_base && in titan_ioremap() 503 baddr -= hose->sg_pci->dma_base; in titan_ioremap() 505 baddr &= PAGE_MASK; in titan_ioremap() 506 size = PAGE_ALIGN(last) - baddr; in titan_ioremap() 519 baddr <= last; in titan_ioremap() 520 baddr += PAGE_SIZE, vaddr += PAGE_SIZE) { in titan_ioremap() [all …]
|
/Linux-v4.19/arch/m68k/sun3x/ |
D | dvma.c | 143 inline int dvma_map_iommu(unsigned long kaddr, unsigned long baddr, in dvma_map_iommu() argument 148 index = baddr >> DVMA_PAGE_SHIFT; in dvma_map_iommu() 149 end = ((baddr+len) >> DVMA_PAGE_SHIFT); in dvma_map_iommu() 169 for(index = (baddr >> DVMA_PAGE_SHIFT); index < end; index++) in dvma_map_iommu() 176 void dvma_unmap_iommu(unsigned long baddr, int len) in dvma_unmap_iommu() argument 182 index = baddr >> DVMA_PAGE_SHIFT; in dvma_unmap_iommu() 183 end = (DVMA_PAGE_ALIGN(baddr+len) >> DVMA_PAGE_SHIFT); in dvma_unmap_iommu()
|
/Linux-v4.19/arch/h8300/kernel/ |
D | setup.c | 172 int baddr; \ 173 baddr = ((addr) / 0x200000 * 2); \ 174 w *= (readw((base) + 2) & (3 << baddr)) + 1; \ 179 int baddr; \ 180 baddr = ((addr) / 0x200000 * 16); \ 181 w *= (readl((base) + 2) & (7 << baddr)) + 1; \
|
/Linux-v4.19/drivers/net/hippi/ |
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-v4.19/drivers/net/wireless/ath/ath10k/ |
D | ce.h | 344 #define CE_SRC_RING_TO_DESC(baddr, idx) \ argument 345 (&(((struct ce_desc *)baddr)[idx])) 347 #define CE_DEST_RING_TO_DESC(baddr, idx) \ argument 348 (&(((struct ce_desc *)baddr)[idx])) 350 #define CE_SRC_RING_TO_DESC_64(baddr, idx) \ argument 351 (&(((struct ce_desc_64 *)baddr)[idx])) 353 #define CE_DEST_RING_TO_DESC_64(baddr, idx) \ argument 354 (&(((struct ce_desc_64 *)baddr)[idx]))
|
/Linux-v4.19/drivers/media/v4l2-core/ |
D | videobuf-dma-contig.c | 124 q->bufs[i]->baddr = 0; in videobuf_vm_close() 170 offset = vb->baddr & ~PAGE_MASK; in videobuf_dma_contig_user_get() 176 vma = find_vma(mm, vb->baddr); in videobuf_dma_contig_user_get() 180 if ((vb->baddr + mem->size) > vma->vm_end) in videobuf_dma_contig_user_get() 185 user_address = vb->baddr; in videobuf_dma_contig_user_get() 259 if (vb->baddr) in __videobuf_iolock() 295 buf->baddr = vma->vm_start; in __videobuf_mmap_mapper() 397 if (buf->baddr) { in videobuf_dma_contig_free()
|
D | videobuf-vmalloc.c | 112 q->bufs[i]->baddr = 0; in videobuf_vm_close() 183 if (vb->baddr) { in __videobuf_iolock() 205 if (!vb->baddr) in __videobuf_iolock() 212 rc = remap_vmalloc_range(mem->vma, (void *)vb->baddr, 0); in __videobuf_iolock() 250 buf->baddr = vma->vm_start; in __videobuf_mmap_mapper() 335 if ((buf->memory != V4L2_MEMORY_USERPTR) || buf->baddr) in videobuf_vmalloc_free()
|
D | videobuf-dma-sg.c | 423 q->bufs[i]->baddr = 0; in videobuf_vm_close() 521 if (0 == vb->baddr) { in __videobuf_iolock() 533 vb->baddr, vb->bsize); in __videobuf_iolock() 544 vb->baddr, vb->bsize); in __videobuf_iolock() 632 q->bufs[i]->baddr = vma->vm_start + size; in __videobuf_mmap_mapper()
|
/Linux-v4.19/drivers/scsi/aacraid/ |
D | rx.c | 353 dma_addr_t paddr, baddr; in aac_rx_check_health() local 358 buffer = dma_alloc_coherent(&dev->pdev->dev, 512, &baddr, in aac_rx_check_health() 367 dma_free_coherent(&dev->pdev->dev, 512, buffer, baddr); in aac_rx_check_health() 372 post->Post_Address = cpu_to_le32(baddr); in aac_rx_check_health() 374 rx_sync_cmd(dev, COMMAND_POST_RESULTS, baddr, 0, 0, 0, 0, 0, in aac_rx_check_health() 382 dma_free_coherent(&dev->pdev->dev, 512, buffer, baddr); in aac_rx_check_health()
|
/Linux-v4.19/fs/xfs/scrub/ |
D | dabtree.c | 97 void *baddr; in xchk_da_btree_entry() local 101 baddr = blk->bp->b_addr; in xchk_da_btree_entry() 105 ents = (char *)xfs_attr3_leaf_entryp(baddr); in xchk_da_btree_entry() 109 ents = (char *)ds->dargs.dp->d_ops->leaf_ents_p(baddr); in xchk_da_btree_entry() 113 ents = (char *)ds->dargs.dp->d_ops->leaf_ents_p(baddr); in xchk_da_btree_entry() 117 ents = (char *)ds->dargs.dp->d_ops->node_tree_p(baddr); in xchk_da_btree_entry()
|
/Linux-v4.19/drivers/gpu/drm/ |
D | drm_vm.c | 133 resource_size_t baddr = map->offset + offset; in drm_vm_fault() local 141 baddr -= dev->hose->mem_space->start; in drm_vm_fault() 148 if (agpmem->bound <= baddr && in drm_vm_fault() 149 agpmem->bound + agpmem->pages * PAGE_SIZE > baddr) in drm_vm_fault() 159 offset = (baddr - agpmem->bound) >> PAGE_SHIFT; in drm_vm_fault() 166 (unsigned long long)baddr, in drm_vm_fault()
|
/Linux-v4.19/arch/powerpc/platforms/powernv/ |
D | opal-imc.c | 106 u64 *base_addr_arr, baddr; in imc_get_mem_addr_nest() local 137 baddr = base_addr_arr[i] + offset; in imc_get_mem_addr_nest() 138 pmu_ptr->mem_info[i].vbase = phys_to_virt(baddr); in imc_get_mem_addr_nest()
|
/Linux-v4.19/arch/m68k/kernel/ |
D | traps.c | 386 fp->ptregs.format == 0xa ? fp->ptregs.pc + 2 : fp->un.fmtb.baddr - 2 in bus_error030() 388 fp->ptregs.format == 0xa ? fp->ptregs.pc + 4 : fp->un.fmtb.baddr); in bus_error030() 487 addr = fp->un.fmtb.baddr; in bus_error030() 517 fp->ptregs.format == 0xa ? fp->ptregs.pc + 2 : fp->un.fmtb.baddr - 2 in bus_error030() 519 fp->ptregs.format == 0xa ? fp->ptregs.pc + 4 : fp->un.fmtb.baddr); in bus_error030() 632 addr = fp->un.fmtb.baddr; in bus_error030() 913 fp->un.fmtb.baddr, fp->un.fmtb.dibuf, fp->un.fmtb.ver); in show_registers() 993 fp->ptregs.pc + 2 : fp->un.fmtb.baddr - 2); in bad_super_trap() 997 fp->ptregs.pc + 4 : fp->un.fmtb.baddr); in bad_super_trap()
|
/Linux-v4.19/drivers/scsi/sym53c8xx_2/ |
D | sym_hipd.h | 1144 dma_addr_t baddr; /* Bus physical address */ member 1209 dma_addr_t baddr = 0; in sym_m_get_dma_mem_cluster() local 1211 vaddr = dma_alloc_coherent(mp->dev_dmat, SYM_MEM_CLUSTER_SIZE, &baddr, in sym_m_get_dma_mem_cluster() 1215 vbp->baddr = baddr; in sym_m_get_dma_mem_cluster() 1223 vbp->baddr); in sym_m_free_dma_mem_cluster()
|
/Linux-v4.19/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
|
/Linux-v4.19/arch/mips/pci/ |
D | pci-ip27.c | 85 bc->baddr = (u64)masterwid << 60 | PCI64_ATTR_BAR; in bridge_probe() 191 return bc->baddr + paddr; in __phys_to_dma()
|
/Linux-v4.19/drivers/infiniband/hw/qedr/ |
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() 514 &packet->header.baddr, in qedr_gsi_build_packet() 531 packet->payload[i].baddr = swr->sg_list[i].addr; in qedr_gsi_build_packet()
|
/Linux-v4.19/drivers/net/ethernet/freescale/ |
D | gianfar.c | 306 u32 __iomem *baddr; in gfar_init_tx_rx_base() local 309 baddr = ®s->tbase0; in gfar_init_tx_rx_base() 311 gfar_write(baddr, priv->tx_queue[i]->tx_bd_dma_base); in gfar_init_tx_rx_base() 312 baddr += 2; in gfar_init_tx_rx_base() 315 baddr = ®s->rbase0; in gfar_init_tx_rx_base() 317 gfar_write(baddr, priv->rx_queue[i]->rx_bd_dma_base); in gfar_init_tx_rx_base() 318 baddr += 2; in gfar_init_tx_rx_base() 325 u32 __iomem *baddr; in gfar_init_rqprm() local 328 baddr = ®s->rqprm0; in gfar_init_rqprm() 330 gfar_write(baddr, priv->rx_queue[i]->rx_ring_size | in gfar_init_rqprm() [all …]
|
/Linux-v4.19/drivers/net/ethernet/alteon/ |
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-v4.19/drivers/xen/ |
D | swiotlb-xen.c | 81 static inline phys_addr_t xen_bus_to_phys(dma_addr_t baddr) in xen_bus_to_phys() argument 83 unsigned long xen_pfn = bfn_to_pfn(XEN_PFN_DOWN(baddr)); in xen_bus_to_phys() 87 paddr |= baddr & ~XEN_PAGE_MASK; in xen_bus_to_phys()
|