• Home
  • Raw
  • Download

Lines Matching full:felix

17 #include "felix.h"
872 .name = "felix ptp",
1019 struct felix *felix = ocelot_to_felix(ocelot); in vsc9959_mdio_bus_alloc() local
1029 felix->pcs = devm_kcalloc(dev, felix->info->num_ports, in vsc9959_mdio_bus_alloc()
1032 if (!felix->pcs) { in vsc9959_mdio_bus_alloc()
1037 memcpy(&res, felix->info->imdio_res, sizeof(res)); in vsc9959_mdio_bus_alloc()
1039 res.start += felix->imdio_base; in vsc9959_mdio_bus_alloc()
1040 res.end += felix->imdio_base; in vsc9959_mdio_bus_alloc()
1077 felix->imdio = bus; in vsc9959_mdio_bus_alloc()
1079 for (port = 0; port < felix->info->num_ports; port++) { in vsc9959_mdio_bus_alloc()
1084 if (dsa_is_unused_port(felix->ds, port)) in vsc9959_mdio_bus_alloc()
1090 pcs = mdio_device_create(felix->imdio, port); in vsc9959_mdio_bus_alloc()
1100 felix->pcs[port] = lynx; in vsc9959_mdio_bus_alloc()
1110 struct felix *felix = ocelot_to_felix(ocelot); in vsc9959_mdio_bus_free() local
1114 struct lynx_pcs *pcs = felix->pcs[port]; in vsc9959_mdio_bus_free()
1122 mdiobus_unregister(felix->imdio); in vsc9959_mdio_bus_free()
1398 struct felix *felix; in felix_pci_probe() local
1423 felix = kzalloc(sizeof(struct felix), GFP_KERNEL); in felix_pci_probe()
1424 if (!felix) { in felix_pci_probe()
1430 pci_set_drvdata(pdev, felix); in felix_pci_probe()
1431 ocelot = &felix->ocelot; in felix_pci_probe()
1434 felix->info = &felix_info_vsc9959; in felix_pci_probe()
1435 felix->switch_base = pci_resource_start(pdev, in felix_pci_probe()
1436 felix->info->switch_pci_bar); in felix_pci_probe()
1437 felix->imdio_base = pci_resource_start(pdev, in felix_pci_probe()
1438 felix->info->imdio_pci_bar); in felix_pci_probe()
1444 "felix-intb", ocelot); in felix_pci_probe()
1460 ds->num_ports = felix->info->num_ports; in felix_pci_probe()
1461 ds->num_tx_queues = felix->info->num_tx_queues; in felix_pci_probe()
1464 felix->ds = ds; in felix_pci_probe()
1479 kfree(felix); in felix_pci_probe()
1488 struct felix *felix; in felix_pci_remove() local
1490 felix = pci_get_drvdata(pdev); in felix_pci_remove()
1492 dsa_unregister_switch(felix->ds); in felix_pci_remove()
1494 kfree(felix->ds); in felix_pci_remove()
1495 kfree(felix); in felix_pci_remove()
1517 MODULE_DESCRIPTION("Felix Switch driver");