Lines Matching refs:vsc_spi
55 struct vsc73xx_spi *vsc_spi = vsc->priv; in vsc73xx_spi_read() local
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() local
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()
137 struct vsc73xx_spi *vsc_spi; in vsc73xx_spi_probe() local
140 vsc_spi = devm_kzalloc(dev, sizeof(*vsc_spi), GFP_KERNEL); in vsc73xx_spi_probe()
141 if (!vsc_spi) in vsc73xx_spi_probe()
144 spi_set_drvdata(spi, vsc_spi); 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()
159 return vsc73xx_probe(&vsc_spi->vsc); in vsc73xx_spi_probe()
164 struct vsc73xx_spi *vsc_spi = spi_get_drvdata(spi); in vsc73xx_spi_remove() local
166 if (!vsc_spi) in vsc73xx_spi_remove()
169 vsc73xx_remove(&vsc_spi->vsc); in vsc73xx_spi_remove()
174 struct vsc73xx_spi *vsc_spi = spi_get_drvdata(spi); in vsc73xx_spi_shutdown() local
176 if (!vsc_spi) in vsc73xx_spi_shutdown()
179 vsc73xx_shutdown(&vsc_spi->vsc); in vsc73xx_spi_shutdown()