Home
last modified time | relevance | path

Searched refs:dyncomp (Results 1 – 15 of 15) sorted by relevance

/titanic_44/usr/src/lib/cfgadm_plugins/fp/common/
H A Dcfga_list.c91 static fpcfga_ret_t init_ldata_for_accessible_dev(const char *dyncomp,
113 static fpcfga_ret_t get_accessible_FCP_dev_ldata(const char *dyncomp,
116 const char *dyncomp, uchar_t *lun_num, struct scsi_inquiry **inq_buf,
123 static uchar_t get_inq_dtype(char *xport_phys, char *dyncomp, HBA_HANDLE handle,
178 char *dyncomp = NULL; in do_list() local
253 if (cvt_dyncomp_to_lawwn(apidp->dyncomp, &pwwn) != 0) { in do_list()
291 apidp->dyncomp, handle, &portAttrs, &discPortAttrs); in do_list()
293 if (init_ldata_for_accessible_dev(apidp->dyncomp, in do_list()
371 cvt_lawwn_to_dyncomp(&pwwn, &dyncomp, &l_errno); in do_list()
372 if (dyncomp == NULL) { in do_list()
[all …]
H A Dcfga_cvt.c35 const char *dyncomp, struct luninfo_list **lunlistpp, int *l_errnop);
37 const char *dyncomp, di_node_t devnode, int *l_errnop);
47 cvt_lawwn_to_dyncomp(const la_wwn_t *pwwn, char **dyncomp, int *l_errnop) in cvt_lawwn_to_dyncomp() argument
49 *dyncomp = calloc(1, WWN_SIZE*2 + 1); in cvt_lawwn_to_dyncomp()
50 if (*dyncomp == NULL) { in cvt_lawwn_to_dyncomp()
54 (void) sprintf(*dyncomp, "%016llx", in cvt_lawwn_to_dyncomp()
60 cvt_dyncomp_to_lawwn(const char *dyncomp, la_wwn_t *port_wwn) in cvt_dyncomp_to_lawwn() argument
69 c = ctoi(*dyncomp++); in cvt_dyncomp_to_lawwn()
70 c1 = ctoi(*dyncomp++); in cvt_dyncomp_to_lawwn()
154 const char *dyncomp, in dyn_apid_to_path() argument
[all …]
H A Dcfga_cs.c80 if (cvt_dyncomp_to_lawwn(apidt->dyncomp, &pwwn)) { in do_devctl_dev_create()
114 ERRARG_BUS_DEV_CREATE_UNKNOWN, apidt->dyncomp, 0); in do_devctl_dev_create()
117 apidt->dyncomp, 0); in do_devctl_dev_create()
341 lun_unconf(char *path, int lunnum, char *xport_phys, char *dyncomp, in lun_unconf() argument
402 dyncomp, lunnum); in lun_unconf()
450 apidt->dyncomp, errstring)) != FPCFGA_OK) { in dev_unconf()
460 apidt->dyncomp, errstring)) != FPCFGA_OK) { in dev_unconf()
472 apidt->xport_phys, apidt->dyncomp, in dev_unconf()
507 char *xport_phys, *vhci_path, *dyncomp; in is_xport_phys_in_pathlist() local
512 if ((apidt->dyncomp == NULL) || (*apidt->dyncomp == '\0')) { in is_xport_phys_in_pathlist()
[all …]
H A Dcfga_utils.c411 char *dyncomp = NULL; in apidt_create() local
423 dyncomp = NULL; in apidt_create()
426 dyncomp = calloc(1, len); in apidt_create()
427 if (dyncomp == NULL) { in apidt_create()
432 (void) strcpy(dyncomp, DYN_TO_DYNCOMP(dyn)); in apidt_create()
433 if (GET_LUN_DYN(dyncomp)) { in apidt_create()
443 if (dyncomp != NULL) { in apidt_create()
444 ret = dyn_apid_to_path(xport_phys, dyncomp, in apidt_create()
455 apidp->dyncomp = dyncomp; in apidt_create()
463 S_FREE(dyncomp); in apidt_create()
[all …]
H A Dcfga_fp.h207 char *dyncomp; member
447 const char *dyncomp, int *num_luns, report_lun_resp_t **resp_buf,
481 fpcfga_ret_t dyn_apid_to_path(const char *xport_phys, const char *dyncomp,
483 void cvt_lawwn_to_dyncomp(const la_wwn_t *pwwn, char **dyncomp, int *l_errnop);
484 int cvt_dyncomp_to_lawwn(const char *dyncomp, la_wwn_t *port_wwn);
H A Dcfga_fp.c125 if (apidt.dyncomp != NULL) { /* Was there a port WWN passed ? */ in cfga_change_state()
131 if (cvt_dyncomp_to_lawwn(apidt.dyncomp, &pwwn)) { in cfga_change_state()
/titanic_44/usr/src/lib/cfgadm_plugins/scsi/common/
H A Dcfga_cvt.c29 char *dyncomp; member
48 const char *dyncomp; member
60 const char *dyncomp, char **pathpp, int *l_errnop);
63 const char *dyncomp, char **pathpp, int *l_errnop);
241 const char *dyncomp, in apid_to_path() argument
252 if (dyncomp == NULL) { in apid_to_path()
268 if (strchr(dyncomp, '/') != NULL) { in apid_to_path()
269 ret = devlink_dyn_to_devpath(hba_phys, dyncomp, pathpp, in apid_to_path()
271 } else if (strstr(dyncomp, PATH_APID_DYN_SEP) != NULL) { in apid_to_path()
272 ret = path_apid_dyn_to_path(hba_phys, dyncomp, pathpp, in apid_to_path()
[all …]
H A Dcfga_utils.c334 char *dyncomp = NULL, *path = NULL; in apidt_create() local
345 dyncomp = NULL; in apidt_create()
348 dyncomp = calloc(1, len); in apidt_create()
349 if (dyncomp == NULL) { in apidt_create()
354 (void) strcpy(dyncomp, DYN_TO_DYNCOMP(dyn)); in apidt_create()
363 if (dyncomp != NULL) { in apidt_create()
364 if (strstr(dyncomp, PATH_APID_DYN_SEP) != NULL) { in apidt_create()
372 if ((ret = apid_to_path(hba_phys, dyncomp, &path, in apidt_create()
382 apidp->dyncomp = dyncomp; in apidt_create()
390 S_FREE(dyncomp); in apidt_create()
[all …]
H A Dcfga_list.c425 char *dyncomp = NULL, *client_path = NULL; in create_pathinfo_ldata() local
435 ret = make_path_dyncomp(pi_node, &dyncomp, &lap->l_errno); in create_pathinfo_ldata()
444 S_FREE(dyncomp); in create_pathinfo_ldata()
450 lap->hba_logp, DYN_SEP, dyncomp); in create_pathinfo_ldata()
453 lap->apidp->hba_phys, DYN_SEP, dyncomp); in create_pathinfo_ldata()
455 S_FREE(dyncomp); in create_pathinfo_ldata()
558 strlen(lap->apidp->dyncomp)) { in stat_path_info()
564 lap->apidp->dyncomp)) { in stat_path_info()
704 char *dyncomp = NULL; in do_stat_dev() local
735 ret = make_dyncomp(node, nodepath, &dyncomp, &lap->l_errno); in do_stat_dev()
[all …]
H A Dcfga_scsi.h187 char *dyncomp; member
396 scfga_ret_t apid_to_path(const char *hba_phys, const char *dyncomp,
400 scfga_ret_t make_path_dyncomp(di_path_t path, char **dyncomp, int *l_errnop);
H A Dcfga_ctl.c83 if (apidp->dyncomp != NULL) { in bus_change_state()
269 if (apidp->dyncomp == NULL) { in dev_change_state()
393 if (apidp->dyncomp == NULL) { in dev_remove()
503 if (apidp->dyncomp != NULL) { in dev_insert()
558 if (apidp->dyncomp == NULL) { in dev_replace()
670 if (apidp->dyncomp == NULL) { in reset_common()
678 if (apidp->dyncomp != NULL) { in reset_common()
746 if (apidp->dyncomp == NULL) { in quiesce_required()
H A Dcfga_scsi.c94 if (apidt.dyncomp != NULL) { in cfga_change_state()
/titanic_44/usr/src/lib/cfgadm_plugins/sata/common/
H A Dcfga_sata.c1235 sata_make_dyncomp(const char *ap_id, char **dyncomp, const char *type) in sata_make_dyncomp() argument
1252 assert(dyncomp != NULL); in sata_make_dyncomp()
1373 *dyncomp = strdup(cp); in sata_make_dyncomp()
1388 *dyncomp = strdup(cp); in sata_make_dyncomp()
1676 char *dyncomp = NULL; in cfga_list_ext() local
1682 rv = sata_make_dyncomp(ap_id, &dyncomp, in cfga_list_ext()
1686 if (dyncomp != NULL) { in cfga_list_ext()
1690 dyncomp, in cfga_list_ext()
1692 free(dyncomp); in cfga_list_ext()
H A Dcfga_sata.h133 char *dyncomp; member
/titanic_44/usr/src/lib/libcfgadm/common/
H A Dconfig_admin.c286 static void append_dyn(char *buf, const char *dyncomp, size_t blen);
1337 char *dyncomp, path[PATH_MAX]; in config_get_lib() local
1358 if ((ret = split_apid(apdup, &dyncomp, errstring)) != CFGA_OK) { in config_get_lib()
1366 if (dyncomp != NULL) { in config_get_lib()
1413 (type == AP_TYPE && dyncomp == NULL)) { in config_get_lib()
1442 assert(dyncomp == NULL || libp->plugin_vers >= CFGA_HSL_V2); in config_get_lib()
1448 append_dyn(lib_loc_p->ap_physical, dyncomp, in config_get_lib()
1460 S_FREE(dyncomp); in config_get_lib()
3233 append_dyn(char *buf, const char *dyncomp, size_t blen) in append_dyn() argument
3235 if (dyncomp != NULL) { in append_dyn()
[all …]