Lines Matching refs:auxdev

48 	struct auxiliary_device *auxdev = to_auxiliary_dev(dev);  in sof_client_auxdev_release()  local
49 struct sof_client_dev *cdev = auxiliary_dev_to_sof_client_dev(auxdev); in sof_client_auxdev_release()
51 kfree(cdev->auxdev.dev.platform_data); in sof_client_auxdev_release()
66 cdev->auxdev.dev.platform_data = d; in sof_client_dev_add_data()
173 struct auxiliary_device *auxdev; in sof_client_dev_register() local
182 auxdev = &cdev->auxdev; in sof_client_dev_register()
183 auxdev->name = name; in sof_client_dev_register()
184 auxdev->dev.parent = sdev->dev; in sof_client_dev_register()
185 auxdev->dev.release = sof_client_auxdev_release; in sof_client_dev_register()
186 auxdev->id = id; in sof_client_dev_register()
192 ret = auxiliary_device_init(auxdev); in sof_client_dev_register()
198 ret = auxiliary_device_add(&cdev->auxdev); in sof_client_dev_register()
205 auxiliary_device_uninit(&cdev->auxdev); in sof_client_dev_register()
217 kfree(cdev->auxdev.dev.platform_data); in sof_client_dev_register()
237 if (!strcmp(cdev->auxdev.name, name) && cdev->auxdev.id == id) { in sof_client_dev_unregister()
239 auxiliary_device_delete(&cdev->auxdev); in sof_client_dev_unregister()
240 auxiliary_device_uninit(&cdev->auxdev); in sof_client_dev_unregister()
277 if (!cdev->auxdev.dev.driver) in sof_suspend_clients()
280 adrv = to_auxiliary_drv(cdev->auxdev.dev.driver); in sof_suspend_clients()
282 adrv->suspend(&cdev->auxdev, state); in sof_suspend_clients()
300 if (!cdev->auxdev.dev.driver) in sof_resume_clients()
303 adrv = to_auxiliary_drv(cdev->auxdev.dev.driver); in sof_resume_clients()
305 adrv->resume(&cdev->auxdev); in sof_resume_clients()