Home
last modified time | relevance | path

Searched refs:PINS_PER_BANK (Results 1 – 4 of 4) sorted by relevance

/drivers/pinctrl/sunxi/
A Dpinctrl-sunxi-dt.c79 int port_base = desc->pin_base / PINS_PER_BANK; in init_pins_table()
123 cur_pin->pin.number = (port_base + i) * PINS_PER_BANK + j; in init_pins_table()
169 int bank = (pin->pin.number - pin_base) / PINS_PER_BANK; in prepare_function_table()
214 int bank = (pin->pin.number - pin_base) / PINS_PER_BANK; in prepare_function_table()
228 func[lastfunc].irqnum = pin->pin.number % PINS_PER_BANK; in prepare_function_table()
A Dpinctrl-sunxi.c75 return offset + (pin / PINS_PER_BANK) * pctl->bank_mem_size; in sunxi_bank_offset()
81 u32 offset = pin % PINS_PER_BANK * MUX_FIELD_WIDTH; in sunxi_mux_reg()
92 u32 offset = pin % PINS_PER_BANK * DATA_FIELD_WIDTH; in sunxi_data_reg()
114 u32 offset = pin % PINS_PER_BANK * PULL_FIELD_WIDTH; in sunxi_pull_reg()
717 bank = pin / PINS_PER_BANK; in sunxi_pinctrl_set_io_bias_cfg()
861 unsigned short bank = offset / PINS_PER_BANK; in sunxi_pmx_request()
863 PINS_PER_BANK; in sunxi_pmx_request()
907 unsigned short bank = offset / PINS_PER_BANK; in sunxi_pmx_free()
909 PINS_PER_BANK; in sunxi_pmx_free()
1004 base = PINS_PER_BANK * gpiospec->args[0]; in sunxi_pinctrl_gpio_of_xlate()
[all …]
A Dpinctrl-sunxi.h56 #define PINS_PER_BANK 32 macro
298 u8 bank = pin / PINS_PER_BANK; in sunxi_grp_config_reg()
/drivers/pinctrl/
A Dpinctrl-pic32.c28 #define PINS_PER_BANK 16 macro
2133 GPIO_BANK(0, PINS_PER_BANK),
2134 GPIO_BANK(1, PINS_PER_BANK),
2135 GPIO_BANK(2, PINS_PER_BANK),
2136 GPIO_BANK(3, PINS_PER_BANK),
2137 GPIO_BANK(4, PINS_PER_BANK),
2138 GPIO_BANK(5, PINS_PER_BANK),
2139 GPIO_BANK(6, PINS_PER_BANK),
2140 GPIO_BANK(7, PINS_PER_BANK),
2141 GPIO_BANK(8, PINS_PER_BANK),
[all …]

Completed in 14 milliseconds