Lines Matching refs:rproc

93 static void qcom_minidump_cleanup(struct rproc *rproc)  in qcom_minidump_cleanup()  argument
97 list_for_each_entry_safe(entry, tmp, &rproc->dump_segments, node) { in qcom_minidump_cleanup()
104 static int qcom_add_minidump_segments(struct rproc *rproc, struct minidump_subsystem *subsystem) in qcom_add_minidump_segments() argument
113 if (WARN_ON(!list_empty(&rproc->dump_segments))) { in qcom_add_minidump_segments()
114 dev_err(&rproc->dev, "dump segment list already populated\n"); in qcom_add_minidump_segments()
134 rproc_coredump_add_custom_segment(rproc, da, size, NULL, name); in qcom_add_minidump_segments()
142 void qcom_minidump(struct rproc *rproc, unsigned int minidump_id) in qcom_minidump() argument
153 dev_err(&rproc->dev, "Minidump TOC not found in SMEM\n"); in qcom_minidump()
168 dev_err(&rproc->dev, "Minidump not ready, skipping\n"); in qcom_minidump()
172 ret = qcom_add_minidump_segments(rproc, subsystem); in qcom_minidump()
174 dev_err(&rproc->dev, "Failed with error: %d while adding minidump entries\n", ret); in qcom_minidump()
177 rproc_coredump_using_sections(rproc); in qcom_minidump()
179 qcom_minidump_cleanup(rproc); in qcom_minidump()
213 void qcom_add_glink_subdev(struct rproc *rproc, struct qcom_rproc_glink *glink, in qcom_add_glink_subdev() argument
216 struct device *dev = &rproc->dev; in qcom_add_glink_subdev()
231 rproc_add_subdev(rproc, &glink->subdev); in qcom_add_glink_subdev()
240 void qcom_remove_glink_subdev(struct rproc *rproc, struct qcom_rproc_glink *glink) in qcom_remove_glink_subdev() argument
245 rproc_remove_subdev(rproc, &glink->subdev); in qcom_remove_glink_subdev()
260 int qcom_register_dump_segments(struct rproc *rproc, in qcom_register_dump_segments() argument
284 ret = rproc_coredump_add_segment(rproc, phdr->p_paddr, in qcom_register_dump_segments()
316 void qcom_add_smd_subdev(struct rproc *rproc, struct qcom_rproc_subdev *smd) in qcom_add_smd_subdev() argument
318 struct device *dev = &rproc->dev; in qcom_add_smd_subdev()
328 rproc_add_subdev(rproc, &smd->subdev); in qcom_add_smd_subdev()
337 void qcom_remove_smd_subdev(struct rproc *rproc, struct qcom_rproc_subdev *smd) in qcom_remove_smd_subdev() argument
342 rproc_remove_subdev(rproc, &smd->subdev); in qcom_remove_smd_subdev()
475 void qcom_add_ssr_subdev(struct rproc *rproc, struct qcom_rproc_ssr *ssr, in qcom_add_ssr_subdev() argument
482 dev_err(&rproc->dev, "Failed to add ssr subdevice\n"); in qcom_add_ssr_subdev()
492 rproc_add_subdev(rproc, &ssr->subdev); in qcom_add_ssr_subdev()
501 void qcom_remove_ssr_subdev(struct rproc *rproc, struct qcom_rproc_ssr *ssr) in qcom_remove_ssr_subdev() argument
503 rproc_remove_subdev(rproc, &ssr->subdev); in qcom_remove_ssr_subdev()