Home
last modified time | relevance | path

Searched refs:hdl (Results 1 – 25 of 442) sorted by relevance

12345678910>>...18

/titanic_44/usr/src/lib/libtnfctl/
H A Dopen.c57 tnfctl_handle_t *hdl; in tnfctl_exec_open() local
70 hdl = calloc(1, sizeof (*hdl)); in tnfctl_exec_open()
71 if (hdl == NULL) { in tnfctl_exec_open()
76 hdl->proc_p = proc_p; in tnfctl_exec_open()
77 hdl->mode = DIRECT_MODE; in tnfctl_exec_open()
78 hdl->called_exit = B_FALSE; in tnfctl_exec_open()
81 hdl->p_read = _tnfctl_read_targ; in tnfctl_exec_open()
82 hdl->p_write = _tnfctl_write_targ; in tnfctl_exec_open()
83 hdl->p_obj_iter = _tnfctl_loadobj_iter; in tnfctl_exec_open()
84 hdl->p_getpid = _tnfctl_pid_get; in tnfctl_exec_open()
[all …]
/titanic_44/usr/src/cmd/fm/modules/sun4/cpumem-diagnosis/
H A Dcmd_main.c79 cmd_nop(fmd_hdl_t *hdl, fmd_event_t *ep, nvlist_t *nvl, const char *class, in cmd_nop() argument
98 opl_opluecpu_detio(fmd_hdl_t *hdl, fmd_event_t *ep, nvlist_t *nvl, in opl_opluecpu_detio() argument
101 return (cmd_opluecpu_detio(hdl, ep, nvl, in opl_opluecpu_detio()
396 cmd_recv(fmd_hdl_t *hdl, fmd_event_t *ep, nvlist_t *nvl, const char *class) in cmd_recv() argument
401 fmd_hdl_debug(hdl, "cmd_recv: begin: %s\n", strrchr(class, '.') + 1); in cmd_recv()
404 if (fmd_nvl_class_match(hdl, nvl, sp->subr_class)) { in cmd_recv()
405 disp = sp->subr_func(hdl, ep, nvl, class, sp->subr_arg); in cmd_recv()
407 fmd_hdl_debug(hdl, "cmd_recv: done: %s (disp %d)\n", in cmd_recv()
413 fmd_hdl_debug(hdl, "cmd_recv: dropping %s - unable to handle\n", class); in cmd_recv()
417 cmd_timeout(fmd_hdl_t *hdl, id_t id, void *arg) in cmd_timeout() argument
[all …]
H A Dcmd_bank.c44 cmd_bank_add_dimm(fmd_hdl_t *hdl, cmd_bank_t *bank, cmd_dimm_t *dimm) in cmd_bank_add_dimm() argument
48 fmd_hdl_debug(hdl, "attaching dimm %s to bank %s\n", dimm->dimm_unum, in cmd_bank_add_dimm()
53 bm = fmd_hdl_zalloc(hdl, sizeof (cmd_bank_memb_t), FMD_SLEEP); in cmd_bank_add_dimm()
59 cmd_bank_remove_dimm(fmd_hdl_t *hdl, cmd_bank_t *bank, cmd_dimm_t *dimm) in cmd_bank_remove_dimm() argument
63 fmd_hdl_debug(hdl, "detaching dimm %s from bank %s\n", dimm->dimm_unum, in cmd_bank_remove_dimm()
73 fmd_hdl_free(hdl, bm, sizeof (cmd_bank_memb_t)); in cmd_bank_remove_dimm()
77 fmd_hdl_abort(hdl, "attempt to disconnect dimm from non-parent bank\n"); in cmd_bank_remove_dimm()
81 bank_dimmlist_create(fmd_hdl_t *hdl, cmd_bank_t *bank) in bank_dimmlist_create() argument
87 if (fmd_nvl_fmri_contains(hdl, bank->bank_asru_nvl, in bank_dimmlist_create()
89 cmd_bank_add_dimm(hdl, bank, dimm); in bank_dimmlist_create()
[all …]
H A Dcmd_dimm.c56 cmd_dimm_fmri_derive(fmd_hdl_t *hdl, uint64_t afar, uint16_t synd, in cmd_dimm_fmri_derive() argument
61 if ((fmri = cmd_mem_fmri_derive(hdl, afar, afsr, synd)) == NULL) in cmd_dimm_fmri_derive()
64 if (fmd_nvl_fmri_expand(hdl, fmri) < 0) { in cmd_dimm_fmri_derive()
79 cmd_dimm_create_fault(fmd_hdl_t *hdl, cmd_dimm_t *dimm, const char *fltnm, in cmd_dimm_create_fault() argument
92 flt = cmd_nvl_create_fault(hdl, fltnm, cert, in cmd_dimm_create_fault()
95 nvlfru = cmd_mem2hc(hdl, dimm->dimm_asru_nvl); in cmd_dimm_create_fault()
96 flt = cmd_nvl_create_fault(hdl, fltnm, cert, in cmd_dimm_create_fault()
100 return (cmd_fault_add_location(hdl, flt, dimm->dimm_unum)); in cmd_dimm_create_fault()
102 return (cmd_nvl_create_fault(hdl, fltnm, cert, dimm->dimm_asru_nvl, in cmd_dimm_create_fault()
108 cmd_dimm_free(fmd_hdl_t *hdl, cmd_dimm_t *dimm, int destroy) in cmd_dimm_free() argument
[all …]
H A Dcmd_page.c45 page_write(fmd_hdl_t *hdl, cmd_page_t *page) in page_write() argument
47 fmd_buf_write(hdl, NULL, page->page_bufname, page, in page_write()
52 cmd_page_free(fmd_hdl_t *hdl, cmd_page_t *page, int destroy) in cmd_page_free() argument
57 cmd_case_fini(hdl, cc->cc_cp, destroy); in cmd_page_free()
60 if (fmd_serd_exists(hdl, cc->cc_serdnm) && destroy) in cmd_page_free()
61 fmd_serd_destroy(hdl, cc->cc_serdnm); in cmd_page_free()
62 fmd_hdl_strfree(hdl, cc->cc_serdnm); in cmd_page_free()
66 fmd_buf_destroy(hdl, NULL, page->page_bufname); in cmd_page_free()
68 cmd_fmri_fini(hdl, &page->page_asru, destroy); in cmd_page_free()
71 fmd_hdl_free(hdl, page, sizeof (cmd_page_t)); in cmd_page_free()
[all …]
H A Dcmd_state.c116 cmd_case_create(fmd_hdl_t *hdl, cmd_header_t *hdr, cmd_ptrsubtype_t ptrsubtype, in cmd_case_create() argument
123 cl = fmd_hdl_alloc(hdl, sizeof (cmd_case_closer_t), FMD_SLEEP); in cmd_case_create()
127 cp = fmd_case_open(hdl, cl); in cmd_case_create()
133 *uuidp = fmd_case_uuid(hdl, cp); in cmd_case_create()
134 fmd_buf_write(hdl, cp, *uuidp, &ptr, sizeof (cmd_case_ptr_t)); in cmd_case_create()
140 cmd_case_redirect(fmd_hdl_t *hdl, fmd_case_t *cp, cmd_ptrsubtype_t newsubtype) in cmd_case_redirect() argument
142 const char *uuid = fmd_case_uuid(hdl, cp); in cmd_case_redirect()
145 fmd_buf_read(hdl, cp, uuid, &ptr, sizeof (cmd_case_ptr_t)); in cmd_case_redirect()
146 fmd_hdl_debug(hdl, "redirecting case %s from %d to %d\n", uuid, in cmd_case_redirect()
149 fmd_buf_write(hdl, cp, uuid, &ptr, sizeof (cmd_case_ptr_t)); in cmd_case_redirect()
[all …]
H A Dcmd_cpuerr.c54 cmd_cpuerr_common(fmd_hdl_t *hdl, fmd_event_t *ep, cmd_cpu_t *cpu, in cmd_cpuerr_common() argument
61 if (cc->cc_cp != NULL && fmd_case_solved(hdl, cc->cc_cp)) in cmd_cpuerr_common()
65 cc->cc_cp = cmd_case_create(hdl, &cpu->cpu_header, pstype, in cmd_cpuerr_common()
68 cc->cc_serdnm = cmd_cpu_serdnm_create(hdl, cpu, in cmd_cpuerr_common()
70 fmd_serd_create(hdl, cc->cc_serdnm, in cmd_cpuerr_common()
71 fmd_prop_get_int32(hdl, serdn), in cmd_cpuerr_common()
72 fmd_prop_get_int64(hdl, serdt)); in cmd_cpuerr_common()
77 fmd_hdl_debug(hdl, "adding event to %s\n", cc->cc_serdnm); in cmd_cpuerr_common()
78 if (fmd_serd_record(hdl, cc->cc_serdnm, ep) == FMD_B_FALSE) in cmd_cpuerr_common()
81 fmd_case_add_serd(hdl, cc->cc_cp, cc->cc_serdnm); in cmd_cpuerr_common()
[all …]
/titanic_44/usr/src/cmd/fm/modules/common/sw-diag-response/software-diagnosis/
H A Dswde_case.c118 swde_case_associate(fmd_hdl_t *hdl, fmd_case_t *cp, swde_case_t *scp, in swde_case_associate() argument
123 fmd_case_setspecific(hdl, cp, scp); in swde_case_associate()
127 swde_case_unserialize(fmd_hdl_t *hdl, fmd_case_t *cp) in swde_case_unserialize() argument
134 scp = fmd_hdl_zalloc(hdl, sizeof (*scp), FMD_SLEEP); in swde_case_unserialize()
137 fmd_buf_read(hdl, cp, SW_CASE_DATA_BUFNAME, datap, sizeof (*datap)); in swde_case_unserialize()
140 fmd_hdl_free(hdl, scp, sizeof (*scp)); in swde_case_unserialize()
145 subdata = fmd_hdl_alloc(hdl, sz, FMD_SLEEP); in swde_case_unserialize()
146 fmd_buf_read(hdl, cp, datap->sc_sub_bufname, subdata, sz); in swde_case_unserialize()
149 fmd_hdl_abort(hdl, "unserialize: expected subdata " in swde_case_unserialize()
155 swde_case_associate(hdl, cp, scp, subdata); in swde_case_unserialize()
[all …]
/titanic_44/usr/src/cmd/fm/modules/sun4v/generic-mem/
H A Dgmem_page.c41 page_write(fmd_hdl_t *hdl, gmem_page_t *page) in page_write() argument
43 fmd_buf_write(hdl, NULL, page->page_bufname, page, in page_write()
48 gmem_page_free(fmd_hdl_t *hdl, gmem_page_t *page, int destroy) in gmem_page_free() argument
53 gmem_case_fini(hdl, cc->cc_cp, destroy); in gmem_page_free()
56 if (fmd_serd_exists(hdl, cc->cc_serdnm) && destroy) in gmem_page_free()
57 fmd_serd_destroy(hdl, cc->cc_serdnm); in gmem_page_free()
58 fmd_hdl_strfree(hdl, cc->cc_serdnm); in gmem_page_free()
62 fmd_buf_destroy(hdl, NULL, page->page_bufname); in gmem_page_free()
64 gmem_fmri_fini(hdl, &page->page_asru, destroy); in gmem_page_free()
67 fmd_hdl_free(hdl, page, sizeof (gmem_page_t)); in gmem_page_free()
[all …]
H A Dgmem_state.c47 gmem_case_create(fmd_hdl_t *hdl, gmem_header_t *hdr, in gmem_case_create() argument
54 cl = fmd_hdl_alloc(hdl, sizeof (gmem_case_closer_t), FMD_SLEEP); in gmem_case_create()
58 cp = fmd_case_open(hdl, cl); in gmem_case_create()
64 *uuidp = fmd_case_uuid(hdl, cp); in gmem_case_create()
65 fmd_buf_write(hdl, cp, *uuidp, &ptr, sizeof (gmem_case_ptr_t)); in gmem_case_create()
71 gmem_case_redirect(fmd_hdl_t *hdl, fmd_case_t *cp, gmem_ptrsubtype_t newsubtype) in gmem_case_redirect() argument
73 const char *uuid = fmd_case_uuid(hdl, cp); in gmem_case_redirect()
76 fmd_buf_read(hdl, cp, uuid, &ptr, sizeof (gmem_case_ptr_t)); in gmem_case_redirect()
77 fmd_hdl_debug(hdl, "redirecting case %s from %d to %d\n", uuid, in gmem_case_redirect()
80 fmd_buf_write(hdl, cp, uuid, &ptr, sizeof (gmem_case_ptr_t)); in gmem_case_redirect()
[all …]
H A Dgmem_dimm.c61 gmem_dimm_free(fmd_hdl_t *hdl, gmem_dimm_t *dimm, int destroy) in gmem_dimm_free() argument
69 gmem_case_fini(hdl, cc->cc_cp, destroy); in gmem_dimm_free()
71 if (fmd_serd_exists(hdl, cc->cc_serdnm) && in gmem_dimm_free()
73 fmd_serd_destroy(hdl, cc->cc_serdnm); in gmem_dimm_free()
74 fmd_hdl_strfree(hdl, cc->cc_serdnm); in gmem_dimm_free()
78 gmem_fmri_fini(hdl, &dimm->dimm_asru, destroy); in gmem_dimm_free()
83 if (fmd_serd_exists(hdl, q->mq_serdnm)) in gmem_dimm_free()
84 fmd_serd_destroy(hdl, q->mq_serdnm); in gmem_dimm_free()
85 fmd_hdl_strfree(hdl, q->mq_serdnm); in gmem_dimm_free()
94 fmd_hdl_free(hdl, tsp, sizeof (tstamp_t)); in gmem_dimm_free()
[all …]
/titanic_44/usr/src/uts/i86pc/os/
H A Dcmi_hw.c97 #define HDLOPS(hdl) ((hdl)->cmih_ops) argument
267 cmi_hdl_impl_t *hdl = IMPLHDL(ophdl); in cmi_hdl_inj_begin() local
269 if (hdl != NULL) in cmi_hdl_inj_begin()
270 hdl->cmih_flags |= CMIH_F_INJACTV; in cmi_hdl_inj_begin()
280 cmi_hdl_impl_t *hdl = IMPLHDL(ophdl); in cmi_hdl_inj_end() local
282 ASSERT(hdl == NULL || hdl->cmih_flags & CMIH_F_INJACTV); in cmi_hdl_inj_end()
283 if (hdl != NULL) in cmi_hdl_inj_end()
284 hdl->cmih_flags &= ~CMIH_F_INJACTV; in cmi_hdl_inj_end()
302 #define CMI_MSRI_HASHIDX(hdl, msr) \ argument
303 (((uintptr_t)(hdl) >> 3 + (msr)) % (CMI_MSRI_HASHSZ - 1))
[all …]
H A Dcmi.c120 #define HDL2CMI(hdl) cmi_hdl_getcmi(hdl) argument
300 cmi_search_list(cmi_hdl_t hdl, int match) in cmi_search_list() argument
307 cmi_hdl_walk(cmi_search_list_cb, (void *)hdl, (void *)&match, &dhdl); in cmi_search_list()
317 cmi_load_module(cmi_hdl_t hdl, int match, int *chosenp) in cmi_load_module() argument
332 if ((cmi = cmi_search_list(hdl, match)) != NULL) { in cmi_load_module()
337 s[0] = cmi_hdl_family(hdl); in cmi_load_module()
338 s[1] = cmi_hdl_model(hdl); in cmi_load_module()
339 s[2] = cmi_hdl_stepping(hdl); in cmi_load_module()
341 cmi_hdl_vendorstr(hdl), ".", s, match, chosenp); in cmi_load_module()
359 cmi_load_specific(cmi_hdl_t hdl, void **datap) in cmi_load_specific() argument
[all …]
H A Dcms.c57 #define HDL2CMS(hdl) cms_hdl_getcms(hdl) argument
97 cms_hdl_getcms(cmi_hdl_t hdl) in cms_hdl_getcms() argument
99 struct cms_ctl *cdp = cmi_hdl_getspecific(hdl); in cms_hdl_getcms()
105 cms_hdl_getcmsdata(cmi_hdl_t hdl) in cms_hdl_getcmsdata() argument
107 struct cms_ctl *cdp = cmi_hdl_getspecific(hdl); in cms_hdl_getcmsdata()
284 cms_search_list(cmi_hdl_t hdl, int match) in cms_search_list() argument
291 cmi_hdl_walk(cms_search_list_cb, (void *)hdl, (void *)&match, &dhdl); in cms_search_list()
309 cms_load_module(cmi_hdl_t hdl, int match, int *chosenp) in cms_load_module() argument
320 s[0] = cmi_hdl_family(hdl); in cms_load_module()
321 s[1] = cmi_hdl_model(hdl); in cms_load_module()
[all …]
/titanic_44/usr/src/cmd/fm/modules/common/event-transport/
H A Detm.c93 #define ALLOC_BUF(hdl, buf, size) \ argument
94 buf = fmd_hdl_zalloc((hdl), (size), FMD_SLEEP);
96 #define FREE_BUF(hdl, buf, size) fmd_hdl_free((hdl), (buf), (size)); argument
181 etm_hex_dump(fmd_hdl_t *hdl, void *buf, size_t buflen, int direction) in etm_hex_dump() argument
193 fmd_hdl_debug(hdl, "--- WRITE Message Dump ---"); in etm_hex_dump()
195 fmd_hdl_debug(hdl, "--- READ Message Dump ---"); in etm_hex_dump()
197 fmd_hdl_debug(hdl, " Displaying %d bytes", buflen); in etm_hex_dump()
202 fmd_hdl_debug(hdl, "%3d: %4x %4x %4x %4x %4x %4x %4x %4x", i, in etm_hex_dump()
211 fmd_hdl_debug(hdl, "%3d: %4x %4x", i, *(c+0), *(c+1)); in etm_hex_dump()
214 fmd_hdl_debug(hdl, "%3d: %4x %4x %4x %4x", i, *(c+0), *(c+1), in etm_hex_dump()
[all …]
/titanic_44/usr/src/common/mc/mc-amd/
H A Dmcamd_patounum.c57 iaddr_gen(struct mcamd_hdl *hdl, mcamd_node_t *mc, uint64_t pa, in iaddr_gen() argument
63 if (!mcamd_get_numprops(hdl, in iaddr_gen()
71 mcamd_dprintf(hdl, MCAMD_DBG_ERR, "iaddr_gen: failed to " in iaddr_gen()
73 return (mcamd_set_errno(hdl, EMCAMD_TREEINVALID)); in iaddr_gen()
82 return (mcamd_set_errno(hdl, EMCAMD_NOADDR)); in iaddr_gen()
85 mcamd_dprintf(hdl, MCAMD_DBG_FLOW, "iaddr_gen: PA 0x%llx not " in iaddr_gen()
88 return (mcamd_set_errno(hdl, EMCAMD_NOADDR)); in iaddr_gen()
102 mcamd_dprintf(hdl, MCAMD_DBG_FLOW, "iaddr_gen: dram hole " in iaddr_gen()
113 mcamd_dprintf(hdl, MCAMD_DBG_ERR, "Invalid intlven " in iaddr_gen()
115 return (mcamd_set_errno(hdl, EMCAMD_TREEINVALID)); in iaddr_gen()
[all …]
/titanic_44/usr/src/lib/libzfs/common/
H A Dlibzfs_util.c56 libzfs_errno(libzfs_handle_t *hdl) in libzfs_errno() argument
58 return (hdl->libzfs_error); in libzfs_errno()
62 libzfs_error_action(libzfs_handle_t *hdl) in libzfs_error_action() argument
64 return (hdl->libzfs_action); in libzfs_error_action()
68 libzfs_error_description(libzfs_handle_t *hdl) in libzfs_error_description() argument
70 if (hdl->libzfs_desc[0] != '\0') in libzfs_error_description()
71 return (hdl->libzfs_desc); in libzfs_error_description()
73 switch (hdl->libzfs_error) { in libzfs_error_description()
236 assert(hdl->libzfs_error == 0); in libzfs_error_description()
243 zfs_error_aux(libzfs_handle_t *hdl, const char *fmt, ...) in zfs_error_aux() argument
[all …]
/titanic_44/usr/src/cmd/fm/modules/sun4v/cpumem-diagnosis/
H A Dcmd_branch.c54 mbd_label(fmd_hdl_t *hdl, cmd_branch_t *branch, const char *nacname) in mbd_label() argument
67 p = fmd_hdl_zalloc(hdl, s+1, FMD_SLEEP); in mbd_label()
77 cmd_branch_add_dimm(fmd_hdl_t *hdl, cmd_branch_t *branch, cmd_dimm_t *dimm) in cmd_branch_add_dimm() argument
84 fmd_hdl_debug(hdl, "Attaching dimm %s to branch %s\n", in cmd_branch_add_dimm()
86 bm = fmd_hdl_zalloc(hdl, sizeof (cmd_branch_memb_t), FMD_SLEEP); in cmd_branch_add_dimm()
92 cmd_branch_remove_dimm(fmd_hdl_t *hdl, cmd_branch_t *branch, cmd_dimm_t *dimm) in cmd_branch_remove_dimm() argument
96 fmd_hdl_debug(hdl, "Detaching dimm %s from branch %s\n", in cmd_branch_remove_dimm()
103 fmd_hdl_free(hdl, bm, sizeof (cmd_branch_memb_t)); in cmd_branch_remove_dimm()
108 fmd_hdl_abort(hdl, in cmd_branch_remove_dimm()
113 branch_dimm_create(fmd_hdl_t *hdl, char *dimm_unum, char **serids, in branch_dimm_create() argument
[all …]
/titanic_44/usr/src/cmd/fm/modules/sun4u/cpumem-diagnosis/
H A Dcmd_oplerr.c59 opl_ue_mem(fmd_hdl_t *hdl, fmd_event_t *ep, nvlist_t *nvl, in opl_ue_mem() argument
77 fmd_hdl_debug(hdl, "cmd_ue_mem: pa=%llx\n", in opl_ue_mem()
89 fmd_hdl_debug(hdl, "cmd_ue_mem: ue_log_reg=%llx\n", in opl_ue_mem()
91 fmd_hdl_debug(hdl, "cmd_ue_mem: pa=%llx\n", in opl_ue_mem()
102 fmd_case_solved(hdl, page->page_case.cc_cp)) in opl_ue_mem()
106 fmd_hdl_debug(hdl, "opl_ue_mem nvlist dup failed\n"); in opl_ue_mem()
110 if (fmd_nvl_fmri_expand(hdl, asru) < 0) { in opl_ue_mem()
116 if ((fru = opl_mem_fru_create(hdl, asru)) == NULL) { in opl_ue_mem()
121 cmd_page_fault(hdl, asru, fru, ep, pa); in opl_ue_mem()
134 cmd_opl_ue_cpu(fmd_hdl_t *hdl, fmd_event_t *ep, in cmd_opl_ue_cpu() argument
[all …]
H A Dcmd_dp_page.c60 dp_page_defer_data_write(fmd_hdl_t *hdl, cmd_dp_defer_t *dpage) in dp_page_defer_data_write() argument
62 fmd_buf_write(hdl, dpage->dp_defer_page->page_case.cc_cp, "mcids", in dp_page_defer_data_write()
67 dp_page_defer_data_restore(fmd_hdl_t *hdl, cmd_dp_defer_t *dpage) in dp_page_defer_data_restore() argument
69 fmd_buf_read(hdl, dpage->dp_defer_page->page_case.cc_cp, "mcids", in dp_page_defer_data_restore()
74 dp_page_defer_add_data(fmd_hdl_t *hdl, cmd_dp_defer_t *dpage, uint64_t afar) in dp_page_defer_add_data() argument
80 fmd_hdl_abort(hdl, "cmd_dp_get_mcid failed"); in dp_page_defer_add_data()
92 fmd_hdl_abort(hdl, "too many mcids for deferred page"); in dp_page_defer_add_data()
94 dp_page_defer_data_write(hdl, dpage); in dp_page_defer_add_data()
98 dp_page_defer_create(fmd_hdl_t *hdl, cmd_page_t *page, uint64_t afar) in dp_page_defer_create() argument
103 dpage = fmd_hdl_zalloc(hdl, sizeof (cmd_dp_defer_t), FMD_SLEEP); in dp_page_defer_create()
[all …]
/titanic_44/usr/src/cmd/fm/modules/sun4v/etm/
H A Detm_ckpt.c110 etm_ckpt_erpt2id(fmd_hdl_t *hdl, nvlist_t *erpt, etm_ckpt_erpt_id_t *id, in etm_ckpt_erpt2id() argument
121 fmd_hdl_debug(hdl, "Ena not found\n"); in etm_ckpt_erpt2id()
128 fmd_hdl_debug(hdl, "%s not found\n", FM_CLASS); in etm_ckpt_erpt2id()
132 fmd_hdl_debug(hdl, "Only support checkpointing %s\n", in etm_ckpt_erpt2id()
173 etm_ckpt_il_resize(fmd_hdl_t *hdl, uint_t factor) in etm_ckpt_il_resize() argument
190 il2 = fmd_hdl_zalloc(hdl, sz2, FMD_SLEEP); in etm_ckpt_il_resize()
210 fmd_hdl_debug(hdl, "Copying entry %d to %d\n", in etm_ckpt_il_resize()
222 fmd_hdl_free(hdl, il2, sz2); in etm_ckpt_il_resize()
223 fmd_buf_write(hdl, NULL, ETM_CKPT_IL_BUF, (void *) il1, sz1); in etm_ckpt_il_resize()
227 fmd_hdl_free(hdl, il1, sz1); in etm_ckpt_il_resize()
[all …]
/titanic_44/usr/src/lib/libpool/common/
H A Ddict.c238 dict_length(dict_hdl_t *hdl) in dict_length() argument
240 return (hdl->dh_length); in dict_length()
247 dict_free(dict_hdl_t **hdl) in dict_free() argument
249 if ((*hdl)->dh_length > 0) { in dict_free()
251 for (i = 0; i < (*hdl)->dh_size; i++) { in dict_free()
253 for (this = (*hdl)->dh_buckets[i]; this != NULL; in dict_free()
260 free((*hdl)->dh_buckets); in dict_free()
261 free((*hdl)); in dict_free()
262 *hdl = NULL; in dict_free()
273 dict_hdl_t *hdl; in dict_new() local
[all …]
/titanic_44/usr/src/lib/fm/libfmd_agent/common/
H A Dfmd_agent.c49 fmd_agent_errno(fmd_agent_hdl_t *hdl) in fmd_agent_errno() argument
51 return (hdl->agent_errno); in fmd_agent_errno()
55 fmd_agent_seterrno(fmd_agent_hdl_t *hdl, int err) in fmd_agent_seterrno() argument
57 hdl->agent_errno = err; in fmd_agent_seterrno()
68 fmd_agent_errmsg(fmd_agent_hdl_t *hdl) in fmd_agent_errmsg() argument
70 return (fmd_agent_strerr(hdl->agent_errno)); in fmd_agent_errmsg()
74 cleanup_set_errno(fmd_agent_hdl_t *hdl, nvlist_t *innvl, nvlist_t *outnvl, in cleanup_set_errno() argument
79 return (fmd_agent_seterrno(hdl, err)); in cleanup_set_errno()
87 fmd_agent_nvl_ioctl(fmd_agent_hdl_t *hdl, int cmd, uint32_t ver, in fmd_agent_nvl_ioctl() argument
128 if (ioctl(hdl->agent_devfd, cmd, &fid) < 0) { in fmd_agent_nvl_ioctl()
[all …]
/titanic_44/usr/src/cmd/fm/modules/common/io-retire/
H A Drio_main.c43 parse_exception_string(fmd_hdl_t *hdl, char *estr) in parse_exception_string() argument
65 elem = fmd_hdl_alloc(hdl, in parse_exception_string()
67 elem->el_fault = fmd_hdl_strdup(hdl, p, FMD_SLEEP); in parse_exception_string()
80 fmd_hdl_abort(hdl, "Error parsing exception list: %s\n", estr); in parse_exception_string()
90 fault_exception(fmd_hdl_t *hdl, nvlist_t *fault) in fault_exception() argument
95 if (fmd_nvl_class_match(hdl, fault, elem->el_fault)) { in fault_exception()
96 fmd_hdl_debug(hdl, "rio_recv: Skipping fault " in fault_exception()
106 free_exception_list(fmd_hdl_t *hdl) in free_exception_list() argument
113 fmd_hdl_strfree(hdl, elem->el_fault); in free_exception_list()
114 fmd_hdl_free(hdl, elem, sizeof (*elem)); in free_exception_list()
[all …]
/titanic_44/usr/src/cmd/fm/modules/common/zfs-diagnosis/
H A Dzfs_de.c121 zfs_case_serialize(fmd_hdl_t *hdl, zfs_case_t *zcp) in zfs_case_serialize() argument
128 fmd_buf_write(hdl, zcp->zc_case, CASE_DATA, &zcp->zc_data, in zfs_case_serialize()
132 fmd_buf_write(hdl, zcp->zc_case, CASE_FRU, zcp->zc_fru, in zfs_case_serialize()
140 zfs_case_unserialize(fmd_hdl_t *hdl, fmd_case_t *cp) in zfs_case_unserialize() argument
145 zcp = fmd_hdl_zalloc(hdl, sizeof (zfs_case_t), FMD_SLEEP); in zfs_case_unserialize()
148 fmd_buf_read(hdl, cp, CASE_DATA, &zcp->zc_data, in zfs_case_unserialize()
152 fmd_hdl_free(hdl, zcp, sizeof (zfs_case_t)); in zfs_case_unserialize()
156 if ((frulen = fmd_buf_size(hdl, zcp->zc_case, CASE_FRU)) > 0) { in zfs_case_unserialize()
157 zcp->zc_fru = fmd_hdl_alloc(hdl, frulen + 1, FMD_SLEEP); in zfs_case_unserialize()
158 fmd_buf_read(hdl, zcp->zc_case, CASE_FRU, zcp->zc_fru, in zfs_case_unserialize()
[all …]

12345678910>>...18