Lines Matching refs:big

115  * big stripe unit.
117 * in the new big unit.
155 * given a big stripe unit, compute the size of an appropriate
189 * stripe_convert(small, big, dir)
193 * big is the address of a ms_unit_t structure
198 * if dir is BIG2SMALL, convert from big to small (updating old records)
199 * if dir is SMALL2BIG, convert from small to big (snarfing old records)
201 * Caveat emptor: big and small must be well allocated memory areas.
205 stripe_convert(caddr_t small, caddr_t big, int direction)
210 ms_unit_t *big_un = (ms_unit_t *)big;
286 * mirror_convert(small, big, dir)
290 * big is the address of a mm_unit_t structure
295 * if dir is BIG2SMALL, convert from big to small (updating old records)
296 * if dir is SMALL2BIG, convert from small to big (snarfing old records)
298 * Caveat emptor: big and small must be well allocated memory areas.
301 mirror_convert(caddr_t small, caddr_t big, int direction)
306 mm_unit_t *big_un = (mm_unit_t *)big;
374 * raid_convert(small, big, dir)
378 * big is the address of a mr_unit_t structure
383 * if dir is BIG2SMALL, convert from big to small (updating old records)
384 * if dir is SMALL2BIG, convert from small to big (snarfing old records)
386 * Caveat emptor: big and small must be well allocated memory areas.
389 raid_convert(caddr_t small, caddr_t big, int direction)
395 mr_unit_t *big_un = (mr_unit_t *)big;
430 * softpart_convert(small, big, dir)
434 * big is the address of a mp_unit_t structure
439 * if dir is BIG2SMALL, convert from big to small (updating old records)
440 * if dir is SMALL2BIG, convert from small to big (snarfing old records)
442 * Caveat emptor: big and small must be well allocated memory areas.
445 softpart_convert(caddr_t small, caddr_t big, int direction)
451 mp_unit_t *big_un = (mp_unit_t *)big;
481 * if dir is BIG2SMALL, convert from big to small (updating old records)
482 * if dir is SMALL2BIG, convert from small to big (snarfing old records)
492 mt_unit_t *big = (mt_unit_t *)bigp;
495 MDC_UNIT_SMALL2BIG(small, big);
496 big->c.un_size =
498 big->un_flags = small->un_flags;
499 big->un_m_key = small->un_m_key;
500 big->un_m_dev = md_expldev(small->un_m_dev);
501 big->un_l_key = small->un_l_key;
502 big->un_l_dev = md_expldev(small->un_l_dev);
503 big->un_l_sblk = small->un_l_sblk;
504 big->un_l_pwsblk = small->un_l_pwsblk;
505 big->un_l_nblks = small->un_l_nblks;
506 big->un_l_tblks = small->un_l_tblks;
507 big->un_l_head = small->un_l_head;
508 big->un_l_tail = small->un_l_tail;
509 big->un_l_resv = small->un_l_resv;
510 big->un_l_maxresv = small->un_l_maxresv;
511 big->un_l_recid = small->un_l_recid;
512 big->un_l_error = small->un_l_error;
513 big->un_s_dev = md_expldev(small->un_s_dev);
514 big->un_debug = small->un_debug;
515 big->un_dev = md_expldev(small->un_dev);
516 big->un_logreset = small->un_logreset;
517 big->un_l_maxtransfer = small->un_l_maxtransfer;
518 big->un_timestamp.tv_sec = small->un_timestamp.tv_sec;
519 big->un_timestamp.tv_usec = small->un_timestamp.tv_usec;
520 big->un_l_timestamp.tv_sec = small->un_l_timestamp.tv_sec;
521 big->un_l_timestamp.tv_usec = small->un_l_timestamp.tv_usec;
524 MDC_UNIT_BIG2SMALL(big, small);
527 small->un_flags = big->un_flags;
528 small->un_m_key = big->un_m_key;
529 small->un_m_dev = md_cmpldev(big->un_m_dev);
530 small->un_l_key = big->un_l_key;
531 small->un_l_dev = md_cmpldev(big->un_l_dev);
532 small->un_l_sblk = big->un_l_sblk;
533 small->un_l_pwsblk = big->un_l_pwsblk;
534 small->un_l_nblks = big->un_l_nblks;
535 small->un_l_tblks = big->un_l_tblks;
536 small->un_l_head = big->un_l_head;
537 small->un_l_tail = big->un_l_tail;
538 small->un_l_resv = big->un_l_resv;
539 small->un_l_maxresv = big->un_l_maxresv;
540 small->un_l_maxtransfer = big->un_l_maxtransfer;
541 small->un_l_recid = big->un_l_recid;
542 small->un_l_error = big->un_l_error;
543 small->un_s_dev = md_cmpldev(big->un_s_dev);
544 small->un_debug = big->un_debug;
545 small->un_dev = md_cmpldev(big->un_dev);
546 small->un_logreset = big->un_logreset;
547 small->un_timestamp.tv_sec = big->un_timestamp.tv_sec;
548 small->un_timestamp.tv_usec = big->un_timestamp.tv_usec;
549 small->un_l_timestamp.tv_sec = big->un_l_timestamp.tv_sec;
550 small->un_l_timestamp.tv_usec = big->un_l_timestamp.tv_usec;
566 * if dir is BIG2SMALL, convert from big to small (updating old records)
567 * if dir is SMALL2BIG, convert from small to big (snarfing old records)
577 ml_unit_t *big = (ml_unit_t *)bigp;
580 big->un_revision = small->un_revision;
581 big->un_recid = small->un_recid;
582 big->un_key = small->un_key;
583 big->un_dev = md_expldev(small->un_dev);
584 big->un_opencnt = small->un_opencnt;
585 big->un_transcnt = small->un_transcnt;
586 big->un_head_lof = small->un_head_lof;
587 big->un_head_ident = small->un_head_ident;
588 big->un_tail_lof = small->un_tail_lof;
589 big->un_tail_ident = small->un_tail_ident;
590 big->un_bol_lof = small->un_bol_lof;
591 big->un_eol_lof = small->un_eol_lof;
592 big->un_nblks = small->un_nblks;
593 big->un_tblks = small->un_tblks;
594 big->un_maxtransfer = small->un_maxtransfer;
595 big->un_status = small->un_status;
596 big->un_maxresv = small->un_maxresv;
597 big->un_pwsblk = small->un_pwsblk;
598 big->un_devbsize = small->un_devbsize;
599 big->un_resv = small->un_resv;
600 big->un_resv_wantin = small->un_resv_wantin;
601 big->un_error = small->un_error;
602 big->un_tid = small->un_tid;
603 big->un_head_tid = small->un_head_tid;
604 big->un_timestamp.tv_sec = small->un_timestamp.tv_sec;
605 big->un_timestamp.tv_usec = small->un_timestamp.tv_usec;
608 small->un_revision = big->un_revision;
609 small->un_recid = big->un_recid;
610 small->un_key = big->un_key;
611 small->un_dev = md_cmpldev(big->un_dev);
612 small->un_opencnt = big->un_opencnt;
613 small->un_transcnt = big->un_transcnt;
614 small->un_head_lof = big->un_head_lof;
615 small->un_head_ident = big->un_head_ident;
616 small->un_tail_lof = big->un_tail_lof;
617 small->un_tail_ident = big->un_tail_ident;
618 small->un_bol_lof = big->un_bol_lof;
619 small->un_eol_lof = big->un_eol_lof;
620 small->un_nblks = big->un_nblks;
621 small->un_tblks = big->un_tblks;
622 small->un_maxtransfer = big->un_maxtransfer;
623 small->un_status = big->un_status;
624 small->un_maxresv = big->un_maxresv;
625 small->un_pwsblk = big->un_pwsblk;
626 small->un_devbsize = big->un_devbsize;
627 small->un_resv = big->un_resv;
628 small->un_resv_wantin = big->un_resv_wantin;
629 small->un_error = big->un_error;
630 small->un_tid = big->un_tid;
631 small->un_head_tid = big->un_head_tid;
632 small->un_timestamp.tv_sec = big->un_timestamp.tv_sec;
633 small->un_timestamp.tv_usec = big->un_timestamp.tv_usec;
638 * hs_convert(small, big, dir)
642 * big is the address of a hot_spare_t structure
647 * if dir is BIG2SMALL, convert from big to small (updating old records)
648 * if dir is SMALL2BIG, convert from small to big (snarfing old records)
650 * Caveat emptor: big and small must be well allocated memory areas.
653 hs_convert(caddr_t small, caddr_t big, int direction)
659 hot_spare_t *big_un = (hot_spare_t *)big;