/openbmc/linux/drivers/gpu/drm/ |
H A D | drm_lock.c | 63 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() 335 _DRM_LOCK_IS_HELD(master->lock.hw_lock->lock) && in drm_legacy_i_have_hw_lock() 365 if (master->lock.hw_lock) { in drm_legacy_lock_master_cleanup() 366 if (dev->sigdata.lock == master->lock.hw_lock) in drm_legacy_lock_master_cleanup() [all …]
|
/openbmc/linux/drivers/gpu/drm/vc4/ |
H A D | vc4_hdmi_phy.c | 139 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() 171 spin_lock_irqsave(&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() 535 spin_lock_irqsave(&vc4_hdmi->hw_lock, flags); in vc5_hdmi_phy_disable() 544 spin_lock_irqsave(&vc4_hdmi->hw_lock, flags); in vc5_hdmi_phy_rng_enable() [all …]
|
H A D | vc4_hdmi.c | 1349 lockdep_assert_held(&vc4_hdmi->hw_lock); in vc5_hdmi_set_csc_coeffs() 1362 lockdep_assert_held(&vc4_hdmi->hw_lock); in vc5_hdmi_set_csc_coeffs_swap() 2336 lockdep_assert_held(&vc4_hdmi->hw_lock); in vc4_hdmi_set_n_cts() 2925 lockdep_assert_held(&vc4_hdmi->hw_lock); in vc4_cec_read_msg() 2975 spin_lock(&vc4_hdmi->hw_lock); in vc4_cec_irq_handler_tx_bare() 2977 spin_unlock(&vc4_hdmi->hw_lock); in vc4_cec_irq_handler_tx_bare() 3016 spin_lock(&vc4_hdmi->hw_lock); in vc4_cec_irq_handler_rx_bare() 3018 spin_unlock(&vc4_hdmi->hw_lock); in vc4_cec_irq_handler_rx_bare() 3044 spin_lock(&vc4_hdmi->hw_lock); in vc4_cec_irq_handler() 3053 spin_unlock(&vc4_hdmi->hw_lock); in vc4_cec_irq_handler() [all …]
|
/openbmc/linux/sound/soc/sof/ |
H A D | ops.c | 44 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()
|
/openbmc/linux/drivers/gpu/drm/msm/disp/mdp5/ |
H A D | mdp5_ctl.c | 41 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() 337 spin_lock_irqsave(&ctl->hw_lock, flags); in mdp5_ctl_reset_blend_regs() 389 spin_lock_irqsave(&ctl->hw_lock, flags); in mdp5_ctl_blend() 568 spin_lock_irqsave(&ctl->hw_lock, flags); in mdp5_ctl_commit() 678 spin_lock_irqsave(&ctl->hw_lock, flags); in mdp5_ctlm_hw_reset() [all …]
|
/openbmc/linux/drivers/media/rc/ |
H A D | ene_ir.c | 535 spin_lock_irqsave(&dev->hw_lock, flags); in ene_tx_set_carrier() 564 spin_lock_irqsave(&dev->hw_lock, flags); in ene_tx_set_transmitters() 668 spin_lock_irqsave(&dev->hw_lock, flags); in ene_tx_irqsim() 728 spin_lock_irqsave(&dev->hw_lock, flags); in ene_isr() 841 spin_lock_irqsave(&dev->hw_lock, flags); in ene_open() 852 spin_lock_irqsave(&dev->hw_lock, flags); in ene_close() 918 spin_lock_irqsave(&dev->hw_lock, flags); in ene_set_learning_mode() 935 spin_lock_irqsave(&dev->hw_lock, flags); in ene_set_carrier_report() 971 spin_lock_irqsave(&dev->hw_lock, flags); in ene_transmit() 1018 spin_lock_init(&dev->hw_lock); in ene_probe() [all …]
|
/openbmc/linux/drivers/usb/serial/ |
H A D | ark3116.c | 63 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() 443 mutex_lock(&priv->hw_lock); in ark3116_break_ctl() [all …]
|
/openbmc/linux/drivers/crypto/ccree/ |
H A D | cc_request_mgr.c | 28 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 …]
|
/openbmc/linux/drivers/gpu/drm/i915/selftests/ |
H A D | mock_request.c | 50 spin_lock_irq(&engine->hw_lock); in mock_cancel_request() 53 spin_unlock_irq(&engine->hw_lock); in mock_cancel_request()
|
/openbmc/linux/drivers/gpu/drm/i915/gt/ |
H A D | mock_engine.c | 115 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()
|
H A D | mock_engine.h | 18 spinlock_t hw_lock; member
|
/openbmc/linux/drivers/scsi/ |
H A D | vmw_pvscsi.c | 73 spinlock_t hw_lock; member 782 spin_lock_irqsave(&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() 846 spin_lock_irqsave(&adapter->hw_lock, flags); in DEF_SCSI_QCMD() 906 spin_lock_irqsave(&adapter->hw_lock, flags); in pvscsi_host_reset() 919 spin_lock_irqsave(&adapter->hw_lock, flags); in pvscsi_host_reset() 965 spin_lock_irqsave(&adapter->hw_lock, flags); in pvscsi_bus_reset() 990 spin_lock_irqsave(&adapter->hw_lock, flags); in pvscsi_device_reset() 1183 spin_lock_irqsave(&adapter->hw_lock, flags); in pvscsi_isr() [all …]
|
/openbmc/linux/drivers/media/platform/mediatek/jpeg/ |
H A D | mtk_jpeg_core.h | 162 spinlock_t hw_lock; member 189 spinlock_t hw_lock; member 215 spinlock_t hw_lock; member
|
H A D | mtk_jpeg_core.c | 958 spin_lock_irqsave(&jpeg->hw_lock, flags); in mtk_jpeg_enc_device_run() 970 spin_unlock_irqrestore(&jpeg->hw_lock, flags); in mtk_jpeg_enc_device_run() 1031 spin_lock_irqsave(&jpeg->hw_lock, flags); in mtk_jpeg_dec_device_run() 1039 spin_unlock_irqrestore(&jpeg->hw_lock, flags); in mtk_jpeg_dec_device_run() 1309 spin_lock_init(&jpeg->hw_lock); in mtk_jpeg_probe() 1464 spin_lock_irqsave(&jpeg->hw_lock, flags); in mtk_jpegenc_get_hw() 1473 spin_unlock_irqrestore(&jpeg->hw_lock, flags); in mtk_jpegenc_get_hw() 1496 spin_lock_irqsave(&jpeg->hw_lock, flags); in mtk_jpegenc_put_hw() 1498 spin_unlock_irqrestore(&jpeg->hw_lock, flags); in mtk_jpegenc_put_hw() 1511 spin_lock_irqsave(&jpeg->hw_lock, flags); in mtk_jpegdec_get_hw() [all …]
|
/openbmc/linux/drivers/net/ethernet/qlogic/ |
H A D | qla3xxx.c | 180 spin_lock_irqsave(&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() 219 spin_lock_irqsave(&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() 1524 spin_lock_irqsave(&qdev->hw_lock, hw_flags); in ql_link_state_machine_work() 1661 spin_lock_irqsave(&qdev->hw_lock, hw_flags); in ql_get_auto_cfg_status() 1678 spin_lock_irqsave(&qdev->hw_lock, hw_flags); in ql_get_speed() 2187 spin_lock_irqsave(&qdev->hw_lock, flags); in ql_poll() 3215 spin_unlock_irq(&qdev->hw_lock); in ql_adapter_initialize() 3217 spin_lock_irq(&qdev->hw_lock); in ql_adapter_initialize() [all …]
|
/openbmc/linux/drivers/media/platform/samsung/s5p-mfc/ |
H A D | s5p_mfc.c | 148 if (test_bit(0, &dev->hw_lock)) in s5p_mfc_watchdog() 198 clear_bit(0, &dev->hw_lock); in s5p_mfc_watchdog_worker() 467 WARN_ON(test_and_clear_bit(0, &dev->hw_lock) == 0); in s5p_mfc_handle_frame() 510 WARN_ON(test_and_clear_bit(0, &dev->hw_lock) == 0); in s5p_mfc_handle_error() 567 WARN_ON(test_and_clear_bit(0, &dev->hw_lock) == 0); in s5p_mfc_handle_seq_done() 637 WARN_ON(test_and_clear_bit(0, &dev->hw_lock) == 0); in s5p_mfc_handle_stream_complete() 720 clear_bit(0, &dev->hw_lock); in s5p_mfc_irq() 752 if (test_and_clear_bit(0, &dev->hw_lock) == 0) in s5p_mfc_irq() 976 clear_bit(0, &dev->hw_lock); in s5p_mfc_release() 1341 dev->hw_lock = 0; in s5p_mfc_probe() [all …]
|
/openbmc/linux/drivers/net/ethernet/mediatek/ |
H A D | mtk_wed.c | 45 static DEFINE_MUTEX(hw_lock); 221 mutex_lock(&hw_lock); in mtk_wed_fe_reset() 241 mutex_unlock(&hw_lock); in mtk_wed_fe_reset() 248 mutex_lock(&hw_lock); in mtk_wed_fe_reset_complete() 264 mutex_unlock(&hw_lock); in mtk_wed_fe_reset_complete() 678 mutex_lock(&hw_lock); in mtk_wed_detach() 680 mutex_unlock(&hw_lock); in mtk_wed_detach() 1517 mutex_lock(&hw_lock); in mtk_wed_attach() 1722 mutex_lock(&hw_lock); in mtk_wed_flow_add() 1749 mutex_lock(&hw_lock); in mtk_wed_flow_remove() [all …]
|
/openbmc/linux/drivers/scsi/qla2xxx/ |
H A D | qla_nx.c | 1413 read_lock(&ha->hw_lock); in qla82xx_fw_load_from_flash() 1416 read_unlock(&ha->hw_lock); in qla82xx_fw_load_from_flash() 1790 read_lock(&ha->hw_lock); in qla82xx_fw_load_from_blob() 1793 read_unlock(&ha->hw_lock); in qla82xx_fw_load_from_blob() 1871 read_lock(&ha->hw_lock); in qla82xx_check_cmdpeg_state() 1896 read_lock(&ha->hw_lock); in qla82xx_check_cmdpeg_state() 1898 read_unlock(&ha->hw_lock); in qla82xx_check_cmdpeg_state() 1910 read_lock(&ha->hw_lock); in qla82xx_check_rcvpeg_state() 1933 read_lock(&ha->hw_lock); in qla82xx_check_rcvpeg_state() 1935 read_unlock(&ha->hw_lock); in qla82xx_check_rcvpeg_state() [all …]
|
/openbmc/linux/drivers/media/usb/go7007/ |
H A D | go7007-i2c.c | 57 mutex_lock(&go->hw_lock); in go7007_i2c_xfer() 124 mutex_unlock(&go->hw_lock); in go7007_i2c_xfer()
|
H A D | go7007-driver.c | 132 mutex_lock(&go->hw_lock); in go7007_boot_encoder() 134 mutex_unlock(&go->hw_lock); in go7007_boot_encoder() 263 mutex_lock(&go->hw_lock); in go7007_register_encoder() 265 mutex_unlock(&go->hw_lock); in go7007_register_encoder() 703 mutex_init(&go->hw_lock); in go7007_alloc()
|
/openbmc/linux/drivers/scsi/qla4xxx/ |
H A D | ql4_nx.c | 418 write_lock_irqsave(&ha->hw_lock, flags); in qla4_82xx_wr_32() 442 write_lock_irqsave(&ha->hw_lock, flags); in qla4_82xx_rd_32() 713 write_lock_irqsave(&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() 1192 write_lock_irqsave(&ha->hw_lock, flags); in qla4_8xxx_ms_mem_write_128b() 1311 read_lock(&ha->hw_lock); in qla4_82xx_load_from_flash() 1314 read_unlock(&ha->hw_lock); in qla4_82xx_load_from_flash() 1581 read_lock(&ha->hw_lock); in qla4_82xx_rcvpeg_ready() 1583 read_unlock(&ha->hw_lock); in qla4_82xx_rcvpeg_ready() 1588 read_lock(&ha->hw_lock); in qla4_82xx_rcvpeg_ready() [all …]
|
/openbmc/linux/include/drm/ |
H A D | drm_auth.h | 45 struct drm_hw_lock *hw_lock; member
|
H A D | drm_legacy.h | 196 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),\
|
/openbmc/linux/include/linux/mfd/ |
H A D | cs42l43.h | 99 bool hw_lock; member
|
/openbmc/linux/drivers/media/platform/nxp/imx-jpeg/ |
H A D | mxc-jpeg.c | 895 spin_lock(&jpeg->hw_lock); in mxc_jpeg_dec_irq() 983 spin_unlock(&jpeg->hw_lock); in mxc_jpeg_dec_irq() 988 spin_unlock(&jpeg->hw_lock); in mxc_jpeg_dec_irq() 1418 spin_lock_irqsave(&ctx->mxc_jpeg->hw_lock, flags); in mxc_jpeg_device_run_timeout() 1425 spin_unlock_irqrestore(&ctx->mxc_jpeg->hw_lock, flags); in mxc_jpeg_device_run_timeout() 1439 spin_lock_irqsave(&ctx->mxc_jpeg->hw_lock, flags); in mxc_jpeg_device_run() 1517 spin_unlock_irqrestore(&ctx->mxc_jpeg->hw_lock, flags); in mxc_jpeg_device_run() 1535 spin_lock_irqsave(&ctx->mxc_jpeg->hw_lock, flags); in mxc_jpeg_decoder_cmd() 1537 spin_unlock_irqrestore(&ctx->mxc_jpeg->hw_lock, flags); in mxc_jpeg_decoder_cmd() 1569 spin_lock_irqsave(&ctx->mxc_jpeg->hw_lock, flags); in mxc_jpeg_encoder_cmd() [all …]
|