Lines Matching refs:inspected_port
797 struct mlxsw_sp_span_inspected_port *inspected_port; in mlxsw_sp_span_inspected_port_add() local
836 inspected_port = kzalloc(sizeof(*inspected_port), GFP_KERNEL); in mlxsw_sp_span_inspected_port_add()
837 if (!inspected_port) { in mlxsw_sp_span_inspected_port_add()
841 inspected_port->local_port = port->local_port; in mlxsw_sp_span_inspected_port_add()
842 inspected_port->type = type; in mlxsw_sp_span_inspected_port_add()
843 inspected_port->bound = bind; in mlxsw_sp_span_inspected_port_add()
844 list_add_tail(&inspected_port->list, &span_entry->bound_ports_list); in mlxsw_sp_span_inspected_port_add()
866 struct mlxsw_sp_span_inspected_port *inspected_port; in mlxsw_sp_span_inspected_port_del() local
870 inspected_port = mlxsw_sp_span_entry_bound_port_find(span_entry, type, in mlxsw_sp_span_inspected_port_del()
872 if (!inspected_port) in mlxsw_sp_span_inspected_port_del()
886 list_del(&inspected_port->list); in mlxsw_sp_span_inspected_port_del()
887 kfree(inspected_port); in mlxsw_sp_span_inspected_port_del()