/linux-6.1.9/drivers/gpio/ |
D | gpio-loongson.c | 38 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()
|
D | gpio-mpc5200.c | 19 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 …]
|
D | gpio-altera.c | 31 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 …]
|
D | gpio-xilinx.c | 69 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 …]
|
D | gpiolib.c | 74 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 …]
|
D | gpiolib-sysfs.c | 580 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()
|
D | gpio-pxa.c | 106 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-6.1.9/drivers/ssb/ |
D | embedded.c | 74 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 …]
|
D | driver_extif.c | 145 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()
|
D | driver_chipcommon.c | 353 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-6.1.9/drivers/bcma/ |
D | driver_chipcommon.c | 176 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-6.1.9/drivers/media/pci/cx18/ |
D | cx18-gpio.c | 60 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-6.1.9/drivers/input/keyboard/ |
D | adp5588-keys.c | 194 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 …]
|
D | adp5589-keys.c | 244 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-6.1.9/drivers/media/pci/bt8xx/ |
D | bttv-gpio.c | 134 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()
|
D | bt878.h | 95 struct mutex gpio_lock; member
|
D | bt878.c | 325 if (mutex_lock_interruptible(&bt->gpio_lock)) in bt878_device_control() 356 mutex_unlock(&bt->gpio_lock); in bt878_device_control()
|
/linux-6.1.9/drivers/iio/dac/ |
D | ad5592r-base.c | 29 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()
|
D | ad5592r-base.h | 56 struct mutex gpio_lock; /* Protect cached gpio_out, gpio_val, etc. */ member
|
/linux-6.1.9/arch/powerpc/platforms/52xx/ |
D | mpc52xx_common.c | 92 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-6.1.9/drivers/net/ethernet/microchip/ |
D | lan743x_ptp.h | 30 spinlock_t gpio_lock; member
|
/linux-6.1.9/drivers/infiniband/hw/qib/ |
D | qib_7220.h | 52 spinlock_t gpio_lock; /* RMW of shadows/regs for ExtCtrl and GPIO */ member
|
/linux-6.1.9/drivers/usb/serial/ |
D | ftdi_sio.c | 94 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-6.1.9/drivers/media/pci/cx23885/ |
D | cimax2.c | 197 mutex_lock(&dev->gpio_lock); in netup_ci_op_cam() 220 mutex_unlock(&dev->gpio_lock); in netup_ci_op_cam()
|
/linux-6.1.9/include/linux/ssb/ |
D | ssb_driver_extif.h | 163 spinlock_t gpio_lock; member
|