Lines Matching refs:dinfo
999 struct devlog_info *dinfo = seq->private; in devlog_show() local
1007 index = dinfo->first + fidx; in devlog_show()
1008 if (index >= dinfo->nentries) in devlog_show()
1009 index -= dinfo->nentries; in devlog_show()
1010 e = &dinfo->log[index]; in devlog_show()
1042 static inline void *devlog_get_idx(struct devlog_info *dinfo, loff_t pos) in devlog_get_idx() argument
1044 if (pos > dinfo->nentries) in devlog_get_idx()
1052 struct devlog_info *dinfo = seq->private; in devlog_start() local
1055 ? devlog_get_idx(dinfo, *pos) in devlog_start()
1061 struct devlog_info *dinfo = seq->private; in devlog_next() local
1064 return devlog_get_idx(dinfo, *pos); in devlog_next()
1085 struct devlog_info *dinfo; in devlog_open() local
1098 dinfo = __seq_open_private(file, &devlog_seq_ops, in devlog_open()
1099 sizeof(*dinfo) + dparams->size); in devlog_open()
1100 if (!dinfo) in devlog_open()
1105 dinfo->nentries = (dparams->size / sizeof(struct fw_devlog_e)); in devlog_open()
1106 dinfo->first = 0; in devlog_open()
1109 dparams->start, dparams->size, (__be32 *)dinfo->log, in devlog_open()
1120 for (fseqno = ~((u32)0), index = 0; index < dinfo->nentries; index++) { in devlog_open()
1121 struct fw_devlog_e *e = &dinfo->log[index]; in devlog_open()
1130 dinfo->first = index; in devlog_open()