Lines Matching refs:roundbytes
822 off_t srclba, dstlba, numbytes, donebytes, roundbytes; in tpc_process_b2b() local
900 roundbytes = numbytes - donebytes; in tpc_process_b2b()
901 if (roundbytes > TPC_MAX_IO_SIZE) { in tpc_process_b2b()
902 roundbytes = TPC_MAX_IO_SIZE; in tpc_process_b2b()
903 roundbytes -= roundbytes % dstblock; in tpc_process_b2b()
905 adj = (dstlba * dstblock + roundbytes - pbo) % pb; in tpc_process_b2b()
906 if (roundbytes > adj) in tpc_process_b2b()
907 roundbytes -= adj; in tpc_process_b2b()
913 tior->buf = malloc(roundbytes, M_CTL, M_WAITOK); in tpc_process_b2b()
919 /*data_len*/ roundbytes, in tpc_process_b2b()
924 /*num_blocks*/ roundbytes / srcblock, in tpc_process_b2b()
940 /*data_len*/ roundbytes, in tpc_process_b2b()
945 /*num_blocks*/ roundbytes / dstblock, in tpc_process_b2b()
957 donebytes += roundbytes; in tpc_process_b2b()
958 srclba += roundbytes / srcblock; in tpc_process_b2b()
959 dstlba += roundbytes / dstblock; in tpc_process_b2b()
1178 off_t srclba, dstlba, numbytes, donebytes, roundbytes; in tpc_process_wut() local
1262 roundbytes = numbytes - donebytes; in tpc_process_wut()
1263 if (roundbytes > TPC_MAX_IO_SIZE) { in tpc_process_wut()
1264 roundbytes = TPC_MAX_IO_SIZE; in tpc_process_wut()
1265 roundbytes -= roundbytes % dstblock; in tpc_process_wut()
1267 adj = (dstlba * dstblock + roundbytes - pbo) % pb; in tpc_process_wut()
1268 if (roundbytes > adj) in tpc_process_wut()
1269 roundbytes -= adj; in tpc_process_wut()
1275 tior->buf = malloc(roundbytes, M_CTL, M_WAITOK); in tpc_process_wut()
1281 /*data_len*/ roundbytes, in tpc_process_wut()
1286 /*num_blocks*/ roundbytes / srcblock, in tpc_process_wut()
1300 /*data_len*/ roundbytes, in tpc_process_wut()
1305 /*num_blocks*/ roundbytes / dstblock, in tpc_process_wut()
1315 donebytes += roundbytes; in tpc_process_wut()
1316 srclba += roundbytes / srcblock; in tpc_process_wut()
1317 dstlba += roundbytes / dstblock; in tpc_process_wut()