Lines Matching full:pdm
533 struct qcom_rproc_pdm *pdm = to_pdm_subdev(subdev); in pdm_notify_prepare() local
541 adev->dev.parent = pdm->dev; in pdm_notify_prepare()
544 adev->id = pdm->index; in pdm_notify_prepare()
558 pdm->adev = adev; in pdm_notify_prepare()
566 struct qcom_rproc_pdm *pdm = to_pdm_subdev(subdev); in pdm_notify_unprepare() local
568 if (!pdm->adev) in pdm_notify_unprepare()
571 auxiliary_device_delete(pdm->adev); in pdm_notify_unprepare()
572 auxiliary_device_uninit(pdm->adev); in pdm_notify_unprepare()
573 pdm->adev = NULL; in pdm_notify_unprepare()
579 * @pdm: PDM subdevice handle
581 * Register @pdm so that Protection Device mapper service is started when the
584 void qcom_add_pdm_subdev(struct rproc *rproc, struct qcom_rproc_pdm *pdm) in qcom_add_pdm_subdev() argument
586 pdm->dev = &rproc->dev; in qcom_add_pdm_subdev()
587 pdm->index = rproc->index; in qcom_add_pdm_subdev()
589 pdm->subdev.prepare = pdm_notify_prepare; in qcom_add_pdm_subdev()
590 pdm->subdev.unprepare = pdm_notify_unprepare; in qcom_add_pdm_subdev()
592 rproc_add_subdev(rproc, &pdm->subdev); in qcom_add_pdm_subdev()
599 * @pdm: PDM subdevice handle
603 void qcom_remove_pdm_subdev(struct rproc *rproc, struct qcom_rproc_pdm *pdm) in qcom_remove_pdm_subdev() argument
605 rproc_remove_subdev(rproc, &pdm->subdev); in qcom_remove_pdm_subdev()