Lines Matching refs:virt_ctxt

68     virtualizer_context_t *virt_ctxt = (virtualizer_context_t *)context;  in virtualizer_get_parameter()  local
107 *(int16_t *)value = virtualizer_get_strength(virt_ctxt); in virtualizer_get_parameter()
121 virtualizer_context_t *virt_ctxt = (virtualizer_context_t *)context; in virtualizer_set_parameter() local
136 virtualizer_set_strength(virt_ctxt, strength); in virtualizer_set_parameter()
148 virtualizer_context_t *virt_ctxt = (virtualizer_context_t *)context; in virtualizer_set_device() local
151 virt_ctxt->device = device; in virtualizer_set_device()
157 if (!virt_ctxt->temp_disabled) { in virtualizer_set_device()
158 if (effect_is_active(&virt_ctxt->common)) { in virtualizer_set_device()
159 offload_virtualizer_set_enable_flag(&(virt_ctxt->offload_virt), false); in virtualizer_set_device()
160 if (virt_ctxt->ctl) in virtualizer_set_device()
161 offload_virtualizer_send_params(virt_ctxt->ctl, in virtualizer_set_device()
162 &virt_ctxt->offload_virt, in virtualizer_set_device()
165 virt_ctxt->temp_disabled = true; in virtualizer_set_device()
168 if (virt_ctxt->temp_disabled) { in virtualizer_set_device()
169 if (effect_is_active(&virt_ctxt->common)) { in virtualizer_set_device()
170 offload_virtualizer_set_enable_flag(&(virt_ctxt->offload_virt), true); in virtualizer_set_device()
171 if (virt_ctxt->ctl) in virtualizer_set_device()
172 offload_virtualizer_send_params(virt_ctxt->ctl, in virtualizer_set_device()
173 &virt_ctxt->offload_virt, in virtualizer_set_device()
176 virt_ctxt->temp_disabled = false; in virtualizer_set_device()
179 offload_virtualizer_set_device(&(virt_ctxt->offload_virt), device); in virtualizer_set_device()
185 virtualizer_context_t *virt_ctxt = (virtualizer_context_t *)context; in virtualizer_reset() local
193 virtualizer_context_t *virt_ctxt = (virtualizer_context_t *)context; in virtualizer_init() local
214 virt_ctxt->temp_disabled = false; in virtualizer_init()
215 memset(&(virt_ctxt->offload_virt), 0, sizeof(struct virtualizer_params)); in virtualizer_init()
222 virtualizer_context_t *virt_ctxt = (virtualizer_context_t *)context; in virtualizer_enable() local
226 if (!offload_virtualizer_get_enable_flag(&(virt_ctxt->offload_virt)) && in virtualizer_enable()
227 !(virt_ctxt->temp_disabled)) { in virtualizer_enable()
228 offload_virtualizer_set_enable_flag(&(virt_ctxt->offload_virt), true); in virtualizer_enable()
229 if (virt_ctxt->ctl && virt_ctxt->strength) in virtualizer_enable()
230 offload_virtualizer_send_params(virt_ctxt->ctl, in virtualizer_enable()
231 &virt_ctxt->offload_virt, in virtualizer_enable()
240 virtualizer_context_t *virt_ctxt = (virtualizer_context_t *)context; in virtualizer_disable() local
243 if (offload_virtualizer_get_enable_flag(&(virt_ctxt->offload_virt))) { in virtualizer_disable()
244 offload_virtualizer_set_enable_flag(&(virt_ctxt->offload_virt), false); in virtualizer_disable()
245 if (virt_ctxt->ctl) in virtualizer_disable()
246 offload_virtualizer_send_params(virt_ctxt->ctl, in virtualizer_disable()
247 &virt_ctxt->offload_virt, in virtualizer_disable()
255 virtualizer_context_t *virt_ctxt = (virtualizer_context_t *)context; in virtualizer_start() local
258 virt_ctxt->ctl = output->ctl; in virtualizer_start()
259 if (offload_virtualizer_get_enable_flag(&(virt_ctxt->offload_virt))) in virtualizer_start()
260 if (virt_ctxt->ctl) in virtualizer_start()
261 offload_virtualizer_send_params(virt_ctxt->ctl, &virt_ctxt->offload_virt, in virtualizer_start()
269 virtualizer_context_t *virt_ctxt = (virtualizer_context_t *)context; in virtualizer_stop() local
272 virt_ctxt->ctl = NULL; in virtualizer_stop()