Home
last modified time | relevance | path

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

/freebsd/sys/dev/bnxt/bnxt_en/
H A Dbnxt_ulp.c54 static int bnxt_register_dev(struct bnxt_en_dev *edev, int ulp_id, in bnxt_register_dev() argument
61 if (ulp_id >= BNXT_MAX_ULP) in bnxt_register_dev()
65 ulp = &edev->ulp_tbl[ulp_id]; in bnxt_register_dev()
67 device_printf(bp->dev, "ulp id %d already registered\n", ulp_id); in bnxt_register_dev()
77 if (ulp_id == BNXT_ROCE_ULP) { in bnxt_register_dev()
87 static int bnxt_unregister_dev(struct bnxt_en_dev *edev, int ulp_id) in bnxt_unregister_dev() argument
93 if (ulp_id >= BNXT_MAX_ULP) in bnxt_unregister_dev()
96 ulp = &edev->ulp_tbl[ulp_id]; in bnxt_unregister_dev()
98 device_printf(bp->dev, "ulp id %d not registered\n", ulp_id); in bnxt_unregister_dev()
101 if (ulp_id == BNXT_ROCE_ULP && ulp->msix_requested) in bnxt_unregister_dev()
[all …]
H A Dbnxt_ulp.h140 static inline bool bnxt_ulp_registered(struct bnxt_en_dev *edev, int ulp_id) in bnxt_ulp_registered() argument
142 if (edev && rcu_access_pointer(edev->ulp_tbl[ulp_id].ulp_ops)) in bnxt_ulp_registered()