Lines Matching refs: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;
242 * two data bits, but otherwise it's all ones.
253 /* Card sends N(CR) (== 1..8) bytes of all-ones then one
423 * - an all-ones byte to ensure the card is ready
428 * We init the whole buffer to all-ones, which is what we need
438 /* Then, read up to 13 bytes (while writing all-ones):
439 * - N(CR) (== 1..8) bytes of all-ones
448 * - N(EC) (== 0..N) bytes of all-ones, before deselect/finish
449 * - N(RC) (== 1..N) bytes of all-ones, before next command
450 * - N(WR) (== 1..N) bytes of all-ones, before data write
467 * + N(CX) (== 0..8) bytes of all-ones, before CSD or CID
468 * + N(AC) (== 1..many) bytes of all-ones
516 * requires us to write ones; but Linux defaults to writing zeroes;
517 * so we explicitly initialize it to all ones on RX paths.
546 * either TX-only, or RX with TX-ones.
550 t->tx_buf = host->ones;
561 t->tx_buf = host->ones;
567 * A single block read is followed by N(EC) [0+] all-ones bytes
570 * Multiblock reads are followed by N(AC) [1+] all-ones bytes before
575 * come zero or more busy bytes, then N(WR) [1+] all-ones bytes.
576 * Then single block reads may deselect, and multiblock ones issue
584 t->tx_buf = host->ones;
593 * - caller handled preceding N(WR) [1+] all-ones bytes
598 * - an all-ones byte ... card writes a data-response byte
599 * - followed by N(EC) [0+] all-ones bytes, card writes zero/'busy'
683 * - skip leading all-ones bytes ... either
691 * After single block reads, we're done; N(EC) [0+] all-ones bytes follow
708 * applies, before the all-ones bytes ... just cope with that.
874 * all-ones bytes ... skip N(BR) (0..1), scan the rest for
1164 void *ones;
1194 /* We need a supply of ones to transmit. This is the only time
1201 ones = kmalloc(MMC_SPI_BLOCKSIZE, GFP_KERNEL);
1202 if (!ones)
1204 memset(ones, 0xff, MMC_SPI_BLOCKSIZE);
1233 host->ones = ones;
1262 host->status.tx_buf = host->ones;
1325 kfree(ones);
1342 kfree(host->ones);