Lines Matching defs:bit_off
114 u32 bit_off;
118 bit_off = offset % 32;
120 return bit_off;
125 u32 bit_off;
134 bit_off = offset % 16;
136 return bit_off;
141 u32 bit_off;
143 bit_off = sppctl_get_moon_reg_and_bit_offset(offset, reg_off);
145 return SPPCTL_SET_MOON_REG_BIT(bit_off);
147 return SPPCTL_CLR_MOON_REG_BIT(bit_off);
227 static void sppctl_gmx_set(struct sppctl_pdata *pctl, u8 reg_off, u8 bit_off, u8 bit_sz,
238 reg = (mask | val) << bit_off;
264 u32 reg_off, bit_off, reg;
266 bit_off = sppctl_get_reg_and_bit_offset(offset, ®_off);
269 return (reg & BIT(bit_off)) ? 1 : 0;
299 u32 reg_off, bit_off, reg;
301 bit_off = sppctl_get_moon_reg_and_bit_offset(offset, ®_off);
303 return (reg & BIT(bit_off)) ? 1 : 0;
310 u32 reg_off, bit_off, reg;
315 bit_off = sppctl_get_reg_and_bit_offset(offset, ®_off);
317 val = (reg & BIT(bit_off)) ? mux_f_gpio : mux_f_mux;
322 reg |= BIT(bit_off);
327 reg &= ~BIT(bit_off);
364 u32 reg_off, bit_off, reg;
366 bit_off = sppctl_get_moon_reg_and_bit_offset(offset, ®_off);
369 return (reg & BIT(bit_off)) ? 1 : 0;
385 u32 reg_off, bit_off, reg;
387 bit_off = sppctl_get_moon_reg_and_bit_offset(offset, ®_off);
390 return (reg & BIT(bit_off)) ? 0 : 1;
396 u32 reg_off, bit_off, reg;
399 bit_off = sppctl_get_moon_reg_and_bit_offset(offset, ®_off);
410 return (reg & BIT(bit_off)) ? 1 : 0;
456 u32 reg_off, bit_off, reg;
458 bit_off = sppctl_get_reg_and_bit_offset(offset, ®_off);
461 return (reg & BIT(bit_off)) ? 1 : 0;