Lines Matching refs:mb5_transfer
440 } mb5_transfer; variable
2103 mutex_lock(&mb5_transfer.lock); in prcmu_abb_read()
2116 if (!wait_for_completion_timeout(&mb5_transfer.work, in prcmu_abb_read()
2122 r = ((mb5_transfer.ack.status == I2C_RD_OK) ? 0 : -EIO); in prcmu_abb_read()
2126 *value = mb5_transfer.ack.value; in prcmu_abb_read()
2128 mutex_unlock(&mb5_transfer.lock); in prcmu_abb_read()
2153 mutex_lock(&mb5_transfer.lock); in prcmu_abb_write_masked()
2166 if (!wait_for_completion_timeout(&mb5_transfer.work, in prcmu_abb_write_masked()
2172 r = ((mb5_transfer.ack.status == I2C_WR_OK) ? 0 : -EIO); in prcmu_abb_write_masked()
2175 mutex_unlock(&mb5_transfer.lock); in prcmu_abb_write_masked()
2438 mb5_transfer.ack.status = readb(tcdm_base + PRCM_ACK_MB5_I2C_STATUS); in read_mailbox_5()
2439 mb5_transfer.ack.value = readb(tcdm_base + PRCM_ACK_MB5_I2C_VAL); in read_mailbox_5()
2441 complete(&mb5_transfer.work); in read_mailbox_5()
2691 mutex_init(&mb5_transfer.lock); in db8500_prcmu_early_init()
2692 init_completion(&mb5_transfer.work); in db8500_prcmu_early_init()