Lines Matching refs:dl
100 struct qed_devlink *dl = devlink_priv(devlink); in qed_fw_reporters_create() local
102 dl->fw_reporter = devlink_health_reporter_create(devlink, &qed_fw_fatal_reporter_ops, in qed_fw_reporters_create()
103 QED_REPORTER_FW_GRACEFUL_PERIOD, dl); in qed_fw_reporters_create()
104 if (IS_ERR(dl->fw_reporter)) { in qed_fw_reporters_create()
105 DP_NOTICE(dl->cdev, "Failed to create fw reporter, err = %ld\n", in qed_fw_reporters_create()
106 PTR_ERR(dl->fw_reporter)); in qed_fw_reporters_create()
107 dl->fw_reporter = NULL; in qed_fw_reporters_create()
113 struct qed_devlink *dl = devlink_priv(devlink); in qed_fw_reporters_destroy() local
116 rep = dl->fw_reporter; in qed_fw_reporters_destroy()
122 static int qed_dl_param_get(struct devlink *dl, u32 id, in qed_dl_param_get() argument
125 struct qed_devlink *qed_dl = devlink_priv(dl); in qed_dl_param_get()
134 static int qed_dl_param_set(struct devlink *dl, u32 id, in qed_dl_param_set() argument
137 struct qed_devlink *qed_dl = devlink_priv(dl); in qed_dl_param_set()
202 struct devlink *dl; in qed_devlink_register() local
205 dl = devlink_alloc(&qed_dl_ops, sizeof(struct qed_devlink), in qed_devlink_register()
207 if (!dl) in qed_devlink_register()
210 qdevlink = devlink_priv(dl); in qed_devlink_register()
213 rc = devlink_params_register(dl, qed_devlink_params, in qed_devlink_register()
220 qed_fw_reporters_create(dl); in qed_devlink_register()
221 devlink_register(dl); in qed_devlink_register()
222 return dl; in qed_devlink_register()
225 devlink_free(dl); in qed_devlink_register()