Lines Matching refs:ps
68 struct pstore_private *ps = s->private; in pstore_ftrace_seq_start() local
75 data->off = ps->size % REC_SIZE; in pstore_ftrace_seq_start()
77 if (data->off + REC_SIZE > ps->size) { in pstore_ftrace_seq_start()
93 struct pstore_private *ps = s->private; in pstore_ftrace_seq_next() local
97 if (data->off + REC_SIZE > ps->size) in pstore_ftrace_seq_next()
106 struct pstore_private *ps = s->private; in pstore_ftrace_seq_show() local
108 struct pstore_ftrace_record *rec = (void *)(ps->data + data->off); in pstore_ftrace_seq_show()
124 static int pstore_check_syslog_permissions(struct pstore_private *ps) in pstore_check_syslog_permissions() argument
126 switch (ps->type) { in pstore_check_syslog_permissions()
140 struct pstore_private *ps = sf->private; in pstore_file_read() local
142 if (ps->type == PSTORE_TYPE_FTRACE) in pstore_file_read()
144 return simple_read_from_buffer(userbuf, count, ppos, ps->data, ps->size); in pstore_file_read()
149 struct pstore_private *ps = inode->i_private; in pstore_file_open() local
154 err = pstore_check_syslog_permissions(ps); in pstore_file_open()
158 if (ps->type == PSTORE_TYPE_FTRACE) in pstore_file_open()
166 sf->private = ps; in pstore_file_open()