Lines Matching refs:bit
79 uint8_t bit = pin % 32; in pfc_rcar_set_gpsr() local
84 val |= BIT(bit); in pfc_rcar_set_gpsr()
86 val &= ~BIT(bit); in pfc_rcar_set_gpsr()
158 uint8_t *bit) in pfc_rcar_get_bias_reg() argument
166 *bit = i; in pfc_rcar_get_bias_reg()
179 uint8_t bit; in pfc_rcar_set_bias() local
180 const struct pfc_bias_reg *bias_reg = pfc_rcar_get_bias_reg(pin, &bit); in pfc_rcar_set_bias()
189 sys_write32(val & ~BIT(bit), pfc_base + bias_reg->puen); in pfc_rcar_set_bias()
192 sys_write32(val | BIT(bit), pfc_base + bias_reg->puen); in pfc_rcar_set_bias()
197 sys_write32(val | BIT(bit), pfc_base + bias_reg->pud); in pfc_rcar_set_bias()
199 sys_write32(val & ~BIT(bit), pfc_base + bias_reg->pud); in pfc_rcar_set_bias()
252 static const struct pfc_pocctrl_reg *pfc_rcar_get_pocctrl_reg(uint16_t pin, uint8_t *bit) in pfc_rcar_get_pocctrl_reg() argument
264 *bit = i; in pfc_rcar_get_pocctrl_reg()
277 uint8_t bit; in pfc_rcar_set_voltage() local
280 voltage_reg = pfc_rcar_get_pocctrl_reg(pin, &bit); in pfc_rcar_set_voltage()
289 if (!(val & BIT(bit))) { in pfc_rcar_set_voltage()
292 val &= ~BIT(bit); in pfc_rcar_set_voltage()
295 if (val & BIT(bit)) { in pfc_rcar_set_voltage()
298 val |= BIT(bit); in pfc_rcar_set_voltage()