/illumos-gate/usr/src/lib/cfgadm_plugins/ib/common/ |
H A D | cfga_ib.c | 498 if (ap_id == NULL) { in ib_verify_valid_apid() 783 ioctl_data.ap_id = (caddr_t)ap_id; in ib_do_control_ioctl() 877 ap_id, errno)); in cfga_change_state() 1102 ap_id, errno)); in cfga_private_func() 1109 ap_id, errno)); in cfga_private_func() 1118 ap_id, errno)); in cfga_private_func() 1176 ap_id, errno)); in cfga_private_func() 1193 ap_id, errno)); in cfga_private_func() 1665 ap_id, errno)); in cfga_list_ext() 1740 ap_id, errno)); in cfga_list_ext() [all …]
|
/illumos-gate/usr/src/lib/cfgadm_plugins/sata/common/ |
H A D | cfga_sata.c | 462 const char *ap_id, in sata_err_msg() argument 567 const char *ap_id, in cfga_change_state() argument 636 if (GET_DYN(ap_id) != NULL) { in cfga_change_state() 919 const char *ap_id, in cfga_private_func() argument 1129 const char *ap_id, in cfga_test() argument 1414 const char *ap_id, in cfga_list_ext() argument 1789 if (ap_id == NULL) in verify_valid_apid() 1815 const char *ap_id, in verify_params() argument 1831 lap_id = strdup(ap_id); in verify_params() 1899 const char *ap_id, in setup_for_devctl_cmd() argument [all …]
|
/illumos-gate/usr/src/lib/cfgadm_plugins/usb/common/ |
H A D | cfga_usb.c | 369 "ap_id: ", ap_id, "", NULL); in usb_err_msg() 416 verify_valid_apid(const char *ap_id) in verify_valid_apid() argument 420 if (ap_id == NULL) { in verify_valid_apid() 424 l_ap_id = strrchr(ap_id, *MINOR_SEP); in verify_valid_apid() 446 const char *ap_id, in verify_params() argument 461 if (GET_DYN(ap_id) != NULL) { in verify_params() 466 if (verify_valid_apid(ap_id) != 0) { in verify_params() 1027 const char *ap_id, in cfga_change_state() argument 1240 const char *ap_id, in cfga_private_func() argument 1468 const char *ap_id, in cfga_test() argument [all …]
|
/illumos-gate/usr/src/cmd/acpihpd/ |
H A D | notify.c | 194 event_process(char *ap_id, char *req, char *acpi_event_type) in event_process() argument 203 ap_id, req); in event_process() 207 apids[0] = ap_id; in event_process() 218 "board '%s' has been assigned successfully", ap_id); in event_process() 227 "board '%s' has been powered on successfully", ap_id); in event_process() 236 "board '%s' has been connected successfully", ap_id); in event_process() 245 "board '%s' has been configured successfully", ap_id); in event_process() 270 char *ap_id, *req, *acpi_event_type; in notify_hotplug() local 308 debug_print(2, "%s = '%s'", DR_AP_ID, ap_id ? ap_id : "<null>"); in notify_hotplug() 309 if ((ap_id == NULL) || (strlen(ap_id) == 0)) { in notify_hotplug() [all …]
|
/illumos-gate/usr/src/lib/cfgadm_plugins/pci/common/ |
H A D | cfga.c | 278 if ((fd = open(ap_id, O_RDWR)) == -1) { in get_occupants() 834 (void) strncpy(apid, ap_id, strlen(ap_id)); in get_logical_name() 880 if ((fd = open(ap_id, O_RDWR)) == -1) { in prt_led_mode() 1114 if ((fd = open(ap_id, O_RDWR)) == -1) { in cfga_private_func() 1144 DBG(1, ("cfga_test:(%s)\n", ap_id)); in cfga_test() 1364 DBG(1, ("check_devlinks: %s\n", ap_id)); in check_devlinks() 1404 DBG(1, ("fix_ap_name: %s\n", ap_id)); in fix_ap_name() 1410 (void) strcpy(buf, ap_id); in fix_ap_name() 1516 DBG(1, ("cfga_list_ext:(%s)\n", ap_id)); in cfga_list_ext() 1615 if ((fd = open(ap_id, O_RDWR)) == -1) { in cfga_list_ext() [all …]
|
/illumos-gate/usr/src/cmd/oplhpd/ |
H A D | scf_notify.c | 71 char ap_id[SCFDATA_APID]; member 99 void scf_get_slotinfo(char *ap_id, cfga_stat_t *o_state, 112 const char *ap_id) in config_error() argument 123 func_name, ep, errstr, ap_id); in config_error() 126 func_name, ep, ap_id); in config_error() 372 char *ap_id = NULL; /* attachment point */ in notify_scf_of_hotplug() local 425 if (nvlist_lookup_string(ev_attr_list, DR_AP_ID, &ap_id) != 0) { in notify_scf_of_hotplug() 431 if (ap_id == NULL || strlen(ap_id) == 0) { in notify_scf_of_hotplug() 438 syslog(LOG_DEBUG, "ap_id = %s\n", ap_id); in notify_scf_of_hotplug() 439 scf_get_slotinfo(ap_id, &r_state, &o_state); in notify_scf_of_hotplug() [all …]
|
/illumos-gate/usr/src/lib/cfgadm_plugins/sbd/common/ |
H A D | cfga.c | 43 const char *ap_id, in cfga_change_state() argument 60 if ((a = apd_alloc(ap_id, flags, errstring, msgp, confp)) == NULL) in cfga_change_state() 102 const char *ap_id, in cfga_private_func() argument 113 DBG("cfga_private_func(%s)\n", ap_id); in cfga_private_func() 117 if ((a = apd_alloc(ap_id, flags, errstring, msgp, confp)) == NULL) in cfga_private_func() 137 const char *ap_id, in cfga_test() argument 148 DBG("cfga_test(%s)\n", ap_id); in cfga_test() 159 if ((a = apd_alloc(ap_id, flags, errstring, msgp, NULL)) == NULL) in cfga_test() 173 const char *ap_id, in cfga_list_ext() argument 194 DBG("cfga_list_ext(%s %x)\n", ap_id, flags); in cfga_list_ext() [all …]
|
/illumos-gate/usr/src/lib/cfgadm_plugins/scsi/common/ |
H A D | cfga_scsi.c | 59 const char *ap_id, in cfga_change_state() argument 86 if ((ret = apidt_create(ap_id, &apidt, errstring)) != SCFGA_OK) { in cfga_change_state() 110 const char *ap_id, in cfga_private_func() argument 137 if ((ret = apidt_create(ap_id, &apidt, errstring)) != SCFGA_OK) { in cfga_private_func() 163 const char *ap_id, in cfga_test() argument 183 const char *ap_id, in cfga_list_ext() argument 218 if (GET_DYN(ap_id) == NULL) { in cfga_list_ext() 240 if ((ret = apidt_create(ap_id, &apidt, errstring)) != SCFGA_OK) { in cfga_list_ext()
|
/illumos-gate/usr/src/lib/cfgadm_plugins/shp/common/ |
H A D | shp.c | 633 DBG(1, ("cfga_change_state:(%s)\n", ap_id)); in cfga_change_state() 635 rv = physpath2node(ap_id, errstring, &node); in cfga_change_state() 812 rv = physpath2node(ap_id, errstring, &node); in prt_led_mode() 824 if (fix_ap_name(buff, ap_id, hp_name(node), in prt_led_mode() 1019 DBG(1, ("cfga_test:(%s)\n", ap_id)); in cfga_test() 1220 DBG(1, ("check_devlinks: %s\n", ap_id)); in check_devlinks() 1224 if (strncmp("/devices/", ap_id, 9) == 0) { in check_devlinks() 1260 DBG(1, ("fix_ap_name: %s\n", ap_id)); in fix_ap_name() 1266 (void) strcpy(buf, ap_id); in fix_ap_name() 1403 DBG(1, ("cfga_list_ext:(%s)\n", ap_id)); in cfga_list_ext() [all …]
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/ |
H A D | piclfrudr.c | 379 static int create_i2c_node(char *ap_id); 380 static void delete_i2c_node(char *ap_id); 1430 if ((strncmp(ap_id, "FT0", 3) == 0) || in get_fantray_path() 1431 (strncmp(ap_id, "FT1", 3) == 0) || in get_fantray_path() 1476 char *ap_id; in frudr_evhandler() local 1544 ps_apid_to_nodename(ap_id)); in frudr_evhandler() 1633 ps_apid_to_nodename(ap_id)); in frudr_evhandler() 1637 (void) create_i2c_node(ap_id); in frudr_evhandler() 2846 create_i2c_node(char *ap_id) in create_i2c_node() argument 2857 nd_reg[1] = ps_name_to_addr(ap_id); in create_i2c_node() [all …]
|
/illumos-gate/usr/src/lib/cfgadm_plugins/fp/common/ |
H A D | cfga_fp.c | 42 const char *ap_id, in cfga_change_state() argument 74 if ((ret = apidt_create(ap_id, &apidt, errstring)) != FPCFGA_OK) { in cfga_change_state() 159 const char *ap_id, in cfga_private_func() argument 181 const char *ap_id, in cfga_test() argument 202 const char *ap_id, in cfga_list_ext() argument 269 if (GET_DYN(ap_id) == NULL) { in cfga_list_ext() 295 ret = do_list_FCP_dev(ap_id, fp_flags, cmd, &ldatalistp, &nelem, in cfga_list_ext() 302 if ((ret = apidt_create(ap_id, &apidt, errstring)) in cfga_list_ext()
|
/illumos-gate/usr/src/lib/cfgadm_plugins/sysctrl/common/ |
H A D | cfga.c | 827 ap_idx(const char *ap_id) in ap_idx() argument 833 DBG("ap_idx(%s)\n", ap_id); in ap_idx() 871 const char *ap_id, in cfga_change_state() argument 909 if ((idx = ap_idx(ap_id)) == -1) { in cfga_change_state() 1060 const char *ap_id, in cfga_private_func() argument 1125 if ((idx = ap_idx(ap_id)) == -1) in cfga_private_func() 1151 const char *ap_id, in cfga_test() argument 1349 const char *ap_id, in cfga_list() argument 1365 if (ap_idx(ap_id) == -1) in cfga_list() 1390 const char *ap_id, in cfga_stat() argument [all …]
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/mdesc/ |
H A D | mdescplugin.c | 107 char *ap_id; in dr_handler() local 129 if (nvlist_lookup_string(nvlp, PICLEVENTARG_AP_ID, &ap_id)) { in dr_handler() 148 (void) update_devices(ap_id, DEV_ADD); in dr_handler() 150 (void) update_devices(ap_id, DEV_REMOVE); in dr_handler()
|
/illumos-gate/usr/src/cmd/picl/plugins/common/piclevent/ |
H A D | picl_slm.c | 248 char *ap_id = NULL; in piclslm_add_ec_dr_req_args() local 255 if (nvlist_lookup_string(nvlist, DR_AP_ID, &ap_id) != 0 || in piclslm_add_ec_dr_req_args() 256 ap_id == NULL) { in piclslm_add_ec_dr_req_args() 261 if (nvlist_add_string(nvl, PICLEVENTARG_AP_ID, ap_id)) { in piclslm_add_ec_dr_req_args() 277 (dr_req ? dr_req : "Investigate"), ap_id); in piclslm_add_ec_dr_req_args()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | ddi_hp_impl.c | 667 char *cn_path, *ap_id; in ddihp_cn_gen_sysevent() local 695 ap_id = kmem_zalloc(ap_id_len, kmflag); in ddihp_cn_gen_sysevent() 696 if (ap_id == NULL) { in ddihp_cn_gen_sysevent() 706 (void) strcpy(ap_id, cn_path); in ddihp_cn_gen_sysevent() 707 (void) strcat(ap_id, ":"); in ddihp_cn_gen_sysevent() 708 (void) strcat(ap_id, hdlp->cn_info.cn_name); in ddihp_cn_gen_sysevent() 718 kmem_free(ap_id, ap_id_len); in ddihp_cn_gen_sysevent() 794 err = nvlist_add_string(ev_attr_list, DR_AP_ID, ap_id); in ddihp_cn_gen_sysevent() 817 kmem_free(ap_id, ap_id_len); in ddihp_cn_gen_sysevent()
|
/illumos-gate/usr/src/cmd/luxadm/ |
H A D | fabric_conf.c | 44 static int create_ap_instance(char *ap_id, char *wwn_string, 278 create_ap_instance(char *ap_id, char *wwn_string, in create_ap_instance() argument 307 if ((bus_handle = devctl_bus_acquire(ap_id, 0)) == NULL) { in create_ap_instance()
|
/illumos-gate/usr/src/lib/cfgadm_plugins/usb/ |
H A D | usb.xcl | 98 msgid "ap_id: " 107 msgid "verify_params: dynamic ap_id passed\n" 125 msgid "set_configuration: ap_id: %s, config:%d\n"
|
/illumos-gate/usr/src/uts/common/io/pciex/hotplug/ |
H A D | pcie_hp.c | 1208 char *ap_id; in pcie_hp_gen_sysevent_req() local 1220 ap_id = kmem_zalloc(ap_id_len, kmflag); in pcie_hp_gen_sysevent_req() 1221 if (ap_id == NULL) { in pcie_hp_gen_sysevent_req() 1230 (void) strcpy(ap_id, cn_path); in pcie_hp_gen_sysevent_req() 1231 (void) strcat(ap_id, ":"); in pcie_hp_gen_sysevent_req() 1232 (void) strcat(ap_id, slot_name); in pcie_hp_gen_sysevent_req() 1241 kmem_free(ap_id, ap_id_len); in pcie_hp_gen_sysevent_req() 1276 err = nvlist_add_string(ev_attr_list, DR_AP_ID, ap_id); in pcie_hp_gen_sysevent_req() 1301 kmem_free(ap_id, ap_id_len); in pcie_hp_gen_sysevent_req()
|
/illumos-gate/usr/src/cmd/cfgadm/ |
H A D | cfgadm.c | 116 static void remove_dyn(char *ap_id); 2294 find_arg_type(const char *ap_id) in find_arg_type() argument 2308 if (ap_id == NULL || *ap_id == '\0') { in find_arg_type() 2316 len = cp - ap_id; in find_arg_type() 2318 len = strlen(ap_id); in find_arg_type() 2325 (void) strncpy(apbuf, ap_id, len); in find_arg_type() 2378 get_dyn(const char *ap_id) in get_dyn() argument 2380 if (ap_id == NULL) { in get_dyn() 2391 remove_dyn(char *ap_id) in remove_dyn() argument 2395 if (ap_id == NULL) { in remove_dyn() [all …]
|
/illumos-gate/usr/src/lib/cfgadm_plugins/ac/common/ |
H A D | mema.c | 416 ap_bk_idx(const char *ap_id) in ap_bk_idx() argument 422 DBG("ap_bk_idx(%s)\n", ap_id); in ap_bk_idx() 424 if ((s = strstr(ap_id, bank)) == NULL) in ap_bk_idx() 722 const char *ap_id, in cfga_change_state() argument 739 rc = mema_add(ap_id, options, errstring, force); in cfga_change_state() 758 const char *ap_id, in cfga_private_func() argument 774 ret = ap_stat(ap_id, &fd, &bk, &stat, errstring); in cfga_private_func() 1086 const char *ap_id, in cfga_test() argument 1198 ret = ap_stat(ap_id, &fd, &bk, &stat, errstring); in cfga_test() 1378 const char *ap_id, in cfga_stat() argument [all …]
|
/illumos-gate/usr/src/uts/common/io/ib/ibnex/ |
H A D | ibnex_ioctl.c | 296 ioc.ap_id = (caddr_t)(uintptr_t)ioc32.ap_id; in ibnex_devctl() 1742 char *ap_id; in ibnex_get_apid() local 1748 &ap_id) != 0) { in ibnex_get_apid() 1750 ap_id = NULL; in ibnex_get_apid() 1754 return (ap_id); in ibnex_get_apid() 1775 char *ap_id; in ibnex_get_dip_from_apid() local 1797 kmem_free(ap_id, len); in ibnex_get_dip_from_apid() 1804 kmem_free(ap_id, len); in ibnex_get_dip_from_apid() 1837 kmem_free(ap_id, len); in ibnex_get_dip_from_apid() 1907 kmem_free(ap_id, len); in ibnex_get_dip_from_apid() [all …]
|
/illumos-gate/usr/src/cmd/sf880drd/ |
H A D | sf880drd.c | 182 pushbutton_event(char *ap_id) in pushbutton_event() argument 190 rv = config_list_ext(1, &ap_id, &stat, &nlist, in pushbutton_event() 217 rv = config_change_state(cmd, 1, &ap_id, NULL, NULL, NULL, &errstr, 0); in pushbutton_event()
|
/illumos-gate/usr/src/lib/libcfgadm/common/ |
H A D | config_admin.c | 367 char *const *ap_id, in config_change_state() argument 1339 const char *ap_id, in config_get_lib() argument 1348 if (ap_id == NULL) { in config_get_lib() 1359 (void) strcpy(apdup, ap_id); in config_get_lib() 2934 find_arg_type(const char *ap_id) in find_arg_type() argument 2947 if (ap_id == NULL || *ap_id == '\0') { in find_arg_type() 2955 if ((cp = GET_DYN(ap_id)) != NULL) { in find_arg_type() 2956 len = cp - ap_id; in find_arg_type() 2958 len = strlen(ap_id); in find_arg_type() 2966 (void) strncpy(ap_base, ap_id, len); in find_arg_type() [all …]
|
/illumos-gate/usr/src/cmd/fm/modules/common/disk-monitor/ |
H A D | hotplug_mgr.c | 473 disk_match_by_ap_id(diskmon_t *disklistp, const char *ap_id) in disk_match_by_ap_id() argument 477 dm_assert(ap_id != NULL); in disk_match_by_ap_id() 480 if (strncmp(ap_id, DEVICES_PREFIX, 8 /* strlen("/devices") */) == 0) in disk_match_by_ap_id() 481 ap_id += 8; in disk_match_by_ap_id() 489 if (strcmp(disk_ap_id, ap_id) == 0) in disk_match_by_ap_id()
|
/illumos-gate/usr/src/cmd/hal/hald/solaris/ |
H A D | sysevent.c | 608 sysevent_process_dr(gchar *ap_id, gchar *hint_val) in sysevent_process_dr() argument 616 if ((ap_id == NULL) || (hint_val == NULL)) in sysevent_process_dr() 618 HAL_DEBUG (("sysevent_process_dr: %s", ap_id)); in sysevent_process_dr() 620 cfgerr = config_list_ext (1, (char *const *)&ap_id, &cfg_stat, &nlist, in sysevent_process_dr() 625 ap_id, errstr)); in sysevent_process_dr()
|