Lines Matching refs:index
82 int index;
86 index = channel - channel->bpmp->threaded_channels;
87 if (index < 0 || index >= count)
90 return index;
220 int index;
222 index = tegra_bpmp_channel_get_thread_index(channel);
223 if (index < 0) {
224 err = index;
230 clear_bit(index, bpmp->threaded.allocated);
260 unsigned int index;
269 index = find_first_zero_bit(bpmp->threaded.allocated, count);
270 if (index == count) {
275 channel = &bpmp->threaded_channels[index];
282 set_bit(index, bpmp->threaded.allocated);
289 set_bit(index, bpmp->threaded.busy);
295 clear_bit(index, bpmp->threaded.allocated);