Lines Matching refs:rifs
2188 if (!mlxsw_sp->router->rifs[rif]) { in mlxsw_sp_router_neigh_ent_ipv4_process()
2194 dev = mlxsw_sp->router->rifs[rif]->dev; in mlxsw_sp_router_neigh_ent_ipv4_process()
2217 if (!mlxsw_sp->router->rifs[rif]) { in mlxsw_sp_router_neigh_ent_ipv6_process()
2222 dev = mlxsw_sp->router->rifs[rif]->dev; in mlxsw_sp_router_neigh_ent_ipv6_process()
6296 if (mlxsw_sp->router->rifs[i] && in mlxsw_sp_rif_find_by_dev()
6297 mlxsw_sp->router->rifs[i]->dev == dev) in mlxsw_sp_rif_find_by_dev()
6298 return mlxsw_sp->router->rifs[i]; in mlxsw_sp_rif_find_by_dev()
6429 if (!mlxsw_sp->router->rifs[i]) { in mlxsw_sp_rif_index_alloc()
6464 return mlxsw_sp->router->rifs[rif_index]; in mlxsw_sp_rif_by_index()
6538 mlxsw_sp->router->rifs[rif_index] = rif; in mlxsw_sp_rif_create()
6576 mlxsw_sp->router->rifs[rif_index] = NULL; in mlxsw_sp_rif_create()
6604 mlxsw_sp->router->rifs[rif->rif_index] = NULL; in mlxsw_sp_rif_destroy()
7006 rif = mlxsw_sp->router->rifs[i]; in mlxsw_sp_router_port_check_rif_addr()
7726 mlxsw_sp->router->rifs[rif_index] = ul_rif; in mlxsw_sp_ul_rif_create()
7735 mlxsw_sp->router->rifs[rif_index] = NULL; in mlxsw_sp_ul_rif_create()
7745 mlxsw_sp->router->rifs[ul_rif->rif_index] = NULL; in mlxsw_sp_ul_rif_destroy()
7817 ul_rif = mlxsw_sp->router->rifs[ul_rif_index]; in mlxsw_sp_router_ul_rif_put()
7883 mlxsw_sp->router->rifs = kcalloc(max_rifs, in mlxsw_sp_rifs_init()
7886 if (!mlxsw_sp->router->rifs) in mlxsw_sp_rifs_init()
7897 WARN_ON_ONCE(mlxsw_sp->router->rifs[i]); in mlxsw_sp_rifs_fini()
7899 kfree(mlxsw_sp->router->rifs); in mlxsw_sp_rifs_fini()