Lines Matching refs:numbytes
825 off_t srclba, dstlba, numbytes, donebytes, roundbytes; in tpc_process_b2b() local
875 numbytes = (off_t)numlba * dstblock; in tpc_process_b2b()
877 numbytes = (off_t)numlba * srcblock; in tpc_process_b2b()
885 if (numbytes == 0) in tpc_process_b2b()
888 if (numbytes % srcblock != 0 || numbytes % dstblock != 0) { in tpc_process_b2b()
897 list->segbytes = numbytes; in tpc_process_b2b()
898 list->segsectors = numbytes / dstblock; in tpc_process_b2b()
902 while (donebytes < numbytes) { in tpc_process_b2b()
903 roundbytes = numbytes - donebytes; in tpc_process_b2b()
1181 off_t srclba, dstlba, numbytes, donebytes, roundbytes; in tpc_process_wut() local
1236 numbytes = srcblock * in tpc_process_wut()
1238 numbytes = omin(numbytes, dstblock * in tpc_process_wut()
1240 if (numbytes > TPC_MAX_IOCHUNK_SIZE) { in tpc_process_wut()
1241 numbytes = TPC_MAX_IOCHUNK_SIZE; in tpc_process_wut()
1242 numbytes -= numbytes % dstblock; in tpc_process_wut()
1244 adj = (dstlba * dstblock + numbytes - pbo) % pb; in tpc_process_wut()
1245 if (numbytes > adj) in tpc_process_wut()
1246 numbytes -= adj; in tpc_process_wut()
1250 if (numbytes % srcblock != 0 || numbytes % dstblock != 0) { in tpc_process_wut()
1256 list->segbytes = numbytes; in tpc_process_wut()
1257 list->segsectors = numbytes / dstblock; in tpc_process_wut()
1264 while (donebytes < numbytes) { in tpc_process_wut()
1265 roundbytes = numbytes - donebytes; in tpc_process_wut()