Lines Matching refs:bank
339 u8 bank; member
406 static int w83795_set_bank(struct i2c_client *client, u8 bank) in w83795_set_bank() argument
412 if ((data->bank & 0x07) == bank) in w83795_set_bank()
416 bank |= data->bank & ~0x07; in w83795_set_bank()
417 err = i2c_smbus_write_byte_data(client, W83795_REG_BANKSEL, bank); in w83795_set_bank()
421 (int)bank, err); in w83795_set_bank()
424 data->bank = bank; in w83795_set_bank()
1918 int bank, vendor_id, device_id, expected, i2c_addr, config; in w83795_detect() local
1925 bank = i2c_smbus_read_byte_data(client, W83795_REG_BANKSEL); in w83795_detect()
1926 if (bank < 0 || (bank & 0x7c)) { in w83795_detect()
1935 expected = bank & 0x80 ? 0x5c : 0xa3; in w83795_detect()
1957 if ((bank & 0x07) == 0) { in w83795_detect()
1974 if ((bank & 0x07) != 0) in w83795_detect()
1976 bank & ~0x07); in w83795_detect()
2165 data->bank = i2c_smbus_read_byte_data(client, W83795_REG_BANKSEL); in w83795_probe()