Lines Matching refs:vlan_id

35 stp_in_stpm_create (int vlan_id, char* name, int* err_code)  in stp_in_stpm_create()  argument
40 this = stpapi_stpm_find (vlan_id); in stp_in_stpm_create()
46 this = STP_stpm_create (vlan_id, name); in stp_in_stpm_create()
57 _stp_in_stpm_enable (int vlan_id, char* name, in _stp_in_stpm_enable() argument
65 this = stpapi_stpm_find (vlan_id); in _stp_in_stpm_enable()
68 if (! vlan_id) { /* STP_IN_stop_all (); */ in _stp_in_stpm_enable()
73 STP_OUT_set_hardware_mode (stpm->vlan_id, STP_DISABLED); in _stp_in_stpm_enable()
83 this = stp_in_stpm_create (vlan_id, name, &err_code); in _stp_in_stpm_enable()
100 STP_OUT_set_hardware_mode (vlan_id, admin_state); in _stp_in_stpm_enable()
112 stpapi_stpm_find (int vlan_id) in stpapi_stpm_find() argument
117 if (vlan_id == this->vlan_id) in stpapi_stpm_find()
238 STP_IN_stpm_get_cfg (IN int vlan_id, OUT UID_STP_CFG_T* uid_cfg) in STP_IN_stpm_get_cfg() argument
245 this = stpapi_stpm_find (vlan_id); in STP_IN_stpm_get_cfg()
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
295 this = stpapi_stpm_find (vlan_id); in STP_IN_port_get_cfg()
338 STP_IN_port_get_state (IN int vlan_id, INOUT UID_STP_PORT_STATE_T* entry) in STP_IN_port_get_state() argument
344 this = stpapi_stpm_find (vlan_id); in STP_IN_port_get_state()
426 STP_IN_stpm_get_state (IN int vlan_id, OUT UID_STP_STATE_T* entry) in STP_IN_stpm_get_state() argument
431 this = stpapi_stpm_find (vlan_id); in STP_IN_stpm_get_state()
439 entry->vlan_id = this->vlan_id; in STP_IN_stpm_get_state()
460 STP_IN_stpm_get_name_by_vlan_id (int vlan_id, char* name, size_t buffsize) in STP_IN_stpm_get_name_by_vlan_id() argument
467 if (vlan_id == stpm->vlan_id) { in STP_IN_stpm_get_name_by_vlan_id()
601 STP_IN_rx_bpdu (int vlan_id, int port_index, BPDU_T* bpdu, size_t len) in STP_IN_rx_bpdu() argument
614 this = stpapi_stpm_find (vlan_id); in STP_IN_rx_bpdu()
628 …stp_trace ("RX bpdu vlan_id=%d port=%d port is absent in the stpm :(", (int) vlan_id, (int) port_i… in STP_IN_rx_bpdu()
700 STP_IN_stpm_set_cfg (IN int vlan_id, in STP_IN_stpm_set_cfg() argument
709 if (0 != STP_IN_stpm_get_cfg (vlan_id, &old)) { in STP_IN_stpm_set_cfg()
710 STP_OUT_get_init_stpm_cfg (vlan_id, &old); in STP_IN_stpm_set_cfg()
743 rc = _stp_in_stpm_enable (vlan_id, uid_cfg->vlan_name, STP_DISABLED); in STP_IN_stpm_set_cfg()
757 this = stpapi_stpm_find (vlan_id); in STP_IN_stpm_set_cfg()
761 this = stp_in_stpm_create (vlan_id, uid_cfg->vlan_name, &err_code); in STP_IN_stpm_set_cfg()
787 rc = _stp_in_stpm_enable (vlan_id, uid_cfg->vlan_name, uid_cfg->stp_enabled); in STP_IN_stpm_set_cfg()
807 STP_IN_port_set_cfg (IN int vlan_id, IN int port_index, in STP_IN_port_set_cfg() argument
814 this = stpapi_stpm_find (vlan_id); in STP_IN_port_set_cfg()
817 stp_trace ("RSTP instance with tag %d hasn't been created\n", vlan_id); in STP_IN_port_set_cfg()
892 int vlan_id, int port_no) in STP_IN_dbg_set_port_trace() argument
899 this = stpapi_stpm_find (vlan_id); in STP_IN_dbg_set_port_trace()
902 stp_trace ("RSTP instance with tag %d hasn't been created\n", vlan_id); in STP_IN_dbg_set_port_trace()
936 STP_IN_port_add(int vlan_id, int port_index) in STP_IN_port_add() argument
943 this = stpapi_stpm_find (vlan_id); in STP_IN_port_add()
968 STP_IN_port_remove(int vlan_id, int port_index) in STP_IN_port_remove() argument
974 this = stpapi_stpm_find (vlan_id); in STP_IN_port_remove()
997 STP_IN_get_bridge_id(int vlan_id, unsigned short *priority, unsigned char *mac) in STP_IN_get_bridge_id() argument
1002 this = stpapi_stpm_find (vlan_id); in STP_IN_get_bridge_id()