Lines Matching refs:to
4 * The contents of this file are subject to the terms of the
23 * Use is subject to license terms.
44 #define MD_PRV_DELETE 0x0002 /* Record pending to be deleted */
45 #define MD_PRV_COMMIT 0x0004 /* Record pending to be commited */
46 #define MD_PRV_CLEANUP 0x0008 /* Record pending to be cleaned up */
67 #define MDDB_E_NOSPACE (-6) /* no space to create record */
69 /* to perform requested operation */
71 #define MDDB_E_NOTOWNER (-9) /* have not been told to grab this set */
95 #define MDDB_C_SET_MN_STALE 0x0008 /* Set MN set to stale */
99 * Defines used to set/reset new master flag in set structure.
100 * Used during reconfig cycle to determine quickly if there is
121 * Set struct used by all parts of the driver, to store anchor pointers.
133 * by the ioctl lock and there is no need to add extra protection to them.
176 * If a MN diskset, master block revision is set to MDDB_REV_MNMB.
178 * for a MN set, setting the revision field to a different
189 * order to accomodate up to MD_MNMAXSIDES nodes in a diskset
191 * The revision is set to MDDB_REV_MNLB which is a change of the
196 * order to accomodate up to MD_MNMAXSIDES nodes in a diskset
198 * The revision is set to MDDB_REV_MNLN which is a change of the
228 * Transfer record block friendly name status to unit/hs structure.
270 * into that array. This means that the whole array may need to be
271 * searched in order to find the correct information given a side number.
333 * Several device id's may share one disk block in an effort to
365 * This list is used to easily write out all disk blocks containing
371 caddr_t db_ptr; /* Ptr to incore Block(s) */
372 struct mddb_did_db *db_next; /* Ptr to next in list */
378 * Used to manage placement of device IDs in disk blocks.
386 struct mddb_did_free *free_next; /* Ptr to next in list */
391 * Contains pointer to Device ID Disk Block list and
393 * Also contains incore array of pointers to device IDs. Pointers
395 * shortcut to find incore device IDs.
401 ddi_devid_t did_ic_devid[MDDB_NLB]; /* Ptr to device IDs */
451 * into that array. This means that the whole array may need to be
452 * searched in order to find the correct information given a side number.
500 * - MB's provide the logical to physical block translation,
508 uint32_t mb_next; /* incore to next mb */
510 struct mddb_mb *mb_next; /* incore to next mb */
540 * record was committed not the time it was written to a particular
668 #define de32tode(from, to) \
671 to->de_rb_userdata = NULL; \
672 to->de_owner_nodeid = MD_MN_INVALID_NID; \
673 to->de_next = (struct mddb_de_ic *)(uintptr_t)from->de32_next; \
674 to->de_rb = (mddb_rb32_t *)(uintptr_t)from->de32_rb; \
675 to->de_recid = from->de32_recid; \
676 to->de_type1 = from->de32_type1; \
677 to->de_type2 = from->de32_type2; \
678 to->de_reqsize = from->de32_reqsize; \
679 to->de_recsize = from->de32_recsize; \
680 to->de_blkcount = from->de32_blkcount; \
681 to->de_flags = from->de32_flags; \
682 to->de_optinfo[0] = from->de32_optinfo[0]; \
683 to->de_optinfo[1] = from->de32_optinfo[1]; \
685 to->de_blks[i] = from->de32_blks[i]; \
688 #define detode32(from, to) \
691 to->de32_next = (uint32_t)(uintptr_t)from->de_next; \
692 to->de32_rb = (uint32_t)(uintptr_t)from->de_rb; \
693 to->de32_recid = from->de_recid; \
694 to->de32_type1 = from->de_type1; \
695 to->de32_type2 = from->de_type2; \
696 to->de32_reqsize = from->de_reqsize; \
697 to->de32_recsize = from->de_recsize; \
698 to->de32_blkcount = from->de_blkcount; \
699 to->de32_flags = from->de_flags; \
700 to->de32_optinfo[0] = from->de_optinfo[0]; \
701 to->de32_optinfo[1] = from->de_optinfo[1]; \
703 to->de32_blks[i] = from->de_blks[i]; \
706 #define db32todb(from, to) \
707 to->db_magic = from->db32_magic; \
708 to->db_revision = from->db32_revision; \
709 to->db_checksum = from->db32_checksum; \
710 to->db_blknum = from->db32_blknum; \
711 to->db_next = (struct mddb_db *)(uintptr_t)from->db32_next; \
712 to->db_nextblk = from->db32_nextblk; \
713 to->db_timestamp = from->db32_timestamp; \
714 to->db_recsum = from->db32_recsum; \
715 to->db_firstentry = (mddb_de_ic_t *)(uintptr_t)from->db32_firstentry;
717 #define dbtodb32(from, to) \
718 to->db32_magic = from->db_magic; \
719 to->db32_revision = from->db_revision; \
720 to->db32_checksum = from->db_checksum; \
721 to->db32_blknum = from->db_blknum; \
722 to->db32_next = (uint32_t)(uintptr_t)from->db_next; \
723 to->db32_nextblk = from->db_nextblk; \
724 to->db32_timestamp = from->db_timestamp; \
725 to->db32_recsum = from->db_recsum; \
726 to->db32_firstentry = (uint32_t)(uintptr_t)from->db_firstentry;
778 * We need to keep s_ident and s_inittime 32 bit. They are used in mddb_lb
788 /* May be cast to mddb_mnlb_t */
792 /* May be cast to mddb_mnln_t */
801 int s_mn_parseflags_sending; /* parse flgs sent to slaves */
924 /* Flags passed to selectreplicas - not a bit mask */
929 /* values to disk. Don't write */
932 /* Flags passed to writestart and writecopy */
933 #define MDDB_WRITECOPY_ALL 1 /* Write all incore mddb to disk */
934 #define MDDB_WRITECOPY_SYNC 2 /* Write incore mddb to disk except */
944 * MN diskset definitions used to determine if a slave can write
945 * directly to the mddb. ONLY_MASTER only allows the master node
946 * to write to the mddb. ANY_NODE allows any node to write
947 * to the mddb.