/titanic_50/usr/src/uts/sun4u/chicago/io/fpc/ |
H A D | fpc-impl-4u.c | 55 char *nodename; member 134 char *nodename = NULL; in fpc_platform_node_init() local 154 nodename = kmem_zalloc(nodename_size, KM_SLEEP); in fpc_platform_node_init() 159 (void) strcpy(nodename, name); in fpc_platform_node_init() 160 (void) strcat(nodename, ":"); in fpc_platform_node_init() 161 (void) strcat(nodename, PCI_MINOR_REG); in fpc_platform_node_init() 162 platform_specific_data->nodename = nodename; in fpc_platform_node_init() 194 if (nodename) in fpc_platform_node_init() 195 kmem_free(nodename, nodename_size); in fpc_platform_node_init() 206 if (plat_arg->nodename) in fpc_platform_node_fini() [all …]
|
/titanic_50/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | ndievents.c | 44 char nodename[MAXNAMELEN]; in dip_to_pathname() local 53 if (mdb_readstr(nodename, sizeof (nodename), in dip_to_pathname() 58 if (sizeof (nodename) > (buflen - strlen(path))) { in dip_to_pathname() 62 strncpy(path, nodename, sizeof (nodename)); in dip_to_pathname() 77 if (mdb_readstr(nodename, sizeof (nodename), in dip_to_pathname() 95 (void) mdb_snprintf(bp, buflen - strlen(path), "/%s", nodename); in dip_to_pathname() 98 nodename, addr_str); in dip_to_pathname()
|
/titanic_50/usr/src/lib/fm/topo/modules/sun4v/dimm/ |
H A D | dimm_sun4v.c | 265 const char *nodename; in mem_inst_create() local 272 nodename = nac2hc((dp->dm_label) + pflen, &inst); in mem_inst_create() 274 if (strcmp(nodename, "dimm") == 0) { in mem_inst_create() 278 nodename, inst, NULL, NULL, dp->dm_part, NULL, in mem_inst_create() 280 cnode = mem_tnode_create(mod, pnode, nodename, inst, in mem_inst_create() 285 cnode = mem_tnode_create(mod, pnode, nodename, inst, in mem_inst_create() 299 const char *nodename; in mem_range_create() local 309 nodename = nac2hc(dp->dm_label + pflen, &inst); in mem_range_create() 311 if (nodename != NULL) { in mem_range_create() 312 if (topo_node_range_create(mod, pnode, nodename, 0, in mem_range_create() [all …]
|
/titanic_50/usr/src/cmd/setuname/ |
H A D | setuname.c | 371 setuname(temp, sysname, nodename) in setuname() argument 374 char *nodename; /* Network node-name */ 451 if (nodename) 452 (void) strncpy(utsname.nodename, nodename, 453 sizeof (utsname.nodename)); 463 if (nodename) (void) strncpy(utsname.nodename, nodename, sizeof(utsname.nodename)); 485 if (nodename) nodenm = nodename; 513 if(nodename != NULL) {
|
/titanic_50/usr/src/cmd/uname/ |
H A D | uname.c | 58 char *nodename; in main() local 109 nodename = optarg; in main() 130 int len = strlen(nodename); in main() 138 if (sysinfo(SI_SET_HOSTNAME, nodename, len) < 0) { in main() 159 (void) fprintf(stdout, fs, sizeof (un->nodename), un->nodename); in main() 197 (void) fprintf(stdout, "Node = %.*s\n", sizeof (un->nodename), in main() 198 un->nodename); in main()
|
/titanic_50/usr/src/uts/common/xen/io/ |
H A D | xenbus_client.c | 132 err = xenbus_scanf(xbt, dev->nodename, "state", "%d", ¤t_state); in xenbus_switch_state() 143 err = xenbus_printf(xbt, dev->nodename, "state", "%d", state); in xenbus_switch_state() 161 path_buffer = kmem_alloc(strlen("error/") + strlen(dev->nodename) + in error_path() 165 (void) strcpy(path_buffer + strlen("error/"), dev->nodename); in error_path() 192 dev->nodename, printf_buffer); in common_dev_error() 198 dev->nodename, printf_buffer); in common_dev_error() 238 if (xenbus_rm(NULL, dev->nodename, "error") != 0) in xenbus_dev_ok() 240 dev->nodename); in xenbus_dev_ok()
|
H A D | xenbus_probe.c | 68 int err = xenbus_gather(XBT_NULL, xendev->nodename, in read_otherend_details() 73 "reading other end details from %s", xendev->nodename); in read_otherend_details() 79 xendev->nodename); in read_otherend_details()
|
/titanic_50/usr/src/lib/libbc/libc/sys/common/ |
H A D | uname.c | 46 char nodename[NEW_SYS_NMLN]; member 74 memcpy(uts->nodename, n_uts.nodename, SYS_NMLN); in bc_uname() 75 memcpy(uts->nodeext, n_uts.nodename + SYS_NMLN, in bc_uname() 77 if (strlen(n_uts.nodename) > SYS_NDLN) in bc_uname()
|
/titanic_50/usr/src/cmd/hostname/ |
H A D | hostname.c | 67 char *nodename = NULL; in main() local 105 nodename = argv[optind]; in main() 106 if (sethostname(nodename, strlen(nodename)) < 0) { in main()
|
/titanic_50/usr/src/uts/common/io/ |
H A D | gen_drv.c | 66 char *nodename; member 365 dstatep->nodename = ddi_node_name(devi); in gen_attach() 859 dstatep->nodename, MINOR_TO_INST(minor))); in gen_open() 885 dstatep->nodename, MINOR_TO_INST(minor))); in gen_close() 898 char *nodename; in gen_ioctl() local 907 nodename = dstatep->nodename; in gen_ioctl() 974 " DEVCTL_PM_PWR_HAS_CHANGED_ON_RESUME", nodename, in gen_ioctl() 987 nodename, instance)); in gen_ioctl() 1003 nodename, instance)); in gen_ioctl() 1015 " busy=%d", nodename, instance, dstatep->busy[0])); in gen_ioctl() [all …]
|
/titanic_50/usr/src/cmd/picl/plugins/sun4v/mdesc/ |
H A D | dr.c | 289 char *nodename; in construct_cpu_node() local 292 nodename = di_node_name(dn); /* PICL_PROP_NAME */ in construct_cpu_node() 294 err = ptree_create_and_add_node(plath, nodename, PICL_CLASS_CPU, in construct_cpu_node() 349 char *nodename; in find_cpu() local 353 nodename = di_node_name(cnode); in find_cpu() 354 if (nodename == NULL) in find_cpu() 356 if (strcmp(nodename, OBP_CPU) == 0) { in find_cpu() 492 char *nodename; in add_cpus() local 500 nodename = di_node_name(cnode); in add_cpus() 501 if (nodename == NULL) in add_cpus() [all …]
|
/titanic_50/usr/src/lib/libcmd/common/ |
H A D | uname.c | 139 char nodename[MAXHOSTNAME]; member 169 if (gethostname(ut->nodename, sizeof(ut->nodename) - 1)) in uname() 172 strncpy(ut->nodename, "local", sizeof(ut->nodename) - 1); in uname() 178 ut->sysname = ut->nodename; in uname() 387 if (sizeof(ut.nodename) > 9 || gethostname(s, sizeof(buf))) in b_uname() 389 s = ut.nodename; in b_uname() 475 extra(nodename); in b_uname()
|
/titanic_50/usr/src/cmd/picl/plugins/sun4u/enchilada/envd/ |
H A D | piclenvsetup.c | 401 char *pname, *nodename, *devfs_path; in add_sensor_nodes_and_props() local 423 nodename = snodep->sensor_name; in add_sensor_nodes_and_props() 424 err = ptree_create_and_add_node(nodeh, nodename, in add_sensor_nodes_and_props() 429 nodename, err); in add_sensor_nodes_and_props() 475 nodename); in add_sensor_nodes_and_props() 518 char *pname, *nodename, *devfs_path; in add_disk_nodes_and_props() local 544 nodename = dnodep->disk_name; in add_disk_nodes_and_props() 545 err = ptree_create_and_add_node(nodeh, nodename, in add_disk_nodes_and_props() 550 nodename, err); in add_disk_nodes_and_props() 612 nodename); in add_disk_nodes_and_props() [all …]
|
/titanic_50/usr/src/lib/libprtdiag/common/ |
H A D | pdevinfo_sun4v.c | 246 char *nodename; in sun4v_get_node_by_name() local 248 nodename = alloca(strlen(name) + 1); in sun4v_get_node_by_name() 249 if (nodename == NULL) in sun4v_get_node_by_name() 257 nodename, (strlen(name) + 1)); in sun4v_get_node_by_name() 264 if (strcmp(nodename, name) == 0) { in sun4v_get_node_by_name()
|
/titanic_50/usr/src/lib/libdevice/ |
H A D | devctl.c | 59 char *nodename; /* DEVCTL_DEVICE handles only */ member 93 if (DCP(hdl)->nodename != NULL) in devctl_release() 94 free(DCP(hdl)->nodename); in devctl_release() 233 char *nodename, *unitsep, *minorsep, *chop; in dc_mkhndl() local 300 nodename = chop + 1; in dc_mkhndl() 305 tok = strtok(nodename, "@"); in dc_mkhndl() 388 nodename = chop + 1; in dc_mkhndl() 389 unitsep = strchr(nodename, '@'); in dc_mkhndl() 390 minorsep = strchr(nodename, ':'); in dc_mkhndl() 401 if (((dcp->nodename = malloc(MAXNAMELEN)) == NULL) || in dc_mkhndl() [all …]
|
/titanic_50/usr/src/cmd/picl/plugins/sun4u/chicago/envd/ |
H A D | piclenvsetup.c | 391 char *pname, *nodename, *devfs_path; in add_sensor_nodes_and_props() local 419 nodename = snodep->sensor_name; in add_sensor_nodes_and_props() 420 err = ptree_create_and_add_node(nodeh, nodename, in add_sensor_nodes_and_props() 425 nodename, err); in add_sensor_nodes_and_props() 470 nodename); in add_sensor_nodes_and_props() 513 char *pname, *nodename, *devfs_path; in add_disk_nodes_and_props() local 545 nodename = dnodep->disk_name; in add_disk_nodes_and_props() 546 err = ptree_create_and_add_node(nodeh, nodename, in add_disk_nodes_and_props() 551 nodename, err); in add_disk_nodes_and_props() 613 nodename); in add_disk_nodes_and_props() [all …]
|
/titanic_50/usr/src/uts/sparc/os/ |
H A D | bootdev.c | 102 char *unit_address, *nodename; in i_devi_to_promname() local 143 nodename = ddi_node_name(idip); in i_devi_to_promname() 151 nodename = ddi_node_name(cdip); in i_devi_to_promname() 159 (void) strcat(prom_path, nodename); in i_devi_to_promname() 215 char *unit_address, *minorname, *nodename; in i_devname_to_promname() local 323 nodename = ddi_node_name(dip); in i_devname_to_promname() 330 nodename = ddi_node_name(cdip); in i_devname_to_promname() 336 (void) strcat(prom_path, nodename); in i_devname_to_promname()
|
/titanic_50/usr/src/cmd/picl/plugins/sun4u/taco/envd/ |
H A D | piclenvsetup.c | 332 char *pname, *nodename, *devfs_path; in add_sensor_nodes_and_props() local 353 nodename = snodep->sensor_name; in add_sensor_nodes_and_props() 354 err = ptree_create_and_add_node(nodeh, nodename, in add_sensor_nodes_and_props() 359 nodename, err); in add_sensor_nodes_and_props() 405 nodename); in add_sensor_nodes_and_props() 451 char *pname, *nodename, *devfs_path; in add_fan_nodes_and_props() local 474 nodename = fnodep->fan_name; in add_fan_nodes_and_props() 475 err = ptree_create_and_add_node(nodeh, nodename, in add_fan_nodes_and_props() 480 nodename, err); in add_fan_nodes_and_props() 531 nodename); in add_fan_nodes_and_props()
|
/titanic_50/usr/src/cmd/picl/plugins/sun4u/grover/envd/ |
H A D | piclenvsetup.c | 451 char *pname, *nodename, *refnode, *devfs_path; in add_sensor_nodes_and_props() local 493 nodename = snodep->sensor_name; in add_sensor_nodes_and_props() 494 err = ptree_create_and_add_node(nodeh, nodename, in add_sensor_nodes_and_props() 499 nodename, err); in add_sensor_nodes_and_props() 567 nodename); in add_sensor_nodes_and_props() 625 char *pname, *nodename, *devfs_path; in add_fan_nodes_and_props() local 653 nodename = fnodep->fan_name; in add_fan_nodes_and_props() 654 err = ptree_create_and_add_node(nodeh, nodename, in add_fan_nodes_and_props() 659 nodename, err); in add_fan_nodes_and_props() 709 nodename); in add_fan_nodes_and_props()
|
/titanic_50/usr/src/cmd/picl/plugins/sun4u/lw8/frutree/ |
H A D | piclfrutree.c | 320 static int add_env_nodes(picl_nodehdl_t nodeh, char *nodename, 350 char *nodename, char *class, char *prop_class, 361 static int add_board_status(picl_nodehdl_t nodeh, char *nodename); 743 char *nodename = sgfrunode->nodename; in add_fru_node() local 748 childh = find_child_by_name(parh, nodename); in add_fru_node() 754 if (IS_ECACHE_NODE(nodename)) { in add_fru_node() 758 if (IS_DIMM_NODE(nodename)) { in add_fru_node() 762 err = add_board_status(childh, nodename); in add_fru_node() 768 err = add_board_status(childh, nodename); in add_fru_node() 775 err = add_env_nodes(childh, nodename, tblhdl); in add_fru_node() [all …]
|
/titanic_50/usr/src/uts/common/avs/ncall/ |
H A D | ncall.c | 439 ncall_nodeid(char *nodename) in ncall_nodeid() argument 442 return ((ncall_modules->module->ncall_nodeid)(nodename)); in ncall_nodeid() 663 ncall_ping(char *nodename, int *up) in ncall_ping() argument 667 rc = (*ncall_modules->module->ncall_ping)(nodename, up); in ncall_ping() 712 char *nodename; in ncallgetnodes() local 736 nodename = ncall_nodename(nodeid); in ncallgetnodes() 743 if (strlen(nodename) > 0) { in ncallgetnodes() 751 (void) strncpy(nodelist[slot].nc_nodename, nodename, in ncallgetnodes()
|
H A D | ncall_stub.c | 57 ncall_stub_nodeid(char *nodename) in ncall_stub_nodeid() argument 182 ncall_stub_ping(char *nodename, int *up) in ncall_stub_ping() argument 186 if (strcmp(nodename, nodeinfo.nc_nodename) == 0) { in ncall_stub_ping()
|
/titanic_50/usr/src/cmd/picl/plugins/sun4u/excalibur/envd/ |
H A D | piclenvsetup.c | 474 char *pname, *nodename, *refnode, *devfs_path; in add_sensor_nodes_and_props() local 516 nodename = snodep->sensor_name; in add_sensor_nodes_and_props() 517 err = ptree_create_and_add_node(nodeh, nodename, in add_sensor_nodes_and_props() 522 nodename, err); in add_sensor_nodes_and_props() 605 nodename); in add_sensor_nodes_and_props() 663 char *pname, *nodename, *devfs_path; in add_fan_nodes_and_props() local 691 nodename = fnodep->fan_name; in add_fan_nodes_and_props() 692 err = ptree_create_and_add_node(nodeh, nodename, in add_fan_nodes_and_props() 697 nodename, err); in add_fan_nodes_and_props() 747 nodename); in add_fan_nodes_and_props()
|
/titanic_50/usr/src/uts/common/io/scsi/adapters/iscsi/ |
H A D | iscsi_lun.c | 304 char *nodename = NULL; in iscsi_lun_virt_create() local 318 inq->inq_dtype, NULL, &nodename, &compatible, &ncompatible); in iscsi_lun_virt_create() 321 if (nodename == NULL) { in iscsi_lun_virt_create() 332 mdi_rtn = mdi_pi_alloc_compatible(ihp->hba_dip, nodename, in iscsi_lun_virt_create() 398 scsi_hba_nodename_compatible_free(nodename, compatible); in iscsi_lun_virt_create() 415 char *nodename = NULL; in iscsi_lun_phys_create() local 437 inq->inq_dtype, NULL, &nodename, &compatible, &ncompatible); in iscsi_lun_phys_create() 442 if (nodename == NULL) { in iscsi_lun_phys_create() 450 ndi_rtn = ndi_devi_alloc(ihp->hba_dip, nodename, in iscsi_lun_phys_create() 518 scsi_hba_nodename_compatible_free(nodename, compatible); in iscsi_lun_phys_create()
|
/titanic_50/usr/src/cmd/picl/plugins/common/devtree/ |
H A D | picldevtree.c | 601 get_node_class(char *classbuf, di_node_t dn, const char *nodename) in get_node_class() argument 624 if (lookup_name_class_map(classbuf, nodename) == 0) in get_node_class() 1401 char *nodename; in construct_picl_platform() local 1406 nodename = di_node_name(di_root); in construct_picl_platform() 1407 if (nodename == NULL) in construct_picl_platform() 1424 PICL_PTYPE_CHARSTRING, PICL_READ, strlen(nodename) + 1, in construct_picl_platform() 1426 err = ptree_create_and_add_prop(plafh, &propinfo, nodename, &proph); in construct_picl_platform() 1446 char *nodename; in construct_obp_node() local 1450 nodename = di_node_name(dn); /* PICL_PROP_NAME */ in construct_obp_node() 1451 if (nodename == NULL) in construct_obp_node() [all …]
|