/illumos-gate/usr/src/lib/cfgadm_plugins/ib/common/ |
H A D | cfga_ib.c | 400 ib_err_msg(char **errstring, cfga_ib_ret_t rv, const char *ap_id, int l_errno) in ib_err_msg() argument 443 ib_set_msg(errstring, ERR_STR(rv), "ap_id: ", ap_id, "", NULL); in ib_err_msg() 460 ib_set_msg(errstring, ERR_STR(rv), "ap_id: ", ap_id, "\n", in ib_err_msg() 494 ib_verify_valid_apid(const char *ap_id) in ib_verify_valid_apid() argument 498 if (ap_id == NULL) { in ib_verify_valid_apid() 502 l_ap_id = strchr(ap_id, *MINOR_SEP); in ib_verify_valid_apid() 506 if (strstr((char *)ap_id, IBNEX_FABRIC) != NULL) { in ib_verify_valid_apid() 545 ib_verify_params(const char *ap_id, const char *options, char **errstring) in ib_verify_params() argument 557 if (ib_verify_valid_apid(ap_id) != 0) { in ib_verify_params() 617 ib_setup_for_devctl_cmd(char *ap_id, boolean_t use_static_ap_id, in ib_setup_for_devctl_cmd() argument [all …]
|
/illumos-gate/usr/src/lib/cfgadm_plugins/sata/common/ |
H A D | cfga_sata.c | 226 verify_params(const char *ap_id, const char *options, char **errstring); 230 setup_for_devctl_cmd(const char *ap_id, devctl_hdl_t *devctl_hdl, 238 do_control_ioctl(const char *ap_id, sata_cfga_apctl_t subcommand, uint_t arg, 245 sata_get_devicepath(const char *ap_id); 251 get_port_num(const char *ap_id, uint32_t *port); 462 const char *ap_id, in sata_err_msg() argument 521 set_msg(errstring, ERR_STR(rv), "ap_id: ", ap_id, "", NULL); in sata_err_msg() 541 set_msg(errstring, ERR_STR(rv), "ap_id: ", ap_id, "\n", in sata_err_msg() 567 const char *ap_id, in cfga_change_state() argument 597 if ((rv = verify_params(ap_id, options, errstring)) != CFGA_SATA_OK) { in cfga_change_state() [all …]
|
/illumos-gate/usr/src/lib/cfgadm_plugins/usb/common/ |
H A D | cfga_usb.c | 326 usb_err_msg(char **errstring, cfga_usb_ret_t rv, const char *ap_id, int l_errno) in usb_err_msg() argument 369 "ap_id: ", ap_id, "", NULL); in usb_err_msg() 390 set_msg(errstring, ERR_STR(rv), "ap_id: ", ap_id, "\n", 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() 479 get_port_num(const char *ap_id, uint_t *port) in get_port_num() argument [all …]
|
/illumos-gate/usr/src/lib/cfgadm_plugins/pci/common/ |
H A D | cfga.c | 154 static cfga_err_t fix_ap_name(char *ap_log_id, const char *ap_id, 267 get_occupants(const char *ap_id, hpc_occupant_info_t *occupant) in get_occupants() argument 278 if ((fd = open(ap_id, O_RDWR)) == -1) { in get_occupants() 279 DBG(2, ("open = ap_id%s, fd%d\n", ap_id, fd)); in get_occupants() 280 DBG_F(2, (stderr, "open on %s failed\n", ap_id)); in get_occupants() 293 tmp = (char *)(ap_id + sizeof ("/devices") - 1); in get_occupants() 505 check_rcm(const char *ap_id, hpc_occupant_info_t *occupant, in check_rcm() argument 513 if (get_occupants(ap_id, occupant) != 0) { in check_rcm() 574 cfga_change_state(cfga_cmd_t state_change_cmd, const char *ap_id, in cfga_change_state() argument 594 DBG(1, ("cfga_change_state:(%s)\n", ap_id)); in cfga_change_state() [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() 251 "board '%s' has been added into system successfully", ap_id); in event_process() 259 syslog(LOG_ERR, "failed to add board '%s' into system", ap_id); in event_process() 270 char *ap_id, *req, *acpi_event_type; in notify_hotplug() local [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/shp/common/ |
H A D | shp.c | 158 static cfga_err_t fix_ap_name(char *ap_log_id, const char *ap_id, 616 cfga_change_state(cfga_cmd_t state_change_cmd, const char *ap_id, in cfga_change_state() argument 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() 787 prt_led_mode(const char *ap_id, int repeat, char **errstring, in prt_led_mode() argument 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() 880 cfga_private_func(const char *function, const char *ap_id, in cfga_private_func() argument 893 DBG(1, ("cfgadm_private_func: ap_id:%s\n", ap_id)); in cfga_private_func() 984 return (prt_led_mode(ap_id, repeat, errstring, in cfga_private_func() [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/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); 386 static void get_fantray_path(char *ap_id, char *path, int bufsz); 1422 get_fantray_path(char *ap_id, char *path, int bufsz) in get_fantray_path() argument 1426 (void) strlcpy(ft_id, ap_id, FT_ID_BUFSZ); in get_fantray_path() 1430 if ((strncmp(ap_id, "FT0", 3) == 0) || in get_fantray_path() 1431 (strncmp(ap_id, "FT1", 3) == 0) || in get_fantray_path() 1432 (strncmp(ap_id, "FT2", 3) == 0)) { in get_fantray_path() 1434 } else if ((strncmp(ap_id, "FT3", 3) == 0) || in get_fantray_path() 1435 (strncmp(ap_id, "FT4", 3) == 0) || in get_fantray_path() [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 | 534 sysc_stat(const char *ap_id, int *fdp) in sysc_stat() argument 540 if ((fd = open(ap_id, O_RDWR, 0)) == -1) in sysc_stat() 566 sim_sysc_stat(const char *ap_id, int *fdp) in sim_sysc_stat() argument 590 } else if ((fd = open(ap_id, O_RDWR, 0)) == -1) in sim_sysc_stat() 827 ap_idx(const char *ap_id) in ap_idx() argument 833 DBG("ap_idx(%s)\n", ap_id); in ap_idx() 835 if ((s = strstr(ap_id, slot)) == NULL) 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() 910 cfga_err(NULL, errstring, ERR_AP_INVAL, ap_id, 0); in cfga_change_state() [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/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 | 115 static char *get_dyn(const char *ap_id); 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() 2315 if ((cp = GET_DYN(ap_id)) != NULL) { 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() [all …]
|
/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/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/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() 325 if (ddi_copyin((void *)ioc.ap_id, apid_n, 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() 1753 IBTF_DPRINTF_L4("ibnex", "ibnex_get_apid: ap_id=%s", ap_id); in ibnex_get_apid() 1754 return (ap_id); in ibnex_get_apid() 1775 char *ap_id; in ibnex_get_dip_from_apid() local 1782 ap_id = i_ddi_strdup(apid, KM_SLEEP); in ibnex_get_dip_from_apid() 1783 IBTF_DPRINTF_L4("ibnex", "\tibnex_get_dip_from_apid: %s", ap_id); in ibnex_get_dip_from_apid() [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() 743 rc = mema_delete(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() [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 | 279 static cfga_ap_types_t find_arg_type(const char *ap_id); 288 static cfga_err_t split_apid(char *ap_id, char **dyncompp, char **errstring); 367 char *const *ap_id, in config_change_state() argument 410 if (check_apids(num_ap_ids, ap_id, errstring) != CFGA_OK) { in config_change_state() 419 if ((retval = config_get_lib(ap_id[i], &libloc, errstring)) != in config_change_state() 1339 const char *ap_id, in config_get_lib() argument 1348 if (ap_id == NULL) { in config_get_lib() 1355 if ((apdup = config_calloc_check(1, strlen(ap_id) + 1, errstring)) 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 [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()
|