Lines Matching refs:spi_priv
164 struct wilc_spi *spi_priv = wilc->bus_data; in wilc_parse_gpios() local
165 struct wilc_gpios *gpios = &spi_priv->gpios; in wilc_parse_gpios()
188 struct wilc_spi *spi_priv = wilc->bus_data; in wilc_wlan_power() local
189 struct wilc_gpios *gpios = &spi_priv->gpios; in wilc_wlan_power()
209 struct wilc_spi *spi_priv; in wilc_bus_probe() local
211 spi_priv = kzalloc(sizeof(*spi_priv), GFP_KERNEL); in wilc_bus_probe()
212 if (!spi_priv) in wilc_bus_probe()
221 wilc->bus_data = spi_priv; in wilc_bus_probe()
240 kfree(spi_priv); in wilc_bus_probe()
247 struct wilc_spi *spi_priv = wilc->bus_data; in wilc_bus_remove() local
251 kfree(spi_priv); in wilc_bus_remove()
403 struct wilc_spi *spi_priv = wilc->bus_data; in spi_data_write() local
451 if (spi_priv->crc16_enabled) { in spi_data_write()
486 struct wilc_spi *spi_priv = wilc->bus_data; in wilc_spi_single_read() local
516 if (spi_priv->crc7_enabled) { in wilc_spi_single_read()
536 if (!spi_priv->probing_crc) in wilc_spi_single_read()
563 if (!clockless && spi_priv->crc16_enabled) { in wilc_spi_single_read()
581 struct wilc_spi *spi_priv = wilc->bus_data; in wilc_spi_write_cmd() local
599 if (spi_priv->crc7_enabled) in wilc_spi_write_cmd()
607 if (spi_priv->crc7_enabled) in wilc_spi_write_cmd()
614 if (spi_priv->crc7_enabled) in wilc_spi_write_cmd()
655 struct wilc_spi *spi_priv = wilc->bus_data; in wilc_spi_dma_rw() local
675 if (spi_priv->crc7_enabled) in wilc_spi_dma_rw()
685 if (spi_priv->crc7_enabled) in wilc_spi_dma_rw()
692 if (spi_priv->crc7_enabled) in wilc_spi_dma_rw()
757 if (spi_priv->crc16_enabled) { in wilc_spi_dma_rw()
782 struct wilc_spi *spi_priv = wilc->bus_data; in wilc_spi_special_cmd() local
802 if (spi_priv->crc7_enabled) { in wilc_spi_special_cmd()
819 if (!spi_priv->probing_crc) in wilc_spi_special_cmd()
837 struct wilc_spi *spi_priv = wl->bus_data; in wilc_spi_reset_cmd_sequence() local
839 if (!spi_priv->probing_crc) in wilc_spi_reset_cmd_sequence()
924 struct wilc_spi *spi_priv = wilc->bus_data; in spi_internal_read() local
935 if (!spi_priv->probing_crc) in spi_internal_read()
1080 struct wilc_spi *spi_priv = wilc->bus_data; in wilc_spi_reset() local
1084 if (result && !spi_priv->probing_crc) in wilc_spi_reset()
1092 struct wilc_spi *spi_priv = wilc->bus_data; in wilc_spi_is_init() local
1094 return spi_priv->isinit; in wilc_spi_is_init()
1099 struct wilc_spi *spi_priv = wilc->bus_data; in wilc_spi_deinit() local
1101 spi_priv->isinit = false; in wilc_spi_deinit()
1109 struct wilc_spi *spi_priv = wilc->bus_data; in wilc_spi_init() local
1114 if (spi_priv->isinit) { in wilc_spi_init()
1134 spi_priv->probing_crc = true; in wilc_spi_init()
1135 spi_priv->crc7_enabled = enable_crc7; in wilc_spi_init()
1136 spi_priv->crc16_enabled = false; /* don't check CRC16 during probing */ in wilc_spi_init()
1141 spi_priv->crc7_enabled = !enable_crc7; in wilc_spi_init()
1171 spi_priv->crc7_enabled = enable_crc7; in wilc_spi_init()
1172 spi_priv->crc16_enabled = enable_crc16; in wilc_spi_init()
1177 spi_priv->probing_crc = false; in wilc_spi_init()
1188 spi_priv->isinit = true; in wilc_spi_init()