/arch/arm/plat-omap/ |
D | mailbox.h | 28 static inline void mbox_seq_init(struct omap_mbox *mbox) in mbox_seq_init() argument 31 mbox->seq_rcv = 0xffffffff; in mbox_seq_init() 34 static inline void mbox_seq_toggle(struct omap_mbox *mbox, mbox_msg_t * msg) in mbox_seq_toggle() argument 37 *msg = (*msg & 0x7fffffff) | mbox->seq_snd; in mbox_seq_toggle() 39 mbox->seq_snd ^= 1 << 31; in mbox_seq_toggle() 42 static inline int mbox_seq_test(struct omap_mbox *mbox, mbox_msg_t msg) in mbox_seq_test() argument 45 if (seq == mbox->seq_rcv) in mbox_seq_test() 47 mbox->seq_rcv = seq; in mbox_seq_test() 51 static inline void mbox_seq_init(struct omap_mbox *mbox) in mbox_seq_init() argument 54 static inline void mbox_seq_toggle(struct omap_mbox *mbox, mbox_msg_t * msg) in mbox_seq_toggle() argument [all …]
|
D | mailbox.c | 41 void omap_mbox_init_seq(struct omap_mbox *mbox) in omap_mbox_init_seq() argument 43 mbox_seq_init(mbox); in omap_mbox_init_seq() 50 static int __mbox_msg_send(struct omap_mbox *mbox, mbox_msg_t msg, void *arg) in __mbox_msg_send() argument 54 while (mbox_fifo_full(mbox)) { in __mbox_msg_send() 55 if (mbox->ops->type == OMAP_MBOX_TYPE2) in __mbox_msg_send() 62 if (arg && mbox->txq->callback) { in __mbox_msg_send() 63 ret = mbox->txq->callback(arg); in __mbox_msg_send() 68 mbox_seq_toggle(mbox, &msg); in __mbox_msg_send() 69 mbox_fifo_write(mbox, msg); in __mbox_msg_send() 74 int omap_mbox_msg_send(struct omap_mbox *mbox, mbox_msg_t msg, void* arg) in omap_mbox_msg_send() argument [all …]
|
/arch/arm/plat-omap/include/mach/ |
D | mailbox.h | 24 int (*startup)(struct omap_mbox *mbox); 25 void (*shutdown)(struct omap_mbox *mbox); 27 mbox_msg_t (*fifo_read)(struct omap_mbox *mbox); 28 void (*fifo_write)(struct omap_mbox *mbox, mbox_msg_t msg); 29 int (*fifo_empty)(struct omap_mbox *mbox); 30 int (*fifo_full)(struct omap_mbox *mbox); 32 void (*enable_irq)(struct omap_mbox *mbox, omap_mbox_irq_t irq); 33 void (*disable_irq)(struct omap_mbox *mbox, omap_mbox_irq_t irq); 34 void (*ack_irq)(struct omap_mbox *mbox, omap_mbox_irq_t irq); 35 int (*is_irq)(struct omap_mbox *mbox, omap_mbox_irq_t irq); [all …]
|
/arch/arm/mach-omap2/ |
D | mailbox.c | 73 static void omap2_mbox_enable_irq(struct omap_mbox *mbox, 87 static int omap2_mbox_startup(struct omap_mbox *mbox) in omap2_mbox_startup() argument 103 omap2_mbox_enable_irq(mbox, IRQ_RX); in omap2_mbox_startup() 108 static void omap2_mbox_shutdown(struct omap_mbox *mbox) in omap2_mbox_shutdown() argument 115 static mbox_msg_t omap2_mbox_fifo_read(struct omap_mbox *mbox) in omap2_mbox_fifo_read() argument 118 &((struct omap_mbox2_priv *)mbox->priv)->rx_fifo; in omap2_mbox_fifo_read() 122 static void omap2_mbox_fifo_write(struct omap_mbox *mbox, mbox_msg_t msg) in omap2_mbox_fifo_write() argument 125 &((struct omap_mbox2_priv *)mbox->priv)->tx_fifo; in omap2_mbox_fifo_write() 129 static int omap2_mbox_fifo_empty(struct omap_mbox *mbox) in omap2_mbox_fifo_empty() argument 132 &((struct omap_mbox2_priv *)mbox->priv)->rx_fifo; in omap2_mbox_fifo_empty() [all …]
|
/arch/arm/mach-omap1/ |
D | mailbox.c | 54 static mbox_msg_t omap1_mbox_fifo_read(struct omap_mbox *mbox) in omap1_mbox_fifo_read() argument 57 &((struct omap_mbox1_priv *)mbox->priv)->rx_fifo; in omap1_mbox_fifo_read() 67 omap1_mbox_fifo_write(struct omap_mbox *mbox, mbox_msg_t msg) in omap1_mbox_fifo_write() argument 70 &((struct omap_mbox1_priv *)mbox->priv)->tx_fifo; in omap1_mbox_fifo_write() 76 static int omap1_mbox_fifo_empty(struct omap_mbox *mbox) in omap1_mbox_fifo_empty() argument 81 static int omap1_mbox_fifo_full(struct omap_mbox *mbox) in omap1_mbox_fifo_full() argument 84 &((struct omap_mbox1_priv *)mbox->priv)->rx_fifo; in omap1_mbox_fifo_full() 91 omap1_mbox_enable_irq(struct omap_mbox *mbox, omap_mbox_type_t irq) in omap1_mbox_enable_irq() argument 94 enable_irq(mbox->irq); in omap1_mbox_enable_irq() 98 omap1_mbox_disable_irq(struct omap_mbox *mbox, omap_mbox_type_t irq) in omap1_mbox_disable_irq() argument [all …]
|
/arch/mips/include/asm/octeon/ |
D | cvmx-ciu-defs.h | 230 uint64_t mbox:2; member 251 uint64_t mbox:2; member 272 uint64_t mbox:2; member 289 uint64_t mbox:2; member 315 uint64_t mbox:2; member 339 uint64_t mbox:2; member 369 uint64_t mbox:2; member 393 uint64_t mbox:2; member 411 uint64_t mbox:2; member 438 uint64_t mbox:2; member [all …]
|
/arch/powerpc/sysdev/ |
D | fsl_rio.c | 353 rio_hw_add_outb_message(struct rio_mport *mport, struct rio_dev *rdev, int mbox, in rio_hw_add_outb_message() argument 364 rdev->destid, mbox, (int)buffer, len); in rio_hw_add_outb_message() 381 desc->dport = mbox & 0x3; in rio_hw_add_outb_message() 388 desc->dport = (rdev->destid << 16) | (mbox & 0x3); in rio_hw_add_outb_message() 470 int rio_open_outb_mbox(struct rio_mport *mport, void *dev_id, int mbox, int entries) in rio_open_outb_mbox() argument 572 void rio_close_outb_mbox(struct rio_mport *mport, int mbox) in rio_close_outb_mbox() argument 638 int rio_open_inb_mbox(struct rio_mport *mport, void *dev_id, int mbox, int entries) in rio_open_inb_mbox() argument 709 void rio_close_inb_mbox(struct rio_mport *mport, int mbox) in rio_close_inb_mbox() argument 732 int rio_hw_add_inb_buffer(struct rio_mport *mport, int mbox, void *buf) in rio_hw_add_inb_buffer() argument 766 void *rio_hw_get_inb_message(struct rio_mport *mport, int mbox) in rio_hw_get_inb_message() argument
|
/arch/mips/cavium-octeon/ |
D | smp.c | 140 interrupt_enable.s.mbox = 0x3; in octeon_init_secondary()
|