Lines Matching full:ea

146 					       unsigned long ea,
156 int (*hpte_removebolted)(unsigned long ea,
418 * Build a VPN_SHIFT bit shifted va given VSID, EA and segment size.
420 static inline unsigned long hpt_vpn(unsigned long ea, in hpt_vpn() argument
427 return (vsid << (s_shift - VPN_SHIFT)) | ((ea >> VPN_SHIFT) & mask); in hpt_vpn()
459 extern int __hash_page_4K(unsigned long ea, unsigned long access,
462 extern int __hash_page_64K(unsigned long ea, unsigned long access,
467 extern int hash_page_mm(struct mm_struct *mm, unsigned long ea,
470 extern int hash_page(unsigned long ea, unsigned long access, unsigned long trap,
473 int __hash_page(unsigned long trap, unsigned long ea, unsigned long dsisr, unsigned long msr);
474 int __hash_page_huge(unsigned long ea, unsigned long access, unsigned long vsid,
478 extern int __hash_page_thp(unsigned long ea, unsigned long access,
482 static inline int __hash_page_thp(unsigned long ea, unsigned long access, in __hash_page_thp() argument
491 extern void hash_failure_debug(unsigned long ea, unsigned long access,
561 * 0, because a context id of 0 and an EA of 0 gives a proto-VSID of 0, which
778 static inline unsigned long get_vsid(unsigned long context, unsigned long ea, in get_vsid() argument
788 if ((ea & EA_MASK) >= H_PGTABLE_RANGE) in get_vsid()
797 ((ea >> SID_SHIFT) & ESID_BITS_MASK); in get_vsid()
803 ((ea >> SID_SHIFT_1T) & ESID_BITS_1T_MASK); in get_vsid()
823 static inline unsigned long get_kernel_context(unsigned long ea) in get_kernel_context() argument
825 unsigned long region_id = get_region_id(ea); in get_kernel_context()
833 * We already verified ea to be not beyond the addr limit. in get_kernel_context()
835 ctx = 1 + ((ea & EA_MASK) >> MAX_EA_BITS_PER_CONTEXT); in get_kernel_context()
844 static inline unsigned long get_kernel_vsid(unsigned long ea, int ssize) in get_kernel_vsid() argument
848 if (!is_kernel_addr(ea)) in get_kernel_vsid()
851 context = get_kernel_context(ea); in get_kernel_vsid()
852 return get_vsid(context, ea, ssize); in get_kernel_vsid()
865 static inline unsigned long mk_esid_data(unsigned long ea, int ssize, in mk_esid_data() argument
868 return (ea & slb_esid_mask(ssize)) | SLB_ESID_V | index; in mk_esid_data()
878 static inline unsigned long mk_vsid_data(unsigned long ea, int ssize, in mk_vsid_data() argument
881 return __mk_vsid_data(get_kernel_vsid(ea, ssize), ssize, flags); in mk_vsid_data()