Home
last modified time | relevance | path

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

12

/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
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_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_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.c337 if ((nhp = topo_mod_zalloc(mod, sizeof (topo_nodehash_t))) == NULL) in topo_node_range_create()
345 if ((nhp->th_nodearr = topo_mod_zalloc(mod, in topo_node_range_create()
497 if ((node = topo_mod_zalloc(mod, sizeof (tnode_t))) == NULL) in topo_node_bind()
597 if ((node = topo_mod_zalloc(mod, sizeof (tnode_t))) == NULL) { in topo_node_facbind()
750 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.c192 if ((fixed = topo_mod_zalloc(mod, len + 1)) == NULL) { in svc_create_node()
278 if ((sfmri = topo_mod_zalloc(mod, slen + 1)) == NULL) { in svc_enum()
295 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-vers153 topo_mod_zalloc;
H A Dtopo_mod.h226 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 Dpcie.c218 plist = topo_mod_zalloc(mod, sizeof (nvlist_t *) * elems); in fmri_create()
H A Dtopo_method.c157 imp = topo_mod_zalloc(mod, sizeof (topo_imethod_t)); in topo_method_register()
/illumos-gate/usr/src/lib/fm/topo/modules/common/dimm/
H A Dtopo_dimm.c769 if ((strs = topo_mod_zalloc(mod, sizeof (char *) * nents)) == NULL) { in dimm_comp_mfg_common_ids()
831 if ((strs = topo_mod_zalloc(mod, sizeof (char *) * nents)) == NULL) { in dimm_comp_mfg_common_strings()
884 if ((strs = topo_mod_zalloc(mod, sizeof (char *) * nents)) == NULL) { in dimm_comp_mfg_common_type()
1068 if ((mfg_keys = topo_mod_zalloc(mod, alen)) == NULL || in dimm_comp_mfg_pmic()
1069 (mfg_str_keys = topo_mod_zalloc(mod, alen)) == NULL || in dimm_comp_mfg_pmic()
1070 (type_keys = topo_mod_zalloc(mod, alen)) == NULL || in dimm_comp_mfg_pmic()
1071 (rev_keys = topo_mod_zalloc(mod, alen)) == NULL) { in dimm_comp_mfg_pmic()
1131 if ((mfg_keys = topo_mod_zalloc(mod, alen)) == NULL || in dimm_comp_mfg_cd()
1132 (mfg_str_keys = topo_mod_zalloc(mod, alen)) == NULL || in dimm_comp_mfg_cd()
1133 (type_keys = topo_mod_zalloc(mod, alen)) == NULL || in dimm_comp_mfg_cd()
[all …]
/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/i86pc/pciebus/
H A Dtopo_pcie_i86pc.c392 pd->mpp_procs = topo_mod_zalloc(mod, in smbios_collect_init()
400 pd->mpp_obdevs = topo_mod_zalloc(mod, in smbios_collect_init()
408 pd->mpp_slots = topo_mod_zalloc(mod, in smbios_collect_init()
463 if ((pd = topo_mod_zalloc(mod, sizeof (*pd))) == NULL) in mod_pcie_platform_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()
798 zen->zt_dfs = topo_mod_zalloc(mod, sizeof (amdzen_topo_df_t) * in topo_zen_init()
810 topo_df->atd_df_ents = topo_mod_zalloc(mod, in topo_zen_init()
841 zen = topo_mod_zalloc(mod, sizeof (zen_topo_t)); in _topo_init()
/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()
687 smod = topo_mod_zalloc(mod, sizeof (*smod)); in ses_thread_init()
1328 tports = topo_mod_zalloc(mod, sizeof (char *) * nsas); in ses_create_disk()
1389 if ((paths = topo_mod_zalloc(mod, all_phys * sizeof (char *))) == NULL) in ses_add_bay_props()
2598 if ((child = topo_mod_zalloc(mod, in ses_construct_phys_tree()
3062 if ((sproot = topo_mod_zalloc(mod, in ses_create_chassis()
3364 if ((cp = topo_mod_zalloc(mod, in ses_enum_gather()
3389 if ((scp = topo_mod_zalloc(mod, in ses_enum_gather()
3449 if ((scp = 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()
/illumos-gate/usr/src/lib/fm/topo/modules/common/pciebus/
H A Dtopo_pcie.c173 if ((node = topo_mod_zalloc(mod, sizeof (*node))) == NULL) { in pcie_node_create()
210 if ((data = topo_mod_zalloc(mod, sizeof (*data))) == NULL) { in pcie_tn_data_create()
1145 if ((pcie = topo_mod_zalloc(mod, sizeof (*pcie))) == NULL) { in pcie_alloc()

12