Home
last modified time | relevance | path

Searched refs:copy_buf (Results 1 – 2 of 2) sorted by relevance

/drivers/net/ethernet/sfc/
Dtx.c138 struct efx_short_copy_buffer *copy_buf) in efx_memcpy_toio_aligned() argument
140 int block_len = len & ~(sizeof(copy_buf->buf) - 1); in efx_memcpy_toio_aligned()
148 BUG_ON(copy_buf->used); in efx_memcpy_toio_aligned()
149 BUG_ON(len > sizeof(copy_buf->buf)); in efx_memcpy_toio_aligned()
150 memcpy(copy_buf->buf, data, len); in efx_memcpy_toio_aligned()
151 copy_buf->used = len; in efx_memcpy_toio_aligned()
160 struct efx_short_copy_buffer *copy_buf) in efx_memcpy_toio_aligned_cb() argument
162 if (copy_buf->used) { in efx_memcpy_toio_aligned_cb()
165 min_t(int, sizeof(copy_buf->buf) - copy_buf->used, len); in efx_memcpy_toio_aligned_cb()
167 memcpy(copy_buf->buf + copy_buf->used, data, copy_to_buf); in efx_memcpy_toio_aligned_cb()
[all …]
/drivers/usb/gadget/function/
Df_uac1_legacy.c252 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()
[all …]