Searched refs:bank_offset (Results 1 – 4 of 4) sorted by relevance
/Linux-v4.19/drivers/gpio/ |
D | gpio-xgene.c | 51 unsigned long bank_offset; in xgene_gpio_get() local 54 bank_offset = GPIO_DATA_OFFSET + GPIO_BANK_OFFSET(offset); in xgene_gpio_get() 56 return !!(ioread32(chip->base + bank_offset) & BIT(bit_offset)); in xgene_gpio_get() 62 unsigned long bank_offset; in __xgene_gpio_set() local 65 bank_offset = GPIO_SET_DR_OFFSET + GPIO_BANK_OFFSET(offset); in __xgene_gpio_set() 68 setval = ioread32(chip->base + bank_offset); in __xgene_gpio_set() 73 iowrite32(setval, chip->base + bank_offset); in __xgene_gpio_set() 89 unsigned long bank_offset, bit_offset; in xgene_gpio_get_direction() local 91 bank_offset = GPIO_SET_DR_OFFSET + GPIO_BANK_OFFSET(offset); in xgene_gpio_get_direction() 94 return !!(ioread32(chip->base + bank_offset) & BIT(bit_offset)); in xgene_gpio_get_direction() [all …]
|
D | gpio-pcie-idio-24.c | 363 const unsigned long bank_offset = bit_offset/8 * 8; in idio_24_irq_mask() local 369 new_irq_mask = idio24gpio->irq_mask >> bank_offset; in idio_24_irq_mask() 375 cos_enable_state &= ~BIT(bank_offset); in idio_24_irq_mask() 377 cos_enable_state &= ~BIT(bank_offset + 4); in idio_24_irq_mask() 392 const unsigned long bank_offset = bit_offset/8 * 8; in idio_24_irq_unmask() local 397 prev_irq_mask = idio24gpio->irq_mask >> bank_offset; in idio_24_irq_unmask() 404 cos_enable_state |= BIT(bank_offset); in idio_24_irq_unmask() 406 cos_enable_state |= BIT(bank_offset + 4); in idio_24_irq_unmask()
|
D | gpio-zynq.c | 564 unsigned int bank_offset = gpio->p_data->bank_min[bank_num]; in zynq_gpio_handle_bank_irq() local 574 gpio_irq = irq_find_mapping(irqdomain, offset + bank_offset); in zynq_gpio_handle_bank_irq()
|
/Linux-v4.19/drivers/pinctrl/ |
D | pinctrl-oxnas.c | 736 unsigned int bank_offset = (bank->id ? PINMUX_820_BANK_OFFSET : 0); in oxnas_ox820_gpio_request_enable() local 743 bank_offset + PINMUX_820_SECONDARY_SEL, in oxnas_ox820_gpio_request_enable() 746 bank_offset + PINMUX_820_TERTIARY_SEL, in oxnas_ox820_gpio_request_enable() 749 bank_offset + PINMUX_820_QUATERNARY_SEL, in oxnas_ox820_gpio_request_enable() 752 bank_offset + PINMUX_820_DEBUG_SEL, in oxnas_ox820_gpio_request_enable() 755 bank_offset + PINMUX_820_ALTERNATIVE_SEL, in oxnas_ox820_gpio_request_enable() 882 unsigned int bank_offset = (bank->id ? PINMUX_820_BANK_OFFSET : 0); in oxnas_ox820_pinconf_get() local 890 bank_offset + PINMUX_820_PULLUP_CTRL, in oxnas_ox820_pinconf_get() 950 unsigned int bank_offset = (bank->id ? PINMUX_820_BANK_OFFSET : 0); in oxnas_ox820_pinconf_set() local 968 bank_offset + PINMUX_820_PULLUP_CTRL, in oxnas_ox820_pinconf_set()
|