Lines Matching refs:felix

881 	struct felix *felix = ocelot_to_felix(ocelot);  in vsc9953_mdio_bus_alloc()  local
887 felix->pcs = devm_kcalloc(dev, felix->info->num_ports, in vsc9953_mdio_bus_alloc()
890 if (!felix->pcs) { in vsc9953_mdio_bus_alloc()
911 felix->imdio = bus; in vsc9953_mdio_bus_alloc()
913 for (port = 0; port < felix->info->num_ports; port++) { in vsc9953_mdio_bus_alloc()
918 if (dsa_is_unused_port(felix->ds, port)) in vsc9953_mdio_bus_alloc()
924 phylink_pcs = lynx_pcs_create_mdiodev(felix->imdio, addr); in vsc9953_mdio_bus_alloc()
928 felix->pcs[port] = phylink_pcs; in vsc9953_mdio_bus_alloc()
938 struct felix *felix = ocelot_to_felix(ocelot); in vsc9953_mdio_bus_free() local
942 struct phylink_pcs *phylink_pcs = felix->pcs[port]; in vsc9953_mdio_bus_free()
977 struct felix *felix; in seville_probe() local
980 felix = kzalloc(sizeof(struct felix), GFP_KERNEL); in seville_probe()
981 if (!felix) { in seville_probe()
987 platform_set_drvdata(pdev, felix); in seville_probe()
989 ocelot = &felix->ocelot; in seville_probe()
992 felix->info = &seville_info_vsc9953; in seville_probe()
1000 felix->switch_base = res->start; in seville_probe()
1010 ds->num_ports = felix->info->num_ports; in seville_probe()
1013 felix->ds = ds; in seville_probe()
1014 felix->tag_proto = DSA_TAG_PROTO_SEVILLE; in seville_probe()
1028 kfree(felix); in seville_probe()
1034 struct felix *felix = platform_get_drvdata(pdev); in seville_remove() local
1036 if (!felix) in seville_remove()
1039 dsa_unregister_switch(felix->ds); in seville_remove()
1041 kfree(felix->ds); in seville_remove()
1042 kfree(felix); in seville_remove()
1049 struct felix *felix = platform_get_drvdata(pdev); in seville_shutdown() local
1051 if (!felix) in seville_shutdown()
1054 dsa_switch_shutdown(felix->ds); in seville_shutdown()