Lines Matching defs:apidt

63  * So, apidt->dyncomp CANNOT be NULL
66 do_devctl_dev_create(apid_t *apidt, char *dev_path, int pathlen,
80 if (cvt_dyncomp_to_lawwn(apidt->dyncomp, &pwwn)) {
94 if ((bus_hdl = devctl_bus_acquire(apidt->xport_phys, 0)) == NULL) {
97 apidt->xport_phys, 0);
114 ERRARG_BUS_DEV_CREATE_UNKNOWN, apidt->dyncomp, 0);
117 apidt->dyncomp, 0);
136 * apidt - this is expected to have the list of luns for the device and so
146 dev_rcm_online(apid_t *apidt, int count, cfga_flags_t flags, char **errstring)
153 if ((apidt->flags & FLAG_DISABLE_RCM) != 0) {
158 lunlistp = apidt->lunlist;
160 for (lunlistp = apidt->lunlist; lunlistp != NULL;
181 dev_rcm_online_nonoperationalpath(apid_t *apidt, cfga_flags_t flags,
186 if ((apidt->flags & FLAG_DISABLE_RCM) != 0) {
190 lunlistp = apidt->lunlist;
192 for (lunlistp = apidt->lunlist; lunlistp != NULL;
206 * apidt - this is expected to have the list of luns for the device and so
215 dev_rcm_offline(apid_t *apidt, cfga_flags_t flags, char **errstring)
220 if ((apidt->flags & FLAG_DISABLE_RCM) != 0) {
225 for (lunlistp = apidt->lunlist; lunlistp != NULL;
230 if ((apidt->flags & FLAG_REMOVE_UNUSABLE_FCP_DEV) ==
247 (void) dev_rcm_online(apidt, count,
261 (void) dev_rcm_online(apidt, count, flags,
276 * apidt - this is expected to have the list of luns for the device and so
285 dev_rcm_remove(apid_t *apidt, cfga_flags_t flags, char **errstring)
290 if ((apidt->flags & FLAG_DISABLE_RCM) != 0) {
295 for (lunlistp = apidt->lunlist; lunlistp != NULL;
299 if ((apidt->flags & FLAG_REMOVE_UNUSABLE_FCP_DEV) ==
316 (void) dev_rcm_online(apidt, count,
330 (void) dev_rcm_online(apidt, count, flags,
373 * apidt->lunlist
427 dev_unconf(apid_t *apidt, char **errstring, uchar_t *flag)
433 for (lunlistp = apidt->lunlist; lunlistp != NULL;
441 if ((apidt->flags & FLAG_REMOVE_UNUSABLE_FCP_DEV) ==
449 lunlistp->lunnum, apidt->xport_phys,
450 apidt->dyncomp, errstring)) != FPCFGA_OK) {
459 lunlistp->lunnum, apidt->xport_phys,
460 apidt->dyncomp, errstring)) != FPCFGA_OK) {
472 apidt->xport_phys, apidt->dyncomp,
479 if ((apidt->flags & FLAG_REMOVE_UNUSABLE_FCP_DEV) ==
499 is_xport_phys_in_pathlist(apid_t *apidt, char **errstring)
512 if ((apidt->dyncomp == NULL) || (*apidt->dyncomp == '\0')) {
516 xport_phys = apidt->xport_phys;
517 dyncomp = apidt->dyncomp;
519 lunlistp = apidt->lunlist;
520 for (lunlistp = apidt->lunlist; lunlistp != NULL;
653 for (lunlistp = apidt->lunlist; lunlistp != NULL;
674 * apidt->dyncomp has to be non-NULL by the time this routine is called
677 dev_change_state(cfga_cmd_t state_change_cmd, apid_t *apidt, la_wwn_t *pwwn,
683 int optflag = apidt->flags;
700 if ((apidt->dyncomp == NULL) || (*apidt->dyncomp == '\0')) {
709 if ((update_str = calloc(1, (strlen(apidt->xport_phys) +
710 strlen(DYN_SEP) + strlen(apidt->dyncomp) + 1))) == NULL) {
714 strcpy(update_str, apidt->xport_phys);
716 strcat(update_str, apidt->dyncomp);
728 if ((ret = get_report_lun_data(apidt->xport_phys, apidt->dyncomp,
755 if ((apidt->lunlist == NULL) ||
767 apidt->dyncomp, 0);
831 if ((apidt->lunlist == NULL) ||
835 apidt->dyncomp, 0);
876 if ((ret = do_devctl_dev_create(apidt, dev_path, MAXPATHLEN,
901 if ((apidt->flags & FLAG_DISABLE_RCM) == 0) {
909 if ((t_apid = calloc(1, strlen(apidt->xport_phys) +
911 strlen(apidt->dyncomp) + 1)) == NULL) {
915 sprintf(t_apid, "%s%s%s", apidt->xport_phys, DYN_SEP,
916 apidt->dyncomp);
923 my_apidt.flags = apidt->flags;
927 apidt->lunlist->path, 0);
946 if (apidt->lunlist == NULL) {
975 if (is_xport_phys_in_pathlist(apidt, errstring) !=
984 if ((ret = dev_rcm_offline(apidt, flags, errstring)) !=
989 if ((ret = dev_unconf(apidt, errstring, &unconf_flag)) !=
993 (void) do_devctl_dev_create(apidt, dev_path, MAXPATHLEN,
995 (void) dev_rcm_online(apidt, -1, flags, NULL);
1000 if ((ret = dev_rcm_remove(apidt, flags, errstring)) !=
1002 (void) do_devctl_dev_create(apidt, dev_path, MAXPATHLEN,
1004 (void) dev_rcm_online(apidt, -1, flags, NULL);
1013 dev_rcm_online_nonoperationalpath(apidt, flags, NULL);
1404 * apidt - Pointer to apid_t structure with data filled in
1420 unconf_any_devinfo_nodes(apid_t *apidt, cfga_flags_t flags, char **errstring,
1429 * apidt->xport_phys is something like :
1433 (void) strlcpy(pathname, apidt->xport_phys, MAXPATHLEN);
1447 apidt->xport_phys, 0);
1453 apidt->xport_phys, 0);
1480 apidt->xport_phys, 0);
1495 unconf_non_vhci_nodes(direct_node, apidt->xport_phys, apidt->dyncomp,
1496 apidt->flags, num_devs, failure_count, errstring, flags);
1503 unconf_vhci_nodes(path_node, fp_node, apidt->xport_phys, apidt->dyncomp,
1504 apidt->flags, num_devs, failure_count, errstring, flags);
1519 * the FCA port specified by apidt.
1528 * apidt - Pointer to apid_t structure with data filled in
1539 handle_devs(cfga_cmd_t cmd, apid_t *apidt, cfga_flags_t flags,
1553 1, strlen(apidt->xport_phys) + strlen(DYN_SEP) +
1575 strcpy(my_apid, apidt->xport_phys);
1582 my_apidt.flags = apidt->flags;
1602 rval = unconf_any_devinfo_nodes(apidt, flags, errstring,
1650 fca_change_state(cfga_cmd_t state_change_cmd, apid_t *apidt,
1658 if ((ret = findMatchingAdapterPort(apidt->xport_phys, &handle,
1689 ret = (handle_devs(state_change_cmd, apidt, flags, errstring,