Lines Matching refs:chipnum
191 unsigned int chipnum) in max3191x_chip_is_faulting() argument
194 if (!max3191x->ignore_uv && test_bit(chipnum, max3191x->fault)) in max3191x_chip_is_faulting()
200 return test_bit(chipnum, max3191x->crc_error) || in max3191x_chip_is_faulting()
201 test_bit(chipnum, max3191x->overtemp) || in max3191x_chip_is_faulting()
203 test_bit(chipnum, max3191x->undervolt1)); in max3191x_chip_is_faulting()
209 int ret, chipnum, wordlen = max3191x_wordlen(max3191x); in max3191x_get() local
217 chipnum = offset / MAX3191X_NGPIO; in max3191x_get()
218 if (max3191x_chip_is_faulting(max3191x, chipnum)) { in max3191x_get()
223 in = ((u8 *)max3191x->xfer.rx_buf)[chipnum * wordlen]; in max3191x_get()
243 unsigned int chipnum = bit / MAX3191X_NGPIO; in max3191x_get_multiple() local
246 if (max3191x_chip_is_faulting(max3191x, chipnum)) { in max3191x_get_multiple()
251 in = ((u8 *)max3191x->xfer.rx_buf)[chipnum * wordlen]; in max3191x_get_multiple()
257 bit = (chipnum + 1) * MAX3191X_NGPIO; /* go to next chip */ in max3191x_get_multiple()
269 u32 debounce, chipnum, db0_val, db1_val; in max3191x_set_config() local
300 chipnum = 0; /* all chips use the same pair of debounce pins */ in max3191x_set_config()
302 chipnum = offset / MAX3191X_NGPIO; /* per chip debounce pins */ in max3191x_set_config()
305 gpiod_set_value_cansleep(max3191x->db0_pins->desc[chipnum], db0_val); in max3191x_set_config()
306 gpiod_set_value_cansleep(max3191x->db1_pins->desc[chipnum], db1_val); in max3191x_set_config()