Lines Matching refs:mb0_transfer

365 } mb0_transfer;  variable
699 spin_lock_irqsave(&mb0_transfer.lock, flags); in db8500_prcmu_set_power_state()
712 spin_unlock_irqrestore(&mb0_transfer.lock, flags); in db8500_prcmu_set_power_state()
735 dbb_events = mb0_transfer.req.dbb_irqs | mb0_transfer.req.dbb_wakeups; in config_wakeups()
738 abb_events = mb0_transfer.req.abb_events; in config_wakeups()
768 spin_lock_irqsave(&mb0_transfer.lock, flags); in db8500_prcmu_enable_wakeups()
770 mb0_transfer.req.dbb_wakeups = bits; in db8500_prcmu_enable_wakeups()
773 spin_unlock_irqrestore(&mb0_transfer.lock, flags); in db8500_prcmu_enable_wakeups()
780 spin_lock_irqsave(&mb0_transfer.lock, flags); in db8500_prcmu_config_abb_event_readout()
782 mb0_transfer.req.abb_events = abb_events; in db8500_prcmu_config_abb_event_readout()
785 spin_unlock_irqrestore(&mb0_transfer.lock, flags); in db8500_prcmu_config_abb_event_readout()
2205 mutex_lock(&mb0_transfer.ac_wake_lock); in prcmu_ac_wake_req()
2226 if (!wait_for_completion_timeout(&mb0_transfer.ac_wake_work, in prcmu_ac_wake_req()
2234 mutex_unlock(&mb0_transfer.ac_wake_lock); in prcmu_ac_wake_req()
2245 mutex_lock(&mb0_transfer.ac_wake_lock); in prcmu_ac_sleep_req()
2254 if (!wait_for_completion_timeout(&mb0_transfer.ac_wake_work, in prcmu_ac_sleep_req()
2263 mutex_unlock(&mb0_transfer.ac_wake_lock); in prcmu_ac_sleep_req()
2322 spin_lock_irqsave(&mb0_transfer.lock, flags); in ack_dbb_wakeup()
2330 spin_unlock_irqrestore(&mb0_transfer.lock, flags); in ack_dbb_wakeup()
2356 complete(&mb0_transfer.ac_wake_work); in read_mailbox_0()
2360 ev &= mb0_transfer.req.dbb_irqs; in read_mailbox_0()
2499 spin_lock_irqsave(&mb0_transfer.lock, flags); in prcmu_mask_work()
2503 spin_unlock_irqrestore(&mb0_transfer.lock, flags); in prcmu_mask_work()
2510 spin_lock_irqsave(&mb0_transfer.dbb_irqs_lock, flags); in prcmu_irq_mask()
2512 mb0_transfer.req.dbb_irqs &= ~prcmu_irq_bit[d->hwirq]; in prcmu_irq_mask()
2514 spin_unlock_irqrestore(&mb0_transfer.dbb_irqs_lock, flags); in prcmu_irq_mask()
2517 schedule_work(&mb0_transfer.mask_work); in prcmu_irq_mask()
2524 spin_lock_irqsave(&mb0_transfer.dbb_irqs_lock, flags); in prcmu_irq_unmask()
2526 mb0_transfer.req.dbb_irqs |= prcmu_irq_bit[d->hwirq]; in prcmu_irq_unmask()
2528 spin_unlock_irqrestore(&mb0_transfer.dbb_irqs_lock, flags); in prcmu_irq_unmask()
2531 schedule_work(&mb0_transfer.mask_work); in prcmu_irq_unmask()
2676 spin_lock_init(&mb0_transfer.lock); in db8500_prcmu_early_init()
2677 spin_lock_init(&mb0_transfer.dbb_irqs_lock); in db8500_prcmu_early_init()
2678 mutex_init(&mb0_transfer.ac_wake_lock); in db8500_prcmu_early_init()
2679 init_completion(&mb0_transfer.ac_wake_work); in db8500_prcmu_early_init()
2694 INIT_WORK(&mb0_transfer.mask_work, prcmu_mask_work); in db8500_prcmu_early_init()