Lines Matching refs:mb1_transfer
384 } mb1_transfer; variable
812 mutex_lock(&mb1_transfer.lock); in db8500_prcmu_set_arm_opp()
822 wait_for_completion(&mb1_transfer.work); in db8500_prcmu_set_arm_opp()
824 if ((mb1_transfer.ack.header != MB1H_ARM_APE_OPP) || in db8500_prcmu_set_arm_opp()
825 (mb1_transfer.ack.arm_opp != opp)) in db8500_prcmu_set_arm_opp()
828 mutex_unlock(&mb1_transfer.lock); in db8500_prcmu_set_arm_opp()
910 if (opp == mb1_transfer.ape_opp) in db8500_prcmu_set_ape_opp()
913 mutex_lock(&mb1_transfer.lock); in db8500_prcmu_set_ape_opp()
915 if (mb1_transfer.ape_opp == APE_50_PARTLY_25_OPP) in db8500_prcmu_set_ape_opp()
918 if ((opp != APE_100_OPP) && (mb1_transfer.ape_opp != APE_100_OPP)) in db8500_prcmu_set_ape_opp()
930 wait_for_completion(&mb1_transfer.work); in db8500_prcmu_set_ape_opp()
932 if ((mb1_transfer.ack.header != MB1H_ARM_APE_OPP) || in db8500_prcmu_set_ape_opp()
933 (mb1_transfer.ack.ape_opp != opp)) in db8500_prcmu_set_ape_opp()
938 (r && (mb1_transfer.ape_opp == APE_50_PARTLY_25_OPP))) in db8500_prcmu_set_ape_opp()
941 mb1_transfer.ape_opp = opp; in db8500_prcmu_set_ape_opp()
943 mutex_unlock(&mb1_transfer.lock); in db8500_prcmu_set_ape_opp()
970 mutex_lock(&mb1_transfer.lock); in db8500_prcmu_request_ape_opp_100_voltage()
992 wait_for_completion(&mb1_transfer.work); in db8500_prcmu_request_ape_opp_100_voltage()
994 if ((mb1_transfer.ack.header != header) || in db8500_prcmu_request_ape_opp_100_voltage()
995 ((mb1_transfer.ack.ape_voltage_status & BIT(0)) != 0)) in db8500_prcmu_request_ape_opp_100_voltage()
999 mutex_unlock(&mb1_transfer.lock); in db8500_prcmu_request_ape_opp_100_voltage()
1013 mutex_lock(&mb1_transfer.lock); in prcmu_release_usb_wakeup_state()
1022 wait_for_completion(&mb1_transfer.work); in prcmu_release_usb_wakeup_state()
1024 if ((mb1_transfer.ack.header != MB1H_RELEASE_USB_WAKEUP) || in prcmu_release_usb_wakeup_state()
1025 ((mb1_transfer.ack.ape_voltage_status & BIT(0)) != 0)) in prcmu_release_usb_wakeup_state()
1028 mutex_unlock(&mb1_transfer.lock); in prcmu_release_usb_wakeup_state()
1044 mutex_lock(&mb1_transfer.lock); in request_pll()
1053 wait_for_completion(&mb1_transfer.work); in request_pll()
1055 if (mb1_transfer.ack.header != MB1H_PLL_ON_OFF) in request_pll()
1058 mutex_unlock(&mb1_transfer.lock); in request_pll()
2301 mutex_lock(&mb1_transfer.lock); in db8500_prcmu_modem_reset()
2308 wait_for_completion(&mb1_transfer.work); in db8500_prcmu_modem_reset()
2315 mutex_unlock(&mb1_transfer.lock); in db8500_prcmu_modem_reset()
2379 mb1_transfer.ack.header = readb(tcdm_base + PRCM_MBOX_HEADER_REQ_MB1); in read_mailbox_1()
2380 mb1_transfer.ack.arm_opp = readb(tcdm_base + in read_mailbox_1()
2382 mb1_transfer.ack.ape_opp = readb(tcdm_base + in read_mailbox_1()
2384 mb1_transfer.ack.ape_voltage_status = readb(tcdm_base + in read_mailbox_1()
2387 complete(&mb1_transfer.work); in read_mailbox_1()
2680 mutex_init(&mb1_transfer.lock); in db8500_prcmu_early_init()
2681 init_completion(&mb1_transfer.work); in db8500_prcmu_early_init()
2682 mb1_transfer.ape_opp = APE_NO_CHANGE; in db8500_prcmu_early_init()