Lines Matching refs:subdev

25 #define to_glink_subdev(d) container_of(d, struct qcom_rproc_glink, subdev)
26 #define to_smd_subdev(d) container_of(d, struct qcom_rproc_subdev, subdev)
27 #define to_ssr_subdev(d) container_of(d, struct qcom_rproc_ssr, subdev)
183 static int glink_subdev_start(struct rproc_subdev *subdev) in glink_subdev_start() argument
185 struct qcom_rproc_glink *glink = to_glink_subdev(subdev); in glink_subdev_start()
192 static void glink_subdev_stop(struct rproc_subdev *subdev, bool crashed) in glink_subdev_stop() argument
194 struct qcom_rproc_glink *glink = to_glink_subdev(subdev); in glink_subdev_stop()
200 static void glink_subdev_unprepare(struct rproc_subdev *subdev) in glink_subdev_unprepare() argument
202 struct qcom_rproc_glink *glink = to_glink_subdev(subdev); in glink_subdev_unprepare()
227 glink->subdev.start = glink_subdev_start; in qcom_add_glink_subdev()
228 glink->subdev.stop = glink_subdev_stop; in qcom_add_glink_subdev()
229 glink->subdev.unprepare = glink_subdev_unprepare; in qcom_add_glink_subdev()
231 rproc_add_subdev(rproc, &glink->subdev); in qcom_add_glink_subdev()
245 rproc_remove_subdev(rproc, &glink->subdev); in qcom_remove_glink_subdev()
294 static int smd_subdev_start(struct rproc_subdev *subdev) in smd_subdev_start() argument
296 struct qcom_rproc_subdev *smd = to_smd_subdev(subdev); in smd_subdev_start()
303 static void smd_subdev_stop(struct rproc_subdev *subdev, bool crashed) in smd_subdev_stop() argument
305 struct qcom_rproc_subdev *smd = to_smd_subdev(subdev); in smd_subdev_stop()
325 smd->subdev.start = smd_subdev_start; in qcom_add_smd_subdev()
326 smd->subdev.stop = smd_subdev_stop; in qcom_add_smd_subdev()
328 rproc_add_subdev(rproc, &smd->subdev); in qcom_add_smd_subdev()
342 rproc_remove_subdev(rproc, &smd->subdev); in qcom_remove_smd_subdev()
415 static int ssr_notify_prepare(struct rproc_subdev *subdev) in ssr_notify_prepare() argument
417 struct qcom_rproc_ssr *ssr = to_ssr_subdev(subdev); in ssr_notify_prepare()
428 static int ssr_notify_start(struct rproc_subdev *subdev) in ssr_notify_start() argument
430 struct qcom_rproc_ssr *ssr = to_ssr_subdev(subdev); in ssr_notify_start()
441 static void ssr_notify_stop(struct rproc_subdev *subdev, bool crashed) in ssr_notify_stop() argument
443 struct qcom_rproc_ssr *ssr = to_ssr_subdev(subdev); in ssr_notify_stop()
453 static void ssr_notify_unprepare(struct rproc_subdev *subdev) in ssr_notify_unprepare() argument
455 struct qcom_rproc_ssr *ssr = to_ssr_subdev(subdev); in ssr_notify_unprepare()
487 ssr->subdev.prepare = ssr_notify_prepare; in qcom_add_ssr_subdev()
488 ssr->subdev.start = ssr_notify_start; in qcom_add_ssr_subdev()
489 ssr->subdev.stop = ssr_notify_stop; in qcom_add_ssr_subdev()
490 ssr->subdev.unprepare = ssr_notify_unprepare; in qcom_add_ssr_subdev()
492 rproc_add_subdev(rproc, &ssr->subdev); in qcom_add_ssr_subdev()
503 rproc_remove_subdev(rproc, &ssr->subdev); in qcom_remove_ssr_subdev()