/arch/arm/mach-ux500/ |
D | mbox-db5500.c | 59 static struct mbox *get_mbox_with_id(u8 id) in get_mbox_with_id() 66 return (struct mbox *) list_entry(pos, struct mbox, list); in get_mbox_with_id() 69 int mbox_send(struct mbox *mbox, u32 mbox_msg, bool block) in mbox_send() argument 73 spin_lock(&mbox->lock); in mbox_send() 75 dev_dbg(&(mbox->pdev->dev), in mbox_send() 78 mbox_msg, (u32)mbox, mbox->read_index, in mbox_send() 79 mbox->write_index); in mbox_send() 82 while (((mbox->write_index + 1) % MBOX_BUF_SIZE) == mbox->read_index) { in mbox_send() 84 dev_dbg(&(mbox->pdev->dev), in mbox_send() 90 spin_unlock(&mbox->lock); in mbox_send() [all …]
|
D | Makefile | 19 obj-$(CONFIG_U5500_MBOX) += mbox-db5500.o
|
/arch/arm/plat-omap/ |
D | mailbox.c | 46 static inline mbox_msg_t mbox_fifo_read(struct omap_mbox *mbox) in mbox_fifo_read() argument 48 return mbox->ops->fifo_read(mbox); in mbox_fifo_read() 50 static inline void mbox_fifo_write(struct omap_mbox *mbox, mbox_msg_t msg) in mbox_fifo_write() argument 52 mbox->ops->fifo_write(mbox, msg); in mbox_fifo_write() 54 static inline int mbox_fifo_empty(struct omap_mbox *mbox) in mbox_fifo_empty() argument 56 return mbox->ops->fifo_empty(mbox); in mbox_fifo_empty() 58 static inline int mbox_fifo_full(struct omap_mbox *mbox) in mbox_fifo_full() argument 60 return mbox->ops->fifo_full(mbox); in mbox_fifo_full() 64 static inline void ack_mbox_irq(struct omap_mbox *mbox, omap_mbox_irq_t irq) in ack_mbox_irq() argument 66 if (mbox->ops->ack_irq) in ack_mbox_irq() [all …]
|
/arch/arm/plat-omap/include/plat/ |
D | mailbox.h | 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); [all …]
|
/arch/arm/mach-omap2/ |
D | mailbox.c | 62 static void omap2_mbox_enable_irq(struct omap_mbox *mbox, 76 static int omap2_mbox_startup(struct omap_mbox *mbox) in omap2_mbox_startup() argument 80 pm_runtime_enable(mbox->dev->parent); in omap2_mbox_startup() 81 pm_runtime_get_sync(mbox->dev->parent); in omap2_mbox_startup() 86 omap2_mbox_enable_irq(mbox, IRQ_RX); in omap2_mbox_startup() 91 static void omap2_mbox_shutdown(struct omap_mbox *mbox) in omap2_mbox_shutdown() argument 93 pm_runtime_put_sync(mbox->dev->parent); in omap2_mbox_shutdown() 94 pm_runtime_disable(mbox->dev->parent); in omap2_mbox_shutdown() 98 static mbox_msg_t omap2_mbox_fifo_read(struct omap_mbox *mbox) in omap2_mbox_fifo_read() argument 101 &((struct omap_mbox2_priv *)mbox->priv)->rx_fifo; in omap2_mbox_fifo_read() [all …]
|
/arch/arm/mach-omap1/ |
D | mailbox.c | 52 static mbox_msg_t omap1_mbox_fifo_read(struct omap_mbox *mbox) in omap1_mbox_fifo_read() argument 55 &((struct omap_mbox1_priv *)mbox->priv)->rx_fifo; in omap1_mbox_fifo_read() 65 omap1_mbox_fifo_write(struct omap_mbox *mbox, mbox_msg_t msg) in omap1_mbox_fifo_write() argument 68 &((struct omap_mbox1_priv *)mbox->priv)->tx_fifo; in omap1_mbox_fifo_write() 74 static int omap1_mbox_fifo_empty(struct omap_mbox *mbox) in omap1_mbox_fifo_empty() argument 79 static int omap1_mbox_fifo_full(struct omap_mbox *mbox) in omap1_mbox_fifo_full() argument 82 &((struct omap_mbox1_priv *)mbox->priv)->rx_fifo; in omap1_mbox_fifo_full() 89 omap1_mbox_enable_irq(struct omap_mbox *mbox, omap_mbox_type_t irq) in omap1_mbox_enable_irq() argument 92 enable_irq(mbox->irq); in omap1_mbox_enable_irq() 96 omap1_mbox_disable_irq(struct omap_mbox *mbox, omap_mbox_type_t irq) in omap1_mbox_disable_irq() argument [all …]
|
/arch/powerpc/sysdev/ |
D | fsl_rio.h | 125 int mbox, void *buffer, size_t len); 127 void *dev_id, int mbox, int entries); 128 extern void fsl_close_outb_mbox(struct rio_mport *mport, int mbox); 130 void *dev_id, int mbox, int entries); 131 extern void fsl_close_inb_mbox(struct rio_mport *mport, int mbox); 132 extern int fsl_add_inb_buffer(struct rio_mport *mport, int mbox, void *buf); 133 extern void *fsl_get_inb_message(struct rio_mport *mport, int mbox);
|
D | fsl_rmu.c | 651 fsl_add_outb_message(struct rio_mport *mport, struct rio_dev *rdev, int mbox, in fsl_add_outb_message() argument 661 "%p len %8.8zx\n", rdev->destid, mbox, buffer, len); in fsl_add_outb_message() 675 desc->dport = (rdev->destid << 16) | (mbox & 0x3); in fsl_add_outb_message() 711 fsl_open_outb_mbox(struct rio_mport *mport, void *dev_id, int mbox, int entries) in fsl_open_outb_mbox() argument 815 void fsl_close_outb_mbox(struct rio_mport *mport, int mbox) in fsl_close_outb_mbox() argument 844 fsl_open_inb_mbox(struct rio_mport *mport, void *dev_id, int mbox, int entries) in fsl_open_inb_mbox() argument 916 void fsl_close_inb_mbox(struct rio_mport *mport, int mbox) in fsl_close_inb_mbox() argument 941 int fsl_add_inb_buffer(struct rio_mport *mport, int mbox, void *buf) in fsl_add_inb_buffer() argument 973 void *fsl_get_inb_message(struct rio_mport *mport, int mbox) in fsl_get_inb_message() argument
|
/arch/arm/mach-ux500/include/mach/ |
D | mbox-db5500.h | 46 struct mbox { struct 73 struct mbox *mbox_setup(u8 mbox_id, mbox_recv_cb_t *mbox_cb, void *priv); argument 86 int mbox_send(struct mbox *mbox, u32 mbox_msg, bool block);
|
/arch/mips/include/asm/octeon/ |
D | cvmx-ciu-defs.h | 263 uint64_t mbox:2; member 284 uint64_t mbox:2; member 305 uint64_t mbox:2; member 322 uint64_t mbox:2; member 348 uint64_t mbox:2; member 372 uint64_t mbox:2; member 404 uint64_t mbox:2; member 428 uint64_t mbox:2; member 446 uint64_t mbox:2; member 475 uint64_t mbox:2; member [all …]
|
D | cvmx-sriox-defs.h | 223 uint64_t mbox:4; member 473 uint64_t mbox:2; member 857 uint64_t mbox:4; member 930 uint64_t mbox:4; member
|