Lines Matching refs:idx

867 	int		idx;
909 for (idx = port->ver_idx; idx < DS_NUM_VER; idx++) {
910 if (ds_vers[idx].major <= nack->major_vers) {
916 if (idx == DS_NUM_VER) {
927 port->ver_idx = idx;
938 int idx;
945 for (idx = 0; idx < ds_svcs.maxsvcs; idx++) {
946 svc = ds_svcs.tbl[idx];
1318 int idx;
1389 for (idx = svc->ver_idx; idx < svc->cap.nvers; idx++) {
1390 if (svc->cap.vers[idx].major <= nack->major_vers) {
1396 if (idx == svc->cap.nvers) {
1408 svc->ver_idx = idx;
2014 int idx;
2020 for (idx = 0; idx < ds_svcs.maxsvcs; idx++) {
2021 svc = ds_svcs.tbl[idx];
2028 return (idx);
2110 int idx;
2116 for (idx = 0; idx < ds_svcs.maxsvcs; idx++) {
2117 svc = ds_svcs.tbl[idx];
2186 int idx;
2195 for (idx = 0; idx < DS_MAX_PORTS; idx++) {
2196 if (DS_PORT_IN_SET(svc->tried, idx))
2197 DS_PORTSET_DEL(ports, idx);
2210 for (idx = 0; idx < DS_MAX_PORTS; idx++) {
2216 if (!DS_PORT_IN_SET(ports, idx)) {
2220 port = &ds_ports[idx];
2330 int idx;
2337 idx = ds_walk_svcs(ds_svc_isfree, NULL);
2339 if (idx != ds_svcs.maxsvcs) {
2360 idx = ds_walk_svcs(ds_svc_isfree, NULL);
2363 ASSERT(idx != ds_svcs.maxsvcs);
2367 if ((newsvc = ds_svcs.tbl[idx]) == NULL) {
2370 ds_svcs.tbl[idx] = newsvc;
2374 newsvc->hdl = DS_ALLOC_HDL(idx, DS_HDL2COUNT(newsvc->hdl));
2399 int idx;
2407 idx = DS_HDL2IDX(hdl);
2410 if ((idx < 0) || (idx >= ds_svcs.maxsvcs))
2413 svc = ds_svcs.tbl[idx];
2450 int idx;
2460 for (idx = 0; idx < nvers; idx++) {
2461 if (vers[idx].major > curr_major) {
2467 if (vers[idx].major < curr_major) {
2468 curr_major = vers[idx].major;
2469 curr_minor = vers[idx].minor;
2473 if (vers[idx].minor > curr_minor) {
2479 curr_minor = vers[idx].minor;
3164 int idx;
3172 for (idx = 0; idx < ds_svcs.maxsvcs; idx++) {
3173 svc = ds_svcs.tbl[idx];
3233 int idx;
3240 for (idx = 0; idx < ds_svcs.maxsvcs && nhdls < maxhdls; idx++) {
3241 svc = ds_svcs.tbl[idx];