Home
last modified time | relevance | path

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

/titanic_50/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_50/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_50/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_50/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_50/usr/src/uts/common/os/
H A Ddevid_cache.c786 int ndevis, npaths; in e_devid_cache_devi_path_lists() local
794 npaths = 0; in e_devid_cache_devi_path_lists()
843 if (npaths < retmax) in e_devid_cache_devi_path_lists()
844 retpaths[npaths++] = np->nvp_devpath; in e_devid_cache_devi_path_lists()
851 *retnpaths = npaths; in e_devid_cache_devi_path_lists()
873 int ndevis, npaths, nalloced; in e_devid_cache_to_devt_list() local
892 &ndevis, devis, &npaths, paths); in e_devid_cache_to_devt_list()
903 for (i = 0; i < npaths; i++) { in e_devid_cache_to_devt_list()
909 if (ndevis == 0 && npaths == 0) { in e_devid_cache_to_devt_list()
931 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_50/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_50/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_50/usr/src/uts/common/fs/dev/
H A Dsdev_subr.c2817 int npaths = 0; in sdev_modctl_readdir() local
2874 if (npaths == npaths_alloc) { in sdev_modctl_readdir()
2881 npaths * sizeof (char *)); in sdev_modctl_readdir()
2883 (npaths + 1) * sizeof (char *)); in sdev_modctl_readdir()
2890 pathlist[npaths++] = s; in sdev_modctl_readdir()
2911 *npathsp = npaths; in sdev_modctl_readdir()
2918 sdev_modctl_readdir_free(char **pathlist, int npaths, int npaths_alloc) in sdev_modctl_readdir_free() argument
2922 for (i = 0; i < npaths; i++) { in sdev_modctl_readdir_free()
/titanic_50/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()
1604 int i, npaths = sip->dss_npaths; in rfs4_dss_remove_leaf() local
1606 for (i = 0; i < npaths; i++) { in rfs4_dss_remove_leaf()
H A Dnfs4_srv.c9869 int i, size, npaths; in build_symlink() local
9896 npaths = 0; in build_symlink()
9903 npaths++; in build_symlink()
/titanic_50/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_50/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()