Home
last modified time | relevance | path

Searched refs:sg_bytes (Results 1 – 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/drivers/scsi/libfc/
Dfc_libfc.c108 size_t off, sg_bytes; in fc_copy_buffer_to_sglist() local
123 sg_bytes = min(remaining, sg->length - *offset); in fc_copy_buffer_to_sglist()
130 sg_bytes = min(sg_bytes, in fc_copy_buffer_to_sglist()
134 *crc = crc32(*crc, buf, sg_bytes); in fc_copy_buffer_to_sglist()
135 memcpy((char *)page_addr + (off & ~PAGE_MASK), buf, sg_bytes); in fc_copy_buffer_to_sglist()
137 buf += sg_bytes; in fc_copy_buffer_to_sglist()
138 *offset += sg_bytes; in fc_copy_buffer_to_sglist()
139 remaining -= sg_bytes; in fc_copy_buffer_to_sglist()
140 copy_len += sg_bytes; in fc_copy_buffer_to_sglist()
Dfc_fcp.c606 size_t sg_bytes; in fc_fcp_send_data() local
679 sg_bytes = min(tlen, sg->length - offset); in fc_fcp_send_data()
680 sg_bytes = min(sg_bytes, in fc_fcp_send_data()
687 page, off & ~PAGE_MASK, sg_bytes); in fc_fcp_send_data()
688 fp_skb(fp)->data_len += sg_bytes; in fc_fcp_send_data()
689 fr_len(fp) += sg_bytes; in fc_fcp_send_data()
698 sg_bytes); in fc_fcp_send_data()
700 data += sg_bytes; in fc_fcp_send_data()
702 offset += sg_bytes; in fc_fcp_send_data()
703 frame_offset += sg_bytes; in fc_fcp_send_data()
[all …]