Lines Matching refs:len
14 int len; member
17 struct prepend_buffer __name = {.buf = __buf + __len, .len = __len}
21 if (likely(p->len >= 0)) in extract_string()
28 if (likely(p->len > 0)) { in prepend_char()
29 p->len--; in prepend_char()
33 p->len = -1; in prepend_char()
48 static bool prepend_copy(void *dst, const void *src, int len) in prepend_copy() argument
50 if (unlikely(copy_from_kernel_nofault(dst, src, len))) { in prepend_copy()
51 memset(dst, 'x', len); in prepend_copy()
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()
99 u32 dlen = READ_ONCE(name->len); in prepend_name()
192 if (b.len == p->len) in prepend_path()
323 prepend(&b, dentry->d_name.name, dentry->d_name.len); in simple_dname()
357 if (b.len == p->len) in __dentry_path()
428 unsigned len; in SYSCALL_DEFINE2() local
436 len = PATH_MAX - b.len; in SYSCALL_DEFINE2()
437 if (unlikely(len > PATH_MAX)) in SYSCALL_DEFINE2()
439 else if (unlikely(len > size)) in SYSCALL_DEFINE2()
441 else if (copy_to_user(buf, b.buf, len)) in SYSCALL_DEFINE2()
444 error = len; in SYSCALL_DEFINE2()