Lines Matching refs:npaths
1294 add_to_phci_list(char **phci_list, sv_path_info_t *pi, int npaths, int state, in add_to_phci_list() argument
1300 while (npaths--) { in add_to_phci_list()
1346 uint_t npaths; in vhci_to_phci() local
1360 ioc.ret_elem = &npaths; in vhci_to_phci()
1362 npaths == 0) { in vhci_to_phci()
1371 ioc.buf_elem = npaths; in vhci_to_phci()
1372 ioc.ret_elem = &npaths; in vhci_to_phci()
1373 if ((ioc.ret_buf = (sv_path_info_t *)calloc(npaths, in vhci_to_phci()
1377 npaths == 0) { in vhci_to_phci()
1383 if (ioc.buf_elem < npaths) in vhci_to_phci()
1384 npaths = ioc.buf_elem; in vhci_to_phci()
1394 if ((phci_list = calloc(npaths + 1, sizeof (char *))) == NULL) in vhci_to_phci()
1401 if ((n = add_to_phci_list(phci_list, ioc.ret_buf, npaths, in vhci_to_phci()
1425 build_pathlist(char *rootdir, char *vhcipath, char **pathlist, int npaths) in build_pathlist() argument
1431 for (i = 0; i < npaths; i++) { in build_pathlist()
1452 npaths--; in build_pathlist()
1453 for (j = i; j < npaths; j++) in build_pathlist()
1455 pathlist[npaths] = NULL; in build_pathlist()
1463 logdmsg(("build_pathlist: returning npaths = %d, pathlist:\n", npaths)); in build_pathlist()
1466 return (npaths); in build_pathlist()
1815 int npaths, i, j; in devfs_install2target() local
1826 if ((pathlist = vhci_to_phci(physpath, &npaths)) == NULL) in devfs_install2target()
1829 if ((npaths = build_pathlist((char *)rootdir, physpath, in devfs_install2target()
1830 pathlist, npaths)) <= 0) { in devfs_install2target()
1840 if (npaths > 1) { in devfs_install2target()
1841 for (i = 0; i < npaths; i++) { in devfs_install2target()