Home
last modified time | relevance | path

Searched refs:portlist (Results 1 – 9 of 9) sorted by relevance

/illumos-gate/usr/src/cmd/fcoesvc/
H A Dfcoeisvc.c33 PFCOE_SMF_PORT_LIST portlist = NULL; in main() local
40 status = FCOE_LoadConfig(FCOE_PORTTYPE_INITIATOR, &portlist); in main()
44 } else if (portlist == NULL) { in main()
47 for (i = 0; i < portlist->port_num; i++) { in main()
48 port = &portlist->ports[i]; in main()
60 if (portlist != NULL) { in main()
61 free(portlist); in main()
H A Dfcoetsvc.c33 PFCOE_SMF_PORT_LIST portlist = NULL; in main() local
40 status = FCOE_LoadConfig(FCOE_PORTTYPE_TARGET, &portlist); in main()
44 } else if (portlist == NULL) { in main()
47 for (i = 0; i < portlist->port_num; i++) { in main()
48 port = &portlist->ports[i]; in main()
60 if (portlist != NULL) { in main()
61 free(portlist); in main()
/illumos-gate/usr/src/cmd/fcinfo/
H A Dfcoeadm.c272 FCOE_PORT_ATTRIBUTE *portlist = NULL; in fcoe_adm_delete_port() local
327 (char *)portlist[i].mac_link_name, in fcoe_adm_delete_port()
329 if (portlist[i].port_type == in fcoe_adm_delete_port()
345 free(portlist); in fcoe_adm_delete_port()
376 FCOE_PORT_ATTRIBUTE *portlist = NULL; in fcoe_adm_list_ports() local
401 status = FCOE_GetPortList(&port_num, &portlist); in fcoe_adm_list_ports()
442 if ((portlist[i].port_type == in fcoe_adm_list_ports()
445 portlist[i].port_type == in fcoe_adm_list_ports()
447 printFCOEPortInfo(&portlist[i]); in fcoe_adm_list_ports()
454 if (portlist != NULL) { in fcoe_adm_list_ports()
[all …]
/illumos-gate/usr/src/lib/storage/libg_fc/common/
H A Dgenf.c1134 g_get_port_path(char *portdrvr, portlist_t *portlist) in g_get_port_path() argument
1144 if ((portdrvr == NULL) || (portlist == NULL)) { in g_get_port_path()
1209 if ((portlist->hbacnt > MAX_HBA_PORT - 1) || in g_get_port_path()
1210 ((portlist->physpath[portlist->hbacnt] = in g_get_port_path()
1215 strcpy(portlist->physpath[portlist->hbacnt], in g_get_port_path()
1217 portlist->hbacnt++; in g_get_port_path()
1233 g_free_portlist(portlist_t *portlist) in g_free_portlist() argument
1238 if (portlist == NULL) { in g_free_portlist()
1242 for (x = 0; x < portlist->hbacnt; x++) { in g_free_portlist()
1243 if (portlist->physpath[x] != NULL) { in g_free_portlist()
[all …]
/illumos-gate/usr/src/lib/libfcoe/common/
H A Dlibfcoe.c718 FCOE_PORT_ATTRIBUTE **portlist) in FCOE_GetPortList() argument
732 if (port_num == NULL || portlist == NULL) { in FCOE_GetPortList()
822 *portlist = outportlist; in FCOE_GetPortList()
826 *portlist = NULL; in FCOE_GetPortList()
834 FCOE_SMF_PORT_LIST **portlist) in FCOE_LoadConfig() argument
893 *portlist = (PFCOE_SMF_PORT_LIST)malloc(bufsize); in FCOE_LoadConfig()
915 free(*portlist); in FCOE_LoadConfig()
921 &(*portlist)->ports[portIndex++]; in FCOE_LoadConfig()
937 (*portlist)->port_num = portIndex; in FCOE_LoadConfig()
H A Dlibfcoe.h152 FCOE_PORT_ATTRIBUTE **portlist
160 FCOE_SMF_PORT_LIST **portlist
/illumos-gate/usr/src/cmd/mdb/common/modules/fctl/
H A Dfctl.c128 fc_fca_port_t portlist; in ports() local
173 if (mdb_vread(&portlist, sizeof (fc_fca_port_t), addr) == in ports()
180 portlist.port_handle) == sizeof (fc_local_port_t)) { in ports()
182 portlist.port_handle, port.fp_instance, in ports()
188 portlist.port_handle); in ports()
433 fc_fca_port_t portlist; in fcport() local
460 if (mdb_vread(&portlist, sizeof (fc_fca_port_t), addr) == in fcport()
462 addr = (uintptr_t)portlist.port_handle; in fcport()
/illumos-gate/usr/src/lib/storage/libg_fc/common/hdrs/
H A Dgfc.h312 typedef struct portlist { struct
/illumos-gate/usr/src/cmd/luxadm/
H A Dg_adm.c5597 portlist_t portlist; in adm_display_port() local
5601 portlist.hbacnt = 0; in adm_display_port()
5607 if (err = g_get_port_path(portdrvr_list[x], &portlist)) { in adm_display_port()
5622 for (x = 0; x < portlist.hbacnt; x++) { in adm_display_port()
5623 if (err = g_get_port_state(portlist.physpath[x], in adm_display_port()
5625 (void) print_errString(err, portlist.physpath[x]); in adm_display_port()
5628 fprintf(stdout, "%-65s ", portlist.physpath[x]); in adm_display_port()
5640 g_free_portlist(&portlist); in adm_display_port()