Home
last modified time | relevance | path

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

/titanic_41/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()
/titanic_41/usr/src/cmd/fcinfo/
H A Dfcoeadm.c272 FCOE_PORT_ATTRIBUTE *portlist = NULL; in fcoe_adm_delete_port() local
318 status = FCOE_GetPortList(&port_num, &portlist); in fcoe_adm_delete_port()
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()
[all …]
/titanic_41/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 …]
/titanic_41/usr/src/lib/libfcoe/common/
H A Dlibfcoe.c717 FCOE_PORT_ATTRIBUTE **portlist) in FCOE_GetPortList() argument
731 if (port_num == NULL || portlist == NULL) { in FCOE_GetPortList()
819 *portlist = outportlist; in FCOE_GetPortList()
823 *portlist = NULL; in FCOE_GetPortList()
831 FCOE_SMF_PORT_LIST **portlist) in FCOE_LoadConfig() argument
890 *portlist = (PFCOE_SMF_PORT_LIST)malloc(bufsize); in FCOE_LoadConfig()
912 free(*portlist); in FCOE_LoadConfig()
918 &(*portlist)->ports[portIndex++]; in FCOE_LoadConfig()
934 (*portlist)->port_num = portIndex; in FCOE_LoadConfig()
H A Dlibfcoe.h152 FCOE_PORT_ATTRIBUTE **portlist
160 FCOE_SMF_PORT_LIST **portlist
/titanic_41/usr/src/cmd/mdb/common/modules/fctl/
H A Dfctl.c125 fc_fca_port_t portlist; in ports() local
170 if (mdb_vread(&portlist, sizeof (fc_fca_port_t), addr) == in ports()
177 portlist.port_handle) == sizeof (fc_local_port_t)) { in ports()
179 portlist.port_handle, port.fp_instance, in ports()
185 portlist.port_handle); in ports()
430 fc_fca_port_t portlist; in fcport() local
457 if (mdb_vread(&portlist, sizeof (fc_fca_port_t), addr) == in fcport()
459 addr = (uintptr_t)portlist.port_handle; in fcport()
/titanic_41/usr/src/lib/storage/libg_fc/common/hdrs/
H A Dgfc.h312 typedef struct portlist { struct
/titanic_41/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()