Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/scsi/libfc/
Dfc_libfc.c120 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()
Dfc_fcp.c617 size_t sg_bytes; in fc_fcp_send_data() local
690 sg_bytes = min(tlen, sg->length - offset); in fc_fcp_send_data()
691 sg_bytes = min(sg_bytes, in fc_fcp_send_data()
698 page, off & ~PAGE_MASK, sg_bytes); in fc_fcp_send_data()
699 fp_skb(fp)->data_len += sg_bytes; in fc_fcp_send_data()
700 fr_len(fp) += sg_bytes; in fc_fcp_send_data()
709 sg_bytes); in fc_fcp_send_data()
711 data += sg_bytes; in fc_fcp_send_data()
713 offset += sg_bytes; in fc_fcp_send_data()
714 frame_offset += sg_bytes; in fc_fcp_send_data()
[all …]