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()
482 if (!g_spi) in rt5677_spi_read()
486 dev_err(&g_spi->dev, "Bad read align 0x%x(%zu)\n", addr, len); in rt5677_spi_read()
510 status |= spi_sync(g_spi, &m); in rt5677_spi_read()
537 if (!g_spi) in rt5677_spi_write()
541 dev_err(&g_spi->dev, "Bad write align 0x%x(%zu)\n", addr, len); in rt5677_spi_write()
567 status |= spi_sync(g_spi, &m); in rt5677_spi_write()
584 if (!g_spi) in rt5677_spi_hotword_detected()
587 rt5677_dsp = dev_get_drvdata(&g_spi->dev); in rt5677_spi_hotword_detected()
589 dev_err(&g_spi->dev, "Can't get rt5677_dsp\n"); in rt5677_spi_hotword_detected()
606 g_spi = spi; in rt5677_spi_probe()