Searched refs:mb1_transfer (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/mfd/
H A Ddb8500-prcmu.c368 * mb1_transfer - state needed for mailbox 1 communication.
384 } mb1_transfer; variable in typeref:struct:__anon6296
903 mutex_lock(&mb1_transfer.lock); db8500_prcmu_set_arm_opp()
913 wait_for_completion(&mb1_transfer.work); db8500_prcmu_set_arm_opp()
915 if ((mb1_transfer.ack.header != MB1H_ARM_APE_OPP) || db8500_prcmu_set_arm_opp()
916 (mb1_transfer.ack.arm_opp != opp)) db8500_prcmu_set_arm_opp()
919 mutex_unlock(&mb1_transfer.lock); db8500_prcmu_set_arm_opp()
1020 if (opp == mb1_transfer.ape_opp) db8500_prcmu_set_ape_opp()
1023 mutex_lock(&mb1_transfer.lock); db8500_prcmu_set_ape_opp()
1025 if (mb1_transfer.ape_opp == APE_50_PARTLY_25_OPP) db8500_prcmu_set_ape_opp()
1028 if ((opp != APE_100_OPP) && (mb1_transfer.ape_opp != APE_100_OPP)) db8500_prcmu_set_ape_opp()
1040 wait_for_completion(&mb1_transfer.work); db8500_prcmu_set_ape_opp()
1042 if ((mb1_transfer.ack.header != MB1H_ARM_APE_OPP) || db8500_prcmu_set_ape_opp()
1043 (mb1_transfer.ack.ape_opp != opp)) db8500_prcmu_set_ape_opp()
1048 (r && (mb1_transfer.ape_opp == APE_50_PARTLY_25_OPP))) db8500_prcmu_set_ape_opp()
1051 mb1_transfer.ape_opp = opp; db8500_prcmu_set_ape_opp()
1053 mutex_unlock(&mb1_transfer.lock); db8500_prcmu_set_ape_opp()
1080 mutex_lock(&mb1_transfer.lock); db8500_prcmu_request_ape_opp_100_voltage()
1102 wait_for_completion(&mb1_transfer.work); db8500_prcmu_request_ape_opp_100_voltage()
1104 if ((mb1_transfer.ack.header != header) || db8500_prcmu_request_ape_opp_100_voltage()
1105 ((mb1_transfer.ack.ape_voltage_status & BIT(0)) != 0)) db8500_prcmu_request_ape_opp_100_voltage()
1109 mutex_unlock(&mb1_transfer.lock); db8500_prcmu_request_ape_opp_100_voltage()
1123 mutex_lock(&mb1_transfer.lock); prcmu_release_usb_wakeup_state()
1132 wait_for_completion(&mb1_transfer.work); prcmu_release_usb_wakeup_state()
1134 if ((mb1_transfer.ack.header != MB1H_RELEASE_USB_WAKEUP) || prcmu_release_usb_wakeup_state()
1135 ((mb1_transfer.ack.ape_voltage_status & BIT(0)) != 0)) prcmu_release_usb_wakeup_state()
1138 mutex_unlock(&mb1_transfer.lock); prcmu_release_usb_wakeup_state()
1154 mutex_lock(&mb1_transfer.lock); request_pll()
1163 wait_for_completion(&mb1_transfer.work); request_pll()
1165 if (mb1_transfer.ack.header != MB1H_PLL_ON_OFF) request_pll()
1168 mutex_unlock(&mb1_transfer.lock); request_pll()
2365 mutex_lock(&mb1_transfer.lock); db8500_prcmu_modem_reset()
2372 wait_for_completion(&mb1_transfer.work); db8500_prcmu_modem_reset()
2379 mutex_unlock(&mb1_transfer.lock); db8500_prcmu_modem_reset()
2443 mb1_transfer.ack.header = readb(tcdm_base + PRCM_MBOX_HEADER_REQ_MB1); read_mailbox_1()
2444 mb1_transfer.ack.arm_opp = readb(tcdm_base + read_mailbox_1()
2446 mb1_transfer.ack.ape_opp = readb(tcdm_base + read_mailbox_1()
2448 mb1_transfer.ack.ape_voltage_status = readb(tcdm_base + read_mailbox_1()
2451 complete(&mb1_transfer.work); read_mailbox_1()
2741 mutex_init(&mb1_transfer.lock); db8500_prcmu_early_init()
2742 init_completion(&mb1_transfer.work); db8500_prcmu_early_init()
2743 mb1_transfer.ape_opp = APE_NO_CHANGE; db8500_prcmu_early_init()

Completed in 61 milliseconds