Searched refs:PINS_PER_BANK (Results 1 – 3 of 3) sorted by relevance
/linux-6.12.1/drivers/pinctrl/sunxi/ |
D | pinctrl-sunxi.c | 64 u32 bank = pin / PINS_PER_BANK; in sunxi_mux_reg() 65 u32 offset = pin % PINS_PER_BANK * MUX_FIELD_WIDTH; in sunxi_mux_reg() 76 u32 bank = pin / PINS_PER_BANK; in sunxi_data_reg() 77 u32 offset = pin % PINS_PER_BANK * DATA_FIELD_WIDTH; in sunxi_data_reg() 88 u32 bank = pin / PINS_PER_BANK; in sunxi_dlevel_reg() 89 u32 offset = pin % PINS_PER_BANK * pctl->dlevel_field_width; in sunxi_dlevel_reg() 100 u32 bank = pin / PINS_PER_BANK; in sunxi_pull_reg() 101 u32 offset = pin % PINS_PER_BANK * PULL_FIELD_WIDTH; in sunxi_pull_reg() 699 bank = pin / PINS_PER_BANK; in sunxi_pinctrl_set_io_bias_cfg() 840 unsigned short bank = offset / PINS_PER_BANK; in sunxi_pmx_request() [all …]
|
D | pinctrl-sunxi.h | 51 #define PINS_PER_BANK 32 macro 297 u8 bank = pin / PINS_PER_BANK; in sunxi_grp_config_reg()
|
/linux-6.12.1/drivers/pinctrl/ |
D | pinctrl-pic32.c | 28 #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() 2131 GPIO_BANK(0, PINS_PER_BANK), 2132 GPIO_BANK(1, PINS_PER_BANK), 2133 GPIO_BANK(2, PINS_PER_BANK), 2134 GPIO_BANK(3, PINS_PER_BANK), 2135 GPIO_BANK(4, PINS_PER_BANK), 2136 GPIO_BANK(5, PINS_PER_BANK), 2137 GPIO_BANK(6, PINS_PER_BANK), [all …]
|