Lines Matching refs:auxdev
50 struct auxiliary_device *auxdev = to_auxiliary_dev(dev); in sof_client_auxdev_release() local
51 struct sof_client_dev *cdev = auxiliary_dev_to_sof_client_dev(auxdev); in sof_client_auxdev_release()
53 kfree(cdev->auxdev.dev.platform_data); in sof_client_auxdev_release()
68 cdev->auxdev.dev.platform_data = d; in sof_client_dev_add_data()
211 struct auxiliary_device *auxdev; in sof_client_dev_register() local
220 auxdev = &cdev->auxdev; in sof_client_dev_register()
221 auxdev->name = name; in sof_client_dev_register()
222 auxdev->dev.parent = sdev->dev; in sof_client_dev_register()
223 auxdev->dev.release = sof_client_auxdev_release; in sof_client_dev_register()
224 auxdev->id = id; in sof_client_dev_register()
230 ret = auxiliary_device_init(auxdev); in sof_client_dev_register()
236 ret = auxiliary_device_add(&cdev->auxdev); in sof_client_dev_register()
243 auxiliary_device_uninit(&cdev->auxdev); in sof_client_dev_register()
255 kfree(cdev->auxdev.dev.platform_data); in sof_client_dev_register()
275 if (!strcmp(cdev->auxdev.name, name) && cdev->auxdev.id == id) { in sof_client_dev_unregister()
277 auxiliary_device_delete(&cdev->auxdev); in sof_client_dev_unregister()
278 auxiliary_device_uninit(&cdev->auxdev); in sof_client_dev_unregister()
366 if (!cdev->auxdev.dev.driver) in sof_suspend_clients()
369 adrv = to_auxiliary_drv(cdev->auxdev.dev.driver); in sof_suspend_clients()
371 adrv->suspend(&cdev->auxdev, state); in sof_suspend_clients()
389 if (!cdev->auxdev.dev.driver) in sof_resume_clients()
392 adrv = to_auxiliary_drv(cdev->auxdev.dev.driver); in sof_resume_clients()
394 adrv->resume(&cdev->auxdev); in sof_resume_clients()