Lines Matching refs:errstate
1233 struct bofi_errstate *errstate, in add_edef() argument
1253 errdef->log.logsize = errstate->log.logsize = in add_edef()
1256 errdef->log.logsize = errstate->log.logsize = 0; in add_edef()
1258 errdef->log.logbase = errstate->log.logbase = in add_edef()
1281 errstate->errdef_handle = errdef->errdef_handle; in add_edef()
1287 struct bofi_errstate *errstate, in collect_state() argument
1292 size_t ls = errstate->log.logsize; in collect_state()
1298 errstate->log.logsize = 0; /* only copy the driver log once */ in collect_state()
1301 errstate->log.logsize); in collect_state()
1304 if (ioctl(fd, cmd, errstate) == -1 && errno != EINTR) { in collect_state()
1312 errstate->log.entries, ls, in collect_state()
1314 errdef->access_type, errstate->log.wrapcnt); in collect_state()
1317 errstate->access_count, errstate->fail_count, in collect_state()
1318 errstate->log.flags, errstate->log.wrapcnt); in collect_state()
1321 if ((errstate->log.flags & BOFI_LOG_WRAP) && in collect_state()
1322 errstate->access_count > 0) in collect_state()
1324 if (errstate->access_count <= 1 && in collect_state()
1325 errstate->fail_count == 0 && in collect_state()
1326 errstate->acc_chk == 0) { in collect_state()
1328 errstate->log.entries); in collect_state()
1333 errstate->access_count, errstate->fail_count, in collect_state()
1334 errstate->acc_chk); in collect_state()
1337 errstate->log.logsize, errstate->log.entries, in collect_state()
1338 errdef->offset, errdef->len, errstate->access_count); in collect_state()
1340 } while (rval == 0 && errstate->log.entries < ls); in collect_state()
1343 errstate->log.logsize = ls; in collect_state()
1344 if (errstate->log.entries != 0) { in collect_state()
1345 if (ioctl(fd, BOFI_CHK_STATE, errstate) == -1) { in collect_state()
1348 Progname, errstate->log.entries, strerror(errno)); in collect_state()
1353 errstate->log.entries, errstate->access_count, in collect_state()
1354 errstate->log.start_time, errstate->log.stop_time); in collect_state()
1356 log2errdefs(fd, errdef, &(errstate->log), devpath); in collect_state()