Lines Matching refs:j
67 int i, j; in subtract_range() local
72 for (j = 0; j < az; j++) { in subtract_range()
73 if (!range[j].end) in subtract_range()
76 if (start <= range[j].start && end >= range[j].end) { in subtract_range()
77 range[j].start = 0; in subtract_range()
78 range[j].end = 0; in subtract_range()
82 if (start <= range[j].start && end < range[j].end && in subtract_range()
83 range[j].start < end) { in subtract_range()
84 range[j].start = end; in subtract_range()
89 if (start > range[j].start && end >= range[j].end && in subtract_range()
90 range[j].end > start) { in subtract_range()
91 range[j].end = start; in subtract_range()
95 if (start > range[j].start && end < range[j].end) { in subtract_range()
102 range[i].end = range[j].end; in subtract_range()
108 range[j].end = start; in subtract_range()
128 int i, j, k = az - 1, nr_range = az; in clean_sort_range() local
133 for (j = k; j > i; j--) { in clean_sort_range()
134 if (range[j].end) { in clean_sort_range()
135 k = j; in clean_sort_range()
139 if (j == i) in clean_sort_range()