Home
last modified time | relevance | path

Searched refs:state_lock (Results 1 – 25 of 156) sorted by relevance

1234567

/linux-6.12.1/drivers/pci/hotplug/
Dpciehp_ctrl.c147 mutex_lock(&ctrl->state_lock); in pciehp_queue_pushbutton_work()
158 mutex_unlock(&ctrl->state_lock); in pciehp_queue_pushbutton_work()
163 mutex_lock(&ctrl->state_lock); in pciehp_handle_button_press()
208 mutex_unlock(&ctrl->state_lock); in pciehp_handle_button_press()
213 mutex_lock(&ctrl->state_lock); in pciehp_handle_disable_request()
221 mutex_unlock(&ctrl->state_lock); in pciehp_handle_disable_request()
234 mutex_lock(&ctrl->state_lock); in pciehp_handle_presence_or_link_change()
241 mutex_unlock(&ctrl->state_lock); in pciehp_handle_presence_or_link_change()
251 mutex_unlock(&ctrl->state_lock); in pciehp_handle_presence_or_link_change()
256 mutex_lock(&ctrl->state_lock); in pciehp_handle_presence_or_link_change()
[all …]
Ds390_pci_hpc.c29 mutex_lock(&zdev->state_lock); in enable_slot()
43 mutex_unlock(&zdev->state_lock); in enable_slot()
54 mutex_lock(&zdev->state_lock); in disable_slot()
69 mutex_unlock(&zdev->state_lock); in disable_slot()
86 if (!mutex_trylock(&zdev->state_lock)) in reset_slot()
100 mutex_unlock(&zdev->state_lock); in reset_slot()
/linux-6.12.1/net/devlink/
Dlinecard.c16 struct mutex state_lock; /* Protects state */ member
187 mutex_lock(&linecard->state_lock); in devlink_nl_linecard_get_doit()
192 mutex_unlock(&linecard->state_lock); in devlink_nl_linecard_get_doit()
216 mutex_lock(&linecard->state_lock); in devlink_nl_linecard_get_dump_one()
222 mutex_unlock(&linecard->state_lock); in devlink_nl_linecard_get_dump_one()
262 mutex_lock(&linecard->state_lock); in devlink_linecard_type_set()
300 mutex_unlock(&linecard->state_lock); in devlink_linecard_type_set()
307 mutex_lock(&linecard->state_lock); in devlink_linecard_type_set()
311 mutex_unlock(&linecard->state_lock); in devlink_linecard_type_set()
316 mutex_unlock(&linecard->state_lock); in devlink_linecard_type_set()
[all …]
/linux-6.12.1/drivers/char/
Dapm-emulation.c142 static DEFINE_MUTEX(state_lock);
224 mutex_lock(&state_lock); in apm_read()
228 mutex_unlock(&state_lock); in apm_read()
269 mutex_lock(&state_lock); in apm_ioctl()
282 mutex_unlock(&state_lock); in apm_ioctl()
303 mutex_unlock(&state_lock); in apm_ioctl()
307 mutex_unlock(&state_lock); in apm_ioctl()
317 mutex_lock(&state_lock); in apm_ioctl()
320 mutex_unlock(&state_lock); in apm_ioctl()
341 mutex_lock(&state_lock); in apm_release()
[all …]
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/en/
Dselq.c27 int mlx5e_selq_init(struct mlx5e_selq *selq, struct mutex *state_lock) in mlx5e_selq_init() argument
31 selq->state_lock = state_lock; in mlx5e_selq_init()
60 mutex_lock(selq->state_lock); in mlx5e_selq_cleanup()
71 mutex_unlock(selq->state_lock); in mlx5e_selq_cleanup()
78 lockdep_assert_held(selq->state_lock); in mlx5e_selq_prepare_params()
84 lockdep_is_held(selq->state_lock)); in mlx5e_selq_prepare_params()
96 rcu_dereference_protected(selq->active, lockdep_is_held(selq->state_lock)); in mlx5e_selq_is_htb_enabled()
105 lockdep_assert_held(selq->state_lock); in mlx5e_selq_prepare_htb()
111 lockdep_is_held(selq->state_lock)); in mlx5e_selq_prepare_htb()
127 lockdep_is_held(selq->state_lock)); in mlx5e_selq_apply()
[all …]
/linux-6.12.1/arch/loongarch/kernel/
Dtime.c26 static DEFINE_RAW_SPINLOCK(state_lock);
50 raw_spin_lock(&state_lock); in constant_set_state_oneshot()
57 raw_spin_unlock(&state_lock); in constant_set_state_oneshot()
67 raw_spin_lock(&state_lock); in constant_set_state_periodic()
74 raw_spin_unlock(&state_lock); in constant_set_state_periodic()
83 raw_spin_lock(&state_lock); in constant_set_state_shutdown()
89 raw_spin_unlock(&state_lock); in constant_set_state_shutdown()
/linux-6.12.1/drivers/bus/mhi/ep/
Dsm.c66 mutex_lock(&mhi_cntrl->state_lock); in mhi_ep_set_m0_state()
95 mutex_unlock(&mhi_cntrl->state_lock); in mhi_ep_set_m0_state()
105 mutex_lock(&mhi_cntrl->state_lock); in mhi_ep_set_m3_state()
123 mutex_unlock(&mhi_cntrl->state_lock); in mhi_ep_set_m3_state()
134 mutex_lock(&mhi_cntrl->state_lock); in mhi_ep_set_ready_state()
151 mutex_unlock(&mhi_cntrl->state_lock); in mhi_ep_set_ready_state()
/linux-6.12.1/drivers/soc/qcom/
Dpmic_glink.c38 struct mutex state_lock; member
103 mutex_lock(&pg->state_lock); in pmic_glink_client_register()
110 mutex_unlock(&pg->state_lock); in pmic_glink_client_register()
122 mutex_lock(&pg->state_lock); in pmic_glink_send()
141 mutex_unlock(&pg->state_lock); in pmic_glink_send()
230 mutex_lock(&pg->state_lock); in pmic_glink_pdr_callback()
234 mutex_unlock(&pg->state_lock); in pmic_glink_pdr_callback()
250 mutex_lock(&pg->state_lock); in pmic_glink_rpmsg_probe()
253 mutex_unlock(&pg->state_lock); in pmic_glink_rpmsg_probe()
269 mutex_lock(&pg->state_lock); in pmic_glink_rpmsg_remove()
[all …]
/linux-6.12.1/net/mac80211/
Dmesh_hwmp.c452 spin_lock_bh(&mpath->state_lock); in hwmp_route_info_get()
493 spin_lock_bh(&mpath->state_lock); in hwmp_route_info_get()
509 spin_unlock_bh(&mpath->state_lock); in hwmp_route_info_get()
520 spin_unlock_bh(&mpath->state_lock); in hwmp_route_info_get()
532 spin_lock_bh(&mpath->state_lock); in hwmp_route_info_get()
545 spin_lock_bh(&mpath->state_lock); in hwmp_route_info_get()
559 spin_unlock_bh(&mpath->state_lock); in hwmp_route_info_get()
567 spin_unlock_bh(&mpath->state_lock); in hwmp_route_info_get()
707 lockdep_is_held(&mpath->state_lock)); in next_hop_deref_protected()
742 spin_lock_bh(&mpath->state_lock); in hwmp_prep_frame_process()
[all …]
Dmesh_pathtbl.c251 spin_lock_bh(&mpath->state_lock); in mpath_lookup()
253 spin_unlock_bh(&mpath->state_lock); in mpath_lookup()
294 spin_lock_bh(&mpath->state_lock); in __mesh_path_lookup_by_idx()
296 spin_unlock_bh(&mpath->state_lock); in __mesh_path_lookup_by_idx()
345 spin_lock_bh(&mpath->state_lock); in mesh_path_add_gate()
348 spin_unlock_bh(&mpath->state_lock); in mesh_path_add_gate()
358 spin_unlock_bh(&mpath->state_lock); in mesh_path_add_gate()
376 lockdep_assert_held(&mpath->state_lock); in mesh_gate_del()
419 spin_lock_init(&new_mpath->state_lock); in mesh_path_new()
782 spin_lock_bh(&mpath->state_lock); in mesh_plink_broken()
[all …]
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/fpga/
Dcore.c66 spin_lock_init(&fdev->state_lock); in mlx5_fpga_device_alloc()
247 spin_lock_irqsave(&fdev->state_lock, flags); in mlx5_fpga_device_start()
249 spin_unlock_irqrestore(&fdev->state_lock, flags); in mlx5_fpga_device_start()
287 spin_lock_irqsave(&fdev->state_lock, flags); in mlx5_fpga_device_stop()
289 spin_unlock_irqrestore(&fdev->state_lock, flags); in mlx5_fpga_device_stop()
293 spin_unlock_irqrestore(&fdev->state_lock, flags); in mlx5_fpga_device_stop()
355 spin_lock_irqsave(&fdev->state_lock, flags); in mlx5_fpga_event()
365 spin_unlock_irqrestore(&fdev->state_lock, flags); in mlx5_fpga_event()
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/esw/
Dqos.c203 lockdep_assert_held(&esw->state_lock); in esw_qos_set_vport_min_rate()
228 lockdep_assert_held(&esw->state_lock); in esw_qos_set_vport_max_rate()
627 lockdep_assert_held(&esw->state_lock); in esw_qos_get()
641 lockdep_assert_held(&esw->state_lock); in esw_qos_put()
651 lockdep_assert_held(&esw->state_lock); in esw_qos_vport_enable()
680 lockdep_assert_held(&esw->state_lock); in mlx5_esw_qos_vport_disable()
704 lockdep_assert_held(&esw->state_lock); in mlx5_esw_qos_set_vport_rate()
803 mutex_lock(&esw->state_lock); in mlx5_esw_qos_modify_vport_rate()
817 mutex_unlock(&esw->state_lock); in mlx5_esw_qos_modify_vport_rate()
872 mutex_lock(&esw->state_lock); in mlx5_esw_devlink_rate_leaf_tx_share_set()
[all …]
Dlegacy.c321 mutex_lock(&esw->state_lock); in mlx5_eswitch_set_vepa()
330 mutex_unlock(&esw->state_lock); in mlx5_eswitch_set_vepa()
394 mutex_lock(&esw->state_lock); in mlx5_esw_query_vport_drop_stats()
422 mutex_unlock(&esw->state_lock); in mlx5_esw_query_vport_drop_stats()
438 mutex_lock(&esw->state_lock); in mlx5_eswitch_set_vport_vlan()
450 mutex_unlock(&esw->state_lock); in mlx5_eswitch_set_vport_vlan()
466 mutex_lock(&esw->state_lock); in mlx5_eswitch_set_vport_spoofchk()
483 mutex_unlock(&esw->state_lock); in mlx5_eswitch_set_vport_spoofchk()
498 mutex_lock(&esw->state_lock); in mlx5_eswitch_set_vport_trust()
508 mutex_unlock(&esw->state_lock); in mlx5_eswitch_set_vport_trust()
[all …]
/linux-6.12.1/include/linux/iio/imu/
Dadis.h131 struct mutex state_lock; member
154 guard(mutex)(&adis->state_lock); in adis_reset()
247 guard(mutex)(&adis->state_lock); in adis_write_reg()
261 guard(mutex)(&adis->state_lock); in adis_read_reg()
354 guard(mutex)(&adis->state_lock); in adis_update_bits_base()
396 guard(mutex)(&adis->state_lock); in adis_enable_irq()
402 guard(mutex)(&adis->state_lock); in adis_check_status()
406 #define adis_dev_auto_lock(adis) guard(mutex)(&(adis)->state_lock)
408 scoped_guard(mutex, &(adis)->state_lock)
/linux-6.12.1/drivers/remoteproc/
Dqcom_sysmon.c25 struct mutex state_lock; member
479 mutex_lock(&sysmon->state_lock); in sysmon_prepare()
482 mutex_unlock(&sysmon->state_lock); in sysmon_prepare()
507 mutex_lock(&sysmon->state_lock); in sysmon_start()
510 mutex_unlock(&sysmon->state_lock); in sysmon_start()
514 mutex_lock(&target->state_lock); in sysmon_start()
516 mutex_unlock(&target->state_lock); in sysmon_start()
527 mutex_unlock(&target->state_lock); in sysmon_start()
544 mutex_lock(&sysmon->state_lock); in sysmon_stop()
547 mutex_unlock(&sysmon->state_lock); in sysmon_stop()
[all …]
/linux-6.12.1/fs/bcachefs/
Dsuper.c393 down_write(&c->state_lock); in bch2_fs_read_only_work()
395 up_write(&c->state_lock); in bch2_fs_read_only_work()
526 lockdep_assert_held(&c->state_lock); in bch2_fs_read_write_early()
620 down_write(&c->state_lock); in __bch2_fs_stop()
622 up_write(&c->state_lock); in __bch2_fs_stop()
714 down_write(&c->state_lock); in bch2_fs_online()
728 up_write(&c->state_lock); in bch2_fs_online()
761 init_rwsem(&c->state_lock); in bch2_fs_alloc()
1007 down_write(&c->state_lock); in bch2_fs_start()
1070 up_write(&c->state_lock); in bch2_fs_start()
[all …]
/linux-6.12.1/fs/dlm/
Dmidcomms.c183 spinlock_t state_lock; member
359 spin_lock_init(&node->state_lock); in dlm_midcomms_addr()
480 spin_lock_bh(&node->state_lock); in dlm_pas_fin_ack_rcv()
494 spin_unlock_bh(&node->state_lock); in dlm_pas_fin_ack_rcv()
500 spin_unlock_bh(&node->state_lock); in dlm_pas_fin_ack_rcv()
537 spin_lock_bh(&node->state_lock); in dlm_midcomms_receive_buffer()
578 spin_unlock_bh(&node->state_lock); in dlm_midcomms_receive_buffer()
584 spin_unlock_bh(&node->state_lock); in dlm_midcomms_receive_buffer()
676 spin_lock(&node->state_lock); in dlm_midcomms_receive_buffer_3_2()
686 spin_unlock(&node->state_lock); in dlm_midcomms_receive_buffer_3_2()
[all …]
/linux-6.12.1/drivers/target/iscsi/
Discsi_target_erl0.c824 spin_lock_bh(&conn->state_lock); in iscsit_connection_reinstatement_rcfr()
826 spin_unlock_bh(&conn->state_lock); in iscsit_connection_reinstatement_rcfr()
831 spin_unlock_bh(&conn->state_lock); in iscsit_connection_reinstatement_rcfr()
834 spin_unlock_bh(&conn->state_lock); in iscsit_connection_reinstatement_rcfr()
848 spin_lock_bh(&conn->state_lock); in iscsit_cause_connection_reinstatement()
850 spin_unlock_bh(&conn->state_lock); in iscsit_cause_connection_reinstatement()
855 spin_unlock_bh(&conn->state_lock); in iscsit_cause_connection_reinstatement()
860 spin_unlock_bh(&conn->state_lock); in iscsit_cause_connection_reinstatement()
871 spin_unlock_bh(&conn->state_lock); in iscsit_cause_connection_reinstatement()
876 spin_unlock_bh(&conn->state_lock); in iscsit_cause_connection_reinstatement()
[all …]
/linux-6.12.1/drivers/net/wan/
Dhdlc.c119 spin_lock_irqsave(&hdlc->state_lock, flags); in hdlc_device_event()
138 spin_unlock_irqrestore(&hdlc->state_lock, flags); in hdlc_device_event()
161 spin_lock_irq(&hdlc->state_lock); in hdlc_open()
172 spin_unlock_irq(&hdlc->state_lock); in hdlc_open()
186 spin_lock_irq(&hdlc->state_lock); in hdlc_close()
192 spin_unlock_irq(&hdlc->state_lock); in hdlc_close()
248 spin_lock_init(&hdlc->state_lock); in hdlc_setup()
/linux-6.12.1/drivers/iio/adc/
Dad7291.c84 struct mutex state_lock; member
279 mutex_lock(&chip->state_lock); in ad7291_write_event_config()
314 mutex_unlock(&chip->state_lock); in ad7291_write_event_config()
332 mutex_lock(&chip->state_lock); in ad7291_read_raw()
335 mutex_unlock(&chip->state_lock); in ad7291_read_raw()
343 mutex_unlock(&chip->state_lock); in ad7291_read_raw()
350 mutex_unlock(&chip->state_lock); in ad7291_read_raw()
354 mutex_unlock(&chip->state_lock); in ad7291_read_raw()
480 mutex_init(&chip->state_lock); in ad7291_probe()
Dti-tsc2046.c151 spinlock_t state_lock; member
532 spin_lock_irqsave(&priv->state_lock, flags); in tsc2046_adc_timer()
570 spin_unlock_irqrestore(&priv->state_lock, flags); in tsc2046_adc_timer()
583 spin_lock_irqsave(&priv->state_lock, flags); in tsc2046_adc_irq()
592 spin_unlock_irqrestore(&priv->state_lock, flags); in tsc2046_adc_irq()
620 spin_lock_irqsave(&priv->state_lock, flags); in tsc2046_adc_set_trigger_state()
625 spin_unlock_irqrestore(&priv->state_lock, flags); in tsc2046_adc_set_trigger_state()
627 spin_lock_irqsave(&priv->state_lock, flags); in tsc2046_adc_set_trigger_state()
634 spin_unlock_irqrestore(&priv->state_lock, flags); in tsc2046_adc_set_trigger_state()
813 spin_lock_init(&priv->state_lock); in tsc2046_adc_probe()
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/ipoib/
Dipoib_vlan.c205 mutex_lock(&epriv->state_lock); in mlx5i_pkey_open()
236 mutex_unlock(&epriv->state_lock); in mlx5i_pkey_open()
250 mutex_unlock(&epriv->state_lock); in mlx5i_pkey_open()
260 mutex_lock(&priv->state_lock); in mlx5i_pkey_close()
274 mutex_unlock(&priv->state_lock); in mlx5i_pkey_close()
282 mutex_lock(&priv->state_lock); in mlx5i_pkey_change_mtu()
284 mutex_unlock(&priv->state_lock); in mlx5i_pkey_change_mtu()
/linux-6.12.1/drivers/infiniband/sw/rxe/
Drxe_qp.c173 spin_lock_init(&qp->state_lock); in rxe_qp_init_misc()
384 spin_lock_irqsave(&qp->state_lock, flags); in rxe_qp_from_init()
387 spin_unlock_irqrestore(&qp->state_lock, flags); in rxe_qp_from_init()
557 spin_lock_irqsave(&qp->state_lock, flags); in rxe_qp_error()
563 spin_unlock_irqrestore(&qp->state_lock, flags); in rxe_qp_error()
571 spin_lock_irqsave(&qp->state_lock, flags); in rxe_qp_sqd()
574 spin_unlock_irqrestore(&qp->state_lock, flags); in rxe_qp_sqd()
622 spin_lock_irqsave(&qp->state_lock, flags); in rxe_qp_from_attr()
629 spin_unlock_irqrestore(&qp->state_lock, flags); in rxe_qp_from_attr()
777 spin_lock_irqsave(&qp->state_lock, flags); in rxe_qp_to_attr()
[all …]
Drxe_req.c106 spin_lock_irqsave(&qp->state_lock, flags); in rnr_nak_timer()
113 spin_unlock_irqrestore(&qp->state_lock, flags); in rnr_nak_timer()
124 spin_lock_irqsave(&qp->state_lock, flags); in req_check_sq_drain_done()
145 spin_unlock_irqrestore(&qp->state_lock, flags); in req_check_sq_drain_done()
159 spin_unlock_irqrestore(&qp->state_lock, flags); in req_check_sq_drain_done()
186 spin_lock_irqsave(&qp->state_lock, flags); in req_next_wqe()
189 spin_unlock_irqrestore(&qp->state_lock, flags); in req_next_wqe()
192 spin_unlock_irqrestore(&qp->state_lock, flags); in req_next_wqe()
657 spin_lock_irqsave(&qp->state_lock, flags); in rxe_requester()
659 spin_unlock_irqrestore(&qp->state_lock, flags); in rxe_requester()
[all …]
Drxe_comp.c122 spin_lock_irqsave(&qp->state_lock, flags); in retransmit_timer()
127 spin_unlock_irqrestore(&qp->state_lock, flags); in retransmit_timer()
478 spin_lock_irqsave(&qp->state_lock, flags); in comp_check_sq_drain_done()
482 spin_unlock_irqrestore(&qp->state_lock, flags); in comp_check_sq_drain_done()
496 spin_unlock_irqrestore(&qp->state_lock, flags); in comp_check_sq_drain_done()
629 spin_lock_irqsave(&qp->state_lock, flags); in reset_retry_timer()
634 spin_unlock_irqrestore(&qp->state_lock, flags); in reset_retry_timer()
650 spin_lock_irqsave(&qp->state_lock, flags); in rxe_completer()
657 spin_unlock_irqrestore(&qp->state_lock, flags); in rxe_completer()
660 spin_unlock_irqrestore(&qp->state_lock, flags); in rxe_completer()

1234567