Home
last modified time | relevance | path

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

12

/titanic_41/usr/src/common/mdesc/
H A Dmdesc_findnodeprop.c40 md_element_t *mdep; in md_find_node_prop() local
49 mdep = &(mdp->mdep[idx]); in md_find_node_prop()
52 while (MDE_TAG(mdep) == MDET_NULL) { in md_find_node_prop()
54 mdep++; in md_find_node_prop()
58 if (MDE_TAG(mdep) != MDET_NODE) { in md_find_node_prop()
67 for (idx++, mdep++; MDE_TAG(mdep) != MDET_NODE_END; idx++, mdep++) { in md_find_node_prop()
68 if (MDE_TAG(mdep) == tag_type) { in md_find_node_prop()
69 if (MDE_NAME(mdep) == prop_name) { in md_find_node_prop()
H A Dmdesc_scandag.c89 while (MDE_TAG(&mdp->mdep[start]) == MDET_NULL) start++; in md_scan_dag()
94 if (MDE_TAG(&mdp->mdep[start]) != MDET_NODE) { in md_scan_dag()
134 md_element_t *mdep; in mdl_scan_dag() local
136 mdep = &(mdp->mdep[nodeidx]); in mdl_scan_dag()
139 if (MDE_TAG(mdep) != MDET_NODE) in mdl_scan_dag()
154 printf("%d (%s)\n", nodeidx, (char *)(mdp->datap + MDE_NAME(mdep))); in mdl_scan_dag()
158 if (MDE_NAME(mdep) == node_name_cookie) { in mdl_scan_dag()
175 for (mdep++; MDE_TAG(mdep) != MDET_NODE_END; mdep++) { in mdl_scan_dag()
176 if (MDE_TAG(mdep) == MDET_PROP_ARC && in mdl_scan_dag()
177 MDE_NAME(mdep) == arc_name_cookie) { in mdl_scan_dag()
[all …]
H A Dmdesc_walkdag.c103 MDE_TAG(&mdp->mdep[start]) == MDET_NULL) { in md_walk_dag()
110 if (MDE_TAG(&mdp->mdep[start]) != MDET_NODE) { in md_walk_dag()
142 md_element_t *mdep; in mdl_walk_dag() local
145 mdep = &(mdp->mdep[nodeidx]); in mdl_walk_dag()
148 if (MDE_TAG(mdep) != MDET_NODE) { in mdl_walk_dag()
165 (char *)(mdp->datap + MDE_NAME(mdep))); in mdl_walk_dag()
170 if (MDE_NAME(mdep) == node_name_cookie) { in mdl_walk_dag()
186 for (mdep++; MDE_TAG(mdep) != MDET_NODE_END; mdep++) { in mdl_walk_dag()
187 if (MDE_TAG(mdep) == MDET_PROP_ARC && in mdl_walk_dag()
188 MDE_NAME(mdep) == arc_name_cookie) { in mdl_walk_dag()
[all …]
H A Dmdesc_getproparcs.c90 md_element_t *mdep; in md_find_node_arcs() local
95 mdep = &(mdp->mdep[idx]); in md_find_node_arcs()
98 if (MDE_TAG(mdep) != MDET_NODE) { in md_find_node_arcs()
107 for (idx++, mdep++; MDE_TAG(mdep) != MDET_NODE_END; idx++, mdep++) { in md_find_node_arcs()
108 if ((MDE_TAG(mdep) == tag_type) && in md_find_node_arcs()
109 (MDE_NAME(mdep) == prop_name)) { in md_find_node_arcs()
112 (mde_cookie_t)MDE_PROP_INDEX(mdep); in md_find_node_arcs()
H A Dmdesc_diff.c50 mde_cookie_t *mdep; member
166 diff_res->added.mdep = md2nodesp; in md_diff_init()
173 diff_res->removed.mdep = md1nodesp; in md_diff_init()
204 md_element_t *elem = &(md1->mdep[md1nodesp[idx]]); in md_diff_init()
236 diff_res->added.mdep = (mde_cookie_t *)diff_res->allocp(addsz); in md_diff_init()
238 bcopy(mde_add_scr, diff_res->added.mdep, addsz); in md_diff_init()
246 diff_res->removed.mdep = in md_diff_init()
249 bcopy(mde_rem_scr, diff_res->removed.mdep, remsz); in md_diff_init()
256 diff_res->match1.mdep = in md_diff_init()
258 diff_res->match2.mdep = in md_diff_init()
[all …]
H A Dmdesc_getpropdata.c55 md_element_t *mdep; in md_get_prop_data() local
56 mdep = &(mdp->mdep[(int)elem]); in md_get_prop_data()
58 *lenp = (int)MDE_PROP_DATA_LEN(mdep); in md_get_prop_data()
59 *datap = mdp->datap+(int)MDE_PROP_DATA_OFFSET(mdep); in md_get_prop_data()
H A Dmdesc_getpropstr.c54 md_element_t *mdep; in md_get_prop_str() local
55 mdep = &(mdp->mdep[(int)elem]); in md_get_prop_str()
58 MDE_PROP_DATA_OFFSET(mdep)); in md_get_prop_str()
H A Dmdesc_getpropval.c61 md_element_t *mdep; in md_get_prop_val() local
62 mdep = &(mdp->mdep[(int)elem]); in md_get_prop_val()
64 *valp = MDE_PROP_VALUE(mdep); in md_get_prop_val()
H A Dmdesc_init_intern.c79 mdp->mdep = (md_element_t *)(mdp->caddr + MD_HEADER_SIZE); in md_init_intern()
113 np = &(mdp->mdep[idx]); in md_init_intern()
/titanic_41/usr/src/uts/common/syscall/
H A Duadmin.c129 kadmin(int cmd, int fcn, void *mdep, cred_t *credp) in kadmin() argument
271 if ((mdep != NULL) && (*(char *)mdep == '/')) { in kadmin()
272 buf = i_convert_boot_device_name(mdep, NULL, &buflen); in kadmin()
275 mdpreboot(cmd, fcn, mdep); in kadmin()
304 if ((mdep != NULL) && (*(char *)mdep == '/')) { in kadmin()
305 buf = i_convert_boot_device_name(mdep, NULL, &buflen); in kadmin()
308 mdboot(cmd, fcn, mdep, invoke_cb); in kadmin()
319 fastboot_update_config(mdep); in kadmin()
351 error = cpr(fcn, mdep); in kadmin()
380 if ((mdep != NULL) && (*(char *)mdep == '/')) { in kadmin()
[all …]
/titanic_41/usr/src/cmd/uadmin/
H A Duadmin.c63 uintptr_t mdep = NULL; in main() local
88 mdep = (uintptr_t)argv[3]; in main()
155 mdep = NULL; /* Ignore all arguments */ in main()
163 mdep = NULL; /* Ignore all arguments */ in main()
216 mdep = (uintptr_t)(&boot_config); in main()
227 event->adt_uadmin_shutdown.mdep = (char *)mdep; in main()
231 event->adt_uadmin_reboot.mdep = (char *)mdep; in main()
235 event->adt_uadmin_dump.mdep = (char *)mdep; in main()
242 event->adt_uadmin_freeze.mdep = (char *)mdep; in main()
246 event->adt_uadmin_ftrace.mdep = (char *)mdep; in main()
[all …]
/titanic_41/usr/src/cmd/mdb/sun4v/modules/mdesc/
H A Dmdesc.c84 md_element_t *mdep; in mdinfo() local
121 if ((mdep = mdb_alloc(mdesize, UM_NOSLEEP)) == NULL) { in mdinfo()
127 mdb_free(mdep, mdesize); in mdinfo()
133 mdb_free(mdep, mdesize); in mdinfo()
138 if (mdb_vread(mdep, mdesize, vaddr + MD_HEADER_SIZE) != mdesize) { in mdinfo()
143 mdb_free(mdep, mdesize); in mdinfo()
152 mdb_free(mdep, mdesize); in mdinfo()
161 mdb_free(mdep, mdesize); in mdinfo()
166 eof = mdep + (mdesize / sizeof (md_element_t)); in mdinfo()
167 for (mdeptr = mdep; mdeptr < eof; ++mdeptr) { in mdinfo()
[all …]
/titanic_41/usr/src/cmd/ldmad/
H A Dmdesc_lib.c379 md_fix_name(md_element_t *mdep, md_prop_t *propp) in md_fix_name() argument
381 mdep->name_len = htomd8(propp->sp->size - 1); in md_fix_name()
382 mdep->name_offset = htomd32(propp->sp->build_offset); in md_fix_name()
386 create_mde(md_element_t *mdep, int type, md_node_t *nodep, md_prop_t *propp) in create_mde() argument
388 (void) memset(mdep, 0, MD_ELEMENT_SIZE); in create_mde()
389 mdep->tag = htomd8(type); in create_mde()
393 mdep->d.prop_idx = htomd32(nodep->next_index); in create_mde()
394 mdep->name_len = htomd8(nodep->typep->size - 1); in create_mde()
395 mdep->name_offset = htomd32(nodep->typep->build_offset); in create_mde()
400 mdep->d.prop_idx = htomd64(propp->d.arc.val.nodep->build_index); in create_mde()
[all …]
/titanic_41/usr/src/uts/common/io/lvm/softpart/
H A Dsp_ioctl.c165 md_error_t *mdep; in sp_setstatus() local
172 mdep = &msp->mde; in sp_setstatus()
174 mdclrerror(mdep); in sp_setstatus()
185 if ((un = sp_getun(minors[i], mdep)) == NULL) { in sp_setstatus()
186 err = mdmderror(mdep, MDE_INVAL_UNIT, minors[i]); in sp_setstatus()
193 un = sp_getun(minors[i], mdep); in sp_setstatus()
225 md_error_t *mdep; in sp_update_watermarks() local
246 mdep = &mup->mde; in sp_update_watermarks()
248 mdclrerror(mdep); in sp_update_watermarks()
252 return (mdmderror(mdep, MDE_INVAL_UNIT, mnum)); in sp_update_watermarks()
[all …]
/titanic_41/usr/src/uts/i86pc/os/
H A Dfastboot.c463 fastboot_build_mbi(char *mdep, fastboot_info_t *nk) in fastboot_build_mbi() argument
480 if (mdep != NULL && strlen(mdep) != 0) { in fastboot_build_mbi()
481 arglen = strlen(mdep) + 1; in fastboot_build_mbi()
581 if (mdep != NULL && strlen(mdep) != 0) { in fastboot_build_mbi()
582 bcopy(mdep, (void *)(start_addr_va + offs), arglen); in fastboot_build_mbi()
620 fastboot_parse_mdep(char *mdep, char *kern_bootpath, int *bootpath_len, in fastboot_parse_mdep() argument
629 if (mdep != NULL && strlen(mdep) != 0) { in fastboot_parse_mdep()
630 if (mdep[0] != '-') { in fastboot_parse_mdep()
633 while (mdep[i] != '\0' && mdep[i] != ' ') { in fastboot_parse_mdep()
637 if (i < 4 || strncmp(&mdep[i-4], "unix", 4) != 0) { in fastboot_parse_mdep()
[all …]
/titanic_41/usr/src/uts/common/io/lvm/stripe/
H A Dstripe_ioctl.c141 md_error_t *mdep; in stripe_set() local
152 mdep = &msp->mde; in stripe_set()
154 mdclrerror(mdep); in stripe_set()
157 return (mdmderror(mdep, MDE_INVAL_UNIT, mnum)); in stripe_set()
161 return (mdmddberror(mdep, MDE_DB_STALE, mnum, setno)); in stripe_set()
165 return (mdmderror(mdep, MDE_UNIT_ALREADY_SETUP, mnum)); in stripe_set()
175 return (mdmderror(mdep, MDE_UNIT_TOO_LARGE, mnum)); in stripe_set()
185 return (mddbstatus2error(mdep, ms_recid, mnum, setno)); in stripe_set()
259 return (mdhsperror(mdep, MDE_INVAL_HSP, un->un_hsp_id)); in stripe_set()
304 md_error_t *mdep; in stripe_get() local
[all …]
/titanic_41/usr/src/lib/libc/i386/sys/
H A Duadmin.c167 uadmin(int cmd, int fcn, uintptr_t mdep) in uadmin() argument
169 extern int __uadmin(int cmd, int fcn, uintptr_t mdep); in uadmin()
174 bargs = (char *)mdep; in uadmin()
266 return (__uadmin(cmd, fcn, mdep)); in uadmin()
/titanic_41/usr/src/lib/libc/amd64/sys/
H A Duadmin.c167 uadmin(int cmd, int fcn, uintptr_t mdep) in uadmin() argument
169 extern int __uadmin(int cmd, int fcn, uintptr_t mdep); in uadmin()
174 bargs = (char *)mdep; in uadmin()
267 return (__uadmin(cmd, fcn, mdep)); in uadmin()
/titanic_41/usr/src/lib/libc/sparc/sys/
H A Duadmin.c136 uadmin(int cmd, int fcn, uintptr_t mdep) in uadmin() argument
138 extern int __uadmin(int cmd, int fcn, uintptr_t mdep); in uadmin()
145 return (__uadmin(cmd, fcn, mdep)); in uadmin()
/titanic_41/usr/src/ucblib/libucb/port/sys/
H A Dreboot.c70 int mdep = 0; in reboot() local
89 return (uadmin(cmd, fcn, mdep)); in reboot()
/titanic_41/usr/src/uts/common/cpr/
H A Dcpr_mod.c127 cpr(int fcn, void *mdep) in cpr() argument
321 if (mdep == NULL) { in cpr()
326 cpr_device = (major_t)atoi((char *)mdep); in cpr()
/titanic_41/usr/src/uts/sun4v/io/
H A Dmdeg.c386 mdeg_res->added.mdep = listp; in mdeg_notify_client_reg()
736 res->added.nelem = md_diff_added(mdd, &(res->added.mdep)); in mdeg_get_diff_results()
746 res->removed.nelem = md_diff_removed(mdd, &(res->removed.mdep)); in mdeg_get_diff_results()
757 res->match_curr.nelem = md_diff_matched(mdd, &(res->match_prev.mdep), in mdeg_get_diff_results()
758 &(res->match_curr.mdep)); in mdeg_get_diff_results()
H A Dvcc.c2206 i_vcc_md_remove_port(md_t *mdp, mde_cookie_t mdep, vcc_t *vccp) in i_vcc_md_remove_port() argument
2212 if (md_get_prop_val(mdp, mdep, "id", &portno)) { in i_vcc_md_remove_port()
2245 i_vcc_get_ldc_id(md_t *md, mde_cookie_t mdep, uint64_t *ldc_id) in i_vcc_get_ldc_id() argument
2264 if ((num_channels = md_scan_dag(md, mdep, in i_vcc_get_ldc_id()
2291 i_vcc_md_add_port(md_t *mdp, mde_cookie_t mdep, vcc_t *vccp) in i_vcc_md_add_port() argument
2301 if (md_get_prop_val(mdp, mdep, "id", &portno)) { in i_vcc_md_add_port()
2308 if (md_get_prop_str(mdp, mdep, "vcc-domain-name", &domain_name)) { in i_vcc_md_add_port()
2316 if (md_get_prop_str(mdp, mdep, "vcc-group-name", &group_name)) { in i_vcc_md_add_port()
2324 if (md_get_prop_val(mdp, mdep, "vcc-tcp-port", &tcp_port)) { in i_vcc_md_add_port()
2339 if (i_vcc_get_ldc_id(mdp, mdep, &ldc_id)) { in i_vcc_md_add_port()
[all …]
/titanic_41/usr/src/uts/sun4v/sys/
H A Dmdeg.h85 mde_cookie_t *mdep; member
/titanic_41/usr/src/cmd/halt/
H A Dhalt.c1266 uintptr_t mdep = NULL; in main() local
1377 mdep = (uintptr_t)bootargs_buf; in main()
1452 mdep = (uintptr_t)bootargs_buf; in main()
1456 if (mdep != NULL) in main()
1457 (void) fprintf(stderr, "mdep = %s\n", (char *)mdep); in main()
1557 mdep = (uintptr_t)bootargs_orig; in main()
1624 if (uadmin(cmd, fcn, mdep) == -1) in main()

12