Home
last modified time | relevance | path

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

12

/linux/drivers/gpio/
H A 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()
H A Dgpio-xilinx.c68 spinlock_t gpio_lock; /* For serializing operations */ member
182 spin_lock_irqsave(&chip->gpio_lock, flags); in xgpio_set()
189 spin_unlock_irqrestore(&chip->gpio_lock, flags); in xgpio_set()
213 spin_lock_irqsave(&chip->gpio_lock, flags); in xgpio_set_multiple()
221 spin_unlock_irqrestore(&chip->gpio_lock, flags); in xgpio_set_multiple()
239 spin_lock_irqsave(&chip->gpio_lock, flags); in xgpio_dir_in()
245 spin_unlock_irqrestore(&chip->gpio_lock, flags); in xgpio_dir_in()
268 spin_lock_irqsave(&chip->gpio_lock, flags); in xgpio_dir_out()
278 spin_unlock_irqrestore(&chip->gpio_lock, flags); in xgpio_dir_out()
401 spin_lock_irqsave(&chip->gpio_lock, flags); in xgpio_irq_mask()
[all …]
H A Dgpio-pxa.c105 static DEFINE_SPINLOCK(gpio_lock);
268 spin_lock_irqsave(&gpio_lock, flags); in pxa_gpio_direction_input()
277 spin_unlock_irqrestore(&gpio_lock, flags); in pxa_gpio_direction_input()
297 spin_lock_irqsave(&gpio_lock, flags); in pxa_gpio_direction_output()
306 spin_unlock_irqrestore(&gpio_lock, flags); in pxa_gpio_direction_output()
/linux/drivers/ssb/
H A 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 …]
H A 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()
H A 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/drivers/bcma/
H A 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/drivers/media/pci/cx18/
H A 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/drivers/media/pci/bt8xx/
H A 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()
H A Dbt878.h96 struct mutex gpio_lock; member
H A Dbt878.c325 if (mutex_lock_interruptible(&bt->gpio_lock)) in bt878_device_control()
356 mutex_unlock(&bt->gpio_lock); in bt878_device_control()
H A Dbttvp.h339 spinlock_t gpio_lock; member
/linux/drivers/iio/dac/
H A 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()
149 mutex_init(&st->gpio_lock); in ad5592r_gpio_init()
H A Dad5592r-base.h56 struct mutex gpio_lock; /* Protect cached gpio_out, gpio_val, etc. */ member
/linux/drivers/input/keyboard/
H A Dadp5588-keys.c195 struct mutex gpio_lock; /* Protect cached dir, dat_out */ member
225 guard(mutex)(&kpad->gpio_lock); in adp5588_gpio_get_value()
242 guard(mutex)(&kpad->gpio_lock); in adp5588_gpio_set_value()
271 guard(mutex)(&kpad->gpio_lock); in adp5588_gpio_set_config()
288 guard(mutex)(&kpad->gpio_lock); in adp5588_gpio_direction_input()
302 guard(mutex)(&kpad->gpio_lock); in adp5588_gpio_direction_output()
349 mutex_lock(&kpad->gpio_lock); in adp5588_irq_bus_lock()
365 mutex_unlock(&kpad->gpio_lock); in adp5588_irq_bus_sync_unlock()
447 mutex_init(&kpad->gpio_lock); in adp5588_gpio_add()
H A Dadp5589-keys.c244 struct mutex gpio_lock; /* Protect cached dir, dat_out */ member
396 mutex_lock(&kpad->gpio_lock); in adp5589_gpio_get_value()
402 mutex_unlock(&kpad->gpio_lock); in adp5589_gpio_get_value()
414 guard(mutex)(&kpad->gpio_lock); in adp5589_gpio_set_value()
431 guard(mutex)(&kpad->gpio_lock); in adp5589_gpio_direction_input()
447 guard(mutex)(&kpad->gpio_lock); in adp5589_gpio_direction_output()
530 mutex_init(&kpad->gpio_lock); in adp5589_gpio_add()
/linux/arch/powerpc/platforms/52xx/
H A Dmpc52xx_common.c90 static DEFINE_SPINLOCK(gpio_lock);
270 spin_lock_irqsave(&gpio_lock, flags); in mpc5200_psc_ac97_gpio_reset()
300 spin_unlock_irqrestore(&gpio_lock, flags); in mpc5200_psc_ac97_gpio_reset()
/linux/drivers/net/ethernet/wangxun/txgbe/
H A Dtxgbe_phy.c337 raw_spin_lock_irqsave(&wx->gpio_lock, flags); in txgbe_gpio_direction_in()
339 raw_spin_unlock_irqrestore(&wx->gpio_lock, flags); in txgbe_gpio_direction_in()
353 raw_spin_lock_irqsave(&wx->gpio_lock, flags); in txgbe_gpio_direction_out()
356 raw_spin_unlock_irqrestore(&wx->gpio_lock, flags); in txgbe_gpio_direction_out()
371 raw_spin_lock_init(&wx->gpio_lock); in txgbe_gpio_init()
/linux/drivers/net/ethernet/microchip/
H A Dlan743x_ptp.h31 spinlock_t gpio_lock; member
H A Dlan743x_ptp.c44 spin_lock_init(&gpio->gpio_lock); in lan743x_gpio_init()
257 spin_lock_irqsave(&gpio->gpio_lock, irq_flags); in lan743x_gpio_rsrv_ptp_out()
293 spin_unlock_irqrestore(&gpio->gpio_lock, irq_flags); in lan743x_gpio_rsrv_ptp_out()
303 spin_lock_irqsave(&gpio->gpio_lock, irq_flags); in lan743x_gpio_release()
332 spin_unlock_irqrestore(&gpio->gpio_lock, irq_flags); in lan743x_gpio_release()
/linux/drivers/infiniband/hw/qib/
H A Dqib_7220.h52 spinlock_t gpio_lock; /* RMW of shadows/regs for ExtCtrl and GPIO */ member
/linux/drivers/media/pci/cx23885/
H A Dcimax2.c197 mutex_lock(&dev->gpio_lock); in netup_ci_op_cam()
220 mutex_unlock(&dev->gpio_lock); in netup_ci_op_cam()
/linux/include/linux/ssb/
H A Dssb_driver_extif.h163 spinlock_t gpio_lock; member
/linux/drivers/net/phy/mscc/
H A Dmscc_ptp.c660 mutex_lock(&shared->gpio_lock); in __vsc85xx_gettime()
676 mutex_unlock(&shared->gpio_lock); in __vsc85xx_gettime()
718 mutex_lock(&shared->gpio_lock); in __vsc85xx_settime()
725 mutex_unlock(&shared->gpio_lock); in __vsc85xx_settime()
1587 mutex_init(&shared->gpio_lock); in vsc8584_ptp_probe_once()
H A Dmscc.h425 struct mutex gpio_lock; member

12