Lines Matching defs:smd
310 struct qcom_rproc_subdev *smd = to_smd_subdev(subdev);
312 smd->edge = qcom_smd_register_edge(smd->dev, smd->node);
314 return PTR_ERR_OR_ZERO(smd->edge);
319 struct qcom_rproc_subdev *smd = to_smd_subdev(subdev);
321 qcom_smd_unregister_edge(smd->edge);
322 smd->edge = NULL;
328 * @smd: reference to a Qualcomm subdev context
330 void qcom_add_smd_subdev(struct rproc *rproc, struct qcom_rproc_subdev *smd)
334 smd->node = of_get_child_by_name(dev->parent->of_node, "smd-edge");
335 if (!smd->node)
338 smd->dev = dev;
339 smd->subdev.start = smd_subdev_start;
340 smd->subdev.stop = smd_subdev_stop;
342 rproc_add_subdev(rproc, &smd->subdev);
347 * qcom_remove_smd_subdev() - remove the smd subdevice from rproc
349 * @smd: the SMD subdevice to remove
351 void qcom_remove_smd_subdev(struct rproc *rproc, struct qcom_rproc_subdev *smd)
353 if (!smd->node)
356 rproc_remove_subdev(rproc, &smd->subdev);
357 of_node_put(smd->node);