Lines Matching refs:ocelot

785 static int vsc9953_gcb_soft_rst_status(struct ocelot *ocelot)  in vsc9953_gcb_soft_rst_status()  argument
789 ocelot_field_read(ocelot, GCB_SOFT_RST_SWC_RST, &val); in vsc9953_gcb_soft_rst_status()
794 static int vsc9953_sys_ram_init_status(struct ocelot *ocelot) in vsc9953_sys_ram_init_status() argument
798 ocelot_field_read(ocelot, SYS_RESET_CFG_MEM_INIT, &val); in vsc9953_sys_ram_init_status()
808 static int vsc9953_reset(struct ocelot *ocelot) in vsc9953_reset() argument
813 ocelot_field_write(ocelot, GCB_SOFT_RST_SWC_RST, 1); in vsc9953_reset()
815 err = readx_poll_timeout(vsc9953_gcb_soft_rst_status, ocelot, val, !val, in vsc9953_reset()
818 dev_err(ocelot->dev, "timeout: switch core reset\n"); in vsc9953_reset()
823 ocelot_field_write(ocelot, SYS_RESET_CFG_MEM_ENA, 1); in vsc9953_reset()
824 ocelot_field_write(ocelot, SYS_RESET_CFG_MEM_INIT, 1); in vsc9953_reset()
826 err = readx_poll_timeout(vsc9953_sys_ram_init_status, ocelot, val, !val, in vsc9953_reset()
830 dev_err(ocelot->dev, "timeout: switch sram init\n"); in vsc9953_reset()
835 ocelot_field_write(ocelot, SYS_RESET_CFG_CORE_ENA, 1); in vsc9953_reset()
879 static int vsc9953_mdio_bus_alloc(struct ocelot *ocelot) in vsc9953_mdio_bus_alloc() argument
881 struct felix *felix = ocelot_to_felix(ocelot); in vsc9953_mdio_bus_alloc()
882 struct device *dev = ocelot->dev; in vsc9953_mdio_bus_alloc()
896 ocelot->targets[GCB], in vsc9953_mdio_bus_alloc()
897 ocelot->map[GCB][GCB_MIIM_MII_STATUS & REG_MASK], in vsc9953_mdio_bus_alloc()
914 struct ocelot_port *ocelot_port = ocelot->ports[port]; in vsc9953_mdio_bus_alloc()
936 static void vsc9953_mdio_bus_free(struct ocelot *ocelot) in vsc9953_mdio_bus_free() argument
938 struct felix *felix = ocelot_to_felix(ocelot); in vsc9953_mdio_bus_free()
941 for (port = 0; port < ocelot->num_phys_ports; port++) { in vsc9953_mdio_bus_free()
975 struct ocelot *ocelot; in seville_probe() local
989 ocelot = &felix->ocelot; in seville_probe()
990 ocelot->dev = &pdev->dev; in seville_probe()
991 ocelot->num_flooding_pgids = 1; in seville_probe()
1012 ds->priv = ocelot; in seville_probe()