Lines Matching refs:spi_priv

166 	struct wilc_spi *spi_priv = wilc->bus_data;  in wilc_parse_gpios()  local
167 struct wilc_gpios *gpios = &spi_priv->gpios; in wilc_parse_gpios()
190 struct wilc_spi *spi_priv = wilc->bus_data; in wilc_wlan_power() local
191 struct wilc_gpios *gpios = &spi_priv->gpios; in wilc_wlan_power()
209 struct wilc_spi *spi_priv; in wilc_bus_probe() local
214 spi_priv = kzalloc(sizeof(*spi_priv), GFP_KERNEL); in wilc_bus_probe()
215 if (!spi_priv) in wilc_bus_probe()
224 wilc->bus_data = spi_priv; in wilc_bus_probe()
272 kfree(spi_priv); in wilc_bus_probe()
279 struct wilc_spi *spi_priv = wilc->bus_data; in wilc_bus_remove() local
282 kfree(spi_priv); in wilc_bus_remove()
431 struct wilc_spi *spi_priv = wilc->bus_data; in spi_data_write() local
479 if (spi_priv->crc16_enabled) { in spi_data_write()
514 struct wilc_spi *spi_priv = wilc->bus_data; in wilc_spi_single_read() local
544 if (spi_priv->crc7_enabled) { in wilc_spi_single_read()
564 if (!spi_priv->probing_crc) in wilc_spi_single_read()
591 if (!clockless && spi_priv->crc16_enabled) { in wilc_spi_single_read()
609 struct wilc_spi *spi_priv = wilc->bus_data; in wilc_spi_write_cmd() local
627 if (spi_priv->crc7_enabled) in wilc_spi_write_cmd()
635 if (spi_priv->crc7_enabled) in wilc_spi_write_cmd()
642 if (spi_priv->crc7_enabled) in wilc_spi_write_cmd()
683 struct wilc_spi *spi_priv = wilc->bus_data; in wilc_spi_dma_rw() local
703 if (spi_priv->crc7_enabled) in wilc_spi_dma_rw()
713 if (spi_priv->crc7_enabled) in wilc_spi_dma_rw()
720 if (spi_priv->crc7_enabled) in wilc_spi_dma_rw()
785 if (spi_priv->crc16_enabled) { in wilc_spi_dma_rw()
810 struct wilc_spi *spi_priv = wilc->bus_data; in wilc_spi_special_cmd() local
830 if (spi_priv->crc7_enabled) { in wilc_spi_special_cmd()
847 if (!spi_priv->probing_crc) in wilc_spi_special_cmd()
865 struct wilc_spi *spi_priv = wl->bus_data; in wilc_spi_reset_cmd_sequence() local
867 if (!spi_priv->probing_crc) in wilc_spi_reset_cmd_sequence()
952 struct wilc_spi *spi_priv = wilc->bus_data; in spi_internal_read() local
963 if (!spi_priv->probing_crc) in spi_internal_read()
1108 struct wilc_spi *spi_priv = wilc->bus_data; in wilc_spi_reset() local
1112 if (result && !spi_priv->probing_crc) in wilc_spi_reset()
1120 struct wilc_spi *spi_priv = wilc->bus_data; in wilc_spi_is_init() local
1122 return spi_priv->isinit; in wilc_spi_is_init()
1127 struct wilc_spi *spi_priv = wilc->bus_data; in wilc_spi_deinit() local
1129 spi_priv->isinit = false; in wilc_spi_deinit()
1136 struct wilc_spi *spi_priv = wilc->bus_data; in wilc_spi_init() local
1139 if (spi_priv->isinit) { in wilc_spi_init()
1153 spi_priv->isinit = true; in wilc_spi_init()
1161 struct wilc_spi *spi_priv = wilc->bus_data; in wilc_spi_configure_bus_protocol() local
1170 spi_priv->probing_crc = true; in wilc_spi_configure_bus_protocol()
1171 spi_priv->crc7_enabled = enable_crc7; in wilc_spi_configure_bus_protocol()
1172 spi_priv->crc16_enabled = false; /* don't check CRC16 during probing */ in wilc_spi_configure_bus_protocol()
1177 spi_priv->crc7_enabled = !enable_crc7; in wilc_spi_configure_bus_protocol()
1207 spi_priv->crc7_enabled = enable_crc7; in wilc_spi_configure_bus_protocol()
1208 spi_priv->crc16_enabled = enable_crc16; in wilc_spi_configure_bus_protocol()
1213 spi_priv->probing_crc = false; in wilc_spi_configure_bus_protocol()