Lines Matching refs:hcl
2799 struct hwc_class *hcl; in add_class() local
2810 hcl = kmem_zalloc(sizeof (struct hwc_class), KM_SLEEP); in add_class()
2811 hcl->class_exporter = kmem_alloc(strlen(exporter) + 1, KM_SLEEP); in add_class()
2812 hcl->class_name = kmem_alloc(strlen(class) + 1, KM_SLEEP); in add_class()
2813 (void) strcpy(hcl->class_exporter, exporter); in add_class()
2814 (void) strcpy(hcl->class_name, class); in add_class()
2816 hcl->class_next = hcl_head; in add_class()
2817 hcl_head = hcl; in add_class()
2833 struct hwc_class *hcl; in get_class() local
2836 for (hcl = hcl_head; hcl != NULL; hcl = hcl->class_next) { in get_class()
2837 if (strcmp(exporter, hcl->class_exporter) == 0) { in get_class()
2839 buf[n] = hcl->class_name; in get_class()
2851 struct hwc_class *hcl, *hcl1; in read_class_file() local
2861 hcl = hcl_head; in read_class_file()
2862 while (hcl != NULL) { in read_class_file()
2863 kmem_free(hcl->class_exporter, in read_class_file()
2864 strlen(hcl->class_exporter) + 1); in read_class_file()
2865 hcl1 = hcl; in read_class_file()
2866 hcl = hcl->class_next; in read_class_file()
2939 struct hwc_class *hcl; in impl_parlist_to_major() local
2960 for (hcl = hcl_head; hcl != NULL; hcl = hcl->class_next) { in impl_parlist_to_major()
2961 if (strcmp(hwcp->hwc_class_name, hcl->class_name) != 0) in impl_parlist_to_major()
2963 major = ddi_name_to_major(hcl->class_exporter); in impl_parlist_to_major()