Lines Matching refs:bit
46 static inline unsigned int ilsel_offset(unsigned int bit) in ilsel_offset() argument
48 return ILSEL_LEVELS - bit - 1; in ilsel_offset()
51 static inline unsigned long mk_ilsel_addr(unsigned int bit) in mk_ilsel_addr() argument
53 return ILSEL_BASE + ((ilsel_offset(bit) >> 1) & ~0x1); in mk_ilsel_addr()
56 static inline unsigned int mk_ilsel_shift(unsigned int bit) in mk_ilsel_shift() argument
58 return (ilsel_offset(bit) & 0x3) << 2; in mk_ilsel_shift()
61 static void __ilsel_enable(ilsel_source_t set, unsigned int bit) in __ilsel_enable() argument
68 addr = mk_ilsel_addr(bit); in __ilsel_enable()
69 shift = mk_ilsel_shift(bit); in __ilsel_enable()
72 __func__, bit, addr, shift, set); in __ilsel_enable()
94 unsigned int bit; in ilsel_enable() local
102 bit = find_first_zero_bit(&ilsel_level_map, ILSEL_LEVELS); in ilsel_enable()
103 } while (test_and_set_bit(bit, &ilsel_level_map)); in ilsel_enable()
105 __ilsel_enable(set, bit); in ilsel_enable()
107 return bit; in ilsel_enable()
124 unsigned int bit = ilsel_offset(level - 1); in ilsel_enable_fixed() local
126 if (test_and_set_bit(bit, &ilsel_level_map)) in ilsel_enable_fixed()
129 __ilsel_enable(set, bit); in ilsel_enable_fixed()
131 return bit; in ilsel_enable_fixed()