Lines Matching refs:dl

35 bnxt_dl_flash_update(struct devlink *dl,  in bnxt_dl_flash_update()  argument
39 struct bnxt *bp = bnxt_get_bp_from_dl(dl); in bnxt_dl_flash_update()
48 devlink_flash_update_status_notify(dl, "Preparing to flash", NULL, 0, 0); in bnxt_dl_flash_update()
51 devlink_flash_update_status_notify(dl, "Flashing done", NULL, 0, 0); in bnxt_dl_flash_update()
53 devlink_flash_update_status_notify(dl, "Flashing failed", NULL, 0, 0); in bnxt_dl_flash_update()
251 reporter = devlink_health_reporter_create(bp->dl, ops, 0, bp); in __bnxt_dl_reporter_create()
322 struct bnxt_dl *dl = devlink_priv(bp->dl); in bnxt_dl_health_fw_recovery_done() local
325 bnxt_hwrm_remote_dev_reset_set(bp, dl->remote_reset); in bnxt_dl_health_fw_recovery_done()
328 static int bnxt_dl_info_get(struct devlink *dl, struct devlink_info_req *req,
459 static int bnxt_dl_reload_down(struct devlink *dl, bool netns_change, in bnxt_dl_reload_down() argument
464 struct bnxt *bp = bnxt_get_bp_from_dl(dl); in bnxt_dl_reload_down()
543 static int bnxt_dl_reload_up(struct devlink *dl, enum devlink_reload_action action, in bnxt_dl_reload_up() argument
547 struct bnxt *bp = bnxt_get_bp_from_dl(dl); in bnxt_dl_reload_up()
652 static bool bnxt_dl_selftest_check(struct devlink *dl, unsigned int id, in bnxt_dl_selftest_check() argument
658 static enum devlink_selftest_status bnxt_dl_selftest_run(struct devlink *dl, in bnxt_dl_selftest_run() argument
662 struct bnxt *bp = bnxt_get_bp_from_dl(dl); in bnxt_dl_selftest_run()
882 static int bnxt_dl_info_get(struct devlink *dl, struct devlink_info_req *req, in bnxt_dl_info_get() argument
886 struct bnxt *bp = bnxt_get_bp_from_dl(dl); in bnxt_dl_info_get()
1122 static int bnxt_dl_nvm_param_get(struct devlink *dl, u32 id, in bnxt_dl_nvm_param_get() argument
1125 struct bnxt *bp = bnxt_get_bp_from_dl(dl); in bnxt_dl_nvm_param_get()
1140 static int bnxt_dl_nvm_param_set(struct devlink *dl, u32 id, in bnxt_dl_nvm_param_set() argument
1143 struct bnxt *bp = bnxt_get_bp_from_dl(dl); in bnxt_dl_nvm_param_set()
1157 static int bnxt_dl_msix_validate(struct devlink *dl, u32 id, in bnxt_dl_msix_validate() argument
1177 static int bnxt_remote_dev_reset_get(struct devlink *dl, u32 id, in bnxt_remote_dev_reset_get() argument
1180 struct bnxt *bp = bnxt_get_bp_from_dl(dl); in bnxt_remote_dev_reset_get()
1185 ctx->val.vbool = bnxt_dl_get_remote_reset(dl); in bnxt_remote_dev_reset_get()
1189 static int bnxt_remote_dev_reset_set(struct devlink *dl, u32 id, in bnxt_remote_dev_reset_set() argument
1192 struct bnxt *bp = bnxt_get_bp_from_dl(dl); in bnxt_remote_dev_reset_set()
1199 bnxt_dl_set_remote_reset(dl, ctx->val.vbool); in bnxt_remote_dev_reset_set()
1243 rc = devlink_params_register(bp->dl, bnxt_dl_params, num_params); in bnxt_dl_params_register()
1260 devlink_params_unregister(bp->dl, bnxt_dl_params, num_params); in bnxt_dl_params_unregister()
1268 struct devlink *dl; in bnxt_dl_register() local
1276 dl = devlink_alloc(devlink_ops, sizeof(struct bnxt_dl), &bp->pdev->dev); in bnxt_dl_register()
1277 if (!dl) { in bnxt_dl_register()
1282 bp->dl = dl; in bnxt_dl_register()
1283 bp_dl = devlink_priv(dl); in bnxt_dl_register()
1285 bnxt_dl_set_remote_reset(dl, true); in bnxt_dl_register()
1300 rc = devlink_port_register(dl, &bp->dl_port, bp->pf.port_id); in bnxt_dl_register()
1310 devlink_set_features(dl, DEVLINK_F_RELOAD); in bnxt_dl_register()
1312 devlink_register(dl); in bnxt_dl_register()
1318 devlink_free(dl); in bnxt_dl_register()
1324 struct devlink *dl = bp->dl; in bnxt_dl_unregister() local
1326 devlink_unregister(dl); in bnxt_dl_unregister()
1331 devlink_free(dl); in bnxt_dl_unregister()