Lines Matching refs:valid
19 size_t valid; member
45 buf->valid = 0; in tty_audit_buf_alloc()
56 WARN_ON(buf->valid != 0); in tty_audit_buf_free()
93 if (buf->valid == 0) in tty_audit_buf_push()
96 buf->valid = 0; in tty_audit_buf_push()
99 tty_audit_log("tty", buf->dev, buf->data, buf->valid); in tty_audit_buf_push()
100 buf->valid = 0; in tty_audit_buf_push()
237 run = N_TTY_BUF_SIZE - buf->valid; in tty_audit_add_data()
240 memcpy(buf->data + buf->valid, data, run); in tty_audit_add_data()
241 buf->valid += run; in tty_audit_add_data()
244 if (buf->valid == N_TTY_BUF_SIZE) in tty_audit_add_data()