Lines Matching refs:resid
973 size_t resid; in watch_copyinstr() local
977 if ((resid = maxlength) == 0) in watch_copyinstr()
980 while (resid && error == 0) { in watch_copyinstr()
990 (((uintptr_t)uaddr) & PAGEOFFSET)) > resid) in watch_copyinstr()
991 part = resid; in watch_copyinstr()
1025 resid -= size; in watch_copyinstr()
1026 if (error == ENAMETOOLONG && resid > 0) in watch_copyinstr()
1037 while (resid && watchcode && ta && len > part && error == 0 && in watch_copyinstr()
1040 if ((part = PAGESIZE) > resid) in watch_copyinstr()
1041 part = resid; in watch_copyinstr()
1055 resid -= size; in watch_copyinstr()
1056 if (error == ENAMETOOLONG && resid > 0) in watch_copyinstr()
1075 *lencopied = maxlength - resid; in watch_copyinstr()
1087 size_t resid; in watch_copyoutstr() local
1091 if ((resid = maxlength) == 0) in watch_copyoutstr()
1094 while (resid && error == 0) { in watch_copyoutstr()
1104 (((uintptr_t)uaddr) & PAGEOFFSET)) > resid) in watch_copyoutstr()
1105 part = resid; in watch_copyoutstr()
1132 resid -= size; in watch_copyoutstr()
1133 if (error == ENAMETOOLONG && resid > 0) in watch_copyoutstr()
1144 while (resid && watchcode && ta && len > part && error == 0 && in watch_copyoutstr()
1147 if ((part = PAGESIZE) > resid) in watch_copyoutstr()
1148 part = resid; in watch_copyoutstr()
1162 resid -= size; in watch_copyoutstr()
1163 if (error == ENAMETOOLONG && resid > 0) in watch_copyoutstr()
1182 *lencopied = maxlength - resid; in watch_copyoutstr()