Lines Matching refs:copy_buf
252 struct f_audio_buf *copy_buf; in f_audio_buffer_alloc() local
254 copy_buf = kzalloc(sizeof *copy_buf, GFP_ATOMIC); in f_audio_buffer_alloc()
255 if (!copy_buf) in f_audio_buffer_alloc()
258 copy_buf->buf = kzalloc(buf_size, GFP_ATOMIC); in f_audio_buffer_alloc()
259 if (!copy_buf->buf) { in f_audio_buffer_alloc()
260 kfree(copy_buf); in f_audio_buffer_alloc()
264 return copy_buf; in f_audio_buffer_alloc()
284 struct f_audio_buf *copy_buf; member
325 struct f_audio_buf *copy_buf = audio->copy_buf; in f_audio_out_ep_complete() local
334 if (!copy_buf) in f_audio_out_ep_complete()
338 if (audio_buf_size - copy_buf->actual < req->actual) { in f_audio_out_ep_complete()
340 list_add_tail(©_buf->list, &audio->play_queue); in f_audio_out_ep_complete()
343 copy_buf = f_audio_buffer_alloc(audio_buf_size); in f_audio_out_ep_complete()
344 if (IS_ERR(copy_buf)) in f_audio_out_ep_complete()
348 memcpy(copy_buf->buf + copy_buf->actual, req->buf, req->actual); in f_audio_out_ep_complete()
349 copy_buf->actual += req->actual; in f_audio_out_ep_complete()
350 audio->copy_buf = copy_buf; in f_audio_out_ep_complete()
611 audio->copy_buf = f_audio_buffer_alloc(audio_buf_size); in f_audio_set_alt()
612 if (IS_ERR(audio->copy_buf)) in f_audio_set_alt()
642 struct f_audio_buf *copy_buf = audio->copy_buf; in f_audio_set_alt() local
643 if (copy_buf) { in f_audio_set_alt()
644 list_add_tail(©_buf->list, in f_audio_set_alt()