Lines Matching defs:length
37 static void papr_sysparm_buf_set_length(struct papr_sysparm_buf *buf, size_t length)
39 WARN_ONCE(length > sizeof(buf->val),
40 "bogus length %zu, clamping to safe value", length);
41 length = min(sizeof(buf->val), length);
42 buf->len = cpu_to_be16(length);
47 * returning them to callers. Ensures the encoded length of valid data
79 * in @buf. The result includes a be16 length header followed by the
213 * The length of valid data that userspace claims to be in
216 if (get_user(len, &user_iob->length))
248 if (put_user(len_out, &user_iob->length))