Lines Matching refs:mbox
25 int (*startup)(struct omap_mbox *mbox);
26 void (*shutdown)(struct omap_mbox *mbox);
28 mbox_msg_t (*fifo_read)(struct omap_mbox *mbox);
29 void (*fifo_write)(struct omap_mbox *mbox, mbox_msg_t msg);
30 int (*fifo_empty)(struct omap_mbox *mbox);
31 int (*fifo_full)(struct omap_mbox *mbox);
33 void (*enable_irq)(struct omap_mbox *mbox,
35 void (*disable_irq)(struct omap_mbox *mbox,
37 void (*ack_irq)(struct omap_mbox *mbox, omap_mbox_irq_t irq);
38 int (*is_irq)(struct omap_mbox *mbox, omap_mbox_irq_t irq);
40 void (*save_ctx)(struct omap_mbox *mbox);
41 void (*restore_ctx)(struct omap_mbox *mbox);
50 struct omap_mbox *mbox;
71 static inline void omap_mbox_save_ctx(struct omap_mbox *mbox)
73 if (!mbox->ops->save_ctx) {
74 dev_err(mbox->dev, "%s:\tno save\n", __func__);
78 mbox->ops->save_ctx(mbox);
81 static inline void omap_mbox_restore_ctx(struct omap_mbox *mbox)
83 if (!mbox->ops->restore_ctx) {
84 dev_err(mbox->dev, "%s:\tno restore\n", __func__);
88 mbox->ops->restore_ctx(mbox);
91 static inline void omap_mbox_enable_irq(struct omap_mbox *mbox,
94 mbox->ops->enable_irq(mbox, irq);
97 static inline void omap_mbox_disable_irq(struct omap_mbox *mbox,
100 mbox->ops->disable_irq(mbox, irq);