Home
last modified time | relevance | path

Searched refs:mbox_chan (Results 1 – 19 of 19) sorted by relevance

/linux-4.4.14/include/linux/
Dmailbox_controller.h16 struct mbox_chan;
48 int (*send_data)(struct mbox_chan *chan, void *data);
49 int (*startup)(struct mbox_chan *chan);
50 void (*shutdown)(struct mbox_chan *chan);
51 bool (*last_tx_done)(struct mbox_chan *chan);
52 bool (*peek_data)(struct mbox_chan *chan);
77 struct mbox_chan *chans;
82 struct mbox_chan *(*of_xlate)(struct mbox_controller *mbox,
117 struct mbox_chan { struct
131 void mbox_chan_received_data(struct mbox_chan *chan, void *data); /* atomic */ argument
[all …]
Dmailbox_client.h16 struct mbox_chan;
43 struct mbox_chan *mbox_request_channel_byname(struct mbox_client *cl,
45 struct mbox_chan *mbox_request_channel(struct mbox_client *cl, int index);
46 int mbox_send_message(struct mbox_chan *chan, void *mssg);
47 void mbox_client_txdone(struct mbox_chan *chan, int r); /* atomic */
48 bool mbox_client_peek_data(struct mbox_chan *chan); /* atomic */
49 void mbox_free_channel(struct mbox_chan *chan); /* may sleep */
Domap-mailbox.h18 struct mbox_chan;
21 struct mbox_chan *omap_mbox_request_channel(struct mbox_client *cl,
24 void omap_mbox_save_ctx(struct mbox_chan *chan);
25 void omap_mbox_restore_ctx(struct mbox_chan *chan);
26 void omap_mbox_enable_irq(struct mbox_chan *chan, omap_mbox_irq_t irq);
27 void omap_mbox_disable_irq(struct mbox_chan *chan, omap_mbox_irq_t irq);
/linux-4.4.14/drivers/mailbox/
Dmailbox-altera.c62 static struct altera_mbox *mbox_chan_to_altera_mbox(struct mbox_chan *chan) in mbox_chan_to_altera_mbox()
127 static void altera_mbox_rx_data(struct mbox_chan *chan) in altera_mbox_rx_data()
143 struct mbox_chan *chan = (struct mbox_chan *)data; in altera_mbox_poll_rx()
154 struct mbox_chan *chan = (struct mbox_chan *)p; in altera_mbox_tx_interrupt()
165 struct mbox_chan *chan = (struct mbox_chan *)p; in altera_mbox_rx_interrupt()
171 static int altera_mbox_startup_sender(struct mbox_chan *chan) in altera_mbox_startup_sender()
190 static int altera_mbox_startup_receiver(struct mbox_chan *chan) in altera_mbox_startup_receiver()
217 static int altera_mbox_send_data(struct mbox_chan *chan, void *data) in altera_mbox_send_data()
244 static bool altera_mbox_last_tx_done(struct mbox_chan *chan) in altera_mbox_last_tx_done()
252 static bool altera_mbox_peek_data(struct mbox_chan *chan) in altera_mbox_peek_data()
[all …]
Dpcc.c71 static struct mbox_chan *pcc_mbox_channels;
82 static struct mbox_chan *get_pcc_channel(int id) in get_pcc_channel()
84 struct mbox_chan *pcc_chan; in get_pcc_channel()
89 pcc_chan = (struct mbox_chan *) in get_pcc_channel()
109 struct mbox_chan *pcc_mbox_request_channel(struct mbox_client *cl, in pcc_mbox_request_channel()
113 struct mbox_chan *chan; in pcc_mbox_request_channel()
152 void pcc_mbox_free_channel(struct mbox_chan *chan) in pcc_mbox_free_channel()
181 static int pcc_send_data(struct mbox_chan *chan, void *data) in pcc_send_data()
266 pcc_mbox_channels = kzalloc(sizeof(struct mbox_chan) * in acpi_pcc_probe()
Dmailbox.c29 static int add_to_rbuf(struct mbox_chan *chan, void *mssg) in add_to_rbuf()
56 static void msg_submit(struct mbox_chan *chan) in msg_submit()
94 static void tx_tick(struct mbox_chan *chan, int r) in tx_tick()
123 struct mbox_chan *chan = &mbox->chans[i]; in txdone_hrtimer()
151 void mbox_chan_received_data(struct mbox_chan *chan, void *mssg) in mbox_chan_received_data()
169 void mbox_chan_txdone(struct mbox_chan *chan, int r) in mbox_chan_txdone()
190 void mbox_client_txdone(struct mbox_chan *chan, int r) in mbox_client_txdone()
216 bool mbox_client_peek_data(struct mbox_chan *chan) in mbox_client_peek_data()
249 int mbox_send_message(struct mbox_chan *chan, void *mssg) in mbox_send_message()
301 struct mbox_chan *mbox_request_channel(struct mbox_client *cl, int index) in mbox_request_channel()
[all …]
Dmailbox-sti.c90 static inline bool sti_mbox_channel_is_enabled(struct mbox_chan *chan) in sti_mbox_channel_is_enabled()
101 struct mbox_chan *sti_mbox_to_channel(struct mbox_controller *mbox, in sti_mbox_to_channel()
123 static void sti_mbox_enable_channel(struct mbox_chan *chan) in sti_mbox_enable_channel()
138 static void sti_mbox_disable_channel(struct mbox_chan *chan) in sti_mbox_disable_channel()
153 static void sti_mbox_clear_irq(struct mbox_chan *chan) in sti_mbox_clear_irq()
164 static struct mbox_chan *sti_mbox_irq_to_channel(struct sti_mbox_device *mdev, in sti_mbox_irq_to_channel()
168 struct mbox_chan *chan = NULL; in sti_mbox_irq_to_channel()
199 struct mbox_chan *chan; in sti_mbox_thread_handler()
222 struct mbox_chan *chan; in sti_mbox_irq_handler()
255 static bool sti_mbox_tx_is_ready(struct mbox_chan *chan) in sti_mbox_tx_is_ready()
[all …]
Dbcm2835-mailbox.c67 static struct bcm2835_mbox *bcm2835_link_mbox(struct mbox_chan *link) in bcm2835_link_mbox()
76 struct mbox_chan *link = &mbox->controller.chans[0]; in bcm2835_mbox_irq()
86 static int bcm2835_send_data(struct mbox_chan *link, void *data) in bcm2835_send_data()
98 static int bcm2835_startup(struct mbox_chan *link) in bcm2835_startup()
108 static void bcm2835_shutdown(struct mbox_chan *link) in bcm2835_shutdown()
115 static bool bcm2835_last_tx_done(struct mbox_chan *link) in bcm2835_last_tx_done()
133 static struct mbox_chan *bcm2835_mbox_index_xlate(struct mbox_controller *mbox, in bcm2835_mbox_index_xlate()
Darm_mhu.c47 struct mbox_chan chan[MHU_CHANS];
53 struct mbox_chan *chan = p; in mhu_rx_interrupt()
68 static bool mhu_last_tx_done(struct mbox_chan *chan) in mhu_last_tx_done()
76 static int mhu_send_data(struct mbox_chan *chan, void *data) in mhu_send_data()
86 static int mhu_startup(struct mbox_chan *chan) in mhu_startup()
106 static void mhu_shutdown(struct mbox_chan *chan) in mhu_shutdown()
Domap-mailbox.c124 struct mbox_chan *chan;
136 static struct omap_mbox *mbox_chan_to_omap_mbox(struct mbox_chan *chan) in mbox_chan_to_omap_mbox()
209 void omap_mbox_save_ctx(struct mbox_chan *chan) in omap_mbox_save_ctx()
231 void omap_mbox_restore_ctx(struct mbox_chan *chan) in omap_mbox_restore_ctx()
282 void omap_mbox_enable_irq(struct mbox_chan *chan, omap_mbox_irq_t irq) in omap_mbox_enable_irq()
293 void omap_mbox_disable_irq(struct mbox_chan *chan, omap_mbox_irq_t irq) in omap_mbox_disable_irq()
464 struct mbox_chan *omap_mbox_request_channel(struct mbox_client *cl, in omap_mbox_request_channel()
470 struct mbox_chan *chan; in omap_mbox_request_channel()
570 static int omap_mbox_chan_startup(struct mbox_chan *chan) in omap_mbox_chan_startup()
585 static void omap_mbox_chan_shutdown(struct mbox_chan *chan) in omap_mbox_chan_shutdown()
[all …]
Dmailbox-test.c35 struct mbox_chan *tx_channel;
36 struct mbox_chan *rx_channel;
260 static struct mbox_chan *
264 struct mbox_chan *channel; in mbox_test_request_channel()
/linux-4.4.14/drivers/i2c/busses/
Di2c-xgene-slimpro.c105 struct mbox_chan *mbox_chan; member
159 rc = mbox_send_message(ctx->mbox_chan, &msg); in slimpro_i2c_rd()
182 rc = mbox_send_message(ctx->mbox_chan, &msg); in slimpro_i2c_wr()
217 rc = mbox_send_message(ctx->mbox_chan, &msg); in slimpro_i2c_blkrd()
262 rc = mbox_send_message(ctx->mbox_chan, &msg); in slimpro_i2c_blkwr()
402 ctx->mbox_chan = mbox_request_channel(cl, MAILBOX_I2C_INDEX); in xgene_slimpro_i2c_probe()
403 if (IS_ERR(ctx->mbox_chan)) { in xgene_slimpro_i2c_probe()
405 return PTR_ERR(ctx->mbox_chan); in xgene_slimpro_i2c_probe()
422 mbox_free_channel(ctx->mbox_chan); in xgene_slimpro_i2c_probe()
436 mbox_free_channel(ctx->mbox_chan); in xgene_slimpro_i2c_remove()
/linux-4.4.14/include/acpi/
Dcppc_acpi.h134 extern struct mbox_chan *
136 extern int mbox_send_message(struct mbox_chan *chan, void *mssg);
/linux-4.4.14/Documentation/
Dmailbox.txt23 Allocate mbox_controller and the array of mbox_chan.
42 struct mbox_chan *mbox;
/linux-4.4.14/drivers/remoteproc/
Domap_remoteproc.c45 struct mbox_chan *mbox;
/linux-4.4.14/drivers/firmware/
Draspberrypi.c26 struct mbox_chan *chan; /* The property channel. */
Darm_scpi.c149 struct mbox_chan *chan;
/linux-4.4.14/drivers/clk/hisilicon/
Dclk-hi6220-stub.c55 struct mbox_chan *mbox;
/linux-4.4.14/drivers/acpi/
Dcppc_acpi.c62 static struct mbox_chan *pcc_channel;