Lines Matching refs:lock
31 spinlock_t lock; member
44 spin_lock_irqsave(&pt_gpio->lock, flags); in pt_gpio_request()
50 spin_unlock_irqrestore(&pt_gpio->lock, flags); in pt_gpio_request()
56 spin_unlock_irqrestore(&pt_gpio->lock, flags); in pt_gpio_request()
67 spin_lock_irqsave(&pt_gpio->lock, flags); in pt_gpio_free()
73 spin_unlock_irqrestore(&pt_gpio->lock, flags); in pt_gpio_free()
87 spin_lock_irqsave(&pt_gpio->lock, flags); in pt_gpio_set_value()
95 spin_unlock_irqrestore(&pt_gpio->lock, flags); in pt_gpio_set_value()
104 spin_lock_irqsave(&pt_gpio->lock, flags); in pt_gpio_get_value()
114 spin_unlock_irqrestore(&pt_gpio->lock, flags); in pt_gpio_get_value()
133 spin_lock_irqsave(&pt_gpio->lock, flags); in pt_gpio_direction_input()
139 spin_unlock_irqrestore(&pt_gpio->lock, flags); in pt_gpio_direction_input()
154 spin_lock_irqsave(&pt_gpio->lock, flags); in pt_gpio_direction_output()
167 spin_unlock_irqrestore(&pt_gpio->lock, flags); in pt_gpio_direction_output()
201 spin_lock_init(&pt_gpio->lock); in pt_gpio_probe()