Lines Matching refs:copy_buf

138 				    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()
168 copy_buf->used += copy_to_buf; in efx_memcpy_toio_aligned_cb()
171 if (copy_buf->used < sizeof(copy_buf->buf)) in efx_memcpy_toio_aligned_cb()
174 __iowrite64_copy(*piobuf, copy_buf->buf, in efx_memcpy_toio_aligned_cb()
175 sizeof(copy_buf->buf) >> 3); in efx_memcpy_toio_aligned_cb()
176 *piobuf += sizeof(copy_buf->buf); in efx_memcpy_toio_aligned_cb()
179 copy_buf->used = 0; in efx_memcpy_toio_aligned_cb()
182 efx_memcpy_toio_aligned(efx, piobuf, data, len, copy_buf); in efx_memcpy_toio_aligned_cb()
186 struct efx_short_copy_buffer *copy_buf) in efx_flush_copy_buffer() argument
189 if (copy_buf->used) in efx_flush_copy_buffer()
190 __iowrite64_copy(piobuf, copy_buf->buf, in efx_flush_copy_buffer()
191 sizeof(copy_buf->buf) >> 3); in efx_flush_copy_buffer()
199 struct efx_short_copy_buffer *copy_buf) in efx_skb_copy_bits_to_pio() argument
204 copy_buf); in efx_skb_copy_bits_to_pio()
213 skb_frag_size(f), copy_buf); in efx_skb_copy_bits_to_pio()
236 struct efx_short_copy_buffer copy_buf; in efx_enqueue_skb_pio() local
238 copy_buf.used = 0; in efx_enqueue_skb_pio()
241 &piobuf, &copy_buf); in efx_enqueue_skb_pio()
242 efx_flush_copy_buffer(tx_queue->efx, piobuf, &copy_buf); in efx_enqueue_skb_pio()