Lines Matching +full:sparx +full:- +full:g5e

1 // SPDX-License-Identifier: GPL-2.0
3 * Vitesse VSC7385 SparX-G5 5+1-port Integrated Gigabit Ethernet Switch
4 * Vitesse VSC7388 SparX-G8 8-port Integrated Gigabit Ethernet Switch
5 * Vitesse VSC7395 SparX-G5e 5+1-port Integrated Gigabit Ethernet Switch
6 * Vitesse VSC7398 SparX-G8e 8-port Integrated Gigabit Ethernet Switch
20 #include "vitesse-vsc73xx.h"
30 * struct vsc73xx_spi - VSC73xx SPI state container
55 struct vsc73xx_spi *vsc_spi = vsc->priv; in vsc73xx_spi_read()
63 return -EINVAL; in vsc73xx_spi_read()
82 mutex_lock(&vsc_spi->lock); in vsc73xx_spi_read()
83 ret = spi_sync(vsc_spi->spi, &m); in vsc73xx_spi_read()
84 mutex_unlock(&vsc_spi->lock); in vsc73xx_spi_read()
97 struct vsc73xx_spi *vsc_spi = vsc->priv; in vsc73xx_spi_write()
105 return -EINVAL; in vsc73xx_spi_write()
127 mutex_lock(&vsc_spi->lock); in vsc73xx_spi_write()
128 ret = spi_sync(vsc_spi->spi, &m); in vsc73xx_spi_write()
129 mutex_unlock(&vsc_spi->lock); in vsc73xx_spi_write()
136 struct device *dev = &spi->dev; in vsc73xx_spi_probe()
142 return -ENOMEM; in vsc73xx_spi_probe()
145 vsc_spi->spi = spi_dev_get(spi); in vsc73xx_spi_probe()
146 vsc_spi->vsc.dev = dev; in vsc73xx_spi_probe()
147 vsc_spi->vsc.priv = vsc_spi; in vsc73xx_spi_probe()
148 vsc_spi->vsc.ops = &vsc73xx_spi_ops; in vsc73xx_spi_probe()
149 mutex_init(&vsc_spi->lock); in vsc73xx_spi_probe()
151 spi->mode = SPI_MODE_0; in vsc73xx_spi_probe()
152 spi->bits_per_word = 8; in vsc73xx_spi_probe()
159 return vsc73xx_probe(&vsc_spi->vsc); in vsc73xx_spi_probe()
169 vsc73xx_remove(&vsc_spi->vsc); in vsc73xx_spi_remove()
179 vsc73xx_shutdown(&vsc_spi->vsc); in vsc73xx_spi_shutdown()
221 .name = "vsc73xx-spi",