Lines Matching refs:roundbytes

825 	off_t srclba, dstlba, numbytes, donebytes, roundbytes;  in tpc_process_b2b()  local
903 roundbytes = numbytes - donebytes; in tpc_process_b2b()
904 if (roundbytes > TPC_MAX_IO_SIZE) { in tpc_process_b2b()
905 roundbytes = TPC_MAX_IO_SIZE; in tpc_process_b2b()
906 roundbytes -= roundbytes % dstblock; in tpc_process_b2b()
908 adj = (dstlba * dstblock + roundbytes - pbo) % pb; in tpc_process_b2b()
909 if (roundbytes > adj) in tpc_process_b2b()
910 roundbytes -= adj; in tpc_process_b2b()
916 tior->buf = malloc(roundbytes, M_CTL, M_WAITOK); in tpc_process_b2b()
922 /*data_len*/ roundbytes, in tpc_process_b2b()
927 /*num_blocks*/ roundbytes / srcblock, in tpc_process_b2b()
943 /*data_len*/ roundbytes, in tpc_process_b2b()
948 /*num_blocks*/ roundbytes / dstblock, in tpc_process_b2b()
960 donebytes += roundbytes; in tpc_process_b2b()
961 srclba += roundbytes / srcblock; in tpc_process_b2b()
962 dstlba += roundbytes / dstblock; in tpc_process_b2b()
1181 off_t srclba, dstlba, numbytes, donebytes, roundbytes; in tpc_process_wut() local
1265 roundbytes = numbytes - donebytes; in tpc_process_wut()
1266 if (roundbytes > TPC_MAX_IO_SIZE) { in tpc_process_wut()
1267 roundbytes = TPC_MAX_IO_SIZE; in tpc_process_wut()
1268 roundbytes -= roundbytes % dstblock; in tpc_process_wut()
1270 adj = (dstlba * dstblock + roundbytes - pbo) % pb; in tpc_process_wut()
1271 if (roundbytes > adj) in tpc_process_wut()
1272 roundbytes -= adj; in tpc_process_wut()
1278 tior->buf = malloc(roundbytes, M_CTL, M_WAITOK); in tpc_process_wut()
1284 /*data_len*/ roundbytes, in tpc_process_wut()
1289 /*num_blocks*/ roundbytes / srcblock, in tpc_process_wut()
1303 /*data_len*/ roundbytes, in tpc_process_wut()
1308 /*num_blocks*/ roundbytes / dstblock, in tpc_process_wut()
1318 donebytes += roundbytes; in tpc_process_wut()
1319 srclba += roundbytes / srcblock; in tpc_process_wut()
1320 dstlba += roundbytes / dstblock; in tpc_process_wut()