Lines Matching refs:spinlock
99 spinlock_t spinlock; member
108 spin_lock_irqsave(&chip->spinlock, flags); in pch_gpio_set()
116 spin_unlock_irqrestore(&chip->spinlock, flags); in pch_gpio_set()
134 spin_lock_irqsave(&chip->spinlock, flags); in pch_gpio_direction_output()
148 spin_unlock_irqrestore(&chip->spinlock, flags); in pch_gpio_direction_output()
159 spin_lock_irqsave(&chip->spinlock, flags); in pch_gpio_direction_input()
164 spin_unlock_irqrestore(&chip->spinlock, flags); in pch_gpio_direction_input()
266 spin_lock_irqsave(&chip->spinlock, flags); in pch_irq_type()
278 spin_unlock_irqrestore(&chip->spinlock, flags); in pch_irq_type()
375 spin_lock_init(&chip->spinlock); in pch_gpio_probe()
408 spin_lock_irqsave(&chip->spinlock, flags); in pch_gpio_suspend()
410 spin_unlock_irqrestore(&chip->spinlock, flags); in pch_gpio_suspend()
420 spin_lock_irqsave(&chip->spinlock, flags); in pch_gpio_resume()
424 spin_unlock_irqrestore(&chip->spinlock, flags); in pch_gpio_resume()