Home
last modified time | relevance | path

Searched refs:pgoff (Results 1 – 25 of 222) sorted by relevance

123456789

/linux-6.6.21/arch/mips/mm/
Dmmap.c23 #define COLOUR_ALIGN(addr, pgoff) \ argument
25 (((pgoff) << PAGE_SHIFT) & shm_align_mask))
30 unsigned long addr0, unsigned long len, unsigned long pgoff, in arch_get_unmapped_area_common() argument
52 ((addr - (pgoff << PAGE_SHIFT)) & shm_align_mask)) in arch_get_unmapped_area_common()
64 addr = COLOUR_ALIGN(addr, pgoff); in arch_get_unmapped_area_common()
76 info.align_offset = pgoff << PAGE_SHIFT; in arch_get_unmapped_area_common()
102 unsigned long len, unsigned long pgoff, unsigned long flags) in arch_get_unmapped_area() argument
105 addr0, len, pgoff, flags, UP); in arch_get_unmapped_area()
113 unsigned long addr0, unsigned long len, unsigned long pgoff, in arch_get_unmapped_area_topdown() argument
117 addr0, len, pgoff, flags, DOWN); in arch_get_unmapped_area_topdown()
/linux-6.6.21/arch/loongarch/mm/
Dmmap.c13 #define COLOUR_ALIGN(addr, pgoff) \ argument
15 + (((pgoff) << PAGE_SHIFT) & SHM_ALIGN_MASK))
20 unsigned long addr0, unsigned long len, unsigned long pgoff, in arch_get_unmapped_area_common() argument
42 ((addr - (pgoff << PAGE_SHIFT)) & SHM_ALIGN_MASK)) in arch_get_unmapped_area_common()
54 addr = COLOUR_ALIGN(addr, pgoff); in arch_get_unmapped_area_common()
66 info.align_offset = pgoff << PAGE_SHIFT; in arch_get_unmapped_area_common()
92 unsigned long len, unsigned long pgoff, unsigned long flags) in arch_get_unmapped_area() argument
95 addr0, len, pgoff, flags, UP); in arch_get_unmapped_area()
103 unsigned long addr0, unsigned long len, unsigned long pgoff, in arch_get_unmapped_area_topdown() argument
107 addr0, len, pgoff, flags, DOWN); in arch_get_unmapped_area_topdown()
/linux-6.6.21/tools/testing/nvdimm/
Ddax-dev.c9 phys_addr_t dax_pgoff_to_phys(struct dev_dax *dev_dax, pgoff_t pgoff, in dax_pgoff_to_phys() argument
20 pgoff_end = dax_range->pgoff + PHYS_PFN(range_len(range)) - 1; in dax_pgoff_to_phys()
21 if (pgoff < dax_range->pgoff || pgoff > pgoff_end) in dax_pgoff_to_phys()
23 addr = PFN_PHYS(pgoff - dax_range->pgoff) + range->start; in dax_pgoff_to_phys()
Dpmem-dax.c11 long __pmem_direct_access(struct pmem_device *pmem, pgoff_t pgoff, in __pmem_direct_access() argument
15 resource_size_t offset = PFN_PHYS(pgoff) + pmem->data_offset; in __pmem_direct_access()
17 if (unlikely(is_bad_pmem(&pmem->bb, PFN_PHYS(pgoff) / 512, in __pmem_direct_access()
34 __func__, pmem, pgoff, page_to_pfn(page)); in __pmem_direct_access()
/linux-6.6.21/arch/arm/mm/
Dmmap.c16 #define COLOUR_ALIGN(addr,pgoff) \ argument
18 (((pgoff)<<PAGE_SHIFT) & (SHMLBA-1)))
31 unsigned long len, unsigned long pgoff, unsigned long flags) in arch_get_unmapped_area() argument
51 (addr - (pgoff << PAGE_SHIFT)) & (SHMLBA - 1)) in arch_get_unmapped_area()
61 addr = COLOUR_ALIGN(addr, pgoff); in arch_get_unmapped_area()
76 info.align_offset = pgoff << PAGE_SHIFT; in arch_get_unmapped_area()
82 const unsigned long len, const unsigned long pgoff, in arch_get_unmapped_area_topdown() argument
105 (addr - (pgoff << PAGE_SHIFT)) & (SHMLBA - 1)) in arch_get_unmapped_area_topdown()
113 addr = COLOUR_ALIGN(addr, pgoff); in arch_get_unmapped_area_topdown()
127 info.align_offset = pgoff << PAGE_SHIFT; in arch_get_unmapped_area_topdown()
/linux-6.6.21/arch/microblaze/kernel/
Dsys_microblaze.c38 off_t, pgoff) in SYSCALL_DEFINE6() argument
40 if (pgoff & ~PAGE_MASK) in SYSCALL_DEFINE6()
43 return ksys_mmap_pgoff(addr, len, prot, flags, fd, pgoff >> PAGE_SHIFT); in SYSCALL_DEFINE6()
48 unsigned long, pgoff) in SYSCALL_DEFINE6() argument
50 if (pgoff & (~PAGE_MASK >> 12)) in SYSCALL_DEFINE6()
54 pgoff >> (PAGE_SHIFT - 12)); in SYSCALL_DEFINE6()
/linux-6.6.21/drivers/dax/
Ddevice.c54 __weak phys_addr_t dax_pgoff_to_phys(struct dev_dax *dev_dax, pgoff_t pgoff, in dax_pgoff_to_phys() argument
65 pgoff_end = dax_range->pgoff + PHYS_PFN(range_len(range)) - 1; in dax_pgoff_to_phys()
66 if (pgoff < dax_range->pgoff || pgoff > pgoff_end) in dax_pgoff_to_phys()
68 phys = PFN_PHYS(pgoff - dax_range->pgoff) + range->start; in dax_pgoff_to_phys()
82 pgoff_t pgoff; in dax_set_mapping() local
88 pgoff = linear_page_index(vmf->vma, in dax_set_mapping()
99 page->index = pgoff + i; in dax_set_mapping()
123 phys = dax_pgoff_to_phys(dev_dax, vmf->pgoff, PAGE_SIZE); in __dev_dax_pte_fault()
125 dev_dbg(dev, "pgoff_to_phys(%#lx) failed\n", vmf->pgoff); in __dev_dax_pte_fault()
142 pgoff_t pgoff; in __dev_dax_pmd_fault() local
[all …]
/linux-6.6.21/drivers/md/
Ddm-linear.c159 static struct dax_device *linear_dax_pgoff(struct dm_target *ti, pgoff_t *pgoff) in linear_dax_pgoff() argument
162 sector_t sector = linear_map_sector(ti, *pgoff << PAGE_SECTORS_SHIFT); in linear_dax_pgoff()
164 *pgoff = (get_start_sect(lc->dev->bdev) + sector) >> PAGE_SECTORS_SHIFT; in linear_dax_pgoff()
168 static long linear_dax_direct_access(struct dm_target *ti, pgoff_t pgoff, in linear_dax_direct_access() argument
172 struct dax_device *dax_dev = linear_dax_pgoff(ti, &pgoff); in linear_dax_direct_access()
174 return dax_direct_access(dax_dev, pgoff, nr_pages, mode, kaddr, pfn); in linear_dax_direct_access()
177 static int linear_dax_zero_page_range(struct dm_target *ti, pgoff_t pgoff, in linear_dax_zero_page_range() argument
180 struct dax_device *dax_dev = linear_dax_pgoff(ti, &pgoff); in linear_dax_zero_page_range()
182 return dax_zero_page_range(dax_dev, pgoff, nr_pages); in linear_dax_zero_page_range()
185 static size_t linear_dax_recovery_write(struct dm_target *ti, pgoff_t pgoff, in linear_dax_recovery_write() argument
[all …]
Ddm-stripe.c301 static struct dax_device *stripe_dax_pgoff(struct dm_target *ti, pgoff_t *pgoff) in stripe_dax_pgoff() argument
308 stripe_map_sector(sc, *pgoff * PAGE_SECTORS, &stripe, &dev_sector); in stripe_dax_pgoff()
312 *pgoff = (get_start_sect(bdev) + dev_sector) >> PAGE_SECTORS_SHIFT; in stripe_dax_pgoff()
316 static long stripe_dax_direct_access(struct dm_target *ti, pgoff_t pgoff, in stripe_dax_direct_access() argument
320 struct dax_device *dax_dev = stripe_dax_pgoff(ti, &pgoff); in stripe_dax_direct_access()
322 return dax_direct_access(dax_dev, pgoff, nr_pages, mode, kaddr, pfn); in stripe_dax_direct_access()
325 static int stripe_dax_zero_page_range(struct dm_target *ti, pgoff_t pgoff, in stripe_dax_zero_page_range() argument
328 struct dax_device *dax_dev = stripe_dax_pgoff(ti, &pgoff); in stripe_dax_zero_page_range()
330 return dax_zero_page_range(dax_dev, pgoff, nr_pages); in stripe_dax_zero_page_range()
333 static size_t stripe_dax_recovery_write(struct dm_target *ti, pgoff_t pgoff, in stripe_dax_recovery_write() argument
[all …]
/linux-6.6.21/arch/sh/mm/
Dmmap.c46 unsigned long pgoff) in COLOUR_ALIGN() argument
49 unsigned long off = (pgoff << PAGE_SHIFT) & shm_align_mask; in COLOUR_ALIGN()
55 unsigned long len, unsigned long pgoff, unsigned long flags) in arch_get_unmapped_area() argument
67 ((addr - (pgoff << PAGE_SHIFT)) & shm_align_mask)) in arch_get_unmapped_area()
81 addr = COLOUR_ALIGN(addr, pgoff); in arch_get_unmapped_area()
96 info.align_offset = pgoff << PAGE_SHIFT; in arch_get_unmapped_area()
102 const unsigned long len, const unsigned long pgoff, in arch_get_unmapped_area_topdown() argument
116 ((addr - (pgoff << PAGE_SHIFT)) & shm_align_mask)) in arch_get_unmapped_area_topdown()
131 addr = COLOUR_ALIGN(addr, pgoff); in arch_get_unmapped_area_topdown()
146 info.align_offset = pgoff << PAGE_SHIFT; in arch_get_unmapped_area_topdown()
/linux-6.6.21/tools/testing/radix-tree/
Diteration_check.c51 unsigned long pgoff; in add_entries_fn() local
53 for (pgoff = 0; pgoff < MAX_IDX; pgoff++) { in add_entries_fn()
54 my_item_insert(&array, pgoff); in add_entries_fn()
138 int pgoff; in remove_entries_fn() local
141 pgoff = rand_r(&seeds[2]) % MAX_IDX; in remove_entries_fn()
143 item = xa_erase(&array, pgoff); in remove_entries_fn()
145 item_free(item, pgoff); in remove_entries_fn()
/linux-6.6.21/arch/csky/abiv1/
Dmmap.c12 #define COLOUR_ALIGN(addr,pgoff) \ argument
14 (((pgoff)<<PAGE_SHIFT) & (SHMLBA-1)))
26 unsigned long len, unsigned long pgoff, unsigned long flags) in arch_get_unmapped_area() argument
44 (addr - (pgoff << PAGE_SHIFT)) & (SHMLBA - 1)) in arch_get_unmapped_area()
54 addr = COLOUR_ALIGN(addr, pgoff); in arch_get_unmapped_area()
69 info.align_offset = pgoff << PAGE_SHIFT; in arch_get_unmapped_area()
/linux-6.6.21/arch/parisc/kernel/
Dsys_parisc.c38 unsigned long pgoff) in shared_align_offset() argument
40 return (filp_pgoff + pgoff) << PAGE_SHIFT; in shared_align_offset()
44 unsigned long filp_pgoff, unsigned long pgoff) in COLOR_ALIGN() argument
48 shared_align_offset(filp_pgoff, pgoff); in COLOR_ALIGN()
100 unsigned long addr, unsigned long len, unsigned long pgoff, in arch_get_unmapped_area_common() argument
123 (addr - shared_align_offset(filp_pgoff, pgoff)) in arch_get_unmapped_area_common()
131 addr = COLOR_ALIGN(addr, filp_pgoff, pgoff); in arch_get_unmapped_area_common()
144 info.align_offset = shared_align_offset(filp_pgoff, pgoff); in arch_get_unmapped_area_common()
170 unsigned long len, unsigned long pgoff, unsigned long flags) in arch_get_unmapped_area() argument
173 addr, len, pgoff, flags, UP); in arch_get_unmapped_area()
[all …]
/linux-6.6.21/arch/xtensa/kernel/
Dsyscall.c35 #define COLOUR_ALIGN(addr, pgoff) \ argument
37 (((pgoff) << PAGE_SHIFT) & (SHMLBA - 1)))
58 unsigned long len, unsigned long pgoff, unsigned long flags) in arch_get_unmapped_area() argument
68 ((addr - (pgoff << PAGE_SHIFT)) & (SHMLBA - 1))) in arch_get_unmapped_area()
79 addr = COLOUR_ALIGN(addr, pgoff); in arch_get_unmapped_area()
91 addr = COLOUR_ALIGN(addr, pgoff); in arch_get_unmapped_area()
/linux-6.6.21/include/trace/events/
Dfs_dax.h20 __field(pgoff_t, pgoff)
34 __entry->pgoff = vmf->pgoff;
48 __entry->pgoff,
160 __field(pgoff_t, pgoff)
171 __entry->pgoff = vmf->pgoff;
181 __entry->pgoff,
260 TP_PROTO(struct inode *inode, pgoff_t pgoff, pgoff_t pglen),
261 TP_ARGS(inode, pgoff, pglen),
264 __field(pgoff_t, pgoff)
271 __entry->pgoff = pgoff;
[all …]
/linux-6.6.21/arch/arc/mm/
Dmmap.c17 #define COLOUR_ALIGN(addr, pgoff) \ argument
19 (((pgoff) << PAGE_SHIFT) & (SHMLBA - 1)))
30 unsigned long len, unsigned long pgoff, unsigned long flags) in arch_get_unmapped_area() argument
49 (addr - (pgoff << PAGE_SHIFT)) & (SHMLBA - 1)) in arch_get_unmapped_area()
59 addr = COLOUR_ALIGN(addr, pgoff); in arch_get_unmapped_area()
74 info.align_offset = pgoff << PAGE_SHIFT; in arch_get_unmapped_area()
/linux-6.6.21/drivers/w1/slaves/
Dw1_ds250x.c49 int pgoff = pageno * W1_PAGE_SIZE; in w1_ds2502_read_page() local
63 buf[1] = pgoff & 0xff; in w1_ds2502_read_page()
64 buf[2] = pgoff >> 8; in w1_ds2502_read_page()
71 w1_read_block(sl->master, &data->eprom[pgoff], W1_PAGE_SIZE); in w1_ds2502_read_page()
74 if (w1_calc_crc8(&data->eprom[pgoff], W1_PAGE_SIZE) != crc8) in w1_ds2502_read_page()
88 int pgoff, epoff; in w1_ds2505_read_page() local
97 epoff = pgoff = pageno * W1_PAGE_SIZE; in w1_ds2505_read_page()
105 buf[1] = pgoff & 0xff; in w1_ds2505_read_page()
106 buf[2] = pgoff >> 8; in w1_ds2505_read_page()
121 pgoff = (redir ^ 0xff) * W1_PAGE_SIZE; in w1_ds2505_read_page()
/linux-6.6.21/fs/romfs/
Dmmap-nommu.c21 unsigned long pgoff, in romfs_get_unmapped_area() argument
35 offset = pgoff << PAGE_SHIFT; in romfs_get_unmapped_area()
38 if ((pgoff >= maxpages) || (maxpages - pgoff < lpages)) in romfs_get_unmapped_area()
44 if (len > mtd->size || pgoff >= (mtd->size >> PAGE_SHIFT)) in romfs_get_unmapped_area()
/linux-6.6.21/arch/sparc/kernel/
Dsys_sparc_32.c42 …a(struct file *filp, unsigned long addr, unsigned long len, unsigned long pgoff, unsigned long fla… in arch_get_unmapped_area() argument
51 ((addr - (pgoff << PAGE_SHIFT)) & (SHMLBA - 1))) in arch_get_unmapped_area()
68 info.align_offset = pgoff << PAGE_SHIFT; in arch_get_unmapped_area()
103 unsigned long, pgoff) in SYSCALL_DEFINE6() argument
108 pgoff >> (PAGE_SHIFT - 12)); in SYSCALL_DEFINE6()
120 unsigned long, prot, unsigned long, pgoff, in SYSCALL_DEFINE5() argument
127 (pgoff >> (PAGE_SHIFT - 12)), flags); in SYSCALL_DEFINE5()
Dsys_sparc_64.c82 unsigned long pgoff) in COLOR_ALIGN() argument
85 unsigned long off = (pgoff<<PAGE_SHIFT) & (SHMLBA-1); in COLOR_ALIGN()
90 …a(struct file *filp, unsigned long addr, unsigned long len, unsigned long pgoff, unsigned long fla… in arch_get_unmapped_area() argument
103 ((addr - (pgoff << PAGE_SHIFT)) & (SHMLBA - 1))) in arch_get_unmapped_area()
119 addr = COLOR_ALIGN(addr, pgoff); in arch_get_unmapped_area()
134 info.align_offset = pgoff << PAGE_SHIFT; in arch_get_unmapped_area()
149 const unsigned long len, const unsigned long pgoff, in arch_get_unmapped_area_topdown() argument
167 ((addr - (pgoff << PAGE_SHIFT)) & (SHMLBA - 1))) in arch_get_unmapped_area_topdown()
182 addr = COLOR_ALIGN(addr, pgoff); in arch_get_unmapped_area_topdown()
197 info.align_offset = pgoff << PAGE_SHIFT; in arch_get_unmapped_area_topdown()
[all …]
/linux-6.6.21/arch/sh/kernel/
Dsys_sh.c43 unsigned long fd, unsigned long pgoff) in sys_mmap2() argument
49 if (pgoff & ((1 << (PAGE_SHIFT - 12)) - 1)) in sys_mmap2()
52 pgoff >>= PAGE_SHIFT - 12; in sys_mmap2()
54 return ksys_mmap_pgoff(addr, len, prot, flags, fd, pgoff); in sys_mmap2()
/linux-6.6.21/arch/x86/mm/
Dhugetlbpage.c51 unsigned long pgoff, unsigned long flags) in hugetlb_get_unmapped_area_bottomup() argument
74 unsigned long pgoff, unsigned long flags) in hugetlb_get_unmapped_area_topdown() argument
114 unsigned long len, unsigned long pgoff, unsigned long flags) in hugetlb_get_unmapped_area() argument
146 pgoff, flags); in hugetlb_get_unmapped_area()
149 pgoff, flags); in hugetlb_get_unmapped_area()
/linux-6.6.21/tools/perf/util/
Dmap.h25 u64 pgoff; in DECLARE_RC_STRUCT() local
88 return RC_CHK_ACCESS(map)->pgoff; in map__pgoff()
164 u64 start, u64 end, u64 pgoff, struct dso *dso);
170 u64 pgoff, struct dso_id *id, u32 prot, u32 flags,
267 static inline void map__set_pgoff(struct map *map, u64 pgoff) in map__set_pgoff() argument
269 RC_CHK_ACCESS(map)->pgoff = pgoff; in map__set_pgoff()
274 RC_CHK_ACCESS(map)->pgoff += inc; in map__add_pgoff()
/linux-6.6.21/tools/perf/arch/x86/util/
Dmachine.c26 u64 end, u64 pgoff, const char *name) in add_extra_kernel_map() argument
42 mi->maps[mi->cnt].pgoff = pgoff; in add_extra_kernel_map()
93 xm->pgoff = mi.entry_trampoline; in machine__create_extra_kernel_maps()
/linux-6.6.21/arch/x86/kernel/
Dsys_x86_64.c124 unsigned long len, unsigned long pgoff, unsigned long flags) in arch_get_unmapped_area() argument
152 info.align_offset = pgoff << PAGE_SHIFT; in arch_get_unmapped_area()
162 const unsigned long len, const unsigned long pgoff, in arch_get_unmapped_area_topdown() argument
214 info.align_offset = pgoff << PAGE_SHIFT; in arch_get_unmapped_area_topdown()
231 return arch_get_unmapped_area(filp, addr0, len, pgoff, flags); in arch_get_unmapped_area_topdown()

123456789