Lines Matching refs:p
19 static char *extract_string(struct prepend_buffer *p) in extract_string() argument
21 if (likely(p->len >= 0)) in extract_string()
22 return p->buf; in extract_string()
26 static bool prepend_char(struct prepend_buffer *p, unsigned char c) in prepend_char() argument
28 if (likely(p->len > 0)) { in prepend_char()
29 p->len--; in prepend_char()
30 *--p->buf = c; in prepend_char()
33 p->len = -1; in prepend_char()
57 static bool prepend(struct prepend_buffer *p, const char *str, int namelen) in prepend() argument
60 if (p->len < 0) in prepend()
64 if (p->len < namelen) { in prepend()
66 str += namelen - p->len; in prepend()
67 p->buf -= p->len; in prepend()
68 prepend_copy(p->buf, str, p->len); in prepend()
69 p->len = -1; in prepend()
74 p->len -= namelen; in prepend()
75 p->buf -= namelen; in prepend()
76 return prepend_copy(p->buf, str, namelen); in prepend()
96 static bool prepend_name(struct prepend_buffer *p, const struct qstr *name) in prepend_name() argument
101 return prepend(p, dname, dlen) && prepend_char(p, '/'); in prepend_name()
105 const struct path *root, struct prepend_buffer *p) in __prepend_path() argument
133 if (!prepend_name(p, &dentry->d_name)) in __prepend_path()
158 struct prepend_buffer *p) in prepend_path() argument
170 b = *p; in prepend_path()
190 b = *p; in prepend_path()
192 if (b.len == p->len) in prepend_path()
195 *p = b; in prepend_path()
331 static char *__dentry_path(const struct dentry *d, struct prepend_buffer *p) in __dentry_path() argument
340 b = *p; in __dentry_path()
357 if (b.len == p->len) in __dentry_path()