Searched refs:sg_bytes (Results 1 – 2 of 2) sorted by relevance
/linux-4.4.14/drivers/scsi/libfc/ |
D | fc_libfc.c | 120 size_t off, sg_bytes; in fc_copy_buffer_to_sglist() local 135 sg_bytes = min(remaining, sg->length - *offset); in fc_copy_buffer_to_sglist() 142 sg_bytes = min(sg_bytes, in fc_copy_buffer_to_sglist() 146 *crc = crc32(*crc, buf, sg_bytes); in fc_copy_buffer_to_sglist() 147 memcpy((char *)page_addr + (off & ~PAGE_MASK), buf, sg_bytes); in fc_copy_buffer_to_sglist() 149 buf += sg_bytes; in fc_copy_buffer_to_sglist() 150 *offset += sg_bytes; in fc_copy_buffer_to_sglist() 151 remaining -= sg_bytes; in fc_copy_buffer_to_sglist() 152 copy_len += sg_bytes; in fc_copy_buffer_to_sglist()
|
D | fc_fcp.c | 571 size_t sg_bytes; in fc_fcp_send_data() local 644 sg_bytes = min(tlen, sg->length - offset); in fc_fcp_send_data() 645 sg_bytes = min(sg_bytes, in fc_fcp_send_data() 652 page, off & ~PAGE_MASK, sg_bytes); in fc_fcp_send_data() 653 fp_skb(fp)->data_len += sg_bytes; in fc_fcp_send_data() 654 fr_len(fp) += sg_bytes; in fc_fcp_send_data() 663 sg_bytes); in fc_fcp_send_data() 665 data += sg_bytes; in fc_fcp_send_data() 667 offset += sg_bytes; in fc_fcp_send_data() 668 frame_offset += sg_bytes; in fc_fcp_send_data() [all …]
|