Searched defs:dcp (Results 1 - 25 of 68) sorted by relevance

123

/illumos-gate/usr/src/uts/common/io/
H A Ddma_engine.c225 struct dmae_chnl *dcp; local
238 dcp = &dmae_stat[chnl];
239 dcp->dch_cookiep = cp;
241 dcp->proc = dmaereqp->proc;
242 dcp->procparms = dmaereqp->procparms;
264 struct dmae_chnl *dcp; local
277 dcp = &dmae_stat[chnl];
278 dcp->dch_cookiep = cp;
279 dcp->proc = dmaereqp->proc;
280 dcp
[all...]
/illumos-gate/usr/src/uts/sun4u/io/pci/
H A Dpci_devctl.c171 struct devctl_iocdata *dcp; local
188 if (ndi_dc_allochdl((void *)arg, &dcp) != NDI_SUCCESS)
229 ndi_dc_freehdl(dcp);
H A Dsimba.c1122 struct devctl_iocdata *dcp; local
1147 if (ndi_dc_allochdl((void *)arg, &dcp) != NDI_SUCCESS)
1183 ndi_dc_freehdl(dcp);
/illumos-gate/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_config.c687 ndmp_device_capability_v3 *dcp; local
699 dcp_save = dcp = ndmp_malloc(sizeof (ndmp_device_capability_v3) * max);
734 tip->caplist.caplist_val = dcp;
735 dcp->device = sd->sd_name; /* like "isp1t060" */
736 dcp->attr = 0;
737 dcp->capability.capability_len = 3;
738 dcp->capability.capability_val = envp_head;
740 dcp++;
792 ndmp_device_capability_v3 *dcp, *dcp_save; local
802 dcp_save = dcp
[all...]
/illumos-gate/usr/src/cmd/vi/port/
H A Dexpreserve.c360 unsigned char *dcp; local
367 dcp = path + strlen(path) - 1;
369 while (isdigit(*dcp))
370 dcp--;
373 if (dcp[0] == 'z') {
374 dcp[0] = 'a';
375 if (dcp[-1] == 'z') {
376 dcp[-1] = 'a';
377 if (dcp[-2] == 'z') {
382 dcp[
[all...]
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_rawfile.c350 const mdb_dcmd_t *dcp; local
352 for (dcp = &rf_dcmds[0]; dcp->dc_name != NULL; dcp++) {
353 if (mdb_module_remove_dcmd(t->t_module, dcp->dc_name) == -1)
354 warn("failed to remove dcmd %s", dcp->dc_name);
H A Dmdb_module.c108 const mdb_dcmd_t *dcp; local
245 for (dcp = &mod->mod_info->mi_dcmds[0]; dcp->dc_name != NULL; dcp++) {
246 if (strbadid(dcp->dc_name) != NULL) {
248 dcp->dc_name);
252 if (dcp->dc_descr == NULL) {
254 dcp->dc_name);
258 if (dcp->dc_funcp == NULL) {
260 dcp
356 const mdb_dcmd_t *dcp; local
434 mdb_module_add_dcmd(mdb_module_t *mod, const mdb_dcmd_t *dcp, int flags) argument
[all...]
H A Dmdb.c463 const mdb_dcmd_t *dcp; local
545 for (dcp = &mdb_dcmd_builtins[0]; dcp->dc_name != NULL; dcp++)
546 (void) mdb_module_add_dcmd(&mdb.m_rmod, dcp, 0);
577 const mdb_dcmd_t *dcp; local
616 for (dcp = &mdb_dcmd_builtins[0]; dcp->dc_name != NULL; dcp++)
617 (void) mdb_module_remove_dcmd(&mdb.m_rmod, dcp
[all...]
/illumos-gate/usr/src/cmd/th_tools/
H A Dth_manage.c271 devctl_hdl_t dcp; local
273 if ((dcp = devctl_device_acquire(path, 0)) == NULL) {
276 if ((devctl_device_online(dcp)) == -1) {
277 devctl_release(dcp);
280 devctl_release(dcp);
288 devctl_hdl_t dcp; local
290 if ((dcp = devctl_device_acquire(path, 0)) == NULL) {
293 if ((devctl_device_offline(dcp)) == -1) {
294 devctl_release(dcp);
297 devctl_release(dcp);
304 devctl_hdl_t dcp; local
[all...]
/illumos-gate/usr/src/uts/common/io/1394/
H A Ds1394_misc.c581 struct devctl_iocdata *dcp; local
603 if (ndi_dc_allochdl((void *)arg, &dcp) != NDI_SUCCESS) {
650 ndi_dc_freehdl(dcp);
/illumos-gate/usr/src/cmd/dumpadm/
H A Ddconf.c89 dconf_init(dumpconf_t *dcp, int dcmode) argument
98 (void) strcpy(dcp->dc_device, DC_STR_SWAP);
99 (void) strcpy(dcp->dc_savdir, "/var/crash");
102 (void) strcat(dcp->dc_savdir, "/");
103 (void) strcat(dcp->dc_savdir, ut.nodename);
110 dcp->dc_cflags = DUMP_KERNEL;
111 dcp->dc_enable = DC_ON;
112 dcp->dc_csave = DC_COMPRESSED;
114 dcp->dc_mode = dcmode;
115 dcp
122 dconf_open(dumpconf_t *dcp, const char *dpath, const char *fpath, int dcmode) argument
217 dconf_getdev(dumpconf_t *dcp) argument
238 dconf_close(dumpconf_t *dcp) argument
248 dconf_write(dumpconf_t *dcp) argument
341 dconf_dev_ioctl(dumpconf_t *dcp, int cmd) argument
370 dconf_update(dumpconf_t *dcp, int checkinuse) argument
506 dconf_write_uuid(dumpconf_t *dcp) argument
524 dconf_get_dumpsize(dumpconf_t *dcp) argument
541 dconf_print(dumpconf_t *dcp, FILE *fp) argument
584 dconf_str2device(dumpconf_t *dcp, char *buf) argument
605 dconf_str2savdir(dumpconf_t *dcp, char *buf) argument
616 dconf_str2content(dumpconf_t *dcp, char *buf) argument
639 dconf_str2enable(dumpconf_t *dcp, char *buf) argument
656 dconf_str2csave(dumpconf_t *dcp, char *buf) argument
673 print_content(const dumpconf_t *dcp, FILE *fp) argument
688 print_device(const dumpconf_t *dcp, FILE *fp) argument
695 print_enable(const dumpconf_t *dcp, FILE *fp) argument
702 print_csave(const dumpconf_t *dcp, FILE *fp) argument
709 print_savdir(const dumpconf_t *dcp, FILE *fp) argument
[all...]
/illumos-gate/usr/src/cmd/devctl/
H A Ddevctl.c187 devctl_hdl_t dcp; local
278 dcp = devctl_pm_bus_acquire(devctl_device, 0);
279 if (dcp == NULL) {
286 dcp = devctl_bus_acquire(devctl_device, 0);
287 if (dcp == NULL) {
304 dcp = devctl_pm_dev_acquire(devctl_device, 0);
305 if (dcp == NULL) {
312 dcp = devctl_device_acquire(devctl_device, 0);
313 if (dcp == NULL) {
327 rv = (dcmd->cmdf)(dcp);
337 dev_pm_testbusy(devctl_hdl_t dcp) argument
351 bus_pm_teststrict(devctl_hdl_t dcp) argument
366 dev_getstate(devctl_hdl_t dcp) argument
379 bus_getstate(devctl_hdl_t dcp) argument
[all...]
/illumos-gate/usr/src/lib/libshell/common/bltins/
H A Dshiocmd_solaris.c243 struct dcclass *dcp = (struct dcclass*)nfp; local
244 Shclass_t *sp = &dcp->sclass;
246 Namval_t *nq,**nodes = (Namval_t**)(dcp+1);
327 static char *walk_class(register Namval_t *np, int dlete, struct dcclass *dcp) argument
339 genvalue(outfile,&dcp->sclass,0,np);
/illumos-gate/usr/src/lib/libdevice/
H A Ddevctl.c230 struct devctl_hdl *dcp; local
247 if ((dcp = calloc(1, sizeof (*dcp))) == NULL) {
251 if ((dcp->opath = strdup(path)) == NULL) {
252 devctl_release((devctl_hdl_t)dcp);
258 dcp->hdltype = type;
259 dcp->fd = -1;
275 devctl_release((devctl_hdl_t)dcp);
290 devctl_release((devctl_hdl_t)dcp);
295 devctl_release((devctl_hdl_t)dcp);
484 devctl_pm_raisepower(devctl_hdl_t dcp) argument
506 devctl_pm_changepowerhigh(devctl_hdl_t dcp) argument
528 devctl_pm_changepowerlow(devctl_hdl_t dcp) argument
550 devctl_pm_idlecomponent(devctl_hdl_t dcp) argument
572 devctl_pm_busycomponent(devctl_hdl_t dcp) argument
594 devctl_pm_testbusy(devctl_hdl_t dcp, uint_t *busystate) argument
629 devctl_pm_failsuspend(devctl_hdl_t dcp) argument
647 devctl_pm_bus_teststrict(devctl_hdl_t dcp, uint_t *strict) argument
681 devctl_pm_device_promprintf(devctl_hdl_t dcp) argument
704 devctl_pm_device_changeonresume(devctl_hdl_t dcp) argument
727 devctl_pm_device_no_lower_power(devctl_hdl_t dcp) argument
749 devctl_pm_bus_no_invol(devctl_hdl_t dcp) argument
769 devctl_device_online(devctl_hdl_t dcp) argument
790 devctl_device_offline(devctl_hdl_t dcp) argument
811 devctl_device_remove(devctl_hdl_t dcp) argument
833 devctl_bus_quiesce(devctl_hdl_t dcp) argument
846 devctl_bus_unquiesce(devctl_hdl_t dcp) argument
859 devctl_bus_reset(devctl_hdl_t dcp) argument
872 devctl_bus_resetall(devctl_hdl_t dcp) argument
885 devctl_device_reset(devctl_hdl_t dcp) argument
898 devctl_device_getstate(devctl_hdl_t dcp, uint_t *devstate) argument
924 devctl_bus_getstate(devctl_hdl_t dcp, uint_t *devstate) argument
950 devctl_bus_configure(devctl_hdl_t dcp) argument
963 devctl_bus_unconfigure(devctl_hdl_t dcp) argument
983 devctl_bus_dev_create(devctl_hdl_t dcp, devctl_ddef_t ddef_hdl, uint_t flags, devctl_hdl_t *new_dcp) argument
1034 devctl_ap_connect(devctl_hdl_t dcp, nvlist_t *ap_data) argument
1047 devctl_ap_disconnect(devctl_hdl_t dcp, nvlist_t *ap_data) argument
1060 devctl_ap_insert(devctl_hdl_t dcp, nvlist_t *ap_data) argument
1073 devctl_ap_remove(devctl_hdl_t dcp, nvlist_t *ap_data) argument
1086 devctl_ap_configure(devctl_hdl_t dcp, nvlist_t *ap_data) argument
1099 devctl_ap_unconfigure(devctl_hdl_t dcp, nvlist_t *ap_data) argument
1112 devctl_ap_getstate(devctl_hdl_t dcp, nvlist_t *ap_data, devctl_ap_state_t *apstate) argument
1311 devctl_get_pathname(devctl_hdl_t dcp, char *pathbuf, size_t bufsz) argument
1327 dc_cmd(uint_t cmd, uint_t flags, struct devctl_hdl *dcp, nvlist_t *ulp, void *retinfo) argument
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_sctp.c727 const sctp_data_chunk_t *dcp = data; local
731 if (datalen < sizeof (*dcp)) {
735 sizeof (*dcp));
740 ppid = ntohl(dcp->sdc_payload_id);
742 datalen -= sizeof (*dcp);
755 "TSN = 0x%.8x", ntohl(dcp->sdc_tsn));
757 "Stream ID = %hu", ntohs(dcp->sdc_sid));
759 "Stream Sequence Number = %hu", ntohs(dcp->sdc_ssn));
768 "ppid %x ", datalen, ntohl(dcp->sdc_tsn),
769 ntohs(dcp
[all...]
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_module.c955 struct fm_dc_handle *dcp, **dcv; local
988 if ((dcp = fm_dc_opendict(FM_DC_VERSION, dictdir, dictnam)) == NULL)
991 dcv = fmd_alloc(sizeof (dcp) * (mp->mod_dictc + 1), FMD_SLEEP);
992 bcopy(mp->mod_dictv, dcv, sizeof (dcp) * mp->mod_dictc);
993 fmd_free(mp->mod_dictv, sizeof (dcp) * mp->mod_dictc);
995 mp->mod_dictv[mp->mod_dictc++] = dcp;
997 len = fm_dc_codelen(dcp);
/illumos-gate/usr/src/stand/lib/fs/common/
H A Dcache.c388 dc_t *dcp; local
394 dcp = (dc_t *)get_cache(dc_hash[DC_HASH(dev, name, x_len)], &dc_head);
396 return (dcp ? dcp->dc_inum : 0);
413 dc_t *dcp = local
416 if (dcp->dc_hdr.data = (void *)bkmem_alloc(len)) {
423 dcp->dc_pnum = pnum;
424 dcp->dc_inum = inum;
425 dcp->dc_hdr.dev = dev;
426 dcp
449 dc_t *dcp = local
[all...]
/illumos-gate/usr/src/uts/sun4u/serengeti/io/
H A Dssm.c805 struct devctl_iocdata *dcp; local
820 if (ndi_dc_allochdl((void *)arg, &dcp) != NDI_SUCCESS)
823 addr = ndi_dc_getaddr(dcp);
826 ndi_dc_freehdl(dcp);
830 if (ndi_dc_allochdl((void *)arg, &dcp) != NDI_SUCCESS)
833 addr = ndi_dc_getaddr(dcp);
836 ndi_dc_freehdl(dcp);
/illumos-gate/usr/src/uts/sun4/io/
H A Debus.c1034 struct devctl_iocdata *dcp; local
1058 if (ndi_dc_allochdl((void *)arg, &dcp) != NDI_SUCCESS)
1093 ndi_dc_freehdl(dcp);
/illumos-gate/usr/src/uts/sun4u/io/i2c/nexus/
H A Di2bsc.c428 struct devctl_iocdata *dcp; local
441 if (ndi_dc_allochdl((void *)arg, &dcp) != NDI_SUCCESS) {
447 rv = ndi_dc_devi_create(dcp, self, 0, NULL);
451 if (ndi_dc_getname(dcp) == NULL ||
452 ndi_dc_getaddr(dcp) == NULL) {
461 ndi_dc_getname(dcp), ndi_dc_getaddr(dcp));
478 ndi_dc_freehdl(dcp);
H A Dpcf8584.c526 struct devctl_iocdata *dcp; local
538 if (ndi_dc_allochdl((void *)arg, &dcp) != NDI_SUCCESS) {
545 rv = ndi_dc_devi_create(dcp, self, 0, NULL);
548 rv = ndi_devctl_device_remove(self, dcp, 0);
554 ndi_dc_freehdl(dcp);
/illumos-gate/usr/src/uts/common/io/cardbus/
H A Dcardbus_hp.c1119 struct devctl_iocdata *dcp; local
1142 &dcp) != NDI_SUCCESS)
1180 ndi_dc_freehdl(dcp);
1363 if (ndi_dc_return_ap_state(&ap_state, dcp) != NDI_SUCCESS)
1674 ndi_dc_freehdl(dcp);
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Ddsl_pool.c445 dsl_pool_create(spa_t *spa, nvlist_t *zplprops, dsl_crypto_params_t *dcp, argument
504 if (dcp != NULL && dcp->cp_crypt != ZIO_CRYPT_OFF &&
505 dcp->cp_crypt != ZIO_CRYPT_INHERIT)
509 obj = dsl_dataset_create_sync_dd(dp->dp_root_dir, NULL, dcp, 0, tx);
/illumos-gate/usr/src/cmd/luxadm/
H A Dfchba.c2035 devctl_hdl_t dcp; local
2060 if ((dcp = devctl_device_acquire(path_phys,
2071 exit_code = devctl_device_online(dcp);
2074 exit_code = devctl_device_offline(dcp);
2083 devctl_release(dcp);
H A Dhotplug.c1266 devctl_hdl_t dcp; local
1296 if ((dcp = devctl_device_acquire(path_phys,
1307 exit_code = devctl_device_online(dcp);
1310 exit_code = devctl_device_offline(dcp);
1313 if ((exit_code = devctl_device_getstate(dcp,
1319 exit_code = devctl_device_reset(dcp);
1328 devctl_release(dcp);
1414 if ((dcp = devctl_bus_acquire(bus_path,
1426 exit_code = devctl_bus_quiesce(dcp);
1429 exit_code = devctl_bus_unquiesce(dcp);
[all...]

Completed in 368 milliseconds

123