Home
last modified time | relevance | path

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

/linux-4.4.14/arch/powerpc/sysdev/
Dppc4xx_gpio.c34 #define GPIO_MASK(gpio) (0x80000000 >> (gpio)) macro
81 return in_be32(&regs->ir) & GPIO_MASK(gpio); in ppc4xx_gpio_get()
91 setbits32(&regs->or, GPIO_MASK(gpio)); in __ppc4xx_gpio_set()
93 clrbits32(&regs->or, GPIO_MASK(gpio)); in __ppc4xx_gpio_set()
122 clrbits32(&regs->odr, GPIO_MASK(gpio)); in ppc4xx_gpio_dir_in()
125 clrbits32(&regs->tcr, GPIO_MASK(gpio)); in ppc4xx_gpio_dir_in()
155 clrbits32(&regs->odr, GPIO_MASK(gpio)); in ppc4xx_gpio_dir_out()
158 setbits32(&regs->tcr, GPIO_MASK(gpio)); in ppc4xx_gpio_dir_out()
/linux-4.4.14/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-4.4.14/drivers/gpio/
Dgpio-xgene-sb.c36 #define GPIO_MASK(x) (1U << ((x) % 32)) macro
69 data |= GPIO_MASK(gpio); in xgene_gpio_set_bit()
71 data &= ~GPIO_MASK(gpio); in xgene_gpio_set_bit()
/linux-4.4.14/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-4.4.14/sound/pci/hda/
Dpatch_realtek.c45 #define GPIO_MASK 0x03 macro