Lines Matching refs:transfer_bytes
222 unsigned int transfer_bytes, bytes_copied = 0; in lpfc_bsg_copy_data() local
250 transfer_bytes = miter.length - sg_offset; in lpfc_bsg_copy_data()
253 transfer_bytes = miter.length; in lpfc_bsg_copy_data()
255 if (bytes_to_transfer < transfer_bytes) in lpfc_bsg_copy_data()
256 transfer_bytes = bytes_to_transfer; in lpfc_bsg_copy_data()
257 if (transfer_bytes > (LPFC_BPL_SIZE - dma_offset)) in lpfc_bsg_copy_data()
258 transfer_bytes = LPFC_BPL_SIZE - dma_offset; in lpfc_bsg_copy_data()
260 memcpy(dma_address, sg_address, transfer_bytes); in lpfc_bsg_copy_data()
262 memcpy(sg_address, dma_address, transfer_bytes); in lpfc_bsg_copy_data()
263 dma_offset += transfer_bytes; in lpfc_bsg_copy_data()
264 sg_offset += transfer_bytes; in lpfc_bsg_copy_data()
265 bytes_to_transfer -= transfer_bytes; in lpfc_bsg_copy_data()
266 bytes_copied += transfer_bytes; in lpfc_bsg_copy_data()