Lines Matching refs:sub

633 	uint sub, uint iidx __unused, enum snmp_op op)  in op_dot1d_base()  argument
646 switch (value->var.subs[sub - 1]) { in op_dot1d_base()
672 op_dot1d_stp(struct snmp_context *ctx, struct snmp_value *val, uint sub, in op_dot1d_stp() argument
686 switch (val->var.subs[sub - 1]) { in op_dot1d_stp()
759 switch (val->var.subs[sub - 1]) { in op_dot1d_stp()
835 switch (val->var.subs[sub - 1]) { in op_dot1d_stp()
866 uint sub, uint iidx __unused, enum snmp_op op) in op_dot1d_tp() argument
879 switch (value->var.subs[sub - 1]) { in op_dot1d_tp()
893 switch (value->var.subs[sub - 1]) { in op_dot1d_tp()
910 if (value->var.subs[sub - 1] == LEAF_dot1dTpAgingTime) in op_dot1d_tp()
929 bridge_name_index_get(const struct asn_oid *oid, uint sub, char *b_name) in bridge_name_index_get() argument
933 if (oid->len - sub != oid->subs[sub] + 1 || oid->subs[sub] >= IFNAMSIZ) in bridge_name_index_get()
936 for (i = 0; i < oid->subs[sub]; i++) in bridge_name_index_get()
937 b_name[i] = oid->subs[sub + i + 1]; in bridge_name_index_get()
944 bridge_if_index_append(struct asn_oid *oid, uint sub, in bridge_if_index_append() argument
949 oid->len = sub + strlen(bif->bif_name) + 1; in bridge_if_index_append()
950 oid->subs[sub] = strlen(bif->bif_name); in bridge_if_index_append()
953 oid->subs[sub + i] = bif->bif_name[i - 1]; in bridge_if_index_append()
957 bridge_if_index_get(const struct asn_oid *oid, uint sub) in bridge_if_index_get() argument
962 if (oid->len - sub != oid->subs[sub] + 1 || oid->subs[sub] >= IFNAMSIZ) in bridge_if_index_get()
965 for (i = 0; i < oid->subs[sub]; i++) in bridge_if_index_get()
966 bif_name[i] = oid->subs[sub + i + 1]; in bridge_if_index_get()
973 bridge_if_index_getnext(const struct asn_oid *oid, uint sub) in bridge_if_index_getnext() argument
979 if (oid->len - sub == 0) in bridge_if_index_getnext()
982 if (oid->len - sub != oid->subs[sub] + 1 || oid->subs[sub] >= IFNAMSIZ) in bridge_if_index_getnext()
985 for (i = 0; i < oid->subs[sub]; i++) in bridge_if_index_getnext()
986 bif_name[i] = oid->subs[sub + i + 1]; in bridge_if_index_getnext()
997 struct snmp_value *val, uint sub) in bridge_set_if_status() argument
1002 bif = bridge_if_index_get(&val->var, sub); in bridge_set_if_status()
1050 if (bridge_name_index_get(&val->var, sub, bif_name) == NULL) in bridge_set_if_status()
1060 if (bridge_name_index_get(&val->var, sub, bif_name) == NULL) in bridge_set_if_status()
1082 struct snmp_value *val, uint sub) in bridge_rollback_if_status() argument
1086 if ((bif = bridge_if_index_get(&val->var, sub)) == NULL) in bridge_rollback_if_status()
1111 bridge_commit_if_status(struct snmp_value *val, uint sub) in bridge_commit_if_status() argument
1115 if ((bif = bridge_if_index_get(&val->var, sub)) == NULL) in bridge_commit_if_status()
1127 uint sub, uint iidx __unused, enum snmp_op op) in op_begemot_base_bridge() argument
1136 if ((bif = bridge_if_index_get(&val->var, sub)) == NULL) in op_begemot_base_bridge()
1141 if ((bif = bridge_if_index_getnext(&val->var, sub)) == NULL) in op_begemot_base_bridge()
1143 bridge_if_index_append(&val->var, sub, bif); in op_begemot_base_bridge()
1147 switch (val->var.subs[sub - 1]) { in op_begemot_base_bridge()
1149 return (bridge_set_if_status(ctx, val, sub)); in op_begemot_base_bridge()
1159 return (bridge_rollback_if_status(ctx, val, sub)); in op_begemot_base_bridge()
1162 return (bridge_commit_if_status(val, sub)); in op_begemot_base_bridge()
1167 switch (val->var.subs[sub - 1]) { in op_begemot_base_bridge()
1192 uint sub, uint iidx __unused, enum snmp_op op) in op_begemot_stp() argument
1201 if ((bif = bridge_if_index_get(&val->var, sub)) == NULL) in op_begemot_stp()
1206 if ((bif = bridge_if_index_getnext(&val->var, sub)) == NULL) in op_begemot_stp()
1208 bridge_if_index_append(&val->var, sub, bif); in op_begemot_stp()
1212 if ((bif = bridge_if_index_get(&val->var, sub)) == NULL) in op_begemot_stp()
1215 switch (val->var.subs[sub - 1]) { in op_begemot_stp()
1292 if ((bif = bridge_if_index_get(&val->var, sub)) == NULL) in op_begemot_stp()
1295 switch (val->var.subs[sub - 1]) { in op_begemot_stp()
1328 switch (val->var.subs[sub - 1]) { in op_begemot_stp()
1399 uint sub, uint iidx __unused, enum snmp_op op) in op_begemot_tp() argument
1408 if ((bif = bridge_if_index_get(&val->var, sub)) == NULL) in op_begemot_tp()
1413 if ((bif = bridge_if_index_getnext(&val->var, sub)) == NULL) in op_begemot_tp()
1415 bridge_if_index_append(&val->var, sub, bif); in op_begemot_tp()
1419 if ((bif = bridge_if_index_get(&val->var, sub)) == NULL) in op_begemot_tp()
1422 switch (val->var.subs[sub - 1]) { in op_begemot_tp()
1445 if ((bif = bridge_if_index_get(&val->var, sub)) == NULL) in op_begemot_tp()
1448 switch (val->var.subs[sub - 1]) { in op_begemot_tp()
1465 switch (val->var.subs[sub - 1]) { in op_begemot_tp()