Lines Matching refs:data

199 		    uint16_t data)  in dspi_tx()  argument
203 uint32_t dspi_val = ctrl | data; in dspi_tx()
251 struct ls_dspi_data *data = container_of(chip, struct ls_dspi_data, in ls_dspi_txrx8() local
253 unsigned int cs = data->slave_cs; in ls_dspi_txrx8()
264 ctrl = DSPI_TFR_CTAS(data->ctar_sel) | DSPI_TFR_PCS(cs); in ls_dspi_txrx8()
265 if (data->slave_mode & SPI_CONT) in ls_dspi_txrx8()
268 if (data->slave_data_size_bits != 8) { in ls_dspi_txrx8()
270 data->slave_data_size_bits); in ls_dspi_txrx8()
276 dspi_tx(data, ctrl, *spi_wr++); in ls_dspi_txrx8()
277 *spi_rd++ = dspi_rx(data); in ls_dspi_txrx8()
279 dspi_tx(data, ctrl, *spi_wr++); in ls_dspi_txrx8()
280 dspi_rx(data); in ls_dspi_txrx8()
282 dspi_tx(data, ctrl, DSPI_IDLE_DATA); in ls_dspi_txrx8()
283 *spi_rd++ = dspi_rx(data); in ls_dspi_txrx8()
304 struct ls_dspi_data *data = container_of(chip, struct ls_dspi_data, in ls_dspi_txrx16() local
306 unsigned int cs = data->slave_cs; in ls_dspi_txrx16()
317 ctrl = DSPI_TFR_CTAS(data->ctar_sel) | DSPI_TFR_PCS(cs); in ls_dspi_txrx16()
318 if (data->slave_mode & SPI_CONT) in ls_dspi_txrx16()
321 if (data->slave_data_size_bits != 16) { in ls_dspi_txrx16()
323 data->slave_data_size_bits); in ls_dspi_txrx16()
329 dspi_tx(data, ctrl, *spi_wr++); in ls_dspi_txrx16()
330 *spi_rd++ = dspi_rx(data); in ls_dspi_txrx16()
332 dspi_tx(data, ctrl, *spi_wr++); in ls_dspi_txrx16()
333 dspi_rx(data); in ls_dspi_txrx16()
335 dspi_tx(data, ctrl, DSPI_IDLE_DATA); in ls_dspi_txrx16()
336 *spi_rd++ = dspi_rx(data); in ls_dspi_txrx16()
350 struct ls_dspi_data *data = container_of(chip, struct ls_dspi_data, in ls_dspi_start() local
354 io_clrbits32(data->base + DSPI_MCR, DSPI_MCR_HALT); in ls_dspi_start()
363 struct ls_dspi_data *data = container_of(chip, struct ls_dspi_data, in ls_dspi_end() local
367 if (data->slave_mode & SPI_CONT) { in ls_dspi_end()
368 unsigned int cs = data->slave_cs; in ls_dspi_end()
369 unsigned int ctrl = DSPI_TFR_CTAS(data->ctar_sel) | in ls_dspi_end()
373 dspi_tx(data, ctrl, DSPI_IDLE_DATA); in ls_dspi_end()
374 dspi_rx(data); in ls_dspi_end()
378 io_setbits32(data->base + DSPI_MCR, DSPI_MCR_HALT); in ls_dspi_end()
511 struct ls_dspi_data *data = container_of(chip, struct ls_dspi_data, in ls_dspi_configure() local
519 dspi_set_master_state(data, mcr_cfg_val); in ls_dspi_configure()
522 dspi_config_slave_state(data, data->slave_cs, data->slave_speed_max_hz, in ls_dspi_configure()
523 data->slave_mode); in ls_dspi_configure()