Lines Matching refs:resid
975 size_t resid; in watch_copyinstr() local
979 if ((resid = maxlength) == 0) in watch_copyinstr()
982 while (resid && error == 0) { in watch_copyinstr()
992 (((uintptr_t)uaddr) & PAGEOFFSET)) > resid) in watch_copyinstr()
993 part = resid; in watch_copyinstr()
1027 resid -= size; in watch_copyinstr()
1028 if (error == ENAMETOOLONG && resid > 0) in watch_copyinstr()
1039 while (resid && watchcode && ta && len > part && error == 0 && in watch_copyinstr()
1042 if ((part = PAGESIZE) > resid) in watch_copyinstr()
1043 part = resid; in watch_copyinstr()
1057 resid -= size; in watch_copyinstr()
1058 if (error == ENAMETOOLONG && resid > 0) in watch_copyinstr()
1077 *lencopied = maxlength - resid; in watch_copyinstr()
1089 size_t resid; in watch_copyoutstr() local
1093 if ((resid = maxlength) == 0) in watch_copyoutstr()
1096 while (resid && error == 0) { in watch_copyoutstr()
1106 (((uintptr_t)uaddr) & PAGEOFFSET)) > resid) in watch_copyoutstr()
1107 part = resid; in watch_copyoutstr()
1134 resid -= size; in watch_copyoutstr()
1135 if (error == ENAMETOOLONG && resid > 0) in watch_copyoutstr()
1146 while (resid && watchcode && ta && len > part && error == 0 && in watch_copyoutstr()
1149 if ((part = PAGESIZE) > resid) in watch_copyoutstr()
1150 part = resid; in watch_copyoutstr()
1164 resid -= size; in watch_copyoutstr()
1165 if (error == ENAMETOOLONG && resid > 0) in watch_copyoutstr()
1184 *lencopied = maxlength - resid; in watch_copyoutstr()