Lines Matching refs:recv_count
197 unsigned int recv_count; member
414 if (id->recv_count > id->curr_recv_count) in cdns_i2c_master_isr()
426 if (id->recv_count > 0) { in cdns_i2c_master_isr()
429 id->recv_count--; in cdns_i2c_master_isr()
437 if (id->recv_count <= CDNS_I2C_FIFO_DEPTH && in cdns_i2c_master_isr()
469 if (((int)(id->recv_count) - CDNS_I2C_FIFO_DEPTH) > in cdns_i2c_master_isr()
476 cdns_i2c_writereg(id->recv_count - in cdns_i2c_master_isr()
479 id->curr_recv_count = id->recv_count; in cdns_i2c_master_isr()
481 } else if (id->recv_count && !hold_quirk && in cdns_i2c_master_isr()
488 if (id->recv_count > CDNS_I2C_TRANSFER_SIZE) { in cdns_i2c_master_isr()
493 cdns_i2c_writereg(id->recv_count, in cdns_i2c_master_isr()
495 id->curr_recv_count = id->recv_count; in cdns_i2c_master_isr()
500 if ((isr_status & CDNS_I2C_IXR_COMP) && !id->recv_count) { in cdns_i2c_master_isr()
590 id->recv_count = id->p_msg->len; in cdns_i2c_mrecv()
597 id->recv_count = I2C_SMBUS_BLOCK_MAX + 1; in cdns_i2c_mrecv()
599 id->curr_recv_count = id->recv_count; in cdns_i2c_mrecv()
605 if (id->recv_count > CDNS_I2C_FIFO_DEPTH) in cdns_i2c_mrecv()
620 if (id->recv_count > CDNS_I2C_TRANSFER_SIZE) { in cdns_i2c_mrecv()
625 cdns_i2c_writereg(id->recv_count, CDNS_I2C_XFER_SIZE_OFFSET); in cdns_i2c_mrecv()
631 (id->recv_count <= CDNS_I2C_FIFO_DEPTH)) { in cdns_i2c_mrecv()