Home
last modified time | relevance | path

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

/Linux-v4.19/arch/powerpc/platforms/4xx/
Dgpio.c34 #define GPIO_MASK(gpio) (0x80000000 >> (gpio)) macro
75 return !!(in_be32(&regs->ir) & GPIO_MASK(gpio)); in ppc4xx_gpio_get()
85 setbits32(&regs->or, GPIO_MASK(gpio)); in __ppc4xx_gpio_set()
87 clrbits32(&regs->or, GPIO_MASK(gpio)); in __ppc4xx_gpio_set()
115 clrbits32(&regs->odr, GPIO_MASK(gpio)); in ppc4xx_gpio_dir_in()
118 clrbits32(&regs->tcr, GPIO_MASK(gpio)); in ppc4xx_gpio_dir_in()
148 clrbits32(&regs->odr, GPIO_MASK(gpio)); in ppc4xx_gpio_dir_out()
151 setbits32(&regs->tcr, GPIO_MASK(gpio)); in ppc4xx_gpio_dir_out()
/Linux-v4.19/arch/unicore32/kernel/
Dirq.c42 #define GPIO_MASK(irq) (1 << (irq - IRQ_GPIO0)) macro
51 mask = GPIO_MASK(d->irq); in puv3_gpio_type()
145 unsigned int mask = GPIO_MASK(d->irq); in puv3_high_gpio_ack()
152 unsigned int mask = GPIO_MASK(d->irq); in puv3_high_gpio_mask()
162 unsigned int mask = GPIO_MASK(d->irq); in puv3_high_gpio_unmask()
/Linux-v4.19/drivers/gpio/
Dgpio-xgene-sb.c40 #define GPIO_MASK(x) (1U << ((x) % 32)) macro
79 data |= GPIO_MASK(gpio); in xgene_gpio_set_bit()
81 data &= ~GPIO_MASK(gpio); in xgene_gpio_set_bit()
/Linux-v4.19/sound/pci/
Dmaestro3.c309 #define GPIO_MASK 0x64 macro
2015 outw(~GPO_PRIMARY_AC97 , io + GPIO_MASK); in snd_m3_ac97_reset()
2025 outw(~0, io + GPIO_MASK); in snd_m3_ac97_reset()
2253 outw(~gpo, io + GPIO_MASK); in snd_m3_amp_enable()
2261 outw(0xffff, io + GPIO_MASK); in snd_m3_amp_enable()
2277 outw(0xffff, io + GPIO_MASK); in snd_m3_hv_init()
2280 outw(~val, io + GPIO_MASK); in snd_m3_hv_init()
2282 outw(val, io + GPIO_MASK); in snd_m3_hv_init()
2284 outw(0xffff, io + GPIO_MASK); in snd_m3_hv_init()
/Linux-v4.19/drivers/net/ethernet/amd/xgbe/
Dxgbe-phy-v2.c2590 GPIO_MASK); in xgbe_phy_sfp_gpio_setup()