Home
last modified time | relevance | path

Searched refs:ctrl_lock (Results 1 – 25 of 42) sorted by relevance

12

/linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/
H A Dtable.c40 __must_hold(&tbl->ctx->ctrl_lock) in hws_table_up_default_fdb_miss_tbl()
82 __must_hold(&tbl->ctx->ctrl_lock) in hws_table_down_default_fdb_miss_tbl()
191 mutex_lock(&ctx->ctrl_lock); in hws_table_init()
206 mutex_unlock(&ctx->ctrl_lock); in hws_table_init()
212 mutex_unlock(&ctx->ctrl_lock); in hws_table_init()
249 mutex_lock(&ctx->ctrl_lock); in mlx5hws_table_create()
251 mutex_unlock(&ctx->ctrl_lock); in mlx5hws_table_create()
265 mutex_lock(&ctx->ctrl_lock); in mlx5hws_table_destroy()
279 mutex_unlock(&ctx->ctrl_lock); in mlx5hws_table_destroy()
287 mutex_unlock(&ctx->ctrl_lock); in mlx5hws_table_destroy()
[all …]
H A Dcontext.c195 mutex_init(&ctx->ctrl_lock); in mlx5hws_context_open()
224 mutex_destroy(&ctx->ctrl_lock); in mlx5hws_context_open()
236 mutex_destroy(&ctx->ctrl_lock); in mlx5hws_context_close()
245 mutex_lock(&ctx->ctrl_lock); in mlx5hws_context_set_peer()
250 mutex_unlock(&ctx->ctrl_lock); in mlx5hws_context_set_peer()
H A Daction.c83 mutex_lock(&ctx->ctrl_lock); in hws_action_get_shared_stc_nic()
86 mutex_unlock(&ctx->ctrl_lock); in hws_action_get_shared_stc_nic()
128 mutex_unlock(&ctx->ctrl_lock); in hws_action_get_shared_stc_nic()
135 mutex_unlock(&ctx->ctrl_lock); in hws_action_get_shared_stc_nic()
178 mutex_lock(&ctx->ctrl_lock); in hws_action_put_shared_stc()
189 mutex_unlock(&ctx->ctrl_lock); in hws_action_put_shared_stc()
319 __must_hold(&ctx->ctrl_lock) in mlx5hws_action_alloc_single_stc()
386 __must_hold(&ctx->ctrl_lock) in mlx5hws_action_free_single_stc()
557 mutex_lock(&ctx->ctrl_lock); in hws_action_create_stcs()
583 mutex_lock(&ctx->ctrl_lock); in hws_action_destroy_stcs()
[all …]
H A Dmatcher.c874 mutex_lock(&ctx->ctrl_lock); in hws_matcher_init()
885 mutex_unlock(&ctx->ctrl_lock); in hws_matcher_init()
892 mutex_unlock(&ctx->ctrl_lock); in hws_matcher_init()
900 mutex_lock(&ctx->ctrl_lock); in hws_matcher_uninit()
903 mutex_unlock(&ctx->ctrl_lock); in hws_matcher_uninit()
1134 mutex_lock(&src_matcher->tbl->ctx->ctrl_lock); in mlx5hws_matcher_resize_set_target()
1147 mutex_unlock(&src_matcher->tbl->ctx->ctrl_lock); in mlx5hws_matcher_resize_set_target()
H A Dcontext.h45 struct mutex ctrl_lock; /* control lock to protect the whole context */ member
/linux-6.15/drivers/rpmsg/
H A Drpmsg_ctrl.c52 struct mutex ctrl_lock; member
92 mutex_lock(&ctrldev->ctrl_lock); in rpmsg_ctrldev_ioctl()
116 mutex_unlock(&ctrldev->ctrl_lock); in rpmsg_ctrldev_ioctl()
155 mutex_init(&ctrldev->ctrl_lock); in rpmsg_ctrldev_probe()
197 mutex_lock(&ctrldev->ctrl_lock); in rpmsg_ctrldev_remove()
202 mutex_unlock(&ctrldev->ctrl_lock); in rpmsg_ctrldev_remove()
/linux-6.15/drivers/vdpa/solidrun/
H A Dsnet_ctrl.c150 mutex_lock(&snet->ctrl_lock); in snet_ctrl_read_from_dpu()
211 mutex_unlock(&snet->ctrl_lock); in snet_ctrl_read_from_dpu()
224 mutex_lock(&snet->ctrl_lock); in snet_send_ctrl_msg_old()
245 mutex_unlock(&snet->ctrl_lock); in snet_send_ctrl_msg_old()
263 mutex_lock(&snet->ctrl_lock); in snet_send_ctrl_msg()
306 mutex_unlock(&snet->ctrl_lock); in snet_send_ctrl_msg()
/linux-6.15/sound/soc/sti/
H A Duniperif_player.c366 mutex_lock(&player->ctrl_lock); in uni_player_prepare_iec958()
369 mutex_unlock(&player->ctrl_lock); in uni_player_prepare_iec958()
549 mutex_lock(&player->ctrl_lock); in uni_player_prepare_tdm()
553 mutex_unlock(&player->ctrl_lock); in uni_player_prepare_tdm()
578 mutex_lock(&player->ctrl_lock); in uni_player_ctl_iec958_get()
583 mutex_unlock(&player->ctrl_lock); in uni_player_ctl_iec958_get()
596 mutex_lock(&player->ctrl_lock); in uni_player_ctl_iec958_put()
645 mutex_lock(&player->ctrl_lock); in snd_sti_clk_adjustment_get()
664 mutex_lock(&player->ctrl_lock); in snd_sti_clk_adjustment_put()
737 mutex_lock(&player->ctrl_lock); in uni_player_set_sysclk()
[all …]
/linux-6.15/drivers/crypto/virtio/
H A Dvirtio_crypto_core.c37 spin_lock_irqsave(&vcrypto->ctrl_lock, flags); in virtcrypto_ctrlq_callback()
41 spin_unlock_irqrestore(&vcrypto->ctrl_lock, flags); in virtcrypto_ctrlq_callback()
43 spin_lock_irqsave(&vcrypto->ctrl_lock, flags); in virtcrypto_ctrlq_callback()
46 spin_unlock_irqrestore(&vcrypto->ctrl_lock, flags); in virtcrypto_ctrlq_callback()
58 spin_lock_irqsave(&vcrypto->ctrl_lock, flags); in virtio_crypto_ctrl_vq_request()
61 spin_unlock_irqrestore(&vcrypto->ctrl_lock, flags); in virtio_crypto_ctrl_vq_request()
66 spin_unlock_irqrestore(&vcrypto->ctrl_lock, flags); in virtio_crypto_ctrl_vq_request()
419 spin_lock_init(&vcrypto->ctrl_lock); in virtcrypto_probe()
/linux-6.15/drivers/pwm/
H A Dpwm-sun4i.c88 spinlock_t ctrl_lock; member
261 spin_lock(&sun4ichip->ctrl_lock); in sun4i_pwm_apply()
269 spin_unlock(&sun4ichip->ctrl_lock); in sun4i_pwm_apply()
300 spin_unlock(&sun4ichip->ctrl_lock); in sun4i_pwm_apply()
312 spin_lock(&sun4ichip->ctrl_lock); in sun4i_pwm_apply()
317 spin_unlock(&sun4ichip->ctrl_lock); in sun4i_pwm_apply()
459 spin_lock_init(&sun4ichip->ctrl_lock); in sun4i_pwm_probe()
/linux-6.15/sound/soc/mediatek/mt8195/
H A Dmt8195-afe-clk.c99 spinlock_t ctrl_lock; /* lock for apll tuner ctrl*/ member
212 spin_lock_init(&cfg->ctrl_lock); in mt8195_afe_init_apll_tuner()
300 spin_lock_irqsave(&cfg->ctrl_lock, flags); in mt8195_afe_enable_apll_tuner()
309 spin_unlock_irqrestore(&cfg->ctrl_lock, flags); in mt8195_afe_enable_apll_tuner()
324 spin_lock_irqsave(&cfg->ctrl_lock, flags); in mt8195_afe_disable_apll_tuner()
335 spin_unlock_irqrestore(&cfg->ctrl_lock, flags); in mt8195_afe_disable_apll_tuner()
/linux-6.15/sound/soc/mediatek/mt8188/
H A Dmt8188-afe-clk.c115 spinlock_t ctrl_lock; /* lock for apll tuner ctrl*/ member
229 spin_lock_init(&cfg->ctrl_lock); in mt8188_afe_init_apll_tuner()
318 spin_lock_irqsave(&cfg->ctrl_lock, flags); in mt8188_afe_enable_apll_tuner()
327 spin_unlock_irqrestore(&cfg->ctrl_lock, flags); in mt8188_afe_enable_apll_tuner()
341 spin_lock_irqsave(&cfg->ctrl_lock, flags); in mt8188_afe_disable_apll_tuner()
352 spin_unlock_irqrestore(&cfg->ctrl_lock, flags); in mt8188_afe_disable_apll_tuner()
/linux-6.15/fs/smb/server/
H A Dserver.c39 static DEFINE_MUTEX(ctrl_lock);
387 mutex_lock(&ctrl_lock); in server_ctrl_handle_work()
398 mutex_unlock(&ctrl_lock); in server_ctrl_handle_work()
455 mutex_lock(&ctrl_lock); in kill_server_store()
460 mutex_unlock(&ctrl_lock); in kill_server_store()
/linux-6.15/sound/soc/codecs/
H A Dab8500-codec.c117 struct mutex ctrl_lock; member
1120 mutex_lock(&drvdata->ctrl_lock); in sid_status_control_get()
1122 mutex_unlock(&drvdata->ctrl_lock); in sid_status_control_get()
1145 mutex_lock(&drvdata->ctrl_lock); in sid_status_control_put()
1176 mutex_unlock(&drvdata->ctrl_lock); in sid_status_control_put()
1189 mutex_lock(&drvdata->ctrl_lock); in anc_status_control_get()
1191 mutex_unlock(&drvdata->ctrl_lock); in anc_status_control_get()
1209 mutex_lock(&drvdata->ctrl_lock); in anc_status_control_put()
1288 mutex_lock(&drvdata->ctrl_lock); in filter_control_get()
1305 mutex_lock(&drvdata->ctrl_lock); in filter_control_put()
[all …]
H A Dda7213.c221 mutex_lock(&da7213->ctrl_lock); in da7213_volsw_locked_get()
223 mutex_unlock(&da7213->ctrl_lock); in da7213_volsw_locked_get()
235 mutex_lock(&da7213->ctrl_lock); in da7213_volsw_locked_put()
237 mutex_unlock(&da7213->ctrl_lock); in da7213_volsw_locked_put()
249 mutex_lock(&da7213->ctrl_lock); in da7213_enum_locked_get()
251 mutex_unlock(&da7213->ctrl_lock); in da7213_enum_locked_get()
263 mutex_lock(&da7213->ctrl_lock); in da7213_enum_locked_put()
265 mutex_unlock(&da7213->ctrl_lock); in da7213_enum_locked_put()
468 mutex_lock(&da7213->ctrl_lock); in da7213_tonegen_freq_get()
470 mutex_unlock(&da7213->ctrl_lock); in da7213_tonegen_freq_get()
[all …]
H A Dda7219.c261 mutex_lock(&da7219->ctrl_lock); in da7219_volsw_locked_get()
263 mutex_unlock(&da7219->ctrl_lock); in da7219_volsw_locked_get()
275 mutex_lock(&da7219->ctrl_lock); in da7219_volsw_locked_put()
277 mutex_unlock(&da7219->ctrl_lock); in da7219_volsw_locked_put()
289 mutex_lock(&da7219->ctrl_lock); in da7219_enum_locked_get()
291 mutex_unlock(&da7219->ctrl_lock); in da7219_enum_locked_get()
303 mutex_lock(&da7219->ctrl_lock); in da7219_enum_locked_put()
305 mutex_unlock(&da7219->ctrl_lock); in da7219_enum_locked_put()
425 mutex_lock(&da7219->ctrl_lock); in da7219_tonegen_freq_get()
427 mutex_unlock(&da7219->ctrl_lock); in da7219_tonegen_freq_get()
[all …]
/linux-6.15/drivers/media/pci/intel/ivsc/
H A Dmei_csi.c128 struct mutex ctrl_lock; member
549 mutex_init(&csi->ctrl_lock); in mei_csi_init_controls()
555 csi->ctrl_handler.lock = &csi->ctrl_lock; in mei_csi_init_controls()
736 mutex_destroy(&csi->ctrl_lock); in mei_csi_probe()
756 mutex_destroy(&csi->ctrl_lock); in mei_csi_remove()
/linux-6.15/drivers/media/platform/st/stm32/dma2d/
H A Ddma2d.c231 spin_lock_irqsave(&ctx->dev->ctrl_lock, flags); in dma2d_s_ctrl()
246 spin_unlock_irqrestore(&ctx->dev->ctrl_lock, flags); in dma2d_s_ctrl()
249 spin_unlock_irqrestore(&ctx->dev->ctrl_lock, flags); in dma2d_s_ctrl()
476 spin_lock_irqsave(&dev->ctrl_lock, flags); in device_run()
514 spin_unlock_irqrestore(&dev->ctrl_lock, flags); in device_run()
611 spin_lock_init(&dev->ctrl_lock); in dma2d_probe()
/linux-6.15/drivers/dma/qcom/
H A Dgpi.c508 struct mutex ctrl_lock; member
1476 mutex_lock(&gpii->ctrl_lock); in gpi_terminate_all()
1528 mutex_unlock(&gpii->ctrl_lock); in gpi_terminate_all()
1539 mutex_lock(&gpii->ctrl_lock); in gpi_pause()
1568 mutex_unlock(&gpii->ctrl_lock); in gpi_pause()
1580 mutex_lock(&gpii->ctrl_lock); in gpi_resume()
1602 mutex_unlock(&gpii->ctrl_lock); in gpi_resume()
1992 mutex_lock(&gpii->ctrl_lock); in gpi_free_chan_resources()
2051 mutex_unlock(&gpii->ctrl_lock); in gpi_free_chan_resources()
2061 mutex_lock(&gpii->ctrl_lock); in gpi_alloc_chan_resources()
[all …]
/linux-6.15/drivers/gpu/drm/gud/
H A Dgud_drv.c165 mutex_lock(&gdrm->ctrl_lock); in gud_usb_transfer()
186 mutex_unlock(&gdrm->ctrl_lock); in gud_usb_transfer()
423 mutex_destroy(&gdrm->ctrl_lock); in gud_free_buffers_and_mutex()
472 mutex_init(&gdrm->ctrl_lock); in gud_probe()
/linux-6.15/drivers/net/usb/
H A Dcatc.c157 spinlock_t tx_lock, ctrl_lock; member
509 spin_lock_irqsave(&catc->ctrl_lock, flags); in catc_ctrl_done()
530 spin_unlock_irqrestore(&catc->ctrl_lock, flags); in catc_ctrl_done()
540 spin_lock_irqsave(&catc->ctrl_lock, flags); in catc_ctrl_async()
563 spin_unlock_irqrestore(&catc->ctrl_lock, flags); in catc_ctrl_async()
801 spin_lock_init(&catc->ctrl_lock); in catc_probe()
/linux-6.15/sound/soc/stm/
H A Dstm32_sai_sub.c133 struct mutex ctrl_lock; /* protect resources accessed by controls */ member
283 mutex_lock(&sai->ctrl_lock); in snd_pcm_iec958_get()
285 mutex_unlock(&sai->ctrl_lock); in snd_pcm_iec958_get()
295 mutex_lock(&sai->ctrl_lock); in snd_pcm_iec958_put()
297 mutex_unlock(&sai->ctrl_lock); in snd_pcm_iec958_put()
1073 mutex_lock(&sai->ctrl_lock); in stm32_sai_set_iec958_status()
1106 mutex_unlock(&sai->ctrl_lock); in stm32_sai_set_iec958_status()
1650 mutex_init(&sai->ctrl_lock); in stm32_sai_sub_probe()
/linux-6.15/drivers/media/platform/samsung/s5p-g2d/
H A Dg2d.c177 spin_lock_irqsave(&ctx->dev->ctrl_lock, flags); in g2d_s_ctrl()
191 spin_unlock_irqrestore(&ctx->dev->ctrl_lock, flags); in g2d_s_ctrl()
515 spin_lock_irqsave(&dev->ctrl_lock, flags); in device_run()
537 spin_unlock_irqrestore(&dev->ctrl_lock, flags); in device_run()
631 spin_lock_init(&dev->ctrl_lock); in g2d_probe()
H A Dg2d.h22 spinlock_t ctrl_lock; member
/linux-6.15/drivers/media/platform/rockchip/rga/
H A Drga.c41 spin_lock_irqsave(&rga->ctrl_lock, flags); in device_run()
52 spin_unlock_irqrestore(&rga->ctrl_lock, flags); in device_run()
135 spin_lock_irqsave(&ctx->rga->ctrl_lock, flags); in rga_s_ctrl()
150 spin_unlock_irqrestore(&ctx->rga->ctrl_lock, flags); in rga_s_ctrl()
816 spin_lock_init(&rga->ctrl_lock); in rga_probe()

12