Lines Matching refs:transfer

135 	 * transfer.
137 if (sc->transfer.active == false) {
170 * it at the beginning of the transfer.
188 * transfer in the PIO receive path above and it will
193 sc->transfer.done = true;
195 "%s: transfer done\n", __func__);
393 device_printf(dev, "ERROR: Could not read transfer config\n");
457 * Do a PIO transfer.
484 * Make initial choices for transfer configuration.
489 "ERROR: failed to setup transfer selection (%d)\n",
495 sc->transfer.tx_buf = tx_buf;
496 sc->transfer.tx_len = tx_len;
497 sc->transfer.rx_buf = rx_buf;
498 sc->transfer.rx_len = rx_len;
499 sc->transfer.done = false;
500 sc->transfer.active = false;
503 * Loop until the full transfer set is done.
506 * setting a maximum transfer size for the hardware and choose
509 while (sc->transfer.tx_offset < sc->transfer.tx_len) {
511 * Set transfer to false early; this covers
512 * it also finishing a sub-transfer and we're
514 * starting a new transfer.
516 sc->transfer.active = false;
521 sc->transfer.tx_offset, sc->transfer.tx_len,
522 sc->transfer.rx_offset, sc->transfer.rx_len);
527 * Otherwise the second sub-transfer that we queue up
539 sc->transfer.done = false;
542 * Configure what the transfer configuration for this
543 * sub-transfer will be.
548 "ERROR: failed to setup sub transfer (%d)\n",
555 * the PIO transfer size.
567 * This is what we'd do to setup the block transfer sizes.
630 sc->transfer.active = true;
676 * sub-transfer) or timeout.
679 while (ret == 0 && sc->transfer.done == false) {
697 * Blank the transfer state so we don't use an old transfer
701 sc->transfer.active = false;
784 * cmd buffer transfer
790 "ERROR: failed to transfer cmd payload (%u)\n", ret);
795 * data buffer transfer
802 "ERROR: failed to transfer data payload (%u)\n",