Lines Matching refs:left
82 size_t left, len; in proc_dodebug() local
89 left = *lenp; in proc_dodebug()
92 if (!access_ok(VERIFY_READ, buffer, left)) in proc_dodebug()
95 while (left && __get_user(c, p) >= 0 && isspace(c)) in proc_dodebug()
96 left--, p++; in proc_dodebug()
97 if (!left) in proc_dodebug()
100 if (left > sizeof(tmpbuf) - 1) in proc_dodebug()
102 if (copy_from_user(tmpbuf, p, left)) in proc_dodebug()
104 tmpbuf[left] = '\0'; in proc_dodebug()
106 for (s = tmpbuf, value = 0; '0' <= *s && *s <= '9'; s++, left--) in proc_dodebug()
110 while (left && isspace(*s)) in proc_dodebug()
111 left--, s++; in proc_dodebug()
117 if (!access_ok(VERIFY_WRITE, buffer, left)) in proc_dodebug()
120 if (len > left) in proc_dodebug()
121 len = left; in proc_dodebug()
124 if ((left -= len) > 0) { in proc_dodebug()
127 left--; in proc_dodebug()
132 *lenp -= left; in proc_dodebug()