Lines Matching defs:buf
41 char buf[32];
42 size_t cnt = min(count, sizeof(buf)-1);
43 if (copy_from_user(buf, user_buf, cnt))
46 while (cnt > 0 && (buf[cnt-1] == ' ' || buf[cnt-1] == '\n'))
48 buf[cnt] = '\0';
49 if (strcmp(buf, "all") == 0) {
52 } else if (strcmp(buf, "fb") == 0) {
168 /* record a flash address to buf (bounds check to be done by caller) */
169 static int _picolcd_flash_setaddr(struct picolcd_data *data, u8 *buf, long off)
171 buf[0] = off & 0xff;
172 buf[1] = (off >> 8) & 0xff;
174 buf[2] = (off >> 16) & 0xff;