Lines Matching refs:index
83 int index;
87 index = channel - channel->bpmp->threaded_channels;
88 if (index < 0 || index >= count)
91 return index;
221 int index;
223 index = tegra_bpmp_channel_get_thread_index(channel);
224 if (index < 0) {
225 err = index;
231 clear_bit(index, bpmp->threaded.allocated);
261 unsigned int index;
270 index = find_first_zero_bit(bpmp->threaded.allocated, count);
271 if (index == count) {
276 channel = &bpmp->threaded_channels[index];
283 set_bit(index, bpmp->threaded.allocated);
290 set_bit(index, bpmp->threaded.busy);
296 clear_bit(index, bpmp->threaded.allocated);