/titanic_44/usr/src/cmd/cmd-inet/usr.lib/bridged/ |
H A D | rstp.c | 61 flush_lt(int port_index, int vlan_id, LT_FLASH_TYPE_T type, char *reason) in flush_lt() argument 67 if (port_index > nextport || port_index < 0) in flush_lt() 70 if (port_index == 0) { in flush_lt() 75 pd = allports[port_index - 1]; in flush_lt() 103 get_port_mac(int port_index, unsigned char *mac) in get_port_mac() argument 107 if (port_index > nextport || port_index <= 0) in get_port_mac() 110 pd = allports[port_index - 1]; in get_port_mac() 116 get_port_oper_speed(unsigned int port_index) in get_port_oper_speed() argument 118 if (port_index > nextport || port_index == 0) in get_port_oper_speed() 121 return (allports[port_index - 1]->speed); in get_port_oper_speed() [all …]
|
H A D | events.c | 182 int port_index; in update_port() local 216 port_index = posn + 1; in update_port() 229 port->port_index = port_index; in update_port() 417 pdp->port_index); in handle_refresh() 477 if ((rc = STP_IN_enable_port(port->port_index, !bc.bc_failed)) != 0) in handle_control() 551 rc = STP_IN_rx_bpdu(port->vlan_id, port->port_index, in receive_packet()
|
H A D | dlpi.c | 87 if ((rc = STP_IN_changed_port_speed(port->port_index, in dlpi_notify() 105 if ((rc = STP_IN_enable_port(port->port_index, False)) != 0) in dlpi_notify() 128 if ((rc = STP_IN_enable_port(port->port_index, True)) != 0) in dlpi_notify()
|
H A D | door.c | 127 retv = STP_IN_port_get_cfg(0, pdp->port_index, &portcfg); in bridge_door_server() 137 portstate.port_no = pdp->port_index; in bridge_door_server()
|
H A D | global.h | 47 int port_index; member
|
/titanic_44/usr/src/lib/librstp/common/ |
H A D | stp_vectors.h | 41 int (*flush_lt)(IN int port_index, IN int vlan_id, 45 void (*get_port_mac) (IN int port_index, OUT unsigned char* mac); 50 int (*get_port_link_status) (IN int port_index); 53 int (*get_duplex) (IN int port_index); 56 int (*set_learning) (IN int port_index, IN int vlan_id, IN int enable); 57 int (*set_forwarding) (IN int port_index, IN int vlan_id, 64 int (*set_port_state) (IN int port_index, IN int vlan_id, 69 int (*tx_bpdu) (IN int port_index, IN int vlan_id, 72 const char *(*get_port_name) (IN int port_index); 76 IN int port_index,
|
H A D | transmit.c | 96 build_bpdu_header (int port_index, in build_bpdu_header() argument 102 STP_OUT_get_port_mac (port_index, bpdu_packet.mac.src_mac); in build_bpdu_header() 121 register int port_index, vlan_id; in txTcn() local 134 port_index = this->owner.port->port_index; in txTcn() 137 pkt_len = build_bpdu_header (port_index, in txTcn() 145 return STP_OUT_tx_bpdu (port_index, vlan_id, in txTcn() 176 register int port_index, vlan_id; in txConfig() local 190 port_index = port->port_index; in txConfig() 193 pkt_len = build_bpdu_header (port->port_index, in txConfig() 204 return STP_OUT_tx_bpdu (port_index, vlan_id, in txConfig() [all …]
|
H A D | stp_in.h | 149 STP_IN_port_add (int vlan_id, int port_index); 152 STP_IN_port_remove (int vlan_id, int port_index); 181 STP_IN_port_get_cfg (int vlan_id, int port_index, UID_STP_PORT_CFG_T* uid_cfg); 196 STP_IN_port_set_cfg (int vlan_id, int port_index, 201 int vlan_id, int port_index); 210 STP_IN_enable_port (int port_index, Bool enable); 213 STP_IN_changed_port_speed (int port_index, long speed); 216 STP_IN_changed_port_duplex (int port_index); 222 STP_IN_rx_bpdu (int vlan_id, int port_index, BPDU_T* bpdu, size_t len);
|
H A D | port.c | 45 STP_port_create (STPM_T* stpm, int port_index) in STP_port_create() argument 54 if (this->port_index == port_index) { in STP_port_create() 63 this->port_index = port_index; in STP_port_create() 64 this->port_name = strdup (STP_OUT_get_port_name (port_index)); in STP_port_create() 67 STP_OUT_get_init_port_cfg (stpm->vlan_id, port_index, &port_cfg); in STP_port_create() 75 this->port_id = (port_prio << 8) + port_index; in STP_port_create() 136 this->adminEnable = STP_OUT_get_port_link_status (this->port_index); in STP_port_init() 159 this->operSpeed = STP_OUT_get_port_oper_speed (this->port_index); in STP_port_init() 183 if (tmp->port_index == this->port_index) { in STP_port_delete()
|
H A D | sttrans.c | 45 return STP_OUT_set_learning (port->port_index, port->owner->vlan_id, False); in disableLearning() 53 return STP_OUT_set_learning (port->port_index, port->owner->vlan_id, True); in enableLearning() 61 return STP_OUT_set_forwarding (port->port_index, port->owner->vlan_id, False); in disableForwarding() 69 return STP_OUT_set_forwarding (port->port_index, port->owner->vlan_id, True); in enableForwarding() 87 STP_OUT_set_port_state (port->port_index, port->owner->vlan_id, UID_PORT_DISCARDING); in STP_sttrans_enter_state() 95 STP_OUT_set_port_state (port->port_index, port->owner->vlan_id, UID_PORT_LEARNING); in STP_sttrans_enter_state() 104 STP_OUT_set_port_state (port->port_index, port->owner->vlan_id, UID_PORT_FORWARDING); in STP_sttrans_enter_state()
|
H A D | stp_in.c | 124 _stpapi_port_find (STPM_T* this, int port_index) in _stpapi_port_find() argument 129 if (port_index == port->port_index) { in _stpapi_port_find() 198 _stp_in_enable_port_on_stpm (STPM_T* stpm, int port_index, Bool enable) in _stp_in_enable_port_on_stpm() argument 202 port = _stpapi_port_find (stpm, port_index); in _stp_in_enable_port_on_stpm() 289 STP_IN_port_get_cfg (int vlan_id, int port_index, UID_STP_PORT_CFG_T* uid_cfg) in STP_IN_port_get_cfg() argument 302 port = _stpapi_port_find (this, port_index); in STP_IN_port_get_cfg() 481 STP_IN_enable_port (int port_index, Bool enable) in STP_IN_enable_port() argument 489 "clearFDB", (int) port_index, "this port", "disable port"); in STP_IN_enable_port() 491 STP_OUT_flush_lt (port_index, 0, LT_FLASH_ONLY_THE_PORT, "disable port"); in STP_IN_enable_port() 497 _stp_in_enable_port_on_stpm (stpm, port_index, enable); in STP_IN_enable_port() [all …]
|
H A D | stpm.c | 295 int port_index = 0; in STP_compute_bridge_id() local 298 if (! port_index || port->port_index < port_index) { in STP_compute_bridge_id() 300 port_index = port->port_index; in STP_compute_bridge_id() 306 STP_OUT_get_port_mac (min_num_port->port_index, this->BrId.addr); in STP_compute_bridge_id()
|
H A D | topoch.c | 68 bret = STP_OUT_flush_lt (port->port_index, port->owner->vlan_id, in flush() 80 if (tmp->port_index != port->port_index) in setTcPropBridge() 93 STP_OUT_flush_lt (port->port_index, port->owner->vlan_id, in setTcPropBridge()
|
H A D | port.h | 155 int port_index; member 165 STP_port_create (struct stpm_t* stpm, int port_index);
|
H A D | roletrns.c | 79 if (port->port_index == this->port_index) continue; in compute_all_synced() 94 if (port->port_index == this->port_index) continue; in compute_re_rooted()
|
H A D | p2p.c | 48 return STP_OUT_get_duplex (port->port_index); in computeP2P()
|
H A D | pcost.c | 87 port->operSpeed = STP_OUT_get_port_oper_speed (port->port_index); in STP_pcost_enter_state()
|
/titanic_44/usr/src/uts/common/io/ib/mgt/ibcm/ |
H A D | ibcm_impl.c | 60 uint8_t port_index); 62 uint8_t port_index); 927 int port_index, i; in ibcm_hca_detach() local 1011 for (port_index = 0; port_index < hcap->hca_num_ports; port_index++) { in ibcm_hca_detach() 1012 if ((status = ibcm_hca_fini_port(hcap, port_index)) != in ibcm_hca_detach() 1016 port_index + 1); in ibcm_hca_detach() 1023 for (i = 0; i < port_index; i++) { in ibcm_hca_detach() 1027 " port_num %d", port_index + 1); in ibcm_hca_detach() 2013 uint8_t port_index = port - 1; in ibcm_init_saa_handle() local 2014 ibcm_port_info_t *portp = &hcap->hca_port_info[port_index]; in ibcm_init_saa_handle() [all …]
|
/titanic_44/usr/src/uts/common/io/fibre-channel/fca/qlc/ |
H A D | ql_hba_fru.c | 403 attrs->hba_fru_details.port_index = 0; in ql_populate_hba_fru_details() 406 attrs->hba_fru_details.port_index = ha->fru_port_index; in ql_populate_hba_fru_details() 584 uint32_t *port_index) in ql_get_basedev_len() argument 616 *port_index = 0; in ql_get_basedev_len() 621 *port_index = stoi(&devstr); in ql_get_basedev_len() 622 if (*port_index == 0) { in ql_get_basedev_len() 658 uint32_t basedev_len, port_index; in ql_search_basedev() local 675 if (ql_get_basedev_len(ha, &basedev_len, &port_index) != 0) { in ql_search_basedev()
|
/titanic_44/usr/src/lib/sun_fc/common/ |
H A D | HBAPort.h | 72 HBA_UINT32 port_index,
|
H A D | TgtFCHBAPort.h | 78 HBA_UINT32 port_index, in sendRPL() argument
|
H A D | FCHBAPort.h | 83 HBA_UINT32 port_index, in sendRPL() argument
|
/titanic_44/usr/src/uts/common/sys/fibre-channel/fca/emlxs/ |
H A D | emlxs_fcio.h | 239 uint32_t port_index; member
|
/titanic_44/usr/src/uts/common/sys/fibre-channel/impl/ |
H A D | fctl.h | 217 uint32_t port_index; member
|
H A D | fc_portif.h | 444 uint32_t port_index);
|