Lines Matching refs:numbytes
822 off_t srclba, dstlba, numbytes, donebytes, roundbytes; in tpc_process_b2b() local
872 numbytes = (off_t)numlba * dstblock; in tpc_process_b2b()
874 numbytes = (off_t)numlba * srcblock; in tpc_process_b2b()
882 if (numbytes == 0) in tpc_process_b2b()
885 if (numbytes % srcblock != 0 || numbytes % dstblock != 0) { in tpc_process_b2b()
894 list->segbytes = numbytes; in tpc_process_b2b()
895 list->segsectors = numbytes / dstblock; in tpc_process_b2b()
899 while (donebytes < numbytes) { in tpc_process_b2b()
900 roundbytes = numbytes - donebytes; in tpc_process_b2b()
1178 off_t srclba, dstlba, numbytes, donebytes, roundbytes; in tpc_process_wut() local
1233 numbytes = srcblock * in tpc_process_wut()
1235 numbytes = omin(numbytes, dstblock * in tpc_process_wut()
1237 if (numbytes > TPC_MAX_IOCHUNK_SIZE) { in tpc_process_wut()
1238 numbytes = TPC_MAX_IOCHUNK_SIZE; in tpc_process_wut()
1239 numbytes -= numbytes % dstblock; in tpc_process_wut()
1241 adj = (dstlba * dstblock + numbytes - pbo) % pb; in tpc_process_wut()
1242 if (numbytes > adj) in tpc_process_wut()
1243 numbytes -= adj; in tpc_process_wut()
1247 if (numbytes % srcblock != 0 || numbytes % dstblock != 0) { in tpc_process_wut()
1253 list->segbytes = numbytes; in tpc_process_wut()
1254 list->segsectors = numbytes / dstblock; in tpc_process_wut()
1261 while (donebytes < numbytes) { in tpc_process_wut()
1262 roundbytes = numbytes - donebytes; in tpc_process_wut()