Lines Matching refs:bpw
92 u8 bpw; member
303 static int dln2_spi_set_bpw(struct dln2_spi *dln2, u8 bpw) in dln2_spi_set_bpw() argument
307 u8 bpw; in dln2_spi_set_bpw() member
311 tx.bpw = bpw; in dln2_spi_set_bpw()
356 static int dln2_spi_copy_to_buf(u8 *dln2_buf, const u8 *src, u16 len, u8 bpw) in dln2_spi_copy_to_buf() argument
361 if (bpw <= 8) { in dln2_spi_copy_to_buf()
363 } else if (bpw <= 16) { in dln2_spi_copy_to_buf()
389 static int dln2_spi_copy_from_buf(u8 *dest, const u8 *dln2_buf, u16 len, u8 bpw) in dln2_spi_copy_from_buf() argument
394 if (bpw <= 8) { in dln2_spi_copy_from_buf()
396 } else if (bpw <= 16) { in dln2_spi_copy_from_buf()
439 dln2_spi_copy_to_buf(tx->buf, data, data_len, dln2->bpw); in dln2_spi_write_one()
481 dln2_spi_copy_from_buf(data, rx->buf, data_len, dln2->bpw); in dln2_spi_read_one()
523 dln2_spi_copy_to_buf(tx->buf, tx_data, data_len, dln2->bpw); in dln2_spi_read_write_one()
537 dln2_spi_copy_from_buf(rx_data, rx->buf, data_len, dln2->bpw); in dln2_spi_read_write_one()
611 u8 bpw, u8 mode) in dln2_spi_transfer_setup() argument
617 dln2->bpw != bpw; in dln2_spi_transfer_setup()
642 if (dln2->bpw != bpw) { in dln2_spi_transfer_setup()
643 ret = dln2_spi_set_bpw(dln2, bpw); in dln2_spi_transfer_setup()
647 dln2->bpw = bpw; in dln2_spi_transfer_setup()
820 dln2->bpw = 0; in dln2_spi_suspend()