Lines Matching refs:sparms

64 				   struct mlxsw_sp_span_parms sparms)  in mlxsw_sp_span_entry_phys_configure()  argument
66 struct mlxsw_sp_port *dest_port = sparms.dest_port; in mlxsw_sp_span_entry_phys_configure()
359 struct mlxsw_sp_span_parms sparms) in mlxsw_sp_span_entry_gretap4_configure() argument
361 struct mlxsw_sp_port *dest_port = sparms.dest_port; in mlxsw_sp_span_entry_gretap4_configure()
370 mlxsw_reg_mpat_eth_rspan_pack(mpat_pl, sparms.vid); in mlxsw_sp_span_entry_gretap4_configure()
373 sparms.dmac, !!sparms.vid); in mlxsw_sp_span_entry_gretap4_configure()
375 sparms.ttl, sparms.smac, in mlxsw_sp_span_entry_gretap4_configure()
376 be32_to_cpu(sparms.saddr.addr4), in mlxsw_sp_span_entry_gretap4_configure()
377 be32_to_cpu(sparms.daddr.addr4)); in mlxsw_sp_span_entry_gretap4_configure()
460 struct mlxsw_sp_span_parms sparms) in mlxsw_sp_span_entry_gretap6_configure() argument
462 struct mlxsw_sp_port *dest_port = sparms.dest_port; in mlxsw_sp_span_entry_gretap6_configure()
471 mlxsw_reg_mpat_eth_rspan_pack(mpat_pl, sparms.vid); in mlxsw_sp_span_entry_gretap6_configure()
474 sparms.dmac, !!sparms.vid); in mlxsw_sp_span_entry_gretap6_configure()
475 mlxsw_reg_mpat_eth_rspan_l3_ipv6_pack(mpat_pl, sparms.ttl, sparms.smac, in mlxsw_sp_span_entry_gretap6_configure()
476 sparms.saddr.addr6, in mlxsw_sp_span_entry_gretap6_configure()
477 sparms.daddr.addr6); in mlxsw_sp_span_entry_gretap6_configure()
523 struct mlxsw_sp_span_parms sparms) in mlxsw_sp_span_entry_vlan_configure() argument
525 struct mlxsw_sp_port *dest_port = sparms.dest_port; in mlxsw_sp_span_entry_vlan_configure()
533 mlxsw_reg_mpat_eth_rspan_pack(mpat_pl, sparms.vid); in mlxsw_sp_span_entry_vlan_configure()
574 struct mlxsw_sp_span_parms sparms) in mlxsw_sp_span_entry_nop_configure() argument
593 struct mlxsw_sp_span_parms sparms) in mlxsw_sp_span_entry_configure() argument
595 if (sparms.dest_port) { in mlxsw_sp_span_entry_configure()
596 if (sparms.dest_port->mlxsw_sp != mlxsw_sp) { in mlxsw_sp_span_entry_configure()
598 sparms.dest_port->dev->name); in mlxsw_sp_span_entry_configure()
599 sparms.dest_port = NULL; in mlxsw_sp_span_entry_configure()
600 } else if (span_entry->ops->configure(span_entry, sparms)) { in mlxsw_sp_span_entry_configure()
602 sparms.dest_port->dev->name); in mlxsw_sp_span_entry_configure()
603 sparms.dest_port = NULL; in mlxsw_sp_span_entry_configure()
607 span_entry->parms = sparms; in mlxsw_sp_span_entry_configure()
621 struct mlxsw_sp_span_parms sparms) in mlxsw_sp_span_entry_create() argument
639 mlxsw_sp_span_entry_configure(mlxsw_sp, span_entry, sparms); in mlxsw_sp_span_entry_create()
689 struct mlxsw_sp_span_parms sparms) in mlxsw_sp_span_entry_get() argument
700 return mlxsw_sp_span_entry_create(mlxsw_sp, to_dev, ops, sparms); in mlxsw_sp_span_entry_get()
910 struct mlxsw_sp_span_parms sparms = {NULL}; in mlxsw_sp_span_mirror_add() local
920 err = ops->parms(to_dev, &sparms); in mlxsw_sp_span_mirror_add()
924 span_entry = mlxsw_sp_span_entry_get(mlxsw_sp, to_dev, ops, sparms); in mlxsw_sp_span_mirror_add()
967 struct mlxsw_sp_span_parms sparms = {NULL}; in mlxsw_sp_span_respin() local
972 err = curr->ops->parms(curr->to_dev, &sparms); in mlxsw_sp_span_respin()
976 if (memcmp(&sparms, &curr->parms, sizeof(sparms))) { in mlxsw_sp_span_respin()
978 mlxsw_sp_span_entry_configure(mlxsw_sp, curr, sparms); in mlxsw_sp_span_respin()