Searched refs:rsrc_lock (Results 1 – 9 of 9) sorted by relevance
310 spinlock_t rsrc_lock; /* protect HW resource array access */ member428 spin_lock_irqsave(&rf->rsrc_lock, flags); in irdma_alloc_rsrc()433 spin_unlock_irqrestore(&rf->rsrc_lock, flags); in irdma_alloc_rsrc()445 spin_unlock_irqrestore(&rf->rsrc_lock, flags); in irdma_alloc_rsrc()461 spin_lock_irqsave(&rf->rsrc_lock, flags); in irdma_free_rsrc()463 spin_unlock_irqrestore(&rf->rsrc_lock, flags); in irdma_free_rsrc()
1964 spin_lock_init(&rf->rsrc_lock); in irdma_set_hw_rsrc()
641 mutex_lock(&rvu->rsrc_lock); in rvu_mbox_handler_mcs_free_resources()668 mutex_unlock(&rvu->rsrc_lock); in rvu_mbox_handler_mcs_free_resources()691 mutex_lock(&rvu->rsrc_lock); in rvu_mbox_handler_mcs_alloc_resources()750 mutex_unlock(&rvu->rsrc_lock); in rvu_mbox_handler_mcs_alloc_resources()771 mutex_lock(&rvu->rsrc_lock); in rvu_mbox_handler_mcs_alloc_ctrl_pkt_rule()801 mutex_unlock(&rvu->rsrc_lock); in rvu_mbox_handler_mcs_alloc_ctrl_pkt_rule()807 mutex_unlock(&rvu->rsrc_lock); in rvu_mbox_handler_mcs_alloc_ctrl_pkt_rule()823 mutex_lock(&rvu->rsrc_lock); in rvu_mbox_handler_mcs_free_ctrl_pkt_rule()827 mutex_unlock(&rvu->rsrc_lock); in rvu_mbox_handler_mcs_free_ctrl_pkt_rule()
286 mutex_lock(&rvu->rsrc_lock); in is_valid_txschq()288 mutex_unlock(&rvu->rsrc_lock); in is_valid_txschq()2064 mutex_lock(&rvu->rsrc_lock); in rvu_mbox_handler_nix_txsch_alloc()2131 mutex_unlock(&rvu->rsrc_lock); in rvu_mbox_handler_nix_txsch_alloc()2328 mutex_lock(&rvu->rsrc_lock); in nix_txschq_free()2384 mutex_unlock(&rvu->rsrc_lock); in nix_txschq_free()2426 mutex_lock(&rvu->rsrc_lock); in nix_txschq_free_one()2456 mutex_unlock(&rvu->rsrc_lock); in nix_txschq_free_one()2459 mutex_unlock(&rvu->rsrc_lock); in nix_txschq_free_one()2670 mutex_lock(&rvu->rsrc_lock); in rvu_mbox_handler_nix_txschq_cfg()[all …]
956 mutex_lock(&rvu->rsrc_lock); in rvu_cgx_cfg_pause_frm()959 mutex_unlock(&rvu->rsrc_lock); in rvu_cgx_cfg_pause_frm()962 mutex_unlock(&rvu->rsrc_lock); in rvu_cgx_cfg_pause_frm()1220 mutex_lock(&rvu->rsrc_lock); in rvu_cgx_prio_flow_ctrl_cfg()1223 mutex_unlock(&rvu->rsrc_lock); in rvu_cgx_prio_flow_ctrl_cfg()1226 mutex_unlock(&rvu->rsrc_lock); in rvu_cgx_prio_flow_ctrl_cfg()
230 mutex_lock(&rvu->rsrc_lock); in rvu_get_lf()234 mutex_unlock(&rvu->rsrc_lock); in rvu_get_lf()240 mutex_unlock(&rvu->rsrc_lock); in rvu_get_lf()762 mutex_destroy(&rvu->rsrc_lock); in rvu_free_hw_resources()1084 mutex_init(&rvu->rsrc_lock); in rvu_setup_hw_resources()1428 mutex_lock(&rvu->rsrc_lock); in rvu_detach_rsrcs()1462 mutex_unlock(&rvu->rsrc_lock); in rvu_detach_rsrcs()1719 mutex_lock(&rvu->rsrc_lock); in rvu_mbox_handler_attach_resources()1768 mutex_unlock(&rvu->rsrc_lock); in rvu_mbox_handler_attach_resources()1907 mutex_lock(&rvu->rsrc_lock); in rvu_mbox_handler_free_rsrc_cnt()[all …]
70 mutex_lock(&rvu->rsrc_lock); in rvu_get_lmtaddr()95 mutex_unlock(&rvu->rsrc_lock); in rvu_get_lmtaddr()
327 struct mutex rsrc_lock; /* Serialize resource alloc/free */ member483 struct mutex rsrc_lock; /* Serialize resource alloc/free */ member
1182 mutex_lock(&rvu->rsrc_lock); in rvu_cpt_ctx_flush()1209 mutex_unlock(&rvu->rsrc_lock); in rvu_cpt_ctx_flush()