Home
last modified time | relevance | path

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

123

/linux-5.19.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 …]
/linux-5.19.10/drivers/gpu/drm/vc4/
Dvc4_hdmi_phy.c139 spin_lock_irqsave(&vc4_hdmi->hw_lock, flags); in vc4_hdmi_phy_init()
144 spin_unlock_irqrestore(&vc4_hdmi->hw_lock, flags); in vc4_hdmi_phy_init()
151 spin_lock_irqsave(&vc4_hdmi->hw_lock, flags); in vc4_hdmi_phy_disable()
153 spin_unlock_irqrestore(&vc4_hdmi->hw_lock, flags); in vc4_hdmi_phy_disable()
160 spin_lock_irqsave(&vc4_hdmi->hw_lock, flags); in vc4_hdmi_phy_rng_enable()
164 spin_unlock_irqrestore(&vc4_hdmi->hw_lock, flags); in vc4_hdmi_phy_rng_enable()
171 spin_lock_irqsave(&vc4_hdmi->hw_lock, flags); in vc4_hdmi_phy_rng_disable()
175 spin_unlock_irqrestore(&vc4_hdmi->hw_lock, flags); in vc4_hdmi_phy_rng_disable()
357 lockdep_assert_held(&vc4_hdmi->hw_lock); in vc5_hdmi_reset_phy()
376 spin_lock_irqsave(&vc4_hdmi->hw_lock, flags); in vc5_hdmi_phy_init()
[all …]
Dvc4_hdmi.c167 spin_lock_irqsave(&vc4_hdmi->hw_lock, flags); in vc4_hdmi_reset()
181 spin_unlock_irqrestore(&vc4_hdmi->hw_lock, flags); in vc4_hdmi_reset()
190 spin_lock_irqsave(&vc4_hdmi->hw_lock, flags); in vc5_hdmi_reset()
197 spin_unlock_irqrestore(&vc4_hdmi->hw_lock, flags); in vc5_hdmi_reset()
208 spin_lock_irqsave(&vc4_hdmi->hw_lock, flags); in vc4_hdmi_cec_update_clk_div()
221 spin_unlock_irqrestore(&vc4_hdmi->hw_lock, flags); in vc4_hdmi_cec_update_clk_div()
449 spin_lock_irqsave(&vc4_hdmi->hw_lock, flags); in vc4_hdmi_stop_packet()
452 spin_unlock_irqrestore(&vc4_hdmi->hw_lock, flags); in vc4_hdmi_stop_packet()
492 spin_lock_irqsave(&vc4_hdmi->hw_lock, flags); in vc4_hdmi_write_infoframe()
519 spin_unlock_irqrestore(&vc4_hdmi->hw_lock, flags); in vc4_hdmi_write_infoframe()
[all …]
Dvc4_hdmi.h193 spinlock_t hw_lock; member
/linux-5.19.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()
/linux-5.19.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()
269 spin_lock_irqsave(&ctl->hw_lock, flags); in mdp5_ctl_set_cursor()
281 spin_unlock_irqrestore(&ctl->hw_lock, flags); in mdp5_ctl_set_cursor()
337 spin_lock_irqsave(&ctl->hw_lock, flags); in mdp5_ctl_reset_blend_regs()
344 spin_unlock_irqrestore(&ctl->hw_lock, flags); in mdp5_ctl_reset_blend_regs()
389 spin_lock_irqsave(&ctl->hw_lock, flags); in mdp5_ctl_blend()
[all …]
/linux-5.19.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
/linux-5.19.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()
240 mutex_lock(&priv->hw_lock); in ark3116_set_termios()
283 mutex_unlock(&priv->hw_lock); in ark3116_set_termios()
382 mutex_lock(&priv->hw_lock); in ark3116_tiocmget()
384 mutex_unlock(&priv->hw_lock); in ark3116_tiocmget()
410 mutex_lock(&priv->hw_lock); in ark3116_tiocmset()
431 mutex_unlock(&priv->hw_lock); in ark3116_tiocmset()
442 mutex_lock(&priv->hw_lock); in ark3116_break_ctl()
[all …]
/linux-5.19.10/drivers/crypto/ccree/
Dcc_request_mgr.c28 spinlock_t hw_lock; member
127 spin_lock_init(&req_mgr_h->hw_lock); in cc_req_mgr_init()
374 spin_lock(&mgr->hw_lock); in cc_proc_backlog()
383 spin_unlock(&mgr->hw_lock); in cc_proc_backlog()
389 spin_unlock(&mgr->hw_lock); in cc_proc_backlog()
418 spin_lock_bh(&mgr->hw_lock); in cc_send_request()
427 spin_unlock_bh(&mgr->hw_lock); in cc_send_request()
448 spin_unlock_bh(&mgr->hw_lock); in cc_send_request()
471 spin_lock_bh(&mgr->hw_lock); in cc_send_sync_request()
477 spin_unlock_bh(&mgr->hw_lock); in cc_send_sync_request()
[all …]
/linux-5.19.10/drivers/scsi/
Dvmw_pvscsi.c73 spinlock_t hw_lock; member
782 spin_lock_irqsave(&adapter->hw_lock, flags); in pvscsi_queue_lck()
788 spin_unlock_irqrestore(&adapter->hw_lock, flags); in pvscsi_queue_lck()
797 spin_unlock_irqrestore(&adapter->hw_lock, flags); in pvscsi_queue_lck()
818 spin_lock_irqsave(&adapter->hw_lock, flags); in DEF_SCSI_QCMD()
843 spin_unlock_irqrestore(&adapter->hw_lock, flags); in DEF_SCSI_QCMD()
846 spin_lock_irqsave(&adapter->hw_lock, flags); in DEF_SCSI_QCMD()
868 spin_unlock_irqrestore(&adapter->hw_lock, flags); in DEF_SCSI_QCMD()
906 spin_lock_irqsave(&adapter->hw_lock, flags); in pvscsi_host_reset()
912 spin_unlock_irqrestore(&adapter->hw_lock, flags); in pvscsi_host_reset()
[all …]
/linux-5.19.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()
/linux-5.19.10/drivers/gpu/drm/i915/gt/
Dmock_engine.c115 spin_lock_irqsave(&engine->hw_lock, flags); in hw_delay_complete()
136 spin_unlock_irqrestore(&engine->hw_lock, flags); in hw_delay_complete()
244 spin_lock_irqsave(&engine->hw_lock, flags); in mock_submit_request()
253 spin_unlock_irqrestore(&engine->hw_lock, flags); in mock_submit_request()
384 spin_lock_init(&engine->hw_lock); in mock_engine()
437 spin_lock_irq(&mock->hw_lock); in mock_engine_flush()
440 spin_unlock_irq(&mock->hw_lock); in mock_engine_flush()
Dmock_engine.h18 spinlock_t hw_lock; member
/linux-5.19.10/drivers/net/ethernet/mediatek/
Dmtk_wed.c30 static DEFINE_MUTEX(hw_lock);
272 mutex_lock(&hw_lock); in mtk_wed_detach()
296 mutex_unlock(&hw_lock); in mtk_wed_detach()
602 mutex_lock(&hw_lock); in mtk_wed_attach()
632 mutex_unlock(&hw_lock); in mtk_wed_attach()
746 mutex_lock(&hw_lock); in mtk_wed_flow_add()
758 mutex_unlock(&hw_lock); in mtk_wed_flow_add()
773 mutex_lock(&hw_lock); in mtk_wed_flow_remove()
781 mutex_unlock(&hw_lock); in mtk_wed_flow_remove()
824 mutex_lock(&hw_lock); in mtk_wed_add_hw()
[all …]
/linux-5.19.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()
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 …]
/linux-5.19.10/drivers/media/platform/samsung/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 …]
/linux-5.19.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()
659 write_lock_irqsave(&ha->hw_lock, flags); in qla82xx_pci_mem_read_direct()
668 write_unlock_irqrestore(&ha->hw_lock, flags); in qla82xx_pci_mem_read_direct()
676 write_unlock_irqrestore(&ha->hw_lock, flags); in qla82xx_pci_mem_read_direct()
692 write_lock_irqsave(&ha->hw_lock, flags); in qla82xx_pci_mem_read_direct()
711 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_write_direct()
[all …]
/linux-5.19.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()
/linux-5.19.10/drivers/scsi/qla4xxx/
Dql4_nx.c418 write_lock_irqsave(&ha->hw_lock, flags); in qla4_82xx_wr_32()
427 write_unlock_irqrestore(&ha->hw_lock, flags); in qla4_82xx_wr_32()
442 write_lock_irqsave(&ha->hw_lock, flags); in qla4_82xx_rd_32()
450 write_unlock_irqrestore(&ha->hw_lock, flags); in qla4_82xx_rd_32()
713 write_lock_irqsave(&ha->hw_lock, flags); in qla4_82xx_pci_mem_read_direct()
722 write_unlock_irqrestore(&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()
747 write_lock_irqsave(&ha->hw_lock, flags); in qla4_82xx_pci_mem_read_direct()
767 write_unlock_irqrestore(&ha->hw_lock, flags); in qla4_82xx_pci_mem_read_direct()
786 write_lock_irqsave(&ha->hw_lock, flags); in qla4_82xx_pci_mem_write_direct()
[all …]
/linux-5.19.10/include/drm/
Ddrm_auth.h45 struct drm_hw_lock *hw_lock; member
Ddrm_legacy.h196 if (!_DRM_LOCK_IS_HELD(_file_priv->master->lock.hw_lock->lock) || \
199 __func__, _DRM_LOCK_IS_HELD(_file_priv->master->lock.hw_lock->lock),\
/linux-5.19.10/drivers/media/platform/mediatek/jpeg/
Dmtk_jpeg_core.h93 spinlock_t hw_lock; member
/linux-5.19.10/drivers/media/platform/nxp/imx-jpeg/
Dmxc-jpeg.h112 spinlock_t hw_lock; /* hardware access lock */ member

123