Lines Matching refs:auxdev

49 	struct auxiliary_device *auxdev = to_auxiliary_dev(dev);  in sof_client_auxdev_release()  local
50 struct sof_client_dev *cdev = auxiliary_dev_to_sof_client_dev(auxdev); in sof_client_auxdev_release()
52 kfree(cdev->auxdev.dev.platform_data); in sof_client_auxdev_release()
67 cdev->auxdev.dev.platform_data = d; in sof_client_dev_add_data()
174 struct auxiliary_device *auxdev; in sof_client_dev_register() local
183 auxdev = &cdev->auxdev; in sof_client_dev_register()
184 auxdev->name = name; in sof_client_dev_register()
185 auxdev->dev.parent = sdev->dev; in sof_client_dev_register()
186 auxdev->dev.release = sof_client_auxdev_release; in sof_client_dev_register()
187 auxdev->id = id; in sof_client_dev_register()
193 ret = auxiliary_device_init(auxdev); in sof_client_dev_register()
199 ret = auxiliary_device_add(&cdev->auxdev); in sof_client_dev_register()
206 auxiliary_device_uninit(&cdev->auxdev); in sof_client_dev_register()
218 kfree(cdev->auxdev.dev.platform_data); in sof_client_dev_register()
238 if (!strcmp(cdev->auxdev.name, name) && cdev->auxdev.id == id) { in sof_client_dev_unregister()
240 auxiliary_device_delete(&cdev->auxdev); in sof_client_dev_unregister()
241 auxiliary_device_uninit(&cdev->auxdev); in sof_client_dev_unregister()
311 if (!cdev->auxdev.dev.driver) in sof_suspend_clients()
314 adrv = to_auxiliary_drv(cdev->auxdev.dev.driver); in sof_suspend_clients()
316 adrv->suspend(&cdev->auxdev, state); in sof_suspend_clients()
334 if (!cdev->auxdev.dev.driver) in sof_resume_clients()
337 adrv = to_auxiliary_drv(cdev->auxdev.dev.driver); in sof_resume_clients()
339 adrv->resume(&cdev->auxdev); in sof_resume_clients()