Lines Matching refs:ethsw

118 	struct ethsw_core *ethsw = filter_block->ethsw;
120 struct device *dev = ethsw->dev;
139 err = dpsw_acl_add_entry(ethsw->mc_io, 0, ethsw->dpsw_handle,
162 struct ethsw_core *ethsw = block->ethsw;
163 struct device *dev = ethsw->dev;
182 err = dpsw_acl_remove_entry(ethsw->mc_io, 0, ethsw->dpsw_handle,
362 static int dpaa2_switch_tc_parse_action_acl(struct ethsw_core *ethsw,
380 dpsw_act->if_id = dpaa2_switch_get_index(ethsw, cls_act->dev);
403 struct ethsw_core *ethsw = block->ethsw;
411 mirror_port_enabled = (ethsw->mirror_port != ethsw->sw_attr.num_ifs);
413 err = dpsw_set_reflection_if(ethsw->mc_io, 0,
414 ethsw->dpsw_handle, to);
417 ethsw->mirror_port = to;
423 for_each_set_bit(port, &block_ports, ethsw->sw_attr.num_ifs) {
424 port_priv = ethsw->ports[port];
437 err = dpsw_if_add_reflection(ethsw->mc_io, 0,
438 ethsw->dpsw_handle,
451 for_each_set_bit(port, &ports_added, ethsw->sw_attr.num_ifs) {
452 dpsw_if_remove_reflection(ethsw->mc_io, 0, ethsw->dpsw_handle,
457 ethsw->mirror_port = ethsw->sw_attr.num_ifs;
468 struct ethsw_core *ethsw = block->ethsw;
474 for_each_set_bit(port, &block_ports, ethsw->sw_attr.num_ifs)
475 dpsw_if_remove_reflection(ethsw->mc_io, 0, ethsw->dpsw_handle,
484 ethsw->mirror_port = ethsw->sw_attr.num_ifs;
496 struct ethsw_core *ethsw = block->ethsw;
514 err = dpaa2_switch_tc_parse_action_acl(ethsw, act,
582 struct ethsw_core *ethsw = block->ethsw;
590 mirror_port_enabled = (ethsw->mirror_port != ethsw->sw_attr.num_ifs);
599 if_id = dpaa2_switch_get_index(ethsw, cls_act->dev);
605 if (mirror_port_enabled && ethsw->mirror_port != if_id) {
695 struct ethsw_core *ethsw = block->ethsw;
710 err = dpaa2_switch_tc_parse_action_acl(ethsw, act,
736 struct ethsw_core *ethsw = block->ethsw;
743 mirror_port_enabled = (ethsw->mirror_port != ethsw->sw_attr.num_ifs);
752 if_id = dpaa2_switch_get_index(ethsw, cls_act->dev);
758 if (mirror_port_enabled && ethsw->mirror_port != if_id) {
816 struct ethsw_core *ethsw = port_priv->ethsw_data;
821 err = dpsw_if_add_reflection(ethsw->mc_io, 0,
822 ethsw->dpsw_handle,
832 dpsw_if_remove_reflection(ethsw->mc_io, 0,
833 ethsw->dpsw_handle,
842 struct ethsw_core *ethsw = port_priv->ethsw_data;
847 err = dpsw_if_remove_reflection(ethsw->mc_io, 0,
848 ethsw->dpsw_handle,
858 dpsw_if_add_reflection(ethsw->mc_io, 0, ethsw->dpsw_handle,