Lines Matching refs:felix

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()
2538 struct felix *felix = ocelot_to_felix(ocelot); in vsc9959_cut_through_fwd() local
2539 struct dsa_switch *ds = felix->ds; in vsc9959_cut_through_fwd()
2673 struct felix *felix; in felix_pci_probe() local
2687 felix = kzalloc(sizeof(struct felix), GFP_KERNEL); in felix_pci_probe()
2688 if (!felix) { in felix_pci_probe()
2694 pci_set_drvdata(pdev, felix); in felix_pci_probe()
2695 ocelot = &felix->ocelot; in felix_pci_probe()
2698 felix->info = &felix_info_vsc9959; in felix_pci_probe()
2699 felix->switch_base = pci_resource_start(pdev, VSC9959_SWITCH_PCI_BAR); in felix_pci_probe()
2722 ds->num_ports = felix->info->num_ports; in felix_pci_probe()
2723 ds->num_tx_queues = felix->info->num_tx_queues; in felix_pci_probe()
2726 felix->ds = ds; in felix_pci_probe()
2727 felix->tag_proto = DSA_TAG_PROTO_OCELOT; in felix_pci_probe()
2741 kfree(felix); in felix_pci_probe()
2750 struct felix *felix = pci_get_drvdata(pdev); in felix_pci_remove() local
2752 if (!felix) in felix_pci_remove()
2755 dsa_unregister_switch(felix->ds); in felix_pci_remove()
2757 kfree(felix->ds); in felix_pci_remove()
2758 kfree(felix); in felix_pci_remove()
2765 struct felix *felix = pci_get_drvdata(pdev); in felix_pci_shutdown() local
2767 if (!felix) in felix_pci_shutdown()
2770 dsa_switch_shutdown(felix->ds); in felix_pci_shutdown()