Lines Matching refs:bit_off
113 u32 bit_off;
117 bit_off = offset % 32;
119 return bit_off;
124 u32 bit_off;
133 bit_off = offset % 16;
135 return bit_off;
140 u32 bit_off;
142 bit_off = sppctl_get_moon_reg_and_bit_offset(offset, reg_off);
144 return SPPCTL_SET_MOON_REG_BIT(bit_off);
146 return SPPCTL_CLR_MOON_REG_BIT(bit_off);
226 static void sppctl_gmx_set(struct sppctl_pdata *pctl, u8 reg_off, u8 bit_off, u8 bit_sz,
237 reg = (mask | val) << bit_off;
263 u32 reg_off, bit_off, reg;
265 bit_off = sppctl_get_reg_and_bit_offset(offset, ®_off);
268 return (reg & BIT(bit_off)) ? 1 : 0;
298 u32 reg_off, bit_off, reg;
300 bit_off = sppctl_get_moon_reg_and_bit_offset(offset, ®_off);
302 return (reg & BIT(bit_off)) ? 1 : 0;
309 u32 reg_off, bit_off, reg;
314 bit_off = sppctl_get_reg_and_bit_offset(offset, ®_off);
316 val = (reg & BIT(bit_off)) ? mux_f_gpio : mux_f_mux;
321 reg |= BIT(bit_off);
326 reg &= ~BIT(bit_off);
363 u32 reg_off, bit_off, reg;
365 bit_off = sppctl_get_moon_reg_and_bit_offset(offset, ®_off);
368 return (reg & BIT(bit_off)) ? 1 : 0;
384 u32 reg_off, bit_off, reg;
386 bit_off = sppctl_get_moon_reg_and_bit_offset(offset, ®_off);
389 return (reg & BIT(bit_off)) ? 0 : 1;
395 u32 reg_off, bit_off, reg;
398 bit_off = sppctl_get_moon_reg_and_bit_offset(offset, ®_off);
409 return (reg & BIT(bit_off)) ? 1 : 0;
455 u32 reg_off, bit_off, reg;
457 bit_off = sppctl_get_reg_and_bit_offset(offset, ®_off);
460 return (reg & BIT(bit_off)) ? 1 : 0;