Lines Matching refs:hcl
2753 struct hwc_class *hcl; in add_class() local
2764 hcl = kmem_zalloc(sizeof (struct hwc_class), KM_SLEEP); in add_class()
2765 hcl->class_exporter = kmem_alloc(strlen(exporter) + 1, KM_SLEEP); in add_class()
2766 hcl->class_name = kmem_alloc(strlen(class) + 1, KM_SLEEP); in add_class()
2767 (void) strcpy(hcl->class_exporter, exporter); in add_class()
2768 (void) strcpy(hcl->class_name, class); in add_class()
2770 hcl->class_next = hcl_head; in add_class()
2771 hcl_head = hcl; in add_class()
2787 struct hwc_class *hcl; in get_class() local
2790 for (hcl = hcl_head; hcl != NULL; hcl = hcl->class_next) { in get_class()
2791 if (strcmp(exporter, hcl->class_exporter) == 0) { in get_class()
2793 buf[n] = hcl->class_name; in get_class()
2805 struct hwc_class *hcl, *hcl1; in read_class_file() local
2815 hcl = hcl_head; in read_class_file()
2816 while (hcl != NULL) { in read_class_file()
2817 kmem_free(hcl->class_exporter, in read_class_file()
2818 strlen(hcl->class_exporter) + 1); in read_class_file()
2819 hcl1 = hcl; in read_class_file()
2820 hcl = hcl->class_next; in read_class_file()
2893 struct hwc_class *hcl; in impl_parlist_to_major() local
2914 for (hcl = hcl_head; hcl != NULL; hcl = hcl->class_next) { in impl_parlist_to_major()
2915 if (strcmp(hwcp->hwc_class_name, hcl->class_name) != 0) in impl_parlist_to_major()
2917 major = ddi_name_to_major(hcl->class_exporter); in impl_parlist_to_major()