Home
last modified time | relevance | path

Searched refs:port_index (Results 1 – 25 of 36) sorted by relevance

12

/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/bridged/
H A Drstp.c67 if (port_index > nextport || port_index < 0) in flush_lt()
70 if (port_index == 0) { in flush_lt()
107 if (port_index > nextport || port_index <= 0) in get_port_mac()
118 if (port_index > nextport || port_index == 0) in get_port_oper_speed()
129 if (port_index > nextport || port_index <= 0) { in get_port_link_status()
140 get_duplex(int port_index) in get_duplex() argument
146 if (port_index > nextport || port_index <= 0) in get_duplex()
179 if (port_index > nextport || port_index <= 0) in set_port_state()
240 if (port_index > nextport || port_index <= 0) in tx_bpdu()
260 if (port_index > nextport || port_index <= 0) in get_port_name()
[all …]
H A Devents.c182 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 Ddlpi.c87 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 Ddoor.c127 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 Dglobal.h47 int port_index; member
/illumos-gate/usr/src/lib/librstp/common/
H A Dstp_vectors.h41 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 Dtransmit.c96 build_bpdu_header (int port_index, in build_bpdu_header() argument
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()
204 return STP_OUT_tx_bpdu (port_index, vlan_id, in txConfig()
214 register int port_index, vlan_id; in txRstp() local
233 port_index = port->port_index; in txRstp()
[all …]
H A Dstp_in.h149 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 Dport.c45 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 Dsttrans.c45 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 Dstp_in.c124 _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()
202 port = _stpapi_port_find (stpm, port_index); in _stp_in_enable_port_on_stpm()
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
532 STP_IN_changed_port_duplex (int port_index) in STP_IN_changed_port_duplex() argument
625 port = _stpapi_port_find (this, port_index); in STP_IN_rx_bpdu()
821 port = _stpapi_port_find (this, port_index); in STP_IN_port_set_cfg()
936 STP_IN_port_add(int vlan_id, int port_index) in STP_IN_port_add() argument
952 if (! STP_port_create (this, port_index)) { in STP_IN_port_add()
[all …]
H A Dstpm.c295 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 Dtopoch.c68 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 Dport.h155 int port_index; member
165 STP_port_create (struct stpm_t* stpm, int port_index);
H A Droletrns.c79 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 Dp2p.c48 return STP_OUT_get_duplex (port->port_index); in computeP2P()
H A Dpcost.c87 port->operSpeed = STP_OUT_get_port_oper_speed (port->port_index); in STP_pcost_enter_state()
/illumos-gate/usr/src/uts/common/io/ib/mgt/ibcm/
H A Dibcm_impl.c60 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()
1016 port_index + 1); in ibcm_hca_detach()
2013 uint8_t port_index = port - 1; in ibcm_init_saa_handle() local
2063 uint8_t port_index = port - 1; in ibcm_get_saa_handle() local
2127 hcap, port_index + 1); in ibcm_hca_init_port()
2196 hcap, port_index + 1); in ibcm_hca_reinit_port()
2223 hcap, port_index + 1); in ibcm_hca_fini_port()
[all …]
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlc/
H A Dql_hba_fru.c398 attrs->hba_fru_details.port_index = 0; in ql_populate_hba_fru_details()
401 attrs->hba_fru_details.port_index = ha->fru_port_index; in ql_populate_hba_fru_details()
567 uint32_t *port_index) in ql_get_basedev_len() argument
599 *port_index = 0; in ql_get_basedev_len()
604 *port_index = stoi(&devstr); in ql_get_basedev_len()
605 if (*port_index == 0) { in ql_get_basedev_len()
641 uint32_t basedev_len, port_index; in ql_search_basedev() local
658 if (ql_get_basedev_len(ha, &basedev_len, &port_index) != 0) { in ql_search_basedev()
/illumos-gate/usr/src/cmd/fm/eversholt/files/common/
H A Dnic.esc28 * As well as "error", they must have both the "port_index" and "txr_index"
65 payloadprop("port_index") == pn && \
77 payloadprop("port_index") == pn && \
108 payloadprop("port_index") == pn &&
120 payloadprop("port_index") == pn &&
/illumos-gate/usr/src/lib/sun_fc/common/
H A DHBAPort.h72 HBA_UINT32 port_index,
H A DTgtFCHBAPort.h78 HBA_UINT32 port_index, in sendRPL() argument
H A DFCHBAPort.h83 HBA_UINT32 port_index, in sendRPL() argument
/illumos-gate/usr/src/uts/common/sys/fibre-channel/fca/emlxs/
H A Demlxs_fcio.h239 uint32_t port_index; member
/illumos-gate/usr/src/uts/common/sys/fibre-channel/impl/
H A Dfctl.h219 uint32_t port_index; member

12