Lines Matching refs:recv_count
196 unsigned int recv_count; member
412 if (id->recv_count > id->curr_recv_count) in cdns_i2c_master_isr()
424 if (id->recv_count > 0) { in cdns_i2c_master_isr()
427 id->recv_count--; in cdns_i2c_master_isr()
435 if (id->recv_count <= CDNS_I2C_FIFO_DEPTH && in cdns_i2c_master_isr()
467 if (((int)(id->recv_count) - CDNS_I2C_FIFO_DEPTH) > in cdns_i2c_master_isr()
474 cdns_i2c_writereg(id->recv_count - in cdns_i2c_master_isr()
477 id->curr_recv_count = id->recv_count; in cdns_i2c_master_isr()
479 } else if (id->recv_count && !hold_quirk && in cdns_i2c_master_isr()
486 if (id->recv_count > CDNS_I2C_TRANSFER_SIZE) { in cdns_i2c_master_isr()
491 cdns_i2c_writereg(id->recv_count, in cdns_i2c_master_isr()
493 id->curr_recv_count = id->recv_count; in cdns_i2c_master_isr()
498 if ((isr_status & CDNS_I2C_IXR_COMP) && !id->recv_count) { in cdns_i2c_master_isr()
583 id->recv_count = id->p_msg->len; in cdns_i2c_mrecv()
590 id->recv_count = I2C_SMBUS_BLOCK_MAX + 1; in cdns_i2c_mrecv()
592 id->curr_recv_count = id->recv_count; in cdns_i2c_mrecv()
598 if (id->recv_count > CDNS_I2C_FIFO_DEPTH) in cdns_i2c_mrecv()
613 if (id->recv_count > CDNS_I2C_TRANSFER_SIZE) { in cdns_i2c_mrecv()
618 cdns_i2c_writereg(id->recv_count, CDNS_I2C_XFER_SIZE_OFFSET); in cdns_i2c_mrecv()
627 (id->recv_count <= CDNS_I2C_FIFO_DEPTH)) in cdns_i2c_mrecv()