Home
last modified time | relevance | path

Searched refs:hw_lock (Results 1 – 25 of 51) sorted by relevance

123

/drivers/isdn/hisax/
Dhisax_fcpcipnp.c161 spin_lock_irqsave(&adapter->hw_lock, flags); in fcpci_read_isac()
164 spin_unlock_irqrestore(&adapter->hw_lock, flags); in fcpci_read_isac()
180 spin_lock_irqsave(&adapter->hw_lock, flags); in fcpci_write_isac()
183 spin_unlock_irqrestore(&adapter->hw_lock, flags); in fcpci_write_isac()
192 spin_lock_irqsave(&adapter->hw_lock, flags); in fcpci_read_isac_fifo()
195 spin_unlock_irqrestore(&adapter->hw_lock, flags); in fcpci_read_isac_fifo()
204 spin_lock_irqsave(&adapter->hw_lock, flags); in fcpci_write_isac_fifo()
207 spin_unlock_irqrestore(&adapter->hw_lock, flags); in fcpci_write_isac_fifo()
216 spin_lock_irqsave(&adapter->hw_lock, flags); in fcpci_read_hdlc_status()
219 spin_unlock_irqrestore(&adapter->hw_lock, flags); in fcpci_read_hdlc_status()
[all …]
Dhisax_fcpcipnp.h48 spinlock_t hw_lock; member
/drivers/gpu/drm/
Ddrm_lock.c75 master->lock.hw_lock->lock, lock->flags); in drm_legacy_lock()
84 if (!master->lock.hw_lock) { in drm_legacy_lock()
120 dev->sigdata.lock = master->lock.hw_lock; in drm_legacy_lock()
181 volatile unsigned int *lock = &lock_data->hw_lock->lock; in drm_lock_take()
230 volatile unsigned int *lock = &lock_data->hw_lock->lock; in drm_lock_transfer()
255 volatile unsigned int *lock = &lock_data->hw_lock->lock; in drm_legacy_lock_free()
316 volatile unsigned int *lock = &lock_data->hw_lock->lock; in drm_legacy_idlelock_release()
337 return (file_priv->lock_count && master->lock.hw_lock && in drm_legacy_i_have_hw_lock()
338 _DRM_LOCK_IS_HELD(master->lock.hw_lock->lock) && in drm_legacy_i_have_hw_lock()
Ddrm_fops.c303 filp, _DRM_LOCKING_CONTEXT(file_priv->master->lock.hw_lock->lock)); in drm_master_release()
305 _DRM_LOCKING_CONTEXT(file_priv->master->lock.hw_lock->lock)); in drm_master_release()
458 if (master->lock.hw_lock) { in drm_release()
459 if (dev->sigdata.lock == master->lock.hw_lock) in drm_release()
461 master->lock.hw_lock = NULL; in drm_release()
/drivers/media/rc/
Dene_ir.c550 spin_lock_irqsave(&dev->hw_lock, flags); in ene_tx_set_carrier()
571 spin_unlock_irqrestore(&dev->hw_lock, flags); in ene_tx_set_carrier()
579 spin_lock_irqsave(&dev->hw_lock, flags); in ene_tx_set_transmitters()
584 spin_unlock_irqrestore(&dev->hw_lock, flags); in ene_tx_set_transmitters()
683 spin_lock_irqsave(&dev->hw_lock, flags); in ene_tx_irqsim()
685 spin_unlock_irqrestore(&dev->hw_lock, flags); in ene_tx_irqsim()
743 spin_lock_irqsave(&dev->hw_lock, flags); in ene_isr()
823 spin_unlock_irqrestore(&dev->hw_lock, flags); in ene_isr()
856 spin_lock_irqsave(&dev->hw_lock, flags); in ene_open()
858 spin_unlock_irqrestore(&dev->hw_lock, flags); in ene_open()
[all …]
Dene_ir.h202 spinlock_t hw_lock; member
/drivers/gpu/drm/msm/mdp/mdp5/
Dmdp5_ctl.c55 spinlock_t hw_lock; member
172 spin_lock_irqsave(&ctl->hw_lock, flags); in set_ctl_op()
174 spin_unlock_irqrestore(&ctl->hw_lock, flags); in set_ctl_op()
234 spin_lock_irqsave(&ctl->hw_lock, flags); in send_start_signal()
236 spin_unlock_irqrestore(&ctl->hw_lock, flags); in send_start_signal()
296 spin_lock_irqsave(&ctl->hw_lock, flags); in mdp5_ctl_set_cursor()
308 spin_unlock_irqrestore(&ctl->hw_lock, flags); in mdp5_ctl_set_cursor()
373 spin_lock_irqsave(&ctl->hw_lock, flags); in mdp5_ctl_blend()
379 spin_unlock_irqrestore(&ctl->hw_lock, flags); in mdp5_ctl_blend()
522 spin_lock_irqsave(&ctl->hw_lock, flags); in mdp5_ctl_commit()
[all …]
/drivers/gpu/drm/i915/
Di915_sysfs.c285 mutex_lock(&dev_priv->rps.hw_lock); in gt_act_freq_mhz_show()
300 mutex_unlock(&dev_priv->rps.hw_lock); in gt_act_freq_mhz_show()
319 mutex_lock(&dev_priv->rps.hw_lock); in gt_cur_freq_mhz_show()
321 mutex_unlock(&dev_priv->rps.hw_lock); in gt_cur_freq_mhz_show()
349 mutex_lock(&dev_priv->rps.hw_lock); in gt_max_freq_mhz_show()
351 mutex_unlock(&dev_priv->rps.hw_lock); in gt_max_freq_mhz_show()
372 mutex_lock(&dev_priv->rps.hw_lock); in gt_max_freq_mhz_store()
379 mutex_unlock(&dev_priv->rps.hw_lock); in gt_max_freq_mhz_store()
398 mutex_unlock(&dev_priv->rps.hw_lock); in gt_max_freq_mhz_store()
412 mutex_lock(&dev_priv->rps.hw_lock); in gt_min_freq_mhz_show()
[all …]
Dintel_sideband.c82 WARN_ON(!mutex_is_locked(&dev_priv->rps.hw_lock)); in vlv_punit_read()
94 WARN_ON(!mutex_is_locked(&dev_priv->rps.hw_lock)); in vlv_punit_write()
122 WARN_ON(!mutex_is_locked(&dev_priv->rps.hw_lock)); in vlv_nc_read()
Dintel_pm.c252 mutex_lock(&dev_priv->rps.hw_lock); in chv_set_memory_dvfs()
267 mutex_unlock(&dev_priv->rps.hw_lock); in chv_set_memory_dvfs()
274 mutex_lock(&dev_priv->rps.hw_lock); in chv_set_memory_pm5()
283 mutex_unlock(&dev_priv->rps.hw_lock); in chv_set_memory_pm5()
2068 mutex_lock(&dev_priv->rps.hw_lock); in intel_read_wm_latency()
2072 mutex_unlock(&dev_priv->rps.hw_lock); in intel_read_wm_latency()
2089 mutex_lock(&dev_priv->rps.hw_lock); in intel_read_wm_latency()
2093 mutex_unlock(&dev_priv->rps.hw_lock); in intel_read_wm_latency()
4039 mutex_lock(&dev_priv->rps.hw_lock); in vlv_wm_get_hw_state()
4069 mutex_unlock(&dev_priv->rps.hw_lock); in vlv_wm_get_hw_state()
[all …]
Dintel_runtime_pm.c786 mutex_lock(&dev_priv->rps.hw_lock); in vlv_set_power_well()
807 mutex_unlock(&dev_priv->rps.hw_lock); in vlv_set_power_well()
840 mutex_lock(&dev_priv->rps.hw_lock); in vlv_power_well_enabled()
859 mutex_unlock(&dev_priv->rps.hw_lock); in vlv_power_well_enabled()
1316 mutex_lock(&dev_priv->rps.hw_lock); in chv_pipe_power_well_enabled()
1333 mutex_unlock(&dev_priv->rps.hw_lock); in chv_pipe_power_well_enabled()
1348 mutex_lock(&dev_priv->rps.hw_lock); in chv_set_pipe_power_well()
1369 mutex_unlock(&dev_priv->rps.hw_lock); in chv_set_pipe_power_well()
/drivers/usb/serial/
Dark3116.c67 struct mutex hw_lock; member
153 mutex_init(&priv->hw_lock); in ark3116_port_probe()
208 mutex_destroy(&priv->hw_lock); in ark3116_port_remove()
288 mutex_lock(&priv->hw_lock); in ark3116_set_termios()
331 mutex_unlock(&priv->hw_lock); in ark3116_set_termios()
461 mutex_lock(&priv->hw_lock); in ark3116_tiocmget()
463 mutex_unlock(&priv->hw_lock); in ark3116_tiocmget()
489 mutex_lock(&priv->hw_lock); in ark3116_tiocmset()
510 mutex_unlock(&priv->hw_lock); in ark3116_tiocmset()
521 mutex_lock(&priv->hw_lock); in ark3116_break_ctl()
[all …]
/drivers/scsi/
Dvmw_pvscsi.c78 spinlock_t hw_lock; member
747 spin_lock_irqsave(&adapter->hw_lock, flags); in pvscsi_queue_lck()
753 spin_unlock_irqrestore(&adapter->hw_lock, flags); in pvscsi_queue_lck()
763 spin_unlock_irqrestore(&adapter->hw_lock, flags); in pvscsi_queue_lck()
783 spin_lock_irqsave(&adapter->hw_lock, flags); in DEF_SCSI_QCMD()
808 spin_unlock_irqrestore(&adapter->hw_lock, flags); in DEF_SCSI_QCMD()
811 spin_lock_irqsave(&adapter->hw_lock, flags); in DEF_SCSI_QCMD()
833 spin_unlock_irqrestore(&adapter->hw_lock, flags); in DEF_SCSI_QCMD()
870 spin_lock_irqsave(&adapter->hw_lock, flags); in pvscsi_host_reset()
876 spin_unlock_irqrestore(&adapter->hw_lock, flags); in pvscsi_host_reset()
[all …]
/drivers/net/ethernet/qlogic/
Dqla3xxx.c181 spin_lock_irqsave(&qdev->hw_lock, hw_flags); in ql_read_common_reg_l()
183 spin_unlock_irqrestore(&qdev->hw_lock, hw_flags); in ql_read_common_reg_l()
198 spin_lock_irqsave(&qdev->hw_lock, hw_flags); in ql_read_page0_reg_l()
204 spin_unlock_irqrestore(&qdev->hw_lock, hw_flags); in ql_read_page0_reg_l()
220 spin_lock_irqsave(&qdev->hw_lock, hw_flags); in ql_write_common_reg_l()
223 spin_unlock_irqrestore(&qdev->hw_lock, hw_flags); in ql_write_common_reg_l()
526 spin_lock_irqsave(&qdev->hw_lock, hw_flags); in ql_get_nvram_params()
534 spin_unlock_irqrestore(&qdev->hw_lock, hw_flags); in ql_get_nvram_params()
548 spin_unlock_irqrestore(&qdev->hw_lock, hw_flags); in ql_get_nvram_params()
552 spin_unlock_irqrestore(&qdev->hw_lock, hw_flags); in ql_get_nvram_params()
[all …]
/drivers/media/platform/s5p-mfc/
Ds5p_mfc.c112 if (test_bit(0, &dev->hw_lock)) in s5p_mfc_watchdog()
160 clear_bit(0, &dev->hw_lock); in s5p_mfc_watchdog_worker()
349 WARN_ON(test_and_clear_bit(0, &dev->hw_lock) == 0); in s5p_mfc_handle_frame()
423 WARN_ON(test_and_clear_bit(0, &dev->hw_lock) == 0); in s5p_mfc_handle_frame()
470 WARN_ON(test_and_clear_bit(0, &dev->hw_lock) == 0); in s5p_mfc_handle_error()
524 WARN_ON(test_and_clear_bit(0, &dev->hw_lock) == 0); in s5p_mfc_handle_seq_done()
562 WARN_ON(test_and_clear_bit(0, &dev->hw_lock) == 0); in s5p_mfc_handle_init_buffers()
569 WARN_ON(test_and_clear_bit(0, &dev->hw_lock) == 0); in s5p_mfc_handle_init_buffers()
599 WARN_ON(test_and_clear_bit(0, &dev->hw_lock) == 0); in s5p_mfc_handle_stream_complete()
649 WARN_ON(test_and_clear_bit(0, &dev->hw_lock) == 0); in s5p_mfc_irq()
[all …]
/drivers/isdn/hysdn/
Dboardergo.c60 if (!card->hw_lock) in ergo_interrupt()
87 if (card->hw_lock) { in ergo_irq_bh()
91 card->hw_lock = 1; /* we now lock the hardware */ in ergo_irq_bh()
117 card->hw_lock = 0; /* free hardware again */ in ergo_irq_bh()
Dhysdn_defs.h169 unsigned char volatile hw_lock;/* hardware is currently locked -> no access */ member
/drivers/net/ethernet/synopsys/
Ddwc_eth_qos.c632 spinlock_t hw_lock; member
839 spin_lock_irqsave(&lp->hw_lock, flags); in dwceqos_link_down()
843 spin_unlock_irqrestore(&lp->hw_lock, flags); in dwceqos_link_down()
852 spin_lock_irqsave(&lp->hw_lock, flags); in dwceqos_link_up()
856 spin_unlock_irqrestore(&lp->hw_lock, flags); in dwceqos_link_up()
864 spin_lock_irqsave(&lp->hw_lock, flags); in dwceqos_link_up()
868 spin_unlock_irqrestore(&lp->hw_lock, flags); in dwceqos_link_up()
1182 spin_lock_irqsave(&lp->hw_lock, flags); in dwceqos_dma_enable_txirq()
1186 spin_unlock_irqrestore(&lp->hw_lock, flags); in dwceqos_dma_enable_txirq()
1194 spin_lock_irqsave(&lp->hw_lock, flags); in dwceqos_dma_disable_txirq()
[all …]
/drivers/scsi/qla2xxx/
Dqla_nx.c482 write_lock_irqsave(&ha->hw_lock, flags); in qla82xx_wr_32()
493 write_unlock_irqrestore(&ha->hw_lock, flags); in qla82xx_wr_32()
513 write_lock_irqsave(&ha->hw_lock, flags); in qla82xx_rd_32()
523 write_unlock_irqrestore(&ha->hw_lock, flags); in qla82xx_rd_32()
698 write_lock_irqsave(&ha->hw_lock, flags); in qla82xx_pci_mem_read_direct()
707 write_unlock_irqrestore(&ha->hw_lock, flags); in qla82xx_pci_mem_read_direct()
715 write_unlock_irqrestore(&ha->hw_lock, flags); in qla82xx_pci_mem_read_direct()
731 write_lock_irqsave(&ha->hw_lock, flags); in qla82xx_pci_mem_read_direct()
750 write_unlock_irqrestore(&ha->hw_lock, flags); in qla82xx_pci_mem_read_direct()
770 write_lock_irqsave(&ha->hw_lock, flags); in qla82xx_pci_mem_write_direct()
[all …]
/drivers/media/usb/go7007/
Dgo7007-driver.c138 mutex_lock(&go->hw_lock); in go7007_boot_encoder()
140 mutex_unlock(&go->hw_lock); in go7007_boot_encoder()
269 mutex_lock(&go->hw_lock); in go7007_register_encoder()
271 mutex_unlock(&go->hw_lock); in go7007_register_encoder()
708 mutex_init(&go->hw_lock); in go7007_alloc()
Dgo7007-i2c.c65 mutex_lock(&go->hw_lock); in go7007_i2c_xfer()
132 mutex_unlock(&go->hw_lock); in go7007_i2c_xfer()
Dgo7007-v4l2.c432 mutex_lock(&go->hw_lock); in go7007_start_streaming()
441 mutex_unlock(&go->hw_lock); in go7007_start_streaming()
464 mutex_lock(&go->hw_lock); in go7007_stop_streaming()
466 mutex_unlock(&go->hw_lock); in go7007_stop_streaming()
/drivers/scsi/qla4xxx/
Dql4_nx.c388 write_lock_irqsave(&ha->hw_lock, flags); in qla4_82xx_wr_32()
397 write_unlock_irqrestore(&ha->hw_lock, flags); in qla4_82xx_wr_32()
412 write_lock_irqsave(&ha->hw_lock, flags); in qla4_82xx_rd_32()
420 write_unlock_irqrestore(&ha->hw_lock, flags); in qla4_82xx_rd_32()
721 write_lock_irqsave(&ha->hw_lock, flags); in qla4_82xx_pci_mem_read_direct()
730 write_unlock_irqrestore(&ha->hw_lock, flags); in qla4_82xx_pci_mem_read_direct()
738 write_unlock_irqrestore(&ha->hw_lock, flags); in qla4_82xx_pci_mem_read_direct()
755 write_lock_irqsave(&ha->hw_lock, flags); in qla4_82xx_pci_mem_read_direct()
775 write_unlock_irqrestore(&ha->hw_lock, flags); in qla4_82xx_pci_mem_read_direct()
794 write_lock_irqsave(&ha->hw_lock, flags); in qla4_82xx_pci_mem_write_direct()
[all …]
/drivers/crypto/
Dpicoxcell_crypto.c118 spinlock_t hw_lock; member
643 spin_lock_irqsave(&engine->hw_lock, flags); in spacc_aead_setup()
648 spin_unlock_irqrestore(&engine->hw_lock, flags); in spacc_aead_setup()
656 spin_unlock_irqrestore(&engine->hw_lock, flags); in spacc_aead_setup()
954 spin_lock_irqsave(&engine->hw_lock, flags); in spacc_ablk_setup()
964 spin_unlock_irqrestore(&engine->hw_lock, flags); in spacc_ablk_setup()
972 spin_unlock_irqrestore(&engine->hw_lock, flags); in spacc_ablk_setup()
1052 spin_lock_irqsave(&engine->hw_lock, flags); in spacc_process_done()
1092 spin_unlock_irqrestore(&engine->hw_lock, flags); in spacc_process_done()
1130 spin_lock_irqsave(&engine->hw_lock, flags); in spacc_spacc_complete()
[all …]
/drivers/gpu/drm/vmwgfx/
Dvmwgfx_drv.h387 spinlock_t hw_lock; member
562 spin_lock_irqsave(&dev_priv->hw_lock, irq_flags); in vmw_write()
565 spin_unlock_irqrestore(&dev_priv->hw_lock, irq_flags); in vmw_write()
574 spin_lock_irqsave(&dev_priv->hw_lock, irq_flags); in vmw_read()
577 spin_unlock_irqrestore(&dev_priv->hw_lock, irq_flags); in vmw_read()

123