Lines Matching refs:mb0_transfer

365 } mb0_transfer;  variable
787 spin_lock_irqsave(&mb0_transfer.lock, flags); in db8500_prcmu_set_power_state()
800 spin_unlock_irqrestore(&mb0_transfer.lock, flags); in db8500_prcmu_set_power_state()
823 dbb_events = mb0_transfer.req.dbb_irqs | mb0_transfer.req.dbb_wakeups; in config_wakeups()
826 abb_events = mb0_transfer.req.abb_events; in config_wakeups()
856 spin_lock_irqsave(&mb0_transfer.lock, flags); in db8500_prcmu_enable_wakeups()
858 mb0_transfer.req.dbb_wakeups = bits; in db8500_prcmu_enable_wakeups()
861 spin_unlock_irqrestore(&mb0_transfer.lock, flags); in db8500_prcmu_enable_wakeups()
868 spin_lock_irqsave(&mb0_transfer.lock, flags); in db8500_prcmu_config_abb_event_readout()
870 mb0_transfer.req.abb_events = abb_events; in db8500_prcmu_config_abb_event_readout()
873 spin_unlock_irqrestore(&mb0_transfer.lock, flags); in db8500_prcmu_config_abb_event_readout()
2281 mutex_lock(&mb0_transfer.ac_wake_lock); in prcmu_ac_wake_req()
2302 if (!wait_for_completion_timeout(&mb0_transfer.ac_wake_work, in prcmu_ac_wake_req()
2310 mutex_unlock(&mb0_transfer.ac_wake_lock); in prcmu_ac_wake_req()
2321 mutex_lock(&mb0_transfer.ac_wake_lock); in prcmu_ac_sleep_req()
2330 if (!wait_for_completion_timeout(&mb0_transfer.ac_wake_work, in prcmu_ac_sleep_req()
2339 mutex_unlock(&mb0_transfer.ac_wake_lock); in prcmu_ac_sleep_req()
2396 spin_lock_irqsave(&mb0_transfer.lock, flags); in ack_dbb_wakeup()
2404 spin_unlock_irqrestore(&mb0_transfer.lock, flags); in ack_dbb_wakeup()
2430 complete(&mb0_transfer.ac_wake_work); in read_mailbox_0()
2434 ev &= mb0_transfer.req.dbb_irqs; in read_mailbox_0()
2573 spin_lock_irqsave(&mb0_transfer.lock, flags); in prcmu_mask_work()
2577 spin_unlock_irqrestore(&mb0_transfer.lock, flags); in prcmu_mask_work()
2584 spin_lock_irqsave(&mb0_transfer.dbb_irqs_lock, flags); in prcmu_irq_mask()
2586 mb0_transfer.req.dbb_irqs &= ~prcmu_irq_bit[d->hwirq]; in prcmu_irq_mask()
2588 spin_unlock_irqrestore(&mb0_transfer.dbb_irqs_lock, flags); in prcmu_irq_mask()
2591 schedule_work(&mb0_transfer.mask_work); in prcmu_irq_mask()
2598 spin_lock_irqsave(&mb0_transfer.dbb_irqs_lock, flags); in prcmu_irq_unmask()
2600 mb0_transfer.req.dbb_irqs |= prcmu_irq_bit[d->hwirq]; in prcmu_irq_unmask()
2602 spin_unlock_irqrestore(&mb0_transfer.dbb_irqs_lock, flags); in prcmu_irq_unmask()
2605 schedule_work(&mb0_transfer.mask_work); in prcmu_irq_unmask()
2747 spin_lock_init(&mb0_transfer.lock); in db8500_prcmu_early_init()
2748 spin_lock_init(&mb0_transfer.dbb_irqs_lock); in db8500_prcmu_early_init()
2749 mutex_init(&mb0_transfer.ac_wake_lock); in db8500_prcmu_early_init()
2750 init_completion(&mb0_transfer.ac_wake_work); in db8500_prcmu_early_init()
2765 INIT_WORK(&mb0_transfer.mask_work, prcmu_mask_work); in db8500_prcmu_early_init()