Lines Matching defs:spi

19 #include <linux/spi/spi.h>
28 struct spi_device *spi = to_spi_device(ndev->dev.parent);
33 ret = spi_write_then_read(spi, cmd, sizeof(cmd), &data, 1);
40 struct spi_device *spi = to_spi_device(ndev->dev.parent);
43 return spi_write_then_read(spi, cmd, sizeof(cmd), NULL, 0);
141 struct spi_device *spi = to_spi_device(ndev->dev.parent);
146 ret = spi_write_then_read(spi, cmd, sizeof(cmd), &data, 1);
153 struct spi_device *spi = to_spi_device(ndev->dev.parent);
156 return spi_write_then_read(spi, cmd, sizeof(cmd), NULL, 0);
161 struct spi_device *spi = to_spi_device(ndev->dev.parent);
166 ret = spi_write_then_read(spi, cmd, sizeof(cmd), &data, sizeof(data));
173 struct spi_device *spi = to_spi_device(ndev->dev.parent);
180 return spi_write_then_read(spi, cmd, sizeof(cmd), NULL, 0);
186 struct spi_device *spi = to_spi_device(ndev->dev.parent);
206 ret = spi_sync_transfer(spi, xfer, ARRAY_SIZE(xfer));
216 struct spi_device *spi = to_spi_device(ndev->dev.parent);
236 ret = spi_sync_transfer(spi, xfer, ARRAY_SIZE(xfer));
286 struct spi_device *spi = to_spi_device(ndev->dev.parent);
295 ret = spi_write_then_read(spi, cmd, sizeof(cmd), &data, 1);
302 struct spi_device *spi = to_spi_device(ndev->dev.parent);
310 return spi_write_then_read(spi, cmd, sizeof(cmd), NULL, 0);
315 struct spi_device *spi = to_spi_device(ndev->dev.parent);
324 ret = spi_write_then_read(spi, cmd, sizeof(cmd), &data, sizeof(data));
331 struct spi_device *spi = to_spi_device(ndev->dev.parent);
340 return spi_write_then_read(spi, cmd, sizeof(cmd), NULL, 0);
346 struct spi_device *spi = to_spi_device(ndev->dev.parent);
365 ret = spi_sync_transfer(spi, xfer, ARRAY_SIZE(xfer));
375 struct spi_device *spi = to_spi_device(ndev->dev.parent);
394 ret = spi_sync_transfer(spi, xfer, ARRAY_SIZE(xfer));
421 static int w5100_spi_probe(struct spi_device *spi)
430 ret = of_get_mac_address(spi->dev.of_node, tmpmac);
434 driver_data = (uintptr_t)spi_get_device_match_data(spi);
453 return w5100_probe(&spi->dev, ops, priv_size, mac, spi->irq, -EINVAL);
456 static void w5100_spi_remove(struct spi_device *spi)
458 w5100_remove(&spi->dev);
467 MODULE_DEVICE_TABLE(spi, w5100_spi_ids);