Home
last modified time | relevance | path

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

/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_tree.c87 if ((tp = topo_mod_zalloc(mod, sizeof (ttree_t))) == NULL) in topo_tree_create()
98 if ((tp->tt_walk = topo_mod_zalloc(mod, sizeof (topo_walk_t))) == NULL) in topo_tree_create()
104 if ((rp = topo_mod_zalloc(mod, sizeof (tnode_t))) == NULL) in topo_tree_create()
H A Dtopo_parse.c39 if ((r = topo_mod_zalloc(mp, sizeof (tf_info_t))) == NULL) in tf_info_new()
69 if ((r = topo_mod_zalloc(mp, sizeof (tf_rdata_t))) == NULL) { in tf_rdata_new()
128 if ((r = topo_mod_zalloc(mp, sizeof (tf_idata_t))) == NULL) in tf_idata_new()
181 if ((r = topo_mod_zalloc(mp, sizeof (tf_pad_t))) == NULL) in tf_pad_new()
H A Dtopo_digraph.c163 if ((tdg = topo_mod_zalloc(mod, sizeof (topo_digraph_t))) == NULL) { in topo_digraph_new()
183 if ((tn = topo_mod_zalloc(mod, sizeof (tnode_t))) == NULL) in topo_digraph_new()
269 if ((vtx = topo_mod_zalloc(mod, sizeof (topo_vertex_t))) == NULL || in topo_vertex_new()
270 (tn = topo_mod_zalloc(mod, sizeof (tnode_t))) == NULL) { in topo_vertex_new()
428 if ((e_from = topo_mod_zalloc(mod, sizeof (topo_edge_t))) == NULL || in topo_edge_new()
429 (e_to = topo_mod_zalloc(mod, sizeof (topo_edge_t))) == NULL) { in topo_edge_new()
800 if ((buf = topo_mod_zalloc(mod, bufsz)) == NULL) { in path_fmri_nvl2str()
922 if ((path = topo_mod_zalloc(mod, npairs * sizeof (nvlist_t *))) == in path_fmri_str2nvl()
H A Dtopo_node.c336 if ((nhp = topo_mod_zalloc(mod, sizeof (topo_nodehash_t))) == NULL) in topo_node_range_create()
344 if ((nhp->th_nodearr = topo_mod_zalloc(mod, in topo_node_range_create()
495 if ((node = topo_mod_zalloc(mod, sizeof (tnode_t))) == NULL) in topo_node_bind()
594 if ((node = topo_mod_zalloc(mod, sizeof (tnode_t))) == NULL) { in topo_node_facbind()
747 if ((fac_ele = topo_mod_zalloc(tmp->tn_enum, in topo_node_facility()
H A Dtopo_alloc.c86 topo_mod_zalloc(topo_mod_t *mod, size_t size) in topo_mod_zalloc() function
H A Dtopo_file.c69 if ((tfp = topo_mod_zalloc(mod, sizeof (topo_file_t))) == NULL) in topo_file_load()
H A Dsvc.c191 if ((fixed = topo_mod_zalloc(mod, len + 1)) == NULL) { in svc_create_node()
277 if ((sfmri = topo_mod_zalloc(mod, slen + 1)) == NULL) { in svc_enum()
294 if ((ifmri = topo_mod_zalloc(mod, ilen + 1)) in svc_enum()
H A Dcpu.c89 if ((cpuip = topo_mod_zalloc(mod, sizeof (cpu_node_t))) == NULL) in cpu_init()
100 if ((cpuip->cn_cpustats = topo_mod_zalloc(mod, ( in cpu_init()
H A Dmapfile-vers150 topo_mod_zalloc;
H A Dtopo_mod.h222 extern void *topo_mod_zalloc(topo_mod_t *, size_t);
H A Dmem.c250 buf = topo_mod_zalloc(mod, len); in mem_nvl2str()
H A Dtopo_mod.map44 topo_mod_zalloc { TYPE = FUNCTION; FLAGS = extern };
H A Dtopo_method.c157 imp = topo_mod_zalloc(mod, sizeof (topo_imethod_t)); in topo_method_register()
H A Dtopo_xml.c1089 (apl = topo_mod_zalloc(mp, pcnt * sizeof (nvlist_t *))) in pgroup_record()
1280 topo_mod_zalloc(mp, pgcnt * sizeof (nvlist_t *)); in pad_process()
1587 if ((einfo = topo_mod_zalloc(mp, sizeof (tf_edata_t))) == NULL) { in enum_attributes_process()
H A Dhc.c677 if ((pa = topo_mod_zalloc(mod, npairs * sizeof (nvlist_t *))) == NULL) { in make_hc_pairs()
1102 hcl = topo_mod_zalloc(mod, sizeof (nvlist_t *) * (pelems + 1)); in hc_fmri_create()
H A Dtopo_mod.c187 if ((mod->tm_info = topo_mod_zalloc(mod, sizeof (topo_imodinfo_t))) in topo_mod_register()
/illumos-gate/usr/src/lib/fm/topo/modules/common/disk/
H A Ddisk_common.c787 if ((dnode = topo_mod_zalloc(mod, sizeof (dev_di_node_t))) == NULL) in dev_di_node_add()
834 topo_mod_zalloc(mod, sizeof (char *))) == NULL) in dev_di_node_add()
842 if ((dnode->ddn_target_port = topo_mod_zalloc(mod, in dev_di_node_add()
846 if ((dnode->ddn_attached_port = topo_mod_zalloc(mod, in dev_di_node_add()
850 if ((dnode->ddn_bridge_port = topo_mod_zalloc(mod, in dev_di_node_add()
886 if ((dnode->ddn_ppath = topo_mod_zalloc(mod, in dev_di_node_add()
892 if ((dnode->ddn_target_port = topo_mod_zalloc(mod, in dev_di_node_add()
896 if ((dnode->ddn_attached_port = topo_mod_zalloc(mod, in dev_di_node_add()
900 if ((dnode->ddn_bridge_port = topo_mod_zalloc(mod, in dev_di_node_add()
H A Ddisk.c184 if ((disk = topo_mod_zalloc(mod, sizeof (topo_disk_t))) == NULL) { in _topo_init()
/illumos-gate/usr/src/lib/fm/topo/modules/common/pcibus/
H A Ddid_hash.c89 did_hash_t *r = topo_mod_zalloc(hdl, sizeof (did_hash_t)); in did_hash_create()
97 r->dph_hash = topo_mod_zalloc(hdl, in did_hash_create()
H A Ddid.c346 if ((np = topo_mod_zalloc(mp, sizeof (did_t))) == NULL) in did_create()
/illumos-gate/usr/src/lib/fm/topo/modules/common/zen/
H A Dtopo_zen.c190 sock->ztes_ccd = topo_mod_zalloc(mod, sizeof (amdzen_topo_ccd_t) * in topo_zen_enum_chip_gather()
198 sock->ztes_tn_ccd = topo_mod_zalloc(mod, sizeof (zen_topo_enum_ccd_t) * in topo_zen_enum_chip_gather()
802 zen->zt_dfs = topo_mod_zalloc(mod, sizeof (amdzen_topo_df_t) * in topo_zen_init()
814 topo_df->atd_df_ents = topo_mod_zalloc(mod, in topo_zen_init()
845 zen = topo_mod_zalloc(mod, sizeof (zen_topo_t)); in _topo_init()
/illumos-gate/usr/src/lib/fm/topo/modules/common/dimm/
H A Dtopo_dimm.c716 if ((strs = topo_mod_zalloc(mod, sizeof (char *) * nents)) == NULL) { in dimm_comp_mfg_common_ids()
778 if ((strs = topo_mod_zalloc(mod, sizeof (char *) * nents)) == NULL) { in dimm_comp_mfg_common_strings()
831 if ((strs = topo_mod_zalloc(mod, sizeof (char *) * nents)) == NULL) { in dimm_comp_mfg_common_type()
1015 if ((mfg_keys = topo_mod_zalloc(mod, alen)) == NULL || in dimm_comp_mfg_pmic()
1016 (mfg_str_keys = topo_mod_zalloc(mod, alen)) == NULL || in dimm_comp_mfg_pmic()
1017 (type_keys = topo_mod_zalloc(mod, alen)) == NULL || in dimm_comp_mfg_pmic()
1018 (rev_keys = topo_mod_zalloc(mod, alen)) == NULL) { in dimm_comp_mfg_pmic()
/illumos-gate/usr/src/lib/fm/topo/modules/common/ses/
H A Dses.c387 sof = topo_mod_zalloc(mod, sizeof (*sof)); in ses_sof_alloc()
430 ssl = topo_mod_zalloc(mod, sizeof (*ssl)); in ses_ssl_alloc()
2597 if ((child = topo_mod_zalloc(mod, in ses_construct_phys_tree()
3061 if ((sproot = topo_mod_zalloc(mod, in ses_create_chassis()
3363 if ((cp = topo_mod_zalloc(mod, in ses_enum_gather()
3388 if ((scp = topo_mod_zalloc(mod, in ses_enum_gather()
3448 if ((scp = topo_mod_zalloc(mod, in ses_enum_gather()
3552 if ((sap = topo_mod_zalloc(mod, in ses_enum_gather()
3562 if ((snp = topo_mod_zalloc(mod, in ses_enum_gather()
3566 if ((sap = topo_mod_zalloc(mod, in ses_enum_gather()
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/common/usb/
H A Dtopo_usb_metadata.c209 if ((port = topo_mod_zalloc(mod, sizeof (topo_usb_meta_port_t))) == in topo_usb_parse_start()
320 if ((path = topo_mod_zalloc(mod, sizeof (topo_usb_meta_port_path_t))) == in topo_usb_parse_path()
H A Dtopo_usb.c344 if ((c = topo_mod_zalloc(mod, sizeof (topo_usb_controller_t))) == in topo_usb_controller_create()
608 if ((l = topo_mod_zalloc(mod, sizeof (topo_usb_lport_t))) == NULL) { in topo_usb_port_create()
618 if ((p = topo_mod_zalloc(mod, sizeof (topo_usb_port_t))) == NULL) { in topo_usb_port_create()
1158 if ((strs = topo_mod_zalloc(mod, strlen)) == NULL) { in topo_usb_port_properties()
1612 if ((strings = topo_mod_zalloc(mod, sizeof (char *) * in topo_usb_enum_lport()
2017 if ((usb = topo_mod_zalloc(mod, sizeof (topo_usb_t))) == NULL) { in topo_usb_alloc()