Home
last modified time | relevance | path

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

123

/Linux-v4.19/arch/m68k/sun3/
Dsun3dvma.c25 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 …]
Ddvma.c45 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/
Dcore_irongate.c320 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()
Dcore_marvel.c684 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 …]
Dcore_titan.c457 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/
Ddvma.c143 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/
Dsetup.c172 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/
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-v4.19/drivers/net/wireless/ath/ath10k/
Dce.h344 #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/
Dvideobuf-dma-contig.c124 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()
Dvideobuf-vmalloc.c112 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()
Dvideobuf-dma-sg.c423 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/
Drx.c353 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/
Ddabtree.c97 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/
Ddrm_vm.c133 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/
Dopal-imc.c106 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/
Dtraps.c386 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/
Dsym_hipd.h1144 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/
Ddvma.h20 extern int dvma_map_iommu(unsigned long kaddr, unsigned long baddr,
31 extern void dvma_unmap(void *baddr);
Dtraps.h259 unsigned long baddr; /* stage B address */ member
/Linux-v4.19/arch/mips/pci/
Dpci-ip27.c85 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/
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()
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/
Dgianfar.c306 u32 __iomem *baddr; in gfar_init_tx_rx_base() local
309 baddr = &regs->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 = &regs->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 = &regs->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/
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-v4.19/drivers/xen/
Dswiotlb-xen.c81 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()

123