/drivers/net/ethernet/cavium/liquidio/ |
D | octeon_mailbox.c | 36 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 …]
|
/drivers/mailbox/ |
D | mailbox-altera.c | 60 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 …]
|
D | hi6220-mailbox.c | 89 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 …]
|
D | sun6i-msgbox.c | 44 #define mbox_dbg(mbox, ...) dev_dbg((mbox)->controller.dev, __VA_ARGS__) argument 58 return chan - chan->mbox->chans; in channel_number() 68 struct sun6i_msgbox *mbox = dev_id; in sun6i_msgbox_irq() local 73 status = readl(mbox->regs + LOCAL_IRQ_EN_REG) & in sun6i_msgbox_irq() 74 readl(mbox->regs + LOCAL_IRQ_STAT_REG); in sun6i_msgbox_irq() 80 struct mbox_chan *chan = &mbox->controller.chans[n]; in sun6i_msgbox_irq() 86 uint32_t msg = readl(mbox->regs + MSG_DATA_REG(n)); in sun6i_msgbox_irq() 88 mbox_dbg(mbox, "Channel %d received 0x%08x\n", n, msg); in sun6i_msgbox_irq() 93 writel(RX_IRQ(n), mbox->regs + LOCAL_IRQ_STAT_REG); in sun6i_msgbox_irq() 101 struct sun6i_msgbox *mbox = to_sun6i_msgbox(chan); in sun6i_msgbox_send_data() local [all …]
|
D | armada-37xx-rwtm-mailbox.c | 45 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 …]
|
D | omap-mailbox.c | 68 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 …]
|
D | bcm2835-mailbox.c | 63 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 …]
|
D | mailbox.c | 77 err = chan->mbox->ops->send_data(chan, data); in msg_submit() 88 if (!hrtimer_active(&chan->mbox->poll_hrt)) in msg_submit() 89 hrtimer_start(&chan->mbox->poll_hrt, 0, HRTIMER_MODE_REL); in msg_submit() 119 struct mbox_controller *mbox = in txdone_hrtimer() local 124 for (i = 0; i < mbox->num_chans; i++) { in txdone_hrtimer() 125 struct mbox_chan *chan = &mbox->chans[i]; in txdone_hrtimer() 129 txdone = chan->mbox->ops->last_tx_done(chan); in txdone_hrtimer() 136 hrtimer_forward_now(hrtimer, ms_to_ktime(mbox->txpoll_period)); in txdone_hrtimer() 173 dev_err(chan->mbox->dev, in mbox_chan_txdone() 194 dev_err(chan->mbox->dev, "Client can't run the TX ticker\n"); in mbox_client_txdone() [all …]
|
D | hi3660-mailbox.c | 24 #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 …]
|
D | arm_mhu_db.c | 42 struct mbox_controller mbox; member 60 mhu_db_mbox_to_channel(struct mbox_controller *mbox, unsigned int pchan, in mhu_db_mbox_to_channel() argument 66 for (i = 0; i < mbox->num_chans; i++) { in mhu_db_mbox_to_channel() 67 chan_info = mbox->chans[i].con_priv; in mhu_db_mbox_to_channel() 70 return &mbox->chans[i]; in mhu_db_mbox_to_channel() 100 struct mbox_controller *mbox = &mhu->mbox; in mhu_db_mbox_irq_to_channel() local 113 chan = mhu_db_mbox_to_channel(mbox, pchan, doorbell); in mhu_db_mbox_irq_to_channel() 116 dev_err(mbox->dev, in mhu_db_mbox_irq_to_channel() 169 struct mbox_controller *mbox = &chan_info->mhu->mbox; in mhu_db_shutdown() local 172 for (i = 0; i < mbox->num_chans; i++) in mhu_db_shutdown() [all …]
|
D | mailbox-sti.c | 55 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 …]
|
D | bcm-flexrm-mailbox.c | 269 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 …]
|
/drivers/net/ethernet/marvell/octeontx2/af/ |
D | mbox.c | 21 void __otx2_mbox_reset(struct otx2_mbox *mbox, int devid) in __otx2_mbox_reset() argument 23 void *hw_mbase = mbox->hwbase + (devid * MBOX_SIZE); in __otx2_mbox_reset() 24 struct otx2_mbox_dev *mdev = &mbox->dev[devid]; in __otx2_mbox_reset() 27 tx_hdr = hw_mbase + mbox->tx_start; in __otx2_mbox_reset() 28 rx_hdr = hw_mbase + mbox->rx_start; in __otx2_mbox_reset() 39 void otx2_mbox_reset(struct otx2_mbox *mbox, int devid) in otx2_mbox_reset() argument 41 struct otx2_mbox_dev *mdev = &mbox->dev[devid]; in otx2_mbox_reset() 44 __otx2_mbox_reset(mbox, devid); in otx2_mbox_reset() 49 void otx2_mbox_destroy(struct otx2_mbox *mbox) in otx2_mbox_destroy() argument 51 mbox->reg_base = NULL; in otx2_mbox_destroy() [all …]
|
/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_vf.c | 86 struct otx2_mbox *mbox; in otx2vf_vfaf_mbox_handler() local 87 struct mbox *af_mbox; in otx2vf_vfaf_mbox_handler() 90 af_mbox = container_of(work, struct mbox, mbox_wrk); in otx2vf_vfaf_mbox_handler() 91 mbox = &af_mbox->mbox; in otx2vf_vfaf_mbox_handler() 92 mdev = &mbox->dev[0]; in otx2vf_vfaf_mbox_handler() 93 rsp_hdr = (struct mbox_hdr *)(mdev->mbase + mbox->rx_start); in otx2vf_vfaf_mbox_handler() 96 offset = mbox->rx_start + ALIGN(sizeof(*rsp_hdr), MBOX_MSG_ALIGN); in otx2vf_vfaf_mbox_handler() 101 offset = mbox->rx_start + msg->next_msgoff; in otx2vf_vfaf_mbox_handler() 103 __otx2_mbox_reset(mbox, 0); in otx2vf_vfaf_mbox_handler() 116 otx2_reply_invalid_msg(&vf->mbox.mbox_up, 0, 0, req->id); in otx2vf_process_mbox_msg_up() [all …]
|
D | otx2_pf.c | 106 struct mbox *mbox = &pf->mbox; in otx2_flr_handler() local 112 mutex_lock(&mbox->lock); in otx2_flr_handler() 113 req = otx2_mbox_alloc_msg_vf_flr(mbox); in otx2_flr_handler() 115 mutex_unlock(&mbox->lock); in otx2_flr_handler() 121 if (!otx2_sync_mbox_msg(&pf->mbox)) { in otx2_flr_handler() 131 mutex_unlock(&mbox->lock); in otx2_flr_handler() 285 static void otx2_queue_work(struct mbox *mw, struct workqueue_struct *mbox_wq, in otx2_queue_work() 289 struct otx2_mbox *mbox; in otx2_queue_work() local 298 mbox = &mw->mbox; in otx2_queue_work() 299 mdev = &mbox->dev[i]; in otx2_queue_work() [all …]
|
D | otx2_common.h | 143 struct mbox { struct 144 struct otx2_mbox mbox; member 249 struct mbox mbox; member 250 struct mbox *mbox_pfvf; 357 static inline int otx2_mbox_bbuf_init(struct mbox *mbox, struct pci_dev *pdev) in otx2_mbox_bbuf_init() argument 362 mbox->bbuf_base = devm_kmalloc(&pdev->dev, MBOX_SIZE, GFP_KERNEL); in otx2_mbox_bbuf_init() 363 if (!mbox->bbuf_base) in otx2_mbox_bbuf_init() 370 otx2_mbox = &mbox->mbox; in otx2_mbox_bbuf_init() 372 mdev->mbase = mbox->bbuf_base; in otx2_mbox_bbuf_init() 374 otx2_mbox = &mbox->mbox_up; in otx2_mbox_bbuf_init() [all …]
|
D | otx2_common.c | 52 mutex_lock(&pfvf->mbox.lock); in otx2_update_lmac_stats() 53 req = otx2_mbox_alloc_msg_cgx_stats(&pfvf->mbox); in otx2_update_lmac_stats() 55 mutex_unlock(&pfvf->mbox.lock); in otx2_update_lmac_stats() 59 otx2_sync_mbox_msg(&pfvf->mbox); in otx2_update_lmac_stats() 60 mutex_unlock(&pfvf->mbox.lock); in otx2_update_lmac_stats() 139 mutex_lock(&pfvf->mbox.lock); in otx2_hw_set_mac_addr() 140 req = otx2_mbox_alloc_msg_nix_set_mac_addr(&pfvf->mbox); in otx2_hw_set_mac_addr() 142 mutex_unlock(&pfvf->mbox.lock); in otx2_hw_set_mac_addr() 148 err = otx2_sync_mbox_msg(&pfvf->mbox); in otx2_hw_set_mac_addr() 149 mutex_unlock(&pfvf->mbox.lock); in otx2_hw_set_mac_addr() [all …]
|
/drivers/net/wireless/ti/wl18xx/ |
D | event.c | 118 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 …]
|
/drivers/rapidio/devices/ |
D | tsi721.c | 614 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 …]
|
/drivers/net/ethernet/mellanox/mlxsw/ |
D | pci.c | 284 static int mlxsw_pci_sdq_init(struct mlxsw_pci *mlxsw_pci, char *mbox, in mlxsw_pci_sdq_init() argument 300 mlxsw_cmd_mbox_sw2hw_dq_cq_set(mbox, q->num); in mlxsw_pci_sdq_init() 301 mlxsw_cmd_mbox_sw2hw_dq_sdq_lp_set(mbox, lp); in mlxsw_pci_sdq_init() 302 mlxsw_cmd_mbox_sw2hw_dq_sdq_tclass_set(mbox, tclass); in mlxsw_pci_sdq_init() 303 mlxsw_cmd_mbox_sw2hw_dq_log2_dq_sz_set(mbox, 3); /* 8 pages */ in mlxsw_pci_sdq_init() 307 mlxsw_cmd_mbox_sw2hw_dq_pa_set(mbox, i, mapaddr); in mlxsw_pci_sdq_init() 310 err = mlxsw_cmd_sw2hw_sdq(mlxsw_pci->core, mbox, q->num); in mlxsw_pci_sdq_init() 390 static int mlxsw_pci_rdq_init(struct mlxsw_pci *mlxsw_pci, char *mbox, in mlxsw_pci_rdq_init() argument 404 mlxsw_cmd_mbox_sw2hw_dq_cq_set(mbox, sdq_count + q->num); in mlxsw_pci_rdq_init() 405 mlxsw_cmd_mbox_sw2hw_dq_log2_dq_sz_set(mbox, 3); /* 8 pages */ in mlxsw_pci_rdq_init() [all …]
|
/drivers/net/wireless/ti/wl12xx/ |
D | event.c | 36 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 …]
|
/drivers/scsi/ |
D | myrs.c | 95 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 …]
|
/drivers/scsi/lpfc/ |
D | lpfc_mbox.c | 845 LPFC_MBOXQ_t *mbox; in lpfc_sli4_unreg_all_rpis() local 848 mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); in lpfc_sli4_unreg_all_rpis() 849 if (mbox) { in lpfc_sli4_unreg_all_rpis() 858 mbox); in lpfc_sli4_unreg_all_rpis() 859 mbox->u.mb.un.varUnregLogin.rsvd1 = 0x4000; in lpfc_sli4_unreg_all_rpis() 860 mbox->vport = vport; in lpfc_sli4_unreg_all_rpis() 861 mbox->mbox_cmpl = lpfc_sli_def_mbox_cmpl; in lpfc_sli4_unreg_all_rpis() 862 mbox->ctx_ndlp = NULL; in lpfc_sli4_unreg_all_rpis() 863 rc = lpfc_sli_issue_mbox(phba, mbox, MBX_NOWAIT); in lpfc_sli4_unreg_all_rpis() 865 mempool_free(mbox, phba->mbox_mem_pool); in lpfc_sli4_unreg_all_rpis() [all …]
|
/drivers/net/wireless/ti/wl1251/ |
D | event.c | 16 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 …]
|
/drivers/infiniband/hw/mlx5/ |
D | qpc.c | 322 static int mbox_alloc(struct mbox_info *mbox, int inlen, int outlen) in mbox_alloc() argument 324 mbox->inlen = inlen; in mbox_alloc() 325 mbox->outlen = outlen; in mbox_alloc() 326 mbox->in = kzalloc(mbox->inlen, GFP_KERNEL); in mbox_alloc() 327 mbox->out = kzalloc(mbox->outlen, GFP_KERNEL); in mbox_alloc() 328 if (!mbox->in || !mbox->out) { in mbox_alloc() 329 kfree(mbox->in); in mbox_alloc() 330 kfree(mbox->out); in mbox_alloc() 337 static void mbox_free(struct mbox_info *mbox) in mbox_free() argument 339 kfree(mbox->in); in mbox_free() [all …]
|