Lines Matching refs:mb1_transfer
384 } mb1_transfer; variable
900 mutex_lock(&mb1_transfer.lock); in db8500_prcmu_set_arm_opp()
910 wait_for_completion(&mb1_transfer.work); in db8500_prcmu_set_arm_opp()
912 if ((mb1_transfer.ack.header != MB1H_ARM_APE_OPP) || in db8500_prcmu_set_arm_opp()
913 (mb1_transfer.ack.arm_opp != opp)) in db8500_prcmu_set_arm_opp()
916 mutex_unlock(&mb1_transfer.lock); in db8500_prcmu_set_arm_opp()
998 if (opp == mb1_transfer.ape_opp) in db8500_prcmu_set_ape_opp()
1001 mutex_lock(&mb1_transfer.lock); in db8500_prcmu_set_ape_opp()
1003 if (mb1_transfer.ape_opp == APE_50_PARTLY_25_OPP) in db8500_prcmu_set_ape_opp()
1006 if ((opp != APE_100_OPP) && (mb1_transfer.ape_opp != APE_100_OPP)) in db8500_prcmu_set_ape_opp()
1018 wait_for_completion(&mb1_transfer.work); in db8500_prcmu_set_ape_opp()
1020 if ((mb1_transfer.ack.header != MB1H_ARM_APE_OPP) || in db8500_prcmu_set_ape_opp()
1021 (mb1_transfer.ack.ape_opp != opp)) in db8500_prcmu_set_ape_opp()
1026 (r && (mb1_transfer.ape_opp == APE_50_PARTLY_25_OPP))) in db8500_prcmu_set_ape_opp()
1029 mb1_transfer.ape_opp = opp; in db8500_prcmu_set_ape_opp()
1031 mutex_unlock(&mb1_transfer.lock); in db8500_prcmu_set_ape_opp()
1058 mutex_lock(&mb1_transfer.lock); in db8500_prcmu_request_ape_opp_100_voltage()
1080 wait_for_completion(&mb1_transfer.work); in db8500_prcmu_request_ape_opp_100_voltage()
1082 if ((mb1_transfer.ack.header != header) || in db8500_prcmu_request_ape_opp_100_voltage()
1083 ((mb1_transfer.ack.ape_voltage_status & BIT(0)) != 0)) in db8500_prcmu_request_ape_opp_100_voltage()
1087 mutex_unlock(&mb1_transfer.lock); in db8500_prcmu_request_ape_opp_100_voltage()
1101 mutex_lock(&mb1_transfer.lock); in prcmu_release_usb_wakeup_state()
1110 wait_for_completion(&mb1_transfer.work); in prcmu_release_usb_wakeup_state()
1112 if ((mb1_transfer.ack.header != MB1H_RELEASE_USB_WAKEUP) || in prcmu_release_usb_wakeup_state()
1113 ((mb1_transfer.ack.ape_voltage_status & BIT(0)) != 0)) in prcmu_release_usb_wakeup_state()
1116 mutex_unlock(&mb1_transfer.lock); in prcmu_release_usb_wakeup_state()
1132 mutex_lock(&mb1_transfer.lock); in request_pll()
1141 wait_for_completion(&mb1_transfer.work); in request_pll()
1143 if (mb1_transfer.ack.header != MB1H_PLL_ON_OFF) in request_pll()
1146 mutex_unlock(&mb1_transfer.lock); in request_pll()
2375 mutex_lock(&mb1_transfer.lock); in db8500_prcmu_modem_reset()
2382 wait_for_completion(&mb1_transfer.work); in db8500_prcmu_modem_reset()
2389 mutex_unlock(&mb1_transfer.lock); in db8500_prcmu_modem_reset()
2453 mb1_transfer.ack.header = readb(tcdm_base + PRCM_MBOX_HEADER_REQ_MB1); in read_mailbox_1()
2454 mb1_transfer.ack.arm_opp = readb(tcdm_base + in read_mailbox_1()
2456 mb1_transfer.ack.ape_opp = readb(tcdm_base + in read_mailbox_1()
2458 mb1_transfer.ack.ape_voltage_status = readb(tcdm_base + in read_mailbox_1()
2461 complete(&mb1_transfer.work); in read_mailbox_1()
2751 mutex_init(&mb1_transfer.lock); in db8500_prcmu_early_init()
2752 init_completion(&mb1_transfer.work); in db8500_prcmu_early_init()
2753 mb1_transfer.ape_opp = APE_NO_CHANGE; in db8500_prcmu_early_init()