Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/pinctrl/sunxi/
Dpinctrl-sunxi.h43 #define PINS_PER_BANK 32 macro
179 u8 bank = pin / PINS_PER_BANK; in sunxi_mux_reg()
182 offset += pin % PINS_PER_BANK / MUX_PINS_PER_REG * 0x04; in sunxi_mux_reg()
194 u8 bank = pin / PINS_PER_BANK; in sunxi_data_reg()
197 offset += pin % PINS_PER_BANK / DATA_PINS_PER_REG * 0x04; in sunxi_data_reg()
209 u8 bank = pin / PINS_PER_BANK; in sunxi_dlevel_reg()
212 offset += pin % PINS_PER_BANK / DLEVEL_PINS_PER_REG * 0x04; in sunxi_dlevel_reg()
224 u8 bank = pin / PINS_PER_BANK; in sunxi_pull_reg()
227 offset += pin % PINS_PER_BANK / PULL_PINS_PER_REG * 0x04; in sunxi_pull_reg()
Dpinctrl-sunxi.c511 base = PINS_PER_BANK * gpiospec->args[0]; in sunxi_pinctrl_gpio_of_xlate()
717 base = PINS_PER_BANK * intspec[0]; in sunxi_pinctrl_irq_of_xlate()
724 *out_hwirq = desc->irqbank * PINS_PER_BANK + desc->irqnum; in sunxi_pinctrl_irq_of_xlate()
960 pctl->chip->ngpio = round_up(last_pin, PINS_PER_BANK) - in sunxi_pinctrl_init()