Lines Matching refs:numbytes
823 off_t srclba, dstlba, numbytes, donebytes, roundbytes; in tpc_process_b2b() local
873 numbytes = (off_t)numlba * dstblock; in tpc_process_b2b()
875 numbytes = (off_t)numlba * srcblock; in tpc_process_b2b()
883 if (numbytes == 0) in tpc_process_b2b()
886 if (numbytes % srcblock != 0 || numbytes % dstblock != 0) { in tpc_process_b2b()
895 list->segbytes = numbytes; in tpc_process_b2b()
896 list->segsectors = numbytes / dstblock; in tpc_process_b2b()
900 while (donebytes < numbytes) { in tpc_process_b2b()
901 roundbytes = numbytes - donebytes; in tpc_process_b2b()
1179 off_t srclba, dstlba, numbytes, donebytes, roundbytes; in tpc_process_wut() local
1234 numbytes = srcblock * in tpc_process_wut()
1236 numbytes = omin(numbytes, dstblock * in tpc_process_wut()
1238 if (numbytes > TPC_MAX_IOCHUNK_SIZE) { in tpc_process_wut()
1239 numbytes = TPC_MAX_IOCHUNK_SIZE; in tpc_process_wut()
1240 numbytes -= numbytes % dstblock; in tpc_process_wut()
1242 adj = (dstlba * dstblock + numbytes - pbo) % pb; in tpc_process_wut()
1243 if (numbytes > adj) in tpc_process_wut()
1244 numbytes -= adj; in tpc_process_wut()
1248 if (numbytes % srcblock != 0 || numbytes % dstblock != 0) { in tpc_process_wut()
1254 list->segbytes = numbytes; in tpc_process_wut()
1255 list->segsectors = numbytes / dstblock; in tpc_process_wut()
1262 while (donebytes < numbytes) { in tpc_process_wut()
1263 roundbytes = numbytes - donebytes; in tpc_process_wut()