drivers/clk/clk-rpmi.c
38
struct mbox_chan *chan;
drivers/clk/clk-rpmi.c
506
struct mbox_chan *chan = data;
drivers/clk/hisilicon/clk-hi3660-stub.c
43
struct mbox_chan *mbox;
drivers/clk/hisilicon/clk-hi6220-stub.c
51
struct mbox_chan *mbox;
drivers/crypto/bcm/cipher.c
4296
sizeof(struct mbox_chan *), GFP_KERNEL);
drivers/crypto/bcm/cipher.h
464
struct mbox_chan **mbox;
drivers/dma/bcm-sba-raid.c
140
struct mbox_chan *mchan;
drivers/firmware/arm_scmi/transports/mailbox.c
326
struct mbox_chan *intr_chan;
drivers/firmware/arm_scmi/transports/mailbox.c
33
struct mbox_chan *chan;
drivers/firmware/arm_scmi/transports/mailbox.c
34
struct mbox_chan *chan_receiver;
drivers/firmware/arm_scmi/transports/mailbox.c
35
struct mbox_chan *chan_platform_receiver;
drivers/firmware/arm_scpi.c
238
struct mbox_chan *chan;
drivers/firmware/imx/imx-dsp.c
62
struct mbox_chan *imx_dsp_request_channel(struct imx_dsp_ipc *dsp_ipc, int idx)
drivers/firmware/imx/imx-scu-irq.c
203
struct mbox_chan *ch;
drivers/firmware/imx/imx-scu.c
30
struct mbox_chan *ch;
drivers/firmware/raspberrypi.c
30
struct mbox_chan *chan; /* The property channel. */
drivers/firmware/samsung/exynos-acpm.c
142
struct mbox_chan *chan;
drivers/firmware/tegra/bpmp-tegra186.c
32
struct mbox_chan *channel;
drivers/firmware/thead,th1520-aon.c
18
struct mbox_chan *ch;
drivers/firmware/ti_sci.c
117
struct mbox_chan *chan_tx;
drivers/firmware/ti_sci.c
118
struct mbox_chan *chan_rx;
drivers/firmware/turris-mox-rwtm.c
89
struct mbox_chan *mbox;
drivers/hwmon/xgene-hwmon.c
154
rc = mbox_send_message(ctx->mbox_chan, msg);
drivers/hwmon/xgene-hwmon.c
177
mbox_chan_txdone(ctx->mbox_chan, 0);
drivers/hwmon/xgene-hwmon.c
191
rc = mbox_send_message(ctx->mbox_chan, msg);
drivers/hwmon/xgene-hwmon.c
642
ctx->mbox_chan = mbox_request_channel(cl, 0);
drivers/hwmon/xgene-hwmon.c
643
if (IS_ERR(ctx->mbox_chan)) {
drivers/hwmon/xgene-hwmon.c
677
ctx->mbox_chan = pcc_chan->mchan;
drivers/hwmon/xgene-hwmon.c
679
if (!ctx->mbox_chan->mbox->txdone_irq) {
drivers/hwmon/xgene-hwmon.c
714
mbox_free_channel(ctx->mbox_chan);
drivers/hwmon/xgene-hwmon.c
731
mbox_free_channel(ctx->mbox_chan);
drivers/hwmon/xgene-hwmon.c
89
struct mbox_chan *mbox_chan;
drivers/i2c/busses/i2c-xgene-slimpro.c
220
rc = mbox_send_message(ctx->mbox_chan, msg);
drivers/i2c/busses/i2c-xgene-slimpro.c
228
mbox_chan_txdone(ctx->mbox_chan, 0);
drivers/i2c/busses/i2c-xgene-slimpro.c
459
ctx->mbox_chan = mbox_request_channel(cl, MAILBOX_I2C_INDEX);
drivers/i2c/busses/i2c-xgene-slimpro.c
460
if (IS_ERR(ctx->mbox_chan))
drivers/i2c/busses/i2c-xgene-slimpro.c
461
return dev_err_probe(&pdev->dev, PTR_ERR(ctx->mbox_chan),
drivers/i2c/busses/i2c-xgene-slimpro.c
484
ctx->mbox_chan = pcc_chan->mchan;
drivers/i2c/busses/i2c-xgene-slimpro.c
486
if (!ctx->mbox_chan->mbox->txdone_irq) {
drivers/i2c/busses/i2c-xgene-slimpro.c
515
mbox_free_channel(ctx->mbox_chan);
drivers/i2c/busses/i2c-xgene-slimpro.c
529
mbox_free_channel(ctx->mbox_chan);
drivers/i2c/busses/i2c-xgene-slimpro.c
97
struct mbox_chan *mbox_chan;
drivers/irqchip/irq-qcom-mpm.c
305
ret = mbox_send_message(priv->mbox_chan, NULL);
drivers/irqchip/irq-qcom-mpm.c
309
mbox_client_txdone(priv->mbox_chan, 0);
drivers/irqchip/irq-qcom-mpm.c
440
priv->mbox_chan = mbox_request_channel(&priv->mbox_client, 0);
drivers/irqchip/irq-qcom-mpm.c
441
if (IS_ERR(priv->mbox_chan)) {
drivers/irqchip/irq-qcom-mpm.c
442
ret = PTR_ERR(priv->mbox_chan);
drivers/irqchip/irq-qcom-mpm.c
477
mbox_free_channel(priv->mbox_chan);
drivers/irqchip/irq-qcom-mpm.c
82
struct mbox_chan *mbox_chan;
drivers/irqchip/irq-riscv-rpmi-sysmsi.c
57
struct mbox_chan *chan;
drivers/mailbox/arm_mhu.c
37
struct mbox_chan chan[MHU_CHANS];
drivers/mailbox/arm_mhu.c
43
struct mbox_chan *chan = p;
drivers/mailbox/arm_mhu.c
58
static bool mhu_last_tx_done(struct mbox_chan *chan)
drivers/mailbox/arm_mhu.c
66
static int mhu_send_data(struct mbox_chan *chan, void *data)
drivers/mailbox/arm_mhu.c
76
static int mhu_startup(struct mbox_chan *chan)
drivers/mailbox/arm_mhu.c
96
static void mhu_shutdown(struct mbox_chan *chan)
drivers/mailbox/arm_mhu_db.c
125
struct mbox_chan *chan;
drivers/mailbox/arm_mhu_db.c
137
static bool mhu_db_last_tx_done(struct mbox_chan *chan)
drivers/mailbox/arm_mhu_db.c
148
static int mhu_db_send_data(struct mbox_chan *chan, void *data)
drivers/mailbox/arm_mhu_db.c
159
static int mhu_db_startup(struct mbox_chan *chan)
drivers/mailbox/arm_mhu_db.c
165
static void mhu_db_shutdown(struct mbox_chan *chan)
drivers/mailbox/arm_mhu_db.c
186
static struct mbox_chan *mhu_db_mbox_xlate(struct mbox_controller *mbox,
drivers/mailbox/arm_mhu_db.c
191
struct mbox_chan *chan;
drivers/mailbox/arm_mhu_db.c
252
struct mbox_chan *chans;
drivers/mailbox/arm_mhu_db.c
58
static inline struct mbox_chan *
drivers/mailbox/arm_mhu_db.c
75
static void mhu_db_mbox_clear_irq(struct mbox_chan *chan)
drivers/mailbox/arm_mhu_db.c
93
static struct mbox_chan *
drivers/mailbox/arm_mhu_db.c
98
struct mbox_chan *chan = NULL;
drivers/mailbox/arm_mhuv2.c
207
int (*rx_startup)(struct mhuv2 *mhu, struct mbox_chan *chan);
drivers/mailbox/arm_mhuv2.c
208
void (*rx_shutdown)(struct mhuv2 *mhu, struct mbox_chan *chan);
drivers/mailbox/arm_mhuv2.c
209
void *(*read_data)(struct mhuv2 *mhu, struct mbox_chan *chan);
drivers/mailbox/arm_mhuv2.c
211
void (*tx_startup)(struct mhuv2 *mhu, struct mbox_chan *chan);
drivers/mailbox/arm_mhuv2.c
212
void (*tx_shutdown)(struct mhuv2 *mhu, struct mbox_chan *chan);
drivers/mailbox/arm_mhuv2.c
213
int (*last_tx_done)(struct mhuv2 *mhu, struct mbox_chan *chan);
drivers/mailbox/arm_mhuv2.c
214
int (*send_data)(struct mhuv2 *mhu, struct mbox_chan *chan, void *arg);
drivers/mailbox/arm_mhuv2.c
261
static int mhuv2_doorbell_rx_startup(struct mhuv2 *mhu, struct mbox_chan *chan)
drivers/mailbox/arm_mhuv2.c
271
struct mbox_chan *chan)
drivers/mailbox/arm_mhuv2.c
279
static void *mhuv2_doorbell_read_data(struct mhuv2 *mhu, struct mbox_chan *chan)
drivers/mailbox/arm_mhuv2.c
289
struct mbox_chan *chan)
drivers/mailbox/arm_mhuv2.c
297
static int mhuv2_doorbell_send_data(struct mhuv2 *mhu, struct mbox_chan *chan,
drivers/mailbox/arm_mhuv2.c
326
struct mbox_chan *chan)
drivers/mailbox/arm_mhuv2.c
340
struct mbox_chan *chan)
drivers/mailbox/arm_mhuv2.c
349
struct mbox_chan *chan)
drivers/mailbox/arm_mhuv2.c
386
struct mbox_chan *chan)
drivers/mailbox/arm_mhuv2.c
399
struct mbox_chan *chan)
drivers/mailbox/arm_mhuv2.c
409
struct mbox_chan *chan)
drivers/mailbox/arm_mhuv2.c
446
struct mbox_chan *chan, void *arg)
drivers/mailbox/arm_mhuv2.c
500
static struct mbox_chan *get_irq_chan_comb(struct mhuv2 *mhu, u32 __iomem *reg)
drivers/mailbox/arm_mhuv2.c
502
struct mbox_chan *chans = mhu->mbox.chans;
drivers/mailbox/arm_mhuv2.c
543
struct mbox_chan *chan;
drivers/mailbox/arm_mhuv2.c
621
static struct mbox_chan *get_irq_chan_comb_rx(struct mhuv2 *mhu)
drivers/mailbox/arm_mhuv2.c
624
struct mbox_chan *chan;
drivers/mailbox/arm_mhuv2.c
645
static struct mbox_chan *get_irq_chan_stat_rx(struct mhuv2 *mhu)
drivers/mailbox/arm_mhuv2.c
647
struct mbox_chan *chans = mhu->mbox.chans;
drivers/mailbox/arm_mhuv2.c
668
static struct mbox_chan *get_irq_chan_rx(struct mhuv2 *mhu)
drivers/mailbox/arm_mhuv2.c
679
struct mbox_chan *chan = get_irq_chan_rx(mhu);
drivers/mailbox/arm_mhuv2.c
711
static bool mhuv2_sender_last_tx_done(struct mbox_chan *chan)
drivers/mailbox/arm_mhuv2.c
719
static int mhuv2_sender_send_data(struct mbox_chan *chan, void *data)
drivers/mailbox/arm_mhuv2.c
730
static int mhuv2_sender_startup(struct mbox_chan *chan)
drivers/mailbox/arm_mhuv2.c
740
static void mhuv2_sender_shutdown(struct mbox_chan *chan)
drivers/mailbox/arm_mhuv2.c
756
static int mhuv2_receiver_startup(struct mbox_chan *chan)
drivers/mailbox/arm_mhuv2.c
764
static void mhuv2_receiver_shutdown(struct mbox_chan *chan)
drivers/mailbox/arm_mhuv2.c
772
static int mhuv2_receiver_send_data(struct mbox_chan *chan, void *data)
drivers/mailbox/arm_mhuv2.c
779
static bool mhuv2_receiver_last_tx_done(struct mbox_chan *chan)
drivers/mailbox/arm_mhuv2.c
792
static struct mbox_chan *mhuv2_mbox_of_xlate(struct mbox_controller *mbox,
drivers/mailbox/arm_mhuv2.c
796
struct mbox_chan *chans = mbox->chans;
drivers/mailbox/arm_mhuv2.c
877
struct mbox_chan *chans;
drivers/mailbox/arm_mhuv3.c
268
int (*rx_startup)(struct mhuv3 *mhu, struct mbox_chan *chan);
drivers/mailbox/arm_mhuv3.c
269
void (*rx_shutdown)(struct mhuv3 *mhu, struct mbox_chan *chan);
drivers/mailbox/arm_mhuv3.c
270
void *(*read_data)(struct mhuv3 *mhu, struct mbox_chan *chan);
drivers/mailbox/arm_mhuv3.c
271
void (*rx_complete)(struct mhuv3 *mhu, struct mbox_chan *chan);
drivers/mailbox/arm_mhuv3.c
272
void (*tx_startup)(struct mhuv3 *mhu, struct mbox_chan *chan);
drivers/mailbox/arm_mhuv3.c
273
void (*tx_shutdown)(struct mhuv3 *mhu, struct mbox_chan *chan);
drivers/mailbox/arm_mhuv3.c
274
int (*last_tx_done)(struct mhuv3 *mhu, struct mbox_chan *chan);
drivers/mailbox/arm_mhuv3.c
275
int (*send_data)(struct mhuv3 *mhu, struct mbox_chan *chan, void *arg);
drivers/mailbox/arm_mhuv3.c
314
struct mbox_chan *(*mbox_of_xlate)(struct mhuv3 *mhu,
drivers/mailbox/arm_mhuv3.c
319
struct mbox_chan *(*chan_from_comb_irq_get)(struct mhuv3 *mhu);
drivers/mailbox/arm_mhuv3.c
370
static void mhuv3_doorbell_tx_startup(struct mhuv3 *mhu, struct mbox_chan *chan)
drivers/mailbox/arm_mhuv3.c
378
static void mhuv3_doorbell_tx_shutdown(struct mhuv3 *mhu, struct mbox_chan *chan)
drivers/mailbox/arm_mhuv3.c
394
static int mhuv3_doorbell_rx_startup(struct mhuv3 *mhu, struct mbox_chan *chan)
drivers/mailbox/arm_mhuv3.c
405
struct mbox_chan *chan)
drivers/mailbox/arm_mhuv3.c
413
static void mhuv3_doorbell_rx_complete(struct mhuv3 *mhu, struct mbox_chan *chan)
drivers/mailbox/arm_mhuv3.c
422
struct mbox_chan *chan)
drivers/mailbox/arm_mhuv3.c
442
static int mhuv3_doorbell_send_data(struct mhuv3 *mhu, struct mbox_chan *chan,
drivers/mailbox/arm_mhuv3.c
472
static bool mhuv3_sender_last_tx_done(struct mbox_chan *chan)
drivers/mailbox/arm_mhuv3.c
480
static int mhuv3_sender_send_data(struct mbox_chan *chan, void *data)
drivers/mailbox/arm_mhuv3.c
491
static int mhuv3_sender_startup(struct mbox_chan *chan)
drivers/mailbox/arm_mhuv3.c
502
static void mhuv3_sender_shutdown(struct mbox_chan *chan)
drivers/mailbox/arm_mhuv3.c
518
static int mhuv3_receiver_startup(struct mbox_chan *chan)
drivers/mailbox/arm_mhuv3.c
526
static void mhuv3_receiver_shutdown(struct mbox_chan *chan)
drivers/mailbox/arm_mhuv3.c
534
static int mhuv3_receiver_send_data(struct mbox_chan *chan, void *data)
drivers/mailbox/arm_mhuv3.c
541
static bool mhuv3_receiver_last_tx_done(struct mbox_chan *chan)
drivers/mailbox/arm_mhuv3.c
554
static struct mbox_chan *mhuv3_dbe_mbox_of_xlate(struct mhuv3 *mhu,
drivers/mailbox/arm_mhuv3.c
560
struct mbox_chan *chans = mbox->chans;
drivers/mailbox/arm_mhuv3.c
599
struct mbox_chan *chans;
drivers/mailbox/arm_mhuv3.c
673
static struct mbox_chan *mhuv3_dbe_chan_from_comb_irq_get(struct mhuv3 *mhu)
drivers/mailbox/arm_mhuv3.c
788
static struct mbox_chan *mhuv3_mbox_of_xlate(struct mbox_controller *mbox,
drivers/mailbox/arm_mhuv3.c
878
struct mbox_chan *chan;
drivers/mailbox/arm_mhuv3.c
916
struct mbox_chan *chan;
drivers/mailbox/armada-37xx-rwtm-mailbox.c
103
static int a37xx_mbox_startup(struct mbox_chan *chan)
drivers/mailbox/armada-37xx-rwtm-mailbox.c
124
static void a37xx_mbox_shutdown(struct mbox_chan *chan)
drivers/mailbox/armada-37xx-rwtm-mailbox.c
146
struct mbox_chan *chans;
drivers/mailbox/armada-37xx-rwtm-mailbox.c
43
static void a37xx_mbox_receive(struct mbox_chan *chan)
drivers/mailbox/armada-37xx-rwtm-mailbox.c
58
struct mbox_chan *chan = data;
drivers/mailbox/armada-37xx-rwtm-mailbox.c
77
static int a37xx_mbox_send_data(struct mbox_chan *chan, void *data)
drivers/mailbox/ast2700-mailbox.c
113
static int ast2700_mbox_startup(struct mbox_chan *chan)
drivers/mailbox/ast2700-mailbox.c
127
static void ast2700_mbox_shutdown(struct mbox_chan *chan)
drivers/mailbox/ast2700-mailbox.c
139
static bool ast2700_mbox_last_tx_done(struct mbox_chan *chan)
drivers/mailbox/ast2700-mailbox.c
37
static inline int ch_num(struct mbox_chan *chan)
drivers/mailbox/ast2700-mailbox.c
64
struct mbox_chan *chan = &mb->mbox.chans[n];
drivers/mailbox/ast2700-mailbox.c
84
static int ast2700_mbox_send_data(struct mbox_chan *chan, void *data)
drivers/mailbox/bcm-flexrm-mailbox.c
1080
struct mbox_chan *chan = &ring->mbox->controller.chans[ring->num];
drivers/mailbox/bcm-flexrm-mailbox.c
1184
static int flexrm_send_data(struct mbox_chan *chan, void *data)
drivers/mailbox/bcm-flexrm-mailbox.c
1207
static bool flexrm_peek_data(struct mbox_chan *chan)
drivers/mailbox/bcm-flexrm-mailbox.c
1214
static int flexrm_startup(struct mbox_chan *chan)
drivers/mailbox/bcm-flexrm-mailbox.c
1348
static void flexrm_shutdown(struct mbox_chan *chan)
drivers/mailbox/bcm-flexrm-mailbox.c
1434
static struct mbox_chan *flexrm_mbox_of_xlate(struct mbox_controller *cntlr,
drivers/mailbox/bcm-flexrm-mailbox.c
1437
struct mbox_chan *chan;
drivers/mailbox/bcm-pdc-mailbox.c
1153
static bool pdc_last_tx_done(struct mbox_chan *chan)
drivers/mailbox/bcm-pdc-mailbox.c
1190
static int pdc_send_data(struct mbox_chan *chan, void *data)
drivers/mailbox/bcm-pdc-mailbox.c
1252
static int pdc_startup(struct mbox_chan *chan)
drivers/mailbox/bcm-pdc-mailbox.c
1257
static void pdc_shutdown(struct mbox_chan *chan)
drivers/mailbox/bcm-pdc-mailbox.c
579
struct mbox_chan *chan;
drivers/mailbox/bcm2835-mailbox.c
102
static void bcm2835_shutdown(struct mbox_chan *link)
drivers/mailbox/bcm2835-mailbox.c
109
static bool bcm2835_last_tx_done(struct mbox_chan *link)
drivers/mailbox/bcm2835-mailbox.c
127
static struct mbox_chan *bcm2835_mbox_index_xlate(struct mbox_controller *mbox,
drivers/mailbox/bcm2835-mailbox.c
61
static struct bcm2835_mbox *bcm2835_link_mbox(struct mbox_chan *link)
drivers/mailbox/bcm2835-mailbox.c
70
struct mbox_chan *link = &mbox->controller.chans[0];
drivers/mailbox/bcm2835-mailbox.c
80
static int bcm2835_send_data(struct mbox_chan *link, void *data)
drivers/mailbox/bcm2835-mailbox.c
92
static int bcm2835_startup(struct mbox_chan *link)
drivers/mailbox/bcm74110-mailbox.c
111
struct bcm74110_mbox_chan *mbox_chan;
drivers/mailbox/bcm74110-mailbox.c
159
struct mbox_chan *chan;
drivers/mailbox/bcm74110-mailbox.c
469
static int bcm74110_mbox_send_data(struct mbox_chan *chan, void *data)
drivers/mailbox/bcm74110-mailbox.c
488
static int bcm74110_mbox_chan_startup(struct mbox_chan *chan)
drivers/mailbox/bcm74110-mailbox.c
497
static void bcm74110_mbox_chan_shutdown(struct mbox_chan *chan)
drivers/mailbox/bcm74110-mailbox.c
532
static struct mbox_chan *bcm74110_mbox_of_xlate(struct mbox_controller *cntrl,
drivers/mailbox/bcm74110-mailbox.c
616
mbox->mbox_chan = devm_kcalloc(dev, BCM_MSG_SVC_MAX,
drivers/mailbox/bcm74110-mailbox.c
617
sizeof(*mbox->mbox_chan),
drivers/mailbox/bcm74110-mailbox.c
619
if (!mbox->mbox_chan)
drivers/mailbox/bcm74110-mailbox.c
623
mbox->mbox_chan[i].mbox = mbox;
drivers/mailbox/bcm74110-mailbox.c
624
mbox->controller.chans[i].con_priv = &mbox->mbox_chan[i];
drivers/mailbox/cix-mailbox.c
133
static bool mbox_fifo_empty(struct mbox_chan *chan)
drivers/mailbox/cix-mailbox.c
152
static int cix_mbox_send_data_db(struct mbox_chan *chan, void *data)
drivers/mailbox/cix-mailbox.c
162
static int cix_mbox_send_data_reg(struct mbox_chan *chan, void *data)
drivers/mailbox/cix-mailbox.c
181
static int cix_mbox_send_data_fifo(struct mbox_chan *chan, void *data)
drivers/mailbox/cix-mailbox.c
203
static int cix_mbox_send_data_fast(struct mbox_chan *chan, void *data)
drivers/mailbox/cix-mailbox.c
223
static int cix_mbox_send_data(struct mbox_chan *chan, void *data)
drivers/mailbox/cix-mailbox.c
253
static void cix_mbox_isr_db(struct mbox_chan *chan)
drivers/mailbox/cix-mailbox.c
277
static void cix_mbox_isr_reg(struct mbox_chan *chan)
drivers/mailbox/cix-mailbox.c
308
static void cix_mbox_isr_fifo(struct mbox_chan *chan)
drivers/mailbox/cix-mailbox.c
355
static void cix_mbox_isr_fast(struct mbox_chan *chan)
drivers/mailbox/cix-mailbox.c
376
struct mbox_chan *chan = arg;
drivers/mailbox/cix-mailbox.c
401
static int cix_mbox_startup(struct mbox_chan *chan)
drivers/mailbox/cix-mailbox.c
476
static void cix_mbox_shutdown(struct mbox_chan *chan)
drivers/mailbox/cix-mailbox.c
87
struct mbox_chan *chan;
drivers/mailbox/cix-mailbox.c
97
struct mbox_chan mbox_chans[CIX_MBOX_CHANS];
drivers/mailbox/cv1800-mailbox.c
101
static int cv1800_mbox_send_data(struct mbox_chan *chan, void *data)
drivers/mailbox/cv1800-mailbox.c
122
static bool cv1800_last_tx_done(struct mbox_chan *chan)
drivers/mailbox/cv1800-mailbox.c
139
static struct mbox_chan *cv1800_mbox_xlate(struct mbox_controller *mbox,
drivers/mailbox/cv1800-mailbox.c
49
struct mbox_chan chans[MAILBOX_MAX_CHAN];
drivers/mailbox/exynos-mailbox.c
100
struct mbox_chan *chans;
drivers/mailbox/exynos-mailbox.c
44
static int exynos_mbox_send_data(struct mbox_chan *chan, void *data)
drivers/mailbox/exynos-mailbox.c
69
static struct mbox_chan *exynos_mbox_of_xlate(struct mbox_controller *mbox,
drivers/mailbox/hi3660-mailbox.c
112
static int hi3660_mbox_unlock(struct mbox_chan *chan)
drivers/mailbox/hi3660-mailbox.c
133
static int hi3660_mbox_acquire_channel(struct mbox_chan *chan)
drivers/mailbox/hi3660-mailbox.c
159
static int hi3660_mbox_startup(struct mbox_chan *chan)
drivers/mailbox/hi3660-mailbox.c
174
static int hi3660_mbox_send_data(struct mbox_chan *chan, void *msg)
drivers/mailbox/hi3660-mailbox.c
211
static struct mbox_chan *hi3660_mbox_xlate(struct mbox_controller *controller,
drivers/mailbox/hi3660-mailbox.c
241
struct mbox_chan *chan;
drivers/mailbox/hi3660-mailbox.c
75
struct mbox_chan chan[MBOX_CHAN_MAX];
drivers/mailbox/hi3660-mailbox.c
85
static int hi3660_mbox_check_state(struct mbox_chan *chan)
drivers/mailbox/hi6220-mailbox.c
110
static bool hi6220_mbox_last_tx_done(struct mbox_chan *chan)
drivers/mailbox/hi6220-mailbox.c
123
static int hi6220_mbox_send_data(struct mbox_chan *chan, void *msg)
drivers/mailbox/hi6220-mailbox.c
153
struct mbox_chan *chan;
drivers/mailbox/hi6220-mailbox.c
194
static int hi6220_mbox_startup(struct mbox_chan *chan)
drivers/mailbox/hi6220-mailbox.c
206
static void hi6220_mbox_shutdown(struct mbox_chan *chan)
drivers/mailbox/hi6220-mailbox.c
223
static struct mbox_chan *hi6220_mbox_xlate(struct mbox_controller *controller,
drivers/mailbox/hi6220-mailbox.c
228
struct mbox_chan *chan;
drivers/mailbox/hi6220-mailbox.c
86
struct mbox_chan *chan;
drivers/mailbox/imx-mailbox.c
515
struct mbox_chan *chan = p;
drivers/mailbox/imx-mailbox.c
571
static int imx_mu_send_data(struct mbox_chan *chan, void *data)
drivers/mailbox/imx-mailbox.c
579
static int imx_mu_startup(struct mbox_chan *chan)
drivers/mailbox/imx-mailbox.c
623
static void imx_mu_shutdown(struct mbox_chan *chan)
drivers/mailbox/imx-mailbox.c
672
static struct mbox_chan *imx_mu_specific_xlate(struct mbox_controller *mbox,
drivers/mailbox/imx-mailbox.c
708
static struct mbox_chan * imx_mu_xlate(struct mbox_controller *mbox,
drivers/mailbox/imx-mailbox.c
711
struct mbox_chan *p_chan;
drivers/mailbox/imx-mailbox.c
742
static struct mbox_chan *imx_mu_seco_xlate(struct mbox_controller *mbox,
drivers/mailbox/imx-mailbox.c
83
struct mbox_chan *chan;
drivers/mailbox/imx-mailbox.c
94
struct mbox_chan mbox_chans[IMX_MU_CHANS];
drivers/mailbox/mailbox-altera.c
117
static void altera_mbox_rx_data(struct mbox_chan *chan)
drivers/mailbox/mailbox-altera.c
143
struct mbox_chan *chan = (struct mbox_chan *)p;
drivers/mailbox/mailbox-altera.c
154
struct mbox_chan *chan = (struct mbox_chan *)p;
drivers/mailbox/mailbox-altera.c
160
static int altera_mbox_startup_sender(struct mbox_chan *chan)
drivers/mailbox/mailbox-altera.c
179
static int altera_mbox_startup_receiver(struct mbox_chan *chan)
drivers/mailbox/mailbox-altera.c
206
static int altera_mbox_send_data(struct mbox_chan *chan, void *data)
drivers/mailbox/mailbox-altera.c
233
static bool altera_mbox_last_tx_done(struct mbox_chan *chan)
drivers/mailbox/mailbox-altera.c
241
static bool altera_mbox_peek_data(struct mbox_chan *chan)
drivers/mailbox/mailbox-altera.c
248
static int altera_mbox_startup(struct mbox_chan *chan)
drivers/mailbox/mailbox-altera.c
264
static void altera_mbox_shutdown(struct mbox_chan *chan)
drivers/mailbox/mailbox-altera.c
288
struct mbox_chan *chans;
drivers/mailbox/mailbox-altera.c
49
struct mbox_chan *chan;
drivers/mailbox/mailbox-altera.c
52
static struct altera_mbox *mbox_chan_to_altera_mbox(struct mbox_chan *chan)
drivers/mailbox/mailbox-mchp-ipc-sbi.c
109
struct mbox_chan *chans;
drivers/mailbox/mailbox-mchp-ipc-sbi.c
148
static inline void mchp_ipc_prepare_receive_req(struct mbox_chan *chan)
drivers/mailbox/mailbox-mchp-ipc-sbi.c
158
static inline void mchp_ipc_process_received_data(struct mbox_chan *chan,
drivers/mailbox/mailbox-mchp-ipc-sbi.c
171
struct mbox_chan *chan;
drivers/mailbox/mailbox-mchp-ipc-sbi.c
250
static int mchp_ipc_send_data(struct mbox_chan *chan, void *data)
drivers/mailbox/mailbox-mchp-ipc-sbi.c
264
static int mchp_ipc_startup(struct mbox_chan *chan)
drivers/mailbox/mailbox-mchp-ipc-sbi.c
340
static void mchp_ipc_shutdown(struct mbox_chan *chan)
drivers/mailbox/mailbox-mchp-ipc-sbi.c
356
static struct mbox_chan *mchp_ipc_mbox_xlate(struct mbox_controller *controller,
drivers/mailbox/mailbox-mpfs.c
115
static int mpfs_mbox_send_data(struct mbox_chan *chan, void *data)
drivers/mailbox/mailbox-mpfs.c
167
static void mpfs_mbox_rx_data(struct mbox_chan *chan)
drivers/mailbox/mailbox-mpfs.c
201
struct mbox_chan *chan = data;
drivers/mailbox/mailbox-mpfs.c
214
static int mpfs_mbox_startup(struct mbox_chan *chan)
drivers/mailbox/mailbox-mpfs.c
229
static void mpfs_mbox_shutdown(struct mbox_chan *chan)
drivers/mailbox/mailbox-mpfs.c
72
struct mbox_chan chans[1];
drivers/mailbox/mailbox-mpfs.c
90
static bool mpfs_mbox_last_tx_done(struct mbox_chan *chan)
drivers/mailbox/mailbox-sti.c
119
static void sti_mbox_enable_channel(struct mbox_chan *chan)
drivers/mailbox/mailbox-sti.c
134
static void sti_mbox_disable_channel(struct mbox_chan *chan)
drivers/mailbox/mailbox-sti.c
149
static void sti_mbox_clear_irq(struct mbox_chan *chan)
drivers/mailbox/mailbox-sti.c
160
static struct mbox_chan *sti_mbox_irq_to_channel(struct sti_mbox_device *mdev,
drivers/mailbox/mailbox-sti.c
164
struct mbox_chan *chan = NULL;
drivers/mailbox/mailbox-sti.c
195
struct mbox_chan *chan;
drivers/mailbox/mailbox-sti.c
218
struct mbox_chan *chan;
drivers/mailbox/mailbox-sti.c
251
static bool sti_mbox_tx_is_ready(struct mbox_chan *chan)
drivers/mailbox/mailbox-sti.c
274
static int sti_mbox_send_data(struct mbox_chan *chan, void *data)
drivers/mailbox/mailbox-sti.c
292
static int sti_mbox_startup_chan(struct mbox_chan *chan)
drivers/mailbox/mailbox-sti.c
300
static void sti_mbox_shutdown_chan(struct mbox_chan *chan)
drivers/mailbox/mailbox-sti.c
321
static struct mbox_chan *sti_mbox_xlate(struct mbox_controller *mbox,
drivers/mailbox/mailbox-sti.c
327
struct mbox_chan *chan = NULL;
drivers/mailbox/mailbox-sti.c
409
struct mbox_chan *chans;
drivers/mailbox/mailbox-sti.c
86
static inline bool sti_mbox_channel_is_enabled(struct mbox_chan *chan)
drivers/mailbox/mailbox-sti.c
97
struct mbox_chan *sti_mbox_to_channel(struct mbox_controller *mbox,
drivers/mailbox/mailbox-test.c
331
static struct mbox_chan *
drivers/mailbox/mailbox-test.c
335
struct mbox_chan *channel;
drivers/mailbox/mailbox-test.c
37
struct mbox_chan *tx_channel;
drivers/mailbox/mailbox-test.c
38
struct mbox_chan *rx_channel;
drivers/mailbox/mailbox-th1520.c
209
struct mbox_chan *chan = p;
drivers/mailbox/mailbox-th1520.c
261
static int th1520_mbox_send_data(struct mbox_chan *chan, void *data)
drivers/mailbox/mailbox-th1520.c
271
static int th1520_mbox_startup(struct mbox_chan *chan)
drivers/mailbox/mailbox-th1520.c
317
static void th1520_mbox_shutdown(struct mbox_chan *chan)
drivers/mailbox/mailbox-th1520.c
349
static struct mbox_chan *th1520_mbox_xlate(struct mbox_controller *mbox,
drivers/mailbox/mailbox-th1520.c
60
struct mbox_chan *chan;
drivers/mailbox/mailbox-th1520.c
71
struct mbox_chan mbox_chans[TH_1520_MBOX_CHANS];
drivers/mailbox/mailbox-xgene-slimpro.c
118
static int slimpro_mbox_send_data(struct mbox_chan *chan, void *msg)
drivers/mailbox/mailbox-xgene-slimpro.c
126
static int slimpro_mbox_startup(struct mbox_chan *chan)
drivers/mailbox/mailbox-xgene-slimpro.c
151
static void slimpro_mbox_shutdown(struct mbox_chan *chan)
drivers/mailbox/mailbox-xgene-slimpro.c
45
struct mbox_chan *chan;
drivers/mailbox/mailbox-xgene-slimpro.c
65
struct mbox_chan chans[MBOX_CNT];
drivers/mailbox/mailbox.c
115
struct mbox_chan *chan = &mbox->chans[i];
drivers/mailbox/mailbox.c
147
void mbox_chan_received_data(struct mbox_chan *chan, void *mssg)
drivers/mailbox/mailbox.c
165
void mbox_chan_txdone(struct mbox_chan *chan, int r)
drivers/mailbox/mailbox.c
186
void mbox_client_txdone(struct mbox_chan *chan, int r)
drivers/mailbox/mailbox.c
212
bool mbox_client_peek_data(struct mbox_chan *chan)
drivers/mailbox/mailbox.c
245
int mbox_send_message(struct mbox_chan *chan, void *mssg)
drivers/mailbox/mailbox.c
26
static int add_to_rbuf(struct mbox_chan *chan, void *mssg)
drivers/mailbox/mailbox.c
294
int mbox_flush(struct mbox_chan *chan, unsigned long timeout)
drivers/mailbox/mailbox.c
309
static int __mbox_bind_client(struct mbox_chan *chan, struct mbox_client *cl)
drivers/mailbox/mailbox.c
360
int mbox_bind_client(struct mbox_chan *chan, struct mbox_client *cl)
drivers/mailbox/mailbox.c
385
struct mbox_chan *mbox_request_channel(struct mbox_client *cl, int index)
drivers/mailbox/mailbox.c
391
struct mbox_chan *chan;
drivers/mailbox/mailbox.c
450
struct mbox_chan *mbox_request_channel_byname(struct mbox_client *cl,
drivers/mailbox/mailbox.c
469
void mbox_free_channel(struct mbox_chan *chan)
drivers/mailbox/mailbox.c
48
static void msg_submit(struct mbox_chan *chan)
drivers/mailbox/mailbox.c
489
static struct mbox_chan *fw_mbox_index_xlate(struct mbox_controller *mbox,
drivers/mailbox/mailbox.c
531
struct mbox_chan *chan = &mbox->chans[i];
drivers/mailbox/mailbox.c
84
static void tx_tick(struct mbox_chan *chan, int r)
drivers/mailbox/mtk-adsp-mailbox.c
38
struct mbox_chan *chan = data;
drivers/mailbox/mtk-adsp-mailbox.c
49
struct mbox_chan *chan = data;
drivers/mailbox/mtk-adsp-mailbox.c
56
static struct mbox_chan *mtk_adsp_mbox_xlate(struct mbox_controller *mbox,
drivers/mailbox/mtk-adsp-mailbox.c
62
static int mtk_adsp_mbox_startup(struct mbox_chan *chan)
drivers/mailbox/mtk-adsp-mailbox.c
73
static void mtk_adsp_mbox_shutdown(struct mbox_chan *chan)
drivers/mailbox/mtk-adsp-mailbox.c
82
static int mtk_adsp_mbox_send_data(struct mbox_chan *chan, void *data)
drivers/mailbox/mtk-adsp-mailbox.c
92
static bool mtk_adsp_mbox_last_tx_done(struct mbox_chan *chan)
drivers/mailbox/mtk-cmdq-mailbox.c
117
void cmdq_get_mbox_priv(struct mbox_chan *chan, struct cmdq_mbox_priv *priv)
drivers/mailbox/mtk-cmdq-mailbox.c
126
u8 cmdq_get_shift_pa(struct mbox_chan *chan)
drivers/mailbox/mtk-cmdq-mailbox.c
447
static int cmdq_mbox_send_data(struct mbox_chan *chan, void *data)
drivers/mailbox/mtk-cmdq-mailbox.c
511
static int cmdq_mbox_startup(struct mbox_chan *chan)
drivers/mailbox/mtk-cmdq-mailbox.c
516
static void cmdq_mbox_shutdown(struct mbox_chan *chan)
drivers/mailbox/mtk-cmdq-mailbox.c
557
static int cmdq_mbox_flush(struct mbox_chan *chan, unsigned long timeout)
drivers/mailbox/mtk-cmdq-mailbox.c
620
static struct mbox_chan *cmdq_xlate(struct mbox_controller *mbox,
drivers/mailbox/mtk-cmdq-mailbox.c
70
struct mbox_chan *chan;
drivers/mailbox/mtk-gpueb-mailbox.c
127
static int mtk_gpueb_mbox_send_data(struct mbox_chan *chan, void *data)
drivers/mailbox/mtk-gpueb-mailbox.c
150
static int mtk_gpueb_mbox_startup(struct mbox_chan *chan)
drivers/mailbox/mtk-gpueb-mailbox.c
185
static void mtk_gpueb_mbox_shutdown(struct mbox_chan *chan)
drivers/mailbox/mtk-gpueb-mailbox.c
196
static bool mtk_gpueb_mbox_last_tx_done(struct mbox_chan *chan)
drivers/mailbox/mtk-gpueb-mailbox.c
249
sizeof(struct mbox_chan), GFP_KERNEL);
drivers/mailbox/mtk-vcp-mailbox.c
23
struct mbox_chan chans;
drivers/mailbox/mtk-vcp-mailbox.c
49
static struct mbox_chan *mtk_vcp_mbox_xlate(struct mbox_controller *mbox,
drivers/mailbox/mtk-vcp-mailbox.c
58
static int mtk_vcp_mbox_send_data(struct mbox_chan *chan, void *data)
drivers/mailbox/mtk-vcp-mailbox.c
85
static bool mtk_vcp_mbox_last_tx_done(struct mbox_chan *chan)
drivers/mailbox/omap-mailbox.c
256
static int omap_mbox_chan_startup(struct mbox_chan *chan)
drivers/mailbox/omap-mailbox.c
271
static void omap_mbox_chan_shutdown(struct mbox_chan *chan)
drivers/mailbox/omap-mailbox.c
313
static int omap_mbox_chan_send_data(struct mbox_chan *chan, void *data)
drivers/mailbox/omap-mailbox.c
415
static struct mbox_chan *omap_mbox_of_xlate(struct mbox_controller *controller,
drivers/mailbox/omap-mailbox.c
450
struct mbox_chan *chnls;
drivers/mailbox/omap-mailbox.c
91
struct mbox_chan *chan;
drivers/mailbox/pcc.c
318
struct mbox_chan *chan = p;
drivers/mailbox/pcc.c
367
struct mbox_chan *chan;
drivers/mailbox/pcc.c
405
struct mbox_chan *chan = pchan->mchan;
drivers/mailbox/pcc.c
434
static int pcc_send_data(struct mbox_chan *chan, void *data)
drivers/mailbox/pcc.c
450
static bool pcc_last_tx_done(struct mbox_chan *chan)
drivers/mailbox/pcc.c
464
static int pcc_startup(struct mbox_chan *chan)
drivers/mailbox/pcc.c
496
static void pcc_shutdown(struct mbox_chan *chan)
drivers/mailbox/pcc.c
766
struct mbox_chan *pcc_mbox_channels;
drivers/mailbox/platform_mhu.c
102
static void platform_mhu_shutdown(struct mbox_chan *chan)
drivers/mailbox/platform_mhu.c
43
struct mbox_chan chan[MHU_CHANS];
drivers/mailbox/platform_mhu.c
49
struct mbox_chan *chan = p;
drivers/mailbox/platform_mhu.c
64
static bool platform_mhu_last_tx_done(struct mbox_chan *chan)
drivers/mailbox/platform_mhu.c
72
static int platform_mhu_send_data(struct mbox_chan *chan, void *data)
drivers/mailbox/platform_mhu.c
82
static int platform_mhu_startup(struct mbox_chan *chan)
drivers/mailbox/qcom-apcs-ipc-mailbox.c
20
struct mbox_chan mbox_chans[QCOM_APCS_IPC_BITS];
drivers/mailbox/qcom-apcs-ipc-mailbox.c
63
static int qcom_apcs_ipc_send_data(struct mbox_chan *chan, void *data)
drivers/mailbox/qcom-cpucp-mbox.c
37
struct mbox_chan chans[APSS_CPUCP_IPC_CHAN_SUPPORTED];
drivers/mailbox/qcom-cpucp-mbox.c
43
static inline int channel_number(struct mbox_chan *chan)
drivers/mailbox/qcom-cpucp-mbox.c
58
struct mbox_chan *chan = &cpucp->chans[i];
drivers/mailbox/qcom-cpucp-mbox.c
72
static int qcom_cpucp_mbox_startup(struct mbox_chan *chan)
drivers/mailbox/qcom-cpucp-mbox.c
85
static void qcom_cpucp_mbox_shutdown(struct mbox_chan *chan)
drivers/mailbox/qcom-cpucp-mbox.c
96
static int qcom_cpucp_mbox_send_data(struct mbox_chan *chan, void *data)
drivers/mailbox/qcom-ipcc.c
148
static int qcom_ipcc_mbox_send_data(struct mbox_chan *chan, void *data)
drivers/mailbox/qcom-ipcc.c
160
static void qcom_ipcc_mbox_shutdown(struct mbox_chan *chan)
drivers/mailbox/qcom-ipcc.c
165
static struct mbox_chan *qcom_ipcc_mbox_xlate(struct mbox_controller *mbox,
drivers/mailbox/qcom-ipcc.c
170
struct mbox_chan *chan;
drivers/mailbox/qcom-ipcc.c
242
sizeof(struct mbox_chan), GFP_KERNEL);
drivers/mailbox/qcom-ipcc.c
56
struct mbox_chan *chans;
drivers/mailbox/riscv-sbi-mpxy-mbox.c
474
static void mpxy_mbox_peek_rpmi_data(struct mbox_chan *chan,
drivers/mailbox/riscv-sbi-mpxy-mbox.c
507
static int mpxy_mbox_send_data(struct mbox_chan *chan, void *data)
drivers/mailbox/riscv-sbi-mpxy-mbox.c
519
static bool mpxy_mbox_peek_data(struct mbox_chan *chan)
drivers/mailbox/riscv-sbi-mpxy-mbox.c
550
static int mpxy_mbox_setup_msi(struct mbox_chan *chan,
drivers/mailbox/riscv-sbi-mpxy-mbox.c
588
static void mpxy_mbox_cleanup_msi(struct mbox_chan *chan,
drivers/mailbox/riscv-sbi-mpxy-mbox.c
664
static int mpxy_mbox_startup(struct mbox_chan *chan)
drivers/mailbox/riscv-sbi-mpxy-mbox.c
690
static void mpxy_mbox_shutdown(struct mbox_chan *chan)
drivers/mailbox/riscv-sbi-mpxy-mbox.c
744
static struct mbox_chan *mpxy_mbox_fw_xlate(struct mbox_controller *ctlr,
drivers/mailbox/rockchip-mailbox.c
52
static int rockchip_mbox_send_data(struct mbox_chan *chan, void *data)
drivers/mailbox/rockchip-mailbox.c
79
static int rockchip_mbox_startup(struct mbox_chan *chan)
drivers/mailbox/rockchip-mailbox.c
90
static void rockchip_mbox_shutdown(struct mbox_chan *chan)
drivers/mailbox/sprd-mailbox.c
128
struct mbox_chan *chan;
drivers/mailbox/sprd-mailbox.c
179
struct mbox_chan *chan;
drivers/mailbox/sprd-mailbox.c
234
static int sprd_mbox_send_data(struct mbox_chan *chan, void *msg)
drivers/mailbox/sprd-mailbox.c
253
static int sprd_mbox_flush(struct mbox_chan *chan, unsigned long timeout)
drivers/mailbox/sprd-mailbox.c
275
static int sprd_mbox_startup(struct mbox_chan *chan)
drivers/mailbox/sprd-mailbox.c
306
static void sprd_mbox_shutdown(struct mbox_chan *chan)
drivers/mailbox/sprd-mailbox.c
92
struct mbox_chan chan[SPRD_MBOX_R2_CHAN_MAX];
drivers/mailbox/stm32-ipcc.c
146
static int stm32_ipcc_send_data(struct mbox_chan *link, void *data)
drivers/mailbox/stm32-ipcc.c
165
static int stm32_ipcc_startup(struct mbox_chan *link)
drivers/mailbox/stm32-ipcc.c
185
static void stm32_ipcc_shutdown(struct mbox_chan *link)
drivers/mailbox/sun6i-msgbox.c
115
static int sun6i_msgbox_startup(struct mbox_chan *chan)
drivers/mailbox/sun6i-msgbox.c
139
static void sun6i_msgbox_shutdown(struct mbox_chan *chan)
drivers/mailbox/sun6i-msgbox.c
162
static bool sun6i_msgbox_last_tx_done(struct mbox_chan *chan)
drivers/mailbox/sun6i-msgbox.c
179
static bool sun6i_msgbox_peek_data(struct mbox_chan *chan)
drivers/mailbox/sun6i-msgbox.c
198
struct mbox_chan *chans;
drivers/mailbox/sun6i-msgbox.c
53
static bool sun6i_msgbox_last_tx_done(struct mbox_chan *chan);
drivers/mailbox/sun6i-msgbox.c
54
static bool sun6i_msgbox_peek_data(struct mbox_chan *chan);
drivers/mailbox/sun6i-msgbox.c
56
static inline int channel_number(struct mbox_chan *chan)
drivers/mailbox/sun6i-msgbox.c
61
static inline struct sun6i_msgbox *to_sun6i_msgbox(struct mbox_chan *chan)
drivers/mailbox/sun6i-msgbox.c
80
struct mbox_chan *chan = &mbox->controller.chans[n];
drivers/mailbox/sun6i-msgbox.c
99
static int sun6i_msgbox_send_data(struct mbox_chan *chan, void *data)
drivers/mailbox/tegra-hsp.c
306
static int tegra_hsp_doorbell_send_data(struct mbox_chan *chan, void *data)
drivers/mailbox/tegra-hsp.c
315
static int tegra_hsp_doorbell_startup(struct mbox_chan *chan)
drivers/mailbox/tegra-hsp.c
353
static void tegra_hsp_doorbell_shutdown(struct mbox_chan *chan)
drivers/mailbox/tegra-hsp.c
463
static int tegra_hsp_mailbox_send_data(struct mbox_chan *chan, void *data)
drivers/mailbox/tegra-hsp.c
485
static int tegra_hsp_mailbox_flush(struct mbox_chan *chan,
drivers/mailbox/tegra-hsp.c
512
static int tegra_hsp_mailbox_startup(struct mbox_chan *chan)
drivers/mailbox/tegra-hsp.c
555
static void tegra_hsp_mailbox_shutdown(struct mbox_chan *chan)
drivers/mailbox/tegra-hsp.c
59
struct mbox_chan *chan;
drivers/mailbox/tegra-hsp.c
590
static struct mbox_chan *tegra_hsp_db_xlate(struct mbox_controller *mbox,
drivers/mailbox/tegra-hsp.c
597
struct mbox_chan *chan;
drivers/mailbox/tegra-hsp.c
629
static struct mbox_chan *tegra_hsp_sm_xlate(struct mbox_controller *mbox,
drivers/mailbox/ti-msgmgr.c
116
struct mbox_chan *chan;
drivers/mailbox/ti-msgmgr.c
144
struct mbox_chan *chans;
drivers/mailbox/ti-msgmgr.c
196
static int ti_msgmgr_queue_rx_data(struct mbox_chan *chan, struct ti_queue_inst *qinst,
drivers/mailbox/ti-msgmgr.c
243
static int ti_msgmgr_queue_rx_poll_timeout(struct mbox_chan *chan, int timeout_us)
drivers/mailbox/ti-msgmgr.c
274
struct mbox_chan *chan = p;
drivers/mailbox/ti-msgmgr.c
318
static bool ti_msgmgr_queue_peek_data(struct mbox_chan *chan)
drivers/mailbox/ti-msgmgr.c
345
static bool ti_msgmgr_last_tx_done(struct mbox_chan *chan)
drivers/mailbox/ti-msgmgr.c
372
static bool ti_msgmgr_chan_has_polled_queue_rx(struct mbox_chan *chan)
drivers/mailbox/ti-msgmgr.c
390
static int ti_msgmgr_send_data(struct mbox_chan *chan, void *data)
drivers/mailbox/ti-msgmgr.c
466
struct mbox_chan *chan)
drivers/mailbox/ti-msgmgr.c
509
static int ti_msgmgr_queue_startup(struct mbox_chan *chan)
drivers/mailbox/ti-msgmgr.c
555
static void ti_msgmgr_queue_shutdown(struct mbox_chan *chan)
drivers/mailbox/ti-msgmgr.c
573
static struct mbox_chan *ti_msgmgr_of_xlate(struct mbox_controller *mbox,
drivers/mailbox/ti-msgmgr.c
643
struct mbox_chan *chan)
drivers/mailbox/ti-msgmgr.c
818
struct mbox_chan *chans;
drivers/mailbox/zynqmp-ipi-mailbox.c
178
struct mbox_chan *chan;
drivers/mailbox/zynqmp-ipi-mailbox.c
226
static bool zynqmp_ipi_peek_data(struct mbox_chan *chan)
drivers/mailbox/zynqmp-ipi-mailbox.c
266
static bool zynqmp_ipi_last_tx_done(struct mbox_chan *chan)
drivers/mailbox/zynqmp-ipi-mailbox.c
304
static int zynqmp_ipi_send_data(struct mbox_chan *chan, void *data)
drivers/mailbox/zynqmp-ipi-mailbox.c
355
static int zynqmp_ipi_startup(struct mbox_chan *chan)
drivers/mailbox/zynqmp-ipi-mailbox.c
397
static void zynqmp_ipi_shutdown(struct mbox_chan *chan)
drivers/mailbox/zynqmp-ipi-mailbox.c
442
static struct mbox_chan *zynqmp_ipi_of_xlate(struct mbox_controller *mbox,
drivers/mailbox/zynqmp-ipi-mailbox.c
445
struct mbox_chan *chan;
drivers/mailbox/zynqmp-ipi-mailbox.c
509
struct mbox_chan *chans;
drivers/media/platform/amphion/vpu.h
118
struct mbox_chan *ch;
drivers/media/platform/amphion/vpu_mbox.c
27
struct mbox_chan *ch;
drivers/platform/x86/amd/hfi/hfi.c
348
struct mbox_chan *pcc_mbox_channels;
drivers/pmdomain/mediatek/mtk-mfg-pmdomain.c
251
struct mbox_chan *ch;
drivers/remoteproc/imx_dsp_rproc.c
135
struct mbox_chan *tx_ch;
drivers/remoteproc/imx_dsp_rproc.c
136
struct mbox_chan *rx_ch;
drivers/remoteproc/imx_dsp_rproc.c
137
struct mbox_chan *rxdb_ch;
drivers/remoteproc/imx_rproc.c
116
struct mbox_chan *tx_ch;
drivers/remoteproc/imx_rproc.c
117
struct mbox_chan *rx_ch;
drivers/remoteproc/omap_remoteproc.c
108
struct mbox_chan *mbox;
drivers/remoteproc/st_remoteproc.c
334
struct mbox_chan *chan;
drivers/remoteproc/st_remoteproc.c
390
ddata->mbox_chan[ST_RPROC_VQ0 * MBOX_MAX + MBOX_RX] = chan;
drivers/remoteproc/st_remoteproc.c
398
ddata->mbox_chan[ST_RPROC_VQ0 * MBOX_MAX + MBOX_TX] = chan;
drivers/remoteproc/st_remoteproc.c
406
ddata->mbox_chan[ST_RPROC_VQ1 * MBOX_MAX + MBOX_RX] = chan;
drivers/remoteproc/st_remoteproc.c
414
ddata->mbox_chan[ST_RPROC_VQ1 * MBOX_MAX + MBOX_TX] = chan;
drivers/remoteproc/st_remoteproc.c
425
mbox_free_channel(ddata->mbox_chan[i]);
drivers/remoteproc/st_remoteproc.c
443
mbox_free_channel(ddata->mbox_chan[i]);
drivers/remoteproc/st_remoteproc.c
50
struct mbox_chan *mbox_chan[ST_RPROC_MAX_VRING * MBOX_MAX];
drivers/remoteproc/st_remoteproc.c
85
ret = mbox_send_message(ddata->mbox_chan[vqid * MBOX_MAX + MBOX_TX],
drivers/remoteproc/stm32_rproc.c
74
struct mbox_chan *chan;
drivers/remoteproc/ti_k3_common.h
93
struct mbox_chan *mbox;
drivers/remoteproc/xlnx_r5_remoteproc.c
87
struct mbox_chan *tx_chan;
drivers/remoteproc/xlnx_r5_remoteproc.c
88
struct mbox_chan *rx_chan;
drivers/rpmsg/qcom_glink_rpm.c
200
mbox_send_message(rpm->mbox_chan, NULL);
drivers/rpmsg/qcom_glink_rpm.c
201
mbox_client_txdone(rpm->mbox_chan, 0);
drivers/rpmsg/qcom_glink_rpm.c
330
rpm->mbox_chan = mbox_request_channel(&rpm->mbox_client, 0);
drivers/rpmsg/qcom_glink_rpm.c
331
if (IS_ERR(rpm->mbox_chan))
drivers/rpmsg/qcom_glink_rpm.c
332
return dev_err_probe(dev, PTR_ERR(rpm->mbox_chan), "failed to acquire IPC channel\n");
drivers/rpmsg/qcom_glink_rpm.c
351
mbox_free_channel(rpm->mbox_chan);
drivers/rpmsg/qcom_glink_rpm.c
373
mbox_free_channel(rpm->mbox_chan);
drivers/rpmsg/qcom_glink_rpm.c
63
struct mbox_chan *mbox_chan;
drivers/rpmsg/qcom_glink_smem.c
200
mbox_send_message(smem->mbox_chan, NULL);
drivers/rpmsg/qcom_glink_smem.c
201
mbox_client_txdone(smem->mbox_chan, 0);
drivers/rpmsg/qcom_glink_smem.c
318
smem->mbox_chan = mbox_request_channel(&smem->mbox_client, 0);
drivers/rpmsg/qcom_glink_smem.c
319
if (IS_ERR(smem->mbox_chan)) {
drivers/rpmsg/qcom_glink_smem.c
320
ret = dev_err_probe(&smem->dev, PTR_ERR(smem->mbox_chan),
drivers/rpmsg/qcom_glink_smem.c
354
mbox_free_channel(smem->mbox_chan);
drivers/rpmsg/qcom_glink_smem.c
371
mbox_free_channel(smem->mbox_chan);
drivers/rpmsg/qcom_glink_smem.c
45
struct mbox_chan *mbox_chan;
drivers/rpmsg/qcom_smd.c
132
struct mbox_chan *mbox_chan;
drivers/rpmsg/qcom_smd.c
1369
edge->mbox_chan = mbox_request_channel(&edge->mbox_client, 0);
drivers/rpmsg/qcom_smd.c
1370
if (IS_ERR(edge->mbox_chan)) {
drivers/rpmsg/qcom_smd.c
1371
if (PTR_ERR(edge->mbox_chan) != -ENOENT) {
drivers/rpmsg/qcom_smd.c
1372
ret = dev_err_probe(dev, PTR_ERR(edge->mbox_chan),
drivers/rpmsg/qcom_smd.c
1377
edge->mbox_chan = NULL;
drivers/rpmsg/qcom_smd.c
1520
if (!IS_ERR_OR_NULL(edge->mbox_chan))
drivers/rpmsg/qcom_smd.c
1521
mbox_free_channel(edge->mbox_chan);
drivers/rpmsg/qcom_smd.c
1551
mbox_free_channel(edge->mbox_chan);
drivers/rpmsg/qcom_smd.c
374
if (edge->mbox_chan) {
drivers/rpmsg/qcom_smd.c
380
mbox_send_message(edge->mbox_chan, NULL);
drivers/rpmsg/qcom_smd.c
381
mbox_client_txdone(edge->mbox_chan, 0);
drivers/soc/hisilicon/kunpeng_hccs.c
178
struct mbox_chan *mbox_chan;
drivers/soc/hisilicon/kunpeng_hccs.c
196
mbox_chan = pcc_chan->mchan;
drivers/soc/hisilicon/kunpeng_hccs.c
206
mbox_chan->mbox->txdone_irq) {
drivers/soc/hisilicon/kunpeng_hccs.c
211
!mbox_chan->mbox->txdone_irq) {
drivers/soc/hisilicon/kunpeng_hccs.c
311
struct mbox_chan *mbox_chan = cl_info->pcc_chan->mchan;
drivers/soc/hisilicon/kunpeng_hccs.c
325
ret = mbox_send_message(mbox_chan, &cmd);
drivers/soc/hisilicon/kunpeng_hccs.c
347
mbox_chan_txdone(mbox_chan, ret);
drivers/soc/hisilicon/kunpeng_hccs.c
349
mbox_client_txdone(mbox_chan, ret);
drivers/soc/microchip/mpfs-sys-controller.c
33
struct mbox_chan *chan;
drivers/soc/qcom/qcom_aoss.c
100
mbox_send_message(qmp->mbox_chan, NULL);
drivers/soc/qcom/qcom_aoss.c
101
mbox_client_txdone(qmp->mbox_chan, 0);
drivers/soc/qcom/qcom_aoss.c
596
qmp->mbox_chan = mbox_request_channel(&qmp->mbox_client, 0);
drivers/soc/qcom/qcom_aoss.c
597
if (IS_ERR(qmp->mbox_chan)) {
drivers/soc/qcom/qcom_aoss.c
599
return PTR_ERR(qmp->mbox_chan);
drivers/soc/qcom/qcom_aoss.c
631
mbox_free_channel(qmp->mbox_chan);
drivers/soc/qcom/qcom_aoss.c
646
mbox_free_channel(qmp->mbox_chan);
drivers/soc/qcom/qcom_aoss.c
83
struct mbox_chan *mbox_chan;
drivers/soc/qcom/smp2p.c
158
struct mbox_chan *mbox_chan;
drivers/soc/qcom/smp2p.c
172
if (smp2p->mbox_chan) {
drivers/soc/qcom/smp2p.c
173
mbox_send_message(smp2p->mbox_chan, NULL);
drivers/soc/qcom/smp2p.c
174
mbox_client_txdone(smp2p->mbox_chan, 0);
drivers/soc/qcom/smp2p.c
576
smp2p->mbox_chan = mbox_request_channel(&smp2p->mbox_client, 0);
drivers/soc/qcom/smp2p.c
577
if (IS_ERR(smp2p->mbox_chan)) {
drivers/soc/qcom/smp2p.c
578
if (PTR_ERR(smp2p->mbox_chan) != -ENOENT)
drivers/soc/qcom/smp2p.c
579
return PTR_ERR(smp2p->mbox_chan);
drivers/soc/qcom/smp2p.c
581
smp2p->mbox_chan = NULL;
drivers/soc/qcom/smp2p.c
663
mbox_free_channel(smp2p->mbox_chan);
drivers/soc/qcom/smp2p.c
685
mbox_free_channel(smp2p->mbox_chan);
drivers/soc/qcom/smsm.c
134
struct mbox_chan *mbox_chan;
drivers/soc/qcom/smsm.c
185
if (hostp->mbox_chan) {
drivers/soc/qcom/smsm.c
186
mbox_send_message(hostp->mbox_chan, NULL);
drivers/soc/qcom/smsm.c
187
mbox_client_txdone(hostp->mbox_chan, 0);
drivers/soc/qcom/smsm.c
381
host->mbox_chan = mbox_request_channel(&smsm->mbox_client, host_id);
drivers/soc/qcom/smsm.c
382
if (IS_ERR(host->mbox_chan)) {
drivers/soc/qcom/smsm.c
383
ret = PTR_ERR(host->mbox_chan);
drivers/soc/qcom/smsm.c
384
host->mbox_chan = NULL;
drivers/soc/qcom/smsm.c
656
mbox_free_channel(smsm->hosts[id].mbox_chan);
drivers/soc/qcom/smsm.c
672
mbox_free_channel(smsm->hosts[id].mbox_chan);
drivers/soc/xilinx/zynqmp_power.c
53
static struct mbox_chan *rx_chan;
drivers/tty/serial/tegra-tcu.c
30
struct mbox_chan *tx, *rx;
include/acpi/pcc.h
13
struct mbox_chan *mchan;
include/linux/firmware/imx/dsp.h
20
struct mbox_chan *ch;
include/linux/firmware/imx/dsp.h
52
struct mbox_chan *imx_dsp_request_channel(struct imx_dsp_ipc *ipc, int idx);
include/linux/firmware/imx/dsp.h
63
struct mbox_chan *imx_dsp_request_channel(struct imx_dsp_ipc *ipc, int idx)
include/linux/firmware/mediatek/mtk-adsp-ipc.h
35
struct mbox_chan *ch;
include/linux/mailbox/mtk-cmdq-mailbox.h
109
u8 cmdq_get_shift_pa(struct mbox_chan *chan);
include/linux/mailbox/mtk-cmdq-mailbox.h
97
void cmdq_get_mbox_priv(struct mbox_chan *chan, struct cmdq_mbox_priv *priv);
include/linux/mailbox/riscv-rpmi-message.h
227
static inline int rpmi_mbox_send_message(struct mbox_chan *chan,
include/linux/mailbox_client.h
13
struct mbox_chan;
include/linux/mailbox_client.h
40
int mbox_bind_client(struct mbox_chan *chan, struct mbox_client *cl);
include/linux/mailbox_client.h
41
struct mbox_chan *mbox_request_channel_byname(struct mbox_client *cl,
include/linux/mailbox_client.h
43
struct mbox_chan *mbox_request_channel(struct mbox_client *cl, int index);
include/linux/mailbox_client.h
44
int mbox_send_message(struct mbox_chan *chan, void *mssg);
include/linux/mailbox_client.h
45
int mbox_flush(struct mbox_chan *chan, unsigned long timeout);
include/linux/mailbox_client.h
46
void mbox_client_txdone(struct mbox_chan *chan, int r); /* atomic */
include/linux/mailbox_client.h
47
bool mbox_client_peek_data(struct mbox_chan *chan); /* atomic */
include/linux/mailbox_client.h
48
void mbox_free_channel(struct mbox_chan *chan); /* may sleep */
include/linux/mailbox_controller.h
12
struct mbox_chan;
include/linux/mailbox_controller.h
135
void mbox_chan_received_data(struct mbox_chan *chan, void *data); /* atomic */
include/linux/mailbox_controller.h
136
void mbox_chan_txdone(struct mbox_chan *chan, int r); /* atomic */
include/linux/mailbox_controller.h
47
int (*send_data)(struct mbox_chan *chan, void *data);
include/linux/mailbox_controller.h
48
int (*flush)(struct mbox_chan *chan, unsigned long timeout);
include/linux/mailbox_controller.h
49
int (*startup)(struct mbox_chan *chan);
include/linux/mailbox_controller.h
50
void (*shutdown)(struct mbox_chan *chan);
include/linux/mailbox_controller.h
51
bool (*last_tx_done)(struct mbox_chan *chan);
include/linux/mailbox_controller.h
52
bool (*peek_data)(struct mbox_chan *chan);
include/linux/mailbox_controller.h
78
struct mbox_chan *chans;
include/linux/mailbox_controller.h
83
struct mbox_chan *(*fw_xlate)(struct mbox_controller *mbox,
include/linux/mailbox_controller.h
85
struct mbox_chan *(*of_xlate)(struct mbox_controller *mbox,
include/linux/soc/mediatek/mtk-cmdq.h
75
struct mbox_chan *chan;
include/linux/soc/ti/ti-msgmgr.h
12
struct mbox_chan;
include/linux/soc/ti/ti-msgmgr.h
29
struct mbox_chan *chan_rx;
include/linux/wkup_m3_ipc.h
38
struct mbox_chan *mbox;
include/soc/tegra/bpmp.h
79
struct mbox_chan *channel;