Home
last modified time | relevance | path

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

1234

/linux-6.3-rc2/include/linux/
A Dmailbox_controller.h12 struct mbox_chan;
47 int (*send_data)(struct mbox_chan *chan, void *data);
48 int (*flush)(struct mbox_chan *chan, unsigned long timeout);
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,
118 struct mbox_chan { struct
[all …]
A Dmailbox_client.h13 struct mbox_chan;
40 struct mbox_chan *mbox_request_channel_byname(struct mbox_client *cl,
42 struct mbox_chan *mbox_request_channel(struct mbox_client *cl, int index);
43 int mbox_send_message(struct mbox_chan *chan, void *mssg);
44 int mbox_flush(struct mbox_chan *chan, unsigned long timeout);
45 void mbox_client_txdone(struct mbox_chan *chan, int r); /* atomic */
46 bool mbox_client_peek_data(struct mbox_chan *chan); /* atomic */
47 void mbox_free_channel(struct mbox_chan *chan); /* may sleep */
A Domap-mailbox.h17 struct mbox_chan;
20 struct mbox_chan *omap_mbox_request_channel(struct mbox_client *cl,
23 void omap_mbox_enable_irq(struct mbox_chan *chan, omap_mbox_irq_t irq);
24 void omap_mbox_disable_irq(struct mbox_chan *chan, omap_mbox_irq_t irq);
/linux-6.3-rc2/drivers/mailbox/
A Dmailbox-altera.c49 struct mbox_chan *chan;
117 static void altera_mbox_rx_data(struct mbox_chan *chan) in altera_mbox_rx_data()
143 struct mbox_chan *chan = (struct mbox_chan *)p; in altera_mbox_tx_interrupt()
154 struct mbox_chan *chan = (struct mbox_chan *)p; in altera_mbox_rx_interrupt()
160 static int altera_mbox_startup_sender(struct mbox_chan *chan) in altera_mbox_startup_sender()
179 static int altera_mbox_startup_receiver(struct mbox_chan *chan) in altera_mbox_startup_receiver()
233 static bool altera_mbox_last_tx_done(struct mbox_chan *chan) in altera_mbox_last_tx_done()
241 static bool altera_mbox_peek_data(struct mbox_chan *chan) in altera_mbox_peek_data()
248 static int altera_mbox_startup(struct mbox_chan *chan) in altera_mbox_startup()
264 static void altera_mbox_shutdown(struct mbox_chan *chan) in altera_mbox_shutdown()
[all …]
A Darm_mhuv2.c271 struct mbox_chan *chan) in mhuv2_doorbell_rx_shutdown()
289 struct mbox_chan *chan) in mhuv2_doorbell_last_tx_done()
326 struct mbox_chan *chan) in mhuv2_data_transfer_rx_startup()
340 struct mbox_chan *chan) in mhuv2_data_transfer_rx_shutdown()
349 struct mbox_chan *chan) in mhuv2_data_transfer_read_data()
386 struct mbox_chan *chan) in mhuv2_data_transfer_tx_startup()
399 struct mbox_chan *chan) in mhuv2_data_transfer_tx_shutdown()
409 struct mbox_chan *chan) in mhuv2_data_transfer_last_tx_done()
543 struct mbox_chan *chan; in mhuv2_sender_interrupt()
623 struct mbox_chan *chan; in get_irq_chan_comb_rx()
[all …]
A Dmailbox-sti.c119 static void sti_mbox_enable_channel(struct mbox_chan *chan) in sti_mbox_enable_channel()
134 static void sti_mbox_disable_channel(struct mbox_chan *chan) in sti_mbox_disable_channel()
149 static void sti_mbox_clear_irq(struct mbox_chan *chan) in sti_mbox_clear_irq()
164 struct mbox_chan *chan = NULL; in sti_mbox_irq_to_channel()
195 struct mbox_chan *chan; in sti_mbox_thread_handler()
218 struct mbox_chan *chan; in sti_mbox_irq_handler()
251 static bool sti_mbox_tx_is_ready(struct mbox_chan *chan) in sti_mbox_tx_is_ready()
292 static int sti_mbox_startup_chan(struct mbox_chan *chan) in sti_mbox_startup_chan()
300 static void sti_mbox_shutdown_chan(struct mbox_chan *chan) in sti_mbox_shutdown_chan()
327 struct mbox_chan *chan = NULL; in sti_mbox_xlate()
[all …]
A Dmailbox.c26 static int add_to_rbuf(struct mbox_chan *chan, void *mssg) in add_to_rbuf()
53 static void msg_submit(struct mbox_chan *chan) in msg_submit()
93 static void tx_tick(struct mbox_chan *chan, int r) in tx_tick()
126 struct mbox_chan *chan = &mbox->chans[i]; in txdone_hrtimer()
176 void mbox_chan_txdone(struct mbox_chan *chan, int r) in mbox_chan_txdone()
197 void mbox_client_txdone(struct mbox_chan *chan, int r) in mbox_client_txdone()
223 bool mbox_client_peek_data(struct mbox_chan *chan) in mbox_client_peek_data()
342 struct mbox_chan *chan; in mbox_request_channel()
444 void mbox_free_channel(struct mbox_chan *chan) in mbox_free_channel()
466 static struct mbox_chan *
[all …]
A Darm_mhu_db.c59 static inline struct mbox_chan *
76 static void mhu_db_mbox_clear_irq(struct mbox_chan *chan) in mhu_db_mbox_clear_irq()
94 static struct mbox_chan *
99 struct mbox_chan *chan = NULL; in mhu_db_mbox_irq_to_channel()
126 struct mbox_chan *chan; in mhu_db_mbox_rx_handler()
138 static bool mhu_db_last_tx_done(struct mbox_chan *chan) in mhu_db_last_tx_done()
149 static int mhu_db_send_data(struct mbox_chan *chan, void *data) in mhu_db_send_data()
160 static int mhu_db_startup(struct mbox_chan *chan) in mhu_db_startup()
166 static void mhu_db_shutdown(struct mbox_chan *chan) in mhu_db_shutdown()
192 struct mbox_chan *chan; in mhu_db_mbox_xlate()
[all …]
A Dsun6i-msgbox.c53 static bool sun6i_msgbox_last_tx_done(struct mbox_chan *chan);
54 static bool sun6i_msgbox_peek_data(struct mbox_chan *chan);
56 static inline int channel_number(struct mbox_chan *chan) in channel_number()
61 static inline struct sun6i_msgbox *to_sun6i_msgbox(struct mbox_chan *chan) in to_sun6i_msgbox()
80 struct mbox_chan *chan = &mbox->controller.chans[n]; in sun6i_msgbox_irq()
99 static int sun6i_msgbox_send_data(struct mbox_chan *chan, void *data) in sun6i_msgbox_send_data()
115 static int sun6i_msgbox_startup(struct mbox_chan *chan) in sun6i_msgbox_startup()
139 static void sun6i_msgbox_shutdown(struct mbox_chan *chan) in sun6i_msgbox_shutdown()
162 static bool sun6i_msgbox_last_tx_done(struct mbox_chan *chan) in sun6i_msgbox_last_tx_done()
179 static bool sun6i_msgbox_peek_data(struct mbox_chan *chan) in sun6i_msgbox_peek_data()
[all …]
A Dbcm2835-mailbox.c61 static struct bcm2835_mbox *bcm2835_link_mbox(struct mbox_chan *link) in bcm2835_link_mbox()
70 struct mbox_chan *link = &mbox->controller.chans[0]; in bcm2835_mbox_irq()
80 static int bcm2835_send_data(struct mbox_chan *link, void *data) in bcm2835_send_data()
92 static int bcm2835_startup(struct mbox_chan *link) in bcm2835_startup()
102 static void bcm2835_shutdown(struct mbox_chan *link) in bcm2835_shutdown()
109 static bool bcm2835_last_tx_done(struct mbox_chan *link) in bcm2835_last_tx_done()
127 static struct mbox_chan *bcm2835_mbox_index_xlate(struct mbox_controller *mbox, in bcm2835_mbox_index_xlate()
A Dmtk-adsp-mailbox.c37 struct mbox_chan *chan = data; in mtk_adsp_mbox_irq()
48 struct mbox_chan *chan = data; in mtk_adsp_mbox_isr()
55 static struct mbox_chan *mtk_adsp_mbox_xlate(struct mbox_controller *mbox, in mtk_adsp_mbox_xlate()
61 static int mtk_adsp_mbox_startup(struct mbox_chan *chan) in mtk_adsp_mbox_startup()
72 static void mtk_adsp_mbox_shutdown(struct mbox_chan *chan) in mtk_adsp_mbox_shutdown()
81 static int mtk_adsp_mbox_send_data(struct mbox_chan *chan, void *data) in mtk_adsp_mbox_send_data()
91 static bool mtk_adsp_mbox_last_tx_done(struct mbox_chan *chan) in mtk_adsp_mbox_last_tx_done()
A Dhi3660-mailbox.c74 struct mbox_chan chan[MBOX_CHAN_MAX];
84 static int hi3660_mbox_check_state(struct mbox_chan *chan) in hi3660_mbox_check_state()
111 static int hi3660_mbox_unlock(struct mbox_chan *chan) in hi3660_mbox_unlock()
132 static int hi3660_mbox_acquire_channel(struct mbox_chan *chan) in hi3660_mbox_acquire_channel()
158 static int hi3660_mbox_startup(struct mbox_chan *chan) in hi3660_mbox_startup()
173 static int hi3660_mbox_send_data(struct mbox_chan *chan, void *msg) in hi3660_mbox_send_data()
210 static struct mbox_chan *hi3660_mbox_xlate(struct mbox_controller *controller, in hi3660_mbox_xlate()
240 struct mbox_chan *chan; in hi3660_mbox_probe()
A Darm_mhu.c36 struct mbox_chan chan[MHU_CHANS];
42 struct mbox_chan *chan = p; in mhu_rx_interrupt()
57 static bool mhu_last_tx_done(struct mbox_chan *chan) in mhu_last_tx_done()
65 static int mhu_send_data(struct mbox_chan *chan, void *data) in mhu_send_data()
75 static int mhu_startup(struct mbox_chan *chan) in mhu_startup()
95 static void mhu_shutdown(struct mbox_chan *chan) in mhu_shutdown()
A Dplatform_mhu.c42 struct mbox_chan chan[MHU_CHANS];
48 struct mbox_chan *chan = p; in platform_mhu_rx_interrupt()
63 static bool platform_mhu_last_tx_done(struct mbox_chan *chan) in platform_mhu_last_tx_done()
71 static int platform_mhu_send_data(struct mbox_chan *chan, void *data) in platform_mhu_send_data()
81 static int platform_mhu_startup(struct mbox_chan *chan) in platform_mhu_startup()
101 static void platform_mhu_shutdown(struct mbox_chan *chan) in platform_mhu_shutdown()
A Darmada-37xx-rwtm-mailbox.c43 static void a37xx_mbox_receive(struct mbox_chan *chan) in a37xx_mbox_receive()
58 struct mbox_chan *chan = data; in a37xx_mbox_irq_handler()
77 static int a37xx_mbox_send_data(struct mbox_chan *chan, void *data) in a37xx_mbox_send_data()
103 static int a37xx_mbox_startup(struct mbox_chan *chan) in a37xx_mbox_startup()
124 static void a37xx_mbox_shutdown(struct mbox_chan *chan) in a37xx_mbox_shutdown()
146 struct mbox_chan *chans; in armada_37xx_mbox_probe()
A Dti-msgmgr.c116 struct mbox_chan *chan;
144 struct mbox_chan *chans;
274 struct mbox_chan *chan = p; in ti_msgmgr_queue_rx_interrupt()
318 static bool ti_msgmgr_queue_peek_data(struct mbox_chan *chan) in ti_msgmgr_queue_peek_data()
345 static bool ti_msgmgr_last_tx_done(struct mbox_chan *chan) in ti_msgmgr_last_tx_done()
390 static int ti_msgmgr_send_data(struct mbox_chan *chan, void *data) in ti_msgmgr_send_data()
460 struct mbox_chan *chan) in ti_msgmgr_queue_rx_irq_req()
503 static int ti_msgmgr_queue_startup(struct mbox_chan *chan) in ti_msgmgr_queue_startup()
549 static void ti_msgmgr_queue_shutdown(struct mbox_chan *chan) in ti_msgmgr_queue_shutdown()
637 struct mbox_chan *chan) in ti_msgmgr_queue_setup()
[all …]
A Dhi6220-mailbox.c85 struct mbox_chan *chan;
109 static bool hi6220_mbox_last_tx_done(struct mbox_chan *chan) in hi6220_mbox_last_tx_done()
122 static int hi6220_mbox_send_data(struct mbox_chan *chan, void *msg) in hi6220_mbox_send_data()
152 struct mbox_chan *chan; in hi6220_mbox_interrupt()
193 static int hi6220_mbox_startup(struct mbox_chan *chan) in hi6220_mbox_startup()
205 static void hi6220_mbox_shutdown(struct mbox_chan *chan) in hi6220_mbox_shutdown()
222 static struct mbox_chan *hi6220_mbox_xlate(struct mbox_controller *controller, in hi6220_mbox_xlate()
227 struct mbox_chan *chan; in hi6220_mbox_xlate()
A Dapple-mailbox.c101 struct mbox_chan chan;
165 static int apple_mbox_chan_send_data(struct mbox_chan *chan, void *data) in apple_mbox_chan_send_data()
246 static bool apple_mbox_chan_peek_data(struct mbox_chan *chan) in apple_mbox_chan_peek_data()
259 static int apple_mbox_chan_flush(struct mbox_chan *chan, unsigned long timeout) in apple_mbox_chan_flush()
276 static int apple_mbox_chan_startup(struct mbox_chan *chan) in apple_mbox_chan_startup()
298 static void apple_mbox_chan_shutdown(struct mbox_chan *chan) in apple_mbox_chan_shutdown()
313 static struct mbox_chan *apple_mbox_of_xlate(struct mbox_controller *mbox, in apple_mbox_of_xlate()
/linux-6.3-rc2/drivers/rpmsg/
A Dqcom_glink_smem.c45 struct mbox_chan *mbox_chan; member
200 mbox_send_message(smem->mbox_chan, NULL); in glink_smem_tx_kick()
201 mbox_client_txdone(smem->mbox_chan, 0); in glink_smem_tx_kick()
318 smem->mbox_chan = mbox_request_channel(&smem->mbox_client, 0); in qcom_glink_smem_register()
319 if (IS_ERR(smem->mbox_chan)) { in qcom_glink_smem_register()
320 ret = dev_err_probe(&smem->dev, PTR_ERR(smem->mbox_chan), in qcom_glink_smem_register()
354 mbox_free_channel(smem->mbox_chan); in qcom_glink_smem_register()
371 mbox_free_channel(smem->mbox_chan); in qcom_glink_smem_unregister()
A Dqcom_glink_rpm.c63 struct mbox_chan *mbox_chan; member
200 mbox_send_message(rpm->mbox_chan, NULL); in glink_rpm_tx_kick()
201 mbox_client_txdone(rpm->mbox_chan, 0); in glink_rpm_tx_kick()
330 rpm->mbox_chan = mbox_request_channel(&rpm->mbox_client, 0); in glink_rpm_probe()
331 if (IS_ERR(rpm->mbox_chan)) in glink_rpm_probe()
332 return dev_err_probe(dev, PTR_ERR(rpm->mbox_chan), "failed to acquire IPC channel\n"); in glink_rpm_probe()
351 mbox_free_channel(rpm->mbox_chan); in glink_rpm_probe()
373 mbox_free_channel(rpm->mbox_chan); in glink_rpm_remove()
/linux-6.3-rc2/drivers/remoteproc/
A Dst_remoteproc.c51 struct mbox_chan *mbox_chan[ST_RPROC_MAX_VRING * MBOX_MAX]; member
86 ret = mbox_send_message(ddata->mbox_chan[vqid * MBOX_MAX + MBOX_TX], in st_rproc_kick()
345 struct mbox_chan *chan; in st_rproc_probe()
405 ddata->mbox_chan[ST_RPROC_VQ0 * MBOX_MAX + MBOX_RX] = chan; in st_rproc_probe()
413 ddata->mbox_chan[ST_RPROC_VQ0 * MBOX_MAX + MBOX_TX] = chan; in st_rproc_probe()
421 ddata->mbox_chan[ST_RPROC_VQ1 * MBOX_MAX + MBOX_RX] = chan; in st_rproc_probe()
429 ddata->mbox_chan[ST_RPROC_VQ1 * MBOX_MAX + MBOX_TX] = chan; in st_rproc_probe()
440 mbox_free_channel(ddata->mbox_chan[i]); in st_rproc_probe()
459 mbox_free_channel(ddata->mbox_chan[i]); in st_rproc_remove()
/linux-6.3-rc2/drivers/soc/qcom/
A Dsmp2p.c157 struct mbox_chan *mbox_chan; member
168 if (smp2p->mbox_chan) { in qcom_smp2p_kick()
169 mbox_send_message(smp2p->mbox_chan, NULL); in qcom_smp2p_kick()
170 mbox_client_txdone(smp2p->mbox_chan, 0); in qcom_smp2p_kick()
560 smp2p->mbox_chan = mbox_request_channel(&smp2p->mbox_client, 0); in qcom_smp2p_probe()
561 if (IS_ERR(smp2p->mbox_chan)) { in qcom_smp2p_probe()
562 if (PTR_ERR(smp2p->mbox_chan) != -ENODEV) in qcom_smp2p_probe()
563 return PTR_ERR(smp2p->mbox_chan); in qcom_smp2p_probe()
565 smp2p->mbox_chan = NULL; in qcom_smp2p_probe()
654 mbox_free_channel(smp2p->mbox_chan); in qcom_smp2p_probe()
[all …]
A Dqcom_aoss.c74 struct mbox_chan *mbox_chan; member
89 mbox_send_message(qmp->mbox_chan, NULL); in qmp_kick()
90 mbox_client_txdone(qmp->mbox_chan, 0); in qmp_kick()
499 qmp->mbox_chan = mbox_request_channel(&qmp->mbox_client, 0); in qmp_probe()
500 if (IS_ERR(qmp->mbox_chan)) { in qmp_probe()
502 return PTR_ERR(qmp->mbox_chan); in qmp_probe()
532 mbox_free_channel(qmp->mbox_chan); in qmp_probe()
545 mbox_free_channel(qmp->mbox_chan); in qmp_remove()
/linux-6.3-rc2/include/linux/firmware/imx/
A Ddsp.h20 struct mbox_chan *ch;
58 struct mbox_chan *imx_dsp_request_channel(struct imx_dsp_ipc *ipc, int idx);
69 struct mbox_chan *imx_dsp_request_channel(struct imx_dsp_ipc *ipc, int idx) in imx_dsp_request_channel()
/linux-6.3-rc2/drivers/i2c/busses/
A Di2c-xgene-slimpro.c105 struct mbox_chan *mbox_chan; member
228 rc = mbox_send_message(ctx->mbox_chan, msg); in slimpro_i2c_send_msg()
236 mbox_chan_txdone(ctx->mbox_chan, 0); in slimpro_i2c_send_msg()
464 ctx->mbox_chan = mbox_request_channel(cl, MAILBOX_I2C_INDEX); in xgene_slimpro_i2c_probe()
465 if (IS_ERR(ctx->mbox_chan)) { in xgene_slimpro_i2c_probe()
467 return PTR_ERR(ctx->mbox_chan); in xgene_slimpro_i2c_probe()
494 ctx->mbox_chan = pcc_chan->mchan; in xgene_slimpro_i2c_probe()
496 if (!ctx->mbox_chan->mbox->txdone_irq) { in xgene_slimpro_i2c_probe()
553 mbox_free_channel(ctx->mbox_chan); in xgene_slimpro_i2c_probe()
567 mbox_free_channel(ctx->mbox_chan); in xgene_slimpro_i2c_remove()

Completed in 49 milliseconds

1234