Lines Matching refs:slave
32 struct spi_slave slave; member
38 static inline struct mxs_spi_slave *to_mxs_slave(struct spi_slave *slave) in to_mxs_slave() argument
40 return container_of(slave, struct mxs_spi_slave, slave); in to_mxs_slave()
77 return &mxs_slave->slave; in spi_setup_slave()
84 void spi_free_slave(struct spi_slave *slave) in spi_free_slave() argument
86 struct mxs_spi_slave *mxs_slave = to_mxs_slave(slave); in spi_free_slave()
90 int spi_claim_bus(struct spi_slave *slave) in spi_claim_bus() argument
92 struct mxs_spi_slave *mxs_slave = to_mxs_slave(slave); in spi_claim_bus()
98 writel((slave->cs << MXS_SSP_CHIPSELECT_SHIFT) | in spi_claim_bus()
109 mxs_set_ssp_busclock(slave->bus, mxs_slave->max_khz); in spi_claim_bus()
114 void spi_release_bus(struct spi_slave *slave) in spi_release_bus() argument
130 static int mxs_spi_xfer_pio(struct mxs_spi_slave *slave, in mxs_spi_xfer_pio() argument
133 struct mxs_ssp_regs *ssp_regs = slave->regs; in mxs_spi_xfer_pio()
189 static int mxs_spi_xfer_dma(struct mxs_spi_slave *slave, in mxs_spi_xfer_dma() argument
194 struct mxs_ssp_regs *ssp_regs = slave->regs; in mxs_spi_xfer_dma()
233 dmach = MXS_DMA_CHANNEL_AHB_APBH_SSP0 + slave->slave.bus; in mxs_spi_xfer_dma()
310 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, in spi_xfer() argument
313 struct mxs_spi_slave *mxs_slave = to_mxs_slave(slave); in spi_xfer()