Home
last modified time | relevance | path

Searched refs:gpio_lock (Results 1 – 15 of 15) sorted by relevance

/linux-4.19.296/drivers/gpio/
Dgpio-loongson.c42 static DEFINE_SPINLOCK(gpio_lock);
48 spin_lock(&gpio_lock); in loongson_gpio_get_value()
50 spin_unlock(&gpio_lock); in loongson_gpio_get_value()
60 spin_lock(&gpio_lock); in loongson_gpio_set_value()
67 spin_unlock(&gpio_lock); in loongson_gpio_set_value()
74 spin_lock(&gpio_lock); in loongson_gpio_direction_input()
78 spin_unlock(&gpio_lock); in loongson_gpio_direction_input()
89 spin_lock(&gpio_lock); in loongson_gpio_direction_output()
93 spin_unlock(&gpio_lock); in loongson_gpio_direction_output()
Dgpio-mpc5200.c31 static DEFINE_SPINLOCK(gpio_lock);
89 spin_lock_irqsave(&gpio_lock, flags); in mpc52xx_wkup_gpio_set()
93 spin_unlock_irqrestore(&gpio_lock, flags); in mpc52xx_wkup_gpio_set()
105 spin_lock_irqsave(&gpio_lock, flags); in mpc52xx_wkup_gpio_dir_in()
115 spin_unlock_irqrestore(&gpio_lock, flags); in mpc52xx_wkup_gpio_dir_in()
128 spin_lock_irqsave(&gpio_lock, flags); in mpc52xx_wkup_gpio_dir_out()
140 spin_unlock_irqrestore(&gpio_lock, flags); in mpc52xx_wkup_gpio_dir_out()
250 spin_lock_irqsave(&gpio_lock, flags); in mpc52xx_simple_gpio_set()
254 spin_unlock_irqrestore(&gpio_lock, flags); in mpc52xx_simple_gpio_set()
266 spin_lock_irqsave(&gpio_lock, flags); in mpc52xx_simple_gpio_dir_in()
[all …]
Dgpio-xilinx.c54 spinlock_t gpio_lock[2]; member
121 spin_lock_irqsave(&chip->gpio_lock[index], flags); in xgpio_set()
132 spin_unlock_irqrestore(&chip->gpio_lock[index], flags); in xgpio_set()
153 spin_lock_irqsave(&chip->gpio_lock[index], flags); in xgpio_set_multiple()
163 spin_unlock_irqrestore(&chip->gpio_lock[index], flags); in xgpio_set_multiple()
165 spin_lock_irqsave(&chip->gpio_lock[index], flags); in xgpio_set_multiple()
179 spin_unlock_irqrestore(&chip->gpio_lock[index], flags); in xgpio_set_multiple()
199 spin_lock_irqsave(&chip->gpio_lock[index], flags); in xgpio_dir_in()
206 spin_unlock_irqrestore(&chip->gpio_lock[index], flags); in xgpio_dir_in()
231 spin_lock_irqsave(&chip->gpio_lock[index], flags); in xgpio_dir_out()
[all …]
Dgpio-altera.c42 raw_spinlock_t gpio_lock; member
57 raw_spin_lock_irqsave(&altera_gc->gpio_lock, flags); in altera_gpio_irq_unmask()
62 raw_spin_unlock_irqrestore(&altera_gc->gpio_lock, flags); in altera_gpio_irq_unmask()
75 raw_spin_lock_irqsave(&altera_gc->gpio_lock, flags); in altera_gpio_irq_mask()
80 raw_spin_unlock_irqrestore(&altera_gc->gpio_lock, flags); in altera_gpio_irq_mask()
144 raw_spin_lock_irqsave(&chip->gpio_lock, flags); in altera_gpio_set()
151 raw_spin_unlock_irqrestore(&chip->gpio_lock, flags); in altera_gpio_set()
164 raw_spin_lock_irqsave(&chip->gpio_lock, flags); in altera_gpio_direction_input()
169 raw_spin_unlock_irqrestore(&chip->gpio_lock, flags); in altera_gpio_direction_input()
185 raw_spin_lock_irqsave(&chip->gpio_lock, flags); in altera_gpio_direction_output()
[all …]
Dgpiolib.c73 DEFINE_SPINLOCK(gpio_lock);
110 spin_lock_irqsave(&gpio_lock, flags); in gpio_to_desc()
115 spin_unlock_irqrestore(&gpio_lock, flags); in gpio_to_desc()
120 spin_unlock_irqrestore(&gpio_lock, flags); in gpio_to_desc()
301 spin_lock_irqsave(&gpio_lock, flags); in gpio_name_to_desc()
313 spin_unlock_irqrestore(&gpio_lock, flags); in gpio_name_to_desc()
319 spin_unlock_irqrestore(&gpio_lock, flags); in gpio_name_to_desc()
1336 spin_lock_irqsave(&gpio_lock, flags); in gpiochip_add_data_with_key()
1349 spin_unlock_irqrestore(&gpio_lock, flags); in gpiochip_add_data_with_key()
1364 spin_unlock_irqrestore(&gpio_lock, flags); in gpiochip_add_data_with_key()
[all …]
Dgpiolib-sysfs.c612 spin_lock_irqsave(&gpio_lock, flags); in gpiod_export()
615 spin_unlock_irqrestore(&gpio_lock, flags); in gpiod_export()
623 spin_unlock_irqrestore(&gpio_lock, flags); in gpiod_export()
832 spin_lock_irqsave(&gpio_lock, flags); in gpiolib_sysfs_init()
846 spin_unlock_irqrestore(&gpio_lock, flags); in gpiolib_sysfs_init()
848 spin_lock_irqsave(&gpio_lock, flags); in gpiolib_sysfs_init()
850 spin_unlock_irqrestore(&gpio_lock, flags); in gpiolib_sysfs_init()
Dgpio-pxa.c109 static DEFINE_SPINLOCK(gpio_lock);
277 spin_lock_irqsave(&gpio_lock, flags); in pxa_gpio_direction_input()
286 spin_unlock_irqrestore(&gpio_lock, flags); in pxa_gpio_direction_input()
306 spin_lock_irqsave(&gpio_lock, flags); in pxa_gpio_direction_output()
315 spin_unlock_irqrestore(&gpio_lock, flags); in pxa_gpio_direction_output()
Dgpiolib.h202 extern struct spinlock gpio_lock;
/linux-4.19.296/drivers/iio/dac/
Dad5592r-base.c32 mutex_lock(&st->gpio_lock); in ad5592r_gpio_get()
39 mutex_unlock(&st->gpio_lock); in ad5592r_gpio_get()
51 mutex_lock(&st->gpio_lock); in ad5592r_gpio_set()
60 mutex_unlock(&st->gpio_lock); in ad5592r_gpio_set()
68 mutex_lock(&st->gpio_lock); in ad5592r_gpio_direction_input()
80 mutex_unlock(&st->gpio_lock); in ad5592r_gpio_direction_input()
91 mutex_lock(&st->gpio_lock); in ad5592r_gpio_direction_output()
112 mutex_unlock(&st->gpio_lock); in ad5592r_gpio_direction_output()
147 mutex_init(&st->gpio_lock); in ad5592r_gpio_init()
Dad5592r-base.h55 struct mutex gpio_lock; /* Protect cached gpio_out, gpio_val, etc. */ member
/linux-4.19.296/include/linux/
Dioc3.h36 spinlock_t gpio_lock; member
/linux-4.19.296/include/linux/ssb/
Dssb_driver_extif.h164 spinlock_t gpio_lock; member
Dssb_driver_chipcommon.h594 spinlock_t gpio_lock; member
Dssb.h492 spinlock_t gpio_lock; member
/linux-4.19.296/include/linux/bcma/
Dbcma_driver_chipcommon.h645 spinlock_t gpio_lock; member