Lines Matching refs:label

179  * Return the generated generic slot label.
194 /* grab the topo pci label */
209 /* create the label */
225 /* return label */
226 topo_mod_dprintf(mod, "%s: generic label(%s)\n", f, g_label);
231 * Return TRUE if chassis label is an 'internal' chassis.
489 * hba label.
499 * Get the pci slot label.
515 cbs.label = topo_mod_alloc(mod, MAXNAMELEN);
537 /* no label */
538 if (strlen(cbs.label) == 0) {
539 topo_mod_dprintf(mod, "%s: no label for (%s)\n", f,
544 topo_mod_dprintf(mod, "%s: topo label for (%s):(%s)\n",
545 f, cbs.devfs_path, cbs.label);
548 return (cbs.label);
555 * Get the slot id by parsing the pci label for the slot, or return 0 if
556 * it's an on-board device (label == "MB").
564 char *label = NULL;
566 label = get_pcilabel(mod, tnp, dnode);
567 if (label == NULL) {
573 if (cmp_str(label, "MB")) {
578 /* extract the slot id from the label */
579 for (i = (strlen(label) + 1), j = 2; i >= 0; i--, j--) {
580 if (label[i] < '0' && label[i] > '9' &&
581 label[i] != '\0')
583 n[j] = label[i];
592 topo_mod_free(mod, label, MAXNAMELEN);
609 char *label = NULL;
638 label = token;
649 ch_sn == NULL || label == NULL) {
661 for (i = 0; i < strlen(label); i++) {
662 if (label[i] == '\n') {
663 label[i] = '\0';
668 "chassis label(%s) chassis S/N(%s) phy(%d) bay label(%s)\n",
669 prod, drv_name, drv_inst, ch_l, ch_sn, phy, label);
679 bp->label = topo_mod_strdup(mod, label);
706 * "product:driver name:instance:product name:product s/n:PHY:label"
747 * Get the pci slot id from the HBA pcibus topo label.
749 * required to figure out the correct slot-id/label.