/linux/drivers/net/ethernet/cavium/liquidio/ |
A D | octeon_mailbox.c | 51 mbox->mbox_req.data[mbox->mbox_req.recv_len - 1] = msg.u64; in octeon_mbox_read() 55 mbox->mbox_resp.data[mbox->mbox_resp.recv_len - 1] = in octeon_mbox_read() 62 mbox->state |= in octeon_mbox_read() 65 mbox->mbox_req.q_no = mbox->q_no; in octeon_mbox_read() 77 mbox->mbox_resp.q_no = mbox->q_no; in octeon_mbox_read() 91 if (mbox->mbox_req.recv_len < mbox->mbox_req.msg.s.len) { in octeon_mbox_read() 104 mbox->state &= in octeon_mbox_read() 106 mbox->state |= in octeon_mbox_read() 134 struct octeon_mbox *mbox = oct->mbox[mbox_cmd->q_no]; in octeon_mbox_write() local 262 mbox->q_no); in octeon_mbox_process_cmd() [all …]
|
/linux/drivers/mailbox/ |
A D | mailbox-altera.c | 133 struct altera_mbox *mbox = from_timer(mbox, t, rxpoll_timer); in altera_mbox_poll_rx() local 169 dev_err(mbox->dev, in altera_mbox_startup_sender() 198 mbox->chan = chan; in altera_mbox_startup_receiver() 211 if (!mbox || !data) in altera_mbox_send_data() 214 dev_warn(mbox->dev, in altera_mbox_send_data() 253 if (!mbox) in altera_mbox_startup() 291 mbox = devm_kzalloc(&pdev->dev, sizeof(*mbox), in altera_mbox_probe() 293 if (!mbox) in altera_mbox_probe() 306 mbox->is_sender = altera_mbox_is_sender(mbox); in altera_mbox_probe() 309 if (mbox->irq >= 0) in altera_mbox_probe() [all …]
|
A D | hi6220-mailbox.c | 233 if (i >= mbox->chan_num || dst_irq >= mbox->chan_num || in hi6220_mbox_xlate() 269 mbox = devm_kzalloc(dev, sizeof(*mbox), GFP_KERNEL); in hi6220_mbox_probe() 270 if (!mbox) in hi6220_mbox_probe() 273 mbox->dev = dev; in hi6220_mbox_probe() 276 mbox->chan_num, sizeof(*mbox->mchan), GFP_KERNEL); in hi6220_mbox_probe() 281 mbox->chan_num, sizeof(*mbox->chan), GFP_KERNEL); in hi6220_mbox_probe() 282 if (!mbox->chan) in hi6220_mbox_probe() 310 mbox->controller.chans = &mbox->chan[0]; in hi6220_mbox_probe() 311 mbox->controller.num_chans = mbox->chan_num; in hi6220_mbox_probe() 316 mbox->chan[i].con_priv = &mbox->mchan[i]; in hi6220_mbox_probe() [all …]
|
A D | sun6i-msgbox.c | 44 #define mbox_dbg(mbox, ...) dev_dbg((mbox)->controller.dev, __VA_ARGS__) argument 128 spin_lock(&mbox->lock); in sun6i_msgbox_startup() 131 spin_unlock(&mbox->lock); in sun6i_msgbox_startup() 146 spin_lock(&mbox->lock); in sun6i_msgbox_shutdown() 149 spin_unlock(&mbox->lock); in sun6i_msgbox_shutdown() 200 struct sun6i_msgbox *mbox; in sun6i_msgbox_probe() local 203 mbox = devm_kzalloc(dev, sizeof(*mbox), GFP_KERNEL); in sun6i_msgbox_probe() 204 if (!mbox) in sun6i_msgbox_probe() 212 chans[i].con_priv = mbox; in sun6i_msgbox_probe() 215 if (IS_ERR(mbox->clk)) { in sun6i_msgbox_probe() [all …]
|
A D | mailbox-mpfs.c | 170 if (!mbox) in mpfs_mbox_startup() 184 devm_free_irq(mbox->dev, mbox->irq, chan); in mpfs_mbox_shutdown() 195 struct mpfs_mbox *mbox; in mpfs_mbox_probe() local 199 mbox = devm_kzalloc(&pdev->dev, sizeof(*mbox), GFP_KERNEL); in mpfs_mbox_probe() 200 if (!mbox) in mpfs_mbox_probe() 212 if (mbox->irq < 0) in mpfs_mbox_probe() 213 return mbox->irq; in mpfs_mbox_probe() 215 mbox->dev = &pdev->dev; in mpfs_mbox_probe() 217 mbox->chans[0].con_priv = mbox; in mpfs_mbox_probe() 218 mbox->controller.dev = mbox->dev; in mpfs_mbox_probe() [all …]
|
A D | armada-37xx-rwtm-mailbox.c | 109 ret = devm_request_irq(mbox->dev, mbox->irq, a37xx_mbox_irq_handler, 0, in a37xx_mbox_startup() 134 devm_free_irq(mbox->dev, mbox->irq, chan); in a37xx_mbox_shutdown() 145 struct a37xx_mbox *mbox; in armada_37xx_mbox_probe() local 149 mbox = devm_kzalloc(&pdev->dev, sizeof(*mbox), GFP_KERNEL); in armada_37xx_mbox_probe() 150 if (!mbox) in armada_37xx_mbox_probe() 159 if (IS_ERR(mbox->base)) in armada_37xx_mbox_probe() 163 if (mbox->irq < 0) in armada_37xx_mbox_probe() 164 return mbox->irq; in armada_37xx_mbox_probe() 166 mbox->dev = &pdev->dev; in armada_37xx_mbox_probe() 170 mbox->controller.dev = mbox->dev; in armada_37xx_mbox_probe() [all …]
|
A D | bcm2835-mailbox.c | 85 spin_lock(&mbox->lock); in bcm2835_send_data() 88 spin_unlock(&mbox->lock); in bcm2835_send_data() 114 spin_lock(&mbox->lock); in bcm2835_last_tx_done() 116 spin_unlock(&mbox->lock); in bcm2835_last_tx_done() 133 return &mbox->chans[0]; in bcm2835_mbox_index_xlate() 140 struct bcm2835_mbox *mbox; in bcm2835_mbox_probe() local 142 mbox = devm_kzalloc(dev, sizeof(*mbox), GFP_KERNEL); in bcm2835_mbox_probe() 143 if (mbox == NULL) in bcm2835_mbox_probe() 156 if (IS_ERR(mbox->regs)) { in bcm2835_mbox_probe() 157 ret = PTR_ERR(mbox->regs); in bcm2835_mbox_probe() [all …]
|
A D | omap-mailbox.c | 176 &mbox->tx_fifo : &mbox->rx_fifo; in ack_mbox_irq() 189 &mbox->tx_fifo : &mbox->rx_fifo; in is_mbox_irq() 204 &mbox->tx_fifo : &mbox->rx_fifo; in _omap_mbox_enable_irq() 216 &mbox->tx_fifo : &mbox->rx_fifo; in _omap_mbox_disable_irq() 366 mq->mbox = mbox; in omap_mbox_startup() 369 mbox->name, mbox); in omap_mbox_startup() 390 free_irq(mbox->irq, mbox); in omap_mbox_fini() 436 if (mbox) in omap_mbox_request_channel() 441 if (!mbox || !mbox->chan) in omap_mbox_request_channel() 480 0, mbox, "%s", mbox->name); in omap_mbox_register() [all …]
|
A D | mailbox.c | 357 chan = mbox->of_xlate(mbox, &spec); in mbox_request_channel() 483 if (!mbox || !mbox->dev || !mbox->ops || !mbox->num_chans) in mbox_controller_register() 486 if (mbox->txdone_irq) in mbox_controller_register() 509 chan->mbox = mbox; in mbox_controller_register() 514 if (!mbox->of_xlate) in mbox_controller_register() 533 if (!mbox) in mbox_controller_unregister() 538 list_del(&mbox->node); in mbox_controller_unregister() 543 if (mbox->txdone_poll) in mbox_controller_unregister() 561 if (WARN_ON(!mbox || !*mbox)) in devm_mbox_controller_match() 564 return *mbox == data; in devm_mbox_controller_match() [all …]
|
A D | hi3660-mailbox.c | 24 #define MBOX_BASE(mbox, ch) ((mbox)->base + ((ch) * 0x40)) argument 89 struct hi3660_mbox *mbox = to_hi3660_mbox(chan->mbox); in hi3660_mbox_check_state() local 115 struct hi3660_mbox *mbox = to_hi3660_mbox(chan->mbox); in hi3660_mbox_unlock() local 137 struct hi3660_mbox *mbox = to_hi3660_mbox(chan->mbox); in hi3660_mbox_acquire_channel() local 178 struct hi3660_mbox *mbox = to_hi3660_mbox(chan->mbox); in hi3660_mbox_send_data() local 228 return &mbox->chan[ch]; in hi3660_mbox_xlate() 246 mbox = devm_kzalloc(dev, sizeof(*mbox), GFP_KERNEL); in hi3660_mbox_probe() 247 if (!mbox) in hi3660_mbox_probe() 254 mbox->dev = dev; in hi3660_mbox_probe() 256 mbox->controller.chans = mbox->chan; in hi3660_mbox_probe() [all …]
|
A D | arm_mhu_db.c | 42 struct mbox_controller mbox; member 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 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 176 if (mbox->num_chans == i) { in mhu_db_shutdown() 199 dev_err(mbox->dev, in mhu_db_mbox_xlate() 218 if (mbox->num_chans == i) { in mhu_db_mbox_xlate() 223 chan = &mbox->chans[i]; in mhu_db_mbox_xlate() 289 mhu->mbox.dev = dev; in mhu_db_probe() [all …]
|
A D | mailbox-sti.c | 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 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 334 dev_err(mbox->dev, in sti_mbox_xlate() 376 dev_info(mbox->dev, in sti_mbox_xlate() 435 mbox = devm_kzalloc(&pdev->dev, sizeof(*mbox), GFP_KERNEL); in sti_mbox_probe() 436 if (!mbox) in sti_mbox_probe() 445 mdev->mbox = mbox; in sti_mbox_probe() [all …]
|
A D | apple-mailbox.c | 263 return &mbox->chans[0]; in apple_mbox_of_xlate() 271 struct apple_mbox *mbox; in apple_mbox_probe() local 280 mbox = devm_kzalloc(dev, sizeof(*mbox), GFP_KERNEL); in apple_mbox_probe() 281 if (!mbox) in apple_mbox_probe() 285 mbox->dev = dev; in apple_mbox_probe() 287 if (IS_ERR(mbox->regs)) in apple_mbox_probe() 290 mbox->hw = match->data; in apple_mbox_probe() 300 mbox->controller.dev = mbox->dev; in apple_mbox_probe() 302 mbox->controller.chans = &mbox->chan; in apple_mbox_probe() 306 mbox->chan.con_priv = mbox; in apple_mbox_probe() [all …]
|
/linux/drivers/net/ethernet/marvell/octeontx2/af/ |
A D | mbox.c | 48 mbox->reg_base = NULL; in otx2_mbox_destroy() 49 mbox->hwbase = NULL; in otx2_mbox_destroy() 51 kfree(mbox->dev); in otx2_mbox_destroy() 52 mbox->dev = NULL; in otx2_mbox_destroy() 96 mbox->tr_shift = 4; in otx2_mbox_setup() 101 mbox->tr_shift = 0; in otx2_mbox_setup() 111 mbox->tr_shift = 0; in otx2_mbox_setup() 118 mbox->pdev = pdev; in otx2_mbox_setup() 121 if (!mbox->dev) { in otx2_mbox_setup() 125 mbox->ndevs = ndevs; in otx2_mbox_setup() [all …]
|
/linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
A D | otx2_dmac_flt.c | 17 mutex_lock(&pf->mbox.lock); in otx2_dmacflt_do_add() 21 mutex_unlock(&pf->mbox.lock); in otx2_dmacflt_do_add() 30 otx2_mbox_get_rsp(&pf->mbox.mbox, 0, &req->hdr); in otx2_dmacflt_do_add() 34 mutex_unlock(&pf->mbox.lock); in otx2_dmacflt_do_add() 43 mutex_lock(&pf->mbox.lock); in otx2_dmacflt_add_pfmac() 47 mutex_unlock(&pf->mbox.lock); in otx2_dmacflt_add_pfmac() 54 mutex_unlock(&pf->mbox.lock); in otx2_dmacflt_add_pfmac() 99 mutex_lock(&pf->mbox.lock); in otx2_dmacflt_remove_pfmac() 133 mutex_lock(&pf->mbox.lock); in otx2_dmacflt_get_max_cnt() 146 otx2_mbox_get_rsp(&pf->mbox.mbox, 0, &msg->hdr); in otx2_dmacflt_get_max_cnt() [all …]
|
A D | otx2_vf.c | 98 mbox = &af_mbox->mbox; in otx2vf_vfaf_mbox_handler() 193 mbox = &vf->mbox.mbox; in otx2vf_vfaf_mbox_intr_handler() 203 memset(mbox->hwbase + mbox->rx_start, 0, in otx2vf_vfaf_mbox_intr_handler() 208 mbox = &vf->mbox.mbox_up; in otx2vf_vfaf_mbox_intr_handler() 216 memset(mbox->hwbase + mbox->rx_start, 0, in otx2vf_vfaf_mbox_intr_handler() 279 struct mbox *mbox = &vf->mbox; in otx2vf_vfaf_mbox_destroy() local 286 if (mbox->mbox.hwbase && !test_bit(CN10K_MBOX, &vf->hw.cap_flag)) in otx2vf_vfaf_mbox_destroy() 287 iounmap((void __iomem *)mbox->mbox.hwbase); in otx2vf_vfaf_mbox_destroy() 289 otx2_mbox_destroy(&mbox->mbox); in otx2vf_vfaf_mbox_destroy() 295 struct mbox *mbox = &vf->mbox; in otx2vf_vfaf_mbox_init() local [all …]
|
A D | otx2_pf.c | 114 struct mbox *mbox = &pf->mbox; in otx2_flr_handler() local 306 mbox = &mw->mbox; in otx2_queue_work() 552 struct mbox *mbox; in otx2_pfvf_mbox_intr_handler() local 578 struct mbox *mbox; in otx2_pfvf_mbox_init() local 652 if (mbox->mbox.hwbase) in otx2_pfvf_mbox_destroy() 960 struct mbox *mbox; in otx2_pfaf_mbox_intr_handler() local 965 mbox = &pf->mbox; in otx2_pfaf_mbox_intr_handler() 1029 struct mbox *mbox = &pf->mbox; in otx2_pfaf_mbox_destroy() local 1045 struct mbox *mbox = &pf->mbox; in otx2_pfaf_mbox_init() local 1331 struct mbox *mbox = &pf->mbox; in otx2_init_hw_resources() local [all …]
|
A D | otx2_common.c | 185 msghdr = otx2_mbox_get_rsp(&pfvf->mbox.mbox, 0, &req->hdr); in otx2_hw_get_mac_addr() 288 otx2_mbox_get_rsp(&pfvf->mbox.mbox, 0, &req->hdr); in otx2_set_flowkey_cfg() 304 struct mbox *mbox = &pfvf->mbox; in otx2_set_rss_table() local 466 otx2_mbox_get_rsp(&pfvf->mbox.mbox, 0, &lso->hdr); in otx2_setup_segmentation() 485 otx2_mbox_get_rsp(&pfvf->mbox.mbox, 0, &lso->hdr); in otx2_setup_segmentation() 1338 otx2_mbox_reset(&pfvf->mbox.mbox, 0); in otx2_sq_aura_pool_init() 1388 otx2_mbox_reset(&pfvf->mbox.mbox, 0); in otx2_rq_aura_pool_init() 1425 int otx2_detach_resources(struct mbox *mbox) in otx2_detach_resources() argument 1440 otx2_mbox_msg_send(&mbox->mbox, 0); in otx2_detach_resources() 1503 void otx2_ctx_disable(struct mbox *mbox, int type, bool npa) in otx2_ctx_disable() argument [all …]
|
A D | otx2_common.h | 357 struct mbox mbox; member 521 otx2_mbox = &mbox->mbox; in otx2_mbox_bbuf_init() 654 if (!otx2_mbox_nonempty(&mbox->mbox, 0)) in otx2_sync_mbox_msg() 656 otx2_mbox_msg_send(&mbox->mbox, 0); in otx2_sync_mbox_msg() 657 err = otx2_mbox_wait_for_rsp(&mbox->mbox, 0); in otx2_sync_mbox_msg() 661 return otx2_mbox_check_rsp_msgs(&mbox->mbox, 0); in otx2_sync_mbox_msg() 685 if (!otx2_mbox_nonempty(&mbox->mbox, 0)) in otx2_sync_mbox_msg_busy_poll() 687 otx2_mbox_msg_send(&mbox->mbox, 0); in otx2_sync_mbox_msg_busy_poll() 692 return otx2_mbox_check_rsp_msgs(&mbox->mbox, 0); in otx2_sync_mbox_msg_busy_poll() 702 &mbox->mbox, 0, sizeof(struct _req_type), \ [all …]
|
/linux/drivers/crypto/marvell/octeontx2/ |
A D | otx2_cpt_mbox_common.c | 11 otx2_mbox_msg_send(mbox, 0); in otx2_cpt_send_mbox_msg() 12 ret = otx2_mbox_wait_for_rsp(mbox, 0); in otx2_cpt_send_mbox_msg() 37 return otx2_cpt_send_mbox_msg(mbox, pdev); in otx2_cpt_send_ready_msg() 42 return otx2_cpt_send_mbox_msg(mbox, pdev); in otx2_cpt_send_af_reg_requests() 104 return otx2_cpt_send_mbox_msg(mbox, pdev); in otx2_cpt_read_af_reg() 116 return otx2_cpt_send_mbox_msg(mbox, pdev); in otx2_cpt_write_af_reg() 121 struct otx2_mbox *mbox = lfs->mbox; in otx2_cpt_attach_rscrs_msg() local 137 ret = otx2_cpt_send_mbox_msg(mbox, lfs->pdev); in otx2_cpt_attach_rscrs_msg() 149 struct otx2_mbox *mbox = lfs->mbox; in otx2_cpt_detach_rsrcs_msg() local 176 struct otx2_mbox *mbox = lfs->mbox; in otx2_cpt_msix_offset_msg() local [all …]
|
/linux/drivers/net/wireless/ti/wl18xx/ |
A D | event.c | 118 struct wl18xx_event_mailbox *mbox = wl->mbox; in wl18xx_process_mailbox_events() local 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() 196 mbox->sc_sync_band); in wl18xx_process_mailbox_events() 200 mbox->sc_ssid_len, in wl18xx_process_mailbox_events() 201 mbox->sc_ssid, in wl18xx_process_mailbox_events() 202 mbox->sc_pwd_len, in wl18xx_process_mailbox_events() [all …]
|
/linux/drivers/rapidio/devices/ |
A D | tsi721.c | 614 int mbox; in tsi721_omsg_msix() local 631 int mbox; in tsi721_imsg_msix() local 1973 mbox); in tsi721_open_outb_mbox() 2115 u32 mbox = ch - 4; in tsi721_imsg_handler() local 2139 priv->imsg_ring[mbox].dev_id, mbox, -1); in tsi721_imsg_handler() 2164 int ch = mbox + 4; in tsi721_open_inb_mbox() 2228 mbox); in tsi721_open_inb_mbox() 2288 mbox); in tsi721_open_inb_mbox() 2358 int ch = mbox + 4; in tsi721_close_inb_mbox() 2430 if (++priv->imsg_ring[mbox].rx_slot == priv->imsg_ring[mbox].size) in tsi721_add_inb_buffer() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlxsw/ |
A D | pci.c | 1154 mbox, 1); in mlxsw_pci_config_profile() 1160 mbox, 1); in mlxsw_pci_config_profile() 1166 mbox, 1); in mlxsw_pci_config_profile() 1172 mbox, 1); in mlxsw_pci_config_profile() 1178 mbox, 1); in mlxsw_pci_config_profile() 1184 mbox, 1); in mlxsw_pci_config_profile() 1190 mbox, 1); in mlxsw_pci_config_profile() 1206 mbox, 1); in mlxsw_pci_config_profile() 1212 mbox, 1); in mlxsw_pci_config_profile() 1218 mbox, 1); in mlxsw_pci_config_profile() [all …]
|
/linux/drivers/gpu/drm/i915/ |
A D | intel_pcode.c | 9 static int gen6_check_mailbox_status(u32 mbox) in gen6_check_mailbox_status() argument 11 switch (mbox & GEN6_PCODE_ERROR_MASK) { in gen6_check_mailbox_status() 24 MISSING_CASE(mbox & GEN6_PCODE_ERROR_MASK); in gen6_check_mailbox_status() 29 static int gen7_check_mailbox_status(u32 mbox) in gen7_check_mailbox_status() argument 31 switch (mbox & GEN6_PCODE_ERROR_MASK) { in gen7_check_mailbox_status() 49 MISSING_CASE(mbox & GEN6_PCODE_ERROR_MASK); in gen7_check_mailbox_status() 55 u32 mbox, u32 *val, u32 *val1, in __sandybridge_pcode_rw() argument 83 &mbox)) in __sandybridge_pcode_rw() 92 return gen7_check_mailbox_status(mbox); in __sandybridge_pcode_rw() 94 return gen6_check_mailbox_status(mbox); in __sandybridge_pcode_rw() [all …]
|
/linux/drivers/scsi/ |
A D | myrs.c | 95 union myrs_cmd_mbox *mbox = &cmd_blk->mbox; in myrs_reset_cmd() local 107 union myrs_cmd_mbox *mbox = &cmd_blk->mbox; in myrs_qcmd() local 161 union myrs_cmd_mbox *mbox = &cmd_blk->mbox; in myrs_get_ctlr_info() local 223 union myrs_cmd_mbox *mbox = &cmd_blk->mbox; in myrs_get_ldev_info() local 311 union myrs_cmd_mbox *mbox = &cmd_blk->mbox; in myrs_get_pdev_info() local 354 union myrs_cmd_mbox *mbox = &cmd_blk->mbox; in myrs_dev_op() local 395 mbox = &cmd_blk->mbox; in myrs_translate_pdev() 1022 mbox = &cmd_blk->mbox; in raid_state_store() 1156 mbox = &cmd_blk->mbox; in rebuild_store() 1257 mbox = &cmd_blk->mbox; in consistency_check_store() [all …]
|