Lines Matching refs:numbytes
824 off_t srclba, dstlba, numbytes, donebytes, roundbytes; in tpc_process_b2b() local
874 numbytes = (off_t)numlba * dstblock; in tpc_process_b2b()
876 numbytes = (off_t)numlba * srcblock; in tpc_process_b2b()
884 if (numbytes == 0) in tpc_process_b2b()
887 if (numbytes % srcblock != 0 || numbytes % dstblock != 0) { in tpc_process_b2b()
896 list->segbytes = numbytes; in tpc_process_b2b()
897 list->segsectors = numbytes / dstblock; in tpc_process_b2b()
901 while (donebytes < numbytes) { in tpc_process_b2b()
902 roundbytes = numbytes - donebytes; in tpc_process_b2b()
1180 off_t srclba, dstlba, numbytes, donebytes, roundbytes; in tpc_process_wut() local
1235 numbytes = srcblock * in tpc_process_wut()
1237 numbytes = omin(numbytes, dstblock * in tpc_process_wut()
1239 if (numbytes > TPC_MAX_IOCHUNK_SIZE) { in tpc_process_wut()
1240 numbytes = TPC_MAX_IOCHUNK_SIZE; in tpc_process_wut()
1241 numbytes -= numbytes % dstblock; in tpc_process_wut()
1243 adj = (dstlba * dstblock + numbytes - pbo) % pb; in tpc_process_wut()
1244 if (numbytes > adj) in tpc_process_wut()
1245 numbytes -= adj; in tpc_process_wut()
1249 if (numbytes % srcblock != 0 || numbytes % dstblock != 0) { in tpc_process_wut()
1255 list->segbytes = numbytes; in tpc_process_wut()
1256 list->segsectors = numbytes / dstblock; in tpc_process_wut()
1263 while (donebytes < numbytes) { in tpc_process_wut()
1264 roundbytes = numbytes - donebytes; in tpc_process_wut()