Lines Matching refs:t

73 	struct spi_device *spi, struct spi_transfer *t, unsigned int *settings)  in spi_xcomm_setup_transfer()  argument
75 if (t->len > 62) in spi_xcomm_setup_transfer()
78 if (t->speed_hz != spi_xcomm->current_speed) { in spi_xcomm_setup_transfer()
81 divider = DIV_ROUND_UP(SPI_XCOMM_CLOCK, t->speed_hz); in spi_xcomm_setup_transfer()
89 spi_xcomm->current_speed = t->speed_hz; in spi_xcomm_setup_transfer()
111 struct spi_device *spi, struct spi_transfer *t) in spi_xcomm_txrx_bufs() argument
115 if (t->tx_buf) { in spi_xcomm_txrx_bufs()
117 memcpy(spi_xcomm->buf + 1, t->tx_buf, t->len); in spi_xcomm_txrx_bufs()
119 ret = i2c_master_send(spi_xcomm->i2c, spi_xcomm->buf, t->len + 1); in spi_xcomm_txrx_bufs()
122 else if (ret != t->len + 1) in spi_xcomm_txrx_bufs()
124 } else if (t->rx_buf) { in spi_xcomm_txrx_bufs()
125 ret = i2c_master_recv(spi_xcomm->i2c, t->rx_buf, t->len); in spi_xcomm_txrx_bufs()
128 else if (ret != t->len) in spi_xcomm_txrx_bufs()
132 return t->len; in spi_xcomm_txrx_bufs()
142 struct spi_transfer *t; in spi_xcomm_transfer_one() local
149 list_for_each_entry(t, &msg->transfers, transfer_list) { in spi_xcomm_transfer_one()
151 if (!t->tx_buf && !t->rx_buf && t->len) { in spi_xcomm_transfer_one()
156 status = spi_xcomm_setup_transfer(spi_xcomm, spi, t, &settings); in spi_xcomm_transfer_one()
160 is_last = list_is_last(&t->transfer_list, &msg->transfers); in spi_xcomm_transfer_one()
161 cs_change = t->cs_change; in spi_xcomm_transfer_one()
168 if (t->rx_buf) { in spi_xcomm_transfer_one()
170 status = spi_xcomm_sync_config(spi_xcomm, t->len); in spi_xcomm_transfer_one()
180 if (t->len) { in spi_xcomm_transfer_one()
181 status = spi_xcomm_txrx_bufs(spi_xcomm, spi, t); in spi_xcomm_transfer_one()
191 spi_transfer_delay_exec(t); in spi_xcomm_transfer_one()