Lines Matching refs:cip
584 fmd_case_impl_t *cip = (fmd_case_impl_t *)cp; in fmd_ckpt_resv_case() local
588 if (cip->ci_xprt != NULL) in fmd_ckpt_resv_case()
591 n = fmd_buf_hash_count(&cip->ci_bufs); in fmd_ckpt_resv_case()
592 fmd_buf_hash_apply(&cip->ci_bufs, (fmd_buf_f *)fmd_ckpt_resv_buf, ckp); in fmd_ckpt_resv_case()
595 if (cip->ci_principal != NULL) in fmd_ckpt_resv_case()
599 sizeof (fcf_event_t) * cip->ci_nitems, sizeof (uint64_t)); in fmd_ckpt_resv_case()
601 if (cip->ci_nsuspects != 0) in fmd_ckpt_resv_case()
604 cip->ci_nvsz = 0; /* compute size of packed suspect nvlist array */ in fmd_ckpt_resv_case()
606 for (cis = cip->ci_suspects; cis != NULL; cis = cis->cis_next) { in fmd_ckpt_resv_case()
610 cip->ci_nvsz += sizeof (fcf_nvl_t) + nvsize; in fmd_ckpt_resv_case()
611 cip->ci_nvsz = P2ROUNDUP(cip->ci_nvsz, sizeof (uint64_t)); in fmd_ckpt_resv_case()
614 fmd_ckpt_resv(ckp, cip->ci_nvsz, sizeof (uint64_t)); in fmd_ckpt_resv_case()
616 ckp->ckp_strn += strlen(cip->ci_uuid) + 1; in fmd_ckpt_resv_case()
622 fmd_case_impl_t *cip = (fmd_case_impl_t *)cp; in fmd_ckpt_save_case() local
634 if (cip->ci_xprt != NULL) in fmd_ckpt_save_case()
637 if ((n = fmd_buf_hash_count(&cip->ci_bufs)) != 0) { in fmd_ckpt_save_case()
641 fmd_buf_hash_apply(&cip->ci_bufs, in fmd_ckpt_save_case()
648 if (cip->ci_principal != NULL) { in fmd_ckpt_save_case()
652 fmd_ckpt_save_event(ckp, cip->ci_principal); in fmd_ckpt_save_case()
655 if (cip->ci_nitems != 0) { in fmd_ckpt_save_case()
657 sizeof (fcf_event_t) * cip->ci_nitems); in fmd_ckpt_save_case()
659 for (cit = cip->ci_items; cit != NULL; cit = cit->cit_next) in fmd_ckpt_save_case()
663 if (cip->ci_nsuspects != 0) { in fmd_ckpt_save_case()
665 FCF_SECT_NVLISTS, cip->ci_nvsz); in fmd_ckpt_save_case()
667 for (cis = cip->ci_suspects; cis != NULL; cis = cis->cis_next) in fmd_ckpt_save_case()
671 fcfc.fcfc_uuid = fmd_ckpt_string(ckp, cip->ci_uuid); in fmd_ckpt_save_case()
677 switch (cip->ci_state) { in fmd_ckpt_save_case()
689 (void *)cp, cip->ci_uuid, cip->ci_state); in fmd_ckpt_save_case()