Lines Matching refs:chipnum
192 unsigned int chipnum) in max3191x_chip_is_faulting() argument
195 if (!max3191x->ignore_uv && test_bit(chipnum, max3191x->fault)) in max3191x_chip_is_faulting()
201 return test_bit(chipnum, max3191x->crc_error) || in max3191x_chip_is_faulting()
202 test_bit(chipnum, max3191x->overtemp) || in max3191x_chip_is_faulting()
204 test_bit(chipnum, max3191x->undervolt1)); in max3191x_chip_is_faulting()
210 int ret, chipnum, wordlen = max3191x_wordlen(max3191x); in max3191x_get() local
218 chipnum = offset / MAX3191X_NGPIO; in max3191x_get()
219 if (max3191x_chip_is_faulting(max3191x, chipnum)) { in max3191x_get()
224 in = ((u8 *)max3191x->xfer.rx_buf)[chipnum * wordlen]; in max3191x_get()
249 unsigned int chipnum = bit / MAX3191X_NGPIO; in max3191x_get_multiple() local
251 if (max3191x_chip_is_faulting(max3191x, chipnum)) { in max3191x_get_multiple()
256 in = ((u8 *)max3191x->xfer.rx_buf)[chipnum * wordlen]; in max3191x_get_multiple()
270 u32 debounce, chipnum, db0_val, db1_val; in max3191x_set_config() local
301 chipnum = 0; /* all chips use the same pair of debounce pins */ in max3191x_set_config()
303 chipnum = offset / MAX3191X_NGPIO; /* per chip debounce pins */ in max3191x_set_config()
306 gpiod_set_value_cansleep(max3191x->db0_pins->desc[chipnum], db0_val); in max3191x_set_config()
307 gpiod_set_value_cansleep(max3191x->db1_pins->desc[chipnum], db1_val); in max3191x_set_config()