Lines Matching defs:dl
6 static int otx2_cpt_dl_egrp_create(struct devlink *dl, u32 id,
9 struct otx2_cpt_devlink *cpt_dl = devlink_priv(dl);
15 static int otx2_cpt_dl_egrp_delete(struct devlink *dl, u32 id,
18 struct otx2_cpt_devlink *cpt_dl = devlink_priv(dl);
24 static int otx2_cpt_dl_uc_info(struct devlink *dl, u32 id,
32 static int otx2_cpt_dl_t106_mode_get(struct devlink *dl, u32 id,
35 struct otx2_cpt_devlink *cpt_dl = devlink_priv(dl);
47 static int otx2_cpt_dl_t106_mode_set(struct devlink *dl, u32 id,
50 struct otx2_cpt_devlink *cpt_dl = devlink_priv(dl);
112 static int otx2_cpt_devlink_info_get(struct devlink *dl,
116 struct otx2_cpt_devlink *cpt_dl = devlink_priv(dl);
142 struct devlink *dl;
145 dl = devlink_alloc(&otx2_cpt_devlink_ops,
147 if (!dl) {
152 cpt_dl = devlink_priv(dl);
153 cpt_dl->dl = dl;
155 cptpf->dl = dl;
156 ret = devlink_params_register(dl, otx2_cpt_dl_params,
161 devlink_free(dl);
164 devlink_register(dl);
171 struct devlink *dl = cptpf->dl;
173 if (!dl)
176 devlink_unregister(dl);
177 devlink_params_unregister(dl, otx2_cpt_dl_params,
179 devlink_free(dl);