Lines Matching refs:g_spi
58 static struct spi_device *g_spi; variable
390 rt5677_dsp->dev = &g_spi->dev; in rt5677_spi_pcm_probe()
483 if (!g_spi) in rt5677_spi_read()
487 dev_err(&g_spi->dev, "Bad read align 0x%x(%zu)\n", addr, len); in rt5677_spi_read()
511 status |= spi_sync(g_spi, &m); in rt5677_spi_read()
538 if (!g_spi) in rt5677_spi_write()
542 dev_err(&g_spi->dev, "Bad write align 0x%x(%zu)\n", addr, len); in rt5677_spi_write()
568 status |= spi_sync(g_spi, &m); in rt5677_spi_write()
585 if (!g_spi) in rt5677_spi_hotword_detected()
588 rt5677_dsp = dev_get_drvdata(&g_spi->dev); in rt5677_spi_hotword_detected()
590 dev_err(&g_spi->dev, "Can't get rt5677_dsp\n"); in rt5677_spi_hotword_detected()
607 g_spi = spi; in rt5677_spi_probe()