Lines Matching refs:qca
18 qcaspi_spi_error(struct qcaspi *qca) in qcaspi_spi_error() argument
20 if (qca->sync != QCASPI_SYNC_READY) in qcaspi_spi_error()
23 netdev_err(qca->net_dev, "spi error\n"); in qcaspi_spi_error()
24 qca->sync = QCASPI_SYNC_UNKNOWN; in qcaspi_spi_error()
25 qca->stats.spi_err++; in qcaspi_spi_error()
29 qcaspi_read_register(struct qcaspi *qca, u16 reg, u16 *result) in qcaspi_read_register() argument
51 if (qca->legacy_mode) { in qcaspi_read_register()
52 spi_sync(qca->spi_dev, &msg); in qcaspi_read_register()
56 ret = spi_sync(qca->spi_dev, &msg); in qcaspi_read_register()
62 qcaspi_spi_error(qca); in qcaspi_read_register()
70 __qcaspi_write_register(struct qcaspi *qca, u16 reg, u16 value) in __qcaspi_write_register() argument
90 if (qca->legacy_mode) { in __qcaspi_write_register()
91 spi_sync(qca->spi_dev, &msg); in __qcaspi_write_register()
95 ret = spi_sync(qca->spi_dev, &msg); in __qcaspi_write_register()
101 qcaspi_spi_error(qca); in __qcaspi_write_register()
107 qcaspi_write_register(struct qcaspi *qca, u16 reg, u16 value, int retry) in qcaspi_write_register() argument
113 ret = __qcaspi_write_register(qca, reg, value); in qcaspi_write_register()
120 ret = qcaspi_read_register(qca, reg, &confirmed); in qcaspi_write_register()
129 qca->stats.write_verify_failed++; in qcaspi_write_register()