Searched refs:wmax (Results 1 – 2 of 2) sorted by relevance
587 size_t wmax = get_max_body_write_len(data, data->req.maxdownload); in cw_download_write() local588 if(nwrite > wmax) { in cw_download_write()589 excess_len = nbytes - wmax; in cw_download_write()590 nwrite = wmax; in cw_download_write()593 if(nwrite == wmax) { in cw_download_write()601 size_t wmax = get_max_body_write_len(data, data->set.max_filesize); in cw_download_write() local602 if(nwrite > wmax) { in cw_download_write()603 nwrite = wmax; in cw_download_write()
275 static void clip_interval(int wmax, int *x, int *w, int *dx) in clip_interval() argument285 if (*x + *w > wmax) in clip_interval()286 *w = wmax - *x; in clip_interval()