Home
last modified time | relevance | path

Searched refs:ap_id (Results 1 – 25 of 42) sorted by relevance

12

/titanic_50/usr/src/lib/cfgadm_plugins/ib/common/
H A Dcfga_ib.c399 ib_err_msg(char **errstring, cfga_ib_ret_t rv, const char *ap_id, int l_errno) in ib_err_msg() argument
442 ib_set_msg(errstring, ERR_STR(rv), "ap_id: ", ap_id, "", NULL); in ib_err_msg()
459 ib_set_msg(errstring, ERR_STR(rv), "ap_id: ", ap_id, "\n", in ib_err_msg()
493 ib_verify_valid_apid(const char *ap_id) in ib_verify_valid_apid() argument
497 if (ap_id == NULL) { in ib_verify_valid_apid()
501 l_ap_id = strchr(ap_id, *MINOR_SEP); in ib_verify_valid_apid()
505 if (strstr((char *)ap_id, IBNEX_FABRIC) != NULL) { in ib_verify_valid_apid()
544 ib_verify_params(const char *ap_id, const char *options, char **errstring) in ib_verify_params() argument
556 if (ib_verify_valid_apid(ap_id) != 0) { in ib_verify_params()
616 ib_setup_for_devctl_cmd(char *ap_id, boolean_t use_static_ap_id, in ib_setup_for_devctl_cmd() argument
[all …]
/titanic_50/usr/src/lib/cfgadm_plugins/sata/common/
H A Dcfga_sata.c224 verify_params(const char *ap_id, const char *options, char **errstring);
228 setup_for_devctl_cmd(const char *ap_id, devctl_hdl_t *devctl_hdl,
236 do_control_ioctl(const char *ap_id, sata_cfga_apctl_t subcommand, uint_t arg,
243 sata_get_devicepath(const char *ap_id);
249 get_port_num(const char *ap_id, uint32_t *port);
460 const char *ap_id, in sata_err_msg() argument
519 set_msg(errstring, ERR_STR(rv), "ap_id: ", ap_id, "", NULL); in sata_err_msg()
539 set_msg(errstring, ERR_STR(rv), "ap_id: ", ap_id, "\n", in sata_err_msg()
565 const char *ap_id, in cfga_change_state() argument
595 if ((rv = verify_params(ap_id, options, errstring)) != CFGA_SATA_OK) { in cfga_change_state()
[all …]
/titanic_50/usr/src/lib/cfgadm_plugins/usb/common/
H A Dcfga_usb.c325 usb_err_msg(char **errstring, cfga_usb_ret_t rv, const char *ap_id, int l_errno) in usb_err_msg() argument
368 "ap_id: ", ap_id, "", NULL); in usb_err_msg()
389 set_msg(errstring, ERR_STR(rv), "ap_id: ", ap_id, "\n", in usb_err_msg()
415 verify_valid_apid(const char *ap_id) in verify_valid_apid() argument
419 if (ap_id == NULL) { in verify_valid_apid()
423 l_ap_id = strrchr(ap_id, *MINOR_SEP); in verify_valid_apid()
445 const char *ap_id, in verify_params() argument
460 if (GET_DYN(ap_id) != NULL) { in verify_params()
465 if (verify_valid_apid(ap_id) != 0) { in verify_params()
478 get_port_num(const char *ap_id, uint_t *port) in get_port_num() argument
[all …]
/titanic_50/usr/src/cmd/acpihpd/
H A Dnotify.c194 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 …]
/titanic_50/usr/src/lib/cfgadm_plugins/pci/common/
H A Dcfga.c159 static cfga_err_t fix_ap_name(char *ap_log_id, const char *ap_id,
272 get_occupants(const char *ap_id, hpc_occupant_info_t *occupant) in get_occupants() argument
283 if ((fd = open(ap_id, O_RDWR)) == -1) { in get_occupants()
284 DBG(2, ("open = ap_id%s, fd%d\n", ap_id, fd)); in get_occupants()
285 DBG_F(2, (stderr, "open on %s failed\n", ap_id)); in get_occupants()
298 tmp = (char *)(ap_id + sizeof ("/devices") - 1); in get_occupants()
510 check_rcm(const char *ap_id, hpc_occupant_info_t *occupant, in check_rcm() argument
518 if (get_occupants(ap_id, occupant) != 0) { in check_rcm()
579 cfga_change_state(cfga_cmd_t state_change_cmd, const char *ap_id, in cfga_change_state() argument
599 DBG(1, ("cfga_change_state:(%s)\n", ap_id)); in cfga_change_state()
[all …]
/titanic_50/usr/src/cmd/oplhpd/
H A Dscf_notify.c71 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 …]
/titanic_50/usr/src/lib/cfgadm_plugins/sbd/common/
H A Dcfga.c43 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 …]
/titanic_50/usr/src/lib/cfgadm_plugins/scsi/common/
H A Dcfga_scsi.c59 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()
/titanic_50/usr/src/lib/cfgadm_plugins/shp/common/
H A Dshp.c160 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()
982 return (prt_led_mode(ap_id, repeat, errstring, in cfga_private_func()
[all …]
/titanic_50/usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/
H A Dpiclfrudr.c379 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 …]
/titanic_50/usr/src/lib/cfgadm_plugins/fp/common/
H A Dcfga_fp.c42 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()
/titanic_50/usr/src/lib/cfgadm_plugins/sysctrl/common/
H A Dcfga.c536 sysc_stat(const char *ap_id, int *fdp) in sysc_stat() argument
542 if ((fd = open(ap_id, O_RDWR, 0)) == -1) in sysc_stat()
568 sim_sysc_stat(const char *ap_id, int *fdp) in sim_sysc_stat() argument
592 } else if ((fd = open(ap_id, O_RDWR, 0)) == -1) in sim_sysc_stat()
826 ap_idx(const char *ap_id) in ap_idx() argument
832 DBG("ap_idx(%s)\n", ap_id); in ap_idx()
834 if ((s = strstr(ap_id, slot)) == NULL) in ap_idx()
870 const char *ap_id, in cfga_change_state() argument
908 if ((idx = ap_idx(ap_id)) == -1) { in cfga_change_state()
909 cfga_err(NULL, errstring, ERR_AP_INVAL, ap_id, 0); in cfga_change_state()
[all …]
/titanic_50/usr/src/cmd/picl/plugins/sun4v/mdesc/
H A Dmdescplugin.c105 char *ap_id; in dr_handler() local
127 if (nvlist_lookup_string(nvlp, PICLEVENTARG_AP_ID, &ap_id)) { in dr_handler()
146 (void) update_devices(ap_id, DEV_ADD); in dr_handler()
148 (void) update_devices(ap_id, DEV_REMOVE); in dr_handler()
/titanic_50/usr/src/cmd/picl/plugins/common/piclevent/
H A Dpicl_slm.c250 char *ap_id = NULL; in piclslm_add_ec_dr_req_args() local
257 if (nvlist_lookup_string(nvlist, DR_AP_ID, &ap_id) != 0 || in piclslm_add_ec_dr_req_args()
258 ap_id == NULL) { in piclslm_add_ec_dr_req_args()
263 if (nvlist_add_string(nvl, PICLEVENTARG_AP_ID, ap_id)) { in piclslm_add_ec_dr_req_args()
280 (dr_req ? dr_req : "Investigate"), ap_id); in piclslm_add_ec_dr_req_args()
/titanic_50/usr/src/uts/common/os/
H A Dddi_hp_impl.c424 char *cn_path, *ap_id; in ddihp_cn_gen_sysevent() local
452 ap_id = kmem_zalloc(ap_id_len, kmflag); in ddihp_cn_gen_sysevent()
453 if (ap_id == NULL) { in ddihp_cn_gen_sysevent()
463 (void) strcpy(ap_id, cn_path); in ddihp_cn_gen_sysevent()
464 (void) strcat(ap_id, ":"); in ddihp_cn_gen_sysevent()
465 (void) strcat(ap_id, hdlp->cn_info.cn_name); in ddihp_cn_gen_sysevent()
475 kmem_free(ap_id, ap_id_len); in ddihp_cn_gen_sysevent()
551 err = nvlist_add_string(ev_attr_list, DR_AP_ID, ap_id); in ddihp_cn_gen_sysevent()
574 kmem_free(ap_id, ap_id_len); in ddihp_cn_gen_sysevent()
/titanic_50/usr/src/cmd/picl/plugins/sun4u/snowbird/frutree/
H A Dpiclscsi.c234 find_scsi_controller(char *devfs_path, plist_t *list, char *ap_id) in find_scsi_controller() argument
241 if (devfs_path == NULL || ap_id == NULL) { in find_scsi_controller()
257 (void) strncpy(ap_id, tmp->data->ap_log_id, in find_scsi_controller()
258 sizeof (ap_id)); in find_scsi_controller()
337 char addr[BUF_SIZE], ap_id[BUF_SIZE]; in get_bus_addr() local
340 (void) strncpy(ap_id, scsi_loc, sizeof (ap_id)); in get_bus_addr()
341 ap = strrchr(ap_id, ':'); in get_bus_addr()
343 ap = ap_idp = ap_id; in get_bus_addr()
/titanic_50/usr/src/uts/sun4u/starcat/io/
H A Dschpc.c603 schpc_p->schpc_slot[slot].ap_id); in schpc_connect()
615 schpc_p->schpc_slot[slot].ap_id); in schpc_connect()
631 SCHPC_SLOT_NUM(slot), schpc_p->schpc_slot[slot].ap_id); in schpc_connect()
643 SCHPC_SLOT_NUM(slot), schpc_p->schpc_slot[slot].ap_id); in schpc_connect()
668 schpc_p->schpc_slot[slot].ap_id); in schpc_connect()
691 schpc_p->schpc_slot[slot].ap_id); in schpc_connect()
717 SCHPC_SLOT_NUM(slot), schpc_p->schpc_slot[slot].ap_id); in schpc_connect()
746 schpc_p->schpc_slot[slot].ap_id); in schpc_connect()
759 schpc_p->schpc_slot[slot].ap_id); in schpc_connect()
772 schpc_p->schpc_slot[slot].ap_id); in schpc_connect()
[all …]
/titanic_50/usr/src/lib/cfgadm_plugins/usb/
H A Dusb.xcl100 msgid "ap_id: "
109 msgid "verify_params: dynamic ap_id passed\n"
127 msgid "set_configuration: ap_id: %s, config:%d\n"
/titanic_50/usr/src/cmd/luxadm/
H A Dfabric_conf.c44 static int create_ap_instance(char *ap_id, char *wwn_string,
282 create_ap_instance(char *ap_id, char *wwn_string, in create_ap_instance() argument
313 if ((bus_handle = devctl_bus_acquire(ap_id, 0)) == NULL) { in create_ap_instance()
/titanic_50/usr/src/uts/common/io/pciex/hotplug/
H A Dpcie_hp.c1206 char *ap_id; in pcie_hp_gen_sysevent_req() local
1218 ap_id = kmem_zalloc(ap_id_len, kmflag); in pcie_hp_gen_sysevent_req()
1219 if (ap_id == NULL) { in pcie_hp_gen_sysevent_req()
1228 (void) strcpy(ap_id, cn_path); in pcie_hp_gen_sysevent_req()
1229 (void) strcat(ap_id, ":"); in pcie_hp_gen_sysevent_req()
1230 (void) strcat(ap_id, slot_name); in pcie_hp_gen_sysevent_req()
1239 kmem_free(ap_id, ap_id_len); in pcie_hp_gen_sysevent_req()
1274 err = nvlist_add_string(ev_attr_list, DR_AP_ID, ap_id); in pcie_hp_gen_sysevent_req()
1299 kmem_free(ap_id, ap_id_len); in pcie_hp_gen_sysevent_req()
/titanic_50/usr/src/cmd/cfgadm/
H A Dcfgadm.c115 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 …]
/titanic_50/usr/src/lib/cfgadm_plugins/ac/common/
H A Dmema.c418 ap_bk_idx(const char *ap_id) in ap_bk_idx() argument
424 DBG("ap_bk_idx(%s)\n", ap_id); in ap_bk_idx()
426 if ((s = strstr(ap_id, bank)) == NULL) in ap_bk_idx()
724 const char *ap_id, in cfga_change_state() argument
741 rc = mema_add(ap_id, options, errstring, force); in cfga_change_state()
745 rc = mema_delete(ap_id, options, errstring, force); in cfga_change_state()
760 const char *ap_id, in cfga_private_func() argument
776 ret = ap_stat(ap_id, &fd, &bk, &stat, errstring); in cfga_private_func()
1088 const char *ap_id, in cfga_test() argument
1200 ret = ap_stat(ap_id, &fd, &bk, &stat, errstring); in cfga_test()
[all …]
/titanic_50/usr/src/uts/common/io/ib/ibnex/
H A Dibnex_ioctl.c293 ioc.ap_id = (caddr_t)(uintptr_t)ioc32.ap_id; in ibnex_devctl()
322 if (ddi_copyin((void *)ioc.ap_id, apid_n, in ibnex_devctl()
1739 char *ap_id; in ibnex_get_apid() local
1745 &ap_id) != 0) { in ibnex_get_apid()
1747 ap_id = NULL; in ibnex_get_apid()
1750 IBTF_DPRINTF_L4("ibnex", "ibnex_get_apid: ap_id=%s", ap_id); in ibnex_get_apid()
1751 return (ap_id); in ibnex_get_apid()
1772 char *ap_id; in ibnex_get_dip_from_apid() local
1779 ap_id = i_ddi_strdup(apid, KM_SLEEP); in ibnex_get_dip_from_apid()
1780 IBTF_DPRINTF_L4("ibnex", "\tibnex_get_dip_from_apid: %s", ap_id); in ibnex_get_dip_from_apid()
[all …]
/titanic_50/usr/src/cmd/sf880drd/
H A Dsf880drd.c184 pushbutton_event(char *ap_id) in pushbutton_event() argument
192 rv = config_list_ext(1, &ap_id, &stat, &nlist, in pushbutton_event()
219 rv = config_change_state(cmd, 1, &ap_id, NULL, NULL, NULL, &errstr, 0); in pushbutton_event()
/titanic_50/usr/src/cmd/fm/modules/common/disk-monitor/
H A Dhotplug_mgr.c473 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()

12