Lines Matching refs:span_id
26 prestera_span_entry_create(struct prestera_port *port, u8 span_id) in prestera_span_entry_create() argument
36 entry->id = span_id; in prestera_span_entry_create()
49 prestera_span_entry_find_by_id(struct prestera_span *span, u8 span_id) in prestera_span_entry_find_by_id() argument
54 if (entry->id == span_id) in prestera_span_entry_find_by_id()
75 static int prestera_span_get(struct prestera_port *port, u8 *span_id) in prestera_span_get() argument
85 *span_id = entry->id; in prestera_span_get()
99 *span_id = new_span_id; in prestera_span_get()
103 static int prestera_span_put(struct prestera_switch *sw, u8 span_id) in prestera_span_put() argument
108 entry = prestera_span_entry_find_by_id(sw->span, span_id); in prestera_span_put()
115 err = prestera_hw_span_release(sw, span_id); in prestera_span_put()
128 u8 span_id; in prestera_span_rule_add() local
131 if (binding->span_id != PRESTERA_SPAN_INVALID_ID) in prestera_span_rule_add()
135 err = prestera_span_get(to_port, &span_id); in prestera_span_rule_add()
139 err = prestera_hw_span_bind(binding->port, span_id, ingress); in prestera_span_rule_add()
141 prestera_span_put(sw, span_id); in prestera_span_rule_add()
145 binding->span_id = span_id; in prestera_span_rule_add()
154 if (binding->span_id == PRESTERA_SPAN_INVALID_ID) in prestera_span_rule_del()
161 err = prestera_span_put(binding->port->sw, binding->span_id); in prestera_span_rule_del()
165 binding->span_id = PRESTERA_SPAN_INVALID_ID; in prestera_span_rule_del()