Lines Matching refs:hcl
2756 struct hwc_class *hcl; in add_class() local
2767 hcl = kmem_zalloc(sizeof (struct hwc_class), KM_SLEEP); in add_class()
2768 hcl->class_exporter = kmem_alloc(strlen(exporter) + 1, KM_SLEEP); in add_class()
2769 hcl->class_name = kmem_alloc(strlen(class) + 1, KM_SLEEP); in add_class()
2770 (void) strcpy(hcl->class_exporter, exporter); in add_class()
2771 (void) strcpy(hcl->class_name, class); in add_class()
2773 hcl->class_next = hcl_head; in add_class()
2774 hcl_head = hcl; in add_class()
2790 struct hwc_class *hcl; in get_class() local
2793 for (hcl = hcl_head; hcl != NULL; hcl = hcl->class_next) { in get_class()
2794 if (strcmp(exporter, hcl->class_exporter) == 0) { in get_class()
2796 buf[n] = hcl->class_name; in get_class()
2808 struct hwc_class *hcl, *hcl1; in read_class_file() local
2818 hcl = hcl_head; in read_class_file()
2819 while (hcl != NULL) { in read_class_file()
2820 kmem_free(hcl->class_exporter, in read_class_file()
2821 strlen(hcl->class_exporter) + 1); in read_class_file()
2822 hcl1 = hcl; in read_class_file()
2823 hcl = hcl->class_next; in read_class_file()
2896 struct hwc_class *hcl; in impl_parlist_to_major() local
2917 for (hcl = hcl_head; hcl != NULL; hcl = hcl->class_next) { in impl_parlist_to_major()
2918 if (strcmp(hwcp->hwc_class_name, hcl->class_name) != 0) in impl_parlist_to_major()
2920 major = ddi_name_to_major(hcl->class_exporter); in impl_parlist_to_major()