Lines Matching refs:roundbytes

824 	off_t srclba, dstlba, numbytes, donebytes, roundbytes;  in tpc_process_b2b()  local
902 roundbytes = numbytes - donebytes; in tpc_process_b2b()
903 if (roundbytes > TPC_MAX_IO_SIZE) { in tpc_process_b2b()
904 roundbytes = TPC_MAX_IO_SIZE; in tpc_process_b2b()
905 roundbytes -= roundbytes % dstblock; in tpc_process_b2b()
907 adj = (dstlba * dstblock + roundbytes - pbo) % pb; in tpc_process_b2b()
908 if (roundbytes > adj) in tpc_process_b2b()
909 roundbytes -= adj; in tpc_process_b2b()
915 tior->buf = malloc(roundbytes, M_CTL, M_WAITOK); in tpc_process_b2b()
921 /*data_len*/ roundbytes, in tpc_process_b2b()
926 /*num_blocks*/ roundbytes / srcblock, in tpc_process_b2b()
942 /*data_len*/ roundbytes, in tpc_process_b2b()
947 /*num_blocks*/ roundbytes / dstblock, in tpc_process_b2b()
959 donebytes += roundbytes; in tpc_process_b2b()
960 srclba += roundbytes / srcblock; in tpc_process_b2b()
961 dstlba += roundbytes / dstblock; in tpc_process_b2b()
1180 off_t srclba, dstlba, numbytes, donebytes, roundbytes; in tpc_process_wut() local
1264 roundbytes = numbytes - donebytes; in tpc_process_wut()
1265 if (roundbytes > TPC_MAX_IO_SIZE) { in tpc_process_wut()
1266 roundbytes = TPC_MAX_IO_SIZE; in tpc_process_wut()
1267 roundbytes -= roundbytes % dstblock; in tpc_process_wut()
1269 adj = (dstlba * dstblock + roundbytes - pbo) % pb; in tpc_process_wut()
1270 if (roundbytes > adj) in tpc_process_wut()
1271 roundbytes -= adj; in tpc_process_wut()
1277 tior->buf = malloc(roundbytes, M_CTL, M_WAITOK); in tpc_process_wut()
1283 /*data_len*/ roundbytes, in tpc_process_wut()
1288 /*num_blocks*/ roundbytes / srcblock, in tpc_process_wut()
1302 /*data_len*/ roundbytes, in tpc_process_wut()
1307 /*num_blocks*/ roundbytes / dstblock, in tpc_process_wut()
1317 donebytes += roundbytes; in tpc_process_wut()
1318 srclba += roundbytes / srcblock; in tpc_process_wut()
1319 dstlba += roundbytes / dstblock; in tpc_process_wut()