Lines Matching refs:PINS_PER_BANK
65 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()
843 PINS_PER_BANK; in sunxi_pmx_request()
884 unsigned short bank = offset / PINS_PER_BANK; in sunxi_pmx_free()
886 PINS_PER_BANK; in sunxi_pmx_free()
979 base = PINS_PER_BANK * gpiospec->args[0]; in sunxi_pinctrl_gpio_of_xlate()
1195 base = PINS_PER_BANK * intspec[0]; in sunxi_pinctrl_irq_of_xlate()
1202 *out_hwirq = desc->irqbank * PINS_PER_BANK + desc->irqnum; in sunxi_pinctrl_irq_of_xlate()
1583 pctl->chip->ngpio = round_up(last_pin, PINS_PER_BANK) - in sunxi_pinctrl_init_with_variant()