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()
259 spin_lock_irqsave(&chip->spinlock, flags); in ioh_irq_type()
299 spin_unlock_irqrestore(&chip->spinlock, flags); in ioh_irq_type()
329 spin_lock_irqsave(&chip->spinlock, flags); in ioh_irq_disable()
333 spin_unlock_irqrestore(&chip->spinlock, flags); in ioh_irq_disable()
343 spin_lock_irqsave(&chip->spinlock, flags); in ioh_irq_enable()
347 spin_unlock_irqrestore(&chip->spinlock, flags); in ioh_irq_enable()
444 spin_lock_init(&chip->spinlock); in ioh_gpio_probe()
532 spin_lock_irqsave(&chip->spinlock, flags); in ioh_gpio_suspend()
534 spin_unlock_irqrestore(&chip->spinlock, flags); in ioh_gpio_suspend()
566 spin_lock_irqsave(&chip->spinlock, flags); in ioh_gpio_resume()
570 spin_unlock_irqrestore(&chip->spinlock, flags); in ioh_gpio_resume()