Home
last modified time | relevance | path

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

12345678910>>...49

/Linux-v5.4/sound/core/
Dpcm_misc.c36 unsigned char phys; /* physical bit width */ member
47 .width = 8, .phys = 8, .le = -1, .signd = 1,
51 .width = 8, .phys = 8, .le = -1, .signd = 0,
55 .width = 16, .phys = 16, .le = 1, .signd = 1,
59 .width = 16, .phys = 16, .le = 0, .signd = 1,
63 .width = 16, .phys = 16, .le = 1, .signd = 0,
67 .width = 16, .phys = 16, .le = 0, .signd = 0,
71 .width = 24, .phys = 32, .le = 1, .signd = 1,
75 .width = 24, .phys = 32, .le = 0, .signd = 1,
79 .width = 24, .phys = 32, .le = 1, .signd = 0,
[all …]
/Linux-v5.4/include/asm-generic/
Dfixmap.h64 #define set_fixmap(idx, phys) \ argument
65 __set_fixmap(idx, phys, FIXMAP_PAGE_NORMAL)
74 #define __set_fixmap_offset(idx, phys, flags) \ argument
77 __set_fixmap(idx, phys, flags); \
78 ________addr = fix_to_virt(idx) + ((phys) & (PAGE_SIZE - 1)); \
82 #define set_fixmap_offset(idx, phys) \ argument
83 __set_fixmap_offset(idx, phys, FIXMAP_PAGE_NORMAL)
88 #define set_fixmap_nocache(idx, phys) \ argument
89 __set_fixmap(idx, phys, FIXMAP_PAGE_NOCACHE)
91 #define set_fixmap_offset_nocache(idx, phys) \ argument
[all …]
/Linux-v5.4/drivers/mtd/maps/
Dichxrom.c38 unsigned long phys; member
83 window->phys = 0; in ichxrom_cleanup()
113 window->phys = 0; in ichxrom_init_one()
116 window->phys = 0xffc00000; in ichxrom_init_one()
119 window->phys = 0xff400000; in ichxrom_init_one()
122 window->phys = 0xff500000; in ichxrom_init_one()
125 window->phys = 0xff600000; in ichxrom_init_one()
128 window->phys = 0xff700000; in ichxrom_init_one()
132 window->phys = 0xffc80000; in ichxrom_init_one()
135 window->phys = 0xffd00000; in ichxrom_init_one()
[all …]
Desb2rom.c99 unsigned long phys; member
142 window->phys = 0; in esb2rom_cleanup()
187 window->phys = 0; in esb2rom_init_one()
192 window->phys = 0xff400000; in esb2rom_init_one()
194 window->phys = 0xff500000; in esb2rom_init_one()
196 window->phys = 0xff600000; in esb2rom_init_one()
198 window->phys = 0xFF700000; in esb2rom_init_one()
200 window->phys = 0xffc00000; in esb2rom_init_one()
202 window->phys = 0xffc80000; in esb2rom_init_one()
204 window->phys = 0xffd00000; in esb2rom_init_one()
[all …]
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()
Damd76xrom.c33 unsigned long phys; member
97 window->phys = 0; in amd76xrom_cleanup()
129 window->phys = 0xffb00000; /* 5MiB */ in amd76xrom_init_one()
132 window->phys = 0xffc00000; /* 4MiB */ in amd76xrom_init_one()
135 window->phys = 0xffff0000; /* 64KiB */ in amd76xrom_init_one()
137 window->size = 0xffffffffUL - window->phys + 1UL; in amd76xrom_init_one()
147 window->rsrc.start = window->phys; in amd76xrom_init_one()
148 window->rsrc.end = window->phys + window->size - 1; in amd76xrom_init_one()
166 window->virt = ioremap_nocache(window->phys, window->size); in amd76xrom_init_one()
169 window->phys, window->size); in amd76xrom_init_one()
[all …]
Dck804xrom.c37 unsigned long phys; member
109 window->phys = 0; in ck804xrom_cleanup()
145 window->phys = 0xffb00000; /* 5MiB */ in ck804xrom_init_one()
147 window->phys = 0xffc00000; /* 4MiB */ in ck804xrom_init_one()
149 window->phys = 0xffff0000; /* 64KiB */ in ck804xrom_init_one()
162 window->phys = 0xff000000; /* 16MiB, hardcoded for now */ in ck804xrom_init_one()
166 window->size = 0xffffffffUL - window->phys + 1UL; in ck804xrom_init_one()
176 window->rsrc.start = window->phys; in ck804xrom_init_one()
177 window->rsrc.end = window->phys + window->size - 1; in ck804xrom_init_one()
194 window->virt = ioremap_nocache(window->phys, window->size); in ck804xrom_init_one()
[all …]
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()
/Linux-v5.4/fs/bfs/
Dfile.c67 unsigned long phys; in bfs_get_block() local
73 phys = bi->i_sblock + block; in bfs_get_block()
75 if (phys <= bi->i_eblock) { in bfs_get_block()
77 create, (unsigned long)block, phys); in bfs_get_block()
78 map_bh(bh_result, sb, phys); in bfs_get_block()
87 if (bi->i_sblock && (phys <= bi->i_eblock)) { in bfs_get_block()
89 create, (unsigned long)block, phys); in bfs_get_block()
90 map_bh(bh_result, sb, phys); in bfs_get_block()
95 if (phys >= info->si_blocks) in bfs_get_block()
108 create, (unsigned long)block, phys); in bfs_get_block()
[all …]
/Linux-v5.4/arch/xtensa/mm/
Dcache.c145 unsigned long phys = page_to_phys(page); in flush_dcache_page() local
147 unsigned long alias = !(DCACHE_ALIAS_EQ(temp, phys)); in flush_dcache_page()
160 virt = TLBTEMP_BASE_1 + (phys & DCACHE_ALIAS_MASK); in flush_dcache_page()
161 __flush_invalidate_dcache_page_alias(virt, phys); in flush_dcache_page()
166 __flush_invalidate_dcache_page_alias(virt, phys); in flush_dcache_page()
169 __invalidate_icache_page_alias(virt, phys); in flush_dcache_page()
200 unsigned long phys = page_to_phys(pfn_to_page(pfn)); in local_flush_cache_page() local
203 __flush_invalidate_dcache_page_alias(virt, phys); in local_flush_cache_page()
204 __invalidate_icache_page_alias(virt, phys); in local_flush_cache_page()
228 unsigned long phys = page_to_phys(page); in update_mmu_cache() local
[all …]
/Linux-v5.4/drivers/firmware/tegra/
Divc.c71 static inline void tegra_ivc_invalidate(struct tegra_ivc *ivc, dma_addr_t phys) in tegra_ivc_invalidate() argument
76 dma_sync_single_for_cpu(ivc->peer, phys, TEGRA_IVC_ALIGN, in tegra_ivc_invalidate()
80 static inline void tegra_ivc_flush(struct tegra_ivc *ivc, dma_addr_t phys) in tegra_ivc_flush() argument
85 dma_sync_single_for_device(ivc->peer, phys, TEGRA_IVC_ALIGN, in tegra_ivc_flush()
191 tegra_ivc_invalidate(ivc, ivc->rx.phys + offset); in tegra_ivc_check_read()
209 tegra_ivc_invalidate(ivc, ivc->tx.phys + offset); in tegra_ivc_check_write()
228 dma_addr_t phys, in tegra_ivc_frame_phys() argument
235 return phys + offset; in tegra_ivc_frame_phys()
239 dma_addr_t phys, in tegra_ivc_invalidate_frame() argument
247 phys = tegra_ivc_frame_phys(ivc, phys, frame) + offset; in tegra_ivc_invalidate_frame()
[all …]
/Linux-v5.4/arch/m68k/mm/
Dsun3kmap.c30 static inline void do_page_mapin(unsigned long phys, unsigned long virt, in do_page_mapin() argument
36 ptep = pfn_pte(phys >> PAGE_SHIFT, PAGE_KERNEL); in do_page_mapin()
49 static inline void do_pmeg_mapin(unsigned long phys, unsigned long virt, in do_pmeg_mapin() argument
57 do_page_mapin(phys, virt, type); in do_pmeg_mapin()
58 phys += PAGE_SIZE; in do_pmeg_mapin()
64 void __iomem *sun3_ioremap(unsigned long phys, unsigned long size, in sun3_ioremap() argument
75 offset = phys & (PAGE_SIZE-1); in sun3_ioremap()
76 phys &= ~(PAGE_SIZE-1); in sun3_ioremap()
99 do_pmeg_mapin(phys, virt, type, seg_pages); in sun3_ioremap()
102 phys += seg_pages * PAGE_SIZE; in sun3_ioremap()
[all …]
/Linux-v5.4/arch/um/kernel/
Dphysmem.c41 void map_memory(unsigned long virt, unsigned long phys, unsigned long len, in map_memory() argument
47 fd = phys_mapping(phys, &offset); in map_memory()
118 int phys_mapping(unsigned long phys, unsigned long long *offset_out) in phys_mapping() argument
122 if (phys < physmem_size) { in phys_mapping()
124 *offset_out = phys; in phys_mapping()
126 else if (phys < __pa(end_iomem)) { in phys_mapping()
130 if ((phys >= region->phys) && in phys_mapping()
131 (phys < region->phys + region->size)) { in phys_mapping()
133 *offset_out = phys - region->phys; in phys_mapping()
139 else if (phys < __pa(end_iomem) + highmem) { in phys_mapping()
[all …]
/Linux-v5.4/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_encoder.c416 struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i]; in dpu_encoder_get_hw_resources() local
418 if (phys && phys->ops.get_hw_resources) in dpu_encoder_get_hw_resources()
419 phys->ops.get_hw_resources(phys, hw_res); in dpu_encoder_get_hw_resources()
439 struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i]; in dpu_encoder_destroy() local
441 if (phys && phys->ops.destroy) { in dpu_encoder_destroy()
442 phys->ops.destroy(phys); in dpu_encoder_destroy()
584 struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i]; in dpu_encoder_virt_atomic_check() local
586 if (phys && phys->ops.atomic_check) in dpu_encoder_virt_atomic_check()
587 ret = phys->ops.atomic_check(phys, crtc_state, in dpu_encoder_virt_atomic_check()
589 else if (phys && phys->ops.mode_fixup) in dpu_encoder_virt_atomic_check()
[all …]
/Linux-v5.4/arch/powerpc/mm/nohash/
Dfsl_booke.c62 phys_addr_t phys; member
79 return tlbcam_addrs[b].phys + (va - tlbcam_addrs[b].start); in v_block_mapped()
90 if (pa >= tlbcam_addrs[b].phys in p_block_mapped()
92 +tlbcam_addrs[b].phys) in p_block_mapped()
93 return tlbcam_addrs[b].start+(pa-tlbcam_addrs[b].phys); in p_block_mapped()
105 static void settlbcam(int index, unsigned long virt, phys_addr_t phys, in settlbcam() argument
127 TLBCAM[index].MAS3 = (phys & MAS3_RPN) | MAS3_SX | MAS3_SR; in settlbcam()
130 TLBCAM[index].MAS7 = (u64)phys >> 32; in settlbcam()
140 tlbcam_addrs[index].phys = phys; in settlbcam()
144 phys_addr_t phys) in calc_cam_sz() argument
[all …]
/Linux-v5.4/arch/s390/numa/
Dmode_emu.c220 static void toptree_to_numa_single(struct toptree *numa, struct toptree *phys, in toptree_to_numa_single() argument
225 toptree_for_each_safe(core, tmp, phys, CORE) { in toptree_to_numa_single()
237 static void move_level_to_numa_node(struct toptree *node, struct toptree *phys, in move_level_to_numa_node() argument
243 toptree_for_each_safe(cur, tmp, phys, level) { in move_level_to_numa_node()
260 static void move_level_to_numa(struct toptree *numa, struct toptree *phys, in move_level_to_numa() argument
266 move_level_to_numa_node(node, phys, level, perfect); in move_level_to_numa()
272 static void toptree_to_numa_first(struct toptree *numa, struct toptree *phys) in toptree_to_numa_first() argument
277 move_level_to_numa(numa, phys, DRAWER, true); in toptree_to_numa_first()
278 move_level_to_numa(numa, phys, DRAWER, false); in toptree_to_numa_first()
279 move_level_to_numa(numa, phys, BOOK, true); in toptree_to_numa_first()
[all …]
/Linux-v5.4/arch/arm64/mm/
Dmmu.c92 phys_addr_t phys; in early_pgtable_alloc() local
95 phys = memblock_phys_alloc(PAGE_SIZE, PAGE_SIZE); in early_pgtable_alloc()
96 if (!phys) in early_pgtable_alloc()
104 ptr = pte_set_fixmap(phys); in early_pgtable_alloc()
114 return phys; in early_pgtable_alloc()
141 phys_addr_t phys, pgprot_t prot) in init_pte() argument
149 set_pte(ptep, pfn_pte(__phys_to_pfn(phys), prot)); in init_pte()
158 phys += PAGE_SIZE; in init_pte()
165 unsigned long end, phys_addr_t phys, in alloc_init_cont_pte() argument
189 if ((((addr | next | phys) & ~CONT_PTE_MASK) == 0) && in alloc_init_cont_pte()
[all …]
/Linux-v5.4/drivers/infiniband/hw/qib/
Dqib_user_pages.c61 dma_addr_t phys; in qib_map_page() local
63 phys = pci_map_page(hwdev, page, 0, PAGE_SIZE, PCI_DMA_FROMDEVICE); in qib_map_page()
64 if (pci_dma_mapping_error(hwdev, phys)) in qib_map_page()
67 if (!phys) { in qib_map_page()
68 pci_unmap_page(hwdev, phys, PAGE_SIZE, PCI_DMA_FROMDEVICE); in qib_map_page()
69 phys = pci_map_page(hwdev, page, 0, PAGE_SIZE, in qib_map_page()
71 if (pci_dma_mapping_error(hwdev, phys)) in qib_map_page()
78 *daddr = phys; in qib_map_page()
/Linux-v5.4/drivers/scsi/lpfc/
Dlpfc_mem.c109 GFP_KERNEL, &pool->elements[i].phys); in lpfc_mem_alloc()
182 pool->elements[i].phys); in lpfc_mem_alloc()
257 pool->elements[i].phys); in lpfc_mem_free()
301 lpfc_mbuf_free(phba, mp->virt, mp->phys); in lpfc_mem_free_all()
311 lpfc_mbuf_free(phba, mp->virt, mp->phys); in lpfc_mem_free_all()
325 lpfc_mbuf_free(phba, mp->virt, mp->phys); in lpfc_mem_free_all()
380 *handle = pool->elements[pool->current_count].phys; in lpfc_mbuf_alloc()
407 pool->elements[pool->current_count].phys = dma; in __lpfc_mbuf_free()
500 &hbqbp->dbuf.phys); in lpfc_els_hbq_alloc()
524 dma_pool_free(phba->lpfc_hbq_pool, hbqbp->dbuf.virt, hbqbp->dbuf.phys); in lpfc_els_hbq_free()
[all …]
/Linux-v5.4/arch/x86/events/intel/
Dbts.c142 struct bts_phys *phys = &buf->buf[buf->cur_buf]; in bts_config_buffer() local
143 unsigned long index, thresh = 0, end = phys->size; in bts_config_buffer()
144 struct page *page = phys->page; in bts_config_buffer()
149 if (buf->end < phys->offset + buf_size(page)) in bts_config_buffer()
150 end = buf->end - phys->offset - phys->displacement; in bts_config_buffer()
152 index -= phys->offset + phys->displacement; in bts_config_buffer()
162 ds->bts_buffer_base = (u64)(long)page_address(page) + phys->displacement; in bts_config_buffer()
170 static void bts_buffer_pad_out(struct bts_phys *phys, unsigned long head) in bts_buffer_pad_out() argument
172 unsigned long index = head - phys->offset; in bts_buffer_pad_out()
174 memset(page_address(phys->page) + index, 0, phys->size - index); in bts_buffer_pad_out()
[all …]
/Linux-v5.4/drivers/bus/
Dmips_cdmm.c263 phys_addr_t phys; member
368 if (bus->phys == mips_cdmm_cur_base()) in mips_cdmm_setup()
375 } else if (bus->phys > 1) { in mips_cdmm_setup()
380 if (!bus->phys) in mips_cdmm_setup()
381 bus->phys = mips_cdmm_cur_base(); in mips_cdmm_setup()
383 if (!bus->phys) in mips_cdmm_setup()
384 bus->phys = mips_cdmm_phys_base(); in mips_cdmm_setup()
386 if (!bus->phys) in mips_cdmm_setup()
387 bus->phys = mips_cdmm_default_base; in mips_cdmm_setup()
389 if (!bus->phys) { in mips_cdmm_setup()
[all …]
/Linux-v5.4/include/linux/
Dkmemleak.h32 extern void kmemleak_alloc_phys(phys_addr_t phys, size_t size, int min_count,
34 extern void kmemleak_free_part_phys(phys_addr_t phys, size_t size) __ref;
35 extern void kmemleak_not_leak_phys(phys_addr_t phys) __ref;
36 extern void kmemleak_ignore_phys(phys_addr_t phys) __ref;
109 static inline void kmemleak_alloc_phys(phys_addr_t phys, size_t size, in kmemleak_alloc_phys() argument
113 static inline void kmemleak_free_part_phys(phys_addr_t phys, size_t size) in kmemleak_free_part_phys() argument
116 static inline void kmemleak_not_leak_phys(phys_addr_t phys) in kmemleak_not_leak_phys() argument
119 static inline void kmemleak_ignore_phys(phys_addr_t phys) in kmemleak_ignore_phys() argument
/Linux-v5.4/arch/sh/include/asm/
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()
/Linux-v5.4/drivers/scsi/sym53c8xx_2/
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-v5.4/drivers/xen/
Dswiotlb-xen.c283 phys_addr_t phys; in xen_swiotlb_alloc_coherent() local
314 phys = *dma_handle; in xen_swiotlb_alloc_coherent()
315 dev_addr = xen_phys_to_bus(phys); in xen_swiotlb_alloc_coherent()
317 !range_straddles_page_boundary(phys, size)) in xen_swiotlb_alloc_coherent()
320 if (xen_create_contiguous_region(phys, order, in xen_swiotlb_alloc_coherent()
322 xen_free_coherent_pages(hwdev, size, ret, (dma_addr_t)phys, attrs); in xen_swiotlb_alloc_coherent()
336 phys_addr_t phys; in xen_swiotlb_free_coherent() local
344 phys = xen_bus_to_phys(dev_addr); in xen_swiotlb_free_coherent()
350 range_straddles_page_boundary(phys, size)) && in xen_swiotlb_free_coherent()
352 xen_destroy_contiguous_region(phys, order); in xen_swiotlb_free_coherent()
[all …]

12345678910>>...49