Lines Matching refs:classbuf
348 lookup_name_class_map(char *classbuf, const char *nm)
360 (void) strlcpy(classbuf, ptr->piclclass,
375 (void) strlcpy(classbuf, builtin_map_ptr[i].piclclass,
491 get_minor_class(char *classbuf, di_node_t dn)
507 (void) strlcpy(classbuf, mi_name, PICL_CLASSNAMELEN_MAX);
519 (void) strcpy(classbuf, PICL_CLASS_BLOCK);
521 (void) strcpy(classbuf, PICL_CLASS_BLOCK);
523 (void) strcpy(classbuf, PICL_CLASS_CDROM);
525 (void) strcpy(classbuf, PICL_CLASS_CDROM);
527 (void) strcpy(classbuf, PICL_CLASS_FLOPPY);
529 (void) strcpy(classbuf, PICL_CLASS_FABRIC);
531 (void) strcpy(classbuf, PICL_CLASS_SAS);
533 (void) strcpy(classbuf, PICL_CLASS_BLOCK);
535 (void) strcpy(classbuf, PICL_CLASS_MOUSE);
537 (void) strcpy(classbuf, PICL_CLASS_KEYBOARD);
539 (void) strcpy(classbuf, PICL_CLASS_ATTACHMENT_POINT);
541 (void) strcpy(classbuf, PICL_CLASS_TAPE);
543 (void) strcpy(classbuf, PICL_CLASS_SCSI);
550 (void) strcpy(classbuf, colon);
555 (void) strlcpy(classbuf, mi_name, PICL_CLASSNAMELEN_MAX);
601 get_node_class(char *classbuf, di_node_t dn, const char *nodename)
603 if (get_device_type(classbuf, dn) == 0) {
608 if ((strcmp(classbuf, DEVICE_TYPE_BLOCK) == 0) ||
609 (strcmp(classbuf, DEVICE_TYPE_BYTE) == 0) ||
610 (strcmp(classbuf, DEVICE_TYPE_SES) == 0) ||
611 (strcmp(classbuf, DEVICE_TYPE_FP) == 0) ||
612 (strcmp(classbuf, DEVICE_TYPE_DISK) == 0))
620 if (get_compatible_class(classbuf, dn) == 0) {
624 if (lookup_name_class_map(classbuf, nodename) == 0)
628 (void) strcpy(classbuf, PICL_CLASS_OBP_DEVICE);
632 return (get_minor_class(classbuf, dn));