Lines Matching full:ones
129 /* Specs say to write ones most of the time, even when the card
131 * This is our source of those ones.
133 void *ones; member
255 * two data bits, but otherwise it's all ones. in mmc_spi_response_get()
266 /* Card sends N(CR) (== 1..8) bytes of all-ones then one in mmc_spi_response_get()
436 * - an all-ones byte to ensure the card is ready in mmc_spi_command_send()
441 * We init the whole buffer to all-ones, which is what we need in mmc_spi_command_send()
451 /* Then, read up to 13 bytes (while writing all-ones): in mmc_spi_command_send()
452 * - N(CR) (== 1..8) bytes of all-ones in mmc_spi_command_send()
461 * - N(EC) (== 0..N) bytes of all-ones, before deselect/finish in mmc_spi_command_send()
462 * - N(RC) (== 1..N) bytes of all-ones, before next command in mmc_spi_command_send()
463 * - N(WR) (== 1..N) bytes of all-ones, before data write in mmc_spi_command_send()
480 * + N(CX) (== 0..8) bytes of all-ones, before CSD or CID in mmc_spi_command_send()
481 * + N(AC) (== 1..many) bytes of all-ones in mmc_spi_command_send()
541 * requires us to write ones; but Linux defaults to writing zeroes;
542 * so we explicitly initialize it to all ones on RX paths.
579 * either TX-only, or RX with TX-ones. in mmc_spi_setup_data_message()
583 t->tx_buf = host->ones; in mmc_spi_setup_data_message()
597 t->tx_buf = host->ones; in mmc_spi_setup_data_message()
606 * A single block read is followed by N(EC) [0+] all-ones bytes in mmc_spi_setup_data_message()
609 * Multiblock reads are followed by N(AC) [1+] all-ones bytes before in mmc_spi_setup_data_message()
614 * come zero or more busy bytes, then N(WR) [1+] all-ones bytes. in mmc_spi_setup_data_message()
615 * Then single block reads may deselect, and multiblock ones issue in mmc_spi_setup_data_message()
623 t->tx_buf = host->ones; in mmc_spi_setup_data_message()
635 * - caller handled preceding N(WR) [1+] all-ones bytes
640 * - an all-ones byte ... card writes a data-response byte
641 * - followed by N(EC) [0+] all-ones bytes, card writes zero/'busy'
737 * - skip leading all-ones bytes ... either
745 * After single block reads, we're done; N(EC) [0+] all-ones bytes follow
762 * applies, before the all-ones bytes ... just cope with that. in mmc_spi_readblock()
969 * all-ones bytes ... skip N(BR) (0..1), scan the rest for in mmc_spi_data_do()
1279 host->ones_dma = dma_map_single(dev, host->ones, MMC_SPI_BLOCKSIZE, in mmc_spi_dma_alloc()
1316 void *ones; in mmc_spi_probe() local
1346 /* We need a supply of ones to transmit. This is the only time in mmc_spi_probe()
1353 ones = kmalloc(MMC_SPI_BLOCKSIZE, GFP_KERNEL); in mmc_spi_probe()
1354 if (!ones) in mmc_spi_probe()
1356 memset(ones, 0xff, MMC_SPI_BLOCKSIZE); in mmc_spi_probe()
1385 host->ones = ones; in mmc_spi_probe()
1419 host->status.tx_buf = host->ones; in mmc_spi_probe()
1487 kfree(ones); in mmc_spi_probe()
1505 kfree(host->ones); in mmc_spi_remove()