Lines Matching defs:type
98 static boolean_t disk_is_cdrom(const char *type);
535 "INFO: dev: %s, node: %s%d, minor: 0x%x, type: %s\n",
873 char *type;
916 type = di_minor_nodetype(args->minor);
952 * We try to use uscsi later to determine the real type.
958 if (disk_is_cdrom(type)) {
962 } else if (libdiskmgt_str_eq(type, DDI_NT_FD)) {
995 * to get the drive type unless media is inserted,so
1022 char *type;
1025 type = di_minor_nodetype(minor);
1028 /* IDE disks use SCSI nexus as the type, so handle this special case */
1037 if (libdiskmgt_str_eq(type, DDI_NT_SCSI_NEXUS) ||
1038 libdiskmgt_str_eq(type, DDI_NT_SCSI_ATTACHMENT_POINT)) {
1042 if (libdiskmgt_str_eq(type, DDI_NT_FC_ATTACHMENT_POINT)) {
1046 if (libdiskmgt_str_eq(type, DDI_NT_NEXUS) &&
1051 if (libdiskmgt_str_eq(type, DDI_PSEUDO) &&
1056 if (libdiskmgt_str_eq(type, DDI_NT_SATA_NEXUS)) {
1064 disk_is_cdrom(const char *type)
1066 return (strncmp(type, DDI_NT_CD, strlen(DDI_NT_CD)) == 0);
1467 char *type;
1470 type = get_prom_str("device_type", node, ph);
1471 if (type == NULL) {
1472 type = di_node_name(node);
1476 if (libdiskmgt_str_eq(type, bustypes[i])) {
1477 return (type);
1570 char *type;
1574 type = di_minor_nodetype(minor);
1578 if (libdiskmgt_str_eq(type, ctrltypes[type_index])) {
1585 if (libdiskmgt_str_eq(type, DDI_PSEUDO) &&