Lines Matching refs:ndx
813 int ndx = -1; in gw_host_get() local
818 ndx = 0; in gw_host_get()
843 ndx = k; in gw_host_get()
856 ndx = k; in gw_host_get()
868 ndx = k + 1; /* use next host after the last one */ in gw_host_get()
869 if (ndx < 0) ndx = 0; in gw_host_get()
872 while (ndx < ext_used in gw_host_get()
873 && 0 == (host = extension->hosts[ndx])->active_procs) ++ndx; in gw_host_get()
875 if (ndx >= ext_used) { in gw_host_get()
877 for (ndx = 0; ndx <= (int) k; ++ndx) { in gw_host_get()
878 host = extension->hosts[ndx]; in gw_host_get()
883 if (0 == host->active_procs) ndx = -1; in gw_host_get()
887 extension->last_used_ndx = ndx; in gw_host_get()
912 ndx = k; in gw_host_get()
929 if (__builtin_expect( (-1 != ndx), 1)) { in gw_host_get()
933 gw_host * const host = extension->hosts[ndx]; in gw_host_get()
940 return extension->hosts[ndx]; in gw_host_get()