Lines Matching defs:bit_idx
170 int word_idx, bit_idx;
180 bit_idx = evtchn % BITS_PER_LONG;
181 if (active_evtchns(cpu, s, word_idx) & (1ULL << bit_idx))
207 bit_idx = 0;
213 bit_idx = 0; /* usually scan entire word from start */
228 bit_idx = start_bit_idx;
235 bits = MASK_LSBS(pending_bits, bit_idx);
241 bit_idx = EVTCHN_FIRST_BIT(bits);
244 port = (word_idx * BITS_PER_EVTCHN_WORD) + bit_idx;
247 bit_idx = (bit_idx + 1) % BITS_PER_EVTCHN_WORD;
251 bit_idx ? word_idx :
253 __this_cpu_write(current_bit_idx, bit_idx);
254 } while (bit_idx != 0);