Lines Matching refs:j
66 int i, j; in subtract_range() local
71 for (j = 0; j < az; j++) { in subtract_range()
72 if (!range[j].end) in subtract_range()
75 if (start <= range[j].start && end >= range[j].end) { in subtract_range()
76 range[j].start = 0; in subtract_range()
77 range[j].end = 0; in subtract_range()
81 if (start <= range[j].start && end < range[j].end && in subtract_range()
82 range[j].start < end) { in subtract_range()
83 range[j].start = end; in subtract_range()
88 if (start > range[j].start && end >= range[j].end && in subtract_range()
89 range[j].end > start) { in subtract_range()
90 range[j].end = start; in subtract_range()
94 if (start > range[j].start && end < range[j].end) { in subtract_range()
101 range[i].end = range[j].end; in subtract_range()
107 range[j].end = start; in subtract_range()
127 int i, j, k = az - 1, nr_range = az; in clean_sort_range() local
132 for (j = k; j > i; j--) { in clean_sort_range()
133 if (range[j].end) { in clean_sort_range()
134 k = j; in clean_sort_range()
138 if (j == i) in clean_sort_range()