Lines Matching defs:smd
150 struct qcom_rproc_subdev *smd = to_smd_subdev(subdev);
152 smd->edge = qcom_smd_register_edge(smd->dev, smd->node);
154 return PTR_ERR_OR_ZERO(smd->edge);
159 struct qcom_rproc_subdev *smd = to_smd_subdev(subdev);
161 qcom_smd_unregister_edge(smd->edge);
162 smd->edge = NULL;
168 * @smd: reference to a Qualcomm subdev context
170 void qcom_add_smd_subdev(struct rproc *rproc, struct qcom_rproc_subdev *smd)
174 smd->node = of_get_child_by_name(dev->parent->of_node, "smd-edge");
175 if (!smd->node)
178 smd->dev = dev;
179 smd->subdev.start = smd_subdev_start;
180 smd->subdev.stop = smd_subdev_stop;
182 rproc_add_subdev(rproc, &smd->subdev);
187 * qcom_remove_smd_subdev() - remove the smd subdevice from rproc
189 * @smd: the SMD subdevice to remove
191 void qcom_remove_smd_subdev(struct rproc *rproc, struct qcom_rproc_subdev *smd)
193 if (!smd->node)
196 rproc_remove_subdev(rproc, &smd->subdev);
197 of_node_put(smd->node);