Lines Matching refs:ulp_id

28 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()
81 if (ulp_id == BNXT_ROCE_ULP && ulp->msix_requested) in bnxt_unregister_dev()
82 edev->en_ops->bnxt_free_msix(edev, ulp_id); in bnxt_unregister_dev()
118 static int bnxt_req_msix_vecs(struct bnxt_en_dev *edev, unsigned int ulp_id, in bnxt_req_msix_vecs() argument
130 if (ulp_id != BNXT_ROCE_ULP) in bnxt_req_msix_vecs()
136 if (edev->ulp_tbl[ulp_id].msix_requested) in bnxt_req_msix_vecs()
152 edev->ulp_tbl[ulp_id].msix_base = idx; in bnxt_req_msix_vecs()
153 edev->ulp_tbl[ulp_id].msix_requested = avail_msix; in bnxt_req_msix_vecs()
166 edev->ulp_tbl[ulp_id].msix_requested = 0; in bnxt_req_msix_vecs()
175 edev->ulp_tbl[ulp_id].msix_requested = avail_msix; in bnxt_req_msix_vecs()
182 static int bnxt_free_msix_vecs(struct bnxt_en_dev *edev, unsigned int ulp_id) in bnxt_free_msix_vecs() argument
188 if (ulp_id != BNXT_ROCE_ULP) in bnxt_free_msix_vecs()
194 edev->ulp_tbl[ulp_id].msix_requested = 0; in bnxt_free_msix_vecs()
236 static int bnxt_send_msg(struct bnxt_en_dev *edev, unsigned int ulp_id, in bnxt_send_msg() argument
246 if (ulp_id != BNXT_ROCE_ULP && bp->fw_reset_state) in bnxt_send_msg()
450 static int bnxt_register_async_events(struct bnxt_en_dev *edev, unsigned int ulp_id, in bnxt_register_async_events() argument
457 if (ulp_id >= BNXT_MAX_ULP) in bnxt_register_async_events()
460 ulp = &edev->ulp_tbl[ulp_id]; in bnxt_register_async_events()