Home
last modified time | relevance | path

Searched refs:mbox (Results 1 – 25 of 231) sorted by relevance

12345678910

/Linux-v5.4/drivers/net/ethernet/cavium/liquidio/
Docteon_mailbox.c36 int octeon_mbox_read(struct octeon_mbox *mbox) in octeon_mbox_read() argument
41 spin_lock(&mbox->lock); in octeon_mbox_read()
43 msg.u64 = readq(mbox->mbox_read_reg); in octeon_mbox_read()
46 spin_unlock(&mbox->lock); in octeon_mbox_read()
50 if (mbox->state & OCTEON_MBOX_STATE_REQUEST_RECEIVING) { in octeon_mbox_read()
51 mbox->mbox_req.data[mbox->mbox_req.recv_len - 1] = msg.u64; in octeon_mbox_read()
52 mbox->mbox_req.recv_len++; in octeon_mbox_read()
54 if (mbox->state & OCTEON_MBOX_STATE_RESPONSE_RECEIVING) { in octeon_mbox_read()
55 mbox->mbox_resp.data[mbox->mbox_resp.recv_len - 1] = in octeon_mbox_read()
57 mbox->mbox_resp.recv_len++; in octeon_mbox_read()
[all …]
/Linux-v5.4/drivers/mailbox/
Dmailbox-altera.c60 static inline int altera_mbox_full(struct altera_mbox *mbox) in altera_mbox_full() argument
64 status = readl_relaxed(mbox->mbox_base + MAILBOX_STS_REG); in altera_mbox_full()
68 static inline int altera_mbox_pending(struct altera_mbox *mbox) in altera_mbox_pending() argument
72 status = readl_relaxed(mbox->mbox_base + MAILBOX_STS_REG); in altera_mbox_pending()
76 static void altera_mbox_rx_intmask(struct altera_mbox *mbox, bool enable) in altera_mbox_rx_intmask() argument
80 mask = readl_relaxed(mbox->mbox_base + MAILBOX_INTMASK_REG); in altera_mbox_rx_intmask()
85 writel_relaxed(mask, mbox->mbox_base + MAILBOX_INTMASK_REG); in altera_mbox_rx_intmask()
88 static void altera_mbox_tx_intmask(struct altera_mbox *mbox, bool enable) in altera_mbox_tx_intmask() argument
92 mask = readl_relaxed(mbox->mbox_base + MAILBOX_INTMASK_REG); in altera_mbox_tx_intmask()
97 writel_relaxed(mask, mbox->mbox_base + MAILBOX_INTMASK_REG); in altera_mbox_tx_intmask()
[all …]
Dhi6220-mailbox.c89 static void mbox_set_state(struct hi6220_mbox *mbox, in mbox_set_state() argument
94 status = readl(mbox->base + MBOX_MODE_REG(slot)); in mbox_set_state()
96 writel(status, mbox->base + MBOX_MODE_REG(slot)); in mbox_set_state()
99 static void mbox_set_mode(struct hi6220_mbox *mbox, in mbox_set_mode() argument
104 mode = readl(mbox->base + MBOX_MODE_REG(slot)); in mbox_set_mode()
106 writel(mode, mbox->base + MBOX_MODE_REG(slot)); in mbox_set_mode()
112 struct hi6220_mbox *mbox = mchan->parent; in hi6220_mbox_last_tx_done() local
116 BUG_ON(mbox->tx_irq_mode); in hi6220_mbox_last_tx_done()
118 state = readl(mbox->base + MBOX_MODE_REG(mchan->slot)); in hi6220_mbox_last_tx_done()
125 struct hi6220_mbox *mbox = mchan->parent; in hi6220_mbox_send_data() local
[all …]
Darmada-37xx-rwtm-mailbox.c45 struct a37xx_mbox *mbox = chan->con_priv; in a37xx_mbox_receive() local
49 rx_msg.retval = readl(mbox->base + RWTM_MBOX_RETURN_STATUS); in a37xx_mbox_receive()
51 rx_msg.status[i] = readl(mbox->base + RWTM_MBOX_STATUS(i)); in a37xx_mbox_receive()
59 struct a37xx_mbox *mbox = chan->con_priv; in a37xx_mbox_irq_handler() local
62 reg = readl(mbox->base + RWTM_HOST_INT_RESET); in a37xx_mbox_irq_handler()
68 dev_err(mbox->dev, "Secure processor command queue full\n"); in a37xx_mbox_irq_handler()
70 writel(reg, mbox->base + RWTM_HOST_INT_RESET); in a37xx_mbox_irq_handler()
79 struct a37xx_mbox *mbox = chan->con_priv; in a37xx_mbox_send_data() local
87 reg = readl(mbox->base + RWTM_MBOX_FIFO_STATUS); in a37xx_mbox_send_data()
89 dev_warn(mbox->dev, "Secure processor not ready\n"); in a37xx_mbox_send_data()
[all …]
Dbcm2835-mailbox.c63 return container_of(link->mbox, struct bcm2835_mbox, controller); in bcm2835_link_mbox()
68 struct bcm2835_mbox *mbox = dev_id; in bcm2835_mbox_irq() local
69 struct device *dev = mbox->controller.dev; in bcm2835_mbox_irq()
70 struct mbox_chan *link = &mbox->controller.chans[0]; in bcm2835_mbox_irq()
72 while (!(readl(mbox->regs + MAIL0_STA) & ARM_MS_EMPTY)) { in bcm2835_mbox_irq()
73 u32 msg = readl(mbox->regs + MAIL0_RD); in bcm2835_mbox_irq()
82 struct bcm2835_mbox *mbox = bcm2835_link_mbox(link); in bcm2835_send_data() local
85 spin_lock(&mbox->lock); in bcm2835_send_data()
86 writel(msg, mbox->regs + MAIL1_WRT); in bcm2835_send_data()
87 dev_dbg(mbox->controller.dev, "Request 0x%08X\n", msg); in bcm2835_send_data()
[all …]
Domap-mailbox.c68 struct omap_mbox *mbox; member
144 static u32 mbox_fifo_read(struct omap_mbox *mbox) in mbox_fifo_read() argument
146 struct omap_mbox_fifo *fifo = &mbox->rx_fifo; in mbox_fifo_read()
148 return mbox_read_reg(mbox->parent, fifo->msg); in mbox_fifo_read()
151 static void mbox_fifo_write(struct omap_mbox *mbox, u32 msg) in mbox_fifo_write() argument
153 struct omap_mbox_fifo *fifo = &mbox->tx_fifo; in mbox_fifo_write()
155 mbox_write_reg(mbox->parent, msg, fifo->msg); in mbox_fifo_write()
158 static int mbox_fifo_empty(struct omap_mbox *mbox) in mbox_fifo_empty() argument
160 struct omap_mbox_fifo *fifo = &mbox->rx_fifo; in mbox_fifo_empty()
162 return (mbox_read_reg(mbox->parent, fifo->msg_stat) == 0); in mbox_fifo_empty()
[all …]
Dhi3660-mailbox.c24 #define MBOX_BASE(mbox, ch) ((mbox)->base + ((ch) * 0x40)) argument
81 static struct hi3660_mbox *to_hi3660_mbox(struct mbox_controller *mbox) in to_hi3660_mbox() argument
83 return container_of(mbox, struct hi3660_mbox, controller); in to_hi3660_mbox()
89 struct hi3660_mbox *mbox = to_hi3660_mbox(chan->mbox); in hi3660_mbox_check_state() local
90 struct hi3660_chan_info *mchan = &mbox->mchan[ch]; in hi3660_mbox_check_state()
91 void __iomem *base = MBOX_BASE(mbox, ch); in hi3660_mbox_check_state()
103 dev_err(mbox->dev, "%s: timeout for receiving ack\n", __func__); in hi3660_mbox_check_state()
115 struct hi3660_mbox *mbox = to_hi3660_mbox(chan->mbox); in hi3660_mbox_unlock() local
119 writel(MBOX_IPC_UNLOCK, mbox->base + MBOX_IPC_LOCK_REG); in hi3660_mbox_unlock()
121 val = readl(mbox->base + MBOX_IPC_LOCK_REG); in hi3660_mbox_unlock()
[all …]
Dmailbox.c77 err = chan->mbox->ops->send_data(chan, data); in msg_submit()
87 hrtimer_start(&chan->mbox->poll_hrt, 0, HRTIMER_MODE_REL); in msg_submit()
116 struct mbox_controller *mbox = in txdone_hrtimer() local
121 for (i = 0; i < mbox->num_chans; i++) { in txdone_hrtimer()
122 struct mbox_chan *chan = &mbox->chans[i]; in txdone_hrtimer()
125 txdone = chan->mbox->ops->last_tx_done(chan); in txdone_hrtimer()
134 hrtimer_forward_now(hrtimer, ms_to_ktime(mbox->txpoll_period)); in txdone_hrtimer()
171 dev_err(chan->mbox->dev, in mbox_chan_txdone()
192 dev_err(chan->mbox->dev, "Client can't run the TX ticker\n"); in mbox_client_txdone()
217 if (chan->mbox->ops->peek_data) in mbox_client_peek_data()
[all …]
Dmailbox-sti.c55 struct mbox_controller *mbox; member
97 struct mbox_chan *sti_mbox_to_channel(struct mbox_controller *mbox, in sti_mbox_to_channel() argument
104 for (i = 0; i < mbox->num_chans; i++) { in sti_mbox_to_channel()
105 chan_info = mbox->chans[i].con_priv; in sti_mbox_to_channel()
109 return &mbox->chans[i]; in sti_mbox_to_channel()
112 dev_err(mbox->dev, in sti_mbox_to_channel()
163 struct mbox_controller *mbox = mdev->mbox; in sti_mbox_irq_to_channel() local
179 chan = sti_mbox_to_channel(mbox, instance, channel); in sti_mbox_irq_to_channel()
181 dev_dbg(mbox->dev, in sti_mbox_irq_to_channel()
303 struct mbox_controller *mbox = chan_info->mdev->mbox; in sti_mbox_shutdown_chan() local
[all …]
Dbcm-flexrm-mailbox.c269 struct flexrm_mbox *mbox; member
929 static void flexrm_write_config_in_seqfile(struct flexrm_mbox *mbox, in flexrm_write_config_in_seqfile() argument
940 for (i = 0; i < mbox->num_rings; i++) { in flexrm_write_config_in_seqfile()
941 ring = &mbox->rings[i]; in flexrm_write_config_in_seqfile()
957 static void flexrm_write_stats_in_seqfile(struct flexrm_mbox *mbox, in flexrm_write_stats_in_seqfile() argument
968 for (i = 0; i < mbox->num_rings; i++) { in flexrm_write_stats_in_seqfile()
969 ring = &mbox->rings[i]; in flexrm_write_stats_in_seqfile()
1011 ret = flexrm_dma_map(ring->mbox->dev, msg); in flexrm_new_request()
1074 flexrm_dma_unmap(ring->mbox->dev, msg); in flexrm_new_request()
1091 struct mbox_chan *chan = &ring->mbox->controller.chans[ring->num]; in flexrm_process_completions()
[all …]
Drockchip-mailbox.c42 struct mbox_controller mbox; member
54 struct rockchip_mbox *mb = dev_get_drvdata(chan->mbox->dev); in rockchip_mbox_send_data()
62 dev_err(mb->mbox.dev, "Transmit size over buf size(%d)\n", in rockchip_mbox_send_data()
67 dev_dbg(mb->mbox.dev, "Chan[%d]: A2B message, cmd 0x%08x\n", in rockchip_mbox_send_data()
81 struct rockchip_mbox *mb = dev_get_drvdata(chan->mbox->dev); in rockchip_mbox_startup()
84 writel_relaxed((1 << mb->mbox.num_chans) - 1, in rockchip_mbox_startup()
92 struct rockchip_mbox *mb = dev_get_drvdata(chan->mbox->dev); in rockchip_mbox_shutdown()
113 for (idx = 0; idx < mb->mbox.num_chans; idx++) { in rockchip_mbox_irq()
131 for (idx = 0; idx < mb->mbox.num_chans; idx++) { in rockchip_mbox_isr()
137 dev_err(mb->mbox.dev, in rockchip_mbox_isr()
[all …]
Dimx-mailbox.c60 struct mbox_controller mbox; member
70 static struct imx_mu_priv *to_imx_mu_priv(struct mbox_controller *mbox) in to_imx_mu_priv() argument
72 return container_of(mbox, struct imx_mu_priv, mbox); in to_imx_mu_priv()
110 struct imx_mu_priv *priv = to_imx_mu_priv(chan->mbox); in imx_mu_isr()
156 struct imx_mu_priv *priv = to_imx_mu_priv(chan->mbox); in imx_mu_send_data()
179 struct imx_mu_priv *priv = to_imx_mu_priv(chan->mbox); in imx_mu_startup()
214 struct imx_mu_priv *priv = to_imx_mu_priv(chan->mbox); in imx_mu_shutdown()
232 static struct mbox_chan * imx_mu_xlate(struct mbox_controller *mbox, in imx_mu_xlate() argument
238 dev_err(mbox->dev, "Invalid argument count %d\n", sp->args_count); in imx_mu_xlate()
246 if (chan >= mbox->num_chans) { in imx_mu_xlate()
[all …]
Dzynqmp-ipi-mailbox.c92 struct mbox_controller mbox; member
163 chan = &ipi_mbox->mbox.chans[IPI_MB_CHNL_RX]; in zynqmp_ipi_interrupt()
189 struct device *dev = chan->mbox->dev; in zynqmp_ipi_peek_data()
229 struct device *dev = chan->mbox->dev; in zynqmp_ipi_last_tx_done()
267 struct device *dev = chan->mbox->dev; in zynqmp_ipi_send_data()
318 struct device *dev = chan->mbox->dev; in zynqmp_ipi_startup()
360 struct device *dev = chan->mbox->dev; in zynqmp_ipi_shutdown()
403 static struct mbox_chan *zynqmp_ipi_of_xlate(struct mbox_controller *mbox, in zynqmp_ipi_of_xlate() argument
407 struct device *dev = mbox->dev; in zynqmp_ipi_of_xlate()
417 chan = &mbox->chans[chan_type]; in zynqmp_ipi_of_xlate()
[all …]
/Linux-v5.4/drivers/net/ethernet/marvell/octeontx2/af/
Dmbox.c20 void otx2_mbox_reset(struct otx2_mbox *mbox, int devid) in otx2_mbox_reset() argument
22 struct otx2_mbox_dev *mdev = &mbox->dev[devid]; in otx2_mbox_reset()
25 tx_hdr = mdev->mbase + mbox->tx_start; in otx2_mbox_reset()
26 rx_hdr = mdev->mbase + mbox->rx_start; in otx2_mbox_reset()
37 void otx2_mbox_destroy(struct otx2_mbox *mbox) in otx2_mbox_destroy() argument
39 mbox->reg_base = NULL; in otx2_mbox_destroy()
40 mbox->hwbase = NULL; in otx2_mbox_destroy()
42 kfree(mbox->dev); in otx2_mbox_destroy()
43 mbox->dev = NULL; in otx2_mbox_destroy()
47 int otx2_mbox_init(struct otx2_mbox *mbox, void *hwbase, struct pci_dev *pdev, in otx2_mbox_init() argument
[all …]
/Linux-v5.4/drivers/net/wireless/ti/wl18xx/
Devent.c118 struct wl18xx_event_mailbox *mbox = wl->mbox; in wl18xx_process_mailbox_events() local
121 vector = le32_to_cpu(mbox->events_vector); in wl18xx_process_mailbox_events()
126 mbox->number_of_scan_results); in wl18xx_process_mailbox_events()
134 mbox->time_sync_tsf_high_msb, in wl18xx_process_mailbox_events()
135 mbox->time_sync_tsf_high_lsb, in wl18xx_process_mailbox_events()
136 mbox->time_sync_tsf_low_msb, in wl18xx_process_mailbox_events()
137 mbox->time_sync_tsf_low_lsb); in wl18xx_process_mailbox_events()
141 mbox->radar_channel, in wl18xx_process_mailbox_events()
142 wl18xx_radar_type_decode(mbox->radar_type)); in wl18xx_process_mailbox_events()
151 mbox->number_of_sched_scan_results); in wl18xx_process_mailbox_events()
[all …]
/Linux-v5.4/drivers/net/wireless/ti/wl12xx/
Devent.c36 struct wl12xx_event_mailbox *mbox = wl->mbox; in wl12xx_process_mailbox_events() local
40 vector = le32_to_cpu(mbox->events_vector); in wl12xx_process_mailbox_events()
41 vector &= ~(le32_to_cpu(mbox->events_mask)); in wl12xx_process_mailbox_events()
47 mbox->scheduled_scan_status); in wl12xx_process_mailbox_events()
56 mbox->scheduled_scan_status); in wl12xx_process_mailbox_events()
63 mbox->scheduled_scan_status); in wl12xx_process_mailbox_events()
66 mbox->soft_gemini_sense_info); in wl12xx_process_mailbox_events()
72 wlcore_event_rssi_trigger(wl, mbox->rssi_snr_trigger_metric); in wl12xx_process_mailbox_events()
76 BIT(mbox->role_id), in wl12xx_process_mailbox_events()
77 mbox->rx_ba_allowed); in wl12xx_process_mailbox_events()
[all …]
/Linux-v5.4/drivers/rapidio/devices/
Dtsi721.c614 int mbox; in tsi721_omsg_msix() local
616 mbox = (irq - priv->msix[TSI721_VECT_OMB0_DONE].vector) % RIO_MAX_MBOX; in tsi721_omsg_msix()
617 tsi721_omsg_handler(priv, mbox); in tsi721_omsg_msix()
631 int mbox; in tsi721_imsg_msix() local
633 mbox = (irq - priv->msix[TSI721_VECT_IMB0_RCV].vector) % RIO_MAX_MBOX; in tsi721_imsg_msix()
634 tsi721_imsg_handler(priv, mbox + 4); in tsi721_imsg_msix()
1667 tsi721_add_outb_message(struct rio_mport *mport, struct rio_dev *rdev, int mbox, in tsi721_add_outb_message() argument
1675 if (!priv->omsg_init[mbox] || in tsi721_add_outb_message()
1679 spin_lock_irqsave(&priv->omsg_ring[mbox].lock, flags); in tsi721_add_outb_message()
1681 tx_slot = priv->omsg_ring[mbox].tx_slot; in tsi721_add_outb_message()
[all …]
/Linux-v5.4/drivers/net/ethernet/mellanox/mlxsw/
Dpci.c284 static int mlxsw_pci_sdq_init(struct mlxsw_pci *mlxsw_pci, char *mbox, in mlxsw_pci_sdq_init() argument
294 mlxsw_cmd_mbox_sw2hw_dq_cq_set(mbox, q->num); in mlxsw_pci_sdq_init()
295 mlxsw_cmd_mbox_sw2hw_dq_sdq_tclass_set(mbox, 3); in mlxsw_pci_sdq_init()
296 mlxsw_cmd_mbox_sw2hw_dq_log2_dq_sz_set(mbox, 3); /* 8 pages */ in mlxsw_pci_sdq_init()
300 mlxsw_cmd_mbox_sw2hw_dq_pa_set(mbox, i, mapaddr); in mlxsw_pci_sdq_init()
303 err = mlxsw_cmd_sw2hw_sdq(mlxsw_pci->core, mbox, q->num); in mlxsw_pci_sdq_init()
386 static int mlxsw_pci_rdq_init(struct mlxsw_pci *mlxsw_pci, char *mbox, in mlxsw_pci_rdq_init() argument
400 mlxsw_cmd_mbox_sw2hw_dq_cq_set(mbox, sdq_count + q->num); in mlxsw_pci_rdq_init()
401 mlxsw_cmd_mbox_sw2hw_dq_log2_dq_sz_set(mbox, 3); /* 8 pages */ in mlxsw_pci_rdq_init()
405 mlxsw_cmd_mbox_sw2hw_dq_pa_set(mbox, i, mapaddr); in mlxsw_pci_rdq_init()
[all …]
/Linux-v5.4/drivers/net/wireless/ti/wl1251/
Devent.c16 struct event_mailbox *mbox) in wl1251_event_scan_complete() argument
21 mbox->scheduled_scan_status, in wl1251_event_scan_complete()
22 mbox->scheduled_scan_channels); in wl1251_event_scan_complete()
41 struct event_mailbox *mbox) in wl1251_event_ps_report() argument
45 wl1251_debug(DEBUG_EVENT, "ps status: %x", mbox->ps_status); in wl1251_event_ps_report()
47 switch (mbox->ps_status) { in wl1251_event_ps_report()
76 static void wl1251_event_mbox_dump(struct event_mailbox *mbox) in wl1251_event_mbox_dump() argument
79 wl1251_debug(DEBUG_EVENT, "\tvector: 0x%x", mbox->events_vector); in wl1251_event_mbox_dump()
80 wl1251_debug(DEBUG_EVENT, "\tmask: 0x%x", mbox->events_mask); in wl1251_event_mbox_dump()
83 static int wl1251_event_process(struct wl1251 *wl, struct event_mailbox *mbox) in wl1251_event_process() argument
[all …]
/Linux-v5.4/drivers/scsi/lpfc/
Dlpfc_mbox.c844 LPFC_MBOXQ_t *mbox; in lpfc_sli4_unreg_all_rpis() local
847 mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); in lpfc_sli4_unreg_all_rpis()
848 if (mbox) { in lpfc_sli4_unreg_all_rpis()
857 mbox); in lpfc_sli4_unreg_all_rpis()
858 mbox->u.mb.un.varUnregLogin.rsvd1 = 0x4000; in lpfc_sli4_unreg_all_rpis()
859 mbox->vport = vport; in lpfc_sli4_unreg_all_rpis()
860 mbox->mbox_cmpl = lpfc_sli_def_mbox_cmpl; in lpfc_sli4_unreg_all_rpis()
861 mbox->ctx_ndlp = NULL; in lpfc_sli4_unreg_all_rpis()
862 rc = lpfc_sli_issue_mbox(phba, mbox, MBX_NOWAIT); in lpfc_sli4_unreg_all_rpis()
864 mempool_free(mbox, phba->mbox_mem_pool); in lpfc_sli4_unreg_all_rpis()
[all …]
/Linux-v5.4/drivers/scsi/
Dmyrs.c95 union myrs_cmd_mbox *mbox = &cmd_blk->mbox; in myrs_reset_cmd() local
97 memset(mbox, 0, sizeof(union myrs_cmd_mbox)); in myrs_reset_cmd()
107 union myrs_cmd_mbox *mbox = &cmd_blk->mbox; in myrs_qcmd() local
110 cs->write_cmd_mbox(next_mbox, mbox); in myrs_qcmd()
162 union myrs_cmd_mbox *mbox = &cmd_blk->mbox; in myrs_get_ctlr_info() local
180 mbox->ctlr_info.id = MYRS_DCMD_TAG; in myrs_get_ctlr_info()
181 mbox->ctlr_info.opcode = MYRS_CMD_OP_IOCTL; in myrs_get_ctlr_info()
182 mbox->ctlr_info.control.dma_ctrl_to_host = true; in myrs_get_ctlr_info()
183 mbox->ctlr_info.control.no_autosense = true; in myrs_get_ctlr_info()
184 mbox->ctlr_info.dma_size = sizeof(struct myrs_ctlr_info); in myrs_get_ctlr_info()
[all …]
Dmyrb.c154 union myrb_cmd_mbox *mbox = &cmd_blk->mbox; in myrb_reset_cmd() local
156 memset(mbox, 0, sizeof(union myrb_cmd_mbox)); in myrb_reset_cmd()
166 union myrb_cmd_mbox *mbox = &cmd_blk->mbox; in myrb_qcmd() local
169 cb->write_cmd_mbox(next_mbox, mbox); in myrb_qcmd()
211 union myrb_cmd_mbox *mbox = &cmd_blk->mbox; in myrb_exec_type3() local
216 mbox->type3.id = MYRB_DCMD_TAG; in myrb_exec_type3()
217 mbox->type3.opcode = op; in myrb_exec_type3()
218 mbox->type3.addr = addr; in myrb_exec_type3()
234 union myrb_cmd_mbox *mbox = &cmd_blk->mbox; in myrb_exec_type3D() local
246 mbox->type3D.id = MYRB_DCMD_TAG; in myrb_exec_type3D()
[all …]
/Linux-v5.4/drivers/scsi/megaraid/
Dmegaraid_mbox.c980 raid_dev->mbox = &raid_dev->una_mbox64->mbox32; in megaraid_alloc_cmd_packets()
982 raid_dev->mbox = (mbox_t *)((((unsigned long)raid_dev->mbox) + 15) & in megaraid_alloc_cmd_packets()
985 raid_dev->mbox64 = (mbox64_t *)(((unsigned long)raid_dev->mbox) - 8); in megaraid_alloc_cmd_packets()
987 align = ((void *)raid_dev->mbox - in megaraid_alloc_cmd_packets()
1042 ccb->mbox = (mbox_t *)(mbox_pci_blk[i].vaddr + 16); in megaraid_alloc_cmd_packets()
1043 ccb->raw_mbox = (uint8_t *)ccb->mbox; in megaraid_alloc_cmd_packets()
1378 mbox_t *mbox; in mbox_post_cmd() local
1385 mbox = raid_dev->mbox; in mbox_post_cmd()
1394 if (unlikely(mbox->busy)) { in mbox_post_cmd()
1399 } while(mbox->busy && (i < max_mbox_busy_wait)); in mbox_post_cmd()
[all …]
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/
Dqp.c402 static int mbox_alloc(struct mbox_info *mbox, int inlen, int outlen) in mbox_alloc() argument
404 mbox->inlen = inlen; in mbox_alloc()
405 mbox->outlen = outlen; in mbox_alloc()
406 mbox->in = kzalloc(mbox->inlen, GFP_KERNEL); in mbox_alloc()
407 mbox->out = kzalloc(mbox->outlen, GFP_KERNEL); in mbox_alloc()
408 if (!mbox->in || !mbox->out) { in mbox_alloc()
409 kfree(mbox->in); in mbox_alloc()
410 kfree(mbox->out); in mbox_alloc()
417 static void mbox_free(struct mbox_info *mbox) in mbox_free() argument
419 kfree(mbox->in); in mbox_free()
[all …]
/Linux-v5.4/Documentation/devicetree/bindings/mailbox/
Domap-mailbox.txt50 - #mbox-cells: Common mailbox binding property to identify the number
53 - ti,mbox-num-users: Number of targets (processor devices) that the mailbox
55 - ti,mbox-num-fifos: Number of h/w fifo queues within the mailbox IP block
83 - ti,mbox-tx: sub-mailbox descriptor property defining a Tx fifo
84 - ti,mbox-rx: sub-mailbox descriptor property defining a Rx fifo
88 Each of the above ti,mbox-tx and ti,mbox-rx properties should have 3 cells of
91 (ti,mbox-tx) or for receiving (ti,mbox-rx)
101 - ti,mbox-send-noirq: Quirk flag to allow the client user of this sub-mailbox
111 "mbox-names" (please see Documentation/devicetree/bindings/mailbox/mailbox.txt
115 "mbox-names" property value can be used to give a name to the communication channel
[all …]

12345678910