Home
last modified time | relevance | path

Searched refs:apidp (Results 1 – 8 of 8) sorted by relevance

/titanic_50/usr/src/lib/cfgadm_plugins/scsi/common/
H A Dcfga_ctl.c41 static scfga_ret_t quiesce_confirm(apid_t *apidp,
43 static scfga_ret_t dev_hotplug(apid_t *apidp,
63 apid_t *apidp, in bus_change_state() argument
77 assert(apidp->path != NULL); in bus_change_state()
78 assert(apidp->hba_phys != NULL); in bus_change_state()
83 if (apidp->dyncomp != NULL) { in bus_change_state()
89 if (devctl_cmd(apidp->path, SCFGA_BUS_GETSTATE, &state, in bus_change_state()
110 if (critical_ctrlr(apidp->path)) { in bus_change_state()
162 if (((apidp->flags & FLAG_DISABLE_RCM) == 0) && in bus_change_state()
166 ret = get_hba_children(apidp->path, NULL, &dev_list); in bus_change_state()
[all …]
H A Dcfga_scsi.h367 apid_t *apidp, struct cfga_confirm *confp, cfga_flags_t flags,
370 apid_t *apidp, cfga_flags_t flags, char **errstring);
371 scfga_ret_t dev_insert(const char *func, scfga_cmd_t cmd, apid_t *apidp,
373 scfga_ret_t dev_replace(const char *func, scfga_cmd_t cmd, apid_t *apidp,
375 scfga_ret_t dev_remove(const char *func, scfga_cmd_t cmd, apid_t *apidp,
377 scfga_ret_t reset_common(const char *func, scfga_cmd_t cmd, apid_t *apidp,
379 scfga_ret_t dev_led(const char *func, scfga_cmd_t cmd, apid_t *apidp,
381 scfga_ret_t plat_dev_led(const char *func, scfga_cmd_t cmd, apid_t *apidp,
386 scfga_ret_t do_list(apid_t *apidp, scfga_cmd_t cmd,
419 scfga_ret_t apidt_create(const char *ap_id, apid_t *apidp,
[all …]
H A Dcfga_utils.c331 apidt_create(const char *ap_id, apid_t *apidp, char **errstring) in apidt_create() argument
359 apidp->dyntype = NODYNCOMP; in apidt_create()
365 apidp->dyntype = PATH_APID; in apidt_create()
367 apidp->dyntype = DEV_APID; in apidt_create()
381 apidp->hba_phys = hba_phys; in apidt_create()
382 apidp->dyncomp = dyncomp; in apidt_create()
383 apidp->path = path; in apidt_create()
384 apidp->flags = 0; in apidt_create()
396 apidt_free(apid_t *apidp) in apidt_free() argument
398 if (apidp == NULL) in apidt_free()
[all …]
H A Dcfga_list.c30 apid_t *apidp; member
91 apid_t *apidp, in do_list() argument
103 assert(apidp->hba_phys != NULL && apidp->path != NULL); in do_list()
110 ret = make_hba_logid(apidp->hba_phys, &larg.hba_logp, &l_errno); in do_list()
119 larg.apidp = apidp; in do_list()
134 init_flag = (apidp->flags & FLAG_USE_DIFORCE) ? DINFOFORCE : DINFOCACHE; in do_list()
188 if (apidp->dyntype == PATH_APID) { in do_list()
193 ret = walk_tree(apidp->hba_phys, &larg, init_flag, NULL, in do_list()
204 ret = walk_tree(apidp->hba_phys, &larg, init_flag, &u, in do_list()
220 ret = walk_tree(apidp->hba_phys, &larg, init_flag, NULL, in do_list()
[all …]
/titanic_50/usr/src/lib/cfgadm_plugins/scsi/SUNW,SPARC-Enterprise/common/
H A Dopl_dev_led.c54 opl_get_scf_logical_disk(const apid_t *apidp, char **errstring, in opl_get_scf_logical_disk() argument
61 phys_path = strdup(apidp->path); in opl_get_scf_logical_disk()
93 opl_disk_led_control(apid_t *apidp, char **errstring, struct cfga_msg *msgp, in opl_disk_led_control() argument
101 if ((apidp == NULL) || (msgp == NULL) || (scf_disk == NULL)) { in opl_disk_led_control()
106 retval = opl_get_scf_logical_disk((const apid_t *)apidp, errstring, in opl_disk_led_control()
152 opl_print_locator(apid_t *apidp, struct cfga_msg *msgp, unsigned char led) in opl_print_locator() argument
177 cfga_led_msg(msgp, apidp, LED_STR_LOCATOR, mode); in opl_print_locator()
184 opl_print_led(apid_t *apidp, struct cfga_msg *msgp, unsigned char led) in opl_print_led() argument
209 cfga_led_msg(msgp, apidp, LED_STR_FAULT, mode); in opl_print_led()
215 apid_t *apidp, in opl_setlocator() argument
[all …]
/titanic_50/usr/src/lib/cfgadm_plugins/fp/common/
H A Dcfga_list.c32 apid_t *apidp; member
167 apid_t *apidp, in do_list() argument
192 ret = make_xport_logid(apidp->xport_phys, &larg.xport_logp, &l_errno); in do_list()
201 larg.apidp = apidp; in do_list()
204 if ((ret = findMatchingAdapterPort(larg.apidp->xport_phys, &handle, in do_list()
253 if (cvt_dyncomp_to_lawwn(apidp->dyncomp, &pwwn) != 0) { in do_list()
290 inq_dtype = get_inq_dtype(apidp->xport_phys, in do_list()
291 apidp->dyncomp, handle, &portAttrs, &discPortAttrs); in do_list()
293 if (init_ldata_for_accessible_dev(apidp->dyncomp, in do_list()
303 if (apidp->lunlist == NULL) { in do_list()
[all …]
H A Dcfga_fp.h459 fpcfga_ret_t dev_insert(fpcfga_cmd_t cmd, apid_t *apidp, prompt_t *argsp,
461 fpcfga_ret_t dev_replace(fpcfga_cmd_t cmd, apid_t *apidp, prompt_t *argsp,
463 fpcfga_ret_t dev_remove(fpcfga_cmd_t cmd, apid_t *apidp, prompt_t *argsp,
465 fpcfga_ret_t reset_common(fpcfga_cmd_t cmd, apid_t *apidp, prompt_t *argsp,
470 fpcfga_ret_t do_list(apid_t *apidp, fpcfga_cmd_t cmd,
509 fpcfga_ret_t apidt_create(const char *ap_id, apid_t *apidp,
511 void apidt_free(apid_t *apidp);
H A Dcfga_utils.c408 apidt_create(const char *ap_id, apid_t *apidp, char **errstring) in apidt_create() argument
454 apidp->xport_phys = xport_phys; in apidt_create()
455 apidp->dyncomp = dyncomp; in apidt_create()
456 apidp->lunlist = lunlistp; in apidt_create()
457 apidp->flags = 0; in apidt_create()
482 apidt_free(apid_t *apidp) in apidt_free() argument
484 if (apidp == NULL) in apidt_free()
487 S_FREE(apidp->xport_phys); in apidt_free()
488 S_FREE(apidp->dyncomp); in apidt_free()
489 lunlist_free(apidp->lunlist); in apidt_free()