/illumos-gate/usr/src/cmd/eeprom/sparc/ |
H A D | openprom.c | 244 print_one(opp->oprom_array); in dump_all() 264 (void) strlcpy(bootargs, opp->oprom_array, MAXVALSIZE); in print_one() 271 (void) printf("%s=%s %s\n", var, opp->oprom_array, bootargs); in print_one() 275 (void) strlcpy(opp->oprom_array, var, MAXNAMESIZE); in print_one() 287 (*v->out)(v->name, opp->oprom_array); in print_one() 289 (void) printf("%s=%s\n", var, opp->oprom_array); in print_one() 328 (void) strcpy(opp->oprom_array, var); in set_one() 329 (void) strcpy(opp->oprom_array + varlen, val); in set_one() 397 (void) strcpy(opp->oprom_array, var); /* safe - we know the name */ in i_oemlogo() 399 if (loadlogo(val, 64, 64, opp->oprom_array + varlen)) in i_oemlogo() [all …]
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | openprom.c | 415 bcopy(valbuf, opp->oprom_array, valsize); in opromioctl_cb() 435 bcopy(valbuf, opp->oprom_array, valsize); in opromioctl_cb() 548 if ((error = oprom_copyinstr(arg, opp->oprom_array, in opromioctl_cb() 552 (void) strcpy(propname, opp->oprom_array); in opromioctl_cb() 569 bcopy(&proplen, opp->oprom_array, valsize); in opromioctl_cb() 571 bzero(opp->oprom_array, valsize + 1); in opromioctl_cb() 573 opp->oprom_array); in opromioctl_cb() 587 (void) strcpy(opp->oprom_array, ""); in opromioctl_cb() 605 if ((error = oprom_copyinstr(arg, opp->oprom_array, in opromioctl_cb() 609 valbuf = (char *)prom_nextprop(node_id, opp->oprom_array, in opromioctl_cb() [all …]
|
/illumos-gate/usr/src/lib/libprtdiag/common/ |
H A D | pdevinfo_funcs.c | 105 i = (unsigned int)((unsigned char)opp->oprom_array[0]); in is_openprom() 149 (void) strcpy(temp->name.opp.oprom_array, in dump_node() 150 opp->oprom_array); in dump_node() 152 (void) strcpy(temp->value.opp.oprom_array, in dump_node() 153 temp->name.opp.oprom_array); in dump_node() 170 if ((new->name.opp.oprom_array = in dump_node() 175 (void) strcpy(new->name.opp.oprom_array, in dump_node() 176 temp->name.opp.oprom_array); in dump_node() 190 if (*(temp->value.opp.oprom_array) == '\0') { in dump_node() 197 if ((new->value.opp.oprom_array = in dump_node() [all …]
|
H A D | libdevinfo_sun4u.c | 303 temp->name.opp.oprom_array = temp->name.val_ptr; in dump_di_node() 314 temp->value.opp.oprom_array = temp->value.val_ptr; in dump_di_node() 373 temp->name.opp.oprom_array = temp->name.val_ptr; in dump_di_node() 384 temp->value.opp.oprom_array = temp->value.val_ptr; in dump_di_node()
|
/illumos-gate/usr/src/cmd/luxadm/ |
H A D | setboot.c | 175 (void) strcpy(pio->oprom_array, BOOTDEV_PROP_NAME); in setprom() 186 (void) strcpy(save_bootdev, pio->oprom_array); in setprom() 191 "Current boot-device = %s\n"), pio->oprom_array); in setprom() 214 (void) strcpy(pio->oprom_array, BOOTDEV_PROP_NAME); in setprom() 215 (void) strcpy(pio->oprom_array + (int)strlen(BOOTDEV_PROP_NAME) + 1, in setprom() 226 (void) strcpy(pio->oprom_array, BOOTDEV_PROP_NAME); in setprom() 233 if (strcmp(bdev, pio->oprom_array)) { in setprom() 242 (void) strcpy(pio->oprom_array, BOOTDEV_PROP_NAME); in setprom() 243 (void) strcpy(pio->oprom_array + in setprom()
|
/illumos-gate/usr/src/lib/libdevinfo/ |
H A D | devfsinfo.c | 508 new_bootdev = (char *)malloc(strlen(opp->oprom_array) in devfs_bootdev_set_list() 516 for (ptr = strtok(opp->oprom_array, " "); ptr != NULL; in devfs_bootdev_set_list() 559 int *ip = (int *)((void *)opp->oprom_array); in set_boot_dev_var() 568 (void) strcpy(opp->oprom_array, "diagnostic-mode?"); in set_boot_dev_var() 572 (strcmp(opp->oprom_array, "true") == 0)) { in set_boot_dev_var() 578 (void) strcpy(opp->oprom_array, "diag-switch?"); in set_boot_dev_var() 582 (strcmp(opp->oprom_array, "true") == 0)) { in set_boot_dev_var() 603 if (strcmp(opp->oprom_array, bootdev_variables[i]) in set_boot_dev_var() 611 (void) strcpy(opp->oprom_array, bootdev_variables[i]); in set_boot_dev_var() 623 if ((save_bootdev = strdup(opp->oprom_array)) == NULL) { in set_boot_dev_var() [all …]
|
H A D | devinfo.c | 2899 int *ip = (int *)((void *)opp->oprom_array); in di_prom_prop_found() 2919 (void) strcpy(opp->oprom_array, prop->name); in di_prom_prop_found() 2934 if ((prop->name = strdup(opp->oprom_array)) == NULL) { in di_prom_prop_found() 2964 bcopy(opp->oprom_array, prop->data, prop->len); in di_prom_prop_found() 3085 (void) strcpy(opp->oprom_array, prom_prop_name); in di_prom_prop_lookup_common() 3117 (void) strcpy(opp->oprom_array, prom_prop_name); in di_prom_prop_lookup_common() 3136 bcopy(opp->oprom_array, prop->data, prop->len); in di_prom_prop_lookup_common()
|
/illumos-gate/usr/src/cmd/eeprom/i386/ |
H A D | benv_kvm.c | 69 unsigned long *ip = (unsigned long *)(opp->oprom_array); in next() 76 return (*(unsigned long *)opp->oprom_array); in next() 84 unsigned long *ip = (unsigned long *)(opp->oprom_array); in child() 91 return (*(unsigned long *)opp->oprom_array); in child() 108 if (strcmp(opp->oprom_array, name) == 0) in prom_findnode_byname() 131 (void) strlcpy(opp->oprom_array, prop, MAXPROPSIZE); in getpropval() 144 (void) strlcpy(opp->oprom_array, prop, MAXPROPSIZE); in getnextprop() 159 return (opp->oprom_array); in getbootcmd() 176 return ((unsigned char *)opp->oprom_array); in prom_getprop() 186 return ((unsigned char *)opp->oprom_array); in prom_nextprop()
|
/illumos-gate/usr/src/lib/cfgadm_plugins/ac/common/ |
H A D | mema_prom.c | 115 (void) strncpy(opp->oprom_array, var, MAXNAMESIZE); in prom_read_one() 128 for (cp = opp->oprom_array; *cp != '\0'; cp++) { in prom_read_one() 188 (void) strncpy(opp->oprom_array, var, MAXNAMESIZE); in prom_write_one() 190 cp = opp->oprom_array + opp->oprom_size; in prom_write_one() 197 (void) strncpy(in_opp->oprom_array, var, MAXNAMESIZE); in prom_write_one() 204 for (icp = in_opp->oprom_array; *icp != '\0'; icp++) { in prom_write_one()
|
/illumos-gate/usr/src/cmd/cmd-inet/sbin/dhcpagent/ |
H A D | class_id.c | 53 (void) strcpy(opp->oprom_array, prop); in opp_zalloc() 111 result = strdup(opp->oprom_array); in return_property()
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | openpromio.h | 55 #define oprom_array opio_u.b macro
|
/illumos-gate/usr/src/lib/cfgadm_plugins/sysctrl/common/ |
H A D | cfga.c | 678 (void) strncpy(opp->oprom_array, var, OBP_MAXPROPNAME); in prom_get_prop() 679 opp->oprom_array[OBP_MAXPROPNAME + 1] = '\0'; in prom_get_prop() 682 DBG3("getprop(%s, %d)\n", opp->oprom_array, opp->oprom_size); in prom_get_prop() 687 *val = opp->oprom_array; in prom_get_prop() 704 (void) strcpy(opp->oprom_array, var); in prom_set_prop() 705 (void) strcpy(opp->oprom_array + varlen, val); in prom_set_prop()
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/serengeti/common/ |
H A D | serengeti.c | 1937 return ((void *)(prop->value.opp.oprom_array)); in get_prop_val() 1967 (prop->name.opp.oprom_array), name))) in find_prop() 1993 if (strcmp("name", prop->name.opp.oprom_array) == 0) in get_node_name() 1994 return (prop->value.opp.oprom_array); in get_node_name() 2022 if (strcmp("device_type", prop->name.opp.oprom_array) in get_node_type() 2024 return (prop->value.opp.oprom_array); in get_node_type()
|
/illumos-gate/usr/src/cmd/power/ |
H A D | powerd.c | 1125 if (strcmp(opp->oprom_array, property_name) == 0) { in get_prom() 1144 estrcpy(property_value, opp->oprom_array, len); in get_prom() 1148 estrcpy(opp->oprom_array, property_name, PBUFSIZE); in get_prom() 1157 estrcpy(property_value, opp->oprom_array, len); in get_prom()
|
H A D | handlers.c | 980 strcpy_limit(opp->oprom_array, fs_name, in utop() 985 strcpy_limit(prom_name, opp->oprom_array, OBP_MAXPATHLEN, in utop()
|
/illumos-gate/usr/src/cmd/prtconf/ |
H A D | pdevinfo.c | 889 i = (unsigned int)((unsigned char)opp->oprom_array[0]); in is_openprom() 1956 (void) printf("%s\n", opp->oprom_array); in do_promversion()
|
/illumos-gate/usr/src/cmd/picl/plugins/common/devtree/ |
H A D | picldevtree.c | 2570 (void) memcpy(*exportlist, opp->oprom_array, opp->oprom_size); in get_asr_export_list()
|