Lines Matching full:felix

22 #include "felix.h"
860 .name = "felix ptp",
959 struct felix *felix = ocelot_to_felix(ocelot); in vsc9959_mdio_bus_alloc() local
970 felix->pcs = devm_kcalloc(dev, felix->info->num_ports, in vsc9959_mdio_bus_alloc()
973 if (!felix->pcs) { in vsc9959_mdio_bus_alloc()
1020 felix->imdio = bus; in vsc9959_mdio_bus_alloc()
1022 for (port = 0; port < felix->info->num_ports; port++) { in vsc9959_mdio_bus_alloc()
1026 if (dsa_is_unused_port(felix->ds, port)) in vsc9959_mdio_bus_alloc()
1032 phylink_pcs = lynx_pcs_create_mdiodev(felix->imdio, port); in vsc9959_mdio_bus_alloc()
1036 felix->pcs[port] = phylink_pcs; in vsc9959_mdio_bus_alloc()
1046 struct felix *felix = ocelot_to_felix(ocelot); in vsc9959_mdio_bus_free() local
1050 struct phylink_pcs *phylink_pcs = felix->pcs[port]; in vsc9959_mdio_bus_free()
1055 mdiobus_unregister(felix->imdio); in vsc9959_mdio_bus_free()
1056 mdiobus_free(felix->imdio); in vsc9959_mdio_bus_free()
2522 * The Felix switch implementation of cut-through forwarding does not check in
2530 struct felix *felix = ocelot_to_felix(ocelot); in vsc9959_cut_through_fwd() local
2531 struct dsa_switch *ds = felix->ds; in vsc9959_cut_through_fwd()
2665 struct felix *felix; in felix_pci_probe() local
2679 felix = kzalloc(sizeof(struct felix), GFP_KERNEL); in felix_pci_probe()
2680 if (!felix) { in felix_pci_probe()
2686 pci_set_drvdata(pdev, felix); in felix_pci_probe()
2687 ocelot = &felix->ocelot; in felix_pci_probe()
2690 felix->info = &felix_info_vsc9959; in felix_pci_probe()
2691 felix->switch_base = pci_resource_start(pdev, VSC9959_SWITCH_PCI_BAR); in felix_pci_probe()
2697 "felix-intb", ocelot); in felix_pci_probe()
2714 ds->num_ports = felix->info->num_ports; in felix_pci_probe()
2715 ds->num_tx_queues = felix->info->num_tx_queues; in felix_pci_probe()
2718 felix->ds = ds; in felix_pci_probe()
2719 felix->tag_proto = DSA_TAG_PROTO_OCELOT; in felix_pci_probe()
2733 kfree(felix); in felix_pci_probe()
2742 struct felix *felix = pci_get_drvdata(pdev); in felix_pci_remove() local
2744 if (!felix) in felix_pci_remove()
2747 dsa_unregister_switch(felix->ds); in felix_pci_remove()
2749 kfree(felix->ds); in felix_pci_remove()
2750 kfree(felix); in felix_pci_remove()
2757 struct felix *felix = pci_get_drvdata(pdev); in felix_pci_shutdown() local
2759 if (!felix) in felix_pci_shutdown()
2762 dsa_switch_shutdown(felix->ds); in felix_pci_shutdown()
2785 MODULE_DESCRIPTION("Felix Switch driver");