Lines Matching refs:bytes
351 int bytes; in rxe_mem_copy() local
397 bytes = buf->size - offset; in rxe_mem_copy()
399 if (bytes > length) in rxe_mem_copy()
400 bytes = length; in rxe_mem_copy()
403 crc = crc32_le(crc, src, bytes); in rxe_mem_copy()
405 memcpy(dest, src, bytes); in rxe_mem_copy()
407 length -= bytes; in rxe_mem_copy()
408 addr += bytes; in rxe_mem_copy()
443 int bytes; in copy_data() local
468 bytes = length; in copy_data()
496 if (bytes > sge->length - offset) in copy_data()
497 bytes = sge->length - offset; in copy_data()
499 if (bytes > 0) { in copy_data()
502 err = rxe_mem_copy(mem, iova, addr, bytes, dir, crcp); in copy_data()
506 offset += bytes; in copy_data()
507 resid -= bytes; in copy_data()
508 length -= bytes; in copy_data()
509 addr += bytes; in copy_data()
535 unsigned int bytes; in advance_dma_data() local
545 bytes = length; in advance_dma_data()
547 if (bytes > sge->length - offset) in advance_dma_data()
548 bytes = sge->length - offset; in advance_dma_data()
550 offset += bytes; in advance_dma_data()
551 resid -= bytes; in advance_dma_data()
552 length -= bytes; in advance_dma_data()