Lines Matching +full:left +full:-
1 // SPDX-License-Identifier: GPL-2.0-only
58 return -EINVAL; in proc_do_xprt()
71 size_t left, len; in proc_dodebug() local
78 left = *lenp; in proc_dodebug()
82 while (left && isspace(*p)) { in proc_dodebug()
83 left--; in proc_dodebug()
86 if (!left) in proc_dodebug()
89 if (left > sizeof(tmpbuf) - 1) in proc_dodebug()
90 return -EINVAL; in proc_dodebug()
91 memcpy(tmpbuf, p, left); in proc_dodebug()
92 tmpbuf[left] = '\0'; in proc_dodebug()
96 left -= (s - tmpbuf); in proc_dodebug()
97 if (left && !isspace(*s)) in proc_dodebug()
98 return -EINVAL; in proc_dodebug()
99 while (left && isspace(*s)) { in proc_dodebug()
100 left--; in proc_dodebug()
104 left = 0; in proc_dodebug()
105 *(unsigned int *) table->data = value; in proc_dodebug()
107 if (strcmp(table->procname, "rpc_debug") == 0) in proc_dodebug()
110 len = sprintf(tmpbuf, "0x%04x", *(unsigned int *) table->data); in proc_dodebug()
111 if (len > left) in proc_dodebug()
112 len = left; in proc_dodebug()
114 if ((left -= len) > 0) { in proc_dodebug()
116 left--; in proc_dodebug()
121 *lenp -= left; in proc_dodebug()