Lines Matching refs:t
74 struct spi_device *spi, struct spi_transfer *t, unsigned int *settings) in spi_xcomm_setup_transfer() argument
76 if (t->len > 62) in spi_xcomm_setup_transfer()
79 if (t->speed_hz != spi_xcomm->current_speed) { in spi_xcomm_setup_transfer()
82 divider = DIV_ROUND_UP(SPI_XCOMM_CLOCK, t->speed_hz); in spi_xcomm_setup_transfer()
90 spi_xcomm->current_speed = t->speed_hz; in spi_xcomm_setup_transfer()
112 struct spi_device *spi, struct spi_transfer *t) in spi_xcomm_txrx_bufs() argument
116 if (t->tx_buf) { in spi_xcomm_txrx_bufs()
118 memcpy(spi_xcomm->buf + 1, t->tx_buf, t->len); in spi_xcomm_txrx_bufs()
120 ret = i2c_master_send(spi_xcomm->i2c, spi_xcomm->buf, t->len + 1); in spi_xcomm_txrx_bufs()
123 else if (ret != t->len + 1) in spi_xcomm_txrx_bufs()
125 } else if (t->rx_buf) { in spi_xcomm_txrx_bufs()
126 ret = i2c_master_recv(spi_xcomm->i2c, t->rx_buf, t->len); in spi_xcomm_txrx_bufs()
129 else if (ret != t->len) in spi_xcomm_txrx_bufs()
133 return t->len; in spi_xcomm_txrx_bufs()
143 struct spi_transfer *t; in spi_xcomm_transfer_one() local
150 list_for_each_entry(t, &msg->transfers, transfer_list) { in spi_xcomm_transfer_one()
152 if (!t->tx_buf && !t->rx_buf && t->len) { in spi_xcomm_transfer_one()
157 status = spi_xcomm_setup_transfer(spi_xcomm, spi, t, &settings); in spi_xcomm_transfer_one()
161 is_last = list_is_last(&t->transfer_list, &msg->transfers); in spi_xcomm_transfer_one()
162 cs_change = t->cs_change; in spi_xcomm_transfer_one()
169 if (t->rx_buf) { in spi_xcomm_transfer_one()
171 status = spi_xcomm_sync_config(spi_xcomm, t->len); in spi_xcomm_transfer_one()
181 if (t->len) { in spi_xcomm_transfer_one()
182 status = spi_xcomm_txrx_bufs(spi_xcomm, spi, t); in spi_xcomm_transfer_one()
192 if (t->delay_usecs) in spi_xcomm_transfer_one()
193 udelay(t->delay_usecs); in spi_xcomm_transfer_one()