Lines Matching refs:ulp_id

27 static int bnxt_register_dev(struct bnxt_en_dev *edev, int ulp_id,  in bnxt_register_dev()  argument
35 if (ulp_id >= BNXT_MAX_ULP) in bnxt_register_dev()
38 ulp = &edev->ulp_tbl[ulp_id]; in bnxt_register_dev()
40 netdev_err(bp->dev, "ulp id %d already registered\n", ulp_id); in bnxt_register_dev()
43 if (ulp_id == BNXT_ROCE_ULP) { in bnxt_register_dev()
56 if (ulp_id == BNXT_ROCE_ULP) { in bnxt_register_dev()
64 static int bnxt_unregister_dev(struct bnxt_en_dev *edev, int ulp_id) in bnxt_unregister_dev() argument
72 if (ulp_id >= BNXT_MAX_ULP) in bnxt_unregister_dev()
75 ulp = &edev->ulp_tbl[ulp_id]; in bnxt_unregister_dev()
77 netdev_err(bp->dev, "ulp id %d not registered\n", ulp_id); in bnxt_unregister_dev()
80 if (ulp_id == BNXT_ROCE_ULP && ulp->msix_requested) in bnxt_unregister_dev()
81 edev->en_ops->bnxt_free_msix(edev, ulp_id); in bnxt_unregister_dev()
117 static int bnxt_req_msix_vecs(struct bnxt_en_dev *edev, int ulp_id, in bnxt_req_msix_vecs() argument
129 if (ulp_id != BNXT_ROCE_ULP) in bnxt_req_msix_vecs()
135 if (edev->ulp_tbl[ulp_id].msix_requested) in bnxt_req_msix_vecs()
151 edev->ulp_tbl[ulp_id].msix_base = idx; in bnxt_req_msix_vecs()
152 edev->ulp_tbl[ulp_id].msix_requested = avail_msix; in bnxt_req_msix_vecs()
165 edev->ulp_tbl[ulp_id].msix_requested = 0; in bnxt_req_msix_vecs()
174 edev->ulp_tbl[ulp_id].msix_requested = avail_msix; in bnxt_req_msix_vecs()
181 static int bnxt_free_msix_vecs(struct bnxt_en_dev *edev, int ulp_id) in bnxt_free_msix_vecs() argument
187 if (ulp_id != BNXT_ROCE_ULP) in bnxt_free_msix_vecs()
193 edev->ulp_tbl[ulp_id].msix_requested = 0; in bnxt_free_msix_vecs()
231 static int bnxt_send_msg(struct bnxt_en_dev *edev, int ulp_id, in bnxt_send_msg() argument
239 if (ulp_id != BNXT_ROCE_ULP && bp->fw_reset_state) in bnxt_send_msg()
439 static int bnxt_register_async_events(struct bnxt_en_dev *edev, int ulp_id, in bnxt_register_async_events() argument
446 if (ulp_id >= BNXT_MAX_ULP) in bnxt_register_async_events()
449 ulp = &edev->ulp_tbl[ulp_id]; in bnxt_register_async_events()