Lines Matching refs:qca
33 qcaspi_spi_error(struct qcaspi *qca) in qcaspi_spi_error() argument
35 if (qca->sync != QCASPI_SYNC_READY) in qcaspi_spi_error()
38 netdev_err(qca->net_dev, "spi error\n"); in qcaspi_spi_error()
39 qca->sync = QCASPI_SYNC_UNKNOWN; in qcaspi_spi_error()
40 qca->stats.spi_err++; in qcaspi_spi_error()
44 qcaspi_read_register(struct qcaspi *qca, u16 reg, u16 *result) in qcaspi_read_register() argument
66 if (qca->legacy_mode) { in qcaspi_read_register()
67 spi_sync(qca->spi_dev, &msg); in qcaspi_read_register()
71 ret = spi_sync(qca->spi_dev, &msg); in qcaspi_read_register()
77 qcaspi_spi_error(qca); in qcaspi_read_register()
85 __qcaspi_write_register(struct qcaspi *qca, u16 reg, u16 value) in __qcaspi_write_register() argument
105 if (qca->legacy_mode) { in __qcaspi_write_register()
106 spi_sync(qca->spi_dev, &msg); in __qcaspi_write_register()
110 ret = spi_sync(qca->spi_dev, &msg); in __qcaspi_write_register()
116 qcaspi_spi_error(qca); in __qcaspi_write_register()
122 qcaspi_write_register(struct qcaspi *qca, u16 reg, u16 value, int retry) in qcaspi_write_register() argument
128 ret = __qcaspi_write_register(qca, reg, value); in qcaspi_write_register()
135 ret = qcaspi_read_register(qca, reg, &confirmed); in qcaspi_write_register()
144 qca->stats.write_verify_failed++; in qcaspi_write_register()