Home
last modified time | relevance | path

Searched refs:pgf_info (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/accel/habanalabs/common/
H A Ddevice.c2728 struct page_fault_info *pgf_info = &hdev->captured_err_info.page_fault_info; in hl_capture_user_mappings() local
2738 pgf_info->num_of_user_mappings = 0; in hl_capture_user_mappings()
2751 pgf_info->num_of_user_mappings++; in hl_capture_user_mappings()
2755 if (!pgf_info->num_of_user_mappings) in hl_capture_user_mappings()
2761 vfree(pgf_info->user_mappings); in hl_capture_user_mappings()
2762 pgf_info->user_mappings = in hl_capture_user_mappings()
2763 vzalloc(pgf_info->num_of_user_mappings * sizeof(struct hl_user_mapping)); in hl_capture_user_mappings()
2764 if (!pgf_info->user_mappings) { in hl_capture_user_mappings()
2765 pgf_info->num_of_user_mappings = 0; in hl_capture_user_mappings()
2773 pgf_info->user_mappings[map_idx].dev_va = hnode->vaddr; in hl_capture_user_mappings()
[all …]
H A Dhabanalabs_ioctl.c850 struct page_fault_info *pgf_info; in page_fault_info() local
855 pgf_info = &hdev->captured_err_info.page_fault_info; in page_fault_info()
856 if (!pgf_info->page_fault_info_available) in page_fault_info()
859 return copy_to_user(out, &pgf_info->page_fault, in page_fault_info()
868 struct page_fault_info *pgf_info; in user_mappings_info() local
874 pgf_info = &hdev->captured_err_info.page_fault_info; in user_mappings_info()
875 if (!pgf_info->page_fault_info_available) in user_mappings_info()
878 args->array_size = pgf_info->num_of_user_mappings; in user_mappings_info()
880 actual_size = pgf_info->num_of_user_mappings * sizeof(struct hl_user_mapping); in user_mappings_info()
884 return copy_to_user(out, pgf_info->user_mappings, actual_size) ? -EFAULT : 0; in user_mappings_info()