Home
last modified time | relevance | path

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

/linux-3.4.99/drivers/gpio/
Dgpio-mpc8xxx.c57 struct mpc8xxx_gpio_chip *mpc8xxx_gc = to_mpc8xxx_gpio_chip(mm); in mpc8xxx_gpio_save_regs() local
59 mpc8xxx_gc->data = in_be32(mm->regs + GPIO_DAT); in mpc8xxx_gpio_save_regs()
71 struct mpc8xxx_gpio_chip *mpc8xxx_gc = to_mpc8xxx_gpio_chip(mm); in mpc8572_gpio_get() local
77 out_shadow = mpc8xxx_gc->data & out_mask; in mpc8572_gpio_get()
92 struct mpc8xxx_gpio_chip *mpc8xxx_gc = to_mpc8xxx_gpio_chip(mm); in mpc8xxx_gpio_set() local
95 spin_lock_irqsave(&mpc8xxx_gc->lock, flags); in mpc8xxx_gpio_set()
98 mpc8xxx_gc->data |= mpc8xxx_gpio2mask(gpio); in mpc8xxx_gpio_set()
100 mpc8xxx_gc->data &= ~mpc8xxx_gpio2mask(gpio); in mpc8xxx_gpio_set()
102 out_be32(mm->regs + GPIO_DAT, mpc8xxx_gc->data); in mpc8xxx_gpio_set()
104 spin_unlock_irqrestore(&mpc8xxx_gc->lock, flags); in mpc8xxx_gpio_set()
[all …]