Home
last modified time | relevance | path

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

/linux-6.12.1/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.c1974 spin_lock_init(&rf->rsrc_lock); in irdma_set_hw_rsrc()
/linux-6.12.1/drivers/net/ethernet/marvell/octeontx2/af/
Dmcs_rvu_if.c646 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()
Drvu_nix.c309 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 …]
Drvu_cgx.c1009 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()
Drvu_cn10k.c70 mutex_lock(&rvu->rsrc_lock); in rvu_get_lmtaddr()
95 mutex_unlock(&rvu->rsrc_lock); in rvu_get_lmtaddr()
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()
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 …]
Drvu.h355 struct mutex rsrc_lock; /* Serialize resource alloc/free */ member
524 struct mutex rsrc_lock; /* Serialize resource alloc/free */ member
Drvu_cpt.c1260 mutex_lock(&rvu->rsrc_lock); in rvu_cpt_ctx_flush()
1287 mutex_unlock(&rvu->rsrc_lock); in rvu_cpt_ctx_flush()