/illumos-gate/usr/src/cmd/devfsadm/ |
H A D | ramdisk_link.c | 98 char devnm[MAXNAMELEN + 1]; local 108 (void) strlcpy(devnm, name, sizeof (devnm)); 110 (void) strlcpy(devnm, di_minor_name(di_minor), sizeof (devnm)); 111 RD_STRIP_SUFFIX(devnm); 114 if (strcmp(devnm, RD_CTL_NODE) == 0) { 122 RD_BLOCK_NAME : RD_CHAR_NAME, devnm);
|
/illumos-gate/usr/src/cmd/ramdiskadm/ |
H A D | main.c | 131 char devnm[MAXNAMELEN]; local 152 (void) strlcpy(devnm, name, sizeof (devnm)); 154 (void) strlcpy(devnm, di_minor_name(minor), 155 sizeof (devnm)); 156 RD_STRIP_SUFFIX(devnm); 177 RD_BLOCK_DEV_PFX "%s", devnm);
|
/illumos-gate/usr/src/uts/common/fs/devfs/ |
H A D | devfs_vfsops.c | 400 devfs_clean(dev_info_t *dip, char *devnm, uint_t flags) argument 415 (void) dv_cleandir(dvp, devnm, flags); 503 char *dirpath, *devnm; local 517 devnm = strrchr(dirpath, '/'); 519 ASSERT(devnm); 521 *devnm++ = '\0'; 532 if (*devnm == '\0') { 534 devnm = NULL; 537 dv_walk(VTODV(dirvp), devnm, callback, arg); local
|
H A D | devfs_subr.c | 885 char *devnm; local 906 devnm = kmem_alloc(MAXNAMELEN, KM_SLEEP); 907 (void) snprintf(devnm, MAXNAMELEN, "clone@0:%s", drvname); 911 dvp = dv_mknod(ddv, clone_dip, devnm, dmd); 913 kmem_free(devnm, MAXNAMELEN); 1273 char devnm[MAXNAMELEN]; local 1326 (void) sprintf(devnm, "%s@%s:%s", 1329 (void) sprintf(devnm, "%s:%s", 1332 if ((dv = dv_findbyname(ddv, devnm)) != NULL) { 1338 dv = dv_mknod(ddv, devi, devnm, dm 1368 dv_cleandir(struct dv_node *ddv, char *devnm, uint_t flags) argument 1867 dv_walk( struct dv_node *ddv, char *devnm, void (*callback)(struct dv_node *, void *), void *arg) argument [all...] |
/illumos-gate/usr/src/uts/common/io/ |
H A D | tphci.c | 463 tp_decode_name(char *devnm, char **cname, char **paddr, char **guid) argument 467 i_ddi_parse_name(devnm, cname, paddr, NULL); 485 char *cname, *paddr, *guid, *devnm; 500 devnm = i_ddi_strdup((char *)arg, KM_SLEEP); 501 len = strlen(devnm) + 1; 504 if (tp_decode_name(devnm, &cname, &paddr, &guid) != 0) { 507 kmem_free(devnm, len); 513 kmem_free(devnm, len); 553 char *devnm, *cname, *caddr; local 557 devnm [all...] |
H A D | tvhci.c | 545 * Return a pointer to the guid part of the devnm. 546 * devnm format is "nodename@busaddr", busaddr format is "gGUID". 549 tvhci_devnm_to_guid(char *devnm) argument 551 char *cp = devnm; 553 if (devnm == NULL)
|
H A D | cmlb.c | 2080 char *devnm; local 2108 devnm = kmem_alloc(MAXNAMELEN + 1, KM_SLEEP); 2109 (void) ddi_deviname(cl->cl_devi, devnm); 2111 (void) devfs_clean(pdip, devnm + 1, DV_CLEAN_FORCE); 2112 kmem_free(devnm, MAXNAMELEN + 1);
|
/illumos-gate/usr/src/cmd/fs.d/ |
H A D | preenlib.c | 105 preen_addev(char *devnm) argument 112 if ((fd = open64(devnm, O_RDONLY)) == -1) { 113 perror(devnm); 118 fprintf(stderr, "device: `%s'\n", devnm); 127 if ((rdp->devname = strdup(devnm)) == NULL) { 134 if (preen_subdev(devnm, &dki, (void *)rdp)) { 173 preen_getdev(char *devnm) argument 189 (void) strcpy(devnm, rdp->devname);
|
/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | dr_io.c | 177 char *devnm; local 206 if (md_get_prop_str(mdp, listp[i], "name", &devnm)) { 212 if (strcmp(devnm, name) != 0) 250 char *devnm, *devtype; 263 if (md_get_prop_str(cba->mdp, cba->node, "name", &devnm)) { 267 DR_DBG_IO("%s: device name is %s\n", __func__, devnm); 270 "name", devnm) != DDI_SUCCESS) { 334 DR_DBG_IO("%s: new device is %s@%ld\n", __func__, devnm, devid); 343 if (strcmp(devnm, "vsw") == 0 || strcmp(devnm, "networ [all...] |
/illumos-gate/usr/src/uts/common/contract/ |
H A D | device.c | 975 char *devnm; local 995 devnm = kmem_alloc(MAXNAMELEN + 1, KM_SLEEP); 996 (void) ddi_deviname(dip, devnm); 997 (void) devfs_clean(pdip, devnm + 1, DV_CLEAN_FORCE); 998 kmem_free(devnm, MAXNAMELEN + 1);
|
/illumos-gate/usr/src/cmd/audio/audioctl/ |
H A D | audioctl.c | 454 char *devnm = d->card.shortname; local 558 col.col_dv = devnm;
|
/illumos-gate/usr/src/uts/common/io/ib/ibnex/ |
H A D | ibnex_ioctl.c | 202 char *devnm = NULL; local 917 devnm = kmem_alloc(MAXNAMELEN + 1, KM_SLEEP); 918 (void) ddi_deviname(apid_dip, devnm); 920 (void) devfs_clean(pdip, devnm + 1, DV_CLEAN_FORCE); 922 kmem_free(devnm, MAXNAMELEN + 1);
|
/illumos-gate/usr/src/lib/lvm/libmeta/common/ |
H A D | meta_raid.c | 1739 char *devnm; local 1794 if (!err && (devnm = meta_getnmentbydev(sp->setno, MD_SIDEWILD, 1797 Free(devnm);
|
/illumos-gate/usr/src/cmd/sa/ |
H A D | sadp.c | 214 #define devnm dr_name macro 1097 strcpy(device, devnm[0]); 1112 strncpy(tempdev, devnm[i], DRVNUM(devnm[i])-devnm[i]); 1113 tempdev[DRVNUM(devnm[i])-devnm[i]] = NULL; 1142 if (strncmp(device, devnm[j], devlen) != 0) 1144 c = atoi(DRVNUM(devnm[j])); 1242 p = devnm[ [all...] |
/illumos-gate/usr/src/uts/common/os/ |
H A D | sunndi.c | 823 char devnm[MAXNAMELEN]; local 940 nmlen = snprintf(devnm, MAXNAMELEN, "%s@%s", 943 if (copyout(&devnm, dcp->cpyout_buf, nmlen) != 0) {
|
H A D | devcfg.c | 218 ndi_devi_config_obp_args(dev_info_t *parent, char *devnm, 5394 devi_config_one(dev_info_t *pdip, char *devnm, dev_info_t **cdipp, argument 5413 i_ddi_parse_name(devnm, &name, &addr, NULL); 5425 * can't find a node with devnm as the node name then we search by 5559 * Enumerate and attach a child specified by name 'devnm'. 5565 ndi_devi_config_one(dev_info_t *pdip, char *devnm, dev_info_t **dipp, int flags) argument 5574 ASSERT(devnm); 5581 (void *)pdip, devnm)); 5585 if (pm_pre_config(pdip, devnm) != DDI_SUCCESS) { 5586 cmn_err(CE_WARN, "preconfig failed: %s", devnm); 5662 ndi_devi_config_obp_args(dev_info_t *parent, char *devnm, dev_info_t **childp, int flags) argument 6246 devi_unconfig_one(dev_info_t *pdip, char *devnm, int flags) argument 6290 ndi_devi_unconfig_one( dev_info_t *pdip, char *devnm, dev_info_t **dipp, int flags) argument 8402 char *devnm; local [all...] |
H A D | sunpm.c | 6869 pm_pre_config(dev_info_t *dip, char *devnm) argument 6876 ret = mdi_power(dip, MDI_PM_PRE_CONFIG, NULL, devnm, 0); 6896 pm_pre_unconfig(dev_info_t *dip, int flags, int *held, char *devnm) argument 6904 ret = mdi_power(dip, MDI_PM_PRE_UNCONFIG, held, devnm, flags); 7069 pm_post_config(dev_info_t *dip, char *devnm) argument 7075 (void) mdi_power(dip, MDI_PM_POST_CONFIG, NULL, devnm, 0); 7085 pm_post_unconfig(dev_info_t *dip, int held, char *devnm) argument 7092 (void) mdi_power(dip, MDI_PM_POST_UNCONFIG, &held, devnm, 0);
|
H A D | sunmdi.c | 7129 mdi_power(dev_info_t *vdip, mdi_pm_op_t op, void *args, char *devnm, int flags) argument 7142 if (devnm != NULL) { 7144 client_dip = ndi_devi_findchild(vdip, devnm); 7148 "op = %d %s %p", op, devnm ? devnm : "", (void *)client_dip)); 7204 if (devnm) 8565 char *devnm; local 8569 devnm = strrchr(path, '/'); 8570 *devnm++ = '\0'; 8577 if (ndi_devi_config_one(ph_dip, devnm, [all...] |
/illumos-gate/usr/src/uts/common/io/usb/usba/ |
H A D | usba.c | 962 char *devnm = kmem_alloc(MAXNAMELEN + 1, KM_SLEEP); local 965 (void) ddi_deviname(dip, devnm); 970 (void *)usba_device, devnm); 973 rval = ndi_devi_unconfig_one(pdip, devnm + 1, NULL, 981 kmem_free(devnm, MAXNAMELEN + 1);
|
/illumos-gate/usr/src/uts/common/io/blkdev/ |
H A D | blkdev.c | 1837 char *devnm; local 1846 devnm = kmem_alloc(MAXNAMELEN + 1, KM_SLEEP); 1847 (void) ddi_deviname(hdl->h_child, devnm); 1848 (void) devfs_clean(hdl->h_parent, devnm + 1, DV_CLEAN_FORCE); 1849 rv = ndi_devi_unconfig_one(hdl->h_parent, devnm + 1, NULL, 1851 kmem_free(devnm, MAXNAMELEN + 1);
|
/illumos-gate/usr/src/lib/libdevinfo/ |
H A D | devinfo.c | 415 struct di_devnm *devnm; local 429 devnm = DI_DEVNM(pa + DI_ALL(pa)->devnames); 432 if (devnm[major].name && (strcmp(drv_name, 433 (char *)(pa + devnm[major].name)) == 0)) 441 if (!(devnm[major].head)) { 446 return (DI_NODE(pa + devnm[major].head)); 1035 struct di_devnm *devnm; local 1042 devnm = DI_DEVNM(pa + DI_ALL(pa)->devnames); 1044 if (devnm[major].name) 1045 return (pa + devnm[majo 1055 struct di_devnm *devnm; local 1809 struct di_devnm *devnm = DI_DEVNM(pa + local [all...] |
/illumos-gate/usr/src/uts/intel/io/scsi/adapters/arcmsr/ |
H A D | arcmsr.c | 131 static int arcmsr_parse_devname(char *devnm, int *tgt, int *lun); 2221 arcmsr_parse_devname(char *devnm, int *tgt, int *lun) { argument 2229 (void) strlcpy(devbuf, devnm, sizeof (devbuf));
|
/illumos-gate/usr/src/uts/common/io/scsi/adapters/scsi_vhci/ |
H A D | scsi_vhci.c | 2197 * Return a pointer to the guid part of the devnm. 2198 * devnm format is "nodename@busaddr", busaddr format is "gGUID". 2201 vhci_devnm_to_guid(char *devnm) argument 2203 char *cp = devnm; 2205 if (devnm == NULL)
|
/illumos-gate/usr/src/uts/common/io/mr_sas/ |
H A D | mr_sas.c | 7569 mrsas_parse_devname(char *devnm, int *tgt, int *lun) argument 7577 (void) strcpy(devbuf, devnm);
|
/illumos-gate/usr/src/uts/common/io/aac/ |
H A D | aac.c | 7061 aac_parse_devname(char *devnm, int *tgt, int *lun) argument 7069 (void) strcpy(devbuf, devnm);
|