Home
last modified time | relevance | path

Searched refs:npaths (Results 1 – 24 of 24) sorted by relevance

/titanic_41/usr/src/cmd/svr4pkg/pkgchk/
H A Dmain.c100 short npaths; variable
190 pathlist[npaths] = strtok(optarg, " , "); in main()
191 if (pathlist[npaths++] == NULL) { in main()
195 while (pathlist[npaths] = strtok(NULL, " , ")) { in main()
196 if (npaths++ >= MAXPATHS) { in main()
304 ppathlist[npaths] = strtok(optarg, " , "); in main()
305 if ((ppathlist[npaths] == NULL) || in main()
306 (ppathlist[npaths][0] == '-')) { in main()
310 npaths++; in main()
311 while (ppathlist[npaths] = strtok(NULL, " , ")) { in main()
[all …]
H A Dcheckmap.c51 extern short npaths;
379 if (!npaths) in selpath()
382 for (n = 0; n < npaths; n++) { in selpath()
/titanic_41/usr/src/lib/libdevinfo/
H A Ddevinfo_finddev.c51 int npaths; member
118 handle->npaths = 0; in finddev_readdir_alt()
131 handle->npaths = n; in finddev_readdir_alt()
145 if (n == handle->npaths) { in finddev_readdir_alt()
193 handle->npaths = 0; in finddev_readdir_devfs()
217 handle->npaths = n; in finddev_readdir_devfs()
324 for (i = 0; i < handle->npaths; i++) { in finddev_close()
338 if (handle->curpath < handle->npaths) { in finddev_next()
H A Ddevfsmap.c1294 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()
[all …]
/titanic_41/usr/src/lib/libdtrace_jni/java/src/org/opensolaris/os/dtrace/
H A DUtility.java71 String[] npaths = new String[paths.length * 2]; in loadLibrary() local
73 npaths[i] = root + "/" + paths[i]; in loadLibrary()
74 npaths[i + paths.length] = paths[i]; in loadLibrary()
76 paths = npaths; in loadLibrary()
/titanic_41/usr/src/cmd/fs.d/nfs/nfsd/
H A Dnfsd.c90 static int dss_init(uint_t npaths, char **pathnames);
91 static void dss_mkleafdirs(uint_t npaths, char **pathnames);
771 dss_mkleafdirs(uint_t npaths, char **pathnames) in dss_mkleafdirs() argument
788 for (i = 0; i < npaths; i++) { in dss_mkleafdirs()
829 dss_init(uint_t npaths, char **pathnames) in dss_init() argument
837 if (npaths > 1) { in dss_init()
846 qsort(pathnames, npaths, sizeof (char *), qstrcmp); in dss_init()
850 while (j < npaths) { in dss_init()
868 nreal = npaths - nskipped; in dss_init()
877 for (i = 0, j = 0; i < npaths; i++) in dss_init()
[all …]
/titanic_41/usr/src/uts/common/os/
H A Ddevid_cache.c787 int ndevis, npaths; in e_devid_cache_devi_path_lists() local
795 npaths = 0; in e_devid_cache_devi_path_lists()
844 if (npaths < retmax) in e_devid_cache_devi_path_lists()
845 retpaths[npaths++] = np->nvp_devpath; in e_devid_cache_devi_path_lists()
852 *retnpaths = npaths; in e_devid_cache_devi_path_lists()
874 int ndevis, npaths, nalloced; in e_devid_cache_to_devt_list() local
893 &ndevis, devis, &npaths, paths); in e_devid_cache_to_devt_list()
904 for (i = 0; i < npaths; i++) { in e_devid_cache_to_devt_list()
910 if (ndevis == 0 && npaths == 0) { in e_devid_cache_to_devt_list()
932 for (i = 0; i < npaths; i++) { in e_devid_cache_to_devt_list()
[all …]
H A Dmodctl.c2162 int npaths; in modctl_devreaddir() local
2190 &npaths, &npaths_alloc, 0)) != 0) { in modctl_devreaddir()
2196 for (i = 0; i < npaths; i++) { in modctl_devreaddir()
2210 for (i = 0; i < npaths; i++) { in modctl_devreaddir()
2230 sdev_modctl_readdir_free(dirlist, npaths, npaths_alloc); in modctl_devreaddir()
2243 int npaths; in modctl_devemptydir() local
2258 &npaths, &npaths_alloc, 1)) != 0) { in modctl_devemptydir()
2262 empty = npaths ? 0 : 1; in modctl_devemptydir()
2268 sdev_modctl_readdir_free(dirlist, npaths, npaths_alloc); in modctl_devemptydir()
H A Dsunddi.c7613 ddi_debug_devid_paths(char *msg, int npaths, char **paths) in ddi_debug_devid_paths() argument
7618 for (i = 0; i < npaths; i++) { in ddi_debug_devid_paths()
/titanic_41/usr/src/cmd/lvm/metassist/common/
H A Dvolume_devconfig.c1349 uint16_t npaths) in devconfig_set_volume_npaths() argument
1352 if (npaths < MIN_NDATAPATHS || npaths > MAX_NDATAPATHS) { in devconfig_set_volume_npaths()
1355 npaths, MIN_NDATAPATHS, MAX_NDATAPATHS); in devconfig_set_volume_npaths()
1359 return (set_uint16(volume->attributes, ATTR_VOLUME_DATAPATHS, npaths)); in devconfig_set_volume_npaths()
1381 uint16_t *npaths) in devconfig_get_volume_npaths() argument
1384 volume->attributes, ATTR_VOLUME_DATAPATHS, npaths); in devconfig_get_volume_npaths()
H A Dvolume_devconfig.h891 extern int devconfig_set_volume_npaths(devconfig_t *volume, uint16_t npaths);
909 extern int devconfig_get_volume_npaths(devconfig_t *volume, uint16_t *npaths);
/titanic_41/usr/src/cmd/lvm/metassist/layout/
H A Dlayout_hsp.c90 uint16_t npaths);
407 uint16_t npaths = 0; in populate_hsp() local
425 (error = get_volume_npaths(request, &npaths)); in populate_hsp()
517 &avail, hbas, disks, npaths); in populate_hsp()
860 uint16_t npaths) in choose_spare_for_component() argument
891 error = choose_slice(csize, npaths, *avail, *all_spares, in choose_spare_for_component()
909 csize, npaths, *avail, *all_spares, used_hbas, in choose_spare_for_component()
H A Dlayout_concat.c379 uint16_t npaths = 0; in populate_concat() local
386 (error = get_volume_npaths(request, &npaths)); in populate_concat()
430 error = choose_slice((nbytes-capacity), npaths, slices, comps, in populate_concat()
H A Dlayout_slice.c78 uint16_t npaths,
205 uint16_t npaths, in choose_slice() argument
315 (error = slice_has_n_paths(slice, npaths, &paths)) || in choose_slice()
336 if (npaths > 1) { in choose_slice()
341 } else if (npaths == 1) { in choose_slice()
384 oprintf(OUTPUT_VERBOSE, insuff_paths, npaths); in choose_slice()
1834 uint16_t npaths, in slice_has_n_paths() argument
1841 if ((npaths > 1) && (is_mpxio_enabled() == B_TRUE)) { in slice_has_n_paths()
1849 if ((error == 0) && (dlist_length(paths) == npaths)) { in slice_has_n_paths()
H A Dlayout_validate.c1209 uint16_t npaths = 0; in validate_request_npaths() local
1215 if ((error = devconfig_get_volume_npaths(req, &npaths)) != 0) { in validate_request_npaths()
1222 if (npaths < minpaths || npaths > maxpaths) { in validate_request_npaths()
1230 if ((npaths > 1) && (is_mpxio_enabled() != B_TRUE)) { in validate_request_npaths()
1235 npaths); in validate_request_npaths()
H A Dlayout_slice.h95 uint16_t npaths,
H A Dlayout_stripe.c465 uint16_t npaths = 0; in populate_stripe() local
480 (error = get_volume_npaths(request, &npaths)); in populate_stripe()
537 error = choose_slice(rsize, npaths, slices, comps, in populate_stripe()
/titanic_41/usr/src/cmd/stmsboot/
H A Dstmsboot_util.c1322 uint_t npaths = 0; in vhci_to_phci() local
1332 ioc.ret_elem = &npaths; in vhci_to_phci()
1334 if (rv || npaths == 0) { in vhci_to_phci()
1343 ioc.buf_elem = npaths; in vhci_to_phci()
1344 ioc.ret_elem = &npaths; in vhci_to_phci()
1345 if ((ioc.ret_buf = calloc(npaths, sizeof (sv_path_info_t))) in vhci_to_phci()
1349 if (rv || npaths == 0) { in vhci_to_phci()
1357 if (ioc.buf_elem < npaths) in vhci_to_phci()
1358 npaths = ioc.buf_elem; in vhci_to_phci()
1369 while (npaths--) { in vhci_to_phci()
/titanic_41/usr/src/lib/libzfs_jni/common/
H A Dlibzfs_jni_dataset.c739 jint npaths; in zjni_get_Datasets_dependents() local
752 npaths = (*env)->GetArrayLength(env, paths); in zjni_get_Datasets_dependents()
753 for (i = 0; i < npaths; i++) { in zjni_get_Datasets_dependents()
/titanic_41/usr/src/uts/common/fs/dev/
H A Dsdev_subr.c2822 int npaths = 0; in sdev_modctl_readdir() local
2879 if (npaths == npaths_alloc) { in sdev_modctl_readdir()
2886 npaths * sizeof (char *)); in sdev_modctl_readdir()
2888 (npaths + 1) * sizeof (char *)); in sdev_modctl_readdir()
2895 pathlist[npaths++] = s; in sdev_modctl_readdir()
2916 *npathsp = npaths; in sdev_modctl_readdir()
2923 sdev_modctl_readdir_free(char **pathlist, int npaths, int npaths_alloc) in sdev_modctl_readdir_free() argument
2927 for (i = 0; i < npaths; i++) { in sdev_modctl_readdir_free()
/titanic_41/usr/src/uts/common/fs/nfs/
H A Dnfs4_state.c710 int npaths = 1; in rfs4_ss_init() local
714 rfs4_dss_readstate(npaths, &default_dss_path); in rfs4_ss_init()
774 rfs4_dss_readstate(int npaths, char **paths) in rfs4_dss_readstate() argument
782 for (i = 0; i < npaths; i++) { in rfs4_dss_readstate()
948 int i, npaths = sip->dss_npaths; in rfs4_ss_clid_write() local
951 for (i = 0; i < npaths; i++) { in rfs4_ss_clid_write()
1607 int i, npaths = sip->dss_npaths; in rfs4_dss_remove_leaf() local
1609 for (i = 0; i < npaths; i++) { in rfs4_dss_remove_leaf()
H A Dnfs4_srv.c9795 int i, size, npaths; in build_symlink() local
9822 npaths = 0; in build_symlink()
9829 npaths++; in build_symlink()
/titanic_41/usr/src/uts/common/io/ib/mgt/ibdm/
H A Dibdm.c1991 uint_t npaths = 0; in ibdm_get_reachable_ports() local
2100 npaths++; in ibdm_get_reachable_ports()
2103 IBTF_DPRINTF_L4("ibdm", "\tget_reachable_ports: npaths = %d", npaths); in ibdm_get_reachable_ports()
2104 return (npaths); in ibdm_get_reachable_ports()
4503 uint8_t ii, npaths; in ibdm_create_gid_info() local
4511 npaths = 1; in ibdm_create_gid_info()
4516 sgid, dgid, IBMF_SAA_PKEY_WC, 0, B_TRUE, &npaths, 0, in ibdm_create_gid_info()
6812 uint8_t npaths = 1; in ibdm_reset_gidinfo() local
6866 IBMF_SAA_PKEY_WC, 0, B_TRUE, &npaths, 0, &path_len, &path); in ibdm_reset_gidinfo()
/titanic_41/usr/src/uts/common/io/ib/mgt/ibcm/
H A Dibcm_ti.c5665 uint8_t npaths; in ibt_gid_to_node_info() local
5774 npaths = 1; in ibt_gid_to_node_info()
5778 sgid, gid, 0, 0, B_TRUE, &npaths, 0, &len, in ibt_gid_to_node_info()
5788 } else if ((npaths == 0) || (path == NULL)) { in ibt_gid_to_node_info()
6108 uint8_t npaths; in ibt_get_companion_port_gids() local
6276 npaths = 1; in ibt_get_companion_port_gids()
6280 sgid, gid, 0, 0, B_TRUE, &npaths, 0, &len, in ibt_get_companion_port_gids()
6291 } else if ((npaths == 0) || (path == NULL)) { in ibt_get_companion_port_gids()