Lines Matching refs:valid
18 size_t valid; member
44 buf->valid = 0; in tty_audit_buf_alloc()
55 WARN_ON(buf->valid != 0); in tty_audit_buf_free()
92 if (buf->valid == 0) in tty_audit_buf_push()
95 buf->valid = 0; in tty_audit_buf_push()
98 tty_audit_log("tty", buf->dev, buf->data, buf->valid); in tty_audit_buf_push()
99 buf->valid = 0; in tty_audit_buf_push()
236 run = N_TTY_BUF_SIZE - buf->valid; in tty_audit_add_data()
239 memcpy(buf->data + buf->valid, data, run); in tty_audit_add_data()
240 buf->valid += run; in tty_audit_add_data()
243 if (buf->valid == N_TTY_BUF_SIZE) in tty_audit_add_data()