/linux-3.4.99/arch/cris/arch-v10/drivers/ |
D | gpio.c | 80 static DEFINE_SPINLOCK(gpio_lock); /* Protect directions etc */ 150 spin_lock_irqsave(&gpio_lock, flags); in gpio_poll() 179 spin_unlock_irqrestore(&gpio_lock, flags); in gpio_poll() 192 spin_lock_irqsave(&gpio_lock, flags); in etrax_gpio_wake_up_check() 208 spin_unlock_irqrestore(&gpio_lock, flags); in etrax_gpio_wake_up_check() 228 spin_lock_irqsave(&gpio_lock, flags); in gpio_interrupt() 240 spin_unlock_irqrestore(&gpio_lock, flags); in gpio_interrupt() 286 spin_lock_irqsave(&gpio_lock, flags); in gpio_write() 303 spin_unlock_irqrestore(&gpio_lock, flags); in gpio_write() 353 spin_lock_irqsave(&gpio_lock, flags); in gpio_open() [all …]
|
/linux-3.4.99/arch/mips/loongson/common/ |
D | gpio.c | 25 static DEFINE_SPINLOCK(gpio_lock); 36 spin_lock(&gpio_lock); in gpio_get_value() 38 spin_unlock(&gpio_lock); in gpio_get_value() 56 spin_lock(&gpio_lock); in gpio_set_value() 63 spin_unlock(&gpio_lock); in gpio_set_value() 84 spin_lock(&gpio_lock); in ls2f_gpio_direction_input() 89 spin_unlock(&gpio_lock); in ls2f_gpio_direction_input() 104 spin_lock(&gpio_lock); in ls2f_gpio_direction_output() 109 spin_unlock(&gpio_lock); in ls2f_gpio_direction_output()
|
/linux-3.4.99/drivers/gpio/ |
D | gpio-sch.c | 32 static DEFINE_SPINLOCK(gpio_lock); 49 spin_lock(&gpio_lock); in sch_gpio_core_direction_in() 59 spin_unlock(&gpio_lock); in sch_gpio_core_direction_in() 80 spin_lock(&gpio_lock); in sch_gpio_core_set() 91 spin_unlock(&gpio_lock); in sch_gpio_core_set() 102 spin_lock(&gpio_lock); in sch_gpio_core_direction_out() 111 spin_unlock(&gpio_lock); in sch_gpio_core_direction_out() 129 spin_lock(&gpio_lock); in sch_gpio_resume_direction_in() 136 spin_unlock(&gpio_lock); in sch_gpio_resume_direction_in() 150 spin_lock(&gpio_lock); in sch_gpio_resume_set() [all …]
|
D | gpio-mpc5200.c | 32 static DEFINE_SPINLOCK(gpio_lock); 91 spin_lock_irqsave(&gpio_lock, flags); in mpc52xx_wkup_gpio_set() 95 spin_unlock_irqrestore(&gpio_lock, flags); in mpc52xx_wkup_gpio_set() 108 spin_lock_irqsave(&gpio_lock, flags); in mpc52xx_wkup_gpio_dir_in() 118 spin_unlock_irqrestore(&gpio_lock, flags); in mpc52xx_wkup_gpio_dir_in() 132 spin_lock_irqsave(&gpio_lock, flags); in mpc52xx_wkup_gpio_dir_out() 144 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() 267 spin_lock_irqsave(&gpio_lock, flags); in mpc52xx_simple_gpio_dir_in() [all …]
|
D | gpio-xilinx.c | 33 spinlock_t gpio_lock; /* Lock used for synchronization */ member 67 spin_lock_irqsave(&chip->gpio_lock, flags); in xgpio_set() 76 spin_unlock_irqrestore(&chip->gpio_lock, flags); in xgpio_set() 95 spin_lock_irqsave(&chip->gpio_lock, flags); in xgpio_dir_in() 101 spin_unlock_irqrestore(&chip->gpio_lock, flags); in xgpio_dir_in() 123 spin_lock_irqsave(&chip->gpio_lock, flags); in xgpio_dir_out() 136 spin_unlock_irqrestore(&chip->gpio_lock, flags); in xgpio_dir_out() 192 spin_lock_init(&chip->gpio_lock); in xgpio_of_probe()
|
D | gpiolib.c | 47 static DEFINE_SPINLOCK(gpio_lock); 173 spin_lock_irqsave(&gpio_lock, flags); in gpiochip_reserve() 189 spin_unlock_irqrestore(&gpio_lock, flags); in gpiochip_reserve() 721 spin_lock_irqsave(&gpio_lock, flags); in gpio_export() 730 spin_unlock_irqrestore(&gpio_lock, flags); in gpio_export() 941 spin_lock_irqsave(&gpio_lock, flags); in gpiochip_export() 945 spin_unlock_irqrestore(&gpio_lock, flags); in gpiochip_export() 991 spin_lock_irqsave(&gpio_lock, flags); in gpiolib_sysfs_init() 999 spin_unlock_irqrestore(&gpio_lock, flags); in gpiolib_sysfs_init() 1001 spin_lock_irqsave(&gpio_lock, flags); in gpiolib_sysfs_init() [all …]
|
D | gpio-twl4030.c | 72 static DEFINE_MUTEX(gpio_lock); 141 mutex_lock(&gpio_lock); in twl4030_led_set_value() 148 mutex_unlock(&gpio_lock); in twl4030_led_set_value() 159 mutex_lock(&gpio_lock); in twl4030_set_gpio_direction() 169 mutex_unlock(&gpio_lock); in twl4030_set_gpio_direction() 212 mutex_lock(&gpio_lock); in twl_request() 271 mutex_unlock(&gpio_lock); in twl_request() 282 mutex_lock(&gpio_lock); in twl_free() 290 mutex_unlock(&gpio_lock); in twl_free()
|
D | gpio-pxa.c | 87 static DEFINE_SPINLOCK(gpio_lock); 227 spin_lock_irqsave(&gpio_lock, flags); in pxa_gpio_direction_input() 236 spin_unlock_irqrestore(&gpio_lock, flags); in pxa_gpio_direction_input() 249 spin_lock_irqsave(&gpio_lock, flags); in pxa_gpio_direction_output() 258 spin_unlock_irqrestore(&gpio_lock, flags); in pxa_gpio_direction_output()
|
/linux-3.4.99/drivers/ssb/ |
D | embedded.c | 40 spin_lock_irqsave(&bus->gpio_lock, flags); in ssb_gpio_in() 47 spin_unlock_irqrestore(&bus->gpio_lock, flags); in ssb_gpio_in() 58 spin_lock_irqsave(&bus->gpio_lock, flags); in ssb_gpio_out() 65 spin_unlock_irqrestore(&bus->gpio_lock, flags); in ssb_gpio_out() 76 spin_lock_irqsave(&bus->gpio_lock, flags); in ssb_gpio_outen() 83 spin_unlock_irqrestore(&bus->gpio_lock, flags); in ssb_gpio_outen() 94 spin_lock_irqsave(&bus->gpio_lock, flags); in ssb_gpio_control() 97 spin_unlock_irqrestore(&bus->gpio_lock, flags); in ssb_gpio_control() 108 spin_lock_irqsave(&bus->gpio_lock, flags); in ssb_gpio_intmask() 115 spin_unlock_irqrestore(&bus->gpio_lock, flags); in ssb_gpio_intmask() [all …]
|
/linux-3.4.99/arch/arm/mach-w90x900/ |
D | gpio.c | 51 spinlock_t gpio_lock; member 73 spin_lock_irqsave(&nuc900_gpio->gpio_lock, flags); in nuc900_gpio_set() 84 spin_unlock_irqrestore(&nuc900_gpio->gpio_lock, flags); in nuc900_gpio_set() 94 spin_lock_irqsave(&nuc900_gpio->gpio_lock, flags); in nuc900_dir_input() 100 spin_unlock_irqrestore(&nuc900_gpio->gpio_lock, flags); in nuc900_dir_input() 113 spin_lock_irqsave(&nuc900_gpio->gpio_lock, flags); in nuc900_dir_output() 128 spin_unlock_irqrestore(&nuc900_gpio->gpio_lock, flags); in nuc900_dir_output() 150 spin_lock_init(&gpio_chip->gpio_lock); in nuc900_init_gpio()
|
/linux-3.4.99/arch/mips/pmc-sierra/msp71xx/ |
D | gpio.c | 30 static spinlock_t gpio_lock; variable 75 spin_lock_irqsave(&gpio_lock, flags); in msp71xx_gpio_set() 84 spin_unlock_irqrestore(&gpio_lock, flags); in msp71xx_gpio_set() 103 spin_lock_irqsave(&gpio_lock, flags); in msp71xx_set_gpio_mode() 110 spin_unlock_irqrestore(&gpio_lock, flags); in msp71xx_set_gpio_mode() 159 spin_lock_irqsave(&gpio_lock, flags); in msp71xx_set_output_drive() 168 spin_unlock_irqrestore(&gpio_lock, flags); in msp71xx_set_output_drive() 212 spin_lock_init(&gpio_lock); in msp71xx_init_gpio()
|
/linux-3.4.99/arch/cris/arch-v32/drivers/mach-a3/ |
D | gpio.c | 110 static DEFINE_SPINLOCK(gpio_lock); 194 spin_lock_irqsave(&gpio_lock, flags); in gpio_set_alarm() 224 spin_unlock_irqrestore(&gpio_lock, flags); in gpio_set_alarm() 273 spin_lock_irqsave(&gpio_lock, flags); in gpio_interrupt() 275 spin_unlock_irqrestore(&gpio_lock, flags); in gpio_interrupt() 371 spin_lock_irqsave(&gpio_lock, flags); in gpio_write() 376 spin_unlock_irqrestore(&gpio_lock, flags); in gpio_write() 411 spin_lock_irq(&gpio_lock); in gpio_open() 414 spin_unlock_irq(&gpio_lock); in gpio_open() 433 spin_lock_irq(&gpio_lock); in gpio_release() [all …]
|
/linux-3.4.99/arch/arm/mach-pnx4008/ |
D | gpio.c | 41 static inline void gpio_lock(void) in gpio_lock() function 124 gpio_lock(); in pnx4008_gpio_register_pin() 166 gpio_lock(); in pnx4008_gpio_unregister_pin() 203 gpio_lock(); in pnx4008_gpio_read_pin() 232 gpio_lock(); in pnx4008_gpio_write_pin() 259 gpio_lock(); in pnx4008_gpio_set_pin_direction() 275 gpio_lock(); in pnx4008_gpio_read_pin_direction() 292 gpio_lock(); in pnx4008_gpio_set_pin_mux() 316 gpio_lock(); in pnx4008_gpio_read_pin_mux()
|
/linux-3.4.99/drivers/media/video/cx18/ |
D | cx18-gpio.c | 74 mutex_lock(&cx->gpio_lock); in gpio_update() 77 mutex_unlock(&cx->gpio_lock); in gpio_update() 112 mutex_lock(&cx->gpio_lock); in gpiomux_log_status() 115 mutex_unlock(&cx->gpio_lock); in gpiomux_log_status() 207 mutex_lock(&cx->gpio_lock); in resetctrl_log_status() 210 mutex_unlock(&cx->gpio_lock); in resetctrl_log_status() 266 mutex_lock(&cx->gpio_lock); in cx18_gpio_init() 276 mutex_unlock(&cx->gpio_lock); in cx18_gpio_init() 287 mutex_unlock(&cx->gpio_lock); in cx18_gpio_init()
|
/linux-3.4.99/drivers/media/video/bt8xx/ |
D | bttv-gpio.c | 147 spin_lock_irqsave(&btv->gpio_lock,flags); in bttv_gpio_inout() 152 spin_unlock_irqrestore(&btv->gpio_lock,flags); in bttv_gpio_inout() 177 spin_lock_irqsave(&btv->gpio_lock,flags); in bttv_gpio_bits() 182 spin_unlock_irqrestore(&btv->gpio_lock,flags); in bttv_gpio_bits()
|
/linux-3.4.99/drivers/sh/ |
D | pfc.c | 497 static DEFINE_SPINLOCK(gpio_lock); 516 spin_lock_irqsave(&gpio_lock, flags); in sh_gpio_request() 545 spin_unlock_irqrestore(&gpio_lock, flags); in sh_gpio_request() 559 spin_lock_irqsave(&gpio_lock, flags); in sh_gpio_free() 566 spin_unlock_irqrestore(&gpio_lock, flags); in sh_gpio_free() 617 spin_lock_irqsave(&gpio_lock, flags); in sh_gpio_direction_input() 619 spin_unlock_irqrestore(&gpio_lock, flags); in sh_gpio_direction_input() 644 spin_lock_irqsave(&gpio_lock, flags); in sh_gpio_direction_output() 646 spin_unlock_irqrestore(&gpio_lock, flags); in sh_gpio_direction_output()
|
/linux-3.4.99/arch/powerpc/platforms/52xx/ |
D | mpc52xx_common.c | 92 static DEFINE_SPINLOCK(gpio_lock); 310 spin_lock_irqsave(&gpio_lock, flags); in mpc5200_psc_ac97_gpio_reset() 340 spin_unlock_irqrestore(&gpio_lock, flags); in mpc5200_psc_ac97_gpio_reset()
|
/linux-3.4.99/drivers/input/keyboard/ |
D | adp5588-keys.c | 53 struct mutex gpio_lock; /* Protect cached dir, dat_out */ member 91 mutex_lock(&kpad->gpio_lock); in adp5588_gpio_set_value() 101 mutex_unlock(&kpad->gpio_lock); in adp5588_gpio_set_value() 111 mutex_lock(&kpad->gpio_lock); in adp5588_gpio_direction_input() 116 mutex_unlock(&kpad->gpio_lock); in adp5588_gpio_direction_input() 129 mutex_lock(&kpad->gpio_lock); in adp5588_gpio_direction_output() 143 mutex_unlock(&kpad->gpio_lock); in adp5588_gpio_direction_output() 201 mutex_init(&kpad->gpio_lock); in adp5588_gpio_add()
|
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() 527 mutex_init(&kpad->gpio_lock); in adp5589_gpio_add()
|
/linux-3.4.99/include/linux/ |
D | ioc3.h | 36 spinlock_t gpio_lock; member
|
/linux-3.4.99/drivers/media/dvb/bt8xx/ |
D | bt878.h | 107 struct mutex gpio_lock; member
|
D | bt878.c | 349 if (mutex_lock_interruptible(&bt->gpio_lock)) in bt878_device_control() 380 mutex_unlock(&bt->gpio_lock); in bt878_device_control()
|
/linux-3.4.99/drivers/infiniband/hw/qib/ |
D | qib_7220.h | 52 spinlock_t gpio_lock; /* RMW of shadows/regs for ExtCtrl and GPIO */ member
|
/linux-3.4.99/drivers/media/video/cx23885/ |
D | cimax2.c | 199 mutex_lock(&dev->gpio_lock); in netup_ci_op_cam() 222 mutex_unlock(&dev->gpio_lock); in netup_ci_op_cam()
|
/linux-3.4.99/drivers/sn/ |
D | ioc3.c | 482 spin_lock_irqsave(&idd->gpio_lock, flags); in ioc3_gpcr_set() 484 spin_unlock_irqrestore(&idd->gpio_lock, flags); in ioc3_gpcr_set() 643 spin_lock_init(&idd->gpio_lock); in ioc3_probe()
|