Home
last modified time | relevance | path

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

12

/Linux-v6.1/drivers/gpio/
Dgpio-loongson.c38 static DEFINE_SPINLOCK(gpio_lock);
44 spin_lock(&gpio_lock); in loongson_gpio_get_value()
46 spin_unlock(&gpio_lock); in loongson_gpio_get_value()
56 spin_lock(&gpio_lock); in loongson_gpio_set_value()
63 spin_unlock(&gpio_lock); in loongson_gpio_set_value()
70 spin_lock(&gpio_lock); in loongson_gpio_direction_input()
74 spin_unlock(&gpio_lock); in loongson_gpio_direction_input()
85 spin_lock(&gpio_lock); in loongson_gpio_direction_output()
89 spin_unlock(&gpio_lock); in loongson_gpio_direction_output()
Dgpio-mpc5200.c19 static DEFINE_SPINLOCK(gpio_lock);
77 spin_lock_irqsave(&gpio_lock, flags); in mpc52xx_wkup_gpio_set()
81 spin_unlock_irqrestore(&gpio_lock, flags); in mpc52xx_wkup_gpio_set()
93 spin_lock_irqsave(&gpio_lock, flags); in mpc52xx_wkup_gpio_dir_in()
103 spin_unlock_irqrestore(&gpio_lock, flags); in mpc52xx_wkup_gpio_dir_in()
116 spin_lock_irqsave(&gpio_lock, flags); in mpc52xx_wkup_gpio_dir_out()
128 spin_unlock_irqrestore(&gpio_lock, flags); in mpc52xx_wkup_gpio_dir_out()
238 spin_lock_irqsave(&gpio_lock, flags); in mpc52xx_simple_gpio_set()
242 spin_unlock_irqrestore(&gpio_lock, flags); in mpc52xx_simple_gpio_set()
254 spin_lock_irqsave(&gpio_lock, flags); in mpc52xx_simple_gpio_dir_in()
[all …]
Dgpio-altera.c31 raw_spinlock_t gpio_lock; member
47 raw_spin_lock_irqsave(&altera_gc->gpio_lock, flags); in altera_gpio_irq_unmask()
52 raw_spin_unlock_irqrestore(&altera_gc->gpio_lock, flags); in altera_gpio_irq_unmask()
65 raw_spin_lock_irqsave(&altera_gc->gpio_lock, flags); in altera_gpio_irq_mask()
70 raw_spin_unlock_irqrestore(&altera_gc->gpio_lock, flags); in altera_gpio_irq_mask()
125 raw_spin_lock_irqsave(&chip->gpio_lock, flags); in altera_gpio_set()
132 raw_spin_unlock_irqrestore(&chip->gpio_lock, flags); in altera_gpio_set()
145 raw_spin_lock_irqsave(&chip->gpio_lock, flags); in altera_gpio_direction_input()
150 raw_spin_unlock_irqrestore(&chip->gpio_lock, flags); in altera_gpio_direction_input()
166 raw_spin_lock_irqsave(&chip->gpio_lock, flags); in altera_gpio_direction_output()
[all …]
Dgpio-xilinx.c69 spinlock_t gpio_lock; /* For serializing operations */ member
184 spin_lock_irqsave(&chip->gpio_lock, flags); in xgpio_set()
191 spin_unlock_irqrestore(&chip->gpio_lock, flags); in xgpio_set()
215 spin_lock_irqsave(&chip->gpio_lock, flags); in xgpio_set_multiple()
223 spin_unlock_irqrestore(&chip->gpio_lock, flags); in xgpio_set_multiple()
241 spin_lock_irqsave(&chip->gpio_lock, flags); in xgpio_dir_in()
247 spin_unlock_irqrestore(&chip->gpio_lock, flags); in xgpio_dir_in()
270 spin_lock_irqsave(&chip->gpio_lock, flags); in xgpio_dir_out()
280 spin_unlock_irqrestore(&chip->gpio_lock, flags); in xgpio_dir_out()
408 spin_lock_irqsave(&chip->gpio_lock, flags); in xgpio_irq_mask()
[all …]
Dgpiolib.c74 DEFINE_SPINLOCK(gpio_lock);
112 spin_lock_irqsave(&gpio_lock, flags); in gpio_to_desc()
117 spin_unlock_irqrestore(&gpio_lock, flags); in gpio_to_desc()
122 spin_unlock_irqrestore(&gpio_lock, flags); in gpio_to_desc()
308 spin_lock_irqsave(&gpio_lock, flags); in gpio_name_to_desc()
315 spin_unlock_irqrestore(&gpio_lock, flags); in gpio_name_to_desc()
321 spin_unlock_irqrestore(&gpio_lock, flags); in gpio_name_to_desc()
499 spin_lock_irqsave(&gpio_lock, flags); in gpiodevice_release()
501 spin_unlock_irqrestore(&gpio_lock, flags); in gpiodevice_release()
697 spin_lock_irqsave(&gpio_lock, flags); in gpiochip_add_data_with_key()
[all …]
Dgpiolib-sysfs.c580 spin_lock_irqsave(&gpio_lock, flags); in gpiod_export()
583 spin_unlock_irqrestore(&gpio_lock, flags); in gpiod_export()
591 spin_unlock_irqrestore(&gpio_lock, flags); in gpiod_export()
795 spin_lock_irqsave(&gpio_lock, flags); in gpiolib_sysfs_init()
809 spin_unlock_irqrestore(&gpio_lock, flags); in gpiolib_sysfs_init()
811 spin_lock_irqsave(&gpio_lock, flags); in gpiolib_sysfs_init()
813 spin_unlock_irqrestore(&gpio_lock, flags); in gpiolib_sysfs_init()
Dgpio-pxa.c106 static DEFINE_SPINLOCK(gpio_lock);
273 spin_lock_irqsave(&gpio_lock, flags); in pxa_gpio_direction_input()
282 spin_unlock_irqrestore(&gpio_lock, flags); in pxa_gpio_direction_input()
302 spin_lock_irqsave(&gpio_lock, flags); in pxa_gpio_direction_output()
311 spin_unlock_irqrestore(&gpio_lock, flags); in pxa_gpio_direction_output()
/Linux-v6.1/drivers/ssb/
Dembedded.c74 spin_lock_irqsave(&bus->gpio_lock, flags); in ssb_gpio_in()
81 spin_unlock_irqrestore(&bus->gpio_lock, flags); in ssb_gpio_in()
92 spin_lock_irqsave(&bus->gpio_lock, flags); in ssb_gpio_out()
99 spin_unlock_irqrestore(&bus->gpio_lock, flags); in ssb_gpio_out()
110 spin_lock_irqsave(&bus->gpio_lock, flags); in ssb_gpio_outen()
117 spin_unlock_irqrestore(&bus->gpio_lock, flags); in ssb_gpio_outen()
128 spin_lock_irqsave(&bus->gpio_lock, flags); in ssb_gpio_control()
131 spin_unlock_irqrestore(&bus->gpio_lock, flags); in ssb_gpio_control()
142 spin_lock_irqsave(&bus->gpio_lock, flags); in ssb_gpio_intmask()
149 spin_unlock_irqrestore(&bus->gpio_lock, flags); in ssb_gpio_intmask()
[all …]
Ddriver_extif.c145 spin_lock_init(&extif->gpio_lock); in ssb_extif_init()
158 spin_lock_irqsave(&extif->gpio_lock, flags); in ssb_extif_gpio_out()
161 spin_unlock_irqrestore(&extif->gpio_lock, flags); in ssb_extif_gpio_out()
171 spin_lock_irqsave(&extif->gpio_lock, flags); in ssb_extif_gpio_outen()
174 spin_unlock_irqrestore(&extif->gpio_lock, flags); in ssb_extif_gpio_outen()
184 spin_lock_irqsave(&extif->gpio_lock, flags); in ssb_extif_gpio_polarity()
186 spin_unlock_irqrestore(&extif->gpio_lock, flags); in ssb_extif_gpio_polarity()
196 spin_lock_irqsave(&extif->gpio_lock, flags); in ssb_extif_gpio_intmask()
198 spin_unlock_irqrestore(&extif->gpio_lock, flags); in ssb_extif_gpio_intmask()
Ddriver_chipcommon.c353 spin_lock_init(&cc->gpio_lock); in ssb_chipcommon_init()
514 spin_lock_irqsave(&cc->gpio_lock, flags); in ssb_chipco_gpio_out()
516 spin_unlock_irqrestore(&cc->gpio_lock, flags); in ssb_chipco_gpio_out()
526 spin_lock_irqsave(&cc->gpio_lock, flags); in ssb_chipco_gpio_outen()
528 spin_unlock_irqrestore(&cc->gpio_lock, flags); in ssb_chipco_gpio_outen()
538 spin_lock_irqsave(&cc->gpio_lock, flags); in ssb_chipco_gpio_control()
540 spin_unlock_irqrestore(&cc->gpio_lock, flags); in ssb_chipco_gpio_control()
551 spin_lock_irqsave(&cc->gpio_lock, flags); in ssb_chipco_gpio_intmask()
553 spin_unlock_irqrestore(&cc->gpio_lock, flags); in ssb_chipco_gpio_intmask()
563 spin_lock_irqsave(&cc->gpio_lock, flags); in ssb_chipco_gpio_polarity()
[all …]
/Linux-v6.1/drivers/bcma/
Ddriver_chipcommon.c176 spin_lock_init(&cc->gpio_lock); in bcma_core_chipcommon_early_init()
284 spin_lock_irqsave(&cc->gpio_lock, flags); in bcma_chipco_gpio_out()
286 spin_unlock_irqrestore(&cc->gpio_lock, flags); in bcma_chipco_gpio_out()
297 spin_lock_irqsave(&cc->gpio_lock, flags); in bcma_chipco_gpio_outen()
299 spin_unlock_irqrestore(&cc->gpio_lock, flags); in bcma_chipco_gpio_outen()
314 spin_lock_irqsave(&cc->gpio_lock, flags); in bcma_chipco_gpio_control()
316 spin_unlock_irqrestore(&cc->gpio_lock, flags); in bcma_chipco_gpio_control()
327 spin_lock_irqsave(&cc->gpio_lock, flags); in bcma_chipco_gpio_intmask()
329 spin_unlock_irqrestore(&cc->gpio_lock, flags); in bcma_chipco_gpio_intmask()
339 spin_lock_irqsave(&cc->gpio_lock, flags); in bcma_chipco_gpio_polarity()
[all …]
/Linux-v6.1/drivers/media/pci/cx18/
Dcx18-gpio.c60 mutex_lock(&cx->gpio_lock); in gpio_update()
63 mutex_unlock(&cx->gpio_lock); in gpio_update()
98 mutex_lock(&cx->gpio_lock); in gpiomux_log_status()
101 mutex_unlock(&cx->gpio_lock); in gpiomux_log_status()
197 mutex_lock(&cx->gpio_lock); in resetctrl_log_status()
200 mutex_unlock(&cx->gpio_lock); in resetctrl_log_status()
256 mutex_lock(&cx->gpio_lock); in cx18_gpio_init()
266 mutex_unlock(&cx->gpio_lock); in cx18_gpio_init()
277 mutex_unlock(&cx->gpio_lock); in cx18_gpio_init()
/Linux-v6.1/drivers/input/keyboard/
Dadp5588-keys.c194 struct mutex gpio_lock; /* Protect cached dir, dat_out */ member
224 mutex_lock(&kpad->gpio_lock); in adp5588_gpio_get_value()
231 mutex_unlock(&kpad->gpio_lock); in adp5588_gpio_get_value()
243 mutex_lock(&kpad->gpio_lock); in adp5588_gpio_set_value()
252 mutex_unlock(&kpad->gpio_lock); in adp5588_gpio_set_value()
275 mutex_lock(&kpad->gpio_lock); in adp5588_gpio_set_config()
285 mutex_unlock(&kpad->gpio_lock); in adp5588_gpio_set_config()
297 mutex_lock(&kpad->gpio_lock); in adp5588_gpio_direction_input()
302 mutex_unlock(&kpad->gpio_lock); in adp5588_gpio_direction_input()
315 mutex_lock(&kpad->gpio_lock); in adp5588_gpio_direction_output()
[all …]
Dadp5589-keys.c244 struct mutex gpio_lock; /* Protect cached dir, dat_out */ member
407 mutex_lock(&kpad->gpio_lock); in adp5589_gpio_set_value()
417 mutex_unlock(&kpad->gpio_lock); in adp5589_gpio_set_value()
427 mutex_lock(&kpad->gpio_lock); in adp5589_gpio_direction_input()
434 mutex_unlock(&kpad->gpio_lock); in adp5589_gpio_direction_input()
447 mutex_lock(&kpad->gpio_lock); in adp5589_gpio_direction_output()
462 mutex_unlock(&kpad->gpio_lock); in adp5589_gpio_direction_output()
526 mutex_init(&kpad->gpio_lock); in adp5589_gpio_add()
/Linux-v6.1/drivers/media/pci/bt8xx/
Dbttv-gpio.c134 spin_lock_irqsave(&btv->gpio_lock,flags); in bttv_gpio_inout()
139 spin_unlock_irqrestore(&btv->gpio_lock,flags); in bttv_gpio_inout()
164 spin_lock_irqsave(&btv->gpio_lock,flags); in bttv_gpio_bits()
169 spin_unlock_irqrestore(&btv->gpio_lock,flags); in bttv_gpio_bits()
Dbt878.h95 struct mutex gpio_lock; member
Dbt878.c325 if (mutex_lock_interruptible(&bt->gpio_lock)) in bt878_device_control()
356 mutex_unlock(&bt->gpio_lock); in bt878_device_control()
/Linux-v6.1/drivers/iio/dac/
Dad5592r-base.c29 mutex_lock(&st->gpio_lock); in ad5592r_gpio_get()
36 mutex_unlock(&st->gpio_lock); in ad5592r_gpio_get()
48 mutex_lock(&st->gpio_lock); in ad5592r_gpio_set()
57 mutex_unlock(&st->gpio_lock); in ad5592r_gpio_set()
65 mutex_lock(&st->gpio_lock); in ad5592r_gpio_direction_input()
77 mutex_unlock(&st->gpio_lock); in ad5592r_gpio_direction_input()
88 mutex_lock(&st->gpio_lock); in ad5592r_gpio_direction_output()
109 mutex_unlock(&st->gpio_lock); in ad5592r_gpio_direction_output()
144 mutex_init(&st->gpio_lock); in ad5592r_gpio_init()
Dad5592r-base.h56 struct mutex gpio_lock; /* Protect cached gpio_out, gpio_val, etc. */ member
/Linux-v6.1/arch/powerpc/platforms/52xx/
Dmpc52xx_common.c92 static DEFINE_SPINLOCK(gpio_lock);
272 spin_lock_irqsave(&gpio_lock, flags); in mpc5200_psc_ac97_gpio_reset()
302 spin_unlock_irqrestore(&gpio_lock, flags); in mpc5200_psc_ac97_gpio_reset()
/Linux-v6.1/drivers/net/ethernet/microchip/
Dlan743x_ptp.h30 spinlock_t gpio_lock; member
/Linux-v6.1/drivers/infiniband/hw/qib/
Dqib_7220.h52 spinlock_t gpio_lock; /* RMW of shadows/regs for ExtCtrl and GPIO */ member
/Linux-v6.1/drivers/usb/serial/
Dftdi_sio.c94 struct mutex gpio_lock; /* protects GPIO state */ member
1786 mutex_lock(&priv->gpio_lock); in ftdi_gpio_request()
1793 mutex_unlock(&priv->gpio_lock); in ftdi_gpio_request()
1799 mutex_unlock(&priv->gpio_lock); in ftdi_gpio_request()
1845 mutex_lock(&priv->gpio_lock); in ftdi_gpio_set()
1854 mutex_unlock(&priv->gpio_lock); in ftdi_gpio_set()
1878 mutex_lock(&priv->gpio_lock); in ftdi_gpio_set_multiple()
1884 mutex_unlock(&priv->gpio_lock); in ftdi_gpio_set_multiple()
1901 mutex_lock(&priv->gpio_lock); in ftdi_gpio_direction_input()
1906 mutex_unlock(&priv->gpio_lock); in ftdi_gpio_direction_input()
[all …]
/Linux-v6.1/drivers/media/pci/cx23885/
Dcimax2.c197 mutex_lock(&dev->gpio_lock); in netup_ci_op_cam()
220 mutex_unlock(&dev->gpio_lock); in netup_ci_op_cam()
/Linux-v6.1/include/linux/ssb/
Dssb_driver_extif.h163 spinlock_t gpio_lock; member

12