Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/infiniband/hw/irdma/
Dmain.h310 spinlock_t rsrc_lock; /* protect HW resource array access */ member
428 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()
Dhw.c1964 spin_lock_init(&rf->rsrc_lock); in irdma_set_hw_rsrc()
/Linux-v6.6/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.c286 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 …]
Drvu_cgx.c956 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()
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()
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 …]
Drvu_cn10k.c70 mutex_lock(&rvu->rsrc_lock); in rvu_get_lmtaddr()
95 mutex_unlock(&rvu->rsrc_lock); in rvu_get_lmtaddr()
Drvu.h327 struct mutex rsrc_lock; /* Serialize resource alloc/free */ member
483 struct mutex rsrc_lock; /* Serialize resource alloc/free */ member
Drvu_cpt.c1182 mutex_lock(&rvu->rsrc_lock); in rvu_cpt_ctx_flush()
1209 mutex_unlock(&rvu->rsrc_lock); in rvu_cpt_ctx_flush()