Lines Matching refs:mb5_transfer
440 } mb5_transfer; variable
2179 mutex_lock(&mb5_transfer.lock); in prcmu_abb_read()
2192 if (!wait_for_completion_timeout(&mb5_transfer.work, in prcmu_abb_read()
2198 r = ((mb5_transfer.ack.status == I2C_RD_OK) ? 0 : -EIO); in prcmu_abb_read()
2202 *value = mb5_transfer.ack.value; in prcmu_abb_read()
2204 mutex_unlock(&mb5_transfer.lock); in prcmu_abb_read()
2229 mutex_lock(&mb5_transfer.lock); in prcmu_abb_write_masked()
2242 if (!wait_for_completion_timeout(&mb5_transfer.work, in prcmu_abb_write_masked()
2248 r = ((mb5_transfer.ack.status == I2C_WR_OK) ? 0 : -EIO); in prcmu_abb_write_masked()
2251 mutex_unlock(&mb5_transfer.lock); in prcmu_abb_write_masked()
2512 mb5_transfer.ack.status = readb(tcdm_base + PRCM_ACK_MB5_I2C_STATUS); in read_mailbox_5()
2513 mb5_transfer.ack.value = readb(tcdm_base + PRCM_ACK_MB5_I2C_VAL); in read_mailbox_5()
2515 complete(&mb5_transfer.work); in read_mailbox_5()
2762 mutex_init(&mb5_transfer.lock); in db8500_prcmu_early_init()
2763 init_completion(&mb5_transfer.work); in db8500_prcmu_early_init()