Lines Matching defs:bank
326 u8 bank;
389 * We assume that nobdody can change the bank outside the driver.
393 static int w83795_set_bank(struct i2c_client *client, u8 bank)
398 /* If the same bank is already set, nothing to do */
399 if ((data->bank & 0x07) == bank)
402 /* Change to new bank, preserve all other bits */
403 bank |= data->bank & ~0x07;
404 err = i2c_smbus_write_byte_data(client, W83795_REG_BANKSEL, bank);
407 "Failed to set bank to %d, err %d\n",
408 (int)bank, err);
411 data->bank = bank;
1905 int bank, vendor_id, device_id, expected, i2c_addr, config;
1912 bank = i2c_smbus_read_byte_data(client, W83795_REG_BANKSEL);
1913 if (bank < 0 || (bank & 0x7c)) {
1916 address, "bank");
1922 expected = bank & 0x80 ? 0x5c : 0xa3;
1944 if ((bank & 0x07) == 0) {
1961 if ((bank & 0x07) != 0)
1963 bank & ~0x07);
2153 data->bank = i2c_smbus_read_byte_data(client, W83795_REG_BANKSEL);