Lines Matching defs:npaths
1294 add_to_phci_list(char **phci_list, sv_path_info_t *pi, int npaths, int state,
1300 while (npaths--) {
1346 uint_t npaths;
1360 ioc.ret_elem = &npaths;
1362 npaths == 0) {
1363 logdmsg(("vhci_to_phci: vhci_ctl failed to get npaths: %s\n",
1371 ioc.buf_elem = npaths;
1372 ioc.ret_elem = &npaths;
1373 if ((ioc.ret_buf = (sv_path_info_t *)calloc(npaths,
1377 npaths == 0) {
1383 if (ioc.buf_elem < npaths)
1384 npaths = ioc.buf_elem;
1393 /* allocate one more (than npaths) for the terminating NULL pointer */
1394 if ((phci_list = calloc(npaths + 1, sizeof (char *))) == NULL)
1401 if ((n = add_to_phci_list(phci_list, ioc.ret_buf, npaths,
1425 build_pathlist(char *rootdir, char *vhcipath, char **pathlist, int npaths)
1431 for (i = 0; i < npaths; i++) {
1452 npaths--;
1453 for (j = i; j < npaths; j++)
1455 pathlist[npaths] = NULL;
1463 logdmsg(("build_pathlist: returning npaths = %d, pathlist:\n", npaths));
1466 return (npaths);
1815 int npaths, i, j;
1826 if ((pathlist = vhci_to_phci(physpath, &npaths)) == NULL)
1829 if ((npaths = build_pathlist((char *)rootdir, physpath,
1830 pathlist, npaths)) <= 0) {
1840 if (npaths > 1) {
1841 for (i = 0; i < npaths; i++) {