Lines Matching defs:len
145 static int mmc_spi_readbytes(struct mmc_spi_host *host, unsigned int len)
147 if (len > sizeof(*host->data)) {
152 host->status.len = len;
227 u8 *end = cp + host->t.len;
496 t->len = cp - data->status;
536 t->len = 1;
556 t->len = 2;
583 t->len = (direction == DMA_TO_DEVICE) ? sizeof(scratch->status) : 1;
613 scratch->crc_val = cpu_to_be16(crc_itu_t(0, t->tx_buf, t->len));
668 t->tx_buf += t->len;
743 unsigned int len;
746 for (len = t->len; len; len--) {
760 u16 crc = crc_itu_t(0, t->rx_buf, t->len);
765 "read - crc error: crc_val=0x%04x, computed=0x%04x len=%d\n",
766 scratch->crc_val, crc, t->len);
771 t->rx_buf += t->len;
824 t->len = min(length, blk_size);
829 t->len);
838 data->bytes_xfered += t->len;
839 length -= t->len;
885 host->early_status.len = statlen;