Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/arch/m68k/sun3/
Dsun3dvma.c24 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 …]
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()
/kernel/linux/linux-5.10/arch/alpha/kernel/
Dcore_irongate.c317 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()
Dcore_marvel.c689 unsigned long baddr, last; in marvel_ioremap() local
713 baddr = addr - hose->mem_space->start; in marvel_ioremap()
714 last = baddr + size - 1; in marvel_ioremap()
719 if ((baddr >= __direct_map_base) && in marvel_ioremap()
720 ((baddr + size - 1) < __direct_map_base + __direct_map_size)) { in marvel_ioremap()
721 addr = IDENT_ADDR | (baddr - __direct_map_base); in marvel_ioremap()
729 baddr >= (unsigned long)hose->sg_pci->dma_base && in marvel_ioremap()
735 baddr -= hose->sg_pci->dma_base; in marvel_ioremap()
737 baddr &= PAGE_MASK; in marvel_ioremap()
738 size = PAGE_ALIGN(last) - baddr; in marvel_ioremap()
[all …]
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 …]
/kernel/linux/linux-5.10/arch/m68k/sun3x/
Ddvma.c146 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()
/kernel/linux/linux-5.10/arch/h8300/kernel/
Dsetup.c169 int baddr; \
170 baddr = ((addr) / 0x200000 * 2); \
171 w *= (readw((base) + 2) & (3 << baddr)) + 1; \
176 int baddr; \
177 baddr = ((addr) / 0x200000 * 16); \
178 w *= (readl((base) + 2) & (7 << baddr)) + 1; \
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath10k/
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]))
/kernel/linux/linux-5.10/drivers/media/v4l2-core/
Dvideobuf-dma-contig.c121 q->bufs[i]->baddr = 0; in videobuf_vm_close()
160 unsigned long untagged_baddr = untagged_addr(vb->baddr); in videobuf_dma_contig_user_get()
257 if (vb->baddr) in __videobuf_iolock()
292 buf->baddr = vma->vm_start; in __videobuf_mmap_mapper()
393 if (buf->baddr) { in videobuf_dma_contig_free()
Dvideobuf-vmalloc.c109 q->bufs[i]->baddr = 0; in videobuf_vm_close()
180 if (vb->baddr) { in __videobuf_iolock()
227 buf->baddr = vma->vm_start; in __videobuf_mmap_mapper()
312 if ((buf->memory != V4L2_MEMORY_USERPTR) || buf->baddr) in videobuf_vmalloc_free()
Dvideobuf-dma-sg.c420 q->bufs[i]->baddr = 0; in videobuf_vm_close()
520 if (0 == vb->baddr) { in __videobuf_iolock()
532 vb->baddr, vb->bsize); in __videobuf_iolock()
543 vb->baddr, vb->bsize); in __videobuf_iolock()
631 q->bufs[i]->baddr = vma->vm_start + size; in __videobuf_mmap_mapper()
/kernel/linux/linux-5.10/arch/arm64/include/asm/
Dkvm_mmu.h263 u64 vmid_field, baddr; in kvm_get_vttbr() local
266 baddr = mmu->pgd_phys; in kvm_get_vttbr()
268 return kvm_phys_to_vttbr(baddr) | vmid_field | cnp; in kvm_get_vttbr()
/kernel/linux/linux-5.10/drivers/xen/
Dswiotlb-xen.c58 phys_addr_t baddr = (phys_addr_t)bfn << XEN_PAGE_SHIFT; in xen_phys_to_bus() local
60 baddr |= paddr & ~XEN_PAGE_MASK; in xen_phys_to_bus()
61 return baddr; in xen_phys_to_bus()
70 phys_addr_t baddr) in xen_bus_to_phys() argument
72 unsigned long xen_pfn = bfn_to_pfn(XEN_PFN_DOWN(baddr)); in xen_bus_to_phys()
74 (baddr & ~XEN_PAGE_MASK); in xen_bus_to_phys()
/kernel/linux/linux-5.10/drivers/scsi/aacraid/
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()
/kernel/linux/linux-5.10/drivers/gpu/drm/
Ddrm_vm.c145 resource_size_t baddr = map->offset + offset; in drm_vm_fault() local
153 baddr -= dev->hose->mem_space->start; in drm_vm_fault()
160 if (agpmem->bound <= baddr && in drm_vm_fault()
161 agpmem->bound + agpmem->pages * PAGE_SIZE > baddr) in drm_vm_fault()
171 offset = (baddr - agpmem->bound) >> PAGE_SHIFT; in drm_vm_fault()
178 (unsigned long long)baddr, in drm_vm_fault()
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/
Dopal-imc.c88 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()
/kernel/linux/linux-5.10/arch/m68k/kernel/
Dtraps.c385 fp->ptregs.format == 0xa ? fp->ptregs.pc + 2 : fp->un.fmtb.baddr - 2 in bus_error030()
387 fp->ptregs.format == 0xa ? fp->ptregs.pc + 4 : fp->un.fmtb.baddr); in bus_error030()
486 addr = fp->un.fmtb.baddr; in bus_error030()
516 fp->ptregs.format == 0xa ? fp->ptregs.pc + 2 : fp->un.fmtb.baddr - 2 in bus_error030()
518 fp->ptregs.format == 0xa ? fp->ptregs.pc + 4 : fp->un.fmtb.baddr); in bus_error030()
631 addr = fp->un.fmtb.baddr; in bus_error030()
911 fp->un.fmtb.baddr, fp->un.fmtb.dibuf, fp->un.fmtb.ver); in show_registers()
990 fp->ptregs.pc + 2 : fp->un.fmtb.baddr - 2); in bad_super_trap()
994 fp->ptregs.pc + 4 : fp->un.fmtb.baddr); in bad_super_trap()
/kernel/linux/linux-5.10/drivers/scsi/sym53c8xx_2/
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()
/kernel/linux/linux-5.10/arch/m68k/include/asm/
Ddvma.h20 extern int dvma_map_iommu(unsigned long kaddr, unsigned long baddr,
31 extern void dvma_unmap(void *baddr);
/kernel/linux/linux-5.10/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()
517 &packet->header.baddr, in qedr_gsi_build_packet()
534 packet->payload[i].baddr = swr->sg_list[i].addr; in qedr_gsi_build_packet()
/kernel/linux/linux-5.10/sound/soc/codecs/
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()
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/
Dgianfar.c129 u32 __iomem *baddr; in gfar_init_tx_rx_base() local
132 baddr = &regs->tbase0; in gfar_init_tx_rx_base()
134 gfar_write(baddr, priv->tx_queue[i]->tx_bd_dma_base); in gfar_init_tx_rx_base()
135 baddr += 2; in gfar_init_tx_rx_base()
138 baddr = &regs->rbase0; in gfar_init_tx_rx_base()
140 gfar_write(baddr, priv->rx_queue[i]->rx_bd_dma_base); in gfar_init_tx_rx_base()
141 baddr += 2; in gfar_init_tx_rx_base()
148 u32 __iomem *baddr; in gfar_init_rqprm() local
151 baddr = &regs->rqprm0; in gfar_init_rqprm()
153 gfar_write(baddr, priv->rx_queue[i]->rx_ring_size | in gfar_init_rqprm()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/alteon/
Dacenic.h715 u64 baddr = (u64) addr; in set_aceaddr() local
716 aa->addrlo = baddr & 0xffffffff; in set_aceaddr()
717 aa->addrhi = baddr >> 32; in set_aceaddr()
/kernel/linux/linux-5.10/Documentation/networking/
Dj1939.rst320 struct sockaddr_can baddr = {
330 bind(sock, (struct sockaddr *)&baddr, sizeof(baddr));
394 struct sockaddr_can baddr = {
404 bind(sock, (struct sockaddr *)&baddr, sizeof(baddr));

123