Lines Matching refs:copy_buf
255 struct f_audio_buf *copy_buf; in f_audio_buffer_alloc() local
257 copy_buf = kzalloc(sizeof *copy_buf, GFP_ATOMIC); in f_audio_buffer_alloc()
258 if (!copy_buf) in f_audio_buffer_alloc()
261 copy_buf->buf = kzalloc(buf_size, GFP_ATOMIC); in f_audio_buffer_alloc()
262 if (!copy_buf->buf) { in f_audio_buffer_alloc()
263 kfree(copy_buf); in f_audio_buffer_alloc()
267 return copy_buf; in f_audio_buffer_alloc()
285 struct f_audio_buf *copy_buf; member
326 struct f_audio_buf *copy_buf = audio->copy_buf; in f_audio_out_ep_complete() local
329 if (!copy_buf) in f_audio_out_ep_complete()
333 if (audio_buf_size - copy_buf->actual < req->actual) { in f_audio_out_ep_complete()
334 list_add_tail(©_buf->list, &audio->play_queue); in f_audio_out_ep_complete()
336 copy_buf = f_audio_buffer_alloc(audio_buf_size); in f_audio_out_ep_complete()
337 if (IS_ERR(copy_buf)) in f_audio_out_ep_complete()
341 memcpy(copy_buf->buf + copy_buf->actual, req->buf, req->actual); in f_audio_out_ep_complete()
342 copy_buf->actual += req->actual; in f_audio_out_ep_complete()
343 audio->copy_buf = copy_buf; in f_audio_out_ep_complete()
580 audio->copy_buf = f_audio_buffer_alloc(audio_buf_size); in f_audio_set_alt()
581 if (IS_ERR(audio->copy_buf)) in f_audio_set_alt()
611 struct f_audio_buf *copy_buf = audio->copy_buf; in f_audio_set_alt() local
612 if (copy_buf) { in f_audio_set_alt()
613 list_add_tail(©_buf->list, in f_audio_set_alt()