Lines Matching defs:buf
36 char buf[6];
47 memset(buf, POISON, sizeof(buf));
49 max_count = sizeof(buf) - 2; /* Space for null and to verify overflow */
60 written = strscpy_pad(buf, src, count);
67 if (strncmp(buf, src, count - 1) != 0) {
71 if (buf[count - 1] != '\0') {
78 if (buf[i] != src[i]) {
79 pr_err("buf[i]==%c != src[i]==%c\n", buf[i], src[i]);
85 if (buf[count - 1] != '\0') {
93 if (buf[index] != '\0') {
99 nr_bytes_poison = sizeof(buf) - chars - terminator - pad;
101 index = sizeof(buf) - 1 - i; /* Check from the end back */
102 if (buf[index] != POISON) {