Lines Matching defs:word_idx
170 int word_idx, bit_idx;
179 word_idx = evtchn / BITS_PER_LONG;
181 if (active_evtchns(cpu, s, word_idx) & (1ULL << bit_idx))
195 word_idx = start_word_idx;
200 words = MASK_LSBS(pending_words, word_idx);
206 word_idx = 0;
210 word_idx = EVTCHN_FIRST_BIT(words);
212 pending_bits = active_evtchns(cpu, s, word_idx);
226 if (word_idx == start_word_idx) {
244 port = (word_idx * BITS_PER_EVTCHN_WORD) + bit_idx;
251 bit_idx ? word_idx :
252 (word_idx+1) % BITS_PER_EVTCHN_WORD);
257 if ((word_idx != start_word_idx) || (i != 0))
258 pending_words &= ~(1UL << word_idx);
260 word_idx = (word_idx + 1) % BITS_PER_EVTCHN_WORD;
330 int word_idx = i / BITS_PER_EVTCHN_WORD;
334 sync_test_bit(word_idx, BM(&v->evtchn_pending_sel))