Lines Matching refs:per
48 struct per_transfer *per = userdata; in tool_read_cb() local
49 struct OperationConfig *config = per->config; in tool_read_cb()
51 if((per->uploadfilesize != -1) && in tool_read_cb()
52 (per->uploadedsofar == per->uploadfilesize)) { in tool_read_cb()
59 long msdelta = tvdiff(now, per->start); in tool_read_cb()
77 FD_SET(per->infd, &bits); in tool_read_cb()
78 if(!select(per->infd + 1, &bits, NULL, NULL, &timeout)) in tool_read_cb()
84 rc = read(per->infd, buffer, sz*nmemb); in tool_read_cb()
94 if((per->uploadfilesize != -1) && in tool_read_cb()
95 (per->uploadedsofar + rc > per->uploadfilesize)) { in tool_read_cb()
97 curl_off_t delta = per->uploadedsofar + rc - per->uploadfilesize; in tool_read_cb()
98 warnf(per->config->global, "File size larger in the end than when " in tool_read_cb()
101 rc = (ssize_t)(per->uploadfilesize - per->uploadedsofar); in tool_read_cb()
117 struct per_transfer *per = clientp; in tool_readbusy_cb() local
118 struct OperationConfig *config = per->config; in tool_readbusy_cb()
148 curl_easy_pause(per->curl, CURLPAUSE_CONT); in tool_readbusy_cb()
155 return per->noprogress ? 0 : CURL_PROGRESSFUNC_CONTINUE; in tool_readbusy_cb()