Home
last modified time | relevance | path

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

/Linux-v6.1/drivers/pinctrl/sunxi/
Dpinctrl-sunxi.c65 u32 bank = pin / PINS_PER_BANK; in sunxi_mux_reg()
66 u32 offset = pin % PINS_PER_BANK * MUX_FIELD_WIDTH; in sunxi_mux_reg()
77 u32 bank = pin / PINS_PER_BANK; in sunxi_data_reg()
78 u32 offset = pin % PINS_PER_BANK * DATA_FIELD_WIDTH; in sunxi_data_reg()
89 u32 bank = pin / PINS_PER_BANK; in sunxi_dlevel_reg()
90 u32 offset = pin % PINS_PER_BANK * pctl->dlevel_field_width; in sunxi_dlevel_reg()
101 u32 bank = pin / PINS_PER_BANK; in sunxi_pull_reg()
102 u32 offset = pin % PINS_PER_BANK * PULL_FIELD_WIDTH; in sunxi_pull_reg()
700 bank = pin / PINS_PER_BANK; in sunxi_pinctrl_set_io_bias_cfg()
841 unsigned short bank = offset / PINS_PER_BANK; in sunxi_pmx_request()
[all …]
Dpinctrl-sunxi.h51 #define PINS_PER_BANK 32 macro
297 u8 bank = pin / PINS_PER_BANK; in sunxi_grp_config_reg()
/Linux-v6.1/drivers/pinctrl/
Dpinctrl-oxnas.c28 #define PINS_PER_BANK 32 macro
30 #define GPIO_BANK_START(bank) ((bank) * PINS_PER_BANK)
275 .bank = _pin / PINS_PER_BANK, \
520 return &pctl->gpio_banks[pin / PINS_PER_BANK]; in pctl_to_bank()
1074 .ngpio = PINS_PER_BANK, \
1210 id = pinspec.args[1] / PINS_PER_BANK; in oxnas_gpio_probe()
1218 if (ngpios > PINS_PER_BANK) { in oxnas_gpio_probe()
Dpinctrl-pic32.c28 #define PINS_PER_BANK 16 macro
41 #define GPIO_BANK_START(bank) ((bank) * PINS_PER_BANK)
1702 return &pctl->gpio_banks[pin / PINS_PER_BANK]; in pctl_to_bank()
2136 GPIO_BANK(0, PINS_PER_BANK),
2137 GPIO_BANK(1, PINS_PER_BANK),
2138 GPIO_BANK(2, PINS_PER_BANK),
2139 GPIO_BANK(3, PINS_PER_BANK),
2140 GPIO_BANK(4, PINS_PER_BANK),
2141 GPIO_BANK(5, PINS_PER_BANK),
2142 GPIO_BANK(6, PINS_PER_BANK),
[all …]