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()
1974 spin_lock_init(&rf->rsrc_lock); in irdma_set_hw_rsrc()
646 mutex_lock(&rvu->rsrc_lock); in rvu_mbox_handler_mcs_free_resources()673 mutex_unlock(&rvu->rsrc_lock); in rvu_mbox_handler_mcs_free_resources()696 mutex_lock(&rvu->rsrc_lock); in rvu_mbox_handler_mcs_alloc_resources()755 mutex_unlock(&rvu->rsrc_lock); in rvu_mbox_handler_mcs_alloc_resources()776 mutex_lock(&rvu->rsrc_lock); in rvu_mbox_handler_mcs_alloc_ctrl_pkt_rule()806 mutex_unlock(&rvu->rsrc_lock); in rvu_mbox_handler_mcs_alloc_ctrl_pkt_rule()812 mutex_unlock(&rvu->rsrc_lock); in rvu_mbox_handler_mcs_alloc_ctrl_pkt_rule()828 mutex_lock(&rvu->rsrc_lock); in rvu_mbox_handler_mcs_free_ctrl_pkt_rule()832 mutex_unlock(&rvu->rsrc_lock); in rvu_mbox_handler_mcs_free_ctrl_pkt_rule()
309 mutex_lock(&rvu->rsrc_lock); in is_valid_txschq()311 mutex_unlock(&rvu->rsrc_lock); in is_valid_txschq()557 mutex_lock(&rvu->rsrc_lock); in rvu_nix_flr_free_bpids()567 mutex_unlock(&rvu->rsrc_lock); in rvu_nix_flr_free_bpids()601 mutex_lock(&rvu->rsrc_lock); in rvu_mbox_handler_nix_bp_disable()609 mutex_unlock(&rvu->rsrc_lock); in rvu_mbox_handler_nix_bp_disable()660 mutex_lock(&rvu->rsrc_lock); in rvu_nix_get_bpid()663 mutex_unlock(&rvu->rsrc_lock); in rvu_nix_get_bpid()669 mutex_unlock(&rvu->rsrc_lock); in rvu_nix_get_bpid()2178 mutex_lock(&rvu->rsrc_lock); in rvu_mbox_handler_nix_txsch_alloc()[all …]
1009 mutex_lock(&rvu->rsrc_lock); in rvu_cgx_cfg_pause_frm()1012 mutex_unlock(&rvu->rsrc_lock); in rvu_cgx_cfg_pause_frm()1015 mutex_unlock(&rvu->rsrc_lock); in rvu_cgx_cfg_pause_frm()1273 mutex_lock(&rvu->rsrc_lock); in rvu_cgx_prio_flow_ctrl_cfg()1276 mutex_unlock(&rvu->rsrc_lock); in rvu_cgx_prio_flow_ctrl_cfg()1279 mutex_unlock(&rvu->rsrc_lock); in rvu_cgx_prio_flow_ctrl_cfg()
70 mutex_lock(&rvu->rsrc_lock); in rvu_get_lmtaddr()95 mutex_unlock(&rvu->rsrc_lock); in rvu_get_lmtaddr()
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()1089 mutex_init(&rvu->rsrc_lock); in rvu_setup_hw_resources()1433 mutex_lock(&rvu->rsrc_lock); in rvu_detach_rsrcs()1467 mutex_unlock(&rvu->rsrc_lock); in rvu_detach_rsrcs()1724 mutex_lock(&rvu->rsrc_lock); in rvu_mbox_handler_attach_resources()1773 mutex_unlock(&rvu->rsrc_lock); in rvu_mbox_handler_attach_resources()1912 mutex_lock(&rvu->rsrc_lock); in rvu_mbox_handler_free_rsrc_cnt()[all …]
355 struct mutex rsrc_lock; /* Serialize resource alloc/free */ member524 struct mutex rsrc_lock; /* Serialize resource alloc/free */ member
1260 mutex_lock(&rvu->rsrc_lock); in rvu_cpt_ctx_flush()1287 mutex_unlock(&rvu->rsrc_lock); in rvu_cpt_ctx_flush()