Home
last modified time | relevance | path

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

/Linux-v5.4/arch/powerpc/platforms/4xx/
Dgpio.c22 #define GPIO_MASK(gpio) (0x80000000 >> (gpio)) macro
63 return !!(in_be32(&regs->ir) & GPIO_MASK(gpio)); in ppc4xx_gpio_get()
73 setbits32(&regs->or, GPIO_MASK(gpio)); in __ppc4xx_gpio_set()
75 clrbits32(&regs->or, GPIO_MASK(gpio)); in __ppc4xx_gpio_set()
103 clrbits32(&regs->odr, GPIO_MASK(gpio)); in ppc4xx_gpio_dir_in()
106 clrbits32(&regs->tcr, GPIO_MASK(gpio)); in ppc4xx_gpio_dir_in()
136 clrbits32(&regs->odr, GPIO_MASK(gpio)); in ppc4xx_gpio_dir_out()
139 setbits32(&regs->tcr, GPIO_MASK(gpio)); in ppc4xx_gpio_dir_out()
/Linux-v5.4/arch/unicore32/kernel/
Dirq.c38 #define GPIO_MASK(irq) (1 << (irq - IRQ_GPIO0)) macro
47 mask = GPIO_MASK(d->irq); in puv3_gpio_type()
141 unsigned int mask = GPIO_MASK(d->irq); in puv3_high_gpio_ack()
148 unsigned int mask = GPIO_MASK(d->irq); in puv3_high_gpio_mask()
158 unsigned int mask = GPIO_MASK(d->irq); in puv3_high_gpio_unmask()
/Linux-v5.4/drivers/gpio/
Dgpio-xgene-sb.c29 #define GPIO_MASK(x) (1U << ((x) % 32)) macro
68 data |= GPIO_MASK(gpio); in xgene_gpio_set_bit()
70 data &= ~GPIO_MASK(gpio); in xgene_gpio_set_bit()
/Linux-v5.4/sound/pci/
Dmaestro3.c294 #define GPIO_MASK 0x64 macro
2000 outw(~GPO_PRIMARY_AC97 , io + GPIO_MASK); in snd_m3_ac97_reset()
2010 outw(~0, io + GPIO_MASK); in snd_m3_ac97_reset()
2238 outw(~gpo, io + GPIO_MASK); in snd_m3_amp_enable()
2246 outw(0xffff, io + GPIO_MASK); in snd_m3_amp_enable()
2262 outw(0xffff, io + GPIO_MASK); in snd_m3_hv_init()
2265 outw(~val, io + GPIO_MASK); in snd_m3_hv_init()
2267 outw(val, io + GPIO_MASK); in snd_m3_hv_init()
2269 outw(0xffff, io + GPIO_MASK); in snd_m3_hv_init()
/Linux-v5.4/drivers/net/ethernet/amd/xgbe/
Dxgbe-phy-v2.c2596 GPIO_MASK); in xgbe_phy_sfp_gpio_setup()