Searched refs:PINS_PER_BANK (Results 1 – 2 of 2) sorted by relevance
43 #define PINS_PER_BANK 32 macro178 u8 bank = pin / PINS_PER_BANK; in sunxi_mux_reg()181 offset += pin % PINS_PER_BANK / MUX_PINS_PER_REG * 0x04; in sunxi_mux_reg()193 u8 bank = pin / PINS_PER_BANK; in sunxi_data_reg()196 offset += pin % PINS_PER_BANK / DATA_PINS_PER_REG * 0x04; in sunxi_data_reg()208 u8 bank = pin / PINS_PER_BANK; in sunxi_dlevel_reg()211 offset += pin % PINS_PER_BANK / DLEVEL_PINS_PER_REG * 0x04; in sunxi_dlevel_reg()223 u8 bank = pin / PINS_PER_BANK; in sunxi_pull_reg()226 offset += pin % PINS_PER_BANK / PULL_PINS_PER_REG * 0x04; in sunxi_pull_reg()
521 base = PINS_PER_BANK * gpiospec->args[0]; in sunxi_pinctrl_gpio_of_xlate()937 pctl->chip->ngpio = round_up(last_pin, PINS_PER_BANK) - in sunxi_pinctrl_init()