Home
last modified time | relevance | path

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

12

/titanic_51/usr/src/lib/efcode/fcdriver/
H A Dbuild_tree.c43 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_ argument
203 common_data_t *cdp = env->private; build_tree() local
221 common_data_t *cdp = env->private; install_builtin_nodes() local
[all...]
H A Dget_req.c52 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 in fc_get_request()
93 common_data_t *cdp = env->private; get_my_args() local
136 common_data_t *cdp = env->private; get_fcode_from_device() local
255 common_data_t *cdp = env->private; find_fcode() local
317 common_data_t *cdp = env->private; open_fcode_dev() local
327 common_data_t *cdp = env->private; get_request() local
350 common_data_t *cdp = env->private; get_efdaemon_request() local
369 common_data_t *cdp = env->private; process_request() local
408 common_data_t *cdp = env->private; finish_request() local
[all...]
H A Dfcdebug.c44 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 in dump_private()
81 common_data_t *cdp = (common_data_t *)env->private; trigger() local
[all...]
H A Dphandle.c76 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 in allocate_phandle()
175 fc_get_ap(common_data_t * cdp) fc_get_ap() argument
[all...]
H A Dproperty.c43 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 Dioctl.c47 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_51/usr/src/cmd/fm/modules/common/sw-diag-response/subsidiary/smf/
H A Dsmf_diag.c122 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, sizeo in swde_smf_recv()
241 swde_smf_casedata_t *cdp; swde_smf_vrfy() local
[all...]
/titanic_51/usr/src/psm/stand/cpr/common/
H A Dsupport.c159 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 in cpr_read_cdump()
[all...]
/titanic_51/usr/src/stand/lib/fs/nfs/
H A Dlookup.c105 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, in stlookuppn()
[all...]
/titanic_51/usr/src/cmd/fm/modules/common/sw-diag-response/subsidiary/panic/
H A Dpanic_diag.c318 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 in swde_panic_vrfy()
404 swde_panic_casedata_t *cdp; swde_panic_detected() local
[all...]
/titanic_51/usr/src/common/ctf/
H A Dctf_decl.c74 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 in ctf_decl_push()
[all...]
/titanic_51/usr/src/cmd/sgs/libconv/common/
H A Dcap.c80 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_51/usr/src/cmd/fm/fmd/common/
H A Dfmd_conf.c845 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 in fmd_conf_propagate()
867 fmd_conf_defer_t *cdp, *ndp; fmd_conf_close() local
972 fmd_conf_defer_t *cdp; fmd_conf_setdefer() local
[all...]
/titanic_51/usr/src/uts/i86pc/os/
H A Dcms.c99 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 in cms_init()
427 struct cms_ctl *cdp; cms_fini() local
[all...]
/titanic_51/usr/src/common/elfcap/
H A Delfcap.c367 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[nu in value()
[all...]
/titanic_51/usr/src/uts/sun4u/io/
H A Dppm_xgsubr.c132 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) in ppm_attach_err()
[all...]
/titanic_51/usr/src/uts/common/io/scsi/targets/
H A Dses_ses.c225 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 in ses_getconfig()
645 ses_encdesc(uchar_t * buffer,int amt,uchar_t SubEncId,SesEncDesc * cdp) ses_encdesc() argument
[all...]
/titanic_51/usr/src/cmd/ctfdiff/
H A Dctfdiff.c323 ctf_diff_t *cdp; in main() local
490 if (ctf_diff_init(ifp, ofp, &cdp) != 0) { in main()
495 if (ctf_diff_setflags(cdp, flags) != 0) { in main()
502 err = ctf_diff_types(cdp, ctfdiff_cb, NULL); in main()
504 err = ctf_diff_functions(cdp, ctfdiff_func_cb, NULL); in main()
506 err = ctf_diff_objects(cdp, ctfdiff_obj_cb, NULL); in main()
510 ctf_diff_fini(cdp); in main()
/titanic_51/usr/src/cmd/th_tools/
H A Dth_define.c1753 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 in test_driver()
[all...]
/titanic_51/usr/src/uts/common/avs/ns/nsctl/
H A Dnsc_freeze.c251 * _nsc_frz_open(char *path, int flag, blind_t *cdp)
262 _nsc_frz_open(path, flag, cdp) in _nsc_frz_open() argument
265 blind_t *cdp;
267 *cdp = 0;
/titanic_51/usr/src/uts/common/io/ppm/
H A Dppm_subr.c66 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) in ppm_prop_free()
110 ppm_attach_err(struct ppm_cdata ** cdp,int err) ppm_attach_err() argument
[all...]
/titanic_51/usr/src/uts/common/os/
H A Dmodconf.c548 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 in mod_removedrv()
[all...]
/titanic_51/usr/src/cmd/fm/modules/common/disk-monitor/
H A Ddiskmon_conf.c395 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_51/usr/src/lib/efcode/pci/
H A Dpci.c42 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_51/usr/src/lib/libctf/common/
H A Dctf_merge.c776 ctf_diff_t *cdp; in ctf_merge_types() local
792 if ((ret = ctf_diff_init(out, source, &cdp)) != 0) in ctf_merge_types()
801 ctf_diff_fini(cdp); in ctf_merge_types()
805 ret = ctf_diff_types(cdp, ctf_merge_diffcb, &cm); in ctf_merge_types()
852 ctf_diff_fini(cdp); in ctf_merge_types()
897 ctf_diff_t *cdp; in ctf_uniquify_types() local
919 if ((ret = ctf_diff_init(parent, src, &cdp)) != 0) { in ctf_uniquify_types()
931 ctf_diff_fini(cdp); in ctf_uniquify_types()
935 ret = ctf_diff_types(cdp, ctf_merge_diffcb, &cm); in ctf_uniquify_types()
945 ctf_diff_fini(cdp); in ctf_uniquify_types()
1461 ctf_diff_t *cdp = NULL; ctf_merge_dedup() local
[all...]

12