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()
78 *flt = handle_mm_fault(mm, vma, ea, is_write ? FAULT_FLAG_WRITE : 0); in copro_handle_mm_fault()
101 int copro_calculate_slb(struct mm_struct *mm, u64 ea, struct copro_slb *slb) in copro_calculate_slb() argument
106 switch (REGION_ID(ea)) { in copro_calculate_slb()
108 pr_devel("%s: 0x%llx -- USER_REGION_ID\n", __func__, ea); in copro_calculate_slb()
109 psize = get_slice_psize(mm, ea); in copro_calculate_slb()
110 ssize = user_segment_size(ea); in copro_calculate_slb()
111 vsid = get_vsid(mm->context.id, ea, ssize); in copro_calculate_slb()
115 pr_devel("%s: 0x%llx -- VMALLOC_REGION_ID\n", __func__, ea); in copro_calculate_slb()
116 if (ea < VMALLOC_END) in copro_calculate_slb()
121 vsid = get_kernel_vsid(ea, mmu_kernel_ssize); in copro_calculate_slb()
125 pr_devel("%s: 0x%llx -- KERNEL_REGION_ID\n", __func__, ea); in copro_calculate_slb()
128 vsid = get_kernel_vsid(ea, mmu_kernel_ssize); in copro_calculate_slb()
132 pr_debug("%s: invalid region access at %016llx\n", __func__, ea); in copro_calculate_slb()
141 slb->esid = (ea & (ssize == MMU_SEGSIZE_1T ? ESID_MASK_1T : ESID_MASK)) | SLB_ESID_V; in copro_calculate_slb()