Lines Matching refs:sync
506 if (qca->sync == QCASPI_SYNC_READY)
509 qca->sync = QCASPI_SYNC_UNKNOWN;
510 netdev_dbg(qca->net_dev, "sync: got CPU on, but signature was invalid, restart\n");
517 netdev_dbg(qca->net_dev, "sync: got CPU on, but wrbuf not empty. reset!\n");
518 qca->sync = QCASPI_SYNC_UNKNOWN;
520 netdev_dbg(qca->net_dev, "sync: got CPU on, now in sync\n");
521 qca->sync = QCASPI_SYNC_READY;
527 switch (qca->sync) {
535 qca->sync = QCASPI_SYNC_UNKNOWN;
537 netdev_dbg(qca->net_dev, "sync: bad signature, restart\n");
546 netdev_dbg(qca->net_dev, "sync: could not read signature to reset device, retry.\n");
551 netdev_dbg(qca->net_dev, "sync: resetting device.\n");
556 qca->sync = QCASPI_SYNC_RESET;
562 netdev_dbg(qca->net_dev, "sync: waiting for CPU on, count %u.\n",
566 qca->sync = QCASPI_SYNC_UNKNOWN;
568 netdev_dbg(qca->net_dev, "sync: reset timeout, restarting process.\n");
588 if (qca->sync == QCASPI_SYNC_READY) {
607 if (qca->sync != QCASPI_SYNC_READY) {
608 netdev_dbg(qca->net_dev, "sync: not ready %u, turn off carrier and flush\n",
609 (unsigned int)qca->sync);
631 if (qca->sync != QCASPI_SYNC_READY)
639 /* restart sync */
642 qca->sync = QCASPI_SYNC_UNKNOWN;
647 /* restart sync */
650 qca->sync = QCASPI_SYNC_UNKNOWN;
655 * if sync has occurred
657 if (qca->sync == QCASPI_SYNC_READY) {
665 if (qca->sync == QCASPI_SYNC_READY)
697 qca->sync = QCASPI_SYNC_UNKNOWN;
818 qca->sync = QCASPI_SYNC_UNKNOWN;