Home
last modified time | relevance | path

Searched refs:phys_addr (Results 1 – 25 of 66) sorted by relevance

123

/linux-4.19.296/lib/
Dioremap.c62 unsigned long end, phys_addr_t phys_addr, pgprot_t prot) in ioremap_pte_range() argument
67 pfn = phys_addr >> PAGE_SHIFT; in ioremap_pte_range()
80 unsigned long end, phys_addr_t phys_addr, pgprot_t prot) in ioremap_pmd_range() argument
85 phys_addr -= addr; in ioremap_pmd_range()
94 IS_ALIGNED(phys_addr + addr, PMD_SIZE) && in ioremap_pmd_range()
96 if (pmd_set_huge(pmd, phys_addr + addr, prot)) in ioremap_pmd_range()
100 if (ioremap_pte_range(pmd, addr, next, phys_addr + addr, prot)) in ioremap_pmd_range()
107 unsigned long end, phys_addr_t phys_addr, pgprot_t prot) in ioremap_pud_range() argument
112 phys_addr -= addr; in ioremap_pud_range()
121 IS_ALIGNED(phys_addr + addr, PUD_SIZE) && in ioremap_pud_range()
[all …]
/linux-4.19.296/include/uapi/linux/
Dcec-funcs.h14 static inline void cec_msg_active_source(struct cec_msg *msg, __u16 phys_addr) in cec_msg_active_source() argument
19 msg->msg[2] = phys_addr >> 8; in cec_msg_active_source()
20 msg->msg[3] = phys_addr & 0xff; in cec_msg_active_source()
24 __u16 *phys_addr) in cec_ops_active_source() argument
26 *phys_addr = (msg->msg[2] << 8) | msg->msg[3]; in cec_ops_active_source()
44 __u16 phys_addr) in cec_msg_inactive_source() argument
48 msg->msg[2] = phys_addr >> 8; in cec_msg_inactive_source()
49 msg->msg[3] = phys_addr & 0xff; in cec_msg_inactive_source()
53 __u16 *phys_addr) in cec_ops_inactive_source() argument
55 *phys_addr = (msg->msg[2] << 8) | msg->msg[3]; in cec_ops_inactive_source()
[all …]
Dvbox_vmmdev_types.h166 __u32 phys_addr; member
189 __u64 phys_addr; member
/linux-4.19.296/include/asm-generic/
Dearly_ioremap.h11 extern void __iomem *early_ioremap(resource_size_t phys_addr,
13 extern void *early_memremap(resource_size_t phys_addr,
15 extern void *early_memremap_ro(resource_size_t phys_addr,
17 extern void *early_memremap_prot(resource_size_t phys_addr,
/linux-4.19.296/drivers/misc/sgi-xp/
Dxp_uv.c90 xp_expand_memprotect_uv(unsigned long phys_addr, unsigned long size) in xp_expand_memprotect_uv() argument
95 ret = uv_bios_change_memprotect(phys_addr, size, UV_MEMPROT_ALLOW_RW); in xp_expand_memprotect_uv()
105 ret = sn_change_memprotect(phys_addr, size, SN_MEMPROT_ACCESS_CLASS_1, in xp_expand_memprotect_uv()
119 xp_restrict_memprotect_uv(unsigned long phys_addr, unsigned long size) in xp_restrict_memprotect_uv() argument
124 ret = uv_bios_change_memprotect(phys_addr, size, in xp_restrict_memprotect_uv()
135 ret = sn_change_memprotect(phys_addr, size, SN_MEMPROT_ACCESS_CLASS_0, in xp_restrict_memprotect_uv()
Dxp_sn2.c133 xp_expand_memprotect_sn2(unsigned long phys_addr, unsigned long size) in xp_expand_memprotect_sn2() argument
138 ret = sn_change_memprotect(phys_addr, size, SN_MEMPROT_ACCESS_CLASS_1, in xp_expand_memprotect_sn2()
149 xp_restrict_memprotect_sn2(unsigned long phys_addr, unsigned long size) in xp_restrict_memprotect_sn2() argument
154 ret = sn_change_memprotect(phys_addr, size, SN_MEMPROT_ACCESS_CLASS_0, in xp_restrict_memprotect_sn2()
Dxp_main.c57 enum xp_retval (*xp_expand_memprotect) (unsigned long phys_addr,
60 enum xp_retval (*xp_restrict_memprotect) (unsigned long phys_addr,
/linux-4.19.296/include/linux/
Dio-mapping.h78 resource_size_t phys_addr; in io_mapping_map_atomic_wc() local
82 phys_addr = mapping->base + offset; in io_mapping_map_atomic_wc()
83 pfn = (unsigned long) (phys_addr >> PAGE_SHIFT); in io_mapping_map_atomic_wc()
98 resource_size_t phys_addr; in io_mapping_map_wc() local
101 phys_addr = mapping->base + offset; in io_mapping_map_wc()
103 return ioremap_wc(phys_addr, size); in io_mapping_map_wc()
Dpci-epc.h121 #define pci_epc_mem_init(epc, phys_addr, size) \ argument
122 __pci_epc_mem_init((epc), (phys_addr), (size), PAGE_SIZE)
152 phys_addr_t phys_addr,
155 phys_addr_t phys_addr);
167 int __pci_epc_mem_init(struct pci_epc *epc, phys_addr_t phys_addr, size_t size,
171 phys_addr_t *phys_addr, size_t size);
172 void pci_epc_mem_free_addr(struct pci_epc *epc, phys_addr_t phys_addr,
Dsfi.h128 u64 phys_addr; /* phy base addr for APIC reg */ member
138 u64 phys_addr; /* pointer to where the wake vector locates */ member
142 u64 phys_addr; /* phy base addr for the timer */ member
148 u64 phys_addr; /* phy base addr for the RTC */ member
Dof_platform.h39 resource_size_t phys_addr; member
46 { .compatible = _compat, .phys_addr = _phys, .name = _name, \
Ddma-mapping.h111 dma_addr_t (*map_resource)(struct device *dev, phys_addr_t phys_addr,
318 phys_addr_t phys_addr, in dma_map_resource() argument
329 BUG_ON(pfn_valid(PHYS_PFN(phys_addr))); in dma_map_resource()
331 addr = phys_addr; in dma_map_resource()
333 addr = ops->map_resource(dev, phys_addr, size, dir, attrs); in dma_map_resource()
335 debug_dma_map_resource(dev, phys_addr, size, dir, addr); in dma_map_resource()
729 int dma_declare_coherent_memory(struct device *dev, phys_addr_t phys_addr,
736 dma_declare_coherent_memory(struct device *dev, phys_addr_t phys_addr, in dma_declare_coherent_memory() argument
788 phys_addr_t phys_addr,
794 phys_addr_t phys_addr, dma_addr_t device_addr, in dmam_declare_coherent_memory() argument
Dio.h37 phys_addr_t phys_addr, pgprot_t prot);
40 phys_addr_t phys_addr, pgprot_t prot) in ioremap_page_range() argument
/linux-4.19.296/drivers/pci/endpoint/
Dpci-epc-mem.c123 phys_addr_t *phys_addr, size_t size) in pci_epc_mem_alloc_addr() argument
139 *phys_addr = mem->phys_base + (pageno << page_shift); in pci_epc_mem_alloc_addr()
140 virt_addr = ioremap(*phys_addr, size); in pci_epc_mem_alloc_addr()
159 void pci_epc_mem_free_addr(struct pci_epc *epc, phys_addr_t phys_addr, in pci_epc_mem_free_addr() argument
168 pageno = (phys_addr - mem->phys_base) >> page_shift; in pci_epc_mem_free_addr()
Dpci-epf-core.c99 epf->bar[bar].phys_addr); in pci_epf_free_space()
101 epf->bar[bar].phys_addr = 0; in pci_epf_free_space()
119 dma_addr_t phys_addr; in pci_epf_alloc_space() local
125 space = dma_alloc_coherent(dev, size, &phys_addr, GFP_KERNEL); in pci_epf_alloc_space()
131 epf->bar[bar].phys_addr = phys_addr; in pci_epf_alloc_space()
Dpci-epc-core.c287 phys_addr_t phys_addr) in pci_epc_unmap_addr() argument
298 epc->ops->unmap_addr(epc, func_no, phys_addr); in pci_epc_unmap_addr()
314 phys_addr_t phys_addr, u64 pci_addr, size_t size) in pci_epc_map_addr() argument
326 ret = epc->ops->map_addr(epc, func_no, phys_addr, pci_addr, size); in pci_epc_map_addr()
/linux-4.19.296/drivers/media/v4l2-core/
Dv4l2-dv-timings.c1005 void v4l2_set_edid_phys_addr(u8 *edid, unsigned int size, u16 phys_addr) in v4l2_set_edid_phys_addr() argument
1013 edid[loc] = phys_addr >> 8; in v4l2_set_edid_phys_addr()
1014 edid[loc + 1] = phys_addr & 0xff; in v4l2_set_edid_phys_addr()
1043 u16 v4l2_phys_addr_for_input(u16 phys_addr, u8 input) in v4l2_phys_addr_for_input() argument
1049 if (phys_addr == 0) in v4l2_phys_addr_for_input()
1052 if ((phys_addr & 0x0fff) == 0) in v4l2_phys_addr_for_input()
1053 return phys_addr | (input << 8); in v4l2_phys_addr_for_input()
1055 if ((phys_addr & 0x00ff) == 0) in v4l2_phys_addr_for_input()
1056 return phys_addr | (input << 4); in v4l2_phys_addr_for_input()
1058 if ((phys_addr & 0x000f) == 0) in v4l2_phys_addr_for_input()
[all …]
/linux-4.19.296/drivers/misc/mic/scif/
Dscif_mmap.c268 (*pages)->phys_addr = scif_zalloc(nr_pages * sizeof(dma_addr_t)); in scif_get_pages()
269 if (!((*pages)->phys_addr)) { in scif_get_pages()
288 (*pages)->phys_addr[i] = in scif_get_pages()
291 (*pages)->phys_addr[i] = scif_get_phys((*pages)->phys_addr[i], in scif_get_pages()
296 (*pages)->phys_addr[i] - in scif_get_pages()
305 scif_free((*pages)->phys_addr, in scif_get_pages()
365 scif_free(pages->phys_addr, pages->nr_pages * sizeof(dma_addr_t)); in scif_put_pages()
390 dma_addr_t phys_addr; in scif_rma_list_mmap() local
403 phys_addr = scif_off_to_dma_addr(window, loop_offset, in scif_rma_list_mmap()
406 phys_addr = scif_get_phys(phys_addr, ep); in scif_rma_list_mmap()
[all …]
/linux-4.19.296/include/media/
Dv4l2-dv-timings.h239 void v4l2_set_edid_phys_addr(u8 *edid, unsigned int size, u16 phys_addr);
240 u16 v4l2_phys_addr_for_input(u16 phys_addr, u8 input);
241 int v4l2_phys_addr_validate(u16 phys_addr, u16 *parent, u16 *port);
Dcec.h172 u16 phys_addr; member
219 return adap->phys_addr == 0; in cec_is_sink()
248 void cec_s_phys_addr(struct cec_adapter *adap, u16 phys_addr,
352 static inline void cec_s_phys_addr(struct cec_adapter *adap, u16 phys_addr, in cec_s_phys_addr() argument
/linux-4.19.296/drivers/misc/
Dpci_endpoint_test.c438 dma_addr_t phys_addr; in pci_endpoint_test_write() local
465 phys_addr = PTR_ALIGN(orig_phys_addr, alignment); in pci_endpoint_test_write()
466 offset = phys_addr - orig_phys_addr; in pci_endpoint_test_write()
469 phys_addr = orig_phys_addr; in pci_endpoint_test_write()
480 lower_32_bits(phys_addr)); in pci_endpoint_test_write()
482 upper_32_bits(phys_addr)); in pci_endpoint_test_write()
507 dma_addr_t phys_addr; in pci_endpoint_test_read() local
534 phys_addr = PTR_ALIGN(orig_phys_addr, alignment); in pci_endpoint_test_read()
535 offset = phys_addr - orig_phys_addr; in pci_endpoint_test_read()
538 phys_addr = orig_phys_addr; in pci_endpoint_test_read()
[all …]
/linux-4.19.296/drivers/pci/endpoint/functions/
Dpci-epf-test.c149 phys_addr_t phys_addr; in pci_epf_test_read() local
156 src_addr = pci_epc_mem_alloc_addr(epc, &phys_addr, reg->size); in pci_epf_test_read()
164 ret = pci_epc_map_addr(epc, epf->func_no, phys_addr, reg->src_addr, in pci_epf_test_read()
187 pci_epc_unmap_addr(epc, epf->func_no, phys_addr); in pci_epf_test_read()
190 pci_epc_mem_free_addr(epc, phys_addr, src_addr, reg->size); in pci_epf_test_read()
201 phys_addr_t phys_addr; in pci_epf_test_write() local
208 dst_addr = pci_epc_mem_alloc_addr(epc, &phys_addr, reg->size); in pci_epf_test_write()
216 ret = pci_epc_map_addr(epc, epf->func_no, phys_addr, reg->dst_addr, in pci_epf_test_write()
244 pci_epc_unmap_addr(epc, epf->func_no, phys_addr); in pci_epf_test_write()
247 pci_epc_mem_free_addr(epc, phys_addr, dst_addr, reg->size); in pci_epf_test_write()
/linux-4.19.296/include/media/i2c/
Dadv7511.h23 uint16_t phys_addr; member
/linux-4.19.296/fs/pstore/
Dram.c91 phys_addr_t phys_addr; member
584 if (*paddr + mem_sz - cxt->phys_addr > cxt->size) { in ramoops_init_przs()
588 cxt->size, (unsigned long long)cxt->phys_addr); in ramoops_init_przs()
638 if (*paddr + sz - cxt->phys_addr > cxt->size) { in ramoops_init_prz()
641 cxt->size, (unsigned long long)cxt->phys_addr); in ramoops_init_prz()
778 cxt->phys_addr = pdata->mem_address; in ramoops_probe()
788 paddr = cxt->phys_addr; in ramoops_probe()
870 cxt->size, (unsigned long long)cxt->phys_addr, in ramoops_probe()
/linux-4.19.296/virt/kvm/arm/
Dmmio.c123 trace_kvm_mmio(KVM_TRACE_MMIO_READ, len, run->mmio.phys_addr, in kvm_handle_mmio_return()
213 run->mmio.phys_addr = fault_ipa; in io_mem_abort()

123