Home
last modified time | relevance | path

Searched refs:pshift (Results 1 – 17 of 17) sorted by relevance

/linux/drivers/clk/sprd/
H A Dpll.c21 #define pshift(pll, member) \ macro
29 GENMASK(pwidth(pll, member) + pshift(pll, member) - 1, \
30 pshift(pll, member)) : 0)
36 (pinternal(pll, cfg, member) >> pshift(pll, member))
76 shift = pshift(pll, PLL_REFIN); in pll_get_refin()
194 shift = pshift(pll, PLL_NINT); in _sprd_pll_set_rate()
201 shift = pshift(pll, PLL_KINT); in _sprd_pll_set_rate()
212 shift = pshift(pll, PLL_IBIAS); in _sprd_pll_set_rate()
/linux/arch/powerpc/kvm/
H A Dbook3s_hv_rm_mmu.c1066 unsigned int pshift; in mmio_cache_search() local
1072 pshift = entry->slb_base_pshift; in mmio_cache_search()
1073 if ((entry->eaddr >> pshift) == (eaddr >> pshift) && in mmio_cache_search()
1101 unsigned int pshift; in kvmppc_hv_find_lock_hpte() local
1112 pshift = 12; in kvmppc_hv_find_lock_hpte()
1116 pshift = slb_base_page_shift[(slb_v & SLB_VSID_LP) >> 4]; in kvmppc_hv_find_lock_hpte()
1126 hash = (vsid ^ ((eaddr & somask) >> pshift)) & kvmppc_hpt_mask(&kvm->arch.hpt); in kvmppc_hv_find_lock_hpte()
1130 if (pshift >= 24) in kvmppc_hv_find_lock_hpte()
1131 avpn &= ~((1UL << (pshift - 16)) - 1); in kvmppc_hv_find_lock_hpte()
1163 kvmppc_hpte_base_page_shift(v, r) == pshift) in kvmppc_hv_find_lock_hpte()
[all …]
H A Dbook3s_64_mmu_hv.c1211 int pshift; in resize_hpt_rehash_hpte() local
1280 pshift = kvmppc_hpte_base_page_shift(vpte, rpte); in resize_hpt_rehash_hpte()
1281 avpn = HPTE_V_AVPN_VAL(vpte) & ~(((1ul << pshift) - 1) >> 23); in resize_hpt_rehash_hpte()
1293 if (pshift < 23) in resize_hpt_rehash_hpte()
1294 offset |= ((vsid ^ pteg) & old_hash_mask) << pshift; in resize_hpt_rehash_hpte()
1296 hash = vsid ^ (offset >> pshift); in resize_hpt_rehash_hpte()
1303 if (pshift < 23) in resize_hpt_rehash_hpte()
1304 offset |= ((vsid ^ (vsid << 25) ^ pteg) & old_hash_mask) << pshift; in resize_hpt_rehash_hpte()
1306 hash = vsid ^ (vsid << 25) ^ (offset >> pshift); in resize_hpt_rehash_hpte()
1809 int pshift; in kvm_htab_write() local
[all …]
H A Dbook3s_64_mmu_radix.c316 unsigned int pshift, u64 lpid) in kvmppc_radix_tlbie_page() argument
323 if (pshift) in kvmppc_radix_tlbie_page()
324 psize = 1UL << pshift; in kvmppc_radix_tlbie_page()
326 pshift = PAGE_SHIFT; in kvmppc_radix_tlbie_page()
335 psi = shift_to_mmu_psize(pshift); in kvmppc_radix_tlbie_page()
/linux/drivers/clk/sunxi/
H A Dclk-sun9i-core.c64 .pshift = 16,
172 .pshift = 0,
255 .pshift = 16,
H A Dclk-sunxi.c422 .pshift = 16,
443 .pshift = 16,
464 .pshift = 4,
471 .pshift = 4,
478 .pshift = 16,
486 .pshift = 20,
H A Dclk-factors.h17 u8 pshift; member
H A Dclk-sun6i-ar100.c59 .pshift = 4,
H A Dclk-factors.c60 p = FACTOR_GET(config->pshift, config->pwidth, reg); in clk_factors_recalc_rate()
156 reg = FACTOR_SET(config->pshift, config->pwidth, reg, req.p); in clk_factors_set_rate()
H A Dclk-mod0.c54 .pshift = 16,
/linux/tools/testing/selftests/mm/
H A Dtranshuge-stress.c70 ram >> (20 + HPAGE_SHIFT - pshift() - 1)); in main()
106 size_t idx = pfn >> (HPAGE_SHIFT - pshift()); in main()
H A Dvm_util.h51 static inline unsigned int pshift(void) in pshift() function
H A Dvm_util.c283 (uintptr_t)ptr >> (pshift() - 3)) != sizeof(ent)) in allocate_transhuge()
288 !(PAGEMAP_PFN(ent[0]) & ((1 << (HPAGE_SHIFT - pshift())) - 1))) in allocate_transhuge()
H A Dsplit_huge_page_test.c194 next_folio_vaddr = vaddr + (1UL << (cur_order + pshift())); in gather_after_split_folio_orders()
218 next_folio_vaddr = vaddr + (1UL << (cur_order + pshift())); in gather_after_split_folio_orders()
/linux/arch/powerpc/mm/book3s64/
H A Dhash_utils.c453 unsigned int pshift = mmu_psize_defs[mmu_linear_psize].shift; in hash_kfence_map_pool() local
464 update_page_count(mmu_linear_psize, KFENCE_POOL_SIZE >> pshift); in hash_kfence_map_pool()
1179 unsigned pshift = mmu_psize_defs[mmu_virtual_psize].shift; in htab_shift_for_mem_size() local
1187 pteg_shift = memshift - (pshift + 1); in htab_shift_for_mem_size()
1240 unsigned int pshift = mmu_psize_defs[mmu_linear_psize].shift; in hash__create_section_mapping() local
1258 update_page_count(mmu_linear_psize, (end - start) >> pshift); in hash__create_section_mapping()
1264 unsigned int pshift = mmu_psize_defs[mmu_linear_psize].shift; in hash__remove_section_mapping() local
1273 update_page_count(mmu_linear_psize, -((end - start) >> pshift)); in hash__remove_section_mapping()
1316 unsigned int pshift = mmu_psize_defs[mmu_linear_psize].shift; in htab_initialize() local
1421 update_page_count(mmu_linear_psize, size >> pshift); in htab_initialize()
[all …]
/linux/arch/x86/kernel/apic/
H A Dx2apic_uv_x.c826 static __init void map_high(char *id, unsigned long base, int pshift, int bshift, int max_pnode, en… in map_high() argument
830 paddr = base << pshift; in map_high()
/linux/arch/x86/kvm/
H A Dx86.c2482 s8 *pshift, u32 *pmultiplier) in kvm_get_time_scale() argument
2505 *pshift = shift; in kvm_get_time_scale()