Searched refs:pgf_info (Results 1 – 2 of 2) sorted by relevance
2562 struct page_fault_info *pgf_info = &hdev->captured_err_info.page_fault_info; in hl_capture_user_mappings() local2572 pgf_info->num_of_user_mappings = 0; in hl_capture_user_mappings()2585 pgf_info->num_of_user_mappings++; in hl_capture_user_mappings()2589 if (!pgf_info->num_of_user_mappings) in hl_capture_user_mappings()2595 vfree(pgf_info->user_mappings); in hl_capture_user_mappings()2596 pgf_info->user_mappings = in hl_capture_user_mappings()2597 vzalloc(pgf_info->num_of_user_mappings * sizeof(struct hl_user_mapping)); in hl_capture_user_mappings()2598 if (!pgf_info->user_mappings) { in hl_capture_user_mappings()2599 pgf_info->num_of_user_mappings = 0; in hl_capture_user_mappings()2607 pgf_info->user_mappings[map_idx].dev_va = hnode->vaddr; in hl_capture_user_mappings()[all …]
797 struct page_fault_info *pgf_info; in page_fault_info() local802 pgf_info = &hdev->captured_err_info.page_fault_info; in page_fault_info()803 if (!pgf_info->page_fault_info_available) in page_fault_info()806 return copy_to_user(out, &pgf_info->page_fault, in page_fault_info()815 struct page_fault_info *pgf_info; in user_mappings_info() local821 pgf_info = &hdev->captured_err_info.page_fault_info; in user_mappings_info()822 if (!pgf_info->page_fault_info_available) in user_mappings_info()825 args->array_size = pgf_info->num_of_user_mappings; in user_mappings_info()827 actual_size = pgf_info->num_of_user_mappings * sizeof(struct hl_user_mapping); in user_mappings_info()831 return copy_to_user(out, pgf_info->user_mappings, actual_size) ? -EFAULT : 0; in user_mappings_info()