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
262 * two data bits, but otherwise it's all ones. in mmc_spi_response_get()
273 /* Card sends N(CR) (== 1..8) bytes of all-ones then one in mmc_spi_response_get()
443 * - an all-ones byte to ensure the card is ready in mmc_spi_command_send()
448 * We init the whole buffer to all-ones, which is what we need in mmc_spi_command_send()
458 /* Then, read up to 13 bytes (while writing all-ones): in mmc_spi_command_send()
459 * - N(CR) (== 1..8) bytes of all-ones in mmc_spi_command_send()
468 * - N(EC) (== 0..N) bytes of all-ones, before deselect/finish in mmc_spi_command_send()
469 * - N(RC) (== 1..N) bytes of all-ones, before next command in mmc_spi_command_send()
470 * - N(WR) (== 1..N) bytes of all-ones, before data write in mmc_spi_command_send()
487 * + N(CX) (== 0..8) bytes of all-ones, before CSD or CID in mmc_spi_command_send()
488 * + N(AC) (== 1..many) bytes of all-ones in mmc_spi_command_send()
548 * requires us to write ones; but Linux defaults to writing zeroes;
549 * so we explicitly initialize it to all ones on RX paths.
586 * either TX-only, or RX with TX-ones. in mmc_spi_setup_data_message()
590 t->tx_buf = host->ones; in mmc_spi_setup_data_message()
604 t->tx_buf = host->ones; in mmc_spi_setup_data_message()
613 * A single block read is followed by N(EC) [0+] all-ones bytes in mmc_spi_setup_data_message()
616 * Multiblock reads are followed by N(AC) [1+] all-ones bytes before in mmc_spi_setup_data_message()
621 * come zero or more busy bytes, then N(WR) [1+] all-ones bytes. in mmc_spi_setup_data_message()
622 * Then single block reads may deselect, and multiblock ones issue in mmc_spi_setup_data_message()
630 t->tx_buf = host->ones; in mmc_spi_setup_data_message()
642 * - caller handled preceding N(WR) [1+] all-ones bytes
647 * - an all-ones byte ... card writes a data-response byte
648 * - followed by N(EC) [0+] all-ones bytes, card writes zero/'busy'
744 * - skip leading all-ones bytes ... either
752 * After single block reads, we're done; N(EC) [0+] all-ones bytes follow
769 * applies, before the all-ones bytes ... just cope with that. in mmc_spi_readblock()
981 * all-ones bytes ... skip N(BR) (0..1), scan the rest for in mmc_spi_data_do()
1292 host->ones_dma = dma_map_single(dev, host->ones, MMC_SPI_BLOCKSIZE, in mmc_spi_dma_alloc()
1329 void *ones; in mmc_spi_probe() local
1359 /* We need a supply of ones to transmit. This is the only time in mmc_spi_probe()
1366 ones = kmalloc(MMC_SPI_BLOCKSIZE, GFP_KERNEL); in mmc_spi_probe()
1367 if (!ones) in mmc_spi_probe()
1369 memset(ones, 0xff, MMC_SPI_BLOCKSIZE); in mmc_spi_probe()
1398 host->ones = ones; in mmc_spi_probe()
1432 host->status.tx_buf = host->ones; in mmc_spi_probe()
1500 kfree(ones); in mmc_spi_probe()
1518 kfree(host->ones); in mmc_spi_remove()