Lines Matching defs:threadio
3158 struct vb2_threadio_data *threadio = q->threadio;
3184 if (!threadio->stop)
3191 if (ret || threadio->stop)
3196 if (threadio->fnc(vb, threadio->priv))
3201 if (!threadio->stop)
3204 if (ret || threadio->stop)
3224 struct vb2_threadio_data *threadio;
3227 if (q->threadio)
3234 threadio = kzalloc(sizeof(*threadio), GFP_KERNEL);
3235 if (threadio == NULL)
3237 threadio->fnc = fnc;
3238 threadio->priv = priv;
3244 q->threadio = threadio;
3245 threadio->thread = kthread_run(vb2_thread, q, "vb2-%s", thread_name);
3246 if (IS_ERR(threadio->thread)) {
3247 ret = PTR_ERR(threadio->thread);
3248 threadio->thread = NULL;
3256 kfree(threadio);
3263 struct vb2_threadio_data *threadio = q->threadio;
3266 if (threadio == NULL)
3268 threadio->stop = true;
3271 err = kthread_stop(threadio->thread);
3273 threadio->thread = NULL;
3274 kfree(threadio);
3275 q->threadio = NULL;