Searched refs:spi_priv (Results 1 – 2 of 2) sorted by relevance
132 struct w5200_spi_priv *spi_priv = w5200_spi_priv(ndev); in w5200_spi_init() local134 mutex_init(&spi_priv->cmd_lock); in w5200_spi_init()187 struct w5200_spi_priv *spi_priv = w5200_spi_priv(ndev); in w5200_spi_readbulk() local190 .tx_buf = spi_priv->cmd_buf, in w5200_spi_readbulk()191 .len = sizeof(spi_priv->cmd_buf), in w5200_spi_readbulk()200 mutex_lock(&spi_priv->cmd_lock); in w5200_spi_readbulk()202 spi_priv->cmd_buf[0] = addr >> 8; in w5200_spi_readbulk()203 spi_priv->cmd_buf[1] = addr; in w5200_spi_readbulk()204 spi_priv->cmd_buf[2] = len >> 8; in w5200_spi_readbulk()205 spi_priv->cmd_buf[3] = len; in w5200_spi_readbulk()[all …]
164 struct wilc_spi *spi_priv = wilc->bus_data; in wilc_parse_gpios() local165 struct wilc_gpios *gpios = &spi_priv->gpios; in wilc_parse_gpios()188 struct wilc_spi *spi_priv = wilc->bus_data; in wilc_wlan_power() local189 struct wilc_gpios *gpios = &spi_priv->gpios; in wilc_wlan_power()209 struct wilc_spi *spi_priv; in wilc_bus_probe() local211 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[all …]