Home
last modified time | relevance | path

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

12

/drivers/scsi/snic/
Dsnic_scsi.c235 spinlock_t *io_lock = NULL; in snic_issue_scsi_req() local
267 io_lock = snic_io_lock_hash(snic, sc); in snic_issue_scsi_req()
276 spin_lock_irqsave(io_lock, flags); in snic_issue_scsi_req()
281 spin_unlock_irqrestore(io_lock, flags); in snic_issue_scsi_req()
536 spinlock_t *io_lock; in snic_icmnd_cmpl_handler() local
573 io_lock = snic_io_lock_hash(snic, sc); in snic_icmnd_cmpl_handler()
575 spin_lock_irqsave(io_lock, flags); in snic_icmnd_cmpl_handler()
583 spin_unlock_irqrestore(io_lock, flags); in snic_icmnd_cmpl_handler()
593 spin_unlock_irqrestore(io_lock, flags); in snic_icmnd_cmpl_handler()
614 spin_unlock_irqrestore(io_lock, flags); in snic_icmnd_cmpl_handler()
[all …]
/drivers/usb/image/
Dmdc800.c159 struct mutex io_lock; // IO -lock member
483 mutex_lock(&mdc800->io_lock); in mdc800_usb_probe()
488 mutex_unlock(&mdc800->io_lock); in mdc800_usb_probe()
529 mutex_unlock(&mdc800->io_lock); in mdc800_usb_probe()
553 mutex_lock(&mdc800->io_lock); in mdc800_usb_disconnect()
559 mutex_unlock(&mdc800->io_lock); in mdc800_usb_disconnect()
611 mutex_lock(&mdc800->io_lock); in mdc800_device_open()
648 mutex_unlock(&mdc800->io_lock); in mdc800_device_open()
660 mutex_lock(&mdc800->io_lock); in mdc800_device_release()
673 mutex_unlock(&mdc800->io_lock); in mdc800_device_release()
[all …]
/drivers/scsi/fnic/
Dfnic_scsi.c426 spinlock_t *io_lock = NULL; in fnic_queuecommand_lck() local
542 io_lock = fnic_io_lock_hash(fnic, sc); in fnic_queuecommand_lck()
543 spin_lock_irqsave(io_lock, flags); in fnic_queuecommand_lck()
566 spin_unlock_irqrestore(io_lock, flags); in fnic_queuecommand_lck()
598 spin_unlock_irqrestore(io_lock, flags); in fnic_queuecommand_lck()
819 spinlock_t *io_lock; in fnic_fcpio_icmnd_cmpl_handler() local
855 io_lock = fnic_io_lock_hash(fnic, sc); in fnic_fcpio_icmnd_cmpl_handler()
856 spin_lock_irqsave(io_lock, flags); in fnic_fcpio_icmnd_cmpl_handler()
862 spin_unlock_irqrestore(io_lock, flags); in fnic_fcpio_icmnd_cmpl_handler()
886 spin_unlock_irqrestore(io_lock, flags); in fnic_fcpio_icmnd_cmpl_handler()
[all …]
/drivers/watchdog/
Dpcwd.c186 spinlock_t io_lock; /* the lock for io operations */ member
255 spin_lock(&pcwd_private.io_lock); in set_command_mode()
270 spin_unlock(&pcwd_private.io_lock); in set_command_mode()
282 spin_lock(&pcwd_private.io_lock); in unset_command_mode()
285 spin_unlock(&pcwd_private.io_lock); in unset_command_mode()
379 spin_lock(&pcwd_private.io_lock); in pcwd_timer_ping()
396 spin_unlock(&pcwd_private.io_lock); in pcwd_timer_ping()
413 spin_lock(&pcwd_private.io_lock); in pcwd_start()
417 spin_unlock(&pcwd_private.io_lock); in pcwd_start()
439 spin_lock(&pcwd_private.io_lock); in pcwd_stop()
[all …]
Drc32434_wdt.c37 spinlock_t io_lock; member
80 spin_lock(&rc32434_wdt_device.io_lock); in rc32434_wdt_set()
82 spin_unlock(&rc32434_wdt_device.io_lock); in rc32434_wdt_set()
91 spin_lock(&rc32434_wdt_device.io_lock); in rc32434_wdt_start()
115 spin_unlock(&rc32434_wdt_device.io_lock); in rc32434_wdt_start()
121 spin_lock(&rc32434_wdt_device.io_lock); in rc32434_wdt_stop()
126 spin_unlock(&rc32434_wdt_device.io_lock); in rc32434_wdt_stop()
132 spin_lock(&rc32434_wdt_device.io_lock); in rc32434_wdt_ping()
134 spin_unlock(&rc32434_wdt_device.io_lock); in rc32434_wdt_ping()
276 spin_lock_init(&rc32434_wdt_device.io_lock); in rc32434_wdt_probe()
DiTCO_wdt.c99 spinlock_t io_lock; member
272 spin_lock(&p->io_lock); in iTCO_wdt_start()
278 spin_unlock(&p->io_lock); in iTCO_wdt_start()
295 spin_unlock(&p->io_lock); in iTCO_wdt_start()
307 spin_lock(&p->io_lock); in iTCO_wdt_stop()
320 spin_unlock(&p->io_lock); in iTCO_wdt_stop()
331 spin_lock(&p->io_lock); in iTCO_wdt_ping()
344 spin_unlock(&p->io_lock); in iTCO_wdt_ping()
371 spin_lock(&p->io_lock); in iTCO_wdt_set_timeout()
377 spin_unlock(&p->io_lock); in iTCO_wdt_set_timeout()
[all …]
Dsmsc37b787_wdt.c82 static DEFINE_SPINLOCK(io_lock);/* to guard the watchdog from io races */
217 spin_lock(&io_lock); in wb_smsc_wdt_initialize()
243 spin_unlock(&io_lock); in wb_smsc_wdt_initialize()
250 spin_lock(&io_lock); in wb_smsc_wdt_shutdown()
268 spin_unlock(&io_lock); in wb_smsc_wdt_shutdown()
275 spin_lock(&io_lock); in wb_smsc_wdt_set_timeout()
286 spin_unlock(&io_lock); in wb_smsc_wdt_set_timeout()
295 spin_lock(&io_lock); in wb_smsc_wdt_get_timeout()
300 spin_unlock(&io_lock); in wb_smsc_wdt_get_timeout()
325 spin_lock(&io_lock); in wb_smsc_wdt_reset_timer()
[all …]
Dsch311x_wdt.c58 spinlock_t io_lock; member
136 spin_lock(&sch311x_wdt_data.io_lock); in sch311x_wdt_start()
152 spin_unlock(&sch311x_wdt_data.io_lock); in sch311x_wdt_start()
160 spin_lock(&sch311x_wdt_data.io_lock); in sch311x_wdt_stop()
168 spin_unlock(&sch311x_wdt_data.io_lock); in sch311x_wdt_stop()
173 spin_lock(&sch311x_wdt_data.io_lock); in sch311x_wdt_keepalive()
175 spin_unlock(&sch311x_wdt_data.io_lock); in sch311x_wdt_keepalive()
198 spin_lock(&sch311x_wdt_data.io_lock); in sch311x_wdt_get_status()
214 spin_unlock(&sch311x_wdt_data.io_lock); in sch311x_wdt_get_status()
360 spin_lock_init(&sch311x_wdt_data.io_lock); in sch311x_wdt_probe()
Dpcwd_pci.c124 spinlock_t io_lock; member
162 spin_lock(&pcipcwd_private.io_lock); in send_command()
205 spin_unlock(&pcipcwd_private.io_lock); in send_command()
263 spin_lock(&pcipcwd_private.io_lock); in pcipcwd_start()
268 spin_unlock(&pcipcwd_private.io_lock); in pcipcwd_start()
285 spin_lock(&pcipcwd_private.io_lock); in pcipcwd_stop()
293 spin_unlock(&pcipcwd_private.io_lock); in pcipcwd_stop()
309 spin_lock(&pcipcwd_private.io_lock); in pcipcwd_keepalive()
311 spin_unlock(&pcipcwd_private.io_lock); in pcipcwd_keepalive()
396 spin_lock(&pcipcwd_private.io_lock); in pcipcwd_get_temperature()
[all …]
Dcadence_wdt.c80 spinlock_t io_lock; member
128 spin_lock(&wdt->io_lock); in cdns_wdt_stop()
131 spin_unlock(&wdt->io_lock); in cdns_wdt_stop()
149 spin_lock(&wdt->io_lock); in cdns_wdt_reload()
152 spin_unlock(&wdt->io_lock); in cdns_wdt_reload()
192 spin_lock(&wdt->io_lock); in cdns_wdt_start()
215 spin_unlock(&wdt->io_lock); in cdns_wdt_start()
345 spin_lock_init(&wdt->io_lock); in cdns_wdt_probe()
Dexar_wdt.c57 spinlock_t io_lock; member
158 spin_lock(&priv->io_lock); in exar_wdt_start()
164 spin_unlock(&priv->io_lock); in exar_wdt_start()
172 spin_lock(&priv->io_lock); in exar_wdt_stop()
176 spin_unlock(&priv->io_lock); in exar_wdt_stop()
185 spin_lock(&priv->io_lock); in exar_wdt_keepalive()
190 spin_unlock(&priv->io_lock); in exar_wdt_keepalive()
265 spin_lock_init(&priv->io_lock); in exar_wdt_probe()
Dpc87413_wdt.c62 static DEFINE_SPINLOCK(io_lock); /* to guard us from io races */
219 spin_lock(&io_lock); in pc87413_enable()
227 spin_unlock(&io_lock); in pc87413_enable()
234 spin_lock(&io_lock); in pc87413_disable()
241 spin_unlock(&io_lock); in pc87413_disable()
248 spin_lock(&io_lock); in pc87413_refresh()
258 spin_unlock(&io_lock); in pc87413_refresh()
Dpnx4008_wdt.c79 static DEFINE_SPINLOCK(io_lock);
85 spin_lock(&io_lock); in pnx4008_wdt_start()
104 spin_unlock(&io_lock); in pnx4008_wdt_start()
110 spin_lock(&io_lock); in pnx4008_wdt_stop()
114 spin_unlock(&io_lock); in pnx4008_wdt_stop()
/drivers/mfd/
Dmax8925-i2c.c55 mutex_lock(&chip->io_lock); in max8925_reg_read()
57 mutex_unlock(&chip->io_lock); in max8925_reg_read()
72 mutex_lock(&chip->io_lock); in max8925_reg_write()
74 mutex_unlock(&chip->io_lock); in max8925_reg_write()
86 mutex_lock(&chip->io_lock); in max8925_bulk_read()
88 mutex_unlock(&chip->io_lock); in max8925_bulk_read()
100 mutex_lock(&chip->io_lock); in max8925_bulk_write()
102 mutex_unlock(&chip->io_lock); in max8925_bulk_write()
115 mutex_lock(&chip->io_lock); in max8925_set_bits()
123 mutex_unlock(&chip->io_lock); in max8925_set_bits()
[all …]
Daat2870-core.c157 mutex_lock(&aat2870->io_lock); in aat2870_read()
159 mutex_unlock(&aat2870->io_lock); in aat2870_read()
168 mutex_lock(&aat2870->io_lock); in aat2870_write()
170 mutex_unlock(&aat2870->io_lock); in aat2870_write()
182 mutex_lock(&aat2870->io_lock); in aat2870_update()
194 mutex_unlock(&aat2870->io_lock); in aat2870_update()
364 mutex_init(&aat2870->io_lock); in aat2870_i2c_probe()
Ducb1x00-core.c54 spin_lock_irqsave(&ucb->io_lock, flags); in ucb1x00_io_set_dir()
59 spin_unlock_irqrestore(&ucb->io_lock, flags); in ucb1x00_io_set_dir()
82 spin_lock_irqsave(&ucb->io_lock, flags); in ucb1x00_io_write()
87 spin_unlock_irqrestore(&ucb->io_lock, flags); in ucb1x00_io_write()
112 spin_lock_irqsave(&ucb->io_lock, flags); in ucb1x00_gpio_set()
121 spin_unlock_irqrestore(&ucb->io_lock, flags); in ucb1x00_gpio_set()
141 spin_lock_irqsave(&ucb->io_lock, flags); in ucb1x00_gpio_direction_input()
146 spin_unlock_irqrestore(&ucb->io_lock, flags); in ucb1x00_gpio_direction_input()
158 spin_lock_irqsave(&ucb->io_lock, flags); in ucb1x00_gpio_direction_output()
174 spin_unlock_irqrestore(&ucb->io_lock, flags); in ucb1x00_gpio_direction_output()
[all …]
Dezx-pcap.c38 spinlock_t io_lock; member
82 spin_lock_irqsave(&pcap->io_lock, flags); in ezx_pcap_write()
87 spin_unlock_irqrestore(&pcap->io_lock, flags); in ezx_pcap_write()
98 spin_lock_irqsave(&pcap->io_lock, flags); in ezx_pcap_read()
103 spin_unlock_irqrestore(&pcap->io_lock, flags); in ezx_pcap_read()
116 spin_lock_irqsave(&pcap->io_lock, flags); in ezx_pcap_set_bits()
127 spin_unlock_irqrestore(&pcap->io_lock, flags); in ezx_pcap_set_bits()
432 spin_lock_init(&pcap->io_lock); in ezx_pcap_probe()
/drivers/hwmon/
Dsch56xx-common.c54 struct mutex *io_lock; member
268 mutex_lock(data->io_lock); in watchdog_set_timeout()
272 mutex_unlock(data->io_lock); in watchdog_set_timeout()
314 mutex_lock(data->io_lock); in watchdog_start()
337 mutex_unlock(data->io_lock); in watchdog_start()
347 mutex_lock(data->io_lock); in watchdog_trigger()
350 mutex_unlock(data->io_lock); in watchdog_trigger()
362 mutex_lock(data->io_lock); in watchdog_stop()
365 mutex_unlock(data->io_lock); in watchdog_stop()
382 struct mutex *io_lock, int check_enabled) in sch56xx_watchdog_register() argument
[all …]
/drivers/platform/mellanox/
Dmlxreg-io.c44 struct mutex io_lock; /* Protects user access. */ member
120 mutex_lock(&priv->io_lock); in mlxreg_io_attr_show()
127 mutex_unlock(&priv->io_lock); in mlxreg_io_attr_show()
132 mutex_unlock(&priv->io_lock); in mlxreg_io_attr_show()
154 mutex_lock(&priv->io_lock); in mlxreg_io_attr_store()
165 mutex_unlock(&priv->io_lock); in mlxreg_io_attr_store()
170 mutex_unlock(&priv->io_lock); in mlxreg_io_attr_store()
260 mutex_init(&priv->io_lock); in mlxreg_io_probe()
270 mutex_destroy(&priv->io_lock); in mlxreg_io_remove()
/drivers/input/misc/
Dideapad_slidebar.c91 static DEFINE_SPINLOCK(io_lock);
101 spin_lock_irqsave(&io_lock, flags); in slidebar_pos_get()
105 spin_unlock_irqrestore(&io_lock, flags); in slidebar_pos_get()
115 spin_lock_irqsave(&io_lock, flags); in slidebar_mode_get()
119 spin_unlock_irqrestore(&io_lock, flags); in slidebar_mode_get()
128 spin_lock_irqsave(&io_lock, flags); in slidebar_mode_set()
132 spin_unlock_irqrestore(&io_lock, flags); in slidebar_mode_set()
/drivers/regulator/
Dtps6507x-regulator.c111 struct mutex io_lock; member
135 mutex_lock(&tps->io_lock); in tps6507x_pmic_set_bits()
150 mutex_unlock(&tps->io_lock); in tps6507x_pmic_set_bits()
158 mutex_lock(&tps->io_lock); in tps6507x_pmic_clear_bits()
173 mutex_unlock(&tps->io_lock); in tps6507x_pmic_clear_bits()
181 mutex_lock(&tps->io_lock); in tps6507x_pmic_reg_read()
187 mutex_unlock(&tps->io_lock); in tps6507x_pmic_reg_read()
195 mutex_lock(&tps->io_lock); in tps6507x_pmic_reg_write()
201 mutex_unlock(&tps->io_lock); in tps6507x_pmic_reg_write()
393 mutex_init(&tps->io_lock); in tps6507x_pmic_probe()
/drivers/gpu/drm/xen/
Dxen_drm_front.c138 spin_lock_irqsave(&front_info->io_lock, flags); in xen_drm_front_mode_set()
148 spin_unlock_irqrestore(&front_info->io_lock, flags); in xen_drm_front_mode_set()
192 spin_lock_irqsave(&front_info->io_lock, flags); in xen_drm_front_dbuf_create()
206 spin_unlock_irqrestore(&front_info->io_lock, flags); in xen_drm_front_dbuf_create()
253 spin_lock_irqsave(&front_info->io_lock, flags); in xen_drm_front_dbuf_destroy()
258 spin_unlock_irqrestore(&front_info->io_lock, flags); in xen_drm_front_dbuf_destroy()
296 spin_lock_irqsave(&front_info->io_lock, flags); in xen_drm_front_fb_attach()
305 spin_unlock_irqrestore(&front_info->io_lock, flags); in xen_drm_front_fb_attach()
328 spin_lock_irqsave(&front_info->io_lock, flags); in xen_drm_front_fb_detach()
333 spin_unlock_irqrestore(&front_info->io_lock, flags); in xen_drm_front_fb_detach()
[all …]
Dxen_drm_front_evtchnl.c34 spin_lock_irqsave(&front_info->io_lock, flags); in evtchnl_interrupt_ctrl()
77 spin_unlock_irqrestore(&front_info->io_lock, flags); in evtchnl_interrupt_ctrl()
92 spin_lock_irqsave(&front_info->io_lock, flags); in evtchnl_interrupt_evt()
119 spin_unlock_irqrestore(&front_info->io_lock, flags); in evtchnl_interrupt_evt()
344 spin_lock_irqsave(&front_info->io_lock, flags); in xen_drm_front_evtchnl_set_state()
349 spin_unlock_irqrestore(&front_info->io_lock, flags); in xen_drm_front_evtchnl_set_state()
/drivers/net/can/sja1000/
Dsja1000_platform.c38 spinlock_t io_lock; member
77 spin_lock_irqsave(&tp->io_lock, flags); in sp_technologic_read_reg16()
80 spin_unlock_irqrestore(&tp->io_lock, flags); in sp_technologic_read_reg16()
91 spin_lock_irqsave(&tp->io_lock, flags); in sp_technologic_write_reg16()
94 spin_unlock_irqrestore(&tp->io_lock, flags); in sp_technologic_write_reg16()
103 spin_lock_init(&tp->io_lock); in sp_technologic_init()
/drivers/power/supply/
Dda9150-fg.c76 struct mutex io_lock; member
130 mutex_lock(&fg->io_lock); in da9150_fg_read_sync_start()
159 mutex_unlock(&fg->io_lock); in da9150_fg_read_sync_end()
181 mutex_lock(&fg->io_lock); in da9150_fg_write_attr_sync()
197 mutex_unlock(&fg->io_lock); in da9150_fg_write_attr_sync()
214 mutex_unlock(&fg->io_lock); in da9150_fg_write_attr_sync()
461 mutex_init(&fg->io_lock); in da9150_fg_probe()

12