Home
last modified time | relevance | path

Searched refs:port (Results 1 – 25 of 941) sorted by relevance

12345678910>>...38

/titanic_41/usr/src/lib/librstp/common/
H A Droletrns.c56 register PORT_T* port; in setSyncBridge() local
58 for (port = this->owner.port->owner->ports; port; port = port->next) { in setSyncBridge()
59 port->sync = True; /* in ROOT_PROPOSED (setSyncBridge) */ in setSyncBridge()
66 register PORT_T* port; in setReRootBridge() local
68 for (port = this->owner.port->owner->ports; port; port = port->next) { in setReRootBridge()
69 port->reRoot = True; /* In setReRootBridge */ in setReRootBridge()
76 register PORT_T* port; in compute_all_synced() local
78 for (port = this->owner->ports; port; port = port->next) { in compute_all_synced()
79 if (port->port_index == this->port_index) continue; in compute_all_synced()
80 if (! port->synced) { in compute_all_synced()
[all …]
H A Dportinfo.c64 register PORT_T* port = this->owner.port; in rcvBpdu() local
66 if (port->msgBpduType == BPDU_TOPO_CHANGE_TYPE) { in rcvBpdu()
75 port->msgPortRole = RSTP_PORT_ROLE_UNKN; in rcvBpdu()
77 if (BPDU_RSTP == port->msgBpduType) { in rcvBpdu()
78 port->msgPortRole = (port->msgFlags & PORT_ROLE_MASK) >> PORT_ROLE_OFFS; in rcvBpdu()
81 if (RSTP_PORT_ROLE_DESGN == port->msgPortRole || in rcvBpdu()
82 BPDU_CONFIG_TYPE == port->msgBpduType) { in rcvBpdu()
83 bridcmp = STP_VECT_compare_vector (&port->msgPrio, &port->portPrio); in rcvBpdu()
86 (! STP_VECT_compare_bridge_id (&port->msgPrio.design_bridge, in rcvBpdu()
87 &port->portPrio.design_bridge) && in rcvBpdu()
[all …]
H A Drolesel.c38 void stp_dbg_break_point (PORT_T * port, STPM_T* stpm)
44 _is_backup_port (PORT_T* port, STPM_T* this) in _is_backup_port() argument
47 (&port->portPrio.design_bridge, &this->BrId)) { in _is_backup_port()
49 if (port->info->debug) { in _is_backup_port()
51 &port->portPrio.design_bridge, True); in _is_backup_port()
55 stp_dbg_break_point (port, this); in _is_backup_port()
65 setRoleSelected (char* reason, STPM_T* stpm, PORT_T* port, in setRoleSelected() argument
72 port->selectedRole = newRole; in setRoleSelected()
74 if (newRole == port->role) in setRoleSelected()
107 port->role = newRole; in setRoleSelected()
[all …]
H A Dtopoch.c57 register PORT_T* port = this->owner.port; in flush() local
60 if (port->operEdge) return True; in flush()
63 "flush", port->port_name, port->owner->name, in flush()
68 bret = STP_OUT_flush_lt (port->port_index, port->owner->vlan_id, in flush()
76 register PORT_T* port = this->owner.port; in setTcPropBridge() local
79 for (tmp = port->owner->ports; tmp; tmp = tmp->next) { in setTcPropBridge()
80 if (tmp->port_index != port->port_index) in setTcPropBridge()
88 "clearFDB", port->port_name, port->owner->name, in setTcPropBridge()
93 STP_OUT_flush_lt (port->port_index, port->owner->vlan_id, in setTcPropBridge()
101 register PORT_T* port = this->owner.port; in newTcWhile() local
[all …]
H A Dtransmit.c124 if (this->owner.port->skip_tx > 0) { in txTcn()
125 if (1 == this->owner.port->skip_tx) in txTcn()
127 this->owner.port->port_name); in txTcn()
128 this->owner.port->skip_tx--; in txTcn()
133 if (this->owner.port->admin_non_stp) return 1; in txTcn()
134 port_index = this->owner.port->port_index; in txTcn()
135 vlan_id = this->owner.port->owner->vlan_id; in txTcn()
143 stp_trace ("port %s txTcn", this->owner.port->port_name); in txTcn()
151 build_config_bpdu (PORT_T* port, Bool set_topo_ack_flag) in build_config_bpdu() argument
154 if (port->tcWhile) { in build_config_bpdu()
[all …]
H A Dsttrans.c43 register PORT_T *port = this->owner.port; in disableLearning() local
45 return STP_OUT_set_learning (port->port_index, port->owner->vlan_id, False); in disableLearning()
51 register PORT_T *port = this->owner.port; in enableLearning() local
53 return STP_OUT_set_learning (port->port_index, port->owner->vlan_id, True); in enableLearning()
59 register PORT_T *port = this->owner.port; in disableForwarding() local
61 return STP_OUT_set_forwarding (port->port_index, port->owner->vlan_id, False); in disableForwarding()
67 register PORT_T *port = this->owner.port; in enableForwarding() local
69 return STP_OUT_set_forwarding (port->port_index, port->owner->vlan_id, True); in enableForwarding()
76 register PORT_T *port = this->owner.port; in STP_sttrans_enter_state() local
81 port->learning = False; in STP_sttrans_enter_state()
[all …]
H A Dmigrate.c44 register PORT_T* port = this->owner.port; in STP_migrate_enter_state() local
49 port->initPm = True; in STP_migrate_enter_state()
50 port->mcheck = False; in STP_migrate_enter_state()
53 port->mdelayWhile = MigrateTime; in STP_migrate_enter_state()
54 port->mcheck = port->initPm = False; in STP_migrate_enter_state()
55 port->sendRSTP = True; in STP_migrate_enter_state()
58 port->rcvdRSTP = port->rcvdSTP = False; in STP_migrate_enter_state()
61 port->mdelayWhile = MigrateTime; in STP_migrate_enter_state()
62 port->sendRSTP = False; in STP_migrate_enter_state()
63 port->initPm = False; in STP_migrate_enter_state()
[all …]
H A Dpcost.c42 register PORT_T* port = this->owner.port; in computeAutoPCost() local
44 if (port->usedSpeed < 10L) { /* < 10Mb/s */ in computeAutoPCost()
46 } else if (port->usedSpeed <= 10L) { /* 10 Mb/s */ in computeAutoPCost()
48 } else if (port->usedSpeed <= 100L) { /* 100 Mb/s */ in computeAutoPCost()
50 } else if (port->usedSpeed <= 1000L) { /* 1 Gb/s */ in computeAutoPCost()
52 } else if (port->usedSpeed <= 10000L) { /* 10 Gb/s */ in computeAutoPCost()
54 } else if (port->usedSpeed <= 100000L) { /* 100 Gb/s */ in computeAutoPCost()
56 } else if (port->usedSpeed <= 1000000L) { /* 1 GTb/s */ in computeAutoPCost()
58 } else if (port->usedSpeed <= 10000000L) { /* 10 Tb/s */ in computeAutoPCost()
64 if (port->pcost->debug) { in computeAutoPCost()
[all …]
H A Dstp_in.c126 register PORT_T* port; in _stpapi_port_find() local
128 for (port = this->ports; port; port = port->next) in _stpapi_port_find()
129 if (port_index == port->port_index) { in _stpapi_port_find()
130 return port; in _stpapi_port_find()
200 register PORT_T* port; in _stp_in_enable_port_on_stpm() local
202 port = _stpapi_port_find (stpm, port_index); in _stp_in_enable_port_on_stpm()
203 if (! port) return; in _stp_in_enable_port_on_stpm()
204 if (port->portEnabled == enable) {/* nothing to do :) */ in _stp_in_enable_port_on_stpm()
208 port->uptime = 0; in _stp_in_enable_port_on_stpm()
210 port->rx_cfg_bpdu_cnt = in _stp_in_enable_port_on_stpm()
[all …]
H A Dstpm.c45 register PORT_T* port; in _stp_stpm_iterate_machines() local
58 for (port = this->ports; port; port = port->next) { in _stp_stpm_iterate_machines()
59 for (stater = port->machines; stater; stater = stater->next) { in _stp_stpm_iterate_machines()
88 register PORT_T* port; in _check_topoch() local
90 for (port = this->ports; port; port = port->next) { in _check_topoch()
91 if (port->tcWhile) { in _check_topoch()
102 register PORT_T* port; in STP_stpm_one_second() local
107 for (port = this->ports; port; port = port->next) { in STP_stpm_one_second()
109 if (*(port->timers[iii]) > 0) { in STP_stpm_one_second()
110 (*port->timers[iii])--; in STP_stpm_one_second()
[all …]
H A Dedge.c45 register PORT_T *port = s->owner.port; in STP_edge_enter_state() local
51 port->operEdge = port->adminEdge; in STP_edge_enter_state()
52 port->wasInitBpdu = False; in STP_edge_enter_state()
53 port->lnkWhile = 0; in STP_edge_enter_state()
54 port->portEnabled = False; in STP_edge_enter_state()
57 port->portEnabled = True; in STP_edge_enter_state()
58 port->lnkWhile = port->LinkDelay; in STP_edge_enter_state()
59 port->operEdge = False; in STP_edge_enter_state()
64 if (! port->wasInitBpdu) { in STP_edge_enter_state()
65 port->operEdge = port->adminEdge; in STP_edge_enter_state()
[all …]
/titanic_41/usr/src/uts/common/io/aggr/
H A Daggr_port.c70 aggr_port_t *port = buf; in aggr_port_destructor() local
72 ASSERT(port->lp_mnh == NULL); in aggr_port_destructor()
73 ASSERT(port->lp_mphp == NULL); in aggr_port_destructor()
74 ASSERT(!port->lp_rx_grp_added && !port->lp_tx_grp_added); in aggr_port_destructor()
75 ASSERT(port->lp_hwgh == NULL); in aggr_port_destructor()
108 aggr_port_init_callbacks(aggr_port_t *port) in aggr_port_init_callbacks() argument
111 port->lp_mnh = mac_notify_add(port->lp_mh, aggr_port_notify_cb, port); in aggr_port_init_callbacks()
126 aggr_grp_port_hold(port); in aggr_port_init_callbacks()
137 aggr_port_t *port; in aggr_port_create() local
214 port = kmem_cache_alloc(aggr_port_cache, KM_SLEEP); in aggr_port_create()
[all …]
H A Daggr_grp.c254 aggr_grp_port_hold(aggr_port_t *port) in aggr_grp_port_hold() argument
256 aggr_grp_t *grp = port->lp_grp; in aggr_grp_port_hold()
258 AGGR_PORT_REFHOLD(port); in aggr_grp_port_hold()
269 aggr_grp_port_rele(aggr_port_t *port) in aggr_grp_port_rele() argument
271 aggr_grp_t *grp = port->lp_grp; in aggr_grp_port_rele()
277 AGGR_PORT_REFRELE(port); in aggr_grp_port_rele()
304 aggr_grp_attach_port(aggr_grp_t *grp, aggr_port_t *port) in aggr_grp_attach_port() argument
309 ASSERT(MAC_PERIM_HELD(port->lp_mh)); in aggr_grp_attach_port()
311 if (port->lp_state == AGGR_PORT_STATE_ATTACHED) in aggr_grp_attach_port()
318 if (port->lp_ifspeed == 0 || in aggr_grp_attach_port()
[all …]
/titanic_41/usr/src/grub/grub-0.97/netboot/
H A Dio.h121 extern void __out##s(unsigned x value, unsigned short port); \
122 extern inline void __out##s(unsigned x value, unsigned short port) {
128 __OUT1(s,x) __OUT2(s,s1,"w") : : "a" (value), "d" (port)); } \
129 __OUT1(s##c,x) __OUT2(s,s1,"") : : "a" (value), "id" (port)); } \
130 __OUT1(s##_p,x) __OUT2(s,s1,"w") : : "a" (value), "d" (port)); SLOW_DOWN_IO; } \
131 __OUT1(s##c_p,x) __OUT2(s,s1,"") : : "a" (value), "id" (port)); SLOW_DOWN_IO; }
134 extern unsigned x __in##s(unsigned short port); \
135 extern inline unsigned x __in##s(unsigned short port) { unsigned x _v;
141 __IN1(s,x) __IN2(s,s1,"w") : "=a" (_v) : "d" (port) ,##i ); return _v; } \
142 __IN1(s##c,x) __IN2(s,s1,"") : "=a" (_v) : "id" (port) ,##i ); return _v; } \
[all …]
/titanic_41/usr/src/uts/common/io/fibre-channel/impl/
H A Dfp.c257 static void fp_log_port_event(fc_local_port_t *port, char *subclass);
258 static void fp_log_target_event(fc_local_port_t *port, char *subclass,
261 static void fp_init_symbolic_names(fc_local_port_t *port);
400 fc_local_port_t *port; in fp_detach() local
404 if ((port = ddi_get_soft_state(fp_driver_softstate, in fp_detach()
409 mutex_enter(&port->fp_mutex); in fp_detach()
411 if (port->fp_ulp_attach) { in fp_detach()
412 mutex_exit(&port->fp_mutex); in fp_detach()
418 if (port->fp_task != FP_TASK_IDLE) { in fp_detach()
419 mutex_exit(&port->fp_mutex); in fp_detach()
[all …]
H A Dfctl.c847 fc_local_port_t *port = port_handle; in fc_ulp_init_packet() local
855 rval = port->fp_fca_tran->fca_init_pkt(port->fp_fca_handle, pkt, sleep); in fc_ulp_init_packet()
885 fc_local_port_t *port = port_handle; in fc_ulp_uninit_packet() local
893 rval = port->fp_fca_tran->fca_un_init_pkt(port->fp_fca_handle, pkt); in fc_ulp_uninit_packet()
919 if ((fctl_destroy_remote_port(port, pd) == 0) && in fc_ulp_uninit_packet()
938 fc_local_port_t *port; in fc_ulp_getportmap() local
945 port = port_handle; in fc_ulp_getportmap()
947 mutex_enter(&port->fp_mutex); in fc_ulp_getportmap()
948 if (port->fp_statec_busy) { in fc_ulp_getportmap()
949 mutex_exit(&port->fp_mutex); in fc_ulp_getportmap()
[all …]
/titanic_41/usr/src/cmd/cmd-inet/usr.lib/bridged/
H A Ddlpi.c78 struct portdata *port = arg; in dlpi_notify() local
84 if (port->speed == info->dni_speed / 1000) in dlpi_notify()
86 port->speed = info->dni_speed / 1000; in dlpi_notify()
87 if ((rc = STP_IN_changed_port_speed(port->port_index, in dlpi_notify()
88 port->speed)) != 0) in dlpi_notify()
90 port->name, STP_IN_get_error_explanation(rc)); in dlpi_notify()
94 if (memcmp(info->dni_physaddr, port->mac_addr, ETHERADDRL) != 0) in dlpi_notify()
95 rstp_change_mac(port, info->dni_physaddr); in dlpi_notify()
99 if (!port->phys_status) in dlpi_notify()
101 port->phys_status = B_FALSE; in dlpi_notify()
[all …]
H A Devents.c128 struct portdata *port; in find_by_linkid() local
131 port = allports[i]; in find_by_linkid()
132 if (port->linkid == linkid) in find_by_linkid()
133 return (port); in find_by_linkid()
142 struct portdata *port; in set_vlan() local
155 port = find_by_linkid(vinfo.dv_linkid); in set_vlan()
156 if (port == NULL || !port->kern_added) in set_vlan()
159 bve.bve_linkid = port->linkid; in set_vlan()
164 vinfo.dv_vid, port->linkid); in set_vlan()
180 struct portdata *port; in update_port() local
[all …]
/titanic_41/usr/src/uts/common/io/audio/drv/audioixp/
H A Daudioixp.c429 audioixp_port_t *port = arg; in audioixp_open() local
433 port->started = B_FALSE; in audioixp_open()
434 port->count = 0; in audioixp_open()
435 port->offset = 0; in audioixp_open()
436 *nframesp = port->nframes; in audioixp_open()
437 *bufp = port->samp_kaddr; in audioixp_open()
472 audioixp_port_t *port = arg; in audioixp_stop() local
473 audioixp_state_t *statep = port->statep; in audioixp_stop()
476 if (port->num == IXP_REC) { in audioixp_stop()
501 audioixp_port_t *port = arg; in audioixp_start() local
[all …]
/titanic_41/usr/src/uts/sun4v/io/
H A Dds_common.c108 typedef void (*ds_msg_handler_t)(ds_port_t *port, caddr_t buf, size_t len);
109 static void ds_handle_init_req(ds_port_t *port, caddr_t buf, size_t len);
110 static void ds_handle_init_ack(ds_port_t *port, caddr_t buf, size_t len);
111 static void ds_handle_init_nack(ds_port_t *port, caddr_t buf, size_t len);
112 static void ds_handle_reg_req(ds_port_t *port, caddr_t buf, size_t len);
113 static void ds_handle_reg_ack(ds_port_t *port, caddr_t buf, size_t len);
114 static void ds_handle_reg_nack(ds_port_t *port, caddr_t buf, size_t len);
115 static void ds_handle_unreg_req(ds_port_t *port, caddr_t buf, size_t len);
116 static void ds_handle_unreg_ack(ds_port_t *port, caddr_t buf, size_t len);
117 static void ds_handle_unreg_nack(ds_port_t *port, caddr_t buf, size_t len);
[all …]
/titanic_41/usr/src/uts/common/io/audio/drv/audio810/
H A Daudio810.c410 audio810_port_t *port = arg; in audio810_open() local
414 port->count = 0; in audio810_open()
415 *nframes = port->samp_frames; in audio810_open()
416 *bufp = port->samp_kaddr; in audio810_open()
451 audio810_port_t *port = arg; in audio810_stop() local
452 audio810_state_t *statep = port->statep; in audio810_stop()
455 cr = I810_BM_GET8(port->regoff + I810_OFFSET_CR); in audio810_stop()
457 I810_BM_PUT8(port->regoff + I810_OFFSET_CR, cr); in audio810_stop()
475 audio810_port_t *port = arg; in audio810_start() local
476 audio810_state_t *statep = port->statep; in audio810_start()
[all …]
/titanic_41/usr/src/uts/common/io/audio/drv/audiop16x/
H A Daudiop16x.c213 p16x_port_t *port = arg; in p16x_open() local
217 port->count = 0; in p16x_open()
218 *nframes = port->buf_frames; in p16x_open()
219 *bufp = port->buf_kaddr; in p16x_open()
233 p16x_port_t *port = arg; in p16x_start() local
234 p16x_dev_t *dev = port->dev; in p16x_start()
236 port->offset = 0; in p16x_start()
238 if (port->port_num == P16X_REC) { in p16x_start()
264 p16x_port_t *port = arg; in p16x_stop() local
265 p16x_dev_t *dev = port->dev; in p16x_stop()
[all …]
/titanic_41/usr/src/uts/common/io/usb/hcd/uhci/
H A Duhcihub.c46 usb_port_t port);
49 usb_port_t port,
53 usb_port_t port,
57 usb_port_t port,
61 usb_port_t port);
64 usb_port_t port);
67 usb_port_t port);
71 usb_port_t port);
83 usb_port_t port);
208 uint16_t port = req->ctrl_wIndex - 1; in uhci_handle_root_hub_request() local
[all …]
/titanic_41/usr/src/uts/common/io/audio/drv/audio1575/
H A Daudio1575.c386 audio1575_port_t *port = arg; in audio1575_open() local
390 port->count = 0; in audio1575_open()
391 *nframesp = port->nframes; in audio1575_open()
392 *bufp = port->samp_kaddr; in audio1575_open()
428 audio1575_port_t *port = arg; in audio1575_stop() local
429 audio1575_state_t *statep = port->statep; in audio1575_stop()
432 if (port->num == M1575_REC) { in audio1575_stop()
455 audio1575_port_t *port = arg; in audio1575_start() local
456 audio1575_state_t *statep = port->statep; in audio1575_start()
460 port->offset = 0; in audio1575_start()
[all …]
/titanic_41/usr/src/uts/common/io/yge/
H A Dyge.c275 yge_mii_readreg(yge_port_t *port, uint8_t phy, uint8_t reg) in yge_mii_readreg() argument
277 yge_dev_t *dev = port->p_dev; in yge_mii_readreg()
278 int pnum = port->p_port; in yge_mii_readreg()
304 yge_mii_writereg(yge_port_t *port, uint8_t phy, uint8_t reg, uint16_t val) in yge_mii_writereg() argument
306 yge_dev_t *dev = port->p_dev; in yge_mii_writereg()
307 int pnum = port->p_port; in yge_mii_writereg()
319 yge_error(NULL, port, "phy write timeout"); in yge_mii_writereg()
325 yge_port_t *port = arg; in yge_mii_read() local
328 PHY_LOCK(port->p_dev); in yge_mii_read()
329 rv = yge_mii_readreg(port, phy, reg); in yge_mii_read()
[all …]

12345678910>>...38