Lines Matching full:spinlock
76 * @spinlock: Used for register access protection
87 spinlock_t spinlock; member
98 spin_lock_irqsave(&chip->spinlock, flags); in ioh_gpio_set()
106 spin_unlock_irqrestore(&chip->spinlock, flags); in ioh_gpio_set()
124 spin_lock_irqsave(&chip->spinlock, flags); in ioh_gpio_direction_output()
137 spin_unlock_irqrestore(&chip->spinlock, flags); in ioh_gpio_direction_output()
148 spin_lock_irqsave(&chip->spinlock, flags); in ioh_gpio_direction_input()
153 spin_unlock_irqrestore(&chip->spinlock, flags); in ioh_gpio_direction_input()
257 spin_lock_irqsave(&chip->spinlock, flags); in ioh_irq_type()
297 spin_unlock_irqrestore(&chip->spinlock, flags); in ioh_irq_type()
327 spin_lock_irqsave(&chip->spinlock, flags); in ioh_irq_disable()
331 spin_unlock_irqrestore(&chip->spinlock, flags); in ioh_irq_disable()
341 spin_lock_irqsave(&chip->spinlock, flags); in ioh_irq_enable()
345 spin_unlock_irqrestore(&chip->spinlock, flags); in ioh_irq_enable()
441 spin_lock_init(&chip->spinlock); in ioh_gpio_probe()
485 spin_lock_irqsave(&chip->spinlock, flags); in ioh_gpio_suspend()
487 spin_unlock_irqrestore(&chip->spinlock, flags); in ioh_gpio_suspend()
497 spin_lock_irqsave(&chip->spinlock, flags); in ioh_gpio_resume()
501 spin_unlock_irqrestore(&chip->spinlock, flags); in ioh_gpio_resume()