Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/gpu/drm/
Ddrm_lock.c63 volatile unsigned int *lock = &lock_data->hw_lock->lock; in drm_lock_take()
112 volatile unsigned int *lock = &lock_data->hw_lock->lock; in drm_lock_transfer()
127 volatile unsigned int *lock = &lock_data->hw_lock->lock; in drm_legacy_lock_free()
185 master->lock.hw_lock ? master->lock.hw_lock->lock : -1, in drm_legacy_lock()
195 if (!master->lock.hw_lock) { in drm_legacy_lock()
231 dev->sigdata.lock = master->lock.hw_lock; in drm_legacy_lock()
312 volatile unsigned int *lock = &lock_data->hw_lock->lock; in drm_legacy_idlelock_release()
334 return (file_priv->lock_count && master->lock.hw_lock && in drm_legacy_i_have_hw_lock()
335 _DRM_LOCK_IS_HELD(master->lock.hw_lock->lock) && in drm_legacy_i_have_hw_lock()
349 filp, _DRM_LOCKING_CONTEXT(file_priv->master->lock.hw_lock->lock)); in drm_legacy_lock_release()
[all …]
/kernel/linux/linux-5.10/sound/soc/sof/
Dops.c44 spin_lock_irqsave(&sdev->hw_lock, flags); in snd_sof_pci_update_bits()
46 spin_unlock_irqrestore(&sdev->hw_lock, flags); in snd_sof_pci_update_bits()
96 spin_lock_irqsave(&sdev->hw_lock, flags); in snd_sof_dsp_update_bits()
99 spin_unlock_irqrestore(&sdev->hw_lock, flags); in snd_sof_dsp_update_bits()
110 spin_lock_irqsave(&sdev->hw_lock, flags); in snd_sof_dsp_update_bits64()
113 spin_unlock_irqrestore(&sdev->hw_lock, flags); in snd_sof_dsp_update_bits64()
139 spin_lock_irqsave(&sdev->hw_lock, flags); in snd_sof_dsp_update_bits_forced()
141 spin_unlock_irqrestore(&sdev->hw_lock, flags); in snd_sof_dsp_update_bits_forced()
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/disp/mdp5/
Dmdp5_ctl.c41 spinlock_t hw_lock; member
163 spin_lock_irqsave(&ctl->hw_lock, flags); in set_ctl_op()
165 spin_unlock_irqrestore(&ctl->hw_lock, flags); in set_ctl_op()
211 spin_lock_irqsave(&ctl->hw_lock, flags); in send_start_signal()
213 spin_unlock_irqrestore(&ctl->hw_lock, flags); in send_start_signal()
267 spin_lock_irqsave(&ctl->hw_lock, flags); in mdp5_ctl_set_cursor()
279 spin_unlock_irqrestore(&ctl->hw_lock, flags); in mdp5_ctl_set_cursor()
335 spin_lock_irqsave(&ctl->hw_lock, flags); in mdp5_ctl_reset_blend_regs()
342 spin_unlock_irqrestore(&ctl->hw_lock, flags); in mdp5_ctl_reset_blend_regs()
387 spin_lock_irqsave(&ctl->hw_lock, flags); in mdp5_ctl_blend()
[all …]
/kernel/linux/linux-5.10/drivers/media/rc/
Dene_ir.c535 spin_lock_irqsave(&dev->hw_lock, flags); in ene_tx_set_carrier()
556 spin_unlock_irqrestore(&dev->hw_lock, flags); in ene_tx_set_carrier()
564 spin_lock_irqsave(&dev->hw_lock, flags); in ene_tx_set_transmitters()
569 spin_unlock_irqrestore(&dev->hw_lock, flags); in ene_tx_set_transmitters()
668 spin_lock_irqsave(&dev->hw_lock, flags); in ene_tx_irqsim()
670 spin_unlock_irqrestore(&dev->hw_lock, flags); in ene_tx_irqsim()
728 spin_lock_irqsave(&dev->hw_lock, flags); in ene_isr()
808 spin_unlock_irqrestore(&dev->hw_lock, flags); in ene_isr()
841 spin_lock_irqsave(&dev->hw_lock, flags); in ene_open()
843 spin_unlock_irqrestore(&dev->hw_lock, flags); in ene_open()
[all …]
Dene_ir.h188 spinlock_t hw_lock; member
/kernel/linux/linux-5.10/drivers/usb/serial/
Dark3116.c63 struct mutex hw_lock; member
133 mutex_init(&priv->hw_lock); in ark3116_port_probe()
186 mutex_destroy(&priv->hw_lock); in ark3116_port_remove()
256 mutex_lock(&priv->hw_lock); in ark3116_set_termios()
299 mutex_unlock(&priv->hw_lock); in ark3116_set_termios()
410 mutex_lock(&priv->hw_lock); in ark3116_tiocmget()
412 mutex_unlock(&priv->hw_lock); in ark3116_tiocmget()
438 mutex_lock(&priv->hw_lock); in ark3116_tiocmset()
459 mutex_unlock(&priv->hw_lock); in ark3116_tiocmset()
470 mutex_lock(&priv->hw_lock); in ark3116_break_ctl()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/
Dmock_engine.c106 spin_lock_irqsave(&engine->hw_lock, flags); in hw_delay_complete()
127 spin_unlock_irqrestore(&engine->hw_lock, flags); in hw_delay_complete()
227 spin_lock_irqsave(&engine->hw_lock, flags); in mock_submit_request()
236 spin_unlock_irqrestore(&engine->hw_lock, flags); in mock_submit_request()
324 spin_lock_init(&engine->hw_lock); in mock_engine()
369 spin_lock_irq(&mock->hw_lock); in mock_engine_flush()
372 spin_unlock_irq(&mock->hw_lock); in mock_engine_flush()
Dmock_engine.h37 spinlock_t hw_lock; member
/kernel/linux/linux-5.10/drivers/crypto/ccree/
Dcc_request_mgr.c28 spinlock_t hw_lock; member
128 spin_lock_init(&req_mgr_h->hw_lock); in cc_req_mgr_init()
375 spin_lock(&mgr->hw_lock); in cc_proc_backlog()
384 spin_unlock(&mgr->hw_lock); in cc_proc_backlog()
390 spin_unlock(&mgr->hw_lock); in cc_proc_backlog()
419 spin_lock_bh(&mgr->hw_lock); in cc_send_request()
428 spin_unlock_bh(&mgr->hw_lock); in cc_send_request()
449 spin_unlock_bh(&mgr->hw_lock); in cc_send_request()
472 spin_lock_bh(&mgr->hw_lock); in cc_send_sync_request()
478 spin_unlock_bh(&mgr->hw_lock); in cc_send_sync_request()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/selftests/
Dmock_request.c50 spin_lock_irq(&engine->hw_lock); in mock_cancel_request()
53 spin_unlock_irq(&engine->hw_lock); in mock_cancel_request()
/kernel/linux/linux-5.10/drivers/scsi/
Dvmw_pvscsi.c75 spinlock_t hw_lock; member
790 spin_lock_irqsave(&adapter->hw_lock, flags); in pvscsi_queue_lck()
796 spin_unlock_irqrestore(&adapter->hw_lock, flags); in pvscsi_queue_lck()
806 spin_unlock_irqrestore(&adapter->hw_lock, flags); in pvscsi_queue_lck()
827 spin_lock_irqsave(&adapter->hw_lock, flags); in DEF_SCSI_QCMD()
852 spin_unlock_irqrestore(&adapter->hw_lock, flags); in DEF_SCSI_QCMD()
855 spin_lock_irqsave(&adapter->hw_lock, flags); in DEF_SCSI_QCMD()
877 spin_unlock_irqrestore(&adapter->hw_lock, flags); in DEF_SCSI_QCMD()
915 spin_lock_irqsave(&adapter->hw_lock, flags); in pvscsi_host_reset()
921 spin_unlock_irqrestore(&adapter->hw_lock, flags); in pvscsi_host_reset()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/
Dqla3xxx.c180 spin_lock_irqsave(&qdev->hw_lock, hw_flags); in ql_read_common_reg_l()
182 spin_unlock_irqrestore(&qdev->hw_lock, hw_flags); in ql_read_common_reg_l()
197 spin_lock_irqsave(&qdev->hw_lock, hw_flags); in ql_read_page0_reg_l()
203 spin_unlock_irqrestore(&qdev->hw_lock, hw_flags); in ql_read_page0_reg_l()
219 spin_lock_irqsave(&qdev->hw_lock, hw_flags); in ql_write_common_reg_l()
222 spin_unlock_irqrestore(&qdev->hw_lock, hw_flags); in ql_write_common_reg_l()
525 spin_lock_irqsave(&qdev->hw_lock, hw_flags); in ql_get_nvram_params()
533 spin_unlock_irqrestore(&qdev->hw_lock, hw_flags); in ql_get_nvram_params()
547 spin_unlock_irqrestore(&qdev->hw_lock, hw_flags); in ql_get_nvram_params()
551 spin_unlock_irqrestore(&qdev->hw_lock, hw_flags); in ql_get_nvram_params()
[all …]
/kernel/linux/linux-5.10/drivers/media/platform/s5p-mfc/
Ds5p_mfc.c148 if (test_bit(0, &dev->hw_lock)) in s5p_mfc_watchdog()
194 clear_bit(0, &dev->hw_lock); in s5p_mfc_watchdog_worker()
383 WARN_ON(test_and_clear_bit(0, &dev->hw_lock) == 0); in s5p_mfc_handle_frame()
455 WARN_ON(test_and_clear_bit(0, &dev->hw_lock) == 0); in s5p_mfc_handle_frame()
496 WARN_ON(test_and_clear_bit(0, &dev->hw_lock) == 0); in s5p_mfc_handle_error()
552 WARN_ON(test_and_clear_bit(0, &dev->hw_lock) == 0); in s5p_mfc_handle_seq_done()
587 WARN_ON(test_and_clear_bit(0, &dev->hw_lock) == 0); in s5p_mfc_handle_init_buffers()
594 WARN_ON(test_and_clear_bit(0, &dev->hw_lock) == 0); in s5p_mfc_handle_init_buffers()
622 WARN_ON(test_and_clear_bit(0, &dev->hw_lock) == 0); in s5p_mfc_handle_stream_complete()
675 WARN_ON(test_and_clear_bit(0, &dev->hw_lock) == 0); in s5p_mfc_irq()
[all …]
/kernel/linux/linux-5.10/drivers/scsi/qla2xxx/
Dqla_nx.c445 write_lock_irqsave(&ha->hw_lock, flags); in qla82xx_wr_32()
456 write_unlock_irqrestore(&ha->hw_lock, flags); in qla82xx_wr_32()
476 write_lock_irqsave(&ha->hw_lock, flags); in qla82xx_rd_32()
486 write_unlock_irqrestore(&ha->hw_lock, flags); in qla82xx_rd_32()
662 write_lock_irqsave(&ha->hw_lock, flags); in qla82xx_pci_mem_read_direct()
671 write_unlock_irqrestore(&ha->hw_lock, flags); in qla82xx_pci_mem_read_direct()
679 write_unlock_irqrestore(&ha->hw_lock, flags); in qla82xx_pci_mem_read_direct()
695 write_lock_irqsave(&ha->hw_lock, flags); in qla82xx_pci_mem_read_direct()
714 write_unlock_irqrestore(&ha->hw_lock, flags); in qla82xx_pci_mem_read_direct()
734 write_lock_irqsave(&ha->hw_lock, flags); in qla82xx_pci_mem_write_direct()
[all …]
/kernel/linux/linux-5.10/include/drm/
Ddrm_legacy.h181 if (!_DRM_LOCK_IS_HELD(_file_priv->master->lock.hw_lock->lock) || \
184 __func__, _DRM_LOCK_IS_HELD(_file_priv->master->lock.hw_lock->lock),\
Ddrm_auth.h45 struct drm_hw_lock *hw_lock; member
/kernel/linux/linux-5.10/drivers/media/usb/go7007/
Dgo7007-i2c.c57 mutex_lock(&go->hw_lock); in go7007_i2c_xfer()
124 mutex_unlock(&go->hw_lock); in go7007_i2c_xfer()
Dgo7007-driver.c130 mutex_lock(&go->hw_lock); in go7007_boot_encoder()
132 mutex_unlock(&go->hw_lock); in go7007_boot_encoder()
261 mutex_lock(&go->hw_lock); in go7007_register_encoder()
263 mutex_unlock(&go->hw_lock); in go7007_register_encoder()
701 mutex_init(&go->hw_lock); in go7007_alloc()
Dgo7007-v4l2.c403 mutex_lock(&go->hw_lock); in go7007_start_streaming()
412 mutex_unlock(&go->hw_lock); in go7007_start_streaming()
435 mutex_lock(&go->hw_lock); in go7007_stop_streaming()
437 mutex_unlock(&go->hw_lock); in go7007_stop_streaming()
/kernel/linux/linux-5.10/drivers/scsi/qla4xxx/
Dql4_nx.c389 write_lock_irqsave(&ha->hw_lock, flags); in qla4_82xx_wr_32()
398 write_unlock_irqrestore(&ha->hw_lock, flags); in qla4_82xx_wr_32()
413 write_lock_irqsave(&ha->hw_lock, flags); in qla4_82xx_rd_32()
421 write_unlock_irqrestore(&ha->hw_lock, flags); in qla4_82xx_rd_32()
722 write_lock_irqsave(&ha->hw_lock, flags); in qla4_82xx_pci_mem_read_direct()
731 write_unlock_irqrestore(&ha->hw_lock, flags); in qla4_82xx_pci_mem_read_direct()
739 write_unlock_irqrestore(&ha->hw_lock, flags); in qla4_82xx_pci_mem_read_direct()
756 write_lock_irqsave(&ha->hw_lock, flags); in qla4_82xx_pci_mem_read_direct()
776 write_unlock_irqrestore(&ha->hw_lock, flags); in qla4_82xx_pci_mem_read_direct()
795 write_lock_irqsave(&ha->hw_lock, flags); in qla4_82xx_pci_mem_write_direct()
[all …]
/kernel/linux/linux-5.10/drivers/crypto/
Dpicoxcell_crypto.c106 spinlock_t hw_lock; member
650 spin_lock_irqsave(&engine->hw_lock, flags); in spacc_aead_setup()
655 spin_unlock_irqrestore(&engine->hw_lock, flags); in spacc_aead_setup()
663 spin_unlock_irqrestore(&engine->hw_lock, flags); in spacc_aead_setup()
967 spin_lock_irqsave(&engine->hw_lock, flags); in spacc_ablk_setup()
977 spin_unlock_irqrestore(&engine->hw_lock, flags); in spacc_ablk_setup()
985 spin_unlock_irqrestore(&engine->hw_lock, flags); in spacc_ablk_setup()
1068 spin_lock_irqsave(&engine->hw_lock, flags); in spacc_process_done()
1108 spin_unlock_irqrestore(&engine->hw_lock, flags); in spacc_process_done()
1146 spin_lock_irqsave(&engine->hw_lock, flags); in spacc_spacc_complete()
[all …]
/kernel/linux/linux-5.10/drivers/media/platform/mtk-jpeg/
Dmtk_jpeg_core.h94 spinlock_t hw_lock; member
/kernel/linux/linux-5.10/drivers/gpu/drm/mediatek/
Dmtk_drm_crtc.c60 struct mutex hw_lock; member
453 mutex_lock(&mtk_crtc->hw_lock); in mtk_drm_crtc_hw_config()
490 mutex_unlock(&mtk_crtc->hw_lock); in mtk_drm_crtc_hw_config()
822 mutex_init(&mtk_crtc->hw_lock); in mtk_drm_crtc_create()
/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/
Dvmwgfx_drv.h526 spinlock_t hw_lock; member
682 spin_lock(&dev_priv->hw_lock); in vmw_write()
685 spin_unlock(&dev_priv->hw_lock); in vmw_write()
693 spin_lock(&dev_priv->hw_lock); in vmw_read()
696 spin_unlock(&dev_priv->hw_lock); in vmw_read()
/kernel/linux/linux-5.10/drivers/gpu/drm/via/
Dvia_mm.c216 if (!(dev->master && file->master->lock.hw_lock)) in via_reclaim_buffers_locked()

12