Lines Matching refs:slotarg
1039 fixup_slotname(int rval, int *intp, struct searcharg *slotarg) in fixup_slotname() argument
1041 if ((slotarg->slt_name_src == PROM_SLT_NAME) && (rval == -1)) { in fixup_slotname()
1050 for (i = 0; i <= slotarg->minor; i++) { in fixup_slotname()
1059 if (i == slotarg->minor) in fixup_slotname()
1060 (void) strcpy(slotarg->slotnames[i], in fixup_slotname()
1069 if (i == slotarg->minor) in fixup_slotname()
1070 (void) strcpy(slotarg->slotnames[i], in fixup_slotname()
1081 struct searcharg *slotarg = (struct searcharg *)arg; in find_slotname() local
1082 di_prom_handle_t ph = (di_prom_handle_t)slotarg->promp; in find_slotname()
1089 slotarg->minor = dim->dev_minor % 256; in find_slotname()
1091 DBG(2, ("minor number:(%i)\n", slotarg->minor)); in find_slotname()
1100 if (strcmp(fulldevname, slotarg->devpath) == 0) { in find_slotname()
1112 slotarg->slt_name_src = SOLARIS_SLT_NAME; in find_slotname()
1114 return (fixup_slotname(rval, intp, slotarg)); in find_slotname()
1129 slotarg->slt_name_src = PROM_SLT_NAME; in find_slotname()
1131 return (fixup_slotname(rval, intp, slotarg)); in find_slotname()
1135 *slotarg->slotnames[slotarg->minor] = '\0'; in find_slotname()
1142 find_physical_slot_names(const char *devcomp, struct searcharg *slotarg) in find_physical_slot_names() argument
1154 slotarg->devpath = (char *)devcomp; in find_physical_slot_names()
1156 if ((slotarg->promp = di_prom_init()) == DI_PROM_HANDLE_NIL) { in find_physical_slot_names()
1163 0, (void *)slotarg, find_slotname); in find_physical_slot_names()
1165 di_prom_fini(slotarg->promp); in find_physical_slot_names()
1167 if (*slotarg->slotnames[0] != '\0') in find_physical_slot_names()