Lines Matching refs:transfer_bytes
223 unsigned int transfer_bytes, bytes_copied = 0; in lpfc_bsg_copy_data() local
251 transfer_bytes = miter.length - sg_offset; in lpfc_bsg_copy_data()
254 transfer_bytes = miter.length; in lpfc_bsg_copy_data()
256 if (bytes_to_transfer < transfer_bytes) in lpfc_bsg_copy_data()
257 transfer_bytes = bytes_to_transfer; in lpfc_bsg_copy_data()
258 if (transfer_bytes > (LPFC_BPL_SIZE - dma_offset)) in lpfc_bsg_copy_data()
259 transfer_bytes = LPFC_BPL_SIZE - dma_offset; in lpfc_bsg_copy_data()
261 memcpy(dma_address, sg_address, transfer_bytes); in lpfc_bsg_copy_data()
263 memcpy(sg_address, dma_address, transfer_bytes); in lpfc_bsg_copy_data()
264 dma_offset += transfer_bytes; in lpfc_bsg_copy_data()
265 sg_offset += transfer_bytes; in lpfc_bsg_copy_data()
266 bytes_to_transfer -= transfer_bytes; in lpfc_bsg_copy_data()
267 bytes_copied += transfer_bytes; in lpfc_bsg_copy_data()