Lines Matching +full:wp +full:- +full:content
1 // SPDX-License-Identifier: GPL-2.0-or-later
8 …* http://www.wiznet.co.kr/wp-content/uploads/wiznethome/Chip/W5100/Document/W5100_Datasheet_v1.2.6…
9 …* http://wiznethome.cafe24.com/wp-content/uploads/wiznethome/Chip/W5200/Documents/W5200_DS_V140E.p…
28 struct spi_device *spi = to_spi_device(ndev->dev.parent); in w5100_spi_read()
40 struct spi_device *spi = to_spi_device(ndev->dev.parent); in w5100_spi_write()
134 mutex_init(&spi_priv->cmd_lock); in w5200_spi_init()
141 struct spi_device *spi = to_spi_device(ndev->dev.parent); in w5200_spi_read()
153 struct spi_device *spi = to_spi_device(ndev->dev.parent); in w5200_spi_write()
161 struct spi_device *spi = to_spi_device(ndev->dev.parent); in w5200_spi_read16()
173 struct spi_device *spi = to_spi_device(ndev->dev.parent); in w5200_spi_write16()
186 struct spi_device *spi = to_spi_device(ndev->dev.parent); in w5200_spi_readbulk()
190 .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()
208 mutex_unlock(&spi_priv->cmd_lock); in w5200_spi_readbulk()
216 struct spi_device *spi = to_spi_device(ndev->dev.parent); in w5200_spi_writebulk()
220 .tx_buf = spi_priv->cmd_buf, in w5200_spi_writebulk()
221 .len = sizeof(spi_priv->cmd_buf), in w5200_spi_writebulk()
230 mutex_lock(&spi_priv->cmd_lock); in w5200_spi_writebulk()
232 spi_priv->cmd_buf[0] = addr >> 8; in w5200_spi_writebulk()
233 spi_priv->cmd_buf[1] = addr; in w5200_spi_writebulk()
234 spi_priv->cmd_buf[2] = W5200_SPI_WRITE_OPCODE | (len >> 8); in w5200_spi_writebulk()
235 spi_priv->cmd_buf[3] = len; in w5200_spi_writebulk()
238 mutex_unlock(&spi_priv->cmd_lock); in w5200_spi_writebulk()
279 mutex_init(&spi_priv->cmd_lock); in w5500_spi_init()
286 struct spi_device *spi = to_spi_device(ndev->dev.parent); in w5500_spi_read()
302 struct spi_device *spi = to_spi_device(ndev->dev.parent); in w5500_spi_write()
315 struct spi_device *spi = to_spi_device(ndev->dev.parent); in w5500_spi_read16()
331 struct spi_device *spi = to_spi_device(ndev->dev.parent); in w5500_spi_write16()
346 struct spi_device *spi = to_spi_device(ndev->dev.parent); in w5500_spi_readbulk()
350 .tx_buf = spi_priv->cmd_buf, in w5500_spi_readbulk()
351 .len = sizeof(spi_priv->cmd_buf), in w5500_spi_readbulk()
360 mutex_lock(&spi_priv->cmd_lock); in w5500_spi_readbulk()
362 spi_priv->cmd_buf[0] = addr >> 8; in w5500_spi_readbulk()
363 spi_priv->cmd_buf[1] = addr; in w5500_spi_readbulk()
364 spi_priv->cmd_buf[2] = W5500_SPI_READ_CONTROL(addr); in w5500_spi_readbulk()
367 mutex_unlock(&spi_priv->cmd_lock); in w5500_spi_readbulk()
375 struct spi_device *spi = to_spi_device(ndev->dev.parent); in w5500_spi_writebulk()
379 .tx_buf = spi_priv->cmd_buf, in w5500_spi_writebulk()
380 .len = sizeof(spi_priv->cmd_buf), in w5500_spi_writebulk()
389 mutex_lock(&spi_priv->cmd_lock); in w5500_spi_writebulk()
391 spi_priv->cmd_buf[0] = addr >> 8; in w5500_spi_writebulk()
392 spi_priv->cmd_buf[1] = addr; in w5500_spi_writebulk()
393 spi_priv->cmd_buf[2] = W5500_SPI_WRITE_CONTROL(addr); in w5500_spi_writebulk()
396 mutex_unlock(&spi_priv->cmd_lock); in w5500_spi_writebulk()
430 ret = of_get_mac_address(spi->dev.of_node, tmpmac); in w5100_spi_probe()
450 return -EINVAL; in w5100_spi_probe()
453 return w5100_probe(&spi->dev, ops, priv_size, mac, spi->irq, -EINVAL); in w5100_spi_probe()
458 w5100_remove(&spi->dev); in w5100_spi_remove()