Lines Matching defs:status

59 static int mentor_i2c_lost_arbitration(uint32_t *status)
61 *status = mmio_read_32((uintptr_t)&base->status);
62 if ((*status == I2C_STATUS_LOST_ARB_DATA_ADDR_TRANSFER) ||
63 (*status == I2C_STATUS_LOST_ARB_GENERAL_CALL))
109 uint32_t status;
137 /* check the status */
138 if (mentor_i2c_lost_arbitration(&status)) {
139 ERROR("%s - %d: Lost arbitration, got status %x\n",
140 __func__, __LINE__, status);
143 if ((status != I2C_STATUS_START) &&
144 (status != I2C_STATUS_REPEATED_START)) {
145 ERROR("Got status %x after enable start bit.\n", status);
155 uint32_t status;
179 /* check the status */
180 if (mentor_i2c_lost_arbitration(&status)) {
181 ERROR("%s - %d: Lost arbitration, got status %x\n",
182 __func__, __LINE__, status);
185 if (status != I2C_STATUS_IDLE) {
186 ERROR("Got status %x after enable stop bit.\n", status);
195 uint32_t reg, status;
209 /* check the status */
210 if (mentor_i2c_lost_arbitration(&status)) {
211 ERROR("%s - %d: Lost arbitration, got status %x\n",
212 __func__, __LINE__, status);
215 if (((status != I2C_STATUS_ADDR_R_ACK) && (command == I2C_CMD_READ)) ||
216 ((status != I2C_STATUS_ADDR_W_ACK) && (command == I2C_CMD_WRITE))) {
221 INFO("%s: ERROR - status %x addr in %s mode.\n", __func__,
222 status, (command == I2C_CMD_WRITE) ? "Write" : "Read");
304 uint32_t reg, status, block_size_read = block_size;
323 /* check the status */
324 if (mentor_i2c_lost_arbitration(&status)) {
325 ERROR("%s - %d: Lost arbitration, got status %x\n",
326 __func__, __LINE__, status);
329 if ((status != I2C_STATUS_DATA_R_ACK) &&
331 ERROR("Status %x in read transaction\n", status);
334 if ((status != I2C_STATUS_DATA_R_NAK) &&
336 ERROR("Status %x in Rd Terminate\n", status);
353 uint32_t status, block_size_write = block_size;
375 /* check the status */
376 if (mentor_i2c_lost_arbitration(&status)) {
377 ERROR("%s - %d: Lost arbitration, got status %x\n",
378 __func__, __LINE__, status);
381 if (status != I2C_STATUS_DATA_W_ACK) {
382 ERROR("Status %x in write transaction\n", status);