Lines Matching refs:dev

125 static void spi_cs_activate(struct udevice *dev, uint cs)  in spi_cs_activate()  argument
127 struct udevice *bus = dev_get_parent(dev); in spi_cs_activate()
134 static void spi_cs_deactivate(struct udevice *dev) in spi_cs_deactivate() argument
136 struct udevice *bus = dev_get_parent(dev); in spi_cs_deactivate()
143 static int xilinx_spi_claim_bus(struct udevice *dev) in xilinx_spi_claim_bus() argument
145 struct udevice *bus = dev_get_parent(dev); in xilinx_spi_claim_bus()
155 static int xilinx_spi_release_bus(struct udevice *dev) in xilinx_spi_release_bus() argument
157 struct udevice *bus = dev_get_parent(dev); in xilinx_spi_release_bus()
208 static void xilinx_spi_startup_block(struct udevice *dev, unsigned int bytes, in xilinx_spi_startup_block() argument
211 struct udevice *bus = dev_get_parent(dev); in xilinx_spi_startup_block()
214 struct dm_spi_slave_platdata *slave_plat = dev_get_parent_platdata(dev); in xilinx_spi_startup_block()
234 spi_cs_deactivate(dev); in xilinx_spi_startup_block()
235 spi_cs_activate(dev, slave_plat->cs); in xilinx_spi_startup_block()
241 static int xilinx_spi_xfer(struct udevice *dev, unsigned int bitlen, in xilinx_spi_xfer() argument
244 struct udevice *bus = dev_get_parent(dev); in xilinx_spi_xfer()
247 struct dm_spi_slave_platdata *slave_plat = dev_get_parent_platdata(dev); in xilinx_spi_xfer()
271 spi_cs_activate(dev, slave_plat->cs); in xilinx_spi_xfer()
279 xilinx_spi_startup_block(dev, bytes, dout, din); in xilinx_spi_xfer()
306 spi_cs_deactivate(dev); in xilinx_spi_xfer()