Home
last modified time | relevance | path

Searched refs:rsrc_lock (Results 1 – 9 of 9) sorted by relevance

/drivers/infiniband/hw/irdma/
Dmain.h307 spinlock_t rsrc_lock; /* protect HW resource array access */ member
423 spin_lock_irqsave(&rf->rsrc_lock, flags); in irdma_alloc_rsrc()
428 spin_unlock_irqrestore(&rf->rsrc_lock, flags); in irdma_alloc_rsrc()
440 spin_unlock_irqrestore(&rf->rsrc_lock, flags); in irdma_alloc_rsrc()
456 spin_lock_irqsave(&rf->rsrc_lock, flags); in irdma_free_rsrc()
458 spin_unlock_irqrestore(&rf->rsrc_lock, flags); in irdma_free_rsrc()
Dhw.c1959 spin_lock_init(&rf->rsrc_lock); in irdma_set_hw_rsrc()
/drivers/net/ethernet/marvell/octeontx2/af/
Dmcs_rvu_if.c641 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()
Drvu_nix.c275 mutex_lock(&rvu->rsrc_lock); in is_valid_txschq()
277 mutex_unlock(&rvu->rsrc_lock); in is_valid_txschq()
2053 mutex_lock(&rvu->rsrc_lock); in rvu_mbox_handler_nix_txsch_alloc()
2120 mutex_unlock(&rvu->rsrc_lock); in rvu_mbox_handler_nix_txsch_alloc()
2184 mutex_lock(&rvu->rsrc_lock); in nix_txschq_free()
2240 mutex_unlock(&rvu->rsrc_lock); in nix_txschq_free()
2282 mutex_lock(&rvu->rsrc_lock); in nix_txschq_free_one()
2312 mutex_unlock(&rvu->rsrc_lock); in nix_txschq_free_one()
2315 mutex_unlock(&rvu->rsrc_lock); in nix_txschq_free_one()
2525 mutex_lock(&rvu->rsrc_lock); in rvu_mbox_handler_nix_txschq_cfg()
[all …]
Drvu_cgx.c961 mutex_lock(&rvu->rsrc_lock); in rvu_cgx_cfg_pause_frm()
964 mutex_unlock(&rvu->rsrc_lock); in rvu_cgx_cfg_pause_frm()
967 mutex_unlock(&rvu->rsrc_lock); in rvu_cgx_cfg_pause_frm()
1218 mutex_lock(&rvu->rsrc_lock); in rvu_cgx_prio_flow_ctrl_cfg()
1221 mutex_unlock(&rvu->rsrc_lock); in rvu_cgx_prio_flow_ctrl_cfg()
1224 mutex_unlock(&rvu->rsrc_lock); in rvu_cgx_prio_flow_ctrl_cfg()
Drvu.c230 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()
1420 mutex_lock(&rvu->rsrc_lock); in rvu_detach_rsrcs()
1454 mutex_unlock(&rvu->rsrc_lock); in rvu_detach_rsrcs()
1711 mutex_lock(&rvu->rsrc_lock); in rvu_mbox_handler_attach_resources()
1760 mutex_unlock(&rvu->rsrc_lock); in rvu_mbox_handler_attach_resources()
1899 mutex_lock(&rvu->rsrc_lock); in rvu_mbox_handler_free_rsrc_cnt()
[all …]
Drvu_cn10k.c70 mutex_lock(&rvu->rsrc_lock); in rvu_get_lmtaddr()
95 mutex_unlock(&rvu->rsrc_lock); in rvu_get_lmtaddr()
Drvu.h307 struct mutex rsrc_lock; /* Serialize resource alloc/free */ member
457 struct mutex rsrc_lock; /* Serialize resource alloc/free */ member
Drvu_cpt.c1056 mutex_lock(&rvu->rsrc_lock); in rvu_cpt_ctx_flush()
1083 mutex_unlock(&rvu->rsrc_lock); in rvu_cpt_ctx_flush()