Lines Matching refs:reg_val
75 uint8_t reg_val; in __adp5520_ack_bits() local
80 ret = __adp5520_read(client, reg, ®_val); in __adp5520_ack_bits()
83 reg_val |= bit_mask; in __adp5520_ack_bits()
84 ret = __adp5520_write(client, reg, reg_val); in __adp5520_ack_bits()
106 uint8_t reg_val; in adp5520_set_bits() local
111 ret = __adp5520_read(chip->client, reg, ®_val); in adp5520_set_bits()
113 if (!ret && ((reg_val & bit_mask) != bit_mask)) { in adp5520_set_bits()
114 reg_val |= bit_mask; in adp5520_set_bits()
115 ret = __adp5520_write(chip->client, reg, reg_val); in adp5520_set_bits()
126 uint8_t reg_val; in adp5520_clr_bits() local
131 ret = __adp5520_read(chip->client, reg, ®_val); in adp5520_clr_bits()
133 if (!ret && (reg_val & bit_mask)) { in adp5520_clr_bits()
134 reg_val &= ~bit_mask; in adp5520_clr_bits()
135 ret = __adp5520_write(chip->client, reg, reg_val); in adp5520_clr_bits()
178 uint8_t reg_val; in adp5520_irq_thread() local
181 ret = __adp5520_read(chip->client, ADP5520_MODE_STATUS, ®_val); in adp5520_irq_thread()
185 events = reg_val & (ADP5520_OVP_INT | ADP5520_CMPR_INT | in adp5520_irq_thread()