Searched refs:bank_offset (Results 1 – 5 of 5) sorted by relevance
/kernel/linux/linux-5.10/drivers/gpio/ |
D | gpio-xgene.c | 40 unsigned long bank_offset; in xgene_gpio_get() local 43 bank_offset = GPIO_DATA_OFFSET + GPIO_BANK_OFFSET(offset); in xgene_gpio_get() 45 return !!(ioread32(chip->base + bank_offset) & BIT(bit_offset)); in xgene_gpio_get() 51 unsigned long bank_offset; in __xgene_gpio_set() local 54 bank_offset = GPIO_SET_DR_OFFSET + GPIO_BANK_OFFSET(offset); in __xgene_gpio_set() 57 setval = ioread32(chip->base + bank_offset); in __xgene_gpio_set() 62 iowrite32(setval, chip->base + bank_offset); in __xgene_gpio_set() 78 unsigned long bank_offset, bit_offset; in xgene_gpio_get_direction() local 80 bank_offset = GPIO_SET_DR_OFFSET + GPIO_BANK_OFFSET(offset); in xgene_gpio_get_direction() 83 if (ioread32(chip->base + bank_offset) & BIT(bit_offset)) in xgene_gpio_get_direction() [all …]
|
D | gpio-pcie-idio-24.c | 379 const unsigned long bank_offset = bit_offset / 8; in idio_24_irq_mask() local 385 new_irq_mask = idio24gpio->irq_mask >> bank_offset * 8; in idio_24_irq_mask() 391 cos_enable_state &= ~BIT(bank_offset); in idio_24_irq_mask() 393 cos_enable_state &= ~BIT(bank_offset + 4); in idio_24_irq_mask() 408 const unsigned long bank_offset = bit_offset / 8; in idio_24_irq_unmask() local 413 prev_irq_mask = idio24gpio->irq_mask >> bank_offset * 8; in idio_24_irq_unmask() 420 cos_enable_state |= BIT(bank_offset); in idio_24_irq_unmask() 422 cos_enable_state |= BIT(bank_offset + 4); in idio_24_irq_unmask()
|
D | gpio-zynq.c | 624 unsigned int bank_offset = gpio->p_data->bank_min[bank_num]; in zynq_gpio_handle_bank_irq() local 634 gpio_irq = irq_find_mapping(irqdomain, offset + bank_offset); in zynq_gpio_handle_bank_irq()
|
/kernel/linux/linux-5.10/drivers/pinctrl/ |
D | pinctrl-oxnas.c | 728 unsigned int bank_offset = (bank->id ? PINMUX_820_BANK_OFFSET : 0); in oxnas_ox820_gpio_request_enable() local 735 bank_offset + PINMUX_820_SECONDARY_SEL, in oxnas_ox820_gpio_request_enable() 738 bank_offset + PINMUX_820_TERTIARY_SEL, in oxnas_ox820_gpio_request_enable() 741 bank_offset + PINMUX_820_QUATERNARY_SEL, in oxnas_ox820_gpio_request_enable() 744 bank_offset + PINMUX_820_DEBUG_SEL, in oxnas_ox820_gpio_request_enable() 747 bank_offset + PINMUX_820_ALTERNATIVE_SEL, in oxnas_ox820_gpio_request_enable() 877 unsigned int bank_offset = (bank->id ? PINMUX_820_BANK_OFFSET : 0); in oxnas_ox820_pinconf_get() local 885 bank_offset + PINMUX_820_PULLUP_CTRL, in oxnas_ox820_pinconf_get() 943 unsigned int bank_offset = (bank->id ? PINMUX_820_BANK_OFFSET : 0); in oxnas_ox820_pinconf_set() local 959 bank_offset + PINMUX_820_PULLUP_CTRL, in oxnas_ox820_pinconf_set()
|
/kernel/linux/linux-5.10/drivers/pinctrl/sunxi/ |
D | pinctrl-sunxi.c | 766 unsigned short bank_offset = bank - pctl->desc->pin_base / in sunxi_pmx_request() local 768 struct sunxi_pinctrl_regulator *s_reg = &pctl->regulators[bank_offset]; in sunxi_pmx_request() 810 unsigned short bank_offset = bank - pctl->desc->pin_base / in sunxi_pmx_free() local 812 struct sunxi_pinctrl_regulator *s_reg = &pctl->regulators[bank_offset]; in sunxi_pmx_free()
|