Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/scsi/snic/
Dsnic_scsi.c249 spinlock_t *io_lock = NULL; in snic_issue_scsi_req() local
281 io_lock = snic_io_lock_hash(snic, sc); in snic_issue_scsi_req()
290 spin_lock_irqsave(io_lock, flags); in snic_issue_scsi_req()
295 spin_unlock_irqrestore(io_lock, flags); in snic_issue_scsi_req()
555 spinlock_t *io_lock; in snic_icmnd_cmpl_handler() local
592 io_lock = snic_io_lock_hash(snic, sc); in snic_icmnd_cmpl_handler()
594 spin_lock_irqsave(io_lock, flags); in snic_icmnd_cmpl_handler()
602 spin_unlock_irqrestore(io_lock, flags); in snic_icmnd_cmpl_handler()
612 spin_unlock_irqrestore(io_lock, flags); in snic_icmnd_cmpl_handler()
633 spin_unlock_irqrestore(io_lock, flags); in snic_icmnd_cmpl_handler()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/scsi/fnic/
Dfnic_scsi.c436 spinlock_t *io_lock = NULL; in fnic_queuecommand_lck() local
553 io_lock = fnic_io_lock_hash(fnic, sc); in fnic_queuecommand_lck()
554 spin_lock_irqsave(io_lock, flags); in fnic_queuecommand_lck()
579 spin_unlock_irqrestore(io_lock, flags); in fnic_queuecommand_lck()
612 spin_unlock_irqrestore(io_lock, flags); in fnic_queuecommand_lck()
833 spinlock_t *io_lock; in fnic_fcpio_icmnd_cmpl_handler() local
869 io_lock = fnic_io_lock_hash(fnic, sc); in fnic_fcpio_icmnd_cmpl_handler()
870 spin_lock_irqsave(io_lock, flags); in fnic_fcpio_icmnd_cmpl_handler()
876 spin_unlock_irqrestore(io_lock, flags); in fnic_fcpio_icmnd_cmpl_handler()
900 spin_unlock_irqrestore(io_lock, flags); in fnic_fcpio_icmnd_cmpl_handler()
[all …]
/kernel/linux/linux-5.10/drivers/watchdog/
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()
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 …]
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 …]
DiTCO_wdt.c102 spinlock_t io_lock; member
275 spin_lock(&p->io_lock); in iTCO_wdt_start()
281 spin_unlock(&p->io_lock); in iTCO_wdt_start()
298 spin_unlock(&p->io_lock); in iTCO_wdt_start()
310 spin_lock(&p->io_lock); in iTCO_wdt_stop()
323 spin_unlock(&p->io_lock); in iTCO_wdt_stop()
334 spin_lock(&p->io_lock); in iTCO_wdt_ping()
347 spin_unlock(&p->io_lock); in iTCO_wdt_ping()
374 spin_lock(&p->io_lock); in iTCO_wdt_set_timeout()
380 spin_unlock(&p->io_lock); in iTCO_wdt_set_timeout()
[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()
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()
360 spin_lock_init(&wdt->io_lock); in cdns_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 …]
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()
/kernel/linux/linux-5.10/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()
367 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()
436 spin_lock_init(&pcap->io_lock); in ezx_pcap_probe()
/kernel/linux/linux-5.10/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 u16 addr, u32 revision, struct mutex *io_lock, int check_enabled) in sch56xx_watchdog_register() argument
[all …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/regulator/
Dtps6507x-regulator.c119 struct mutex io_lock; member
143 mutex_lock(&tps->io_lock); in tps6507x_pmic_set_bits()
158 mutex_unlock(&tps->io_lock); in tps6507x_pmic_set_bits()
166 mutex_lock(&tps->io_lock); in tps6507x_pmic_clear_bits()
181 mutex_unlock(&tps->io_lock); in tps6507x_pmic_clear_bits()
189 mutex_lock(&tps->io_lock); in tps6507x_pmic_reg_read()
195 mutex_unlock(&tps->io_lock); in tps6507x_pmic_reg_read()
203 mutex_lock(&tps->io_lock); in tps6507x_pmic_reg_write()
209 mutex_unlock(&tps->io_lock); in tps6507x_pmic_reg_write()
401 mutex_init(&tps->io_lock); in tps6507x_pmic_probe()
Dlp3971.c22 struct mutex io_lock; member
344 mutex_lock(&lp3971->io_lock); in lp3971_reg_read()
351 mutex_unlock(&lp3971->io_lock); in lp3971_reg_read()
361 mutex_lock(&lp3971->io_lock); in lp3971_set_bits()
370 mutex_unlock(&lp3971->io_lock); in lp3971_set_bits()
422 mutex_init(&lp3971->io_lock); in lp3971_i2c_probe()
/kernel/linux/linux-5.10/drivers/gpu/drm/xen/
Dxen_drm_front.c139 spin_lock_irqsave(&front_info->io_lock, flags); in xen_drm_front_mode_set()
149 spin_unlock_irqrestore(&front_info->io_lock, flags); in xen_drm_front_mode_set()
193 spin_lock_irqsave(&front_info->io_lock, flags); in xen_drm_front_dbuf_create()
207 spin_unlock_irqrestore(&front_info->io_lock, flags); in xen_drm_front_dbuf_create()
254 spin_lock_irqsave(&front_info->io_lock, flags); in xen_drm_front_dbuf_destroy()
259 spin_unlock_irqrestore(&front_info->io_lock, flags); in xen_drm_front_dbuf_destroy()
297 spin_lock_irqsave(&front_info->io_lock, flags); in xen_drm_front_fb_attach()
306 spin_unlock_irqrestore(&front_info->io_lock, flags); in xen_drm_front_fb_attach()
329 spin_lock_irqsave(&front_info->io_lock, flags); in xen_drm_front_fb_detach()
334 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()
365 spin_lock_irqsave(&front_info->io_lock, flags); in xen_drm_front_evtchnl_set_state()
370 spin_unlock_irqrestore(&front_info->io_lock, flags); in xen_drm_front_evtchnl_set_state()
/kernel/linux/linux-5.10/fs/afs/
Dfs_operation.c61 mutex_lock(&vnode->io_lock); in afs_get_io_locks()
73 if (mutex_lock_interruptible(&vnode->io_lock) < 0) { in afs_get_io_locks()
82 if (mutex_lock_interruptible_nested(&vnode2->io_lock, 1) < 0) { in afs_get_io_locks()
85 mutex_unlock(&vnode->io_lock); in afs_get_io_locks()
105 mutex_unlock(&vnode2->io_lock); in afs_drop_io_locks()
107 mutex_unlock(&vnode->io_lock); in afs_drop_io_locks()
/kernel/linux/linux-5.10/drivers/net/can/sja1000/
Dsja1000_platform.c39 spinlock_t io_lock; member
78 spin_lock_irqsave(&tp->io_lock, flags); in sp_technologic_read_reg16()
81 spin_unlock_irqrestore(&tp->io_lock, flags); in sp_technologic_read_reg16()
92 spin_lock_irqsave(&tp->io_lock, flags); in sp_technologic_write_reg16()
95 spin_unlock_irqrestore(&tp->io_lock, flags); in sp_technologic_write_reg16()
104 spin_lock_init(&tp->io_lock); in sp_technologic_init()
/kernel/linux/linux-5.10/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