/linux/drivers/thermal/intel/int340x_thermal/ |
H A D | processor_thermal_mbox.c | 19 static DEFINE_MUTEX(mbox_lock); 91 mutex_lock(&mbox_lock); in processor_thermal_send_mbox_read_cmd() 93 mutex_unlock(&mbox_lock); in processor_thermal_send_mbox_read_cmd() 103 mutex_lock(&mbox_lock); in processor_thermal_send_mbox_write_cmd() 105 mutex_unlock(&mbox_lock); in processor_thermal_send_mbox_write_cmd() 125 mutex_lock(&mbox_lock); in processor_thermal_mbox_interrupt_config() 152 mutex_unlock(&mbox_lock); in processor_thermal_mbox_interrupt_config()
|
/linux/drivers/net/ethernet/marvell/octeontx2/af/ |
H A D | mbox.c | 40 spin_lock(&mdev->mbox_lock); in otx2_mbox_reset() 42 spin_unlock(&mdev->mbox_lock); in otx2_mbox_reset() 146 spin_lock_init(&mdev->mbox_lock); in otx2_mbox_init() 178 spin_lock_init(&mdev->mbox_lock); in otx2_mbox_regions_init() 235 spin_lock(&mdev->mbox_lock); in otx2_mbox_msg_send_data() 256 spin_unlock(&mdev->mbox_lock); in otx2_mbox_msg_send_data() 310 spin_lock(&mdev->mbox_lock); in otx2_mbox_alloc_msg_rsp() 333 spin_unlock(&mdev->mbox_lock); in otx2_mbox_alloc_msg_rsp() 347 spin_lock(&mdev->mbox_lock); in otx2_mbox_get_rsp() 359 spin_unlock(&mdev->mbox_lock); in otx2_mbox_get_rsp() [all …]
|
H A D | mcs_rvu_if.c | 128 mutex_lock(&rvu->mbox_lock); in mcs_notify_pfvf() 132 mutex_unlock(&rvu->mbox_lock); in mcs_notify_pfvf() 146 mutex_unlock(&rvu->mbox_lock); in mcs_notify_pfvf()
|
H A D | rvu_cgx.c | 260 mutex_lock(&rvu->mbox_lock); in cgx_notify_pfs() 265 mutex_unlock(&rvu->mbox_lock); in cgx_notify_pfs() 275 mutex_unlock(&rvu->mbox_lock); in cgx_notify_pfs()
|
H A D | rvu.h | 596 struct mutex mbox_lock; /* Serialize mbox up and down msgs */ member
|
H A D | rvu.c | 2267 mutex_lock(&rvu->mbox_lock); in rvu_afpf_mbox_handler() 2269 mutex_unlock(&rvu->mbox_lock); in rvu_afpf_mbox_handler() 2451 mutex_init(&rvu->mbox_lock); in rvu_mbox_init()
|
H A D | mbox.h | 56 spinlock_t mbox_lock; member
|
/linux/drivers/scsi/be2iscsi/ |
H A D | be_mgmt.c | 55 if (mutex_lock_interruptible(&ctrl->mbox_lock)) in mgmt_vendor_specific_fw_cmd() 75 mutex_unlock(&ctrl->mbox_lock); in mgmt_vendor_specific_fw_cmd() 81 mutex_unlock(&ctrl->mbox_lock); in mgmt_vendor_specific_fw_cmd() 94 mutex_unlock(&ctrl->mbox_lock); in mgmt_vendor_specific_fw_cmd() 147 if (mutex_lock_interruptible(&ctrl->mbox_lock)) in mgmt_open_connection() 151 mutex_unlock(&ctrl->mbox_lock); in mgmt_open_connection() 209 mutex_unlock(&ctrl->mbox_lock); in mgmt_open_connection() 234 mutex_lock(&ctrl->mbox_lock); in beiscsi_exec_nemb_cmd() 237 mutex_unlock(&ctrl->mbox_lock); in beiscsi_exec_nemb_cmd() 260 mutex_unlock(&ctrl->mbox_lock); in beiscsi_exec_nemb_cmd() [all …]
|
H A D | be_cmds.c | 744 mutex_lock(&ctrl->mbox_lock); in beiscsi_cmd_eq_create() 771 mutex_unlock(&ctrl->mbox_lock); in beiscsi_cmd_eq_create() 787 mutex_lock(&ctrl->mbox_lock); in beiscsi_cmd_cq_create() 837 mutex_unlock(&ctrl->mbox_lock); in beiscsi_cmd_cq_create() 861 mutex_lock(&phba->ctrl.mbox_lock); in beiscsi_cmd_mccq_create() 895 mutex_unlock(&phba->ctrl.mbox_lock); in beiscsi_cmd_mccq_create() 913 mutex_lock(&ctrl->mbox_lock); in beiscsi_cmd_q_destroy() 943 mutex_unlock(&ctrl->mbox_lock); in beiscsi_cmd_q_destroy() 952 mutex_unlock(&ctrl->mbox_lock); in beiscsi_cmd_q_destroy() 987 mutex_lock(&ctrl->mbox_lock); in be_cmd_create_default_pdu_queue() [all …]
|
H A D | be.h | 118 struct mutex mbox_lock; /* For serializing mbox cmds to BE card */ member
|
H A D | be_main.c | 566 mutex_init(&ctrl->mbox_lock); in be_ctrl_init()
|
/linux/drivers/net/ethernet/emulex/benet/ |
H A D | be_cmds.c | 872 return mutex_lock_interruptible(&adapter->mbox_lock); in be_cmd_lock() 882 return mutex_unlock(&adapter->mbox_lock); in be_cmd_unlock() 946 if (mutex_lock_interruptible(&adapter->mbox_lock)) in be_cmd_fw_init() 961 mutex_unlock(&adapter->mbox_lock); in be_cmd_fw_init() 976 if (mutex_lock_interruptible(&adapter->mbox_lock)) in be_cmd_fw_clean() 991 mutex_unlock(&adapter->mbox_lock); in be_cmd_fw_clean() 1002 if (mutex_lock_interruptible(&adapter->mbox_lock)) in be_cmd_eq_create() 1038 mutex_unlock(&adapter->mbox_lock); in be_cmd_eq_create() 1168 if (mutex_lock_interruptible(&adapter->mbox_lock)) in be_cmd_cq_create() 1222 mutex_unlock(&adapter->mbox_lock); in be_cmd_cq_create() [all …]
|
H A D | be.h | 558 struct mutex mbox_lock; /* For serializing mbox cmds to BE card */ member
|
H A D | be_main.c | 5669 mutex_init(&adapter->mbox_lock); in be_drv_init()
|
/linux/drivers/net/ethernet/chelsio/cxgb4vf/ |
H A D | t4vf_hw.c | 166 spin_lock(&adapter->mbox_lock); in t4vf_wr_mbox_core() 168 spin_unlock(&adapter->mbox_lock); in t4vf_wr_mbox_core() 180 spin_lock(&adapter->mbox_lock); in t4vf_wr_mbox_core() 182 spin_unlock(&adapter->mbox_lock); in t4vf_wr_mbox_core() 214 spin_lock(&adapter->mbox_lock); in t4vf_wr_mbox_core() 216 spin_unlock(&adapter->mbox_lock); in t4vf_wr_mbox_core() 301 spin_lock(&adapter->mbox_lock); in t4vf_wr_mbox_core() 303 spin_unlock(&adapter->mbox_lock); in t4vf_wr_mbox_core() 311 spin_lock(&adapter->mbox_lock); in t4vf_wr_mbox_core() 313 spin_unlock(&adapter->mbox_lock); in t4vf_wr_mbox_core()
|
H A D | adapter.h | 398 spinlock_t mbox_lock; member
|
H A D | cxgb4vf_main.c | 2961 spin_lock_init(&adapter->mbox_lock); in cxgb4vf_pci_probe()
|
/linux/drivers/net/phy/ |
H A D | mxl-gpy.c | 106 struct mutex mbox_lock; member 240 mutex_lock(&priv->mbox_lock); in gpy_mbox_read() 269 mutex_unlock(&priv->mbox_lock); in gpy_mbox_read() 304 mutex_init(&priv->mbox_lock); in gpy_probe()
|
/linux/drivers/net/ethernet/huawei/hinic/ |
H A D | hinic_hw_mbox.h | 110 spinlock_t mbox_lock; member
|
H A D | hinic_hw_mbox.c | 393 spin_lock(&func_to_func->mbox_lock); in resp_mbox_handler() 402 spin_unlock(&func_to_func->mbox_lock); in resp_mbox_handler() 961 spin_lock(&func_to_func->mbox_lock); in set_mbox_to_func_event() 963 spin_unlock(&func_to_func->mbox_lock); in set_mbox_to_func_event() 1414 spin_lock_init(&func_to_func->mbox_lock); in hinic_func_to_func_init()
|
/linux/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | t4_hw.c | 322 spin_lock_bh(&adap->mbox_lock); in t4_wr_mbox_meat_timeout() 324 spin_unlock_bh(&adap->mbox_lock); in t4_wr_mbox_meat_timeout() 337 spin_lock_bh(&adap->mbox_lock); in t4_wr_mbox_meat_timeout() 339 spin_unlock_bh(&adap->mbox_lock); in t4_wr_mbox_meat_timeout() 370 spin_lock_bh(&adap->mbox_lock); in t4_wr_mbox_meat_timeout() 372 spin_unlock_bh(&adap->mbox_lock); in t4_wr_mbox_meat_timeout() 423 spin_lock_bh(&adap->mbox_lock); in t4_wr_mbox_meat_timeout() 425 spin_unlock_bh(&adap->mbox_lock); in t4_wr_mbox_meat_timeout() 435 spin_lock_bh(&adap->mbox_lock); in t4_wr_mbox_meat_timeout() 437 spin_unlock_bh(&adap->mbox_lock); in t4_wr_mbox_meat_timeout()
|
H A D | cxgb4.h | 1172 spinlock_t mbox_lock; member
|
H A D | cxgb4_main.c | 6672 spin_lock_init(&adapter->mbox_lock); in init_one()
|