Searched refs:bank_shift (Results 1 – 2 of 2) sorted by relevance
/external/u-boot/drivers/gpio/ |
D | tca642x.c | 228 uint8_t bank_shift; in do_tca642x() local 278 bank_shift = ul_arg2 - (gpio_bank * 10); in do_tca642x() 279 ret = tca642x_set_dir(chip, gpio_bank, (1 << bank_shift), in do_tca642x() 280 TCA642X_DIR_IN << bank_shift); in do_tca642x() 282 (1 << bank_shift)) != 0; in do_tca642x() 292 bank_shift = ul_arg2 - (gpio_bank * 10); in do_tca642x() 293 ret = tca642x_set_dir(chip, gpio_bank, (1 << bank_shift), in do_tca642x() 294 (TCA642X_DIR_OUT << bank_shift)); in do_tca642x() 297 gpio_bank, (1 << bank_shift), in do_tca642x() 298 (ul_arg3 << bank_shift)); in do_tca642x() [all …]
|
D | pca953x_gpio.c | 79 int bank_shift = fls((info->gpio_count - 1) / BANK_SZ); in pca953x_write_single() local 83 ret = dm_i2c_write(dev, (reg << bank_shift) + off, &val, 1); in pca953x_write_single() 96 int bank_shift = fls((info->gpio_count - 1) / BANK_SZ); in pca953x_read_single() local 101 ret = dm_i2c_read(dev, (reg << bank_shift) + off, &byte, 1); in pca953x_read_single()
|