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