Searched refs:curr_dirs (Results 1 – 2 of 2) sorted by relevance
/drivers/gpio/ |
D | gpio-sch.c | 46 u8 curr_dirs; in sch_gpio_core_direction_in() local 54 curr_dirs = inb(gpio_ba + offset); in sch_gpio_core_direction_in() 56 if (!(curr_dirs & (1 << bit))) in sch_gpio_core_direction_in() 57 outb(curr_dirs | (1 << bit), gpio_ba + offset); in sch_gpio_core_direction_in() 97 u8 curr_dirs; in sch_gpio_core_direction_out() local 107 curr_dirs = inb(gpio_ba + offset); in sch_gpio_core_direction_out() 108 if (curr_dirs & (1 << bit)) in sch_gpio_core_direction_out() 109 outb(curr_dirs & ~(1 << bit), gpio_ba + offset); in sch_gpio_core_direction_out() 127 u8 curr_dirs; in sch_gpio_resume_direction_in() local 135 curr_dirs = inb(gpio_ba + offset); in sch_gpio_resume_direction_in() [all …]
|
D | gpio-it8761e.c | 91 u8 curr_dirs; in it8761e_gpio_direction_in() local 102 curr_dirs = read_reg(io_reg, port); in it8761e_gpio_direction_in() 104 if (curr_dirs & (1 << bit)) in it8761e_gpio_direction_in() 105 write_reg(curr_dirs & ~(1 << bit), io_reg, port); in it8761e_gpio_direction_in() 136 u8 curr_dirs, io_reg, bit; in it8761e_gpio_direction_out() local 148 curr_dirs = read_reg(io_reg, port); in it8761e_gpio_direction_out() 150 if (!(curr_dirs & (1 << bit))) in it8761e_gpio_direction_out() 151 write_reg(curr_dirs | (1 << bit), io_reg, port); in it8761e_gpio_direction_out()
|