Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/pinctrl/sunxi/
Dpinctrl-sunxi.h43 #define PINS_PER_BANK 32 macro
237 u8 bank = pin / PINS_PER_BANK; in sunxi_mux_reg()
240 offset += pin % PINS_PER_BANK / MUX_PINS_PER_REG * 0x04; in sunxi_mux_reg()
252 u8 bank = pin / PINS_PER_BANK; in sunxi_data_reg()
255 offset += pin % PINS_PER_BANK / DATA_PINS_PER_REG * 0x04; in sunxi_data_reg()
267 u8 bank = pin / PINS_PER_BANK; in sunxi_dlevel_reg()
270 offset += pin % PINS_PER_BANK / DLEVEL_PINS_PER_REG * 0x04; in sunxi_dlevel_reg()
282 u8 bank = pin / PINS_PER_BANK; in sunxi_pull_reg()
285 offset += pin % PINS_PER_BANK / PULL_PINS_PER_REG * 0x04; in sunxi_pull_reg()
366 u8 bank = pin / PINS_PER_BANK; in sunxi_grp_config_reg()
Dpinctrl-sunxi.c644 bank = pin / PINS_PER_BANK; in sunxi_pinctrl_set_io_bias_cfg()
775 unsigned short bank = offset / PINS_PER_BANK; in sunxi_pmx_request()
777 PINS_PER_BANK; in sunxi_pmx_request()
818 unsigned short bank = offset / PINS_PER_BANK; in sunxi_pmx_free()
820 PINS_PER_BANK; in sunxi_pmx_free()
913 base = PINS_PER_BANK * gpiospec->args[0]; in sunxi_pinctrl_gpio_of_xlate()
1129 base = PINS_PER_BANK * intspec[0]; in sunxi_pinctrl_irq_of_xlate()
1136 *out_hwirq = desc->irqbank * PINS_PER_BANK + desc->irqnum; in sunxi_pinctrl_irq_of_xlate()
1508 pctl->chip->ngpio = round_up(last_pin, PINS_PER_BANK) - in sunxi_pinctrl_init_with_variant()
/linux-5.19.10/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 …]