Lines Matching refs:sparms
148 struct mlxsw_sp_span_parms sparms) in mlxsw_sp1_span_entry_cpu_configure() argument
178 struct mlxsw_sp_span_parms sparms) in mlxsw_sp_span_entry_phys_configure() argument
180 struct mlxsw_sp_port *dest_port = sparms.dest_port; in mlxsw_sp_span_entry_phys_configure()
189 mlxsw_reg_mpat_session_id_set(mpat_pl, sparms.session_id); in mlxsw_sp_span_entry_phys_configure()
190 mlxsw_reg_mpat_pide_set(mpat_pl, sparms.policer_enable); in mlxsw_sp_span_entry_phys_configure()
191 mlxsw_reg_mpat_pid_set(mpat_pl, sparms.policer_id); in mlxsw_sp_span_entry_phys_configure()
479 struct mlxsw_sp_span_parms sparms) in mlxsw_sp_span_entry_gretap4_configure() argument
481 struct mlxsw_sp_port *dest_port = sparms.dest_port; in mlxsw_sp_span_entry_gretap4_configure()
490 mlxsw_reg_mpat_pide_set(mpat_pl, sparms.policer_enable); in mlxsw_sp_span_entry_gretap4_configure()
491 mlxsw_reg_mpat_pid_set(mpat_pl, sparms.policer_id); in mlxsw_sp_span_entry_gretap4_configure()
492 mlxsw_reg_mpat_eth_rspan_pack(mpat_pl, sparms.vid); in mlxsw_sp_span_entry_gretap4_configure()
495 sparms.dmac, !!sparms.vid); in mlxsw_sp_span_entry_gretap4_configure()
497 sparms.ttl, sparms.smac, in mlxsw_sp_span_entry_gretap4_configure()
498 be32_to_cpu(sparms.saddr.addr4), in mlxsw_sp_span_entry_gretap4_configure()
499 be32_to_cpu(sparms.daddr.addr4)); in mlxsw_sp_span_entry_gretap4_configure()
583 struct mlxsw_sp_span_parms sparms) in mlxsw_sp_span_entry_gretap6_configure() argument
585 struct mlxsw_sp_port *dest_port = sparms.dest_port; in mlxsw_sp_span_entry_gretap6_configure()
594 mlxsw_reg_mpat_pide_set(mpat_pl, sparms.policer_enable); in mlxsw_sp_span_entry_gretap6_configure()
595 mlxsw_reg_mpat_pid_set(mpat_pl, sparms.policer_id); in mlxsw_sp_span_entry_gretap6_configure()
596 mlxsw_reg_mpat_eth_rspan_pack(mpat_pl, sparms.vid); in mlxsw_sp_span_entry_gretap6_configure()
599 sparms.dmac, !!sparms.vid); in mlxsw_sp_span_entry_gretap6_configure()
600 mlxsw_reg_mpat_eth_rspan_l3_ipv6_pack(mpat_pl, sparms.ttl, sparms.smac, in mlxsw_sp_span_entry_gretap6_configure()
601 sparms.saddr.addr6, in mlxsw_sp_span_entry_gretap6_configure()
602 sparms.daddr.addr6); in mlxsw_sp_span_entry_gretap6_configure()
649 struct mlxsw_sp_span_parms sparms) in mlxsw_sp_span_entry_vlan_configure() argument
651 struct mlxsw_sp_port *dest_port = sparms.dest_port; in mlxsw_sp_span_entry_vlan_configure()
659 mlxsw_reg_mpat_pide_set(mpat_pl, sparms.policer_enable); in mlxsw_sp_span_entry_vlan_configure()
660 mlxsw_reg_mpat_pid_set(mpat_pl, sparms.policer_id); in mlxsw_sp_span_entry_vlan_configure()
661 mlxsw_reg_mpat_eth_rspan_pack(mpat_pl, sparms.vid); in mlxsw_sp_span_entry_vlan_configure()
709 struct mlxsw_sp_span_parms sparms) in mlxsw_sp2_span_entry_cpu_configure() argument
714 return mlxsw_sp_span_entry_phys_configure(span_entry, sparms); in mlxsw_sp2_span_entry_cpu_configure()
758 struct mlxsw_sp_span_parms sparms) in mlxsw_sp_span_entry_nop_configure() argument
777 struct mlxsw_sp_span_parms sparms) in mlxsw_sp_span_entry_configure() argument
781 if (!sparms.dest_port) in mlxsw_sp_span_entry_configure()
784 if (sparms.dest_port->mlxsw_sp != mlxsw_sp) { in mlxsw_sp_span_entry_configure()
787 sparms.dest_port = NULL; in mlxsw_sp_span_entry_configure()
791 err = span_entry->ops->configure(span_entry, sparms); in mlxsw_sp_span_entry_configure()
794 sparms.dest_port = NULL; in mlxsw_sp_span_entry_configure()
799 span_entry->parms = sparms; in mlxsw_sp_span_entry_configure()
853 struct mlxsw_sp_span_parms sparms) in mlxsw_sp_span_entry_create() argument
868 if (sparms.policer_enable) { in mlxsw_sp_span_entry_create()
872 sparms.policer_id); in mlxsw_sp_span_entry_create()
881 mlxsw_sp_span_entry_configure(mlxsw_sp, span_entry, sparms); in mlxsw_sp_span_entry_create()
934 const struct mlxsw_sp_span_parms *sparms) in mlxsw_sp_span_entry_find_by_parms() argument
942 curr->parms.policer_enable == sparms->policer_enable && in mlxsw_sp_span_entry_find_by_parms()
943 curr->parms.policer_id == sparms->policer_id && in mlxsw_sp_span_entry_find_by_parms()
944 curr->parms.session_id == sparms->session_id) in mlxsw_sp_span_entry_find_by_parms()
954 struct mlxsw_sp_span_parms sparms) in mlxsw_sp_span_entry_get() argument
959 &sparms); in mlxsw_sp_span_entry_get()
966 return mlxsw_sp_span_entry_create(mlxsw_sp, to_dev, ops, sparms); in mlxsw_sp_span_entry_get()
1040 struct mlxsw_sp_span_parms sparms = {NULL}; in mlxsw_sp_span_respin_work() local
1048 err = curr->ops->parms_set(mlxsw_sp, curr->to_dev, &sparms); in mlxsw_sp_span_respin_work()
1052 if (memcmp(&sparms, &curr->parms, sizeof(sparms))) { in mlxsw_sp_span_respin_work()
1054 mlxsw_sp_span_entry_configure(mlxsw_sp, curr, sparms); in mlxsw_sp_span_respin_work()
1073 struct mlxsw_sp_span_parms sparms; in mlxsw_sp_span_agent_get() local
1084 memset(&sparms, 0, sizeof(sparms)); in mlxsw_sp_span_agent_get()
1085 err = ops->parms_set(mlxsw_sp, to_dev, &sparms); in mlxsw_sp_span_agent_get()
1089 sparms.policer_id = parms->policer_id; in mlxsw_sp_span_agent_get()
1090 sparms.policer_enable = parms->policer_enable; in mlxsw_sp_span_agent_get()
1091 sparms.session_id = parms->session_id; in mlxsw_sp_span_agent_get()
1092 span_entry = mlxsw_sp_span_entry_get(mlxsw_sp, to_dev, ops, sparms); in mlxsw_sp_span_agent_get()