Lines Matching refs:sw
21 struct prestera_switch *sw; member
37 list_add_tail(&entry->list, &port->sw->span->entries); in prestera_span_entry_create()
78 struct prestera_switch *sw = port->sw; in prestera_span_get() local
82 entry = prestera_span_entry_find_by_port(sw->span, port); in prestera_span_get()
95 prestera_hw_span_release(sw, 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()
127 struct prestera_switch *sw = binding->port->sw; in prestera_span_rule_add() local
141 prestera_span_put(sw, span_id); in prestera_span_rule_add()
161 err = prestera_span_put(binding->port->sw, binding->span_id); in prestera_span_rule_del()
169 int prestera_span_init(struct prestera_switch *sw) in prestera_span_init() argument
179 sw->span = span; in prestera_span_init()
180 span->sw = sw; in prestera_span_init()
185 void prestera_span_fini(struct prestera_switch *sw) in prestera_span_fini() argument
187 struct prestera_span *span = sw->span; in prestera_span_fini()