Lines Matching refs:bytes
175 static inline void spi_use_out(struct spi_trans *trans, unsigned bytes) in spi_use_out() argument
177 trans->out += bytes; in spi_use_out()
178 trans->bytesout -= bytes; in spi_use_out()
181 static inline void spi_use_in(struct spi_trans *trans, unsigned bytes) in spi_use_in() argument
183 trans->in += bytes; in spi_use_in()
184 trans->bytesin -= bytes; in spi_use_in()
379 int bytes = bitlen / 8; in ich_spi_xfer() local
401 if (bytes > ICH_MAX_CMD_LEN) { in ich_spi_xfer()
405 memcpy(trans->cmd, dout, bytes); in ich_spi_xfer()
406 trans->cmd_len = bytes; in ich_spi_xfer()
407 debug_trace("ICH SPI: Saved %d bytes\n", bytes); in ich_spi_xfer()
425 trans->bytesout = dout ? bytes : 0; in ich_spi_xfer()
429 trans->bytesin = din ? bytes : 0; in ich_spi_xfer()
446 spi_setup_type(trans, using_cmd ? bytes : 0); in ich_spi_xfer()
477 if (using_cmd && dout && bytes) { in ich_spi_xfer()
479 trans->bytesout = bytes; in ich_spi_xfer()
480 debug_trace("ICH SPI: Moving to data, %d bytes\n", bytes); in ich_spi_xfer()