Lines Matching refs:gpio_bank
95 int tca642x_set_val(uchar chip, uint8_t gpio_bank, in tca642x_set_val() argument
98 uint8_t out_reg = tca642x_regs[gpio_bank].output_reg; in tca642x_set_val()
107 int tca642x_set_pol(uchar chip, uint8_t gpio_bank, in tca642x_set_pol() argument
110 uint8_t pol_reg = tca642x_regs[gpio_bank].polarity_reg; in tca642x_set_pol()
119 int tca642x_set_dir(uchar chip, uint8_t gpio_bank, in tca642x_set_dir() argument
122 uint8_t config_reg = tca642x_regs[gpio_bank].configuration_reg; in tca642x_set_dir()
130 int tca642x_get_val(uchar chip, uint8_t gpio_bank) in tca642x_get_val() argument
133 uint8_t in_reg = tca642x_regs[gpio_bank].input_reg; in tca642x_get_val()
227 uint8_t gpio_bank = 0; in do_tca642x() local
251 gpio_bank = 0; in do_tca642x()
253 gpio_bank = 1; in do_tca642x()
255 gpio_bank = 2; in do_tca642x()
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()
281 val = (tca642x_get_val(chip, gpio_bank) & 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()
297 gpio_bank, (1 << bank_shift), in do_tca642x()
304 bank_shift = ul_arg2 - (gpio_bank * 10); in do_tca642x()
305 ret = tca642x_set_pol(chip, gpio_bank, (1 << bank_shift), in do_tca642x()