Lines Matching defs:eachp
478 * raid_rplylst_t *eachp - pointer to the replay list entry
486 raid_rplylst_t *eachp,
502 if ((eachp->rpl_pwhdr1.rpw_magic == RAID_PWMAGIC &&
503 eachp->rpl_pwhdr2.rpw_magic == RAID_PWMAGIC) &&
504 (eachp->rpl_pwhdr1.rpw_blkcnt == eachp->rpl_pwhdr2.rpw_blkcnt)) {
506 ASSERT(eachp->rpl_pwhdr1.rpw_id == eachp->rpl_pwhdr2.rpw_id);
509 error = raid_pw_read(un, eachp->rpl_column1,
510 eachp->rpl_slot1, rwbuf1);
511 pwhp1 = &eachp->rpl_pwhdr1;
523 error = raid_pw_read(un, eachp->rpl_column2, eachp->rpl_slot2,
525 pwhp2 = &eachp->rpl_pwhdr2;
538 raid_rply_verify(un, eachp->rpl_column1, good_pw1, &do_1,
539 eachp->rpl_column2, good_pw2, &do_2);
543 error = raid_pw_write(un, eachp->rpl_column1,
544 &eachp->rpl_pwhdr1, rwbuf1);
550 error = raid_pw_write(un, eachp->rpl_column2,
551 &eachp->rpl_pwhdr2, rwbuf2);
558 if (eachp->rpl_pwhdr1.rpw_magic == RAID_PWMAGIC) {
563 if ((eachp->rpl_pwhdr1.rpw_columnnum == -1) ||
564 (! COLUMN_ISUP(un, eachp->rpl_pwhdr1.rpw_columnnum))) {
566 error = raid_pw_read(un, eachp->rpl_column1,
567 eachp->rpl_slot1, rwbuf1);
571 pwhp1 = &eachp->rpl_pwhdr1;
575 error = raid_pw_write(un, eachp->rpl_column1,
576 &eachp->rpl_pwhdr1, rwbuf1);
589 replay_line(mr_unit_t *un, raid_rplylst_t *eachp, raid_rplybuf_t *rplybuf)
603 if (eachp->rpl_id == 0)
615 cnt = eachp->rpl_colcnt;
616 id = eachp->rpl_id;
617 pwhdr1 = &eachp->rpl_pwhdr1;
621 error = raid_pw_read(un, eachp->rpl_column1, eachp->rpl_slot1, rplybuf);
635 eachpn = eachp->rpl_next;
667 eachpn = eachp;
717 raid_rplylst_t **prevp, *eachp;
791 while ((eachp = *prevp) != NULL) {
796 if (eachp->rpl_colcnt <= 2)
797 error = raid_rplyeach(un, eachp, &rwbuf1, &rwbuf2);
799 error = replay_line(un, eachp, &rwbuf1);
806 rpl_delete(prevp, eachp);
829 while ((eachp = *prevp) != NULL) {
830 rpl_delete(prevp, eachp);