Lines Matching refs:transfer_bytes
219 unsigned int transfer_bytes, bytes_copied = 0; in lpfc_bsg_copy_data() local
247 transfer_bytes = miter.length - sg_offset; in lpfc_bsg_copy_data()
250 transfer_bytes = miter.length; in lpfc_bsg_copy_data()
252 if (bytes_to_transfer < transfer_bytes) in lpfc_bsg_copy_data()
253 transfer_bytes = bytes_to_transfer; in lpfc_bsg_copy_data()
254 if (transfer_bytes > (LPFC_BPL_SIZE - dma_offset)) in lpfc_bsg_copy_data()
255 transfer_bytes = LPFC_BPL_SIZE - dma_offset; in lpfc_bsg_copy_data()
257 memcpy(dma_address, sg_address, transfer_bytes); in lpfc_bsg_copy_data()
259 memcpy(sg_address, dma_address, transfer_bytes); in lpfc_bsg_copy_data()
260 dma_offset += transfer_bytes; in lpfc_bsg_copy_data()
261 sg_offset += transfer_bytes; in lpfc_bsg_copy_data()
262 bytes_to_transfer -= transfer_bytes; in lpfc_bsg_copy_data()
263 bytes_copied += transfer_bytes; in lpfc_bsg_copy_data()