Lines Matching refs:ea
36 int copro_handle_mm_fault(struct mm_struct *mm, unsigned long ea, in copro_handle_mm_fault() argument
51 vma = find_vma(mm, ea); in copro_handle_mm_fault()
55 if (ea < vma->vm_start) { in copro_handle_mm_fault()
58 if (expand_stack(vma, ea)) in copro_handle_mm_fault()
80 *flt = handle_mm_fault(vma, ea, is_write ? FAULT_FLAG_WRITE : 0); in copro_handle_mm_fault()
103 int copro_calculate_slb(struct mm_struct *mm, u64 ea, struct copro_slb *slb) in copro_calculate_slb() argument
108 switch (REGION_ID(ea)) { in copro_calculate_slb()
110 pr_devel("%s: 0x%llx -- USER_REGION_ID\n", __func__, ea); in copro_calculate_slb()
113 psize = get_slice_psize(mm, ea); in copro_calculate_slb()
114 ssize = user_segment_size(ea); in copro_calculate_slb()
115 vsid = get_user_vsid(&mm->context, ea, ssize); in copro_calculate_slb()
119 pr_devel("%s: 0x%llx -- VMALLOC_REGION_ID\n", __func__, ea); in copro_calculate_slb()
120 if (ea < VMALLOC_END) in copro_calculate_slb()
125 vsid = get_kernel_vsid(ea, mmu_kernel_ssize); in copro_calculate_slb()
129 pr_devel("%s: 0x%llx -- KERNEL_REGION_ID\n", __func__, ea); in copro_calculate_slb()
132 vsid = get_kernel_vsid(ea, mmu_kernel_ssize); in copro_calculate_slb()
136 pr_debug("%s: invalid region access at %016llx\n", __func__, ea); in copro_calculate_slb()
148 slb->esid = (ea & (ssize == MMU_SEGSIZE_1T ? ESID_MASK_1T : ESID_MASK)) | SLB_ESID_V; in copro_calculate_slb()