Lines Matching defs:ndev

26 static int w5100_spi_read(struct net_device *ndev, u32 addr)
28 struct spi_device *spi = to_spi_device(ndev->dev.parent);
38 static int w5100_spi_write(struct net_device *ndev, u32 addr, u8 data)
40 struct spi_device *spi = to_spi_device(ndev->dev.parent);
46 static int w5100_spi_read16(struct net_device *ndev, u32 addr)
51 ret = w5100_spi_read(ndev, addr);
55 ret = w5100_spi_read(ndev, addr + 1);
60 static int w5100_spi_write16(struct net_device *ndev, u32 addr, u16 data)
64 ret = w5100_spi_write(ndev, addr, data >> 8);
68 return w5100_spi_write(ndev, addr + 1, data & 0xff);
71 static int w5100_spi_readbulk(struct net_device *ndev, u32 addr, u8 *buf,
77 int ret = w5100_spi_read(ndev, addr + i);
87 static int w5100_spi_writebulk(struct net_device *ndev, u32 addr, const u8 *buf,
93 int ret = w5100_spi_write(ndev, addr + i, buf[i]);
125 static struct w5200_spi_priv *w5200_spi_priv(struct net_device *ndev)
127 return w5100_ops_priv(ndev);
130 static int w5200_spi_init(struct net_device *ndev)
132 struct w5200_spi_priv *spi_priv = w5200_spi_priv(ndev);
139 static int w5200_spi_read(struct net_device *ndev, u32 addr)
141 struct spi_device *spi = to_spi_device(ndev->dev.parent);
151 static int w5200_spi_write(struct net_device *ndev, u32 addr, u8 data)
153 struct spi_device *spi = to_spi_device(ndev->dev.parent);
159 static int w5200_spi_read16(struct net_device *ndev, u32 addr)
161 struct spi_device *spi = to_spi_device(ndev->dev.parent);
171 static int w5200_spi_write16(struct net_device *ndev, u32 addr, u16 data)
173 struct spi_device *spi = to_spi_device(ndev->dev.parent);
183 static int w5200_spi_readbulk(struct net_device *ndev, u32 addr, u8 *buf,
186 struct spi_device *spi = to_spi_device(ndev->dev.parent);
187 struct w5200_spi_priv *spi_priv = w5200_spi_priv(ndev);
213 static int w5200_spi_writebulk(struct net_device *ndev, u32 addr, const u8 *buf,
216 struct spi_device *spi = to_spi_device(ndev->dev.parent);
217 struct w5200_spi_priv *spi_priv = w5200_spi_priv(ndev);
270 static struct w5500_spi_priv *w5500_spi_priv(struct net_device *ndev)
272 return w5100_ops_priv(ndev);
275 static int w5500_spi_init(struct net_device *ndev)
277 struct w5500_spi_priv *spi_priv = w5500_spi_priv(ndev);
284 static int w5500_spi_read(struct net_device *ndev, u32 addr)
286 struct spi_device *spi = to_spi_device(ndev->dev.parent);
300 static int w5500_spi_write(struct net_device *ndev, u32 addr, u8 data)
302 struct spi_device *spi = to_spi_device(ndev->dev.parent);
313 static int w5500_spi_read16(struct net_device *ndev, u32 addr)
315 struct spi_device *spi = to_spi_device(ndev->dev.parent);
329 static int w5500_spi_write16(struct net_device *ndev, u32 addr, u16 data)
331 struct spi_device *spi = to_spi_device(ndev->dev.parent);
343 static int w5500_spi_readbulk(struct net_device *ndev, u32 addr, u8 *buf,
346 struct spi_device *spi = to_spi_device(ndev->dev.parent);
347 struct w5500_spi_priv *spi_priv = w5500_spi_priv(ndev);
372 static int w5500_spi_writebulk(struct net_device *ndev, u32 addr, const u8 *buf,
375 struct spi_device *spi = to_spi_device(ndev->dev.parent);
376 struct w5500_spi_priv *spi_priv = w5500_spi_priv(ndev);