Lines Matching refs:ea

23 int copro_handle_mm_fault(struct mm_struct *mm, unsigned long ea,  in copro_handle_mm_fault()  argument
38 vma = find_vma(mm, ea); in copro_handle_mm_fault()
42 if (ea < vma->vm_start) { in copro_handle_mm_fault()
45 if (expand_stack(vma, ea)) in copro_handle_mm_fault()
67 *flt = handle_mm_fault(vma, ea, is_write ? FAULT_FLAG_WRITE : 0, NULL); in copro_handle_mm_fault()
91 int copro_calculate_slb(struct mm_struct *mm, u64 ea, struct copro_slb *slb) in copro_calculate_slb() argument
96 switch (get_region_id(ea)) { in copro_calculate_slb()
98 pr_devel("%s: 0x%llx -- USER_REGION_ID\n", __func__, ea); in copro_calculate_slb()
101 psize = get_slice_psize(mm, ea); in copro_calculate_slb()
102 ssize = user_segment_size(ea); in copro_calculate_slb()
103 vsid = get_user_vsid(&mm->context, ea, ssize); in copro_calculate_slb()
107 pr_devel("%s: 0x%llx -- VMALLOC_REGION_ID\n", __func__, ea); in copro_calculate_slb()
110 vsid = get_kernel_vsid(ea, mmu_kernel_ssize); in copro_calculate_slb()
114 pr_devel("%s: 0x%llx -- IO_REGION_ID\n", __func__, ea); in copro_calculate_slb()
117 vsid = get_kernel_vsid(ea, mmu_kernel_ssize); in copro_calculate_slb()
121 pr_devel("%s: 0x%llx -- LINEAR_MAP_REGION_ID\n", __func__, ea); in copro_calculate_slb()
124 vsid = get_kernel_vsid(ea, mmu_kernel_ssize); in copro_calculate_slb()
128 pr_debug("%s: invalid region access at %016llx\n", __func__, ea); in copro_calculate_slb()
140 slb->esid = (ea & (ssize == MMU_SEGSIZE_1T ? ESID_MASK_1T : ESID_MASK)) | SLB_ESID_V; in copro_calculate_slb()