Lines Matching refs:rif
156 struct mlxsw_sp_rif *rif, in mlxsw_sp_erif_entry_get() argument
166 *rif_value = mlxsw_sp_rif_index(rif); in mlxsw_sp_erif_entry_get()
167 entry->match_values->mapping_value = mlxsw_sp_rif_dev_ifindex(rif); in mlxsw_sp_erif_entry_get()
176 entry->index = mlxsw_sp_rif_index(rif); in mlxsw_sp_erif_entry_get()
181 err = mlxsw_sp_rif_counter_value_get(mlxsw_sp, rif, in mlxsw_sp_erif_entry_get()
222 struct mlxsw_sp_rif *rif = mlxsw_sp_rif_by_index(mlxsw_sp, i); in mlxsw_sp_dpipe_table_erif_entries_dump() local
224 if (!rif || !mlxsw_sp_rif_dev(rif)) in mlxsw_sp_dpipe_table_erif_entries_dump()
226 err = mlxsw_sp_erif_entry_get(mlxsw_sp, &entry, rif, in mlxsw_sp_dpipe_table_erif_entries_dump()
264 struct mlxsw_sp_rif *rif = mlxsw_sp_rif_by_index(mlxsw_sp, i); in mlxsw_sp_dpipe_table_erif_counters_update() local
266 if (!rif) in mlxsw_sp_dpipe_table_erif_counters_update()
269 mlxsw_sp_rif_counter_alloc(mlxsw_sp, rif, in mlxsw_sp_dpipe_table_erif_counters_update()
272 mlxsw_sp_rif_counter_free(mlxsw_sp, rif, in mlxsw_sp_dpipe_table_erif_counters_update()
457 struct mlxsw_sp_rif *rif, in __mlxsw_sp_dpipe_table_host_entry_fill() argument
468 *rif_value = mlxsw_sp_rif_index(rif); in __mlxsw_sp_dpipe_table_host_entry_fill()
469 value->mapping_value = mlxsw_sp_rif_dev_ifindex(rif); in __mlxsw_sp_dpipe_table_host_entry_fill()
485 struct mlxsw_sp_rif *rif) in mlxsw_sp_dpipe_table_host4_entry_fill() argument
492 __mlxsw_sp_dpipe_table_host_entry_fill(entry, rif, ha, &dip); in mlxsw_sp_dpipe_table_host4_entry_fill()
498 struct mlxsw_sp_rif *rif) in mlxsw_sp_dpipe_table_host6_entry_fill() argument
506 __mlxsw_sp_dpipe_table_host_entry_fill(entry, rif, ha, dip); in mlxsw_sp_dpipe_table_host6_entry_fill()
513 struct mlxsw_sp_rif *rif, in mlxsw_sp_dpipe_table_host_entry_fill() argument
520 mlxsw_sp_dpipe_table_host4_entry_fill(entry, neigh_entry, rif); in mlxsw_sp_dpipe_table_host_entry_fill()
523 mlxsw_sp_dpipe_table_host6_entry_fill(entry, neigh_entry, rif); in mlxsw_sp_dpipe_table_host_entry_fill()
560 struct mlxsw_sp_rif *rif = mlxsw_sp_rif_by_index(mlxsw_sp, i); in mlxsw_sp_dpipe_table_host_entries_get() local
563 if (!rif) in mlxsw_sp_dpipe_table_host_entries_get()
567 mlxsw_sp_rif_neigh_for_each(neigh_entry, rif) { in mlxsw_sp_dpipe_table_host_entries_get()
581 neigh_entry, rif, in mlxsw_sp_dpipe_table_host_entries_get()
668 struct mlxsw_sp_rif *rif = mlxsw_sp_rif_by_index(mlxsw_sp, i); in mlxsw_sp_dpipe_table_host_counters_update() local
671 if (!rif) in mlxsw_sp_dpipe_table_host_counters_update()
673 mlxsw_sp_rif_neigh_for_each(neigh_entry, rif) { in mlxsw_sp_dpipe_table_host_counters_update()
707 struct mlxsw_sp_rif *rif = mlxsw_sp_rif_by_index(mlxsw_sp, i); in mlxsw_sp_dpipe_table_host_size_get() local
710 if (!rif) in mlxsw_sp_dpipe_table_host_size_get()
712 mlxsw_sp_rif_neigh_for_each(neigh_entry, rif) { in mlxsw_sp_dpipe_table_host_size_get()
1036 struct mlxsw_sp_rif *rif) in __mlxsw_sp_dpipe_table_adj_entry_fill() argument
1059 *p_rif_value = mlxsw_sp_rif_index(rif); in __mlxsw_sp_dpipe_table_adj_entry_fill()
1060 value->mapping_value = mlxsw_sp_rif_dev_ifindex(rif); in __mlxsw_sp_dpipe_table_adj_entry_fill()
1068 struct mlxsw_sp_rif *rif = mlxsw_sp_nexthop_rif(nh); in mlxsw_sp_dpipe_table_adj_entry_fill() local
1077 adj_hash_index, ha, rif); in mlxsw_sp_dpipe_table_adj_entry_fill()