Lines Matching refs:ways
86 static inline int eiw_to_ways(u8 eiw, unsigned int *ways)
90 *ways = 1 << eiw;
93 *ways = 3 << (eiw - 8);
111 static inline int ways_to_eiw(unsigned int ways, u8 *eiw)
113 if (ways > 16)
115 if (is_power_of_2(ways)) {
116 *eiw = ilog2(ways);
119 if (ways % 3)
121 ways /= 3;
122 if (!is_power_of_2(ways))
124 *eiw = ilog2(ways) + 8;