Lines Matching refs:cii

77 	struct codec_info_item *cii, *rev;  in i2sbus_pcm_open()  local
100 list_for_each_entry(cii, &sdev->codec_list, list) { in i2sbus_pcm_open()
101 struct transfer_info *ti = cii->codec->transfers; in i2sbus_pcm_open()
102 bus_factor = cii->codec->bus_factor; in i2sbus_pcm_open()
103 sysclock_factor = cii->codec->sysclock_factor; in i2sbus_pcm_open()
107 && cii->codec->usable(cii, ti, &v)) { in i2sbus_pcm_open()
201 list_for_each_entry(cii, &sdev->codec_list, list) { in i2sbus_pcm_open()
202 if (cii->codec->open) { in i2sbus_pcm_open()
203 err = cii->codec->open(cii, pi->substream); in i2sbus_pcm_open()
214 if (rev == cii) in i2sbus_pcm_open()
231 struct codec_info_item *cii; in i2sbus_pcm_close() local
239 list_for_each_entry(cii, &i2sdev->sound.codec_list, list) { in i2sbus_pcm_close()
240 if (cii->codec->close) { in i2sbus_pcm_close()
241 tmp = cii->codec->close(cii, pi->substream); in i2sbus_pcm_close()
327 struct codec_info_item *cii; in i2sbus_pcm_prepare() local
411 list_for_each_entry(cii, &i2sdev->sound.codec_list, list) { in i2sbus_pcm_prepare()
412 bi.bus_factor = cii->codec->bus_factor; in i2sbus_pcm_prepare()
433 list_for_each_entry(cii, &i2sdev->sound.codec_list, list) { in i2sbus_pcm_prepare()
434 bi.sysclock_factor = cii->codec->sysclock_factor; in i2sbus_pcm_prepare()
456 list_for_each_entry(cii, &i2sdev->sound.codec_list, list) { in i2sbus_pcm_prepare()
458 if (cii->codec->prepare) in i2sbus_pcm_prepare()
459 err = cii->codec->prepare(cii, &bi, pi->substream); in i2sbus_pcm_prepare()
483 list_for_each_entry(cii, &i2sdev->sound.codec_list, list) in i2sbus_pcm_prepare()
484 if (cii->codec->switch_clock) in i2sbus_pcm_prepare()
485 cii->codec->switch_clock(cii, CLOCK_SWITCH_PREPARE_SLAVE); in i2sbus_pcm_prepare()
513 list_for_each_entry(cii, &i2sdev->sound.codec_list, list) in i2sbus_pcm_prepare()
514 if (cii->codec->switch_clock) in i2sbus_pcm_prepare()
515 cii->codec->switch_clock(cii, CLOCK_SWITCH_SLAVE); in i2sbus_pcm_prepare()
532 struct codec_info_item *cii; in i2sbus_pcm_trigger() local
548 list_for_each_entry(cii, &i2sdev->sound.codec_list, list) in i2sbus_pcm_trigger()
549 if (cii->codec->start) in i2sbus_pcm_trigger()
550 cii->codec->start(cii, pi->substream); in i2sbus_pcm_trigger()
597 list_for_each_entry(cii, &i2sdev->sound.codec_list, list) in i2sbus_pcm_trigger()
598 if (cii->codec->stop) in i2sbus_pcm_trigger()
599 cii->codec->stop(cii, pi->substream); in i2sbus_pcm_trigger()
874 struct codec_info_item *cii; in i2sbus_attach_codec() local
881 list_for_each_entry(cii, &dev->codec_list, list) { in i2sbus_attach_codec()
882 if (cii->codec_data == data) in i2sbus_attach_codec()
898 list_for_each_entry(cii, &dev->codec_list, list) { in i2sbus_attach_codec()
899 if (cii->codec->sysclock_factor != ci->sysclock_factor) { in i2sbus_attach_codec()
904 if (cii->codec->bus_factor != ci->bus_factor) { in i2sbus_attach_codec()
920 cii = kzalloc(sizeof(struct codec_info_item), GFP_KERNEL); in i2sbus_attach_codec()
921 if (!cii) in i2sbus_attach_codec()
925 cii->sdev = soundbus_dev_get(dev); in i2sbus_attach_codec()
926 cii->codec = ci; in i2sbus_attach_codec()
927 cii->codec_data = data; in i2sbus_attach_codec()
929 if (!cii->sdev) { in i2sbus_attach_codec()
1009 list_add(&cii->list, &dev->codec_list); in i2sbus_attach_codec()
1028 kfree(cii); in i2sbus_attach_codec()
1034 struct codec_info_item *cii = NULL, *i; in i2sbus_detach_codec() local
1038 cii = i; in i2sbus_detach_codec()
1042 if (cii) { in i2sbus_detach_codec()
1043 list_del(&cii->list); in i2sbus_detach_codec()
1044 module_put(cii->codec->owner); in i2sbus_detach_codec()
1045 kfree(cii); in i2sbus_detach_codec()