Lines Matching +full:bank +full:- +full:name

6  * Maxime Ripard <maxime.ripard@free-electrons.com>
32 #define SUNXI_PINCTRL_PIN(bank, pin) \ argument
33 PINCTRL_PIN(P ## bank ## _BASE + (pin), "P" #bank #pin)
58 #define IRQ_CFG_IRQ_MASK ((1 << IRQ_CFG_IRQ_BITS) - 1)
62 #define IRQ_CTRL_IRQ_MASK ((1 << IRQ_CTRL_IRQ_BITS) - 1)
66 #define IRQ_STATUS_IRQ_MASK ((1 << IRQ_STATUS_IRQ_BITS) - 1)
123 const char *name; member
147 const char *name; member
153 const char *name; member
200 .name = _name, \
206 .name = _name, \
213 .name = "irq", \
220 .name = "irq", \
226 static inline u32 sunxi_irq_hw_bank_num(const struct sunxi_pinctrl_desc *desc, u8 bank) in sunxi_irq_hw_bank_num() argument
228 if (!desc->irq_bank_map) in sunxi_irq_hw_bank_num()
229 return bank; in sunxi_irq_hw_bank_num()
231 return desc->irq_bank_map[bank]; in sunxi_irq_hw_bank_num()
237 u8 bank = irq / IRQ_PER_BANK; in sunxi_irq_cfg_reg() local
241 sunxi_irq_hw_bank_num(desc, bank) * IRQ_MEM_SIZE + reg; in sunxi_irq_cfg_reg()
250 static inline u32 sunxi_irq_ctrl_reg_from_bank(const struct sunxi_pinctrl_desc *desc, u8 bank) in sunxi_irq_ctrl_reg_from_bank() argument
252 return IRQ_CTRL_REG + sunxi_irq_hw_bank_num(desc, bank) * IRQ_MEM_SIZE; in sunxi_irq_ctrl_reg_from_bank()
258 u8 bank = irq / IRQ_PER_BANK; in sunxi_irq_ctrl_reg() local
260 return sunxi_irq_ctrl_reg_from_bank(desc, bank); in sunxi_irq_ctrl_reg()
269 static inline u32 sunxi_irq_debounce_reg_from_bank(const struct sunxi_pinctrl_desc *desc, u8 bank) in sunxi_irq_debounce_reg_from_bank() argument
272 sunxi_irq_hw_bank_num(desc, bank) * IRQ_MEM_SIZE; in sunxi_irq_debounce_reg_from_bank()
275 static inline u32 sunxi_irq_status_reg_from_bank(const struct sunxi_pinctrl_desc *desc, u8 bank) in sunxi_irq_status_reg_from_bank() argument
278 sunxi_irq_hw_bank_num(desc, bank) * IRQ_MEM_SIZE; in sunxi_irq_status_reg_from_bank()
284 u8 bank = irq / IRQ_PER_BANK; in sunxi_irq_status_reg() local
286 return sunxi_irq_status_reg_from_bank(desc, bank); in sunxi_irq_status_reg()
297 u8 bank = pin / PINS_PER_BANK; in sunxi_grp_config_reg() local
299 return GRP_CFG_REG + bank * 0x4; in sunxi_grp_config_reg()