Lines Matching refs:status

59 static int mentor_i2c_lost_arbitration(uint32_t *status)  in mentor_i2c_lost_arbitration()  argument
61 *status = mmio_read_32((uintptr_t)&base->status); in mentor_i2c_lost_arbitration()
62 if ((*status == I2C_STATUS_LOST_ARB_DATA_ADDR_TRANSFER) || in mentor_i2c_lost_arbitration()
63 (*status == I2C_STATUS_LOST_ARB_GENERAL_CALL)) in mentor_i2c_lost_arbitration()
109 uint32_t status; in mentor_i2c_start_bit_set() local
138 if (mentor_i2c_lost_arbitration(&status)) { in mentor_i2c_start_bit_set()
140 __func__, __LINE__, status); in mentor_i2c_start_bit_set()
143 if ((status != I2C_STATUS_START) && in mentor_i2c_start_bit_set()
144 (status != I2C_STATUS_REPEATED_START)) { in mentor_i2c_start_bit_set()
145 ERROR("Got status %x after enable start bit.\n", status); in mentor_i2c_start_bit_set()
155 uint32_t status; in mentor_i2c_stop_bit_set() local
180 if (mentor_i2c_lost_arbitration(&status)) { in mentor_i2c_stop_bit_set()
182 __func__, __LINE__, status); in mentor_i2c_stop_bit_set()
185 if (status != I2C_STATUS_IDLE) { in mentor_i2c_stop_bit_set()
186 ERROR("Got status %x after enable stop bit.\n", status); in mentor_i2c_stop_bit_set()
195 uint32_t reg, status; in mentor_i2c_address_set() local
210 if (mentor_i2c_lost_arbitration(&status)) { in mentor_i2c_address_set()
212 __func__, __LINE__, status); in mentor_i2c_address_set()
215 if (((status != I2C_STATUS_ADDR_R_ACK) && (command == I2C_CMD_READ)) || in mentor_i2c_address_set()
216 ((status != I2C_STATUS_ADDR_W_ACK) && (command == I2C_CMD_WRITE))) { in mentor_i2c_address_set()
222 status, (command == I2C_CMD_WRITE) ? "Write" : "Read"); in mentor_i2c_address_set()
304 uint32_t reg, status, block_size_read = block_size; in mentor_i2c_data_receive() local
324 if (mentor_i2c_lost_arbitration(&status)) { in mentor_i2c_data_receive()
326 __func__, __LINE__, status); in mentor_i2c_data_receive()
329 if ((status != I2C_STATUS_DATA_R_ACK) && in mentor_i2c_data_receive()
331 ERROR("Status %x in read transaction\n", status); in mentor_i2c_data_receive()
334 if ((status != I2C_STATUS_DATA_R_NAK) && in mentor_i2c_data_receive()
336 ERROR("Status %x in Rd Terminate\n", status); in mentor_i2c_data_receive()
353 uint32_t status, block_size_write = block_size; in mentor_i2c_data_transmit() local
376 if (mentor_i2c_lost_arbitration(&status)) { in mentor_i2c_data_transmit()
378 __func__, __LINE__, status); in mentor_i2c_data_transmit()
381 if (status != I2C_STATUS_DATA_W_ACK) { in mentor_i2c_data_transmit()
382 ERROR("Status %x in write transaction\n", status); in mentor_i2c_data_transmit()