/kernel/linux/linux-6.6/drivers/net/dsa/ocelot/ |
H A D | ocelot_ext.c | 11 #include "felix.h" 71 struct felix *felix; in ocelot_ext_probe() local 74 felix = kzalloc(sizeof(*felix), GFP_KERNEL); in ocelot_ext_probe() 75 if (!felix) in ocelot_ext_probe() 78 dev_set_drvdata(dev, felix); in ocelot_ext_probe() 80 ocelot = &felix->ocelot; in ocelot_ext_probe() 85 felix->info = &vsc7512_info; in ocelot_ext_probe() 95 ds->num_ports = felix in ocelot_ext_probe() 120 struct felix *felix = dev_get_drvdata(&pdev->dev); ocelot_ext_remove() local 135 struct felix *felix = dev_get_drvdata(&pdev->dev); ocelot_ext_shutdown() local [all...] |
H A D | felix.c | 26 #include "felix.h" 309 struct felix *felix = ocelot_to_felix(ocelot); in felix_update_trapping_destinations() local 317 if (!felix->info->quirk_no_xtr_irq) in felix_update_trapping_destinations() 608 struct felix *felix = ocelot_to_felix(ocelot); in felix_migrate_host_flood() local 617 felix_set_host_flood(ds, mask, !!felix->host_flood_uc_mask, in felix_migrate_host_flood() 618 !!felix->host_flood_mc_mask, true); in felix_migrate_host_flood() 670 struct felix *felix in felix_change_tag_protocol() local 717 struct felix *felix = ocelot_to_felix(ocelot); felix_get_tag_protocol() local 726 struct felix *felix = ocelot_to_felix(ocelot); felix_port_set_host_flood() local 749 struct felix *felix = ocelot_to_felix(ocelot); felix_port_change_master() local 1058 struct felix *felix = ocelot_to_felix(ocelot); felix_phylink_mac_config() local 1069 struct felix *felix = ocelot_to_felix(ocelot); felix_phylink_mac_select_pcs() local 1083 struct felix *felix; felix_phylink_mac_link_down() local 1099 struct felix *felix = ocelot_to_felix(ocelot); felix_phylink_mac_link_up() local 1239 felix_validate_phy_mode(struct felix *felix, int port, phy_interface_t phy_mode) felix_validate_phy_mode() argument 1249 felix_parse_ports_node(struct felix *felix, struct device_node *ports_node, phy_interface_t *port_phy_modes) felix_parse_ports_node() argument 1297 felix_parse_dt(struct felix *felix, phy_interface_t *port_phy_modes) felix_parse_dt() argument 1320 felix_request_regmap_by_name(struct felix *felix, const char *resource_name) felix_request_regmap_by_name() argument 1348 felix_request_regmap(struct felix *felix, enum ocelot_target target) felix_request_regmap() argument 1362 felix_request_port_regmap(struct felix *felix, int port) felix_request_port_regmap() argument 1371 felix_init_structs(struct felix *felix, int num_phys_ports) felix_init_structs() argument 1549 struct felix *felix = ocelot_to_felix(ocelot); felix_setup() local 1619 struct felix *felix = ocelot_to_felix(ocelot); felix_teardown() local 1650 struct felix *felix = ocelot_to_felix(ocelot); felix_hwtstamp_set() local 1665 struct felix *felix = ocelot_to_felix(ocelot); felix_check_xtr_pkt() local 1808 struct felix *felix = ocelot_to_felix(ocelot); felix_cls_flower_add() local 1879 struct felix *felix = ocelot_to_felix(ocelot); felix_port_setup_tc() local 2173 struct felix *felix = ocelot_to_felix(ocelot); felix_port_to_netdev() local [all...] |
H A D | seville_vsc9953.c | 16 #include "felix.h" 881 struct felix *felix = ocelot_to_felix(ocelot); in vsc9953_mdio_bus_alloc() local 887 felix->pcs = devm_kcalloc(dev, felix->info->num_ports, in vsc9953_mdio_bus_alloc() 890 if (!felix->pcs) { in vsc9953_mdio_bus_alloc() 911 felix->imdio = bus; in vsc9953_mdio_bus_alloc() 913 for (port = 0; port < felix->info->num_ports; port++) { in vsc9953_mdio_bus_alloc() 918 if (dsa_is_unused_port(felix->ds, port)) in vsc9953_mdio_bus_alloc() 924 phylink_pcs = lynx_pcs_create_mdiodev(felix in vsc9953_mdio_bus_alloc() 938 struct felix *felix = ocelot_to_felix(ocelot); vsc9953_mdio_bus_free() local 977 struct felix *felix; seville_probe() local 1034 struct felix *felix = platform_get_drvdata(pdev); seville_remove() local 1049 struct felix *felix = platform_get_drvdata(pdev); seville_shutdown() local [all...] |
H A D | felix_vsc9959.c | 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 in vsc9959_mdio_bus_alloc() 1046 struct felix *felix = ocelot_to_felix(ocelot); vsc9959_mdio_bus_free() local 2530 struct felix *felix = ocelot_to_felix(ocelot); vsc9959_cut_through_fwd() local 2665 struct felix *felix; felix_pci_probe() local 2742 struct felix *felix = pci_get_drvdata(pdev); felix_pci_remove() local 2757 struct felix *felix = pci_get_drvdata(pdev); felix_pci_shutdown() local [all...] |
H A D | felix.h | 7 #define ocelot_to_felix(o) container_of((o), struct felix, ocelot) 88 struct felix { struct
|
H A D | Makefile | 7 mscc_felix_dsa_lib-objs := felix.o
|
/kernel/linux/linux-5.10/drivers/net/dsa/ocelot/ |
H A D | felix.c | 25 #include "felix.h" 193 struct felix *felix = ocelot_to_felix(ocelot); in felix_phylink_validate() local 195 if (felix->info->phylink_validate) in felix_phylink_validate() 196 felix->info->phylink_validate(ocelot, port, supported, state); in felix_phylink_validate() 204 struct felix *felix = ocelot_to_felix(ocelot); in felix_phylink_mac_config() local 207 if (felix->pcs[port]) in felix_phylink_mac_config() 208 phylink_set_pcs(dp->pl, &felix->pcs[port]->pcs); in felix_phylink_mac_config() 246 struct felix *feli in felix_phylink_mac_link_up() local 368 felix_parse_ports_node(struct felix *felix, struct device_node *ports_node, phy_interface_t *port_phy_modes) felix_parse_ports_node() argument 413 felix_parse_dt(struct felix *felix, phy_interface_t *port_phy_modes) felix_parse_dt() argument 434 felix_init_structs(struct felix *felix, int num_phys_ports) felix_init_structs() argument 585 struct felix *felix = ocelot_to_felix(ocelot); felix_setup() local 635 struct felix *felix = ocelot_to_felix(ocelot); felix_teardown() local 775 struct felix *felix = ocelot_to_felix(ocelot); felix_port_setup_tc() local 827 struct felix *felix = ocelot_to_felix(ocelot); felix_port_to_netdev() local [all...] |
H A D | seville_vsc9953.c | 13 #include "felix.h" 1069 struct felix *felix = ocelot_to_felix(ocelot); in vsc9953_mdio_bus_alloc() local 1075 felix->pcs = devm_kcalloc(dev, felix->info->num_ports, in vsc9953_mdio_bus_alloc() 1078 if (!felix->pcs) { in vsc9953_mdio_bus_alloc() 1101 felix->imdio = bus; in vsc9953_mdio_bus_alloc() 1103 for (port = 0; port < felix->info->num_ports; port++) { in vsc9953_mdio_bus_alloc() 1109 if (dsa_is_unused_port(felix->ds, port)) in vsc9953_mdio_bus_alloc() 1115 pcs = mdio_device_create(felix in vsc9953_mdio_bus_alloc() 1135 struct felix *felix = ocelot_to_felix(ocelot); vsc9953_mdio_bus_free() local 1199 struct felix *felix; seville_probe() local 1255 struct felix *felix; seville_remove() local [all...] |
H A D | felix_vsc9959.c | 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 in vsc9959_mdio_bus_alloc() 1110 struct felix *felix = ocelot_to_felix(ocelot); vsc9959_mdio_bus_free() local 1398 struct felix *felix; felix_pci_probe() local 1488 struct felix *felix; felix_pci_remove() local [all...] |
H A D | Makefile | 6 felix.o \ 10 felix.o \
|
H A D | felix.h | 7 #define ocelot_to_felix(o) container_of((o), struct felix, ocelot) 45 struct felix { struct
|