Home
last modified time | relevance | path

Searched refs:bank_offset (Results 1 – 5 of 5) sorted by relevance

/drivers/gpio/
Dgpio-xgene.c40 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 …]
Dgpio-pcie-idio-24.c379 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()
Dgpio-zynq.c624 unsigned int bank_offset = gpio->p_data->bank_min[bank_num]; in zynq_gpio_handle_bank_irq() local
632 generic_handle_domain_irq(irqdomain, offset + bank_offset); in zynq_gpio_handle_bank_irq()
/drivers/pinctrl/
Dpinctrl-oxnas.c728 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()
/drivers/pinctrl/sunxi/
Dpinctrl-sunxi.c842 unsigned short bank_offset = bank - pctl->desc->pin_base / in sunxi_pmx_request() local
844 struct sunxi_pinctrl_regulator *s_reg = &pctl->regulators[bank_offset]; in sunxi_pmx_request()
885 unsigned short bank_offset = bank - pctl->desc->pin_base / in sunxi_pmx_free() local
887 struct sunxi_pinctrl_regulator *s_reg = &pctl->regulators[bank_offset]; in sunxi_pmx_free()