Lines Matching refs:spinlock
95 spinlock_t spinlock; member
104 spin_lock_irqsave(&chip->spinlock, flags); in pch_gpio_set()
112 spin_unlock_irqrestore(&chip->spinlock, flags); in pch_gpio_set()
130 spin_lock_irqsave(&chip->spinlock, flags); in pch_gpio_direction_output()
144 spin_unlock_irqrestore(&chip->spinlock, flags); in pch_gpio_direction_output()
155 spin_lock_irqsave(&chip->spinlock, flags); in pch_gpio_direction_input()
160 spin_unlock_irqrestore(&chip->spinlock, flags); in pch_gpio_direction_input()
262 spin_lock_irqsave(&chip->spinlock, flags); in pch_irq_type()
274 spin_unlock_irqrestore(&chip->spinlock, flags); in pch_irq_type()
381 spin_lock_init(&chip->spinlock); in pch_gpio_probe()
418 spin_lock_irqsave(&chip->spinlock, flags); in pch_gpio_suspend()
420 spin_unlock_irqrestore(&chip->spinlock, flags); in pch_gpio_suspend()
430 spin_lock_irqsave(&chip->spinlock, flags); in pch_gpio_resume()
434 spin_unlock_irqrestore(&chip->spinlock, flags); in pch_gpio_resume()