Home
last modified time | relevance | path

Searched refs:addr_align (Results 1 – 14 of 14) sorted by relevance

/linux-6.6.21/drivers/dax/
Ddevice.c314 unsigned long off, off_end, off_align, len_align, addr_align, align; in dax_get_unmapped_area() local
332 addr_align = current->mm->get_unmapped_area(filp, addr, len_align, in dax_get_unmapped_area()
334 if (!IS_ERR_VALUE(addr_align)) { in dax_get_unmapped_area()
335 addr_align += (off - addr_align) & (align - 1); in dax_get_unmapped_area()
336 return addr_align; in dax_get_unmapped_area()
/linux-6.6.21/drivers/ntb/
Dmsi.c100 resource_size_t addr_align, size_align, size_max; in ntb_msi_setup_mws() local
119 ret = ntb_mw_get_align(ntb, peer, peer_widx, &addr_align, in ntb_msi_setup_mws()
124 addr &= ~(addr_align - 1); in ntb_msi_setup_mws()
/linux-6.6.21/drivers/ntb/hw/intel/
Dntb_hw_gen4.c525 resource_size_t *addr_align, in intel_ntb4_mw_get_align() argument
550 if (addr_align) { in intel_ntb4_mw_get_align()
552 *addr_align = pci_resource_len(ndev->ntb.pdev, bar); in intel_ntb4_mw_get_align()
554 *addr_align = PAGE_SIZE; in intel_ntb4_mw_get_align()
Dntb_hw_gen1.h161 resource_size_t *addr_align, resource_size_t *size_align,
Dntb_hw_gen1.c805 resource_size_t *addr_align, in intel_ntb_mw_get_align() argument
830 if (addr_align) in intel_ntb_mw_get_align()
831 *addr_align = pci_resource_len(ndev->ntb.pdev, bar); in intel_ntb_mw_get_align()
/linux-6.6.21/drivers/ntb/test/
Dntb_tool.c572 resource_size_t size, addr_align, size_align; in tool_setup_mw() local
580 ret = ntb_mw_get_align(tc->ntb, pidx, widx, &addr_align, in tool_setup_mw()
586 inmw->size = round_up(inmw->size, addr_align); in tool_setup_mw()
593 if (!IS_ALIGNED(inmw->dma_base, addr_align)) { in tool_setup_mw()
641 resource_size_t addr_align; in tool_mw_trans_read() local
655 &addr_align, &size_align, &size_max); in tool_mw_trans_read()
681 &addr_align); in tool_mw_trans_read()
/linux-6.6.21/drivers/ntb/hw/idt/
Dntb_hw_idt.c1093 mws[*mw_cnt].addr_align = IDT_TRANS_ALIGN; in idt_scan_mws()
1195 resource_size_t *addr_align, in idt_ntb_mw_get_align() argument
1210 if (addr_align != NULL) in idt_ntb_mw_get_align()
1211 *addr_align = peer->mws[widx].addr_align; in idt_ntb_mw_get_align()
1305 if (!IS_ALIGNED(addr, mw_cfg->addr_align)) in idt_ntb_peer_mw_set_trans()
2415 "Address align 0x%08llx, ", ndev->mws[idx].addr_align); in idt_dbgfs_info_read()
2446 ndev->peers[pidx].mws[idx].addr_align); in idt_dbgfs_info_read()
Dntb_hw_idt.h1071 u64 addr_align; member
/linux-6.6.21/drivers/ntb/hw/epf/
Dntb_hw_epf.c164 resource_size_t *addr_align, in ntb_epf_mw_get_align() argument
181 if (addr_align) in ntb_epf_mw_get_align()
182 *addr_align = SZ_4K; in ntb_epf_mw_get_align()
/linux-6.6.21/include/linux/
Dntb.h274 resource_size_t *addr_align,
824 resource_size_t *addr_align, in ntb_mw_get_align() argument
831 return ntb->ops->mw_get_align(ntb, pidx, widx, addr_align, size_align, in ntb_mw_get_align()
/linux-6.6.21/drivers/pci/controller/
Dpcie-mediatek-gen3.c252 resource_size_t addr_align; in mtk_pcie_set_trans_table() local
262 addr_align = BIT(ffs(cpu_addr) - 1); in mtk_pcie_set_trans_table()
263 table_size = min(table_size, addr_align); in mtk_pcie_set_trans_table()
/linux-6.6.21/drivers/pci/endpoint/functions/
Dpci-epf-vntb.c1194 resource_size_t *addr_align, in vntb_epf_mw_get_align() argument
1200 if (addr_align) in vntb_epf_mw_get_align()
1201 *addr_align = SZ_4K; in vntb_epf_mw_get_align()
/linux-6.6.21/drivers/ntb/hw/amd/
Dntb_hw_amd.c93 resource_size_t *addr_align, in amd_ntb_mw_get_align() argument
107 if (addr_align) in amd_ntb_mw_get_align()
108 *addr_align = SZ_4K; in amd_ntb_mw_get_align()
/linux-6.6.21/drivers/ntb/hw/mscc/
Dntb_hw_switchtec.c192 int widx, resource_size_t *addr_align, in switchtec_ntb_mw_get_align() argument
209 if (addr_align) in switchtec_ntb_mw_get_align()
210 *addr_align = lut ? size : SZ_4K; in switchtec_ntb_mw_get_align()