/titanic_44/usr/src/lib/efcode/fcdriver/ |
H A D | build_tree.c | 43 fc_nodeop(common_data_t *cdp, fc_phandle_t node, char *svc) in fc_nodeop() argument 48 error = fc_run_priv(cdp, svc, 1, 1, fc_phandle2cell(node), &hcell); in fc_nodeop() 70 common_data_t *cdp = env->private; in get_prom_nodeid() local 77 if (os_get_prop_common(cdp, pd->node, "name", in get_prom_nodeid() 91 if (os_get_prop_common(cdp, ppd->node, "name", in get_prom_nodeid() 96 for (thisnode = fc_nodeop(cdp, ppd->node, FC_CHILD_FCODE); in get_prom_nodeid() 98 thisnode = fc_nodeop(cdp, thisnode, FC_PEER_FCODE)) { in get_prom_nodeid() 103 status = os_get_prop_common(cdp, thisnode, "name", in get_prom_nodeid() 112 pd->common = cdp; in get_prom_nodeid() 135 build_nodes(fcode_env_t *env, common_data_t *cdp, fc_phandle_t h) in build_nodes() argument [all …]
|
H A D | get_req.c | 52 common_data_t *cdp = env->private; in dot_request() local 55 " attach: %x args: '%s'\n", cdp->fc.config_address, in dot_request() 56 cdp->fc.fcode_size, cdp->fc.unit_address, cdp->attach, in dot_request() 64 fc_get_request(common_data_t *cdp) in fc_get_request() argument 69 if (cdp->fcode_fd < 0) { in fc_get_request() 74 if ((nbytes = read(cdp->fcode_fd, &c, sizeof (c))) < 0) { in fc_get_request() 79 if (ioctl(cdp->fcode_fd, FC_GET_PARAMETERS, &cdp->fc) < 0) { in fc_get_request() 84 if ((cdp->attach = fc_get_ap(cdp)) == NULL) in fc_get_request() 93 common_data_t *cdp = env->private; in get_my_args() local 102 if (ioctl(cdp->fcode_fd, FC_GET_MY_ARGS, buffer) < 0) { in get_my_args() [all …]
|
H A D | fcdebug.c | 44 common_data_t *cdp; in dump_private() local 50 cdp = p->common; in dump_private() 52 cdp = NULL; in dump_private() 54 cdp = env->private; in dump_private() 58 if (cdp == NULL) { in dump_private() 64 log_message(MSG_DEBUG, "Progname: %s\n", cdp->Progname); in dump_private() 65 log_message(MSG_DEBUG, "fcode_fd: %8p\n", cdp->fcode_fd); in dump_private() 66 log_message(MSG_DEBUG, "attach: %llx\n", cdp->attach); in dump_private() 67 log_message(MSG_DEBUG, "Params: (%8p)\n", &cdp->fc); in dump_private() 68 log_message(MSG_DEBUG, " size: %d\n", cdp->fc.fcode_size); in dump_private() [all …]
|
H A D | phandle.c | 76 common_data_t *cdp = env->private; in convert_phandle() local 82 t = find_resource(&cdp->nodeids, &nh, match_handle); in convert_phandle() 101 common_data_t *cdp = env->private; in revert_phandle() local 107 t = find_resource(&cdp->nodeids, &nh, match_nodeid); in revert_phandle() 123 common_data_t *cdp = env->private; in add_my_handle() local 128 if (add_resource(&cdp->nodeids, nh, match_handle) == NULL) { in add_my_handle() 137 common_data_t *cdp; in allocate_phandle() local 143 if ((cdp = env->private) == NULL) { in allocate_phandle() 148 if (!cdp->init_done) in allocate_phandle() 154 if (cdp->first_node) { in allocate_phandle() [all …]
|
H A D | property.c | 43 getproplen(common_data_t *cdp, fc_phandle_t node, char *propname, int inherit) in getproplen() argument 51 error = fc_run_priv(cdp, service, 2, 1, fc_phandle2cell(node), in getproplen() 60 getprop(common_data_t *cdp, fc_phandle_t node, char *propname, char *buf, in getprop() argument 69 error = fc_run_priv(cdp, service, 3, 1, fc_phandle2cell(node), in getprop() 78 os_get_prop_common(common_data_t *cdp, fc_phandle_t node, char *name, in os_get_prop_common() argument 84 i = getproplen(cdp, node, name, inherit); in os_get_prop_common() 97 j = getprop(cdp, node, name, bp, inherit); in os_get_prop_common()
|
H A D | ioctl.c | 47 fc_run_priv(common_data_t *cdp, char *service, int nin, int nout, ...) in fc_run_priv() argument 72 error = ioctl(cdp->fcode_fd, FC_RUN_PRIV, cip); in fc_run_priv() 92 cdp->Progname, error_msg); in fc_run_priv()
|
/titanic_44/usr/src/cmd/fm/modules/common/sw-diag-response/subsidiary/smf/ |
H A D | smf_diag.c | 122 swde_smf_casedata_t *cdp; in swde_smf_recv() local 175 cdp = fmd_hdl_zalloc(hdl, sizeof (*cdp) + sz, FMD_SLEEP); in swde_smf_recv() 176 cdp->scd_vers = SWDE_SMF_CASEDATA_VERS; in swde_smf_recv() 177 fmribuf = (char *)cdp + sizeof (*cdp); in swde_smf_recv() 178 cdp->scd_nvlbufsz = sz; in swde_smf_recv() 190 (void *)cdp, sizeof (*cdp) + sz)) == NULL) { in swde_smf_recv() 192 fmd_hdl_free(hdl, cdp, sizeof (*cdp) + sz); in swde_smf_recv() 241 swde_smf_casedata_t *cdp; in swde_smf_vrfy() local 246 cdp = swde_case_data(hdl, cp, &v); in swde_smf_vrfy() 248 if (cdp == NULL || v != 1) in swde_smf_vrfy() [all …]
|
/titanic_44/usr/src/psm/stand/cpr/common/ |
H A D | support.c | 159 cpr_read_cdump(int fd, cdd_t *cdp, ushort_t mach_type) in cpr_read_cdump() argument 165 nread = cpr_read(fd, (caddr_t)cdp, sizeof (*cdp)); in cpr_read_cdump() 166 if (nread != sizeof (*cdp)) { in cpr_read_cdump() 171 if (cdp->cdd_magic != CPR_DUMP_MAGIC) { in cpr_read_cdump() 173 str, cdp->cdd_magic, CPR_DUMP_MAGIC); in cpr_read_cdump() 177 if (cdp->cdd_version != CPR_VERSION) { in cpr_read_cdump() 179 str, cdp->cdd_version, CPR_VERSION); in cpr_read_cdump() 183 if (cdp->cdd_machine != mach_type) { in cpr_read_cdump() 185 str, cdp->cdd_machine, mach_type); in cpr_read_cdump() 189 if (cdp->cdd_bitmaprec <= 0) { in cpr_read_cdump() [all …]
|
/titanic_44/usr/src/stand/lib/fs/nfs/ |
H A D | lookup.c | 105 struct nfs_file *cdp = NULL; in stlookuppn() local 174 ((cdp = (struct nfs_file *)get_icache(mac_get_dev(), cino)) == 0)) { in stlookuppn() 229 if (cdp = (struct nfs_file *) in stlookuppn() 236 *cdp = *lkp; in stlookuppn() 239 set_icache(mac_get_dev(), cino, cdp, in stlookuppn() 247 cdp = lkp; in stlookuppn() 258 if (cfile_is_lnk(cdp)) { in stlookuppn() 270 switch (cdp->version) { in stlookuppn() 272 error = nfsgetsymlink(cdp, &pathp); in stlookuppn() 275 error = nfs3getsymlink(cdp, &pathp); in stlookuppn() [all …]
|
/titanic_44/usr/src/cmd/fm/modules/common/sw-diag-response/subsidiary/panic/ |
H A D | panic_diag.c | 318 swde_panic_casedata_t *cdp; in swde_panic_timeout() local 325 cdp = swde_case_data(hdl, cp, &vers); in swde_panic_timeout() 329 if (now > cdp->scd_receive_time + 30 * 60) { in swde_panic_timeout() 330 if (nvlist_unpack((char *)cdp + sizeof (*cdp), in swde_panic_timeout() 331 cdp->scd_nvlbufsz, &attr, 0) == 0) { in swde_panic_timeout() 360 swde_panic_casedata_t *cdp; in swde_panic_vrfy() local 365 cdp = swde_case_data(hdl, cp, &vers); in swde_panic_vrfy() 370 if (now > cdp->scd_receive_time + 30 * 60) { in swde_panic_vrfy() 371 if (nvlist_unpack((char *)cdp + sizeof (*cdp), in swde_panic_vrfy() 372 cdp->scd_nvlbufsz, &attr, 0) == 0) { in swde_panic_vrfy() [all …]
|
/titanic_44/usr/src/common/ctf/ |
H A D | ctf_decl.c | 74 ctf_decl_node_t *cdp, *ndp; in ctf_decl_fini() local 78 for (cdp = ctf_list_next(&cd->cd_nodes[i]); in ctf_decl_fini() 79 cdp != NULL; cdp = ndp) { in ctf_decl_fini() 80 ndp = ctf_list_next(cdp); in ctf_decl_fini() 81 ctf_free(cdp, sizeof (ctf_decl_node_t)); in ctf_decl_fini() 89 ctf_decl_node_t *cdp; in ctf_decl_push() local 140 if ((cdp = ctf_alloc(sizeof (ctf_decl_node_t))) == NULL) { in ctf_decl_push() 145 cdp->cd_type = type; in ctf_decl_push() 146 cdp->cd_kind = kind; in ctf_decl_push() 147 cdp->cd_n = n; in ctf_decl_push() [all …]
|
H A D | ctf_types.c | 205 ctf_decl_node_t *cdp; in ctf_type_qlname() local 237 for (cdp = ctf_list_next(&cd.cd_nodes[prec]); in ctf_type_qlname() 238 cdp != NULL; cdp = ctf_list_next(cdp)) { in ctf_type_qlname() 242 ctf_lookup_by_id(&rfp, cdp->cd_type); in ctf_type_qlname() 253 switch (cdp->cd_kind) { in ctf_type_qlname() 265 ctf_decl_sprintf(&cd, "[%u]", cdp->cd_n); in ctf_type_qlname() 300 k = cdp->cd_kind; in ctf_type_qlname()
|
/titanic_44/usr/src/cmd/sgs/libconv/common/ |
H A D | cap.c | 80 conv_iter_elfcap(const elfcap_desc_t *cdp, uint_t cnum, in conv_iter_elfcap() argument 87 for (; cnum-- > 0; cdp++) { in conv_iter_elfcap() 92 if (cdp->c_val == 0) in conv_iter_elfcap() 97 str = cdp->c_full.s_str; in conv_iter_elfcap() 100 str = cdp->c_uc.s_str; in conv_iter_elfcap() 103 str = cdp->c_lc.s_str; in conv_iter_elfcap() 107 if ((* func)(str, cdp->c_val, uvalue) == CONV_ITER_DONE) in conv_iter_elfcap()
|
/titanic_44/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_conf.c | 845 fmd_conf_defer_t *cdp; in fmd_conf_propagate() local 849 for (cdp = src->cf_defer; cdp != NULL; cdp = cdp->cd_next) { in fmd_conf_propagate() 850 if (len == (size_t)(strchr(cdp->cd_name, ':') - cdp->cd_name) && in fmd_conf_propagate() 851 strncmp(cdp->cd_name, scope, len) == 0 && fmd_conf_setprop( in fmd_conf_propagate() 852 dst, cdp->cd_name + len + 1, cdp->cd_value) != 0) { in fmd_conf_propagate() 855 cdp->cd_name, scope, fmd_strerror(errno)); in fmd_conf_propagate() 867 fmd_conf_defer_t *cdp, *ndp; in fmd_conf_close() local 869 for (cdp = cfp->cf_defer; cdp != NULL; cdp = ndp) { in fmd_conf_close() 870 ndp = cdp->cd_next; in fmd_conf_close() 871 fmd_strfree(cdp->cd_name); in fmd_conf_close() [all …]
|
/titanic_44/usr/src/uts/i86pc/os/ |
H A D | cms.c | 99 struct cms_ctl *cdp = cmi_hdl_getspecific(hdl); in cms_hdl_getcms() local 101 return (cdp != NULL ? cdp->cs_cms : NULL); in cms_hdl_getcms() 107 struct cms_ctl *cdp = cmi_hdl_getspecific(hdl); in cms_hdl_getcmsdata() local 109 return (cdp != NULL ? cdp->cs_cmsdata : NULL); in cms_hdl_getcmsdata() 410 struct cms_ctl *cdp; in cms_init() local 414 cdp = kmem_alloc(sizeof (*cdp), KM_SLEEP); in cms_init() 415 cdp->cs_cms = cms; in cms_init() 416 cdp->cs_cmsdata = data; in cms_init() 417 cmi_hdl_setspecific(hdl, cdp); in cms_init() 427 struct cms_ctl *cdp; in cms_fini() local [all …]
|
/titanic_44/usr/src/common/elfcap/ |
H A D | elfcap.c | 367 get_str_desc(elfcap_style_t style, const elfcap_desc_t *cdp, in get_str_desc() argument 372 *ret_str = &cdp->c_full; in get_str_desc() 375 *ret_str = &cdp->c_uc; in get_str_desc() 378 *ret_str = &cdp->c_lc; in get_str_desc() 393 expand(elfcap_style_t style, elfcap_mask_t val, const elfcap_desc_t *cdp, in expand() argument 404 uint_t mask = cdp[cnt - 1].c_val; in expand() 411 err = get_str_desc(style, &cdp[cnt - 1], &nstr); in expand() 528 value(elfcap_style_t style, const char *str, const elfcap_desc_t *cdp, in value() argument 540 if (cdp[num].c_val == 0) in value() 543 if ((err = get_str_desc(style, &cdp[num], &nstr)) != 0) in value() [all …]
|
/titanic_44/usr/src/uts/sun4u/io/ |
H A D | ppm_xgsubr.c | 132 ppm_get_confdata(struct ppm_cdata **cdp, dev_info_t *dip) in ppm_get_confdata() argument 137 for (; (cinfo = *cdp) != NULL; cdp++) { in ppm_get_confdata() 156 ppm_attach_err(struct ppm_cdata **cdp, int err) in ppm_attach_err() argument 161 if (cdp) { in ppm_attach_err() 162 for (; *cdp; cdp++) { in ppm_attach_err() 163 if ((*cdp)->strings) { in ppm_attach_err() 164 ddi_prop_free((*cdp)->strings); in ppm_attach_err() 165 (*cdp)->strings = NULL; in ppm_attach_err()
|
/titanic_44/usr/src/uts/common/io/scsi/targets/ |
H A D | ses_ses.c | 225 SesEncDesc *cdp; in ses_getconfig() local 282 cdp = (SesEncDesc *) storage; in ses_getconfig() 284 bzero((caddr_t)cdp, sizeof (*cdp)); in ses_getconfig() 295 if (ses_encdesc((uchar_t *)sdata, amt, i, cdp)) { in ses_getconfig() 303 "\tWWN: %02x%02x%02x%02x%02x%02x%02x%02x", cdp->encWWN[0], in ses_getconfig() 304 cdp->encWWN[1], cdp->encWWN[2], cdp->encWWN[3], in ses_getconfig() 305 cdp->encWWN[4], cdp->encWWN[5], cdp->encWWN[6], in ses_getconfig() 306 cdp->encWWN[7]); in ses_getconfig() 645 ses_encdesc(uchar_t *buffer, int amt, uchar_t SubEncId, SesEncDesc *cdp) in ses_encdesc() argument 665 bcopy((caddr_t)&buffer[off], (caddr_t)cdp, e - off); in ses_encdesc()
|
/titanic_44/usr/src/cmd/th_tools/ |
H A D | th_define.c | 1753 struct collector_def *cdefs, *cdp; in test_driver() local 1858 for (i = 0, cdp = cdefs, hdl = hdls, nchildren = 0; in test_driver() 1859 i < cnt; i++, cdp++, hdl++) { in test_driver() 1860 if (add_edef(fd, &cdp->ed, &cdp->es, hdl, edp) != 0) { in test_driver() 1861 cdp->lp = 0; in test_driver() 1862 cdp->pid = 0; in test_driver() 1864 cdp->lp = (void *)cdp->ed.log.logbase; in test_driver() 1867 cdp->es.log.logsize, in test_driver() 1868 cdp->ed.log.logsize, in test_driver() 1869 cdp->ed.access_type); in test_driver() [all …]
|
/titanic_44/usr/src/uts/common/avs/ns/nsctl/ |
H A D | nsc_freeze.c | 262 _nsc_frz_open(path, flag, cdp) in _nsc_frz_open() argument 265 blind_t *cdp; 267 *cdp = 0;
|
/titanic_44/usr/src/uts/common/io/ppm/ |
H A D | ppm_subr.c | 66 ppm_get_confdata(struct ppm_cdata **cdp, dev_info_t *dip) in ppm_get_confdata() argument 74 for (; (cinfo = *cdp) != NULL; cdp++) { in ppm_get_confdata() 88 ppm_prop_free(struct ppm_cdata **cdp) in ppm_prop_free() argument 90 if (cdp) { in ppm_prop_free() 91 for (; *cdp; cdp++) { in ppm_prop_free() 92 if ((*cdp)->name) { in ppm_prop_free() 93 kmem_free((*cdp)->name, in ppm_prop_free() 94 strlen((*cdp)->name) + 1); in ppm_prop_free() 95 (*cdp)->name = NULL; in ppm_prop_free() 97 if ((*cdp)->strings) { in ppm_prop_free() [all …]
|
/titanic_44/usr/src/uts/common/os/ |
H A D | modconf.c | 548 cdevsw_impl_t *cdp; in mod_installdrv() local 624 cdp = &devimpl[major]; in mod_installdrv() 625 ASSERT(cdp->d_str == NULL); in mod_installdrv() 626 cdp->d_str = str; in mod_installdrv() 627 cdp->d_qflag = qflag | QISDRV; in mod_installdrv() 628 cdp->d_sqtype = sqtype; in mod_installdrv() 651 cdevsw_impl_t *cdp; in mod_removedrv() local 698 cdp = &devimpl[major]; in mod_removedrv() 699 ASSERT(cdp->d_str == str); in mod_removedrv() 700 cdp->d_str = NULL; in mod_removedrv() [all …]
|
/titanic_44/usr/src/cmd/fm/modules/common/disk-monitor/ |
H A D | diskmon_conf.c | 395 cfgdata_t *cdp = (cfgdata_t *)dzmalloc(sizeof (cfgdata_t)); in new_cfgdata() local 398 cdp->props = namevalpr_to_nvlist(nvp); in new_cfgdata() 399 else if (nvlist_alloc(&cdp->props, NV_UNIQUE_NAME, 0) != 0) { in new_cfgdata() 404 cdp->disk_list = dmp; in new_cfgdata() 405 return (cdp); in new_cfgdata() 434 cfgdata_free(cfgdata_t *cdp) in cfgdata_free() argument 436 nvlist_free(cdp->props); in cfgdata_free() 437 diskmon_free(cdp->disk_list); in cfgdata_free() 438 dfree(cdp, sizeof (cfgdata_t)); in cfgdata_free()
|
/titanic_44/usr/src/lib/efcode/pci/ |
H A D | pci.c | 42 private_data_t *cdp = DEVICE_PRIVATE(env); in mem_map_in() local 56 error = fc_run_priv(cdp->common, service, 4, 1, in mem_map_in() 104 private_data_t *cdp = DEVICE_PRIVATE(env); in mem_map_out() local 121 error = fc_run_priv(cdp->common, service, 2, 0, in mem_map_out()
|
/titanic_44/usr/src/cmd/make/bin/ |
H A D | read2.cc | 340 register wchar_t *cdp; in normalize_name() local 365 cdp = string; in normalize_name() 385 *cdp++ = *name_string++; in normalize_name() 388 *cdp = (int) nul_char; in normalize_name() 398 cdp = in normalize_name() 412 if (((count = cdp - current_component) != 0) && in normalize_name() 413 (exists(name = GETNAME(string, cdp - string)) > file_doesnt_exist) && in normalize_name() 417 cdp = current_component; in normalize_name() 424 *cdp++ = *name_string++; in normalize_name() 428 *cdp = (int) nul_char; in normalize_name() [all …]
|