Lines Matching full:pairs
842 nvlist_t *pairs[HC_MAXPAIRS]; in fm_fmri_hc_set() local
859 pairs[i] = fm_nvlist_create(nva); in fm_fmri_hc_set()
860 if (nvlist_add_string(pairs[i], FM_FMRI_HC_NAME, name) != 0 || in fm_fmri_hc_set()
861 nvlist_add_string(pairs[i], FM_FMRI_HC_ID, idstr) != 0) { in fm_fmri_hc_set()
869 (const nvlist_t **)pairs, npairs) != 0) { in fm_fmri_hc_set()
874 fm_nvlist_destroy(pairs[i], FM_NVA_RETAIN); in fm_fmri_hc_set()
889 nvlist_t *pairs[HC_MAXPAIRS]; in fm_fmri_hc_create() local
900 * copy the bboard nvpairs to the pairs array in fm_fmri_hc_create()
921 pairs[i] = fm_nvlist_create(nva); in fm_fmri_hc_create()
922 if (nvlist_add_string(pairs[i], FM_FMRI_HC_NAME, hcname) != 0 || in fm_fmri_hc_create()
923 nvlist_add_string(pairs[i], FM_FMRI_HC_ID, hcid) != 0) { in fm_fmri_hc_create()
925 if (pairs[j] != NULL) in fm_fmri_hc_create()
926 fm_nvlist_destroy(pairs[j], in fm_fmri_hc_create()
936 * create the pairs from passed in pairs in fm_fmri_hc_create()
946 pairs[i] = fm_nvlist_create(nva); in fm_fmri_hc_create()
947 if (nvlist_add_string(pairs[i], FM_FMRI_HC_NAME, name) != 0 || in fm_fmri_hc_create()
948 nvlist_add_string(pairs[i], FM_FMRI_HC_ID, idstr) != 0) { in fm_fmri_hc_create()
950 if (pairs[j] != NULL) in fm_fmri_hc_create()
951 fm_nvlist_destroy(pairs[j], in fm_fmri_hc_create()
966 (const nvlist_t **)pairs, npairs + n) != 0) { in fm_fmri_hc_create()
972 fm_nvlist_destroy(pairs[i], FM_NVA_RETAIN); in fm_fmri_hc_create()