Lines Matching defs:ed
281 erpt_dump_t ed;
288 if (pread64(fd, &ed, sizeof (ed), off) != sizeof (ed)) {
294 if (ed.ed_magic == 0 && ed.ed_size == 0)
297 if (ed.ed_magic == 0) {
298 off += sizeof (ed) + ed.ed_size;
302 if (ed.ed_magic != ERPT_MAGIC) {
313 (u_longlong_t)off, ed.ed_magic, ERPT_MAGIC);
317 if (ed.ed_size > ERPT_DATA_SZ) {
320 (u_longlong_t)off, ed.ed_size);
324 if (pread64(fd, nvbuf, ed.ed_size,
325 off + sizeof (ed)) != ed.ed_size) {
334 ed.ed_size)) != ed.ed_chksum) {
337 (u_longlong_t)off, chksum, ed.ed_chksum);
344 ed.ed_size, &nvl, &fmd.d_nva)) != 0) {
358 if (ed.ed_hrt_nsec != 0)
359 hrt = ed.ed_hrt_nsec;
361 hrt = ed.ed_hrt_base;
378 tod.ftv_sec = ed.ed_tod_base.sec;
379 tod.ftv_nsec = ed.ed_tod_base.nsec;
380 fmd_time_hrt2tod(ed.ed_hrt_base, &tod, hrt, &ftv);
394 ed.ed_magic = 0;
396 if (pwrite64(fd, &ed, sizeof (ed), off) != sizeof (ed)) {
401 off += sizeof (ed) + ed.ed_size;