Lines Matching refs:felix
1069 struct felix *felix = ocelot_to_felix(ocelot); in vsc9953_mdio_bus_alloc() local
1075 felix->pcs = devm_kcalloc(dev, felix->info->num_ports, in vsc9953_mdio_bus_alloc()
1078 if (!felix->pcs) { in vsc9953_mdio_bus_alloc()
1101 felix->imdio = bus; in vsc9953_mdio_bus_alloc()
1103 for (port = 0; port < felix->info->num_ports; port++) { in vsc9953_mdio_bus_alloc()
1109 if (dsa_is_unused_port(felix->ds, port)) in vsc9953_mdio_bus_alloc()
1115 pcs = mdio_device_create(felix->imdio, addr); in vsc9953_mdio_bus_alloc()
1125 felix->pcs[port] = lynx; in vsc9953_mdio_bus_alloc()
1135 struct felix *felix = ocelot_to_felix(ocelot); in vsc9953_mdio_bus_free() local
1139 struct lynx_pcs *pcs = felix->pcs[port]; in vsc9953_mdio_bus_free()
1147 mdiobus_unregister(felix->imdio); in vsc9953_mdio_bus_free()
1199 struct felix *felix; in seville_probe() local
1202 felix = kzalloc(sizeof(struct felix), GFP_KERNEL); in seville_probe()
1203 if (!felix) { in seville_probe()
1209 platform_set_drvdata(pdev, felix); in seville_probe()
1211 ocelot = &felix->ocelot; in seville_probe()
1214 felix->info = &seville_info_vsc9953; in seville_probe()
1222 felix->switch_base = res->start; in seville_probe()
1232 ds->num_ports = felix->info->num_ports; in seville_probe()
1235 felix->ds = ds; in seville_probe()
1249 kfree(felix); in seville_probe()
1255 struct felix *felix; in seville_remove() local
1257 felix = platform_get_drvdata(pdev); in seville_remove()
1259 dsa_unregister_switch(felix->ds); in seville_remove()
1261 kfree(felix->ds); in seville_remove()
1262 kfree(felix); in seville_remove()