Lines Matching refs:cnt
827 int rv, i, j, nelems, cnt;
835 for (i = 0, cnt = 0; i < nelems; i += pcells, cnt++) {
850 if (cnt == idx) {
864 *ncells = cnt;
922 int rv, i, cnt, nelems;
930 for (i = 0, cnt = 0; i < nelems; cnt++) {
932 *idx = cnt;
953 int i, cnt, nelems, len;
961 for (i = 0, cnt = 0; i < nelems; cnt++)
965 array = malloc((cnt + 1) * sizeof(char *) + nelems, M_OFWPROP,
969 tptr = (char *)(array + cnt + 1);
976 for (i = 0, cnt = 0; i < nelems; cnt++) {
978 array[cnt] = tptr;
982 array[cnt] = NULL;
985 return (cnt);