Lines Matching refs:ocelot
788 static int vsc9953_gcb_soft_rst_status(struct ocelot *ocelot) in vsc9953_gcb_soft_rst_status() argument
792 ocelot_field_read(ocelot, GCB_SOFT_RST_SWC_RST, &val); in vsc9953_gcb_soft_rst_status()
797 static int vsc9953_sys_ram_init_status(struct ocelot *ocelot) in vsc9953_sys_ram_init_status() argument
801 ocelot_field_read(ocelot, SYS_RESET_CFG_MEM_INIT, &val); in vsc9953_sys_ram_init_status()
811 static int vsc9953_reset(struct ocelot *ocelot) in vsc9953_reset() argument
816 ocelot_field_write(ocelot, GCB_SOFT_RST_SWC_RST, 1); in vsc9953_reset()
818 err = readx_poll_timeout(vsc9953_gcb_soft_rst_status, ocelot, val, !val, in vsc9953_reset()
821 dev_err(ocelot->dev, "timeout: switch core reset\n"); in vsc9953_reset()
826 ocelot_field_write(ocelot, SYS_RESET_CFG_MEM_ENA, 1); in vsc9953_reset()
827 ocelot_field_write(ocelot, SYS_RESET_CFG_MEM_INIT, 1); in vsc9953_reset()
829 err = readx_poll_timeout(vsc9953_sys_ram_init_status, ocelot, val, !val, in vsc9953_reset()
833 dev_err(ocelot->dev, "timeout: switch sram init\n"); in vsc9953_reset()
838 ocelot_field_write(ocelot, SYS_RESET_CFG_CORE_ENA, 1); in vsc9953_reset()
843 static void vsc9953_phylink_validate(struct ocelot *ocelot, int port, in vsc9953_phylink_validate() argument
908 static int vsc9953_mdio_bus_alloc(struct ocelot *ocelot) in vsc9953_mdio_bus_alloc() argument
910 struct felix *felix = ocelot_to_felix(ocelot); in vsc9953_mdio_bus_alloc()
911 struct device *dev = ocelot->dev; in vsc9953_mdio_bus_alloc()
925 ocelot->targets[GCB], in vsc9953_mdio_bus_alloc()
926 ocelot->map[GCB][GCB_MIIM_MII_STATUS & REG_MASK]); in vsc9953_mdio_bus_alloc()
943 struct ocelot_port *ocelot_port = ocelot->ports[port]; in vsc9953_mdio_bus_alloc()
972 static void vsc9953_mdio_bus_free(struct ocelot *ocelot) in vsc9953_mdio_bus_free() argument
974 struct felix *felix = ocelot_to_felix(ocelot); in vsc9953_mdio_bus_free()
977 for (port = 0; port < ocelot->num_phys_ports; port++) { in vsc9953_mdio_bus_free()
1017 struct ocelot *ocelot; in seville_probe() local
1031 ocelot = &felix->ocelot; in seville_probe()
1032 ocelot->dev = &pdev->dev; in seville_probe()
1033 ocelot->num_flooding_pgids = 1; in seville_probe()
1054 ds->priv = ocelot; in seville_probe()