Home
last modified time | relevance | path

Searched refs:ulp_id (Results 1 – 2 of 2) sorted by relevance

/linux-6.1.9/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_ulp.c28 static int bnxt_register_dev(struct bnxt_en_dev *edev, unsigned int ulp_id, in bnxt_register_dev() argument
36 if (ulp_id >= BNXT_MAX_ULP) in bnxt_register_dev()
39 ulp = &edev->ulp_tbl[ulp_id]; in bnxt_register_dev()
41 netdev_err(bp->dev, "ulp id %d already registered\n", ulp_id); in bnxt_register_dev()
44 if (ulp_id == BNXT_ROCE_ULP) { in bnxt_register_dev()
57 if (ulp_id == BNXT_ROCE_ULP) { in bnxt_register_dev()
65 static int bnxt_unregister_dev(struct bnxt_en_dev *edev, unsigned int ulp_id) in bnxt_unregister_dev() argument
73 if (ulp_id >= BNXT_MAX_ULP) in bnxt_unregister_dev()
76 ulp = &edev->ulp_tbl[ulp_id]; in bnxt_unregister_dev()
78 netdev_err(bp->dev, "ulp id %d not registered\n", ulp_id); in bnxt_unregister_dev()
[all …]
Dbnxt_ulp.h92 static inline bool bnxt_ulp_registered(struct bnxt_en_dev *edev, int ulp_id) in bnxt_ulp_registered() argument
94 if (edev && rcu_access_pointer(edev->ulp_tbl[ulp_id].ulp_ops)) in bnxt_ulp_registered()