Lines Matching refs:ctl
380 struct wm_coeff_ctl *ctl = bytes_ext_to_ctl(bytes_ext); in wm_coeff_info() local
381 struct cs_dsp_coeff_ctl *cs_ctl = ctl->cs_ctl; in wm_coeff_info()
405 struct wm_coeff_ctl *ctl = bytes_ext_to_ctl(bytes_ext); in wm_coeff_put() local
406 struct cs_dsp_coeff_ctl *cs_ctl = ctl->cs_ctl; in wm_coeff_put()
417 struct wm_coeff_ctl *ctl = bytes_ext_to_ctl(bytes_ext); in wm_coeff_tlv_put() local
418 struct cs_dsp_coeff_ctl *cs_ctl = ctl->cs_ctl; in wm_coeff_tlv_put()
432 struct wm_coeff_ctl *ctl = bytes_ext_to_ctl(bytes_ext); in wm_coeff_put_acked() local
433 struct cs_dsp_coeff_ctl *cs_ctl = ctl->cs_ctl; in wm_coeff_put_acked()
460 struct wm_coeff_ctl *ctl = bytes_ext_to_ctl(bytes_ext); in wm_coeff_get() local
461 struct cs_dsp_coeff_ctl *cs_ctl = ctl->cs_ctl; in wm_coeff_get()
472 struct wm_coeff_ctl *ctl = bytes_ext_to_ctl(bytes_ext); in wm_coeff_tlv_get() local
473 struct cs_dsp_coeff_ctl *cs_ctl = ctl->cs_ctl; in wm_coeff_tlv_get()
536 struct wm_coeff_ctl *ctl = container_of(work, in wm_adsp_ctl_work() local
539 struct cs_dsp_coeff_ctl *cs_ctl = ctl->cs_ctl; in wm_adsp_ctl_work()
549 kcontrol->name = ctl->name; in wm_adsp_ctl_work()
553 kcontrol->private_value = (unsigned long)&ctl->bytes_ext; in wm_adsp_ctl_work()
563 ctl->bytes_ext.max = cs_ctl->len; in wm_adsp_ctl_work()
564 ctl->bytes_ext.get = wm_coeff_tlv_get; in wm_adsp_ctl_work()
565 ctl->bytes_ext.put = wm_coeff_tlv_put; in wm_adsp_ctl_work()
582 struct wm_coeff_ctl *ctl; in wm_adsp_control_add() local
630 ctl = kzalloc(sizeof(*ctl), GFP_KERNEL); in wm_adsp_control_add()
631 if (!ctl) in wm_adsp_control_add()
633 ctl->cs_ctl = cs_ctl; in wm_adsp_control_add()
635 ctl->name = kmemdup(name, strlen(name) + 1, GFP_KERNEL); in wm_adsp_control_add()
636 if (!ctl->name) { in wm_adsp_control_add()
641 cs_ctl->priv = ctl; in wm_adsp_control_add()
643 INIT_WORK(&ctl->work, wm_adsp_ctl_work); in wm_adsp_control_add()
644 schedule_work(&ctl->work); in wm_adsp_control_add()
649 kfree(ctl); in wm_adsp_control_add()
667 struct wm_coeff_ctl *ctl = cs_ctl->priv; in wm_adsp_control_remove() local
669 cancel_work_sync(&ctl->work); in wm_adsp_control_remove()
671 kfree(ctl->name); in wm_adsp_control_remove()
672 kfree(ctl); in wm_adsp_control_remove()