Lines Matching full:ones

125 	/* Specs say to write ones most of the time, even when the card
127 * This is our source of those ones.
129 void *ones; member
235 * two data bits, but otherwise it's all ones. in mmc_spi_response_get()
246 /* Card sends N(CR) (== 1..8) bytes of all-ones then one in mmc_spi_response_get()
416 * - an all-ones byte to ensure the card is ready in mmc_spi_command_send()
421 * We init the whole buffer to all-ones, which is what we need in mmc_spi_command_send()
431 /* Then, read up to 13 bytes (while writing all-ones): in mmc_spi_command_send()
432 * - N(CR) (== 1..8) bytes of all-ones in mmc_spi_command_send()
441 * - N(EC) (== 0..N) bytes of all-ones, before deselect/finish in mmc_spi_command_send()
442 * - N(RC) (== 1..N) bytes of all-ones, before next command in mmc_spi_command_send()
443 * - N(WR) (== 1..N) bytes of all-ones, before data write in mmc_spi_command_send()
460 * + N(CX) (== 0..8) bytes of all-ones, before CSD or CID in mmc_spi_command_send()
461 * + N(AC) (== 1..many) bytes of all-ones in mmc_spi_command_send()
509 * requires us to write ones; but Linux defaults to writing zeroes;
510 * so we explicitly initialize it to all ones on RX paths.
539 * either TX-only, or RX with TX-ones. in mmc_spi_setup_data_message()
543 t->tx_buf = host->ones; in mmc_spi_setup_data_message()
554 t->tx_buf = host->ones; in mmc_spi_setup_data_message()
560 * A single block read is followed by N(EC) [0+] all-ones bytes in mmc_spi_setup_data_message()
563 * Multiblock reads are followed by N(AC) [1+] all-ones bytes before in mmc_spi_setup_data_message()
568 * come zero or more busy bytes, then N(WR) [1+] all-ones bytes. in mmc_spi_setup_data_message()
569 * Then single block reads may deselect, and multiblock ones issue in mmc_spi_setup_data_message()
577 t->tx_buf = host->ones; in mmc_spi_setup_data_message()
586 * - caller handled preceding N(WR) [1+] all-ones bytes
591 * - an all-ones byte ... card writes a data-response byte
592 * - followed by N(EC) [0+] all-ones bytes, card writes zero/'busy'
676 * - skip leading all-ones bytes ... either
684 * After single block reads, we're done; N(EC) [0+] all-ones bytes follow
701 * applies, before the all-ones bytes ... just cope with that. in mmc_spi_readblock()
862 * all-ones bytes ... skip N(BR) (0..1), scan the rest for in mmc_spi_data_do()
1151 void *ones; in mmc_spi_probe() local
1181 /* We need a supply of ones to transmit. This is the only time in mmc_spi_probe()
1188 ones = kmalloc(MMC_SPI_BLOCKSIZE, GFP_KERNEL); in mmc_spi_probe()
1189 if (!ones) in mmc_spi_probe()
1191 memset(ones, 0xff, MMC_SPI_BLOCKSIZE); in mmc_spi_probe()
1220 host->ones = ones; in mmc_spi_probe()
1249 host->status.tx_buf = host->ones; in mmc_spi_probe()
1312 kfree(ones); in mmc_spi_probe()
1329 kfree(host->ones); in mmc_spi_remove()