Lines Matching refs:felix
16 #include "felix.h"
881 struct felix *felix = ocelot_to_felix(ocelot);
887 felix->pcs = devm_kcalloc(dev, felix->info->num_ports,
890 if (!felix->pcs) {
911 felix->imdio = bus;
913 for (port = 0; port < felix->info->num_ports; port++) {
918 if (dsa_is_unused_port(felix->ds, port))
924 phylink_pcs = lynx_pcs_create_mdiodev(felix->imdio, addr);
928 felix->pcs[port] = phylink_pcs;
938 struct felix *felix = ocelot_to_felix(ocelot);
942 struct phylink_pcs *phylink_pcs = felix->pcs[port];
977 struct felix *felix;
980 felix = kzalloc(sizeof(struct felix), GFP_KERNEL);
981 if (!felix) {
987 platform_set_drvdata(pdev, felix);
989 ocelot = &felix->ocelot;
992 felix->info = &seville_info_vsc9953;
1000 felix->switch_base = res->start;
1010 ds->num_ports = felix->info->num_ports;
1013 felix->ds = ds;
1014 felix->tag_proto = DSA_TAG_PROTO_SEVILLE;
1028 kfree(felix);
1034 struct felix *felix = platform_get_drvdata(pdev);
1036 if (!felix)
1039 dsa_unregister_switch(felix->ds);
1041 kfree(felix->ds);
1042 kfree(felix);
1047 struct felix *felix = platform_get_drvdata(pdev);
1049 if (!felix)
1052 dsa_switch_shutdown(felix->ds);