Lines Matching refs:i2sdev
41 static int alloc_dbdma_descriptor_ring(struct i2sbus_dev *i2sdev, in alloc_dbdma_descriptor_ring() argument
50 r->space = dma_alloc_coherent(&macio_get_pci_dev(i2sdev->macio)->dev, in alloc_dbdma_descriptor_ring()
62 static void free_dbdma_descriptor_ring(struct i2sbus_dev *i2sdev, in free_dbdma_descriptor_ring() argument
67 dma_free_coherent(&macio_get_pci_dev(i2sdev->macio)->dev, in free_dbdma_descriptor_ring()
73 struct i2sbus_dev *i2sdev; in i2sbus_release_dev() local
76 i2sdev = container_of(dev, struct i2sbus_dev, sound.ofdev.dev); in i2sbus_release_dev()
77 iounmap(i2sdev->intfregs); in i2sbus_release_dev()
78 iounmap(i2sdev->out.dbdma); in i2sbus_release_dev()
79 iounmap(i2sdev->in.dbdma); in i2sbus_release_dev()
81 release_and_free_resource(i2sdev->allocated_resource[i]); in i2sbus_release_dev()
82 free_dbdma_descriptor_ring(i2sdev, &i2sdev->out.dbdma_ring); in i2sbus_release_dev()
83 free_dbdma_descriptor_ring(i2sdev, &i2sdev->in.dbdma_ring); in i2sbus_release_dev()
85 free_irq(i2sdev->interrupts[i], i2sdev); in i2sbus_release_dev()
86 i2sbus_control_remove_dev(i2sdev->control, i2sdev); in i2sbus_release_dev()
87 mutex_destroy(&i2sdev->lock); in i2sbus_release_dev()
88 kfree(i2sdev); in i2sbus_release_dev()
371 struct i2sbus_dev *i2sdev, *tmp; in i2sbus_remove() local
373 list_for_each_entry_safe(i2sdev, tmp, &control->list, item) in i2sbus_remove()
374 soundbus_remove_one(&i2sdev->sound); in i2sbus_remove()
382 struct i2sbus_dev* i2sdev; in i2sbus_suspend() local
385 list_for_each_entry(i2sdev, &control->list, item) { in i2sbus_suspend()
387 list_for_each_entry(cii, &i2sdev->sound.codec_list, list) { in i2sbus_suspend()
396 i2sbus_wait_for_stop_both(i2sdev); in i2sbus_suspend()
406 struct i2sbus_dev* i2sdev; in i2sbus_resume() local
409 list_for_each_entry(i2sdev, &control->list, item) { in i2sbus_resume()
411 i2sbus_pcm_prepare_both(i2sdev); in i2sbus_resume()
414 list_for_each_entry(cii, &i2sdev->sound.codec_list, list) { in i2sbus_resume()