Home
last modified time | relevance | path

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

12

/illumos-gate/usr/src/lib/efcode/fcdriver/
H A Dbuild_tree.c68 common_data_t *cdp = env->private; in get_prom_nodeid() local
110 pd->common = cdp; in get_prom_nodeid()
149 cdp->init_done = 0; in build_nodes()
178 pd->common = cdp; in build_nodes()
192 cdp->init_done = 2; in build_nodes()
194 cdp->init_done = 1; in build_nodes()
195 cdp->first_node = 1; in build_nodes()
207 build_nodes(env, cdp, cdp->attach); in build_tree()
223 if (cdp) { in install_builtin_nodes()
226 cdp->first_node = 0; in install_builtin_nodes()
[all …]
H A Dget_req.c54 cdp->fc.fcode_size, cdp->fc.unit_address, cdp->attach, in dot_request()
67 if (cdp->fcode_fd < 0) { in fc_get_request()
77 if (ioctl(cdp->fcode_fd, FC_GET_PARAMETERS, &cdp->fc) < 0) { in fc_get_request()
82 if ((cdp->attach = fc_get_ap(cdp)) == 0) in fc_get_request()
139 if (!cdp->fc.fcode_size) { in get_fcode_from_device()
319 return (cdp->fcode_fd >= 0); in open_fcode_dev()
327 if (cdp->fcode_fd >= 0) in get_request()
331 if (!fc_get_request(cdp)) { in get_request()
350 cdp->fcode_fd = 0; in get_efdaemon_request()
351 if (ioctl(cdp->fcode_fd, FC_GET_PARAMETERS, &cdp->fc) < 0) { in get_efdaemon_request()
[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()
67 log_message(MSG_DEBUG, "Params: (%8p)\n", &cdp->fc); in dump_private()
81 common_data_t *cdp = (common_data_t *)env->private; in trigger() local
83 ASSERT(cdp); in trigger()
85 cdp->fcode_fd = open("/dev/fcode", O_RDONLY); in trigger()
86 if (cdp->fcode_fd >= 0) { in trigger()
[all …]
H A Dphandle.c74 common_data_t *cdp = env->private; in convert_phandle() local
99 common_data_t *cdp = env->private; in revert_phandle() local
121 common_data_t *cdp = env->private; in add_my_handle() local
135 common_data_t *cdp; in allocate_phandle() local
140 if ((cdp = env->private) == NULL) { in allocate_phandle()
145 if (!cdp->init_done) in allocate_phandle()
151 if (cdp->first_node) { in allocate_phandle()
153 cdp->first_node = 0; in allocate_phandle()
159 pd->common = cdp; in allocate_phandle()
161 pd->upload = (cdp->init_done == 1); in allocate_phandle()
[all …]
H A Dproperty.c41 getproplen(common_data_t *cdp, fc_phandle_t node, char *propname, int inherit) in getproplen() argument
49 error = fc_run_priv(cdp, service, 2, 1, fc_phandle2cell(node), in getproplen()
58 getprop(common_data_t *cdp, fc_phandle_t node, char *propname, char *buf, in getprop() argument
67 error = fc_run_priv(cdp, service, 3, 1, fc_phandle2cell(node), in getprop()
76 os_get_prop_common(common_data_t *cdp, fc_phandle_t node, char *name, in os_get_prop_common() argument
82 i = getproplen(cdp, node, name, inherit); in os_get_prop_common()
95 j = getprop(cdp, node, name, bp, inherit); in os_get_prop_common()
H A Dioctl.c45 fc_run_priv(common_data_t *cdp, char *service, int nin, int nout, ...) in fc_run_priv() argument
70 error = ioctl(cdp->fcode_fd, FC_RUN_PRIV, cip); in fc_run_priv()
90 cdp->Progname, error_msg); in fc_run_priv()
/illumos-gate/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, 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 …]
/illumos-gate/usr/src/psm/stand/cpr/common/
H A Dsupport.c165 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()
194 if (cdp->cdd_dumppgsize <= 0) { in cpr_read_cdump()
[all …]
/illumos-gate/usr/src/stand/lib/fs/nfs/
H A Dlookup.c105 struct nfs_file *cdp = NULL; in stlookuppn() local
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()
282 cdp->version); in stlookuppn()
301 roothandle = *cdp; in stlookuppn()
[all …]
/illumos-gate/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
330 if (nvlist_unpack((char *)cdp + sizeof (*cdp), in swde_panic_timeout()
360 swde_panic_casedata_t *cdp; in swde_panic_vrfy() local
371 if (nvlist_unpack((char *)cdp + sizeof (*cdp), in swde_panic_vrfy()
404 swde_panic_casedata_t *cdp; in swde_panic_detected() local
442 cdp = fmd_hdl_zalloc(hdl, sizeof (*cdp) + sz, FMD_SLEEP); in swde_panic_detected()
443 fmribuf = (char *)cdp + sizeof (*cdp); in swde_panic_detected()
445 cdp->scd_receive_time = time(NULL); in swde_panic_detected()
446 cdp->scd_nvlbufsz = sz; in swde_panic_detected()
453 cdp, sizeof (*cdp) + sz)) == NULL) { in swde_panic_detected()
[all …]
/illumos-gate/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
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()
165 ctf_list_prepend(&cd->cd_nodes[prec], cdp); in ctf_decl_push()
[all …]
H A Dctf_types.c302 ctf_decl_node_t *cdp; in ctf_type_qlname() local
334 for (cdp = ctf_list_next(&cd.cd_nodes[prec]); in ctf_type_qlname()
335 cdp != NULL; cdp = ctf_list_next(cdp)) { in ctf_type_qlname()
339 ctf_lookup_by_id(&rfp, cdp->cd_type); in ctf_type_qlname()
350 switch (cdp->cd_kind) { in ctf_type_qlname()
365 vname != NULL ? vname : "", cdp->cd_n); in ctf_type_qlname()
370 cdp->cd_type, want_func_args); in ctf_type_qlname()
419 k = cdp->cd_kind; in ctf_type_qlname()
429 cdp = ctf_list_next( in ctf_type_qlname()
432 if (cdp != NULL) { in ctf_type_qlname()
/illumos-gate/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()
852 dst, cdp->cd_name + len + 1, cdp->cd_value) != 0) { 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()
972 fmd_conf_defer_t *cdp; in fmd_conf_setdefer() local
979 for (cdp = cfp->cf_defer; cdp != NULL; cdp = cdp->cd_next) { in fmd_conf_setdefer()
[all …]
/illumos-gate/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()
/illumos-gate/usr/src/uts/i86pc/os/
H A Dcms.c106 return (cdp != NULL ? cdp->cs_cms : NULL); in cms_hdl_getcms()
114 return (cdp != NULL ? cdp->cs_cmsdata : NULL); in cms_hdl_getcmsdata()
415 struct cms_ctl *cdp; in cms_init() local
419 cdp = kmem_alloc(sizeof (*cdp), KM_SLEEP); in cms_init()
420 cdp->cs_cms = cms; in cms_init()
421 cdp->cs_cmsdata = data; in cms_init()
432 struct cms_ctl *cdp; in cms_fini() local
439 if (cdp != NULL) { in cms_fini()
440 if (cdp->cs_cms != NULL) in cms_fini()
441 cms_rele(cdp->cs_cms); in cms_fini()
[all …]
/illumos-gate/usr/src/common/elfcap/
H A Delfcap.c512 get_str_desc(elfcap_style_t style, const elfcap_desc_t *cdp, in get_str_desc() argument
517 *ret_str = &cdp->c_full; in get_str_desc()
520 *ret_str = &cdp->c_uc; in get_str_desc()
523 *ret_str = &cdp->c_lc; in get_str_desc()
549 uint_t mask = cdp[cnt - 1].c_val; in expand()
556 err = get_str_desc(style, &cdp[cnt - 1], &nstr); in expand()
673 value(elfcap_style_t style, const char *str, const elfcap_desc_t *cdp, in value() argument
685 if (cdp[num].c_val == 0) in value()
688 if ((err = get_str_desc(style, &cdp[num], &nstr)) != 0) in value()
692 return (cdp[num].c_val); in value()
[all …]
/illumos-gate/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)->strings = NULL; in ppm_attach_err()
/illumos-gate/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->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()
/illumos-gate/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()
/illumos-gate/usr/src/cmd/th_tools/
H A Dth_define.c1852 if (add_edef(fd, &cdp->ed, &cdp->es, hdl, edp) != 0) { in test_driver()
1853 cdp->lp = 0; in test_driver()
1854 cdp->pid = 0; in test_driver()
1856 cdp->lp = (void *)cdp->ed.log.logbase; in test_driver()
1859 cdp->es.log.logsize, in test_driver()
1869 cdp->pid = pid; in test_driver()
1884 for (i = 0, cdp = cdefs; i < cnt; i++, cdp++) in test_driver()
1885 if (cdp->pid) { in test_driver()
1927 if (cdp->pid == pid) in test_driver()
1928 cdp->pid = 0; in test_driver()
[all …]
/illumos-gate/usr/src/uts/common/io/ppm/
H A Dppm_subr.c74 for (; (cinfo = *cdp) != NULL; cdp++) { in ppm_get_confdata()
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()
98 ddi_prop_free((*cdp)->strings); in ppm_prop_free()
99 (*cdp)->strings = NULL; in ppm_prop_free()
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dmodconf.c552 cdevsw_impl_t *cdp; in mod_installdrv() local
628 cdp = &devimpl[major]; in mod_installdrv()
630 cdp->d_str = str; in mod_installdrv()
632 cdp->d_sqtype = sqtype; in mod_installdrv()
655 cdevsw_impl_t *cdp; in mod_removedrv() local
702 cdp = &devimpl[major]; in mod_removedrv()
703 ASSERT(cdp->d_str == str); in mod_removedrv()
704 cdp->d_str = NULL; in mod_removedrv()
707 if (cdp->d_dmp != NULL) { in mod_removedrv()
708 rele_dm(cdp->d_dmp); in mod_removedrv()
[all …]
/illumos-gate/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()
/illumos-gate/usr/src/lib/efcode/pci/
H A Dpci.c40 private_data_t *cdp = DEVICE_PRIVATE(env); in mem_map_in() local
54 error = fc_run_priv(cdp->common, service, 4, 1, in mem_map_in()
102 private_data_t *cdp = DEVICE_PRIVATE(env); in mem_map_out() local
119 error = fc_run_priv(cdp->common, service, 2, 0, in mem_map_out()
/illumos-gate/usr/src/cmd/make/bin/
H A Dread2.cc342 wchar_t *cdp; in normalize_name() local
367 cdp = string; in normalize_name()
387 *cdp++ = *name_string++; in normalize_name()
390 *cdp = (int) nul_char; in normalize_name()
400 cdp = in normalize_name()
414 if (((count = cdp - current_component) != 0) && in normalize_name()
419 cdp = current_component; in normalize_name()
426 *cdp++ = *name_string++; in normalize_name()
430 *cdp = (int) nul_char; in normalize_name()
437 current_component = cdp; in normalize_name()
[all …]

12