Home
last modified time | relevance | path

Searched refs:phys (Results 1 – 25 of 963) sorted by relevance

12345678910>>...39

/linux/sound/core/
H A Dpcm_misc.c21 unsigned char phys; /* physical bit width */ member
34 .width = 8, .phys = 8, .le = -1, .signd = 1,
38 .width = 8, .phys = 8, .le = -1, .signd = 0,
42 .width = 16, .phys = 16, .le = 1, .signd = 1,
46 .width = 16, .phys = 16, .le = 0, .signd = 1,
50 .width = 16, .phys = 16, .le = 1, .signd = 0,
54 .width = 16, .phys = 16, .le = 0, .signd = 0,
58 .width = 24, .phys = 32, .le = 1, .signd = 1,
62 .width = 24, .phys = 32, .le = 0, .signd = 1,
66 .width = 24, .phys
[all...]
/linux/fs/bfs/
H A Dfile.c68 unsigned long phys; in bfs_get_block() local
74 phys = bi->i_sblock + block; in bfs_get_block()
76 if (phys <= bi->i_eblock) { in bfs_get_block()
78 create, (unsigned long)block, phys); in bfs_get_block()
79 map_bh(bh_result, sb, phys); in bfs_get_block()
88 if (bi->i_sblock && (phys <= bi->i_eblock)) { in bfs_get_block()
90 create, (unsigned long)block, phys); in bfs_get_block()
91 map_bh(bh_result, sb, phys); in bfs_get_block()
96 if (phys >= info->si_blocks) in bfs_get_block()
109 create, (unsigned long)block, phys); in bfs_get_block()
[all …]
/linux/arch/xtensa/mm/
H A Dcache.c142 unsigned long phys = folio_pfn(folio) * PAGE_SIZE; in flush_dcache_folio() local
145 unsigned long alias = !(DCACHE_ALIAS_EQ(temp, phys)); in flush_dcache_folio()
160 virt = TLBTEMP_BASE_1 + (phys & DCACHE_ALIAS_MASK); in flush_dcache_folio()
161 __flush_invalidate_dcache_page_alias(virt, phys); in flush_dcache_folio()
166 __flush_invalidate_dcache_page_alias(virt, phys); in flush_dcache_folio()
169 __invalidate_icache_page_alias(virt, phys); in flush_dcache_folio()
170 phys += PAGE_SIZE; in flush_dcache_folio()
204 unsigned long phys = page_to_phys(pfn_to_page(pfn)); in local_flush_cache_page() local
208 __flush_invalidate_dcache_page_alias(virt, phys); in local_flush_cache_page()
209 __invalidate_icache_page_alias(virt, phys); in local_flush_cache_page()
[all …]
/linux/arch/arm64/boot/dts/microchip/
H A Dsparx5_pcb135_board.dtsi367 phys = <&serdes 13>;
374 phys = <&serdes 13>;
381 phys = <&serdes 13>;
388 phys = <&serdes 13>;
395 phys = <&serdes 14>;
402 phys = <&serdes 14>;
409 phys = <&serdes 14>;
416 phys = <&serdes 14>;
423 phys = <&serdes 15>;
430 phys = <&serdes 15>;
[all …]
/linux/arch/arm64/kvm/hyp/nvhe/
H A Dmm.c37 unsigned long phys, enum kvm_pgtable_prot prot) in __pkvm_create_mappings()
42 err = kvm_pgtable_hyp_map(&pkvm_pgtable, start, size, phys, prot); in __pkvm_create_mappings()
94 int __pkvm_create_private_mapping(phys_addr_t phys, size_t size, in __pkvm_create_private_mapping()
101 size = PAGE_ALIGN(size + offset_in_page(phys)); in __pkvm_create_private_mapping()
106 err = __pkvm_create_mappings(addr, size, phys, prot); in __pkvm_create_private_mapping()
110 *haddr = addr + offset_in_page(phys); in __pkvm_create_private_mapping()
119 phys_addr_t phys; in pkvm_create_mappings_locked()
129 phys = hyp_virt_to_phys((void *)virt_addr); in pkvm_create_mappings_locked()
131 phys, prot); in pkvm_create_mappings_locked()
213 phys_addr_t phys; in hyp_map_vectors()
36 __pkvm_create_mappings(unsigned long start,unsigned long size,unsigned long phys,enum kvm_pgtable_prot prot) __pkvm_create_mappings() argument
93 __pkvm_create_private_mapping(phys_addr_t phys,size_t size,enum kvm_pgtable_prot prot,unsigned long * haddr) __pkvm_create_private_mapping() argument
118 phys_addr_t phys; pkvm_create_mappings_locked() local
212 phys_addr_t phys; hyp_map_vectors() local
232 fixmap_map_slot(struct hyp_fixmap_slot * slot,phys_addr_t phys) fixmap_map_slot() argument
245 hyp_fixmap_map(phys_addr_t phys) hyp_fixmap_map() argument
330 phys_addr_t phys; create_fixblock() local
364 hyp_fixblock_map(phys_addr_t phys,size_t * size) hyp_fixblock_map() argument
434 pkvm_create_stack(phys_addr_t phys,unsigned long * haddr) pkvm_create_stack() argument
[all...]
/linux/drivers/virt/coco/pkvm-guest/
H A Darm-pkvm-guest.c22 static int arm_smccc_do_one_page(u32 func_id, phys_addr_t phys) in arm_smccc_do_one_page() argument
24 phys_addr_t end = phys + PAGE_SIZE; in arm_smccc_do_one_page()
26 while (phys < end) { in arm_smccc_do_one_page()
29 arm_smccc_1_1_invoke(func_id, phys, 0, 0, &res); in arm_smccc_do_one_page()
33 phys += pkvm_granule; in arm_smccc_do_one_page()
73 static int mmio_guard_ioremap_hook(phys_addr_t phys, size_t size, in mmio_guard_ioremap_hook() argument
86 end = PAGE_ALIGN(phys + size); in mmio_guard_ioremap_hook()
87 phys = PAGE_ALIGN_DOWN(phys); in mmio_guard_ioremap_hook()
89 while (phys < end) { in mmio_guard_ioremap_hook()
92 WARN_ON_ONCE(arm_smccc_do_one_page(func_id, phys)); in mmio_guard_ioremap_hook()
[all …]
/linux/drivers/firmware/tegra/
H A Divc.c77 static inline void tegra_ivc_invalidate(struct tegra_ivc *ivc, dma_addr_t phys) in tegra_ivc_invalidate() argument
82 dma_sync_single_for_cpu(ivc->peer, phys, TEGRA_IVC_ALIGN, in tegra_ivc_invalidate()
86 static inline void tegra_ivc_flush(struct tegra_ivc *ivc, dma_addr_t phys) in tegra_ivc_flush() argument
91 dma_sync_single_for_device(ivc->peer, phys, TEGRA_IVC_ALIGN, in tegra_ivc_flush()
198 tegra_ivc_invalidate(ivc, ivc->rx.phys + offset); in tegra_ivc_check_read()
218 tegra_ivc_invalidate(ivc, ivc->tx.phys + offset); in tegra_ivc_check_write()
240 dma_addr_t phys, in tegra_ivc_frame_phys() argument
247 return phys + offset; in tegra_ivc_frame_phys()
251 dma_addr_t phys, in tegra_ivc_invalidate_frame() argument
259 phys = tegra_ivc_frame_phys(ivc, phys, frame) + offset; in tegra_ivc_invalidate_frame()
[all …]
/linux/arch/m68k/mm/
H A Dsun3kmap.c27 static inline void do_page_mapin(unsigned long phys, unsigned long virt, in do_page_mapin() argument
33 ptep = pfn_pte(phys >> PAGE_SHIFT, PAGE_KERNEL); in do_page_mapin()
46 static inline void do_pmeg_mapin(unsigned long phys, unsigned long virt, in do_pmeg_mapin() argument
54 do_page_mapin(phys, virt, type); in do_pmeg_mapin()
55 phys += PAGE_SIZE; in do_pmeg_mapin()
61 void __iomem *sun3_ioremap(unsigned long phys, unsigned long size, in sun3_ioremap() argument
72 offset = phys & (PAGE_SIZE-1); in sun3_ioremap()
73 phys &= ~(PAGE_SIZE-1); in sun3_ioremap()
96 do_pmeg_mapin(phys, virt, type, seg_pages); in sun3_ioremap()
99 phys += seg_pages * PAGE_SIZE; in sun3_ioremap()
[all …]
/linux/arch/powerpc/mm/nohash/
H A De500.c59 phys_addr_t phys; member
71 return tlbcam_addrs[b].phys + (va - tlbcam_addrs[b].start); in v_block_mapped()
82 if (pa >= tlbcam_addrs[b].phys in p_block_mapped()
84 +tlbcam_addrs[b].phys) in p_block_mapped()
85 return tlbcam_addrs[b].start+(pa-tlbcam_addrs[b].phys); in p_block_mapped()
97 static void settlbcam(int index, unsigned long virt, phys_addr_t phys, in settlbcam() argument
119 TLBCAM[index].MAS3 = (phys & MAS3_RPN) | MAS3_SR; in settlbcam()
122 TLBCAM[index].MAS7 = (u64)phys >> 32; in settlbcam()
135 tlbcam_addrs[index].phys = phys; in settlbcam()
139 phys_addr_t phys) in calc_cam_sz() argument
[all …]
/linux/drivers/gpu/drm/msm/disp/dpu1/
H A Ddpu_encoder.c320 struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i]; in dpu_encoder_get_crc_values_cnt() local
322 if (phys->hw_intf && phys->hw_intf->ops.setup_misr in dpu_encoder_get_crc_values_cnt()
323 && phys->hw_intf->ops.collect_misr) in dpu_encoder_get_crc_values_cnt()
343 struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i]; in dpu_encoder_setup_misr() local
345 if (!phys->hw_intf || !phys->hw_intf->ops.setup_misr) in dpu_encoder_setup_misr()
348 phys->hw_intf->ops.setup_misr(phys->hw_intf); in dpu_encoder_setup_misr()
373 struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i]; in dpu_encoder_get_crc() local
375 if (!phys->hw_intf || !phys->hw_intf->ops.collect_misr) in dpu_encoder_get_crc()
378 rc = phys->hw_intf->ops.collect_misr(phys->hw_intf, &crcs[pos + entries_added]); in dpu_encoder_get_crc()
539 struct dpu_encoder_phys *phys = dpu_enc ? dpu_enc->cur_master : NULL; in dpu_encoder_get_vsync_count() local
[all …]
/linux/drivers/mtd/maps/
H A Duclinux.c55 size_t *retlen, void **virt, resource_size_t *phys) in uclinux_point() argument
59 if (phys) in uclinux_point()
60 *phys = map->phys + from; in uclinux_point()
75 mapp->phys = (resource_size_t)__bss_stop; in uclinux_mtd_init()
77 mapp->phys = physaddr; in uclinux_mtd_init()
80 mapp->size = PAGE_ALIGN(ntohl(*((unsigned long *)(mapp->phys + 8)))); in uclinux_mtd_init()
84 (int) mapp->phys, (int) mapp->size); in uclinux_mtd_init()
92 mapp->virt = phys_to_virt(mapp->phys); in uclinux_mtd_init()
H A Dsolutionengine.c39 soleng_flash_map.phys = 0; in init_soleng_maps()
41 soleng_eprom_map.phys = 0x01000000; in init_soleng_maps()
51 soleng_flash_map.phys = 0x01000000; in init_soleng_maps()
53 soleng_eprom_map.phys = 0; in init_soleng_maps()
63 &soleng_flash_map.phys, in init_soleng_maps()
64 &soleng_eprom_map.phys); in init_soleng_maps()
H A Dsa1100-flash.c64 release_mem_region(subdev->map.phys, subdev->map.size); in sa1100_destroy_subdev()
69 unsigned long phys; in sa1100_probe_subdev() local
73 phys = res->start; in sa1100_probe_subdev()
74 size = res->end - phys + 1; in sa1100_probe_subdev()
80 switch (phys) { in sa1100_probe_subdev()
83 "0x%08lx, assuming CS0\n", phys); in sa1100_probe_subdev()
94 if (!request_mem_region(phys, size, subdev->name)) { in sa1100_probe_subdev()
102 subdev->map.phys = phys; in sa1100_probe_subdev()
104 subdev->map.virt = ioremap(phys, size); in sa1100_probe_subdev()
123 phys, (unsigned)(subdev->mtd->size >> 20), in sa1100_probe_subdev()
/linux/drivers/net/thunderbolt/
H A Dtrace.h26 TP_PROTO(unsigned int index, const void *page, dma_addr_t phys,
28 TP_ARGS(index, page, phys, dir),
32 __field(dma_addr_t, phys)
38 __entry->phys = phys;
42 __entry->index, __entry->page, &__entry->phys,
47 TP_PROTO(unsigned int index, const void *page, dma_addr_t phys,
49 TP_ARGS(index, page, phys, dir)
53 TP_PROTO(unsigned int index, const void *page, dma_addr_t phys,
55 TP_ARGS(index, page, phys, dir)
59 TP_PROTO(unsigned int index, const void *page, dma_addr_t phys,
[all …]
/linux/drivers/xen/
H A Dswiotlb-xen.c148 phys_addr_t phys; in xen_swiotlb_alloc_coherent() local
157 phys = virt_to_phys(ret); in xen_swiotlb_alloc_coherent()
159 *dma_handle = xen_phys_to_dma(dev, phys); in xen_swiotlb_alloc_coherent()
161 range_straddles_page_boundary(phys, size) || in xen_swiotlb_alloc_coherent()
162 range_requires_alignment(phys, size)) { in xen_swiotlb_alloc_coherent()
163 if (xen_create_contiguous_region(phys, order, fls64(dma_mask), in xen_swiotlb_alloc_coherent()
181 phys_addr_t phys = virt_to_phys(vaddr); in xen_swiotlb_free_coherent() local
188 WARN_ON_ONCE(range_straddles_page_boundary(phys, size) || in xen_swiotlb_free_coherent()
189 range_requires_alignment(phys, size))) in xen_swiotlb_free_coherent()
193 xen_destroy_contiguous_region(phys, order); in xen_swiotlb_free_coherent()
[all …]
/linux/arch/x86/events/intel/
H A Dbts.c149 struct bts_phys *phys = &bb->buf[bb->cur_buf]; in bts_config_buffer() local
150 unsigned long index, thresh = 0, end = phys->size; in bts_config_buffer()
151 struct page *page = phys->page; in bts_config_buffer()
156 if (bb->end < phys->offset + buf_size(page)) in bts_config_buffer()
157 end = bb->end - phys->offset - phys->displacement; in bts_config_buffer()
159 index -= phys->offset + phys->displacement; in bts_config_buffer()
169 ds->bts_buffer_base = (u64)(long)page_address(page) + phys->displacement; in bts_config_buffer()
177 static void bts_buffer_pad_out(struct bts_phys *phys, unsigned long head) in bts_buffer_pad_out() argument
179 unsigned long index = head - phys->offset; in bts_buffer_pad_out()
181 memset(page_address(phys->page) + index, 0, phys->size - index); in bts_buffer_pad_out()
[all …]
/linux/drivers/net/ethernet/qlogic/qed/
H A Dqed_chain.c72 dma_addr_t phys, phys_next; in qed_chain_free_next_ptr() local
78 phys = chain->p_phys_addr; in qed_chain_free_next_ptr()
88 dma_free_coherent(dev, chain->page_size, virt, phys); in qed_chain_free_next_ptr()
91 phys = phys_next; in qed_chain_free_next_ptr()
203 dma_addr_t phys; in qed_chain_alloc_next_ptr() local
207 virt = dma_alloc_coherent(dev, chain->page_size, &phys, in qed_chain_alloc_next_ptr()
213 qed_chain_init_mem(chain, virt, phys); in qed_chain_alloc_next_ptr()
217 phys); in qed_chain_alloc_next_ptr()
235 dma_addr_t phys; in qed_chain_alloc_single() local
239 &phys, GFP_KERNEL); in qed_chain_alloc_single()
[all …]
/linux/arch/powerpc/mm/kasan/
H A Dbook3s_32.c15 phys_addr_t phys; in kasan_init_region() local
26 phys = memblock_phys_alloc_range(k_size, k_size, 0, in kasan_init_region()
28 if (!phys) in kasan_init_region()
31 setbat(idx, k_nobat, phys, k_size, PAGE_KERNEL); in kasan_init_region()
38 phys = memblock_phys_alloc_range(k_end - k_nobat, PAGE_SIZE, 0, in kasan_init_region()
40 if (!phys) in kasan_init_region()
52 pte_t pte = pfn_pte(PHYS_PFN(phys + k_cur - k_nobat), PAGE_KERNEL); in kasan_init_region()
/linux/drivers/scsi/lpfc/
H A Dlpfc_mem.c129 GFP_KERNEL, &pool->elements[i].phys); in lpfc_mem_alloc()
202 pool->elements[i].phys); in lpfc_mem_alloc()
274 pool->elements[i].phys); in lpfc_mem_free()
347 phba->cgn_i->virt, phba->cgn_i->phys); in lpfc_mem_free_all()
397 *handle = pool->elements[pool->current_count].phys; in lpfc_mbuf_alloc()
424 pool->elements[pool->current_count].phys = dma; in __lpfc_mbuf_free()
517 &hbqbp->dbuf.phys); in lpfc_els_hbq_alloc()
541 dma_pool_free(phba->lpfc_hbq_pool, hbqbp->dbuf.virt, hbqbp->dbuf.phys); in lpfc_els_hbq_free()
569 &dma_buf->hbuf.phys); in lpfc_sli4_rb_alloc()
575 &dma_buf->dbuf.phys); in lpfc_sli4_rb_alloc()
[all …]
/linux/arch/riscv/kernel/
H A Dacpi.c211 void __init __iomem *__acpi_map_table(unsigned long phys, unsigned long size) in __acpi_map_table() argument
216 return early_memremap(phys, size); in __acpi_map_table()
227 void __iomem *acpi_os_ioremap(acpi_physical_address phys, acpi_size size) in acpi_os_ioremap() argument
238 if (phys < md->phys_addr || phys >= end) in acpi_os_ioremap()
241 if (phys + size > end) { in acpi_os_ioremap()
264 if (memblock_is_map_memory(phys) || in acpi_os_ioremap()
265 !memblock_is_region_memory(phys, size)) { in acpi_os_ioremap()
298 if (memblock_is_map_memory(phys)) in acpi_os_ioremap()
299 return (void __iomem *)__va(phys); in acpi_os_ioremap()
311 return ioremap_prot(phys, size, prot); in acpi_os_ioremap()
/linux/arch/arm64/kernel/
H A Dacpi.c94 void __init __iomem *__acpi_map_table(unsigned long phys, unsigned long size) in __acpi_map_table() argument
99 return early_memremap(phys, size); in __acpi_map_table()
295 void __iomem *acpi_os_ioremap(acpi_physical_address phys, acpi_size size) in acpi_os_ioremap() argument
306 if (phys < md->phys_addr || phys >= end) in acpi_os_ioremap()
309 if (phys + size > end) { in acpi_os_ioremap()
332 if (memblock_is_map_memory(phys) || in acpi_os_ioremap()
333 !memblock_is_region_memory(phys, size)) { in acpi_os_ioremap()
334 pr_warn(FW_BUG "requested region covers kernel memory @ %pa\n", &phys); in acpi_os_ioremap()
367 if (memblock_is_map_memory(phys)) in acpi_os_ioremap()
368 return (void __iomem *)__phys_to_virt(phys); in acpi_os_ioremap()
[all …]
/linux/drivers/scsi/sym53c8xx_2/
H A Dsym_fw2.h305 offsetof (struct sym_ccb, phys.head.status),
455 offsetof (struct sym_ccb, phys.head.lastp),
514 offsetof (struct sym_ccb, phys.head.lastp),
546 offsetof (struct sym_ccb, phys.head.lastp),
562 offsetof (struct sym_ccb, phys.head.lastp),
654 offsetof (struct sym_ccb, phys.head.status),
664 offsetof (struct sym_ccb, phys.head.status),
740 offsetof (struct sym_ccb, phys.head.lastp),
742 offsetof (struct sym_ccb, phys.head.savep),
762 offsetof (struct sym_ccb, phys.head.savep),
[all …]
/linux/drivers/bus/
H A Dmips_cdmm.c265 phys_addr_t phys; member
384 if (bus->phys == mips_cdmm_cur_base()) in mips_cdmm_setup()
391 } else if (bus->phys > 1) { in mips_cdmm_setup()
396 if (!bus->phys) in mips_cdmm_setup()
397 bus->phys = mips_cdmm_cur_base(); in mips_cdmm_setup()
399 if (!bus->phys) in mips_cdmm_setup()
400 bus->phys = mips_cdmm_phys_base(); in mips_cdmm_setup()
402 if (!bus->phys) in mips_cdmm_setup()
403 bus->phys = mips_cdmm_default_base; in mips_cdmm_setup()
405 if (!bus->phys) { in mips_cdmm_setup()
[all …]
/linux/drivers/dax/
H A Dfsdev.c54 phys_addr_t phys; in __fsdev_dax_direct_access() local
56 phys = dax_pgoff_to_phys(dev_dax, pgoff, size); in __fsdev_dax_direct_access()
57 if (phys == -1) { in __fsdev_dax_direct_access()
64 *kaddr = __va(phys); in __fsdev_dax_direct_access()
67 *pfn = PHYS_PFN(phys); in __fsdev_dax_direct_access()
155 phys_addr_t phys = PFN_PHYS(pfn); in fsdev_pfn_to_offset() local
161 if (phys >= range->start && phys <= range->end) in fsdev_pfn_to_offset()
162 return offset + (phys - range->start); in fsdev_pfn_to_offset()
343 u64 phys = dev_dax->ranges[0].range.start; in fsdev_dax_probe() local
346 if (pgmap_phys > phys) { in fsdev_dax_probe()
[all …]
/linux/arch/sh/include/asm/
H A Dmmu.h62 int pmb_bolt_mapping(unsigned long virt, phys_addr_t phys,
64 void __iomem *pmb_remap_caller(phys_addr_t phys, unsigned long size,
71 pmb_bolt_mapping(unsigned long virt, phys_addr_t phys, in pmb_bolt_mapping() argument
78 pmb_remap_caller(phys_addr_t phys, unsigned long size, in pmb_remap_caller() argument
100 pmb_remap(phys_addr_t phys, unsigned long size, pgprot_t prot) in pmb_remap() argument
102 return pmb_remap_caller(phys, size, prot, __builtin_return_address(0)); in pmb_remap()

12345678910>>...39