Home
last modified time | relevance | path

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

12345

/illumos-gate/usr/src/common/mdesc/
H A Dmdesc_init_intern.c66 mdp->headerp = (md_header_t *)mdp->caddr; in md_init_intern()
72 mdp->node_blk_size = mdtoh32(mdp->headerp->node_blk_sz); in md_init_intern()
73 mdp->name_blk_size = mdtoh32(mdp->headerp->name_blk_sz); in md_init_intern()
74 mdp->data_blk_size = mdtoh32(mdp->headerp->data_blk_sz); in md_init_intern()
76 mdp->size = MD_HEADER_SIZE + mdp->node_blk_size + in md_init_intern()
77 mdp->name_blk_size + mdp->data_blk_size; in md_init_intern()
80 mdp->namep = (char *)(mdp->caddr + MD_HEADER_SIZE + mdp->node_blk_size); in md_init_intern()
81 mdp->datap = (uint8_t *)(mdp->caddr + MD_HEADER_SIZE + in md_init_intern()
82 mdp->name_blk_size + mdp->node_blk_size); in md_init_intern()
162 if (md_get_prop_val((md_t *)mdp, mdp->root_node, in md_init_intern()
[all …]
H A Dmdesc_walkdag.c70 md_impl_t *mdp; in md_walk_dag() local
73 mdp = (md_impl_t *)ptr; in md_walk_dag()
74 if (mdp == NULL) { in md_walk_dag()
102 while (start < mdp->element_count && in md_walk_dag()
103 MDE_TAG(&mdp->mdep[start]) == MDET_NULL) { in md_walk_dag()
110 if (MDE_TAG(&mdp->mdep[start]) != MDET_NODE) { in md_walk_dag()
118 seenp = (uint8_t *)mdp->allocp(mdp->element_count); in md_walk_dag()
122 (void) memset(seenp, 0, mdp->element_count); in md_walk_dag()
130 mdp->freep(seenp, mdp->element_count); in md_walk_dag()
145 mdep = &(mdp->mdep[nodeidx]); in mdl_walk_dag()
[all …]
H A Dmdesc_scandag.c42 mdl_scan_dag(md_impl_t *mdp,
62 md_impl_t *mdp; in md_scan_dag() local
65 mdp = (md_impl_t *)ptr; in md_scan_dag()
94 if (MDE_TAG(&mdp->mdep[start]) != MDET_NODE) { in md_scan_dag()
102 seenp = (uint8_t *)mdp->allocp(mdp->element_count); in md_scan_dag()
105 (void) memset(seenp, 0, mdp->element_count); in md_scan_dag()
111 res = mdl_scan_dag(mdp, start, in md_scan_dag()
115 mdp->freep(seenp, mdp->element_count); in md_scan_dag()
125 mdl_scan_dag(md_impl_t *mdp, in mdl_scan_dag() argument
136 mdep = &(mdp->mdep[nodeidx]); in mdl_scan_dag()
[all …]
/illumos-gate/usr/src/uts/sun4v/os/
H A Dfillsysinfo.c225 ncache = md_alloc_scan_dag(mdp, md_root_node(mdp), "cache", in setup_chip_mappings()
286 num = md_alloc_scan_dag(mdp, md_root_node(mdp), "cpus", "fwd", &node); in setup_exec_unit_mappings()
373 md_t *mdp; in cpu_setup_common() local
413 setup_chip_mappings(mdp); in cpu_setup_common()
939 int n_cachenodes = md_alloc_scan_dag(mdp, md_root_node(mdp), in get_l2_cache_node_count()
1115 md_t *mdp; in plat_ioaliases_init() local
1122 mdp = md_get_handle(); in plat_ioaliases_init()
1123 if (mdp == NULL) { in plat_ioaliases_init()
1128 nio = md_alloc_scan_dag(mdp, md_root_node(mdp), in plat_ioaliases_init()
1221 md_t *mdp = NULL; in load_tlb_cpu_mappings() local
[all …]
H A Dmach_descrip.c577 md_t *mdp; in md_get_handle() local
579 mdp = NULL; in md_get_handle()
589 if (mdp != NULL) in md_get_handle()
595 return (mdp); in md_get_handle()
606 md_impl_t *mdp; in md_fini_handle() local
611 if (mdp == NULL) in md_fini_handle()
655 md_t *mdp; in init_md_params() local
661 ASSERT(mdp); in init_md_params()
728 md_impl_t *mdp; in md_get_md_raw() local
731 if (mdp == NULL) in md_get_md_raw()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_memio.c49 if (mdp->md_off + nbytes > mdp->md_size) in memio_read()
50 nbytes = (mdp->md_size - mdp->md_off); in memio_read()
51 bcopy(mdp->md_buf + mdp->md_off, buf, nbytes); in memio_read()
73 mdp->md_off = mdp->md_size + offset; in memio_seek()
74 if (mdp->md_off > mdp->md_size) in memio_seek()
75 mdp->md_off = mdp->md_size; in memio_seek()
81 return (mdp->md_off); in memio_seek()
107 mdp->md_buf = buf; in mdb_memio_create()
108 mdp->md_size = size; in mdb_memio_create()
109 mdp->md_off = 0; in mdb_memio_create()
[all …]
/illumos-gate/usr/src/lib/libv12n/sparc/
H A Dlibv12n.c139 md_t *mdp; in v12n_md_init() local
172 return (mdp); in v12n_md_init()
189 if (mdp) { in v12n_md_fini()
190 free(mdp->caddr); in v12n_md_fini()
206 md_t *mdp; in v12n_domaining_enabled() local
221 nnodes = md_scan_dag(mdp, rootnode, md_find_name(mdp, "platform"), in v12n_domaining_enabled()
229 v12n_md_fini(mdp); in v12n_domaining_enabled()
289 nnodes = md_scan_dag(mdp, rootnode, md_find_name(mdp, node_name), in v12n_scan_md_nodes()
376 md_t *mdp; in v12n_domain_roles() local
465 md_t *mdp = NULL; in v12n_domain_name() local
[all …]
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/pri/
H A Dmem_prop_update.c65 md_t *mdp = (md_t *)args; in add_mem_prop() local
67 if (mdp == NULL) in add_mem_prop()
70 md_rootnode = md_root_node(mdp); in add_mem_prop()
77 num_nodes = md_node_count(mdp); in add_mem_prop()
105 nmemory = md_scan_dag(mdp, md_rootnode, md_find_name(mdp, in add_mem_prop()
117 md_find_name(mdp, "fwd"), in add_mem_prop()
152 md_find_name(mdp, "memory-bank"), in add_mem_prop()
153 md_find_name(mdp, "fwd"), in add_mem_prop()
173 mdp, in add_mem_prop()
212 node_count = md_node_count(mdp); in add_bank_props()
[all …]
H A Dinit.c62 pri_bufinit(md_t *mdp) in pri_bufinit() argument
65 if (mdp) in pri_bufinit()
66 md_fini(mdp); in pri_bufinit()
78 mdp = md_init_intern(md_bufp, malloc, pri_free); in pri_bufinit()
79 if (mdp == NULL) { in pri_bufinit()
89 mdp = NULL; in pri_bufinit()
93 return (mdp); in pri_bufinit()
105 pri_devfini(md_t *mdp) in pri_devfini() argument
107 if (mdp) in pri_devfini()
108 (void) md_fini(mdp); in pri_devfini()
/illumos-gate/usr/src/cmd/lp/lib/msgs/
H A Dmlisten.c169 MESG * mdp; in mlisten() local
255 if (mdp->mque) in mlisten()
376 if (mdp->mque) { in mlisten()
404 if (mdp->writefd == mdp->readfd) in mlisten()
406 mdp->readfd = -1; in mlisten()
424 if (mdp->writefd == mdp->readfd) in mlisten()
426 mdp->readfd = -1; in mlisten()
449 if (mdp->writefd == mdp->readfd) in mlisten()
451 mdp->readfd = -1; in mlisten()
489 if (Putmsg(mdp, NULL, mdp->mque->dat, 0)) in mlisten()
[all …]
/illumos-gate/usr/src/cmd/ldmad/
H A Dmdesc_lib.c96 CHAIN_ADD(mdp->string_list, msp); in md_new_string()
152 md_new_node(mmd_t *mdp, char *sp) in md_new_node() argument
164 CHAIN_ADD(mdp->node_list, nodep); in md_new_node()
212 md_free_data_block(mdp, dbp); in md_add_string_property()
232 md_free_data_block(mdp, dbp); in md_add_data_property()
271 if (md_add_arc_property(mdp, in md_link_new_node()
281 md_destroy(mmd_t *mdp) in md_destroy() argument
289 md_free_node(mdp, nodep); in md_destroy()
296 free(mdp); in md_destroy()
311 md_free_prop(mdp, propp); in md_free_node()
[all …]
H A Dldma_dio.c165 rv = md_add_data_property(mdp, in add_prom_string_prop()
204 link_device_node(mmd_t *mdp, in link_device_node() argument
239 md_free_node(mdp, np); in link_device_node()
244 create_children(mmd_t *mdp, in create_children() argument
339 mmd_t *mdp; in get_devinfo() local
344 mdp = md_new_md(); in get_devinfo()
345 if (mdp == NULL) { in get_devinfo()
350 md_destroy(mdp); in get_devinfo()
355 md_destroy(mdp); in get_devinfo()
361 md_destroy(mdp); in get_devinfo()
[all …]
H A Dldma_system.c162 md_t *mdp; in ldma_md_init() local
178 return (mdp); in ldma_md_init()
189 if (mdp) { in ldma_md_fini()
190 free(mdp->caddr); in ldma_md_fini()
198 md_t *mdp; in ldma_get_chassis_serialno() local
211 mdp = ldma_md_init(); in ldma_get_chassis_serialno()
212 if (mdp == NULL) { in ldma_get_chassis_serialno()
222 ldma_md_fini(mdp); in ldma_get_chassis_serialno()
226 rootnode = md_root_node(mdp); in ldma_get_chassis_serialno()
228 ncomponents = md_scan_dag(mdp, rootnode, md_find_name(mdp, "component"), in ldma_get_chassis_serialno()
[all …]
/illumos-gate/usr/src/uts/common/fs/smbclnt/smbfs/
H A Dsmbfs_subr.c242 mdp = &entry_mdc; in smbfs_decode_dirent()
290 save_mdc = *mdp; in smbfs_decode_dirent()
291 md_get_uint16le(mdp, &wch); in smbfs_decode_dirent()
298 *mdp = save_mdc; in smbfs_decode_dirent()
361 md_get_uint64le(mdp, &llongint); in smbfs_decode_file_all_info()
365 md_get_uint64le(mdp, &llongint); in smbfs_decode_file_all_info()
369 md_get_uint64le(mdp, &llongint); in smbfs_decode_file_all_info()
373 md_get_uint64le(mdp, &llongint); in smbfs_decode_file_all_info()
377 md_get_uint32le(mdp, &dattr); in smbfs_decode_file_all_info()
381 md_get_uint32le(mdp, NULL); in smbfs_decode_file_all_info()
[all …]
H A Dsmbfs_smb2.c125 struct mdchain *mdp; in smbfs_smb2_query_info() local
214 bzero(mdp, sizeof (*mdp)); in smbfs_smb2_qfileinfo()
224 md_done(mdp); in smbfs_smb2_qfileinfo()
285 bzero(mdp, sizeof (*mdp)); in smbfs_smb2_qfsattr()
294 md_done(mdp); in smbfs_smb2_qfsattr()
311 bzero(mdp, sizeof (*mdp)); in smbfs_smb2_statfs()
326 md_done(mdp); in smbfs_smb2_statfs()
852 bzero(mdp, sizeof (*mdp)); in smbfs_smb2_getsec()
863 *res = mdp->md_top; in smbfs_smb2_getsec()
864 mdp->md_top = NULL; in smbfs_smb2_getsec()
[all …]
H A Dsmbfs_smb1.c144 struct mdchain *mdp; in smbfs_smb1_trans2_query() local
185 mdp = &t2p->t2_rdata; in smbfs_smb1_trans2_query()
203 struct mdchain *mdp; in smbfs_smb1_query_fs_info() local
220 *info_mdp = *mdp; in smbfs_smb1_query_fs_info()
221 bzero(mdp, sizeof (*mdp)); in smbfs_smb1_query_fs_info()
238 bzero(mdp, sizeof (*mdp)); in smbfs_smb1_qfsattr()
247 md_done(mdp); in smbfs_smb1_qfsattr()
266 bzero(mdp, sizeof (*mdp)); in smbfs_smb1_statfs()
287 md_done(mdp); in smbfs_smb1_statfs()
649 bzero(mdp, sizeof (*mdp)); in smbfs_smb1_trans2find2()
[all …]
/illumos-gate/usr/src/uts/common/fs/smbclnt/netsmb/
H A Dsmb2_smb.c97 struct mdchain *mdp; in smb2_parse_smb1nego_resp() local
102 smb_rq_getreply(rqp, &mdp); in smb2_parse_smb1nego_resp()
156 struct mdchain *mdp = NULL; in smb2_smb_negotiate() local
213 smb_rq_getreply(rqp, &mdp); in smb2_smb_negotiate()
350 struct mdchain *mdp = NULL; in smb2_smb_ssnsetup() local
441 smb_rq_getreply(rqp, &mdp); in smb2_smb_ssnsetup()
541 struct mdchain *mdp; in smb2_smb_treeconnect() local
795 struct mdchain *mdp; in smb2_smb_ntcreate() local
1009 struct mdchain *mdp; in smb2_smb_ioctl() local
1130 struct mdchain *mdp; in smb2_smb_read() local
[all …]
H A Dsmb_smb.c105 struct mdchain *mdp = NULL; in smb_smb_negotiate() local
206 smb_rq_getreply(rqp, &mdp); in smb_smb_negotiate()
460 struct mdchain *mdp = NULL; in smb_smb_ssnsetup() local
677 struct mdchain *mdp; in smb_smb_treeconnect() local
781 md_get_uint8(mdp, &wc); in smb_smb_treeconnect()
892 struct mdchain *mdp; in smb1_smb_ntcreate() local
1041 struct mdchain *mdp; in smb_smb_open_prjob() local
1129 struct mdchain *mdp; in smb_smb_readx() local
1174 md_get_uint8(mdp, NULL); in smb_smb_readx()
1175 md_get_uint8(mdp, NULL); in smb_smb_readx()
[all …]
H A Dsubr_mchain.c656 bzero(mdp, sizeof (*mdp)); in md_initm()
657 mdp->md_top = mdp->md_cur = m; in md_initm()
677 mdp->md_cur = NULL; in md_done()
678 mdp->md_pos = NULL; in md_done()
697 m = mdp->md_top; in md_append_record()
725 md_done(mdp); in md_next_record()
730 md_initm(mdp, m); in md_next_record()
876 s = mdp->md_pos; in md_get_mem()
891 mdp->md_cur = m; in md_get_mem()
936 m = mdp->md_cur; in md_get_mbuf()
[all …]
H A Dsmb_rq.c627 mdp_save = *mdp; in smb_rq_parsehdr()
633 *mdp = mdp_save; in smb_rq_parsehdr()
794 md_initm(mdp, n); in smb_t2_placedata()
830 mdp = &rqp->sr_rp; in smb_t2_reply()
957 mdp = &rqp->sr_rp; in smb_nt_reply()
1265 if (mdp->md_top) { in smb_t2_request_int()
1266 md_initm(mdp, mdp->md_top); in smb_t2_request_int()
1269 if (mdp->md_top) { in smb_t2_request_int()
1270 md_initm(mdp, mdp->md_top); in smb_t2_request_int()
1477 md_initm(mdp, mdp->md_top); in smb_nt_request_int()
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/platform-cpu/
H A Dcpu_mdesc.c93 num_nodes = md_node_count(mdp); in cpu_n1_mdesc_init()
96 chip->ncpus = md_scan_dag(mdp, in cpu_n1_mdesc_init()
98 md_find_name(mdp, "cpu"), in cpu_n1_mdesc_init()
99 md_find_name(mdp, "fwd"), in cpu_n1_mdesc_init()
171 nnode = md_node_count(mdp); in cpu_n2_mdesc_init()
175 ncomp = md_scan_dag(mdp, in cpu_n2_mdesc_init()
178 md_find_name(mdp, "fwd"), in cpu_n2_mdesc_init()
254 cnt = md_scan_dag(mdp, in cpu_n2_mdesc_init()
290 cnt = md_scan_dag(mdp, in cpu_n2_mdesc_init()
347 md_t *mdp; in cpu_mdesc_init() local
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/platform-mem/
H A Dmem_mdesc.c111 md_find_name(mdp, "mblock"), in mdesc_init_n1()
112 md_find_name(mdp, "fwd"), in mdesc_init_n1()
338 md_find_name(mdp, "fwd"), in mdesc_init_n2()
368 md_find_name(mdp, "fwd"), in mdesc_init_n2()
392 md_find_name(mdp, "fwd"), in mdesc_init_n2()
401 md_find_name(mdp, "fwd"), in mdesc_init_n2()
425 md_t *mdp; in mem_mdesc_init() local
451 md_node_count(mdp) <= 0) { in mem_mdesc_init()
460 num_comps = md_scan_dag(mdp, in mem_mdesc_init()
463 md_find_name(mdp, "fwd"), in mem_mdesc_init()
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/sun4vpi/
H A Dpi_subr.c86 total_mdenodes = md_node_count(mdp); in pi_find_mdenodes()
87 start_cookie = md_find_name(mdp, type_str); in pi_find_mdenodes()
88 arc_cookie = md_find_name(mdp, arc_str); in pi_find_mdenodes()
121 if (mod == NULL || mdp == NULL) { in pi_skip_node()
279 result = md_get_prop_str(mdp, nodes[idx], in pi_get_productsn()
690 pi_get_productid(topo_mod_t *mod, md_t *mdp) in pi_get_productid() argument
1023 prod = pi_get_productid(mod, mdp); in pi_set_auth()
1239 part = pi_get_part(mod, mdp, mde_node); in pi_set_frufmri()
1240 rev = pi_get_revision(mod, mdp, mde_node); in pi_set_frufmri()
1272 if (mod == NULL || mdp == NULL) { in pi_set_label()
[all …]
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/mdesc/
H A Dcpu_prop_update.c33 extern md_t *mdp;
119 if (!(md_get_prop_val(mdp, tlblistp[i], "entries", in add_tlb_props()
300 num_nodes = md_node_count(mdp); in add_cpu_prop()
322 ncpus = md_scan_dag(mdp, rootnode, md_find_name(mdp, "cpu"), in add_cpu_prop()
323 md_find_name(mdp, "fwd"), cpulistp); in add_cpu_prop()
356 ncaches = md_scan_dag(mdp, cpulistp[x], in add_cpu_prop()
357 md_find_name(mdp, "cache"), in add_cpu_prop()
358 md_find_name(mdp, "fwd"), in add_cpu_prop()
364 ntlbs = md_scan_dag(mdp, cpulistp[x], in add_cpu_prop()
365 md_find_name(mdp, "tlb"), in add_cpu_prop()
[all …]
/illumos-gate/usr/src/boot/common/
H A Dmodule.c1264 if (mdp->d_hints != NULL || (mdp->d_flags & MDIR_NOHINTS)) in moduledir_readhints()
1290 free(mdp->d_hints); in moduledir_readhints()
1331 if (mdp == NULL) { in moduledir_rebuild()
1332 mdp = malloc(sizeof (*mdp) + cplen + 1); in moduledir_rebuild()
1333 if (mdp == NULL) in moduledir_rebuild()
1335 mdp->d_path = (char *)(mdp + 1); in moduledir_rebuild()
1339 mdp->d_flags = 0; in moduledir_rebuild()
1349 while (mdp) { in moduledir_rebuild()
1351 mdp = STAILQ_NEXT(mdp, d_link); in moduledir_rebuild()
1354 mtmp = mdp; in moduledir_rebuild()
[all …]

12345