Lines Matching full:ones
124 /* Specs say to write ones most of the time, even when the card
126 * This is our source of those ones.
128 void *ones; member
230 * two data bits, but otherwise it's all ones. in mmc_spi_response_get()
241 /* Card sends N(CR) (== 1..8) bytes of all-ones then one in mmc_spi_response_get()
412 * - an all-ones byte to ensure the card is ready in mmc_spi_command_send()
417 * We init the whole buffer to all-ones, which is what we need in mmc_spi_command_send()
427 /* Then, read up to 13 bytes (while writing all-ones): in mmc_spi_command_send()
428 * - N(CR) (== 1..8) bytes of all-ones in mmc_spi_command_send()
437 * - N(EC) (== 0..N) bytes of all-ones, before deselect/finish in mmc_spi_command_send()
438 * - N(RC) (== 1..N) bytes of all-ones, before next command in mmc_spi_command_send()
439 * - N(WR) (== 1..N) bytes of all-ones, before data write in mmc_spi_command_send()
456 * + N(CX) (== 0..8) bytes of all-ones, before CSD or CID in mmc_spi_command_send()
457 * + N(AC) (== 1..many) bytes of all-ones in mmc_spi_command_send()
505 * requires us to write ones; but Linux defaults to writing zeroes;
506 * so we explicitly initialize it to all ones on RX paths.
532 * either TX-only, or RX with TX-ones. in mmc_spi_setup_data_message()
536 t->tx_buf = host->ones; in mmc_spi_setup_data_message()
547 t->tx_buf = host->ones; in mmc_spi_setup_data_message()
553 * A single block read is followed by N(EC) [0+] all-ones bytes in mmc_spi_setup_data_message()
556 * Multiblock reads are followed by N(AC) [1+] all-ones bytes before in mmc_spi_setup_data_message()
561 * come zero or more busy bytes, then N(WR) [1+] all-ones bytes. in mmc_spi_setup_data_message()
562 * Then single block reads may deselect, and multiblock ones issue in mmc_spi_setup_data_message()
570 t->tx_buf = host->ones; in mmc_spi_setup_data_message()
579 * - caller handled preceding N(WR) [1+] all-ones bytes
584 * - an all-ones byte ... card writes a data-response byte
585 * - followed by N(EC) [0+] all-ones bytes, card writes zero/'busy'
669 * - skip leading all-ones bytes ... either
677 * After single block reads, we're done; N(EC) [0+] all-ones bytes follow
694 * applies, before the all-ones bytes ... just cope with that. in mmc_spi_readblock()
857 * all-ones bytes ... skip N(BR) (0..1), scan the rest for in mmc_spi_data_do()
1146 void *ones; in mmc_spi_probe() local
1176 /* We need a supply of ones to transmit. This is the only time in mmc_spi_probe()
1183 ones = kmalloc(MMC_SPI_BLOCKSIZE, GFP_KERNEL); in mmc_spi_probe()
1184 if (!ones) in mmc_spi_probe()
1186 memset(ones, 0xff, MMC_SPI_BLOCKSIZE); in mmc_spi_probe()
1218 host->ones = ones; in mmc_spi_probe()
1247 host->status.tx_buf = host->ones; in mmc_spi_probe()
1310 kfree(ones); in mmc_spi_probe()
1327 kfree(host->ones); in mmc_spi_remove()