Lines Matching refs:felix
22 #include "felix.h"
860 .name = "felix ptp",
959 struct felix *felix = ocelot_to_felix(ocelot);
970 felix->pcs = devm_kcalloc(dev, felix->info->num_ports,
973 if (!felix->pcs) {
1020 felix->imdio = bus;
1022 for (port = 0; port < felix->info->num_ports; port++) {
1026 if (dsa_is_unused_port(felix->ds, port))
1032 phylink_pcs = lynx_pcs_create_mdiodev(felix->imdio, port);
1036 felix->pcs[port] = phylink_pcs;
1046 struct felix *felix = ocelot_to_felix(ocelot);
1050 struct phylink_pcs *phylink_pcs = felix->pcs[port];
1055 mdiobus_unregister(felix->imdio);
1056 mdiobus_free(felix->imdio);
2530 struct felix *felix = ocelot_to_felix(ocelot);
2531 struct dsa_switch *ds = felix->ds;
2665 struct felix *felix;
2679 felix = kzalloc(sizeof(struct felix), GFP_KERNEL);
2680 if (!felix) {
2686 pci_set_drvdata(pdev, felix);
2687 ocelot = &felix->ocelot;
2690 felix->info = &felix_info_vsc9959;
2691 felix->switch_base = pci_resource_start(pdev, VSC9959_SWITCH_PCI_BAR);
2697 "felix-intb", ocelot);
2714 ds->num_ports = felix->info->num_ports;
2715 ds->num_tx_queues = felix->info->num_tx_queues;
2718 felix->ds = ds;
2719 felix->tag_proto = DSA_TAG_PROTO_OCELOT;
2733 kfree(felix);
2742 struct felix *felix = pci_get_drvdata(pdev);
2744 if (!felix)
2747 dsa_unregister_switch(felix->ds);
2749 kfree(felix->ds);
2750 kfree(felix);
2757 struct felix *felix = pci_get_drvdata(pdev);
2759 if (!felix)
2762 dsa_switch_shutdown(felix->ds);