Lines Matching refs:bpw
91 u8 bpw; member
302 static int dln2_spi_set_bpw(struct dln2_spi *dln2, u8 bpw) in dln2_spi_set_bpw() argument
306 u8 bpw; in dln2_spi_set_bpw() member
310 tx.bpw = bpw; in dln2_spi_set_bpw()
355 static int dln2_spi_copy_to_buf(u8 *dln2_buf, const u8 *src, u16 len, u8 bpw) in dln2_spi_copy_to_buf() argument
360 if (bpw <= 8) { in dln2_spi_copy_to_buf()
362 } else if (bpw <= 16) { in dln2_spi_copy_to_buf()
388 static int dln2_spi_copy_from_buf(u8 *dest, const u8 *dln2_buf, u16 len, u8 bpw) in dln2_spi_copy_from_buf() argument
393 if (bpw <= 8) { in dln2_spi_copy_from_buf()
395 } else if (bpw <= 16) { in dln2_spi_copy_from_buf()
438 dln2_spi_copy_to_buf(tx->buf, data, data_len, dln2->bpw); in dln2_spi_write_one()
480 dln2_spi_copy_from_buf(data, rx->buf, data_len, dln2->bpw); in dln2_spi_read_one()
522 dln2_spi_copy_to_buf(tx->buf, tx_data, data_len, dln2->bpw); in dln2_spi_read_write_one()
536 dln2_spi_copy_from_buf(rx_data, rx->buf, data_len, dln2->bpw); in dln2_spi_read_write_one()
610 u8 bpw, u8 mode) in dln2_spi_transfer_setup() argument
616 dln2->bpw != bpw; in dln2_spi_transfer_setup()
641 if (dln2->bpw != bpw) { in dln2_spi_transfer_setup()
642 ret = dln2_spi_set_bpw(dln2, bpw); in dln2_spi_transfer_setup()
646 dln2->bpw = bpw; in dln2_spi_transfer_setup()
818 dln2->bpw = 0; in dln2_spi_suspend()