Home
last modified time | relevance | path

Searched refs:pg (Results 1 – 25 of 90) sorted by relevance

1234

/arch/powerpc/platforms/powernv/
Dopal-powercap.c26 struct attribute_group pg; member
190 pcaps[i].pg.attrs = kcalloc(j + 1, sizeof(struct attribute *), in opal_powercap_init()
192 if (!pcaps[i].pg.attrs) { in opal_powercap_init()
198 pcaps[i].pg.name = kasprintf(GFP_KERNEL, "%pOFn", node); in opal_powercap_init()
199 if (!pcaps[i].pg.name) { in opal_powercap_init()
201 kfree(pcaps[i].pg.attrs); in opal_powercap_init()
208 pcaps[i].pg.attrs[j] = &pcaps[i].pattrs[j].attr.attr; in opal_powercap_init()
215 pcaps[i].pg.attrs[j] = &pcaps[i].pattrs[j].attr.attr; in opal_powercap_init()
224 pcaps[i].pg.attrs[j] = &pcaps[i].pattrs[j].attr.attr; in opal_powercap_init()
228 if (sysfs_create_group(powercap_kobj, &pcaps[i].pg)) { in opal_powercap_init()
[all …]
/arch/powerpc/mm/
Dpgtable.c90 struct page *pg = maybe_pte_to_page(pte); in set_pte_filter_hash() local
91 if (!pg) in set_pte_filter_hash()
93 if (!test_bit(PG_dcache_clean, &pg->flags)) { in set_pte_filter_hash()
94 flush_dcache_icache_page(pg); in set_pte_filter_hash()
95 set_bit(PG_dcache_clean, &pg->flags); in set_pte_filter_hash()
113 struct page *pg; in set_pte_filter() local
123 pg = maybe_pte_to_page(pte); in set_pte_filter()
124 if (unlikely(!pg)) in set_pte_filter()
128 if (test_bit(PG_dcache_clean, &pg->flags)) in set_pte_filter()
133 flush_dcache_icache_page(pg); in set_pte_filter()
[all …]
Dpgtable_32.c78 pte_t *pg; in map_kernel_page() local
85 pg = pte_alloc_kernel(pd, va); in map_kernel_page()
87 pg = early_pte_alloc_kernel(pd, va); in map_kernel_page()
88 if (pg) { in map_kernel_page()
93 BUG_ON((pte_present(*pg) | pte_hashpte(*pg)) && pgprot_val(prot)); in map_kernel_page()
94 set_pte_at(&init_mm, va, pg, pfn_pte(pa >> PAGE_SHIFT, prot)); in map_kernel_page()
Dcacheflush.c190 void clear_user_page(void *page, unsigned long vaddr, struct page *pg) in clear_user_page() argument
199 flush_dcache_page(pg); in clear_user_page()
204 struct page *pg) in copy_user_page() argument
223 flush_dcache_page(pg); in copy_user_page()
/arch/microblaze/kernel/
DMakefile8 CFLAGS_REMOVE_timer.o = -pg
9 CFLAGS_REMOVE_intc.o = -pg
10 CFLAGS_REMOVE_early_printk.o = -pg
11 CFLAGS_REMOVE_ftrace.o = -pg
12 CFLAGS_REMOVE_process.o = -pg
/arch/mips/include/asm/
Dpgalloc.h68 struct page *pg; in pmd_alloc_one() local
70 pg = alloc_pages(GFP_KERNEL_ACCOUNT, PMD_ORDER); in pmd_alloc_one()
71 if (!pg) in pmd_alloc_one()
74 if (!pgtable_pmd_page_ctor(pg)) { in pmd_alloc_one()
75 __free_pages(pg, PMD_ORDER); in pmd_alloc_one()
79 pmd = (pmd_t *)page_address(pg); in pmd_alloc_one()
/arch/arm/include/asm/
Dproc-fns.h168 u64 pg = cpu_get_ttbr(0); \
169 pg &= ~(PTRS_PER_PGD*sizeof(pgd_t)-1); \
170 (pgd_t *)phys_to_virt(pg); \
175 unsigned long pg; \
177 : "=r" (pg) : : "cc"); \
178 pg &= ~0x3fff; \
179 (pgd_t *)phys_to_virt(pg); \
Dpage-nommu.h14 #define clear_user_page(page, vaddr, pg) clear_page(page) argument
15 #define copy_user_page(to, from, vaddr, pg) copy_page(to, from) argument
/arch/xtensa/boot/lib/
DMakefile12 CFLAGS_REMOVE_inflate.o = -pg
13 CFLAGS_REMOVE_zmem.o = -pg
14 CFLAGS_REMOVE_inftrees.o = -pg
15 CFLAGS_REMOVE_inffast.o = -pg
/arch/arm/mach-vexpress/
DMakefile11 CFLAGS_REMOVE_dcscb.o = -pg
13 CFLAGS_REMOVE_spc.o = -pg
16 CFLAGS_REMOVE_tc2_pm.o = -pg
/arch/microblaze/lib/
DMakefile7 CFLAGS_REMOVE_ashldi3.o = -pg
8 CFLAGS_REMOVE_ashrdi3.o = -pg
9 CFLAGS_REMOVE_lshrdi3.o = -pg
/arch/x86/kernel/
DMakefile16 CFLAGS_REMOVE_tsc.o = -pg
17 CFLAGS_REMOVE_paravirt-spinlocks.o = -pg
18 CFLAGS_REMOVE_pvclock.o = -pg
19 CFLAGS_REMOVE_kvmclock.o = -pg
20 CFLAGS_REMOVE_ftrace.o = -pg
21 CFLAGS_REMOVE_early_printk.o = -pg
22 CFLAGS_REMOVE_head64.o = -pg
23 CFLAGS_REMOVE_sev.o = -pg
24 CFLAGS_REMOVE_cc_platform.o = -pg
/arch/x86/xen/
DMakefile5 CFLAGS_REMOVE_spinlock.o = -pg
6 CFLAGS_REMOVE_time.o = -pg
7 CFLAGS_REMOVE_irq.o = -pg
/arch/csky/kernel/
Dvdso.c44 struct page *pg; in vdso_init() local
46 pg = virt_to_page(vdso_start + (i << PAGE_SHIFT)); in vdso_init()
47 vdso_pagelist[i] = pg; in vdso_init()
/arch/arm64/include/asm/
Dpage.h39 #define clear_user_page(page, vaddr, pg) clear_page(page) argument
40 #define copy_user_page(to, from, vaddr, pg) copy_page(to, from) argument
/arch/riscv/kernel/
Dvdso.c58 struct page *pg; in vdso_init() local
60 pg = virt_to_page(vdso_start + (i << PAGE_SHIFT)); in vdso_init()
61 vdso_pagelist[i] = pg; in vdso_init()
/arch/nds32/include/asm/
Dpage.h36 #define clear_user_page(page, vaddr, pg) clear_page(page) argument
37 #define copy_user_page(to, from, vaddr, pg) copy_page(to, from) argument
/arch/m68k/include/asm/
Dpage_no.h13 #define clear_user_page(page, vaddr, pg) clear_page(page) argument
14 #define copy_user_page(to, from, vaddr, pg) copy_page(to, from) argument
/arch/microblaze/mm/
Dpgtable.c141 pte_t *pg; in map_page() local
149 pg = pte_alloc_kernel(pd, va); /* from powerpc - pgtable.c */ in map_page()
152 if (pg != NULL) { in map_page()
154 set_pte_at(&init_mm, va, pg, pfn_pte(pa >> PAGE_SHIFT, in map_page()
/arch/openrisc/include/asm/
Dpage.h42 #define clear_user_page(page, vaddr, pg) clear_page(page) argument
43 #define copy_user_page(to, from, vaddr, pg) copy_page(to, from) argument
/arch/sparc/kernel/
DMakefile19 CFLAGS_REMOVE_ftrace.o := -pg
20 CFLAGS_REMOVE_time_$(BITS).o := -pg
21 CFLAGS_REMOVE_perf_event.o := -pg
22 CFLAGS_REMOVE_pcr.o := -pg
/arch/arm/kernel/
DMakefile10 CFLAGS_REMOVE_ftrace.o = -pg
11 CFLAGS_REMOVE_insn.o = -pg
12 CFLAGS_REMOVE_patch.o = -pg
15 CFLAGS_REMOVE_return_address.o = -pg
/arch/x86/events/intel/
Dbts.c89 int pg, nbuf, pad; in bts_buffer_setup_aux() local
92 for (pg = 0, nbuf = 0; pg < nr_pages;) { in bts_buffer_setup_aux()
93 page = virt_to_page(pages[pg]); in bts_buffer_setup_aux()
94 pg += buf_nr_pages(page); in bts_buffer_setup_aux()
114 for (pg = 0, nbuf = 0, offset = 0, pad = 0; nbuf < buf->nr_bufs; nbuf++) { in bts_buffer_setup_aux()
117 page = virt_to_page(pages[pg]); in bts_buffer_setup_aux()
126 pg += __nr_pages; in bts_buffer_setup_aux()
/arch/s390/crypto/
Dprng.c138 u8 *pg, pblock[80] = { in generate_entropy() local
153 pg = (u8 *) __get_free_page(GFP_KERNEL); in generate_entropy()
154 if (!pg) { in generate_entropy()
162 get_random_bytes(pg, PAGE_SIZE / 2); in generate_entropy()
166 u64 *p = (u64 *)(pg + offset); in generate_entropy()
170 cpacf_klmd(CPACF_KLMD_SHA_512, pblock, pg, PAGE_SIZE); in generate_entropy()
179 memzero_explicit(pg, PAGE_SIZE); in generate_entropy()
180 free_page((unsigned long)pg); in generate_entropy()
/arch/alpha/include/asm/
Dpage.h18 #define clear_user_page(page, vaddr, pg) clear_page(page) argument
25 #define copy_user_page(to, from, vaddr, pg) copy_page(to, from) argument

1234