Home
last modified time | relevance | path

Searched refs:devname (Results 1 – 25 of 138) sorted by relevance

123456

/titanic_44/usr/src/lib/libpcp/common/
H A Dpcp_utils.c81 char *devname, *s; in get_vldc_svc_name() local
86 devname = basename(pathname); in get_vldc_svc_name()
87 s = strrchr(devname, ':'); in get_vldc_svc_name()
93 if ((strncmp(devname, VCHAN, strlen(VCHAN)) == 0) || in get_vldc_svc_name()
94 (strncmp(devname, VCHAN_C, strlen(VCHAN_C)) == 0)) { in get_vldc_svc_name()
135 char *devname, *substr, *t; in get_glvc_svc_name() local
141 devname = basename(pathname); in get_glvc_svc_name()
142 substr = strstr(devname, GLVC); in get_glvc_svc_name()
149 if ((t = strrchr(devname, '@')) == NULL) { in get_glvc_svc_name()
154 len = t - devname; in get_glvc_svc_name()
[all …]
/titanic_44/usr/src/cmd/devfsadm/
H A Ddevalloc.c176 _update_devalloc_db(devlist_t *devlist, int devflag, int action, char *devname, in _update_devalloc_db() argument
230 devname); in _update_devalloc_db()
233 (void) da_rm_list_entry(devlist, devname, in _update_devalloc_db()
245 if (strcmp(entry->devinfo.devname, devname) == 0) in _update_devalloc_db()
248 (void) _update_dev(entry, action, NULL, devname, NULL); in _update_devalloc_db()
281 _update_dev(deventry_t *dentry, int action, const char *devtype, char *devname, in _update_dev() argument
312 if (devname == NULL) in _update_dev()
313 newentry.devinfo.devname = NULL; in _update_dev()
315 newentry.devinfo.devname = strdup(devname); in _update_dev()
325 newentry.devinfo.devname = strdup(devname); in _update_dev()
[all …]
/titanic_44/usr/src/uts/common/io/ib/ibnex/
H A Dibnex_hca.c137 ddi_bus_config_op_t op, void *devname, dev_info_t **child) in ibnex_hca_bus_config() argument
163 parent, devname, op, &flag, child); in ibnex_hca_bus_config()
168 cdip = ibnex_config_obp_args(parent, devname); in ibnex_hca_bus_config()
188 devname = (void *)nameaddr; in ibnex_hca_bus_config()
222 parent, flag, op, devname, child, 0); in ibnex_hca_bus_config()
311 ibnex_config_obp_args(dev_info_t *parent, char *devname) in ibnex_config_obp_args() argument
323 IBTF_DPRINTF_L4("ibnex", "\tconfig_obp_args: %s", devname); in ibnex_config_obp_args()
326 temp = devname; in ibnex_config_obp_args()
332 if (strlen(devname) > (int)((temp - devname) + 12)) { in ibnex_config_obp_args()
344 devname, &pkey, &port_num) != IBNEX_SUCCESS) { in ibnex_config_obp_args()
[all …]
/titanic_44/usr/src/uts/i86pc/io/acpi/acpidev/
H A Dacpidev_container.c68 acpidev_walk_info_t *infop, char *devname, int maxlen);
72 char *devname, int devnamelen);
198 acpidev_filter_rule_t *rulep, char *devname, int devnamelen) in acpidev_container_filter_func() argument
211 res = acpidev_filter_default(infop, hdl, rulep, devname, devnamelen); in acpidev_container_filter_func()
213 if (devname == NULL || res == ACPIDEV_FILTER_FAILED || in acpidev_container_filter_func()
236 buf.Pointer = devname; in acpidev_container_filter_func()
243 (void) strlcpy(devname, ACPIDEV_NODE_NAME_MODULE_CPU, in acpidev_container_filter_func()
247 (void) strlcpy(devname, ACPIDEV_NODE_NAME_MODULE_SBD, in acpidev_container_filter_func()
255 (void) strlcpy(devname, ACPIDEV_NODE_NAME_CONTAINER, in acpidev_container_filter_func()
263 acpidev_container_filter(acpidev_walk_info_t *infop, char *devname, int maxlen) in acpidev_container_filter() argument
[all …]
H A Dacpidev_drv.c795 char *devname; in acpidev_process_object() local
908 devname = kmem_zalloc(ACPIDEV_MAX_NAMELEN + 1, KM_SLEEP); in acpidev_process_object()
909 (void) memcpy(devname, (char *)&adip->Name, sizeof (adip->Name)); in acpidev_process_object()
911 res = clsp->adc_filter(infop, devname, ACPIDEV_MAX_NAMELEN); in acpidev_process_object()
928 ndi_devi_alloc_sleep(pdip, devname, (pnode_t)DEVI_SID_NODEID, in acpidev_process_object()
939 kmem_free(devname, ACPIDEV_MAX_NAMELEN + 1); in acpidev_process_object()
951 kmem_free(devname, ACPIDEV_MAX_NAMELEN + 1); in acpidev_process_object()
966 kmem_free(devname, ACPIDEV_MAX_NAMELEN + 1); in acpidev_process_object()
1004 kmem_free(devname, ACPIDEV_MAX_NAMELEN + 1); in acpidev_process_object()
1055 acpidev_filter_rule_t *afrp, char *devname, int len) in acpidev_filter_default() argument
[all …]
H A Dacpidev_device.c37 char *devname, int maxlen);
155 acpidev_device_filter(acpidev_walk_info_t *infop, char *devname, int maxlen) in acpidev_device_filter() argument
165 devname, maxlen); in acpidev_device_filter()
/titanic_44/usr/src/cmd/mdb/common/modules/genunix/
H A Dirm.c107 char devname[MODMAXNAMELEN + 1] = ""; in irmpools_dcmd() local
150 mdb_snprintf(devname, sizeof (devname), "%s#%d", driver, in irmpools_dcmd()
153 mdb_snprintf(devname, sizeof (devname), "%s", driver); in irmpools_dcmd()
155 mdb_printf("%0?p %-18s %-8s %-6d %-9d %-8d\n", addr, devname, in irmpools_dcmd()
194 char devname[MODMAXNAMELEN + 1] = ""; in irmreq_dcmd() local
227 mdb_snprintf(devname, sizeof (devname), "%s#%d", driver, in irmreq_dcmd()
231 addr, devname, irm_get_type(req.ireq_type), in irmreq_dcmd()
/titanic_44/usr/src/lib/libdtrace/common/
H A Ddlink_common.c55 const char *devname = "/dev/dtrace/helper"; variable
138 devname = p; in dtrace_link_dof()
140 if ((fd = open64(devname, O_RDWR)) < 0) { in dtrace_link_dof()
141 dprintf(1, "failed to open helper device %s", devname); in dtrace_link_dof()
150 devname = olddevname; in dtrace_link_dof()
152 if ((fd = open64(devname, O_RDWR)) < 0) { in dtrace_link_dof()
153 dprintf(1, "failed to open helper device %s", devname); in dtrace_link_dof()
H A Ddlink_init.c74 if ((fd = open64(devname, O_RDWR)) < 0) { in dtrace_drti_fini()
75 dprintf(1, "failed to open helper device %s", devname); in dtrace_drti_fini()
/titanic_44/usr/src/cmd/fs.d/udfs/fsck/
H A Dmain.c224 devname = devstr; in checkfilesys()
247 (void) printf("%s: ", devname); in checkfilesys()
290 char *devname; in check_sanity() local
326 devname = vfsbuf.vfs_special; in check_sanity()
328 devname = vfsbuf.vfs_fsckdev; in check_sanity()
329 if (stat(devname, &stbr) == 0) in check_sanity()
335 devname = vfsbuf.vfs_special; in check_sanity()
337 devname = vfsbuf.vfs_fsckdev; in check_sanity()
338 if (stat(devname, &stbr) == 0) in check_sanity()
/titanic_44/usr/src/cmd/addbadsec/
H A Daddbadsec.c55 char *devname; /* name of device */ variable
133 devname = argv[optind]; in main()
135 if (stat(devname, &statbuf)) { in main()
137 progname, devname); in main()
143 " special\n", progname, devname); in main()
153 " slice\n", progname, devname); in main()
159 " device\n", progname, devname); in main()
163 if ((devfd = open(devname, O_RDWR)) == -1) { in main()
165 progname, devname); in main()
232 l = strlen(devname); in main()
[all …]
/titanic_44/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_scsi.c54 static void common_open(ndmp_connection_t *connection, char *devname);
412 common_open(ndmp_connection_t *connection, char *devname) in common_open() argument
428 NDMP_LOG(LOG_DEBUG, "Adapter device found: %s", devname); in common_open()
429 (void) strlcpy(adptnm, devname, SCSI_MAX_NAME-2); in common_open()
433 scsi_find_sid_lun(sa, devname, &sid, &lun); in common_open()
434 if (ndmp_open_list_find(devname, sid, lun) == NULL && in common_open()
435 (devid = open(devname, O_RDWR | O_NDELAY)) < 0) { in common_open()
437 devname); in common_open()
441 NDMP_LOG(LOG_ERR, "%s: No such SCSI adapter.", devname); in common_open()
576 scsi_find_sid_lun(scsi_adapter_t *sa, char *devname, int *sid, int *lun) in scsi_find_sid_lun() argument
[all …]
/titanic_44/usr/src/cmd/syseventd/modules/zfs_mod/
H A Dzfs_mod.c461 char *devpath, *devname; in zfs_deliver_add() local
484 &devname) == 0 && in zfs_deliver_add()
485 (ret = resolvepath(devname, path, in zfs_deliver_add()
543 char *devname = data; in zfsdle_vdev_online() local
549 devname, zpool_get_name(zhp)); in zfsdle_vdev_online()
551 if ((tgt = zpool_find_vdev_by_physpath(zhp, devname, in zfsdle_vdev_online()
591 char *devname; in zfs_deliver_dle() local
592 if (nvlist_lookup_string(nvl, DEV_PHYS_PATH, &devname) != 0) { in zfs_deliver_dle()
596 if (strncmp(devname, DEVICE_PREFIX, strlen(DEVICE_PREFIX)) != 0) { in zfs_deliver_dle()
598 "device '%s'", devname); in zfs_deliver_dle()
[all …]
/titanic_44/usr/src/cmd/devctl/
H A Ddevctl.c107 static void print_bus_state(char *devname, uint_t state);
108 static void print_dev_state(char *devname, uint_t state);
482 print_bus_state(char *devname, uint_t state) in print_bus_state() argument
484 (void) printf("\t%s: ", devname); in print_bus_state()
495 print_dev_state(char *devname, uint_t state) in print_dev_state() argument
497 (void) printf("\t%s: ", devname); in print_dev_state()
560 char *devname; in nexif() local
562 if ((devname = di_devfs_path(din)) != NULL) { in nexif()
564 di_instance(din), devname); in nexif()
565 di_devfs_path_free(devname); in nexif()
/titanic_44/usr/src/cmd/luxadm/
H A Dsetboot.c96 char *devname; in getbootdevname() local
102 devname = bootfs; in getbootdevname()
139 devname = m.mnt_special; in getbootdevname()
142 if (devfs_dev_to_prom_name(devname, bdev) != 0) { in getbootdevname()
143 perror(devname); in getbootdevname()
/titanic_44/usr/src/lib/libdevinfo/
H A Ddevfsmap.c1564 char devname[MAXPATHLEN]; in get_install_devlink() local
1585 devname[0] = '\0'; in get_install_devlink()
1587 devname, devlink_callback) == 0) { in get_install_devlink()
1588 if (devname[0] == '\0' && tries < maxtries) { in get_install_devlink()
1592 } else if (devname[0] == '\0') { in get_install_devlink()
1607 logdmsg(("get_install_devlink: devlink = %s\n", devname)); in get_install_devlink()
1608 return (strlcpy(buf, devname, bufsz)); in get_install_devlink()
1630 char devname[MAXPATHLEN]; in get_target_devlink() local
1653 (void) snprintf(devname, MAXPATHLEN, "%s/%s", in get_target_devlink()
1656 if ((linksize = readlink(devname, physdev, MAXPATHLEN)) > 0 && in get_target_devlink()
[all …]
H A Ddevinfo_finddev.c73 device_exists(const char *devname) in device_exists() argument
78 if (GLOBAL_DEV_PATH(devname)) { in device_exists()
79 rv = modctl(MODDEVEXISTS, devname, strlen(devname)); in device_exists()
82 if (stat(devname, &st) == 0) in device_exists()
/titanic_44/usr/src/lib/libdladm/common/
H A Dlibdllink.c481 char devname[MAXLINKNAMELEN]; in i_dladm_rename_link_c2() local
528 ((status = dladm_get_conf_field(handle, conf1, FDEVNAME, devname, in i_dladm_rename_link_c2()
545 devname); in i_dladm_rename_link_c2()
852 const char *devname; member
866 (strcmp(statep->devname, dpa.dp_dev) == 0)) { in i_dladm_walk_dev2linkid()
878 dladm_dev2linkid(dladm_handle_t handle, const char *devname, in dladm_dev2linkid() argument
884 state.devname = devname; in dladm_dev2linkid()
897 parse_devname(const char *devname, char *driver, uint_t *ppa, size_t maxlen) in parse_devname() argument
905 if (((len = strlen(devname)) == 0) || !isdigit(devname[len - 1])) in parse_devname()
908 (void) strlcpy(driver, devname, maxlen); in parse_devname()
[all …]
/titanic_44/usr/src/lib/libbsm/common/
H A Ddevalloc.c76 da_check_logindevperm(char *devname) in da_check_logindevperm() argument
153 if (strcmp(device, devname) == 0) { in da_check_logindevperm()
161 if (strncmp(device, devname, strlen(device)) == 0) { in da_check_logindevperm()
710 if (dargs->devinfo->devname != NULL && in _rebuild_lists()
712 free(dargs->devinfo->devname); in _rebuild_lists()
713 dargs->devinfo->devname = in _rebuild_lists()
827 (strncmp(dargs->devinfo->devname, defname, len) == 0)) { in _rebuild_lists()
831 if (dargs->devinfo->devname != NULL && in _rebuild_lists()
833 free(dargs->devinfo->devname); in _rebuild_lists()
834 dargs->devinfo->devname = strdup(new_devname); in _rebuild_lists()
[all …]
/titanic_44/usr/src/cmd/ttymon/
H A Dtmexpress.c51 static char *devname; variable
114 devname = find_ttyname(0); in ttymon_express()
115 if ((devname == NULL) || (*devname == '\0')) { in ttymon_express()
119 pmtab->p_device = devname; in ttymon_express()
121 debug("ttymon_express: devname = %s", devname); in ttymon_express()
/titanic_44/usr/src/cmd/fmthard/
H A Dfmthard.c863 vread(int fd, struct extvtoc *vtoc, char *devname) in vread() argument
873 devname); in vread()
876 devname); in vread()
884 vread64(int fd, struct dk_gpt **efi_hdr, char *devname) in vread64() argument
892 devname); in vread64()
896 devname, i); in vread64()
906 vwrite(int fd, struct extvtoc *vtoc, char *devname) in vwrite() argument
914 devname); in vwrite()
917 devname); in vwrite()
927 vwrite64(int fd, struct dk_gpt *efi, char *devname) in vwrite64() argument
[all …]
/titanic_44/usr/src/cmd/picl/plugins/sun4v/mdesc/
H A Ddisk_discovery.c178 char devname[256]; in device_format_disk_name() local
182 (void) snprintf(devname, sizeof (devname), "/devices%s:a,raw", in device_format_disk_name()
185 diskname = device_get_disk_name_from_dir("/dev/rdsk", devname); in device_format_disk_name()
/titanic_44/usr/src/cmd/audio/audioctl/
H A Daudioctl.c834 char *devname = NULL; in do_show_device() local
840 devname = optarg; in do_show_device()
856 if ((d = find_device(devname)) == NULL) { in do_show_device()
878 char *devname = NULL; in do_show_control() local
888 devname = optarg; in do_show_control()
901 if ((d = find_device(devname)) == NULL) { in do_show_control()
945 char *devname = NULL; in do_set_control() local
957 devname = optarg; in do_set_control()
977 if ((d = find_device(devname)) == NULL) { in do_set_control()
1005 char *devname = NULL; in do_save_controls() local
[all …]
/titanic_44/usr/src/cmd/boot/scripts/
H A Dcreate_diskmap.ksh38 devname=`/bin/ls -l /dev/rdsk/*p0 | /bin/grep $diskpath | /bin/nawk '{ print $9 }'`
39 ctdname=`echo $devname | /bin/sed "s#/dev/rdsk/##" | /bin/sed "s#p0##"`
/titanic_44/usr/src/uts/common/syscall/
H A Dsysteminfo.c329 get_netif_name(char *devname, char *ifname) in get_netif_name() argument
336 dip = path_to_devinfo(devname); in get_netif_name()
339 "can't bind driver for '%s'\n", devname); in get_netif_name()
346 "no driver bound to '%s'\n", devname); in get_netif_name()

123456