mbox 2623 arch/mips/cavium-octeon/octeon-irq.c static unsigned int octeon_irq_ciu3_mbox_intsn_for_core(int core, unsigned int mbox) mbox 2625 arch/mips/cavium-octeon/octeon-irq.c return octeon_irq_ciu3_base_mbox_intsn(core) + mbox; mbox 2628 arch/mips/cavium-octeon/octeon-irq.c static unsigned int octeon_irq_ciu3_mbox_intsn_for_cpu(int cpu, unsigned int mbox) mbox 2632 arch/mips/cavium-octeon/octeon-irq.c return octeon_irq_ciu3_mbox_intsn_for_core(local_core, mbox); mbox 2649 arch/mips/cavium-octeon/octeon-irq.c int mbox = intsn - octeon_irq_ciu3_base_mbox_intsn(core); mbox 2651 arch/mips/cavium-octeon/octeon-irq.c if (likely(mbox >= 0 && mbox < CIU3_MBOX_PER_CORE)) { mbox 2652 arch/mips/cavium-octeon/octeon-irq.c do_IRQ(mbox + OCTEON_IRQ_MBOX0); mbox 2668 arch/mips/cavium-octeon/octeon-irq.c void octeon_ciu3_mbox_send(int cpu, unsigned int mbox) mbox 2675 arch/mips/cavium-octeon/octeon-irq.c if (WARN_ON_ONCE(mbox >= CIU3_MBOX_PER_CORE)) mbox 2678 arch/mips/cavium-octeon/octeon-irq.c intsn = octeon_irq_ciu3_mbox_intsn_for_cpu(cpu, mbox); mbox 2695 arch/mips/cavium-octeon/octeon-irq.c unsigned int mbox = data->irq - OCTEON_IRQ_MBOX0; mbox 2697 arch/mips/cavium-octeon/octeon-irq.c intsn = octeon_irq_ciu3_mbox_intsn_for_cpu(cpu, mbox); mbox 2721 arch/mips/cavium-octeon/octeon-irq.c unsigned int mbox = data->irq - OCTEON_IRQ_MBOX0; mbox 2723 arch/mips/cavium-octeon/octeon-irq.c WARN_ON(mbox >= CIU3_MBOX_PER_CORE); mbox 2732 arch/mips/cavium-octeon/octeon-irq.c unsigned int mbox = data->irq - OCTEON_IRQ_MBOX0; mbox 2734 arch/mips/cavium-octeon/octeon-irq.c WARN_ON(mbox >= CIU3_MBOX_PER_CORE); mbox 2746 arch/mips/cavium-octeon/octeon-irq.c unsigned int mbox = data->irq - OCTEON_IRQ_MBOX0; mbox 2748 arch/mips/cavium-octeon/octeon-irq.c intsn = octeon_irq_ciu3_mbox_intsn_for_core(cvmx_get_local_core_num(), mbox); mbox 316 arch/mips/include/asm/octeon/cvmx-sriox-defs.h uint64_t mbox:4; mbox 318 arch/mips/include/asm/octeon/cvmx-sriox-defs.h uint64_t mbox:4; mbox 735 arch/mips/include/asm/octeon/cvmx-sriox-defs.h uint64_t mbox:2; mbox 745 arch/mips/include/asm/octeon/cvmx-sriox-defs.h uint64_t mbox:2; mbox 1354 arch/mips/include/asm/octeon/cvmx-sriox-defs.h uint64_t mbox:4; mbox 1364 arch/mips/include/asm/octeon/cvmx-sriox-defs.h uint64_t mbox:4; mbox 1458 arch/mips/include/asm/octeon/cvmx-sriox-defs.h uint64_t mbox:4; mbox 1468 arch/mips/include/asm/octeon/cvmx-sriox-defs.h uint64_t mbox:4; mbox 311 arch/mips/include/asm/octeon/octeon.h void octeon_ciu3_mbox_send(int cpu, unsigned int mbox); mbox 217 arch/mips/paravirt/paravirt-irq.c unsigned int mbox = data->irq - MIPS_IRQ_MBOX0; mbox 220 arch/mips/paravirt/paravirt-irq.c WARN_ON(mbox >= MBOX_BITS_PER_CPU); mbox 224 arch/mips/paravirt/paravirt-irq.c mask = 1 << (cpuid * MBOX_BITS_PER_CPU + mbox); mbox 242 arch/mips/paravirt/paravirt-irq.c unsigned int mbox = data->irq - MIPS_IRQ_MBOX0; mbox 244 arch/mips/paravirt/paravirt-irq.c WARN_ON(mbox >= MBOX_BITS_PER_CPU); mbox 246 arch/mips/paravirt/paravirt-irq.c mask = 1 << (get_ebase_cpunum() * MBOX_BITS_PER_CPU + mbox); mbox 263 arch/mips/paravirt/paravirt-irq.c unsigned int mbox = data->irq - MIPS_IRQ_MBOX0; mbox 267 arch/mips/paravirt/paravirt-irq.c WARN_ON(mbox >= MBOX_BITS_PER_CPU); mbox 269 arch/mips/paravirt/paravirt-irq.c mask = 1 << (cpuid * MBOX_BITS_PER_CPU + mbox); mbox 135 arch/powerpc/sysdev/fsl_rio.h int mbox, void *buffer, size_t len); mbox 137 arch/powerpc/sysdev/fsl_rio.h void *dev_id, int mbox, int entries); mbox 138 arch/powerpc/sysdev/fsl_rio.h extern void fsl_close_outb_mbox(struct rio_mport *mport, int mbox); mbox 140 arch/powerpc/sysdev/fsl_rio.h void *dev_id, int mbox, int entries); mbox 141 arch/powerpc/sysdev/fsl_rio.h extern void fsl_close_inb_mbox(struct rio_mport *mport, int mbox); mbox 142 arch/powerpc/sysdev/fsl_rio.h extern int fsl_add_inb_buffer(struct rio_mport *mport, int mbox, void *buf); mbox 143 arch/powerpc/sysdev/fsl_rio.h extern void *fsl_get_inb_message(struct rio_mport *mport, int mbox); mbox 660 arch/powerpc/sysdev/fsl_rmu.c fsl_add_outb_message(struct rio_mport *mport, struct rio_dev *rdev, int mbox, mbox 670 arch/powerpc/sysdev/fsl_rmu.c "%p len %8.8zx\n", rdev->destid, mbox, buffer, len); mbox 684 arch/powerpc/sysdev/fsl_rmu.c desc->dport = (rdev->destid << 16) | (mbox & 0x3); mbox 720 arch/powerpc/sysdev/fsl_rmu.c fsl_open_outb_mbox(struct rio_mport *mport, void *dev_id, int mbox, int entries) mbox 823 arch/powerpc/sysdev/fsl_rmu.c void fsl_close_outb_mbox(struct rio_mport *mport, int mbox) mbox 852 arch/powerpc/sysdev/fsl_rmu.c fsl_open_inb_mbox(struct rio_mport *mport, void *dev_id, int mbox, int entries) mbox 924 arch/powerpc/sysdev/fsl_rmu.c void fsl_close_inb_mbox(struct rio_mport *mport, int mbox) mbox 949 arch/powerpc/sysdev/fsl_rmu.c int fsl_add_inb_buffer(struct rio_mport *mport, int mbox, void *buf) mbox 981 arch/powerpc/sysdev/fsl_rmu.c void *fsl_get_inb_message(struct rio_mport *mport, int mbox) mbox 319 drivers/acpi/cppc_acpi.c if (pcc_ss_data->pcc_channel->mbox->txdone_irq) mbox 43 drivers/clk/hisilicon/clk-hi3660-stub.c struct mbox_chan *mbox; mbox 91 drivers/clk/hisilicon/clk-hi3660-stub.c mbox_send_message(stub_clk_chan.mbox, stub_clk->msg); mbox 92 drivers/clk/hisilicon/clk-hi3660-stub.c mbox_client_txdone(stub_clk_chan.mbox, 0); mbox 138 drivers/clk/hisilicon/clk-hi3660-stub.c stub_clk_chan.mbox = mbox_request_channel(&stub_clk_chan.cl, 0); mbox 139 drivers/clk/hisilicon/clk-hi3660-stub.c if (IS_ERR(stub_clk_chan.mbox)) mbox 140 drivers/clk/hisilicon/clk-hi3660-stub.c return PTR_ERR(stub_clk_chan.mbox); mbox 51 drivers/clk/hisilicon/clk-hi6220-stub.c struct mbox_chan *mbox; mbox 89 drivers/clk/hisilicon/clk-hi6220-stub.c mbox_send_message(stub_clk->mbox, &data); mbox 225 drivers/clk/hisilicon/clk-hi6220-stub.c stub_clk->mbox = mbox_request_channel(&stub_clk->cl, 0); mbox 226 drivers/clk/hisilicon/clk-hi6220-stub.c if (IS_ERR(stub_clk->mbox)) { mbox 228 drivers/clk/hisilicon/clk-hi6220-stub.c return PTR_ERR(stub_clk->mbox); mbox 254 drivers/crypto/bcm/cipher.c err = mbox_send_message(iproc_priv.mbox[chan_idx], mssg); mbox 263 drivers/crypto/bcm/cipher.c err = mbox_send_message(iproc_priv.mbox[chan_idx], mbox 281 drivers/crypto/bcm/cipher.c mbox_client_txdone(iproc_priv.mbox[chan_idx], err); mbox 4455 drivers/crypto/bcm/cipher.c iproc_priv.mbox = devm_kcalloc(dev, iproc_priv.spu.num_chan, mbox 4457 drivers/crypto/bcm/cipher.c if (!iproc_priv.mbox) mbox 4468 drivers/crypto/bcm/cipher.c iproc_priv.mbox[i] = mbox_request_channel(mcl, i); mbox 4469 drivers/crypto/bcm/cipher.c if (IS_ERR(iproc_priv.mbox[i])) { mbox 4470 drivers/crypto/bcm/cipher.c err = (int)PTR_ERR(iproc_priv.mbox[i]); mbox 4474 drivers/crypto/bcm/cipher.c iproc_priv.mbox[i] = NULL; mbox 4482 drivers/crypto/bcm/cipher.c if (iproc_priv.mbox[i]) mbox 4483 drivers/crypto/bcm/cipher.c mbox_free_channel(iproc_priv.mbox[i]); mbox 4494 drivers/crypto/bcm/cipher.c mbox_free_channel(iproc_priv.mbox[i]); mbox 465 drivers/crypto/bcm/cipher.h struct mbox_chan **mbox; mbox 378 drivers/crypto/cavium/cpt/cpt_hw_types.h u64 mbox:1; mbox 380 drivers/crypto/cavium/cpt/cpt_hw_types.h u64 mbox:1; mbox 476 drivers/crypto/cavium/cpt/cpt_hw_types.h u64 mbox:1; mbox 478 drivers/crypto/cavium/cpt/cpt_hw_types.h u64 mbox:1; mbox 435 drivers/crypto/cavium/cpt/cptvf_main.c vqx_misc_ena.s.mbox = 1; mbox 495 drivers/crypto/cavium/cpt/cptvf_main.c vqx_misc_int.s.mbox = 1; mbox 853 drivers/crypto/cavium/nitrox/nitrox_csr.h u64 mbox : 1; mbox 885 drivers/crypto/cavium/nitrox/nitrox_csr.h u64 mbox : 1; mbox 252 drivers/crypto/cavium/nitrox/nitrox_isr.c if (core_int.s.mbox) mbox 28 drivers/firmware/tegra/bpmp-tegra186.c } mbox; mbox 36 drivers/firmware/tegra/bpmp-tegra186.c priv = container_of(client, struct tegra186_bpmp, mbox.client); mbox 86 drivers/firmware/tegra/bpmp-tegra186.c err = mbox_send_message(priv->mbox.channel, NULL); mbox 90 drivers/firmware/tegra/bpmp-tegra186.c mbox_client_txdone(priv->mbox.channel, 0); mbox 100 drivers/firmware/tegra/bpmp-tegra186.c if (WARN_ON(priv->mbox.channel == NULL)) mbox 222 drivers/firmware/tegra/bpmp-tegra186.c priv->mbox.client.dev = bpmp->dev; mbox 223 drivers/firmware/tegra/bpmp-tegra186.c priv->mbox.client.rx_callback = mbox_handle_rx; mbox 224 drivers/firmware/tegra/bpmp-tegra186.c priv->mbox.client.tx_block = false; mbox 225 drivers/firmware/tegra/bpmp-tegra186.c priv->mbox.client.knows_txdone = false; mbox 227 drivers/firmware/tegra/bpmp-tegra186.c priv->mbox.channel = mbox_request_channel(&priv->mbox.client, 0); mbox 228 drivers/firmware/tegra/bpmp-tegra186.c if (IS_ERR(priv->mbox.channel)) { mbox 229 drivers/firmware/tegra/bpmp-tegra186.c err = PTR_ERR(priv->mbox.channel); mbox 266 drivers/firmware/tegra/bpmp-tegra186.c mbox_free_channel(priv->mbox.channel); mbox 30 drivers/firmware/tegra/bpmp.c return container_of(client, struct tegra_bpmp, mbox.client); mbox 51 drivers/firmware/turris-mox-rwtm.c struct mbox_chan *mbox; mbox 182 drivers/firmware/turris-mox-rwtm.c ret = mbox_send_message(rwtm->mbox, &msg); mbox 215 drivers/firmware/turris-mox-rwtm.c ret = mbox_send_message(rwtm->mbox, &msg); mbox 262 drivers/firmware/turris-mox-rwtm.c ret = mbox_send_message(rwtm->mbox, &msg); mbox 317 drivers/firmware/turris-mox-rwtm.c rwtm->mbox = mbox_request_channel(&rwtm->mbox_client, 0); mbox 318 drivers/firmware/turris-mox-rwtm.c if (IS_ERR(rwtm->mbox)) { mbox 319 drivers/firmware/turris-mox-rwtm.c ret = PTR_ERR(rwtm->mbox); mbox 346 drivers/firmware/turris-mox-rwtm.c mbox_free_channel(rwtm->mbox); mbox 360 drivers/firmware/turris-mox-rwtm.c mbox_free_channel(rwtm->mbox); mbox 335 drivers/gpu/drm/i915/intel_sideband.c static inline int gen6_check_mailbox_status(u32 mbox) mbox 337 drivers/gpu/drm/i915/intel_sideband.c switch (mbox & GEN6_PCODE_ERROR_MASK) { mbox 350 drivers/gpu/drm/i915/intel_sideband.c MISSING_CASE(mbox & GEN6_PCODE_ERROR_MASK); mbox 355 drivers/gpu/drm/i915/intel_sideband.c static inline int gen7_check_mailbox_status(u32 mbox) mbox 357 drivers/gpu/drm/i915/intel_sideband.c switch (mbox & GEN6_PCODE_ERROR_MASK) { mbox 369 drivers/gpu/drm/i915/intel_sideband.c MISSING_CASE(mbox & GEN6_PCODE_ERROR_MASK); mbox 375 drivers/gpu/drm/i915/intel_sideband.c u32 mbox, u32 *val, u32 *val1, mbox 396 drivers/gpu/drm/i915/intel_sideband.c GEN6_PCODE_MAILBOX, GEN6_PCODE_READY | mbox); mbox 403 drivers/gpu/drm/i915/intel_sideband.c &mbox)) mbox 412 drivers/gpu/drm/i915/intel_sideband.c return gen7_check_mailbox_status(mbox); mbox 414 drivers/gpu/drm/i915/intel_sideband.c return gen6_check_mailbox_status(mbox); mbox 417 drivers/gpu/drm/i915/intel_sideband.c int sandybridge_pcode_read(struct drm_i915_private *i915, u32 mbox, mbox 423 drivers/gpu/drm/i915/intel_sideband.c err = __sandybridge_pcode_rw(i915, mbox, val, val1, mbox 430 drivers/gpu/drm/i915/intel_sideband.c mbox, __builtin_return_address(0), err); mbox 437 drivers/gpu/drm/i915/intel_sideband.c u32 mbox, u32 val, mbox 444 drivers/gpu/drm/i915/intel_sideband.c err = __sandybridge_pcode_rw(i915, mbox, &val, NULL, mbox 451 drivers/gpu/drm/i915/intel_sideband.c val, mbox, __builtin_return_address(0), err); mbox 457 drivers/gpu/drm/i915/intel_sideband.c static bool skl_pcode_try_request(struct drm_i915_private *i915, u32 mbox, mbox 461 drivers/gpu/drm/i915/intel_sideband.c *status = __sandybridge_pcode_rw(i915, mbox, &request, NULL, mbox 487 drivers/gpu/drm/i915/intel_sideband.c int skl_pcode_request(struct drm_i915_private *i915, u32 mbox, u32 request, mbox 496 drivers/gpu/drm/i915/intel_sideband.c skl_pcode_try_request(i915, mbox, request, reply_mask, reply, &status) mbox 130 drivers/gpu/drm/i915/intel_sideband.h int sandybridge_pcode_read(struct drm_i915_private *i915, u32 mbox, mbox 132 drivers/gpu/drm/i915/intel_sideband.h int sandybridge_pcode_write_timeout(struct drm_i915_private *i915, u32 mbox, mbox 135 drivers/gpu/drm/i915/intel_sideband.h #define sandybridge_pcode_write(i915, mbox, val) \ mbox 136 drivers/gpu/drm/i915/intel_sideband.h sandybridge_pcode_write_timeout(i915, mbox, val, 500, 0) mbox 138 drivers/gpu/drm/i915/intel_sideband.h int skl_pcode_request(struct drm_i915_private *i915, u32 mbox, u32 request, mbox 695 drivers/hwmon/xgene-hwmon.c if (!ctx->mbox_chan->mbox->txdone_irq) { mbox 506 drivers/i2c/busses/i2c-xgene-slimpro.c if (!ctx->mbox_chan->mbox->txdone_irq) { mbox 37 drivers/mailbox/arm_mhu.c struct mbox_controller mbox; mbox 87 drivers/mailbox/arm_mhu.c dev_err(chan->mbox->dev, mbox 134 drivers/mailbox/arm_mhu.c mhu->mbox.dev = dev; mbox 135 drivers/mailbox/arm_mhu.c mhu->mbox.chans = &mhu->chan[0]; mbox 136 drivers/mailbox/arm_mhu.c mhu->mbox.num_chans = MHU_CHANS; mbox 137 drivers/mailbox/arm_mhu.c mhu->mbox.ops = &mhu_ops; mbox 138 drivers/mailbox/arm_mhu.c mhu->mbox.txdone_irq = false; mbox 139 drivers/mailbox/arm_mhu.c mhu->mbox.txdone_poll = true; mbox 140 drivers/mailbox/arm_mhu.c mhu->mbox.txpoll_period = 1; mbox 144 drivers/mailbox/arm_mhu.c err = devm_mbox_controller_register(dev, &mhu->mbox); mbox 45 drivers/mailbox/armada-37xx-rwtm-mailbox.c struct a37xx_mbox *mbox = chan->con_priv; mbox 49 drivers/mailbox/armada-37xx-rwtm-mailbox.c rx_msg.retval = readl(mbox->base + RWTM_MBOX_RETURN_STATUS); mbox 51 drivers/mailbox/armada-37xx-rwtm-mailbox.c rx_msg.status[i] = readl(mbox->base + RWTM_MBOX_STATUS(i)); mbox 59 drivers/mailbox/armada-37xx-rwtm-mailbox.c struct a37xx_mbox *mbox = chan->con_priv; mbox 62 drivers/mailbox/armada-37xx-rwtm-mailbox.c reg = readl(mbox->base + RWTM_HOST_INT_RESET); mbox 68 drivers/mailbox/armada-37xx-rwtm-mailbox.c dev_err(mbox->dev, "Secure processor command queue full\n"); mbox 70 drivers/mailbox/armada-37xx-rwtm-mailbox.c writel(reg, mbox->base + RWTM_HOST_INT_RESET); mbox 79 drivers/mailbox/armada-37xx-rwtm-mailbox.c struct a37xx_mbox *mbox = chan->con_priv; mbox 87 drivers/mailbox/armada-37xx-rwtm-mailbox.c reg = readl(mbox->base + RWTM_MBOX_FIFO_STATUS); mbox 89 drivers/mailbox/armada-37xx-rwtm-mailbox.c dev_warn(mbox->dev, "Secure processor not ready\n"); mbox 92 drivers/mailbox/armada-37xx-rwtm-mailbox.c dev_err(mbox->dev, "Secure processor command queue full\n"); mbox 97 drivers/mailbox/armada-37xx-rwtm-mailbox.c writel(msg->args[i], mbox->base + RWTM_MBOX_PARAM(i)); mbox 98 drivers/mailbox/armada-37xx-rwtm-mailbox.c writel(msg->command, mbox->base + RWTM_MBOX_COMMAND); mbox 105 drivers/mailbox/armada-37xx-rwtm-mailbox.c struct a37xx_mbox *mbox = chan->con_priv; mbox 109 drivers/mailbox/armada-37xx-rwtm-mailbox.c ret = devm_request_irq(mbox->dev, mbox->irq, a37xx_mbox_irq_handler, 0, mbox 112 drivers/mailbox/armada-37xx-rwtm-mailbox.c dev_err(mbox->dev, "Cannot request irq\n"); mbox 117 drivers/mailbox/armada-37xx-rwtm-mailbox.c reg = readl(mbox->base + RWTM_HOST_INT_MASK); mbox 119 drivers/mailbox/armada-37xx-rwtm-mailbox.c writel(reg, mbox->base + RWTM_HOST_INT_MASK); mbox 127 drivers/mailbox/armada-37xx-rwtm-mailbox.c struct a37xx_mbox *mbox = chan->con_priv; mbox 130 drivers/mailbox/armada-37xx-rwtm-mailbox.c reg = readl(mbox->base + RWTM_HOST_INT_MASK); mbox 132 drivers/mailbox/armada-37xx-rwtm-mailbox.c writel(reg, mbox->base + RWTM_HOST_INT_MASK); mbox 134 drivers/mailbox/armada-37xx-rwtm-mailbox.c devm_free_irq(mbox->dev, mbox->irq, chan); mbox 145 drivers/mailbox/armada-37xx-rwtm-mailbox.c struct a37xx_mbox *mbox; mbox 150 drivers/mailbox/armada-37xx-rwtm-mailbox.c mbox = devm_kzalloc(&pdev->dev, sizeof(*mbox), GFP_KERNEL); mbox 151 drivers/mailbox/armada-37xx-rwtm-mailbox.c if (!mbox) mbox 161 drivers/mailbox/armada-37xx-rwtm-mailbox.c mbox->base = devm_ioremap_resource(&pdev->dev, regs); mbox 162 drivers/mailbox/armada-37xx-rwtm-mailbox.c if (IS_ERR(mbox->base)) { mbox 164 drivers/mailbox/armada-37xx-rwtm-mailbox.c return PTR_ERR(mbox->base); mbox 167 drivers/mailbox/armada-37xx-rwtm-mailbox.c mbox->irq = platform_get_irq(pdev, 0); mbox 168 drivers/mailbox/armada-37xx-rwtm-mailbox.c if (mbox->irq < 0) { mbox 170 drivers/mailbox/armada-37xx-rwtm-mailbox.c return mbox->irq; mbox 173 drivers/mailbox/armada-37xx-rwtm-mailbox.c mbox->dev = &pdev->dev; mbox 176 drivers/mailbox/armada-37xx-rwtm-mailbox.c chans[0].con_priv = mbox; mbox 177 drivers/mailbox/armada-37xx-rwtm-mailbox.c mbox->controller.dev = mbox->dev; mbox 178 drivers/mailbox/armada-37xx-rwtm-mailbox.c mbox->controller.num_chans = 1; mbox 179 drivers/mailbox/armada-37xx-rwtm-mailbox.c mbox->controller.chans = chans; mbox 180 drivers/mailbox/armada-37xx-rwtm-mailbox.c mbox->controller.ops = &a37xx_mbox_ops; mbox 181 drivers/mailbox/armada-37xx-rwtm-mailbox.c mbox->controller.txdone_irq = true; mbox 183 drivers/mailbox/armada-37xx-rwtm-mailbox.c ret = devm_mbox_controller_register(mbox->dev, &mbox->controller); mbox 189 drivers/mailbox/armada-37xx-rwtm-mailbox.c platform_set_drvdata(pdev, mbox); mbox 269 drivers/mailbox/bcm-flexrm-mailbox.c struct flexrm_mbox *mbox; mbox 929 drivers/mailbox/bcm-flexrm-mailbox.c static void flexrm_write_config_in_seqfile(struct flexrm_mbox *mbox, mbox 940 drivers/mailbox/bcm-flexrm-mailbox.c for (i = 0; i < mbox->num_rings; i++) { mbox 941 drivers/mailbox/bcm-flexrm-mailbox.c ring = &mbox->rings[i]; mbox 957 drivers/mailbox/bcm-flexrm-mailbox.c static void flexrm_write_stats_in_seqfile(struct flexrm_mbox *mbox, mbox 968 drivers/mailbox/bcm-flexrm-mailbox.c for (i = 0; i < mbox->num_rings; i++) { mbox 969 drivers/mailbox/bcm-flexrm-mailbox.c ring = &mbox->rings[i]; mbox 1011 drivers/mailbox/bcm-flexrm-mailbox.c ret = flexrm_dma_map(ring->mbox->dev, msg); mbox 1074 drivers/mailbox/bcm-flexrm-mailbox.c flexrm_dma_unmap(ring->mbox->dev, msg); mbox 1091 drivers/mailbox/bcm-flexrm-mailbox.c struct mbox_chan *chan = &ring->mbox->controller.chans[ring->num]; mbox 1124 drivers/mailbox/bcm-flexrm-mailbox.c dev_warn(ring->mbox->dev, mbox 1135 drivers/mailbox/bcm-flexrm-mailbox.c dev_warn(ring->mbox->dev, mbox 1148 drivers/mailbox/bcm-flexrm-mailbox.c flexrm_dma_unmap(ring->mbox->dev, msg); mbox 1166 drivers/mailbox/bcm-flexrm-mailbox.c struct flexrm_mbox *mbox = dev_get_drvdata(file->private); mbox 1169 drivers/mailbox/bcm-flexrm-mailbox.c flexrm_write_config_in_seqfile(mbox, file); mbox 1176 drivers/mailbox/bcm-flexrm-mailbox.c struct flexrm_mbox *mbox = dev_get_drvdata(file->private); mbox 1179 drivers/mailbox/bcm-flexrm-mailbox.c flexrm_write_stats_in_seqfile(mbox, file); mbox 1242 drivers/mailbox/bcm-flexrm-mailbox.c ring->bd_base = dma_pool_alloc(ring->mbox->bd_pool, mbox 1245 drivers/mailbox/bcm-flexrm-mailbox.c dev_err(ring->mbox->dev, mbox 1267 drivers/mailbox/bcm-flexrm-mailbox.c ring->cmpl_base = dma_pool_zalloc(ring->mbox->cmpl_pool, mbox 1270 drivers/mailbox/bcm-flexrm-mailbox.c dev_err(ring->mbox->dev, mbox 1279 drivers/mailbox/bcm-flexrm-mailbox.c dev_err(ring->mbox->dev, mbox 1287 drivers/mailbox/bcm-flexrm-mailbox.c 0, dev_name(ring->mbox->dev), ring); mbox 1289 drivers/mailbox/bcm-flexrm-mailbox.c dev_err(ring->mbox->dev, mbox 1297 drivers/mailbox/bcm-flexrm-mailbox.c val = ring->mbox->num_rings; mbox 1303 drivers/mailbox/bcm-flexrm-mailbox.c dev_err(ring->mbox->dev, mbox 1358 drivers/mailbox/bcm-flexrm-mailbox.c dma_pool_free(ring->mbox->cmpl_pool, mbox 1362 drivers/mailbox/bcm-flexrm-mailbox.c dma_pool_free(ring->mbox->bd_pool, mbox 1390 drivers/mailbox/bcm-flexrm-mailbox.c dev_err(ring->mbox->dev, mbox 1403 drivers/mailbox/bcm-flexrm-mailbox.c dev_err(ring->mbox->dev, mbox 1416 drivers/mailbox/bcm-flexrm-mailbox.c flexrm_dma_unmap(ring->mbox->dev, msg); mbox 1435 drivers/mailbox/bcm-flexrm-mailbox.c dma_pool_free(ring->mbox->cmpl_pool, mbox 1442 drivers/mailbox/bcm-flexrm-mailbox.c dma_pool_free(ring->mbox->bd_pool, mbox 1486 drivers/mailbox/bcm-flexrm-mailbox.c struct flexrm_mbox *mbox = dev_get_drvdata(dev); mbox 1487 drivers/mailbox/bcm-flexrm-mailbox.c struct flexrm_ring *ring = &mbox->rings[desc->platform.msi_index]; mbox 1503 drivers/mailbox/bcm-flexrm-mailbox.c struct flexrm_mbox *mbox; mbox 1507 drivers/mailbox/bcm-flexrm-mailbox.c mbox = devm_kzalloc(dev, sizeof(*mbox), GFP_KERNEL); mbox 1508 drivers/mailbox/bcm-flexrm-mailbox.c if (!mbox) { mbox 1512 drivers/mailbox/bcm-flexrm-mailbox.c mbox->dev = dev; mbox 1513 drivers/mailbox/bcm-flexrm-mailbox.c platform_set_drvdata(pdev, mbox); mbox 1523 drivers/mailbox/bcm-flexrm-mailbox.c mbox->regs = devm_ioremap_resource(&pdev->dev, iomem); mbox 1524 drivers/mailbox/bcm-flexrm-mailbox.c if (IS_ERR(mbox->regs)) { mbox 1525 drivers/mailbox/bcm-flexrm-mailbox.c ret = PTR_ERR(mbox->regs); mbox 1529 drivers/mailbox/bcm-flexrm-mailbox.c regs_end = mbox->regs + resource_size(iomem); mbox 1532 drivers/mailbox/bcm-flexrm-mailbox.c mbox->num_rings = 0; mbox 1533 drivers/mailbox/bcm-flexrm-mailbox.c for (regs = mbox->regs; regs < regs_end; regs += RING_REGS_SIZE) { mbox 1535 drivers/mailbox/bcm-flexrm-mailbox.c mbox->num_rings++; mbox 1537 drivers/mailbox/bcm-flexrm-mailbox.c if (!mbox->num_rings) { mbox 1543 drivers/mailbox/bcm-flexrm-mailbox.c ring = devm_kcalloc(dev, mbox->num_rings, sizeof(*ring), GFP_KERNEL); mbox 1548 drivers/mailbox/bcm-flexrm-mailbox.c mbox->rings = ring; mbox 1551 drivers/mailbox/bcm-flexrm-mailbox.c regs = mbox->regs; mbox 1552 drivers/mailbox/bcm-flexrm-mailbox.c for (index = 0; index < mbox->num_rings; index++) { mbox 1553 drivers/mailbox/bcm-flexrm-mailbox.c ring = &mbox->rings[index]; mbox 1555 drivers/mailbox/bcm-flexrm-mailbox.c ring->mbox = mbox; mbox 1590 drivers/mailbox/bcm-flexrm-mailbox.c mbox->bd_pool = dma_pool_create("bd", dev, RING_BD_SIZE, mbox 1592 drivers/mailbox/bcm-flexrm-mailbox.c if (!mbox->bd_pool) { mbox 1598 drivers/mailbox/bcm-flexrm-mailbox.c mbox->cmpl_pool = dma_pool_create("cmpl", dev, RING_CMPL_SIZE, mbox 1600 drivers/mailbox/bcm-flexrm-mailbox.c if (!mbox->cmpl_pool) { mbox 1605 drivers/mailbox/bcm-flexrm-mailbox.c ret = platform_msi_domain_alloc_irqs(dev, mbox->num_rings, mbox 1612 drivers/mailbox/bcm-flexrm-mailbox.c ring = &mbox->rings[desc->platform.msi_index]; mbox 1621 drivers/mailbox/bcm-flexrm-mailbox.c mbox->root = debugfs_create_dir(dev_name(mbox->dev), NULL); mbox 1624 drivers/mailbox/bcm-flexrm-mailbox.c debugfs_create_devm_seqfile(mbox->dev, "config", mbox->root, mbox 1628 drivers/mailbox/bcm-flexrm-mailbox.c debugfs_create_devm_seqfile(mbox->dev, "stats", mbox->root, mbox 1634 drivers/mailbox/bcm-flexrm-mailbox.c mbox->controller.txdone_irq = false; mbox 1635 drivers/mailbox/bcm-flexrm-mailbox.c mbox->controller.txdone_poll = false; mbox 1636 drivers/mailbox/bcm-flexrm-mailbox.c mbox->controller.ops = &flexrm_mbox_chan_ops; mbox 1637 drivers/mailbox/bcm-flexrm-mailbox.c mbox->controller.dev = dev; mbox 1638 drivers/mailbox/bcm-flexrm-mailbox.c mbox->controller.num_chans = mbox->num_rings; mbox 1639 drivers/mailbox/bcm-flexrm-mailbox.c mbox->controller.of_xlate = flexrm_mbox_of_xlate; mbox 1640 drivers/mailbox/bcm-flexrm-mailbox.c mbox->controller.chans = devm_kcalloc(dev, mbox->num_rings, mbox 1641 drivers/mailbox/bcm-flexrm-mailbox.c sizeof(*mbox->controller.chans), GFP_KERNEL); mbox 1642 drivers/mailbox/bcm-flexrm-mailbox.c if (!mbox->controller.chans) { mbox 1646 drivers/mailbox/bcm-flexrm-mailbox.c for (index = 0; index < mbox->num_rings; index++) mbox 1647 drivers/mailbox/bcm-flexrm-mailbox.c mbox->controller.chans[index].con_priv = &mbox->rings[index]; mbox 1650 drivers/mailbox/bcm-flexrm-mailbox.c ret = devm_mbox_controller_register(dev, &mbox->controller); mbox 1655 drivers/mailbox/bcm-flexrm-mailbox.c mbox->controller.num_chans); mbox 1660 drivers/mailbox/bcm-flexrm-mailbox.c debugfs_remove_recursive(mbox->root); mbox 1663 drivers/mailbox/bcm-flexrm-mailbox.c dma_pool_destroy(mbox->cmpl_pool); mbox 1664 drivers/mailbox/bcm-flexrm-mailbox.c dma_pool_destroy(mbox->bd_pool); mbox 1672 drivers/mailbox/bcm-flexrm-mailbox.c struct flexrm_mbox *mbox = platform_get_drvdata(pdev); mbox 1674 drivers/mailbox/bcm-flexrm-mailbox.c debugfs_remove_recursive(mbox->root); mbox 1678 drivers/mailbox/bcm-flexrm-mailbox.c dma_pool_destroy(mbox->cmpl_pool); mbox 1679 drivers/mailbox/bcm-flexrm-mailbox.c dma_pool_destroy(mbox->bd_pool); mbox 63 drivers/mailbox/bcm2835-mailbox.c return container_of(link->mbox, struct bcm2835_mbox, controller); mbox 68 drivers/mailbox/bcm2835-mailbox.c struct bcm2835_mbox *mbox = dev_id; mbox 69 drivers/mailbox/bcm2835-mailbox.c struct device *dev = mbox->controller.dev; mbox 70 drivers/mailbox/bcm2835-mailbox.c struct mbox_chan *link = &mbox->controller.chans[0]; mbox 72 drivers/mailbox/bcm2835-mailbox.c while (!(readl(mbox->regs + MAIL0_STA) & ARM_MS_EMPTY)) { mbox 73 drivers/mailbox/bcm2835-mailbox.c u32 msg = readl(mbox->regs + MAIL0_RD); mbox 82 drivers/mailbox/bcm2835-mailbox.c struct bcm2835_mbox *mbox = bcm2835_link_mbox(link); mbox 85 drivers/mailbox/bcm2835-mailbox.c spin_lock(&mbox->lock); mbox 86 drivers/mailbox/bcm2835-mailbox.c writel(msg, mbox->regs + MAIL1_WRT); mbox 87 drivers/mailbox/bcm2835-mailbox.c dev_dbg(mbox->controller.dev, "Request 0x%08X\n", msg); mbox 88 drivers/mailbox/bcm2835-mailbox.c spin_unlock(&mbox->lock); mbox 94 drivers/mailbox/bcm2835-mailbox.c struct bcm2835_mbox *mbox = bcm2835_link_mbox(link); mbox 97 drivers/mailbox/bcm2835-mailbox.c writel(ARM_MC_IHAVEDATAIRQEN, mbox->regs + MAIL0_CNF); mbox 104 drivers/mailbox/bcm2835-mailbox.c struct bcm2835_mbox *mbox = bcm2835_link_mbox(link); mbox 106 drivers/mailbox/bcm2835-mailbox.c writel(0, mbox->regs + MAIL0_CNF); mbox 111 drivers/mailbox/bcm2835-mailbox.c struct bcm2835_mbox *mbox = bcm2835_link_mbox(link); mbox 114 drivers/mailbox/bcm2835-mailbox.c spin_lock(&mbox->lock); mbox 115 drivers/mailbox/bcm2835-mailbox.c ret = !(readl(mbox->regs + MAIL1_STA) & ARM_MS_FULL); mbox 116 drivers/mailbox/bcm2835-mailbox.c spin_unlock(&mbox->lock); mbox 127 drivers/mailbox/bcm2835-mailbox.c static struct mbox_chan *bcm2835_mbox_index_xlate(struct mbox_controller *mbox, mbox 133 drivers/mailbox/bcm2835-mailbox.c return &mbox->chans[0]; mbox 141 drivers/mailbox/bcm2835-mailbox.c struct bcm2835_mbox *mbox; mbox 143 drivers/mailbox/bcm2835-mailbox.c mbox = devm_kzalloc(dev, sizeof(*mbox), GFP_KERNEL); mbox 144 drivers/mailbox/bcm2835-mailbox.c if (mbox == NULL) mbox 146 drivers/mailbox/bcm2835-mailbox.c spin_lock_init(&mbox->lock); mbox 149 drivers/mailbox/bcm2835-mailbox.c bcm2835_mbox_irq, 0, dev_name(dev), mbox); mbox 157 drivers/mailbox/bcm2835-mailbox.c mbox->regs = devm_ioremap_resource(&pdev->dev, iomem); mbox 158 drivers/mailbox/bcm2835-mailbox.c if (IS_ERR(mbox->regs)) { mbox 159 drivers/mailbox/bcm2835-mailbox.c ret = PTR_ERR(mbox->regs); mbox 164 drivers/mailbox/bcm2835-mailbox.c mbox->controller.txdone_poll = true; mbox 165 drivers/mailbox/bcm2835-mailbox.c mbox->controller.txpoll_period = 5; mbox 166 drivers/mailbox/bcm2835-mailbox.c mbox->controller.ops = &bcm2835_mbox_chan_ops; mbox 167 drivers/mailbox/bcm2835-mailbox.c mbox->controller.of_xlate = &bcm2835_mbox_index_xlate; mbox 168 drivers/mailbox/bcm2835-mailbox.c mbox->controller.dev = dev; mbox 169 drivers/mailbox/bcm2835-mailbox.c mbox->controller.num_chans = 1; mbox 170 drivers/mailbox/bcm2835-mailbox.c mbox->controller.chans = devm_kzalloc(dev, mbox 171 drivers/mailbox/bcm2835-mailbox.c sizeof(*mbox->controller.chans), GFP_KERNEL); mbox 172 drivers/mailbox/bcm2835-mailbox.c if (!mbox->controller.chans) mbox 175 drivers/mailbox/bcm2835-mailbox.c ret = devm_mbox_controller_register(dev, &mbox->controller); mbox 179 drivers/mailbox/bcm2835-mailbox.c platform_set_drvdata(pdev, mbox); mbox 24 drivers/mailbox/hi3660-mailbox.c #define MBOX_BASE(mbox, ch) ((mbox)->base + ((ch) * 0x40)) mbox 81 drivers/mailbox/hi3660-mailbox.c static struct hi3660_mbox *to_hi3660_mbox(struct mbox_controller *mbox) mbox 83 drivers/mailbox/hi3660-mailbox.c return container_of(mbox, struct hi3660_mbox, controller); mbox 89 drivers/mailbox/hi3660-mailbox.c struct hi3660_mbox *mbox = to_hi3660_mbox(chan->mbox); mbox 90 drivers/mailbox/hi3660-mailbox.c struct hi3660_chan_info *mchan = &mbox->mchan[ch]; mbox 91 drivers/mailbox/hi3660-mailbox.c void __iomem *base = MBOX_BASE(mbox, ch); mbox 103 drivers/mailbox/hi3660-mailbox.c dev_err(mbox->dev, "%s: timeout for receiving ack\n", __func__); mbox 115 drivers/mailbox/hi3660-mailbox.c struct hi3660_mbox *mbox = to_hi3660_mbox(chan->mbox); mbox 119 drivers/mailbox/hi3660-mailbox.c writel(MBOX_IPC_UNLOCK, mbox->base + MBOX_IPC_LOCK_REG); mbox 121 drivers/mailbox/hi3660-mailbox.c val = readl(mbox->base + MBOX_IPC_LOCK_REG); mbox 129 drivers/mailbox/hi3660-mailbox.c dev_err(mbox->dev, "%s: failed to unlock mailbox\n", __func__); mbox 137 drivers/mailbox/hi3660-mailbox.c struct hi3660_mbox *mbox = to_hi3660_mbox(chan->mbox); mbox 138 drivers/mailbox/hi3660-mailbox.c struct hi3660_chan_info *mchan = &mbox->mchan[ch]; mbox 139 drivers/mailbox/hi3660-mailbox.c void __iomem *base = MBOX_BASE(mbox, ch); mbox 155 drivers/mailbox/hi3660-mailbox.c dev_err(mbox->dev, "%s: failed to acquire channel\n", __func__); mbox 178 drivers/mailbox/hi3660-mailbox.c struct hi3660_mbox *mbox = to_hi3660_mbox(chan->mbox); mbox 179 drivers/mailbox/hi3660-mailbox.c struct hi3660_chan_info *mchan = &mbox->mchan[ch]; mbox 180 drivers/mailbox/hi3660-mailbox.c void __iomem *base = MBOX_BASE(mbox, ch); mbox 215 drivers/mailbox/hi3660-mailbox.c struct hi3660_mbox *mbox = to_hi3660_mbox(controller); mbox 220 drivers/mailbox/hi3660-mailbox.c dev_err(mbox->dev, "Invalid channel idx %d\n", ch); mbox 224 drivers/mailbox/hi3660-mailbox.c mchan = &mbox->mchan[ch]; mbox 228 drivers/mailbox/hi3660-mailbox.c return &mbox->chan[ch]; mbox 241 drivers/mailbox/hi3660-mailbox.c struct hi3660_mbox *mbox; mbox 247 drivers/mailbox/hi3660-mailbox.c mbox = devm_kzalloc(dev, sizeof(*mbox), GFP_KERNEL); mbox 248 drivers/mailbox/hi3660-mailbox.c if (!mbox) mbox 252 drivers/mailbox/hi3660-mailbox.c mbox->base = devm_ioremap_resource(dev, res); mbox 253 drivers/mailbox/hi3660-mailbox.c if (IS_ERR(mbox->base)) mbox 254 drivers/mailbox/hi3660-mailbox.c return PTR_ERR(mbox->base); mbox 256 drivers/mailbox/hi3660-mailbox.c mbox->dev = dev; mbox 257 drivers/mailbox/hi3660-mailbox.c mbox->controller.dev = dev; mbox 258 drivers/mailbox/hi3660-mailbox.c mbox->controller.chans = mbox->chan; mbox 259 drivers/mailbox/hi3660-mailbox.c mbox->controller.num_chans = MBOX_CHAN_MAX; mbox 260 drivers/mailbox/hi3660-mailbox.c mbox->controller.ops = &hi3660_mbox_ops; mbox 261 drivers/mailbox/hi3660-mailbox.c mbox->controller.of_xlate = hi3660_mbox_xlate; mbox 264 drivers/mailbox/hi3660-mailbox.c chan = mbox->chan; mbox 268 drivers/mailbox/hi3660-mailbox.c err = devm_mbox_controller_register(dev, &mbox->controller); mbox 274 drivers/mailbox/hi3660-mailbox.c platform_set_drvdata(pdev, mbox); mbox 89 drivers/mailbox/hi6220-mailbox.c static void mbox_set_state(struct hi6220_mbox *mbox, mbox 94 drivers/mailbox/hi6220-mailbox.c status = readl(mbox->base + MBOX_MODE_REG(slot)); mbox 96 drivers/mailbox/hi6220-mailbox.c writel(status, mbox->base + MBOX_MODE_REG(slot)); mbox 99 drivers/mailbox/hi6220-mailbox.c static void mbox_set_mode(struct hi6220_mbox *mbox, mbox 104 drivers/mailbox/hi6220-mailbox.c mode = readl(mbox->base + MBOX_MODE_REG(slot)); mbox 106 drivers/mailbox/hi6220-mailbox.c writel(mode, mbox->base + MBOX_MODE_REG(slot)); mbox 112 drivers/mailbox/hi6220-mailbox.c struct hi6220_mbox *mbox = mchan->parent; mbox 116 drivers/mailbox/hi6220-mailbox.c BUG_ON(mbox->tx_irq_mode); mbox 118 drivers/mailbox/hi6220-mailbox.c state = readl(mbox->base + MBOX_MODE_REG(mchan->slot)); mbox 125 drivers/mailbox/hi6220-mailbox.c struct hi6220_mbox *mbox = mchan->parent; mbox 133 drivers/mailbox/hi6220-mailbox.c mbox_set_state(mbox, slot, MBOX_STATE_TX); mbox 135 drivers/mailbox/hi6220-mailbox.c if (mbox->tx_irq_mode) mbox 136 drivers/mailbox/hi6220-mailbox.c mbox_set_mode(mbox, slot, MBOX_ACK_IRQ); mbox 138 drivers/mailbox/hi6220-mailbox.c mbox_set_mode(mbox, slot, MBOX_ACK_AUTOMATIC); mbox 141 drivers/mailbox/hi6220-mailbox.c writel(buf[i], mbox->base + MBOX_DATA_REG(slot) + i * 4); mbox 144 drivers/mailbox/hi6220-mailbox.c writel(BIT(mchan->dst_irq), DST_INT_RAW_REG(mbox->ipc)); mbox 150 drivers/mailbox/hi6220-mailbox.c struct hi6220_mbox *mbox = p; mbox 156 drivers/mailbox/hi6220-mailbox.c state = readl(ACK_INT_STAT_REG(mbox->ipc)); mbox 158 drivers/mailbox/hi6220-mailbox.c dev_warn(mbox->dev, "%s: spurious interrupt\n", mbox 167 drivers/mailbox/hi6220-mailbox.c chan = mbox->irq_map_chan[intr_bit]; mbox 169 drivers/mailbox/hi6220-mailbox.c dev_warn(mbox->dev, "%s: unexpected irq vector %d\n", mbox 179 drivers/mailbox/hi6220-mailbox.c msg[i] = readl(mbox->base + mbox 186 drivers/mailbox/hi6220-mailbox.c writel(BIT(mchan->ack_irq), ACK_INT_CLR_REG(mbox->ipc)); mbox 187 drivers/mailbox/hi6220-mailbox.c mbox_set_state(mbox, mchan->slot, MBOX_STATE_IDLE); mbox 196 drivers/mailbox/hi6220-mailbox.c struct hi6220_mbox *mbox = mchan->parent; mbox 201 drivers/mailbox/hi6220-mailbox.c writel(BIT(mchan->ack_irq), ACK_INT_ENA_REG(mbox->ipc)); mbox 208 drivers/mailbox/hi6220-mailbox.c struct hi6220_mbox *mbox = mchan->parent; mbox 211 drivers/mailbox/hi6220-mailbox.c writel(BIT(mchan->ack_irq), ACK_INT_DIS_REG(mbox->ipc)); mbox 212 drivers/mailbox/hi6220-mailbox.c mbox->irq_map_chan[mchan->ack_irq] = NULL; mbox 225 drivers/mailbox/hi6220-mailbox.c struct hi6220_mbox *mbox = dev_get_drvdata(controller->dev); mbox 233 drivers/mailbox/hi6220-mailbox.c if (i >= mbox->chan_num || dst_irq >= mbox->chan_num || mbox 234 drivers/mailbox/hi6220-mailbox.c ack_irq >= mbox->chan_num) { mbox 235 drivers/mailbox/hi6220-mailbox.c dev_err(mbox->dev, mbox 242 drivers/mailbox/hi6220-mailbox.c chan = &mbox->chan[i]; mbox 243 drivers/mailbox/hi6220-mailbox.c if (mbox->irq_map_chan[ack_irq] == (void *)chan) { mbox 244 drivers/mailbox/hi6220-mailbox.c dev_err(mbox->dev, "Channel in use\n"); mbox 252 drivers/mailbox/hi6220-mailbox.c mbox->irq_map_chan[ack_irq] = (void *)chan; mbox 266 drivers/mailbox/hi6220-mailbox.c struct hi6220_mbox *mbox; mbox 270 drivers/mailbox/hi6220-mailbox.c mbox = devm_kzalloc(dev, sizeof(*mbox), GFP_KERNEL); mbox 271 drivers/mailbox/hi6220-mailbox.c if (!mbox) mbox 274 drivers/mailbox/hi6220-mailbox.c mbox->dev = dev; mbox 275 drivers/mailbox/hi6220-mailbox.c mbox->chan_num = MBOX_CHAN_MAX; mbox 276 drivers/mailbox/hi6220-mailbox.c mbox->mchan = devm_kcalloc(dev, mbox 277 drivers/mailbox/hi6220-mailbox.c mbox->chan_num, sizeof(*mbox->mchan), GFP_KERNEL); mbox 278 drivers/mailbox/hi6220-mailbox.c if (!mbox->mchan) mbox 281 drivers/mailbox/hi6220-mailbox.c mbox->chan = devm_kcalloc(dev, mbox 282 drivers/mailbox/hi6220-mailbox.c mbox->chan_num, sizeof(*mbox->chan), GFP_KERNEL); mbox 283 drivers/mailbox/hi6220-mailbox.c if (!mbox->chan) mbox 286 drivers/mailbox/hi6220-mailbox.c mbox->irq = platform_get_irq(pdev, 0); mbox 287 drivers/mailbox/hi6220-mailbox.c if (mbox->irq < 0) mbox 288 drivers/mailbox/hi6220-mailbox.c return mbox->irq; mbox 291 drivers/mailbox/hi6220-mailbox.c mbox->ipc = devm_ioremap_resource(dev, res); mbox 292 drivers/mailbox/hi6220-mailbox.c if (IS_ERR(mbox->ipc)) { mbox 294 drivers/mailbox/hi6220-mailbox.c return PTR_ERR(mbox->ipc); mbox 298 drivers/mailbox/hi6220-mailbox.c mbox->base = devm_ioremap_resource(dev, res); mbox 299 drivers/mailbox/hi6220-mailbox.c if (IS_ERR(mbox->base)) { mbox 301 drivers/mailbox/hi6220-mailbox.c return PTR_ERR(mbox->base); mbox 304 drivers/mailbox/hi6220-mailbox.c err = devm_request_irq(dev, mbox->irq, hi6220_mbox_interrupt, 0, mbox 305 drivers/mailbox/hi6220-mailbox.c dev_name(dev), mbox); mbox 312 drivers/mailbox/hi6220-mailbox.c mbox->controller.dev = dev; mbox 313 drivers/mailbox/hi6220-mailbox.c mbox->controller.chans = &mbox->chan[0]; mbox 314 drivers/mailbox/hi6220-mailbox.c mbox->controller.num_chans = mbox->chan_num; mbox 315 drivers/mailbox/hi6220-mailbox.c mbox->controller.ops = &hi6220_mbox_ops; mbox 316 drivers/mailbox/hi6220-mailbox.c mbox->controller.of_xlate = hi6220_mbox_xlate; mbox 318 drivers/mailbox/hi6220-mailbox.c for (i = 0; i < mbox->chan_num; i++) { mbox 319 drivers/mailbox/hi6220-mailbox.c mbox->chan[i].con_priv = &mbox->mchan[i]; mbox 320 drivers/mailbox/hi6220-mailbox.c mbox->irq_map_chan[i] = NULL; mbox 322 drivers/mailbox/hi6220-mailbox.c mbox->mchan[i].parent = mbox; mbox 323 drivers/mailbox/hi6220-mailbox.c mbox->mchan[i].slot = i; mbox 327 drivers/mailbox/hi6220-mailbox.c writel(0x0, ACK_INT_MSK_REG(mbox->ipc)); mbox 328 drivers/mailbox/hi6220-mailbox.c writel(~0x0, ACK_INT_CLR_REG(mbox->ipc)); mbox 332 drivers/mailbox/hi6220-mailbox.c mbox->tx_irq_mode = false; mbox 334 drivers/mailbox/hi6220-mailbox.c mbox->tx_irq_mode = true; mbox 336 drivers/mailbox/hi6220-mailbox.c if (mbox->tx_irq_mode) mbox 337 drivers/mailbox/hi6220-mailbox.c mbox->controller.txdone_irq = true; mbox 339 drivers/mailbox/hi6220-mailbox.c mbox->controller.txdone_poll = true; mbox 340 drivers/mailbox/hi6220-mailbox.c mbox->controller.txpoll_period = 5; mbox 343 drivers/mailbox/hi6220-mailbox.c err = devm_mbox_controller_register(dev, &mbox->controller); mbox 349 drivers/mailbox/hi6220-mailbox.c platform_set_drvdata(pdev, mbox); mbox 60 drivers/mailbox/imx-mailbox.c struct mbox_controller mbox; mbox 70 drivers/mailbox/imx-mailbox.c static struct imx_mu_priv *to_imx_mu_priv(struct mbox_controller *mbox) mbox 72 drivers/mailbox/imx-mailbox.c return container_of(mbox, struct imx_mu_priv, mbox); mbox 110 drivers/mailbox/imx-mailbox.c struct imx_mu_priv *priv = to_imx_mu_priv(chan->mbox); mbox 156 drivers/mailbox/imx-mailbox.c struct imx_mu_priv *priv = to_imx_mu_priv(chan->mbox); mbox 179 drivers/mailbox/imx-mailbox.c struct imx_mu_priv *priv = to_imx_mu_priv(chan->mbox); mbox 214 drivers/mailbox/imx-mailbox.c struct imx_mu_priv *priv = to_imx_mu_priv(chan->mbox); mbox 245 drivers/mailbox/imx-mailbox.c static struct mbox_chan * imx_mu_xlate(struct mbox_controller *mbox, mbox 251 drivers/mailbox/imx-mailbox.c dev_err(mbox->dev, "Invalid argument count %d\n", sp->args_count); mbox 259 drivers/mailbox/imx-mailbox.c if (chan >= mbox->num_chans) { mbox 260 drivers/mailbox/imx-mailbox.c dev_err(mbox->dev, "Not supported channel number: %d. (type: %d, idx: %d)\n", chan, type, idx); mbox 264 drivers/mailbox/imx-mailbox.c return &mbox->chans[chan]; mbox 327 drivers/mailbox/imx-mailbox.c priv->mbox.dev = dev; mbox 328 drivers/mailbox/imx-mailbox.c priv->mbox.ops = &imx_mu_ops; mbox 329 drivers/mailbox/imx-mailbox.c priv->mbox.chans = priv->mbox_chans; mbox 330 drivers/mailbox/imx-mailbox.c priv->mbox.num_chans = IMX_MU_CHANS; mbox 331 drivers/mailbox/imx-mailbox.c priv->mbox.of_xlate = imx_mu_xlate; mbox 332 drivers/mailbox/imx-mailbox.c priv->mbox.txdone_irq = true; mbox 338 drivers/mailbox/imx-mailbox.c return devm_mbox_controller_register(dev, &priv->mbox); mbox 60 drivers/mailbox/mailbox-altera.c static inline int altera_mbox_full(struct altera_mbox *mbox) mbox 64 drivers/mailbox/mailbox-altera.c status = readl_relaxed(mbox->mbox_base + MAILBOX_STS_REG); mbox 68 drivers/mailbox/mailbox-altera.c static inline int altera_mbox_pending(struct altera_mbox *mbox) mbox 72 drivers/mailbox/mailbox-altera.c status = readl_relaxed(mbox->mbox_base + MAILBOX_STS_REG); mbox 76 drivers/mailbox/mailbox-altera.c static void altera_mbox_rx_intmask(struct altera_mbox *mbox, bool enable) mbox 80 drivers/mailbox/mailbox-altera.c mask = readl_relaxed(mbox->mbox_base + MAILBOX_INTMASK_REG); mbox 85 drivers/mailbox/mailbox-altera.c writel_relaxed(mask, mbox->mbox_base + MAILBOX_INTMASK_REG); mbox 88 drivers/mailbox/mailbox-altera.c static void altera_mbox_tx_intmask(struct altera_mbox *mbox, bool enable) mbox 92 drivers/mailbox/mailbox-altera.c mask = readl_relaxed(mbox->mbox_base + MAILBOX_INTMASK_REG); mbox 97 drivers/mailbox/mailbox-altera.c writel_relaxed(mask, mbox->mbox_base + MAILBOX_INTMASK_REG); mbox 100 drivers/mailbox/mailbox-altera.c static bool altera_mbox_is_sender(struct altera_mbox *mbox) mbox 107 drivers/mailbox/mailbox-altera.c writel_relaxed(MBOX_MAGIC, mbox->mbox_base + MAILBOX_PTR_REG); mbox 108 drivers/mailbox/mailbox-altera.c reg = readl_relaxed(mbox->mbox_base + MAILBOX_PTR_REG); mbox 111 drivers/mailbox/mailbox-altera.c writel_relaxed(0, mbox->mbox_base + MAILBOX_PTR_REG); mbox 119 drivers/mailbox/mailbox-altera.c struct altera_mbox *mbox = mbox_chan_to_altera_mbox(chan); mbox 122 drivers/mailbox/mailbox-altera.c if (altera_mbox_pending(mbox)) { mbox 124 drivers/mailbox/mailbox-altera.c readl_relaxed(mbox->mbox_base + MAILBOX_PTR_REG); mbox 126 drivers/mailbox/mailbox-altera.c readl_relaxed(mbox->mbox_base + MAILBOX_CMD_REG); mbox 133 drivers/mailbox/mailbox-altera.c struct altera_mbox *mbox = from_timer(mbox, t, rxpoll_timer); mbox 135 drivers/mailbox/mailbox-altera.c altera_mbox_rx_data(mbox->chan); mbox 137 drivers/mailbox/mailbox-altera.c mod_timer(&mbox->rxpoll_timer, mbox 144 drivers/mailbox/mailbox-altera.c struct altera_mbox *mbox = mbox_chan_to_altera_mbox(chan); mbox 146 drivers/mailbox/mailbox-altera.c altera_mbox_tx_intmask(mbox, false); mbox 163 drivers/mailbox/mailbox-altera.c struct altera_mbox *mbox = mbox_chan_to_altera_mbox(chan); mbox 165 drivers/mailbox/mailbox-altera.c if (mbox->intr_mode) { mbox 166 drivers/mailbox/mailbox-altera.c ret = request_irq(mbox->irq, altera_mbox_tx_interrupt, 0, mbox 169 drivers/mailbox/mailbox-altera.c dev_err(mbox->dev, mbox 182 drivers/mailbox/mailbox-altera.c struct altera_mbox *mbox = mbox_chan_to_altera_mbox(chan); mbox 184 drivers/mailbox/mailbox-altera.c if (mbox->intr_mode) { mbox 185 drivers/mailbox/mailbox-altera.c ret = request_irq(mbox->irq, altera_mbox_rx_interrupt, 0, mbox 188 drivers/mailbox/mailbox-altera.c mbox->intr_mode = false; mbox 192 drivers/mailbox/mailbox-altera.c altera_mbox_rx_intmask(mbox, true); mbox 198 drivers/mailbox/mailbox-altera.c mbox->chan = chan; mbox 199 drivers/mailbox/mailbox-altera.c timer_setup(&mbox->rxpoll_timer, altera_mbox_poll_rx, 0); mbox 200 drivers/mailbox/mailbox-altera.c mod_timer(&mbox->rxpoll_timer, mbox 208 drivers/mailbox/mailbox-altera.c struct altera_mbox *mbox = mbox_chan_to_altera_mbox(chan); mbox 211 drivers/mailbox/mailbox-altera.c if (!mbox || !data) mbox 213 drivers/mailbox/mailbox-altera.c if (!mbox->is_sender) { mbox 214 drivers/mailbox/mailbox-altera.c dev_warn(mbox->dev, mbox 219 drivers/mailbox/mailbox-altera.c if (altera_mbox_full(mbox)) mbox 223 drivers/mailbox/mailbox-altera.c if (mbox->intr_mode) mbox 224 drivers/mailbox/mailbox-altera.c altera_mbox_tx_intmask(mbox, true); mbox 227 drivers/mailbox/mailbox-altera.c writel_relaxed(udata[MBOX_PTR], mbox->mbox_base + MAILBOX_PTR_REG); mbox 228 drivers/mailbox/mailbox-altera.c writel_relaxed(udata[MBOX_CMD], mbox->mbox_base + MAILBOX_CMD_REG); mbox 235 drivers/mailbox/mailbox-altera.c struct altera_mbox *mbox = mbox_chan_to_altera_mbox(chan); mbox 238 drivers/mailbox/mailbox-altera.c return altera_mbox_full(mbox) ? false : true; mbox 243 drivers/mailbox/mailbox-altera.c struct altera_mbox *mbox = mbox_chan_to_altera_mbox(chan); mbox 245 drivers/mailbox/mailbox-altera.c return altera_mbox_pending(mbox) ? true : false; mbox 250 drivers/mailbox/mailbox-altera.c struct altera_mbox *mbox = mbox_chan_to_altera_mbox(chan); mbox 253 drivers/mailbox/mailbox-altera.c if (!mbox) mbox 256 drivers/mailbox/mailbox-altera.c if (mbox->is_sender) mbox 266 drivers/mailbox/mailbox-altera.c struct altera_mbox *mbox = mbox_chan_to_altera_mbox(chan); mbox 268 drivers/mailbox/mailbox-altera.c if (mbox->intr_mode) { mbox 270 drivers/mailbox/mailbox-altera.c writel_relaxed(~0, mbox->mbox_base + MAILBOX_INTMASK_REG); mbox 271 drivers/mailbox/mailbox-altera.c free_irq(mbox->irq, chan); mbox 272 drivers/mailbox/mailbox-altera.c } else if (!mbox->is_sender) { mbox 273 drivers/mailbox/mailbox-altera.c del_timer_sync(&mbox->rxpoll_timer); mbox 287 drivers/mailbox/mailbox-altera.c struct altera_mbox *mbox; mbox 292 drivers/mailbox/mailbox-altera.c mbox = devm_kzalloc(&pdev->dev, sizeof(*mbox), mbox 294 drivers/mailbox/mailbox-altera.c if (!mbox) mbox 304 drivers/mailbox/mailbox-altera.c mbox->mbox_base = devm_ioremap_resource(&pdev->dev, regs); mbox 305 drivers/mailbox/mailbox-altera.c if (IS_ERR(mbox->mbox_base)) mbox 306 drivers/mailbox/mailbox-altera.c return PTR_ERR(mbox->mbox_base); mbox 309 drivers/mailbox/mailbox-altera.c mbox->is_sender = altera_mbox_is_sender(mbox); mbox 311 drivers/mailbox/mailbox-altera.c mbox->irq = platform_get_irq(pdev, 0); mbox 312 drivers/mailbox/mailbox-altera.c if (mbox->irq >= 0) mbox 313 drivers/mailbox/mailbox-altera.c mbox->intr_mode = true; mbox 315 drivers/mailbox/mailbox-altera.c mbox->dev = &pdev->dev; mbox 318 drivers/mailbox/mailbox-altera.c chans[0].con_priv = mbox; mbox 319 drivers/mailbox/mailbox-altera.c mbox->controller.dev = mbox->dev; mbox 320 drivers/mailbox/mailbox-altera.c mbox->controller.num_chans = 1; mbox 321 drivers/mailbox/mailbox-altera.c mbox->controller.chans = chans; mbox 322 drivers/mailbox/mailbox-altera.c mbox->controller.ops = &altera_mbox_ops; mbox 324 drivers/mailbox/mailbox-altera.c if (mbox->is_sender) { mbox 325 drivers/mailbox/mailbox-altera.c if (mbox->intr_mode) { mbox 326 drivers/mailbox/mailbox-altera.c mbox->controller.txdone_irq = true; mbox 328 drivers/mailbox/mailbox-altera.c mbox->controller.txdone_poll = true; mbox 329 drivers/mailbox/mailbox-altera.c mbox->controller.txpoll_period = MBOX_POLLING_MS; mbox 333 drivers/mailbox/mailbox-altera.c ret = devm_mbox_controller_register(&pdev->dev, &mbox->controller); mbox 339 drivers/mailbox/mailbox-altera.c platform_set_drvdata(pdev, mbox); mbox 55 drivers/mailbox/mailbox-sti.c struct mbox_controller *mbox; mbox 97 drivers/mailbox/mailbox-sti.c struct mbox_chan *sti_mbox_to_channel(struct mbox_controller *mbox, mbox 104 drivers/mailbox/mailbox-sti.c for (i = 0; i < mbox->num_chans; i++) { mbox 105 drivers/mailbox/mailbox-sti.c chan_info = mbox->chans[i].con_priv; mbox 109 drivers/mailbox/mailbox-sti.c return &mbox->chans[i]; mbox 112 drivers/mailbox/mailbox-sti.c dev_err(mbox->dev, mbox 163 drivers/mailbox/mailbox-sti.c struct mbox_controller *mbox = mdev->mbox; mbox 179 drivers/mailbox/mailbox-sti.c chan = sti_mbox_to_channel(mbox, instance, channel); mbox 181 drivers/mailbox/mailbox-sti.c dev_dbg(mbox->dev, mbox 303 drivers/mailbox/mailbox-sti.c struct mbox_controller *mbox = chan_info->mdev->mbox; mbox 306 drivers/mailbox/mailbox-sti.c for (i = 0; i < mbox->num_chans; i++) mbox 307 drivers/mailbox/mailbox-sti.c if (chan == &mbox->chans[i]) mbox 310 drivers/mailbox/mailbox-sti.c if (mbox->num_chans == i) { mbox 311 drivers/mailbox/mailbox-sti.c dev_warn(mbox->dev, "Request to free non-existent channel\n"); mbox 321 drivers/mailbox/mailbox-sti.c static struct mbox_chan *sti_mbox_xlate(struct mbox_controller *mbox, mbox 324 drivers/mailbox/mailbox-sti.c struct sti_mbox_device *mdev = dev_get_drvdata(mbox->dev); mbox 334 drivers/mailbox/mailbox-sti.c dev_err(mbox->dev, mbox 340 drivers/mailbox/mailbox-sti.c for (i = 0; i < mbox->num_chans; i++) { mbox 341 drivers/mailbox/mailbox-sti.c chan_info = mbox->chans[i].con_priv; mbox 345 drivers/mailbox/mailbox-sti.c mbox->dev == chan_info->mdev->dev && mbox 349 drivers/mailbox/mailbox-sti.c dev_err(mbox->dev, "Channel in use\n"); mbox 358 drivers/mailbox/mailbox-sti.c chan = &mbox->chans[i]; mbox 362 drivers/mailbox/mailbox-sti.c dev_err(mbox->dev, "No free channels left\n"); mbox 366 drivers/mailbox/mailbox-sti.c chan_info = devm_kzalloc(mbox->dev, sizeof(*chan_info), GFP_KERNEL); mbox 376 drivers/mailbox/mailbox-sti.c dev_info(mbox->dev, mbox 407 drivers/mailbox/mailbox-sti.c struct mbox_controller *mbox; mbox 437 drivers/mailbox/mailbox-sti.c mbox = devm_kzalloc(&pdev->dev, sizeof(*mbox), GFP_KERNEL); mbox 438 drivers/mailbox/mailbox-sti.c if (!mbox) mbox 447 drivers/mailbox/mailbox-sti.c mdev->mbox = mbox; mbox 452 drivers/mailbox/mailbox-sti.c mbox->txdone_irq = false; mbox 453 drivers/mailbox/mailbox-sti.c mbox->txdone_poll = true; mbox 454 drivers/mailbox/mailbox-sti.c mbox->txpoll_period = 100; mbox 455 drivers/mailbox/mailbox-sti.c mbox->ops = &sti_mbox_ops; mbox 456 drivers/mailbox/mailbox-sti.c mbox->dev = mdev->dev; mbox 457 drivers/mailbox/mailbox-sti.c mbox->of_xlate = sti_mbox_xlate; mbox 458 drivers/mailbox/mailbox-sti.c mbox->chans = chans; mbox 459 drivers/mailbox/mailbox-sti.c mbox->num_chans = STI_MBOX_CHAN_MAX; mbox 461 drivers/mailbox/mailbox-sti.c ret = devm_mbox_controller_register(&pdev->dev, mbox); mbox 77 drivers/mailbox/mailbox.c err = chan->mbox->ops->send_data(chan, data); mbox 87 drivers/mailbox/mailbox.c hrtimer_start(&chan->mbox->poll_hrt, 0, HRTIMER_MODE_REL); mbox 116 drivers/mailbox/mailbox.c struct mbox_controller *mbox = mbox 121 drivers/mailbox/mailbox.c for (i = 0; i < mbox->num_chans; i++) { mbox 122 drivers/mailbox/mailbox.c struct mbox_chan *chan = &mbox->chans[i]; mbox 125 drivers/mailbox/mailbox.c txdone = chan->mbox->ops->last_tx_done(chan); mbox 134 drivers/mailbox/mailbox.c hrtimer_forward_now(hrtimer, ms_to_ktime(mbox->txpoll_period)); mbox 171 drivers/mailbox/mailbox.c dev_err(chan->mbox->dev, mbox 192 drivers/mailbox/mailbox.c dev_err(chan->mbox->dev, "Client can't run the TX ticker\n"); mbox 217 drivers/mailbox/mailbox.c if (chan->mbox->ops->peek_data) mbox 218 drivers/mailbox/mailbox.c return chan->mbox->ops->peek_data(chan); mbox 257 drivers/mailbox/mailbox.c dev_err(chan->mbox->dev, "Try increasing MBOX_TX_QUEUE_LEN\n"); mbox 301 drivers/mailbox/mailbox.c if (!chan->mbox->ops->flush) mbox 304 drivers/mailbox/mailbox.c ret = chan->mbox->ops->flush(chan, timeout); mbox 332 drivers/mailbox/mailbox.c struct mbox_controller *mbox; mbox 353 drivers/mailbox/mailbox.c list_for_each_entry(mbox, &mbox_cons, node) mbox 354 drivers/mailbox/mailbox.c if (mbox->dev->of_node == spec.np) { mbox 355 drivers/mailbox/mailbox.c chan = mbox->of_xlate(mbox, &spec); mbox 367 drivers/mailbox/mailbox.c if (chan->cl || !try_module_get(mbox->dev->driver->owner)) { mbox 385 drivers/mailbox/mailbox.c if (chan->mbox->ops->startup) { mbox 386 drivers/mailbox/mailbox.c ret = chan->mbox->ops->startup(chan); mbox 443 drivers/mailbox/mailbox.c if (chan->mbox->ops->shutdown) mbox 444 drivers/mailbox/mailbox.c chan->mbox->ops->shutdown(chan); mbox 453 drivers/mailbox/mailbox.c module_put(chan->mbox->dev->driver->owner); mbox 459 drivers/mailbox/mailbox.c of_mbox_index_xlate(struct mbox_controller *mbox, mbox 464 drivers/mailbox/mailbox.c if (ind >= mbox->num_chans) mbox 467 drivers/mailbox/mailbox.c return &mbox->chans[ind]; mbox 476 drivers/mailbox/mailbox.c int mbox_controller_register(struct mbox_controller *mbox) mbox 481 drivers/mailbox/mailbox.c if (!mbox || !mbox->dev || !mbox->ops || !mbox->num_chans) mbox 484 drivers/mailbox/mailbox.c if (mbox->txdone_irq) mbox 486 drivers/mailbox/mailbox.c else if (mbox->txdone_poll) mbox 493 drivers/mailbox/mailbox.c if (!mbox->ops->last_tx_done) { mbox 494 drivers/mailbox/mailbox.c dev_err(mbox->dev, "last_tx_done method is absent\n"); mbox 498 drivers/mailbox/mailbox.c hrtimer_init(&mbox->poll_hrt, CLOCK_MONOTONIC, mbox 500 drivers/mailbox/mailbox.c mbox->poll_hrt.function = txdone_hrtimer; mbox 503 drivers/mailbox/mailbox.c for (i = 0; i < mbox->num_chans; i++) { mbox 504 drivers/mailbox/mailbox.c struct mbox_chan *chan = &mbox->chans[i]; mbox 507 drivers/mailbox/mailbox.c chan->mbox = mbox; mbox 512 drivers/mailbox/mailbox.c if (!mbox->of_xlate) mbox 513 drivers/mailbox/mailbox.c mbox->of_xlate = of_mbox_index_xlate; mbox 516 drivers/mailbox/mailbox.c list_add_tail(&mbox->node, &mbox_cons); mbox 527 drivers/mailbox/mailbox.c void mbox_controller_unregister(struct mbox_controller *mbox) mbox 531 drivers/mailbox/mailbox.c if (!mbox) mbox 536 drivers/mailbox/mailbox.c list_del(&mbox->node); mbox 538 drivers/mailbox/mailbox.c for (i = 0; i < mbox->num_chans; i++) mbox 539 drivers/mailbox/mailbox.c mbox_free_channel(&mbox->chans[i]); mbox 541 drivers/mailbox/mailbox.c if (mbox->txdone_poll) mbox 542 drivers/mailbox/mailbox.c hrtimer_cancel(&mbox->poll_hrt); mbox 550 drivers/mailbox/mailbox.c struct mbox_controller **mbox = res; mbox 552 drivers/mailbox/mailbox.c mbox_controller_unregister(*mbox); mbox 557 drivers/mailbox/mailbox.c struct mbox_controller **mbox = res; mbox 559 drivers/mailbox/mailbox.c if (WARN_ON(!mbox || !*mbox)) mbox 562 drivers/mailbox/mailbox.c return *mbox == data; mbox 578 drivers/mailbox/mailbox.c struct mbox_controller *mbox) mbox 588 drivers/mailbox/mailbox.c err = mbox_controller_register(mbox); mbox 595 drivers/mailbox/mailbox.c *ptr = mbox; mbox 611 drivers/mailbox/mailbox.c void devm_mbox_controller_unregister(struct device *dev, struct mbox_controller *mbox) mbox 614 drivers/mailbox/mailbox.c devm_mbox_controller_match, mbox)); mbox 71 drivers/mailbox/mtk-cmdq-mailbox.c struct mbox_controller mbox; mbox 93 drivers/mailbox/mtk-cmdq-mailbox.c dev_err(cmdq->mbox.dev, "suspend GCE thread 0x%x failed\n", mbox 125 drivers/mailbox/mtk-cmdq-mailbox.c dev_err(cmdq->mbox.dev, "reset GCE thread 0x%x failed\n", mbox 148 drivers/mailbox/mtk-cmdq-mailbox.c struct device *dev = task->cmdq->mbox.dev; mbox 177 drivers/mailbox/mtk-cmdq-mailbox.c struct device *dev = task->cmdq->mbox.dev; mbox 199 drivers/mailbox/mtk-cmdq-mailbox.c struct device *dev = thread->chan->mbox->dev; mbox 225 drivers/mailbox/mtk-cmdq-mailbox.c dev_err(task->cmdq->mbox.dev, "task 0x%p error\n", task); mbox 355 drivers/mailbox/mtk-cmdq-mailbox.c struct cmdq *cmdq = dev_get_drvdata(chan->mbox->dev); mbox 441 drivers/mailbox/mtk-cmdq-mailbox.c static struct mbox_chan *cmdq_xlate(struct mbox_controller *mbox, mbox 447 drivers/mailbox/mtk-cmdq-mailbox.c if (ind >= mbox->num_chans) mbox 450 drivers/mailbox/mtk-cmdq-mailbox.c thread = (struct cmdq_thread *)mbox->chans[ind].con_priv; mbox 453 drivers/mailbox/mtk-cmdq-mailbox.c thread->chan = &mbox->chans[ind]; mbox 455 drivers/mailbox/mtk-cmdq-mailbox.c return &mbox->chans[ind]; mbox 500 drivers/mailbox/mtk-cmdq-mailbox.c cmdq->mbox.dev = dev; mbox 501 drivers/mailbox/mtk-cmdq-mailbox.c cmdq->mbox.chans = devm_kcalloc(dev, cmdq->thread_nr, mbox 502 drivers/mailbox/mtk-cmdq-mailbox.c sizeof(*cmdq->mbox.chans), GFP_KERNEL); mbox 503 drivers/mailbox/mtk-cmdq-mailbox.c if (!cmdq->mbox.chans) mbox 506 drivers/mailbox/mtk-cmdq-mailbox.c cmdq->mbox.num_chans = cmdq->thread_nr; mbox 507 drivers/mailbox/mtk-cmdq-mailbox.c cmdq->mbox.ops = &cmdq_mbox_chan_ops; mbox 508 drivers/mailbox/mtk-cmdq-mailbox.c cmdq->mbox.of_xlate = cmdq_xlate; mbox 511 drivers/mailbox/mtk-cmdq-mailbox.c cmdq->mbox.txdone_irq = false; mbox 512 drivers/mailbox/mtk-cmdq-mailbox.c cmdq->mbox.txdone_poll = false; mbox 523 drivers/mailbox/mtk-cmdq-mailbox.c cmdq->mbox.chans[i].con_priv = (void *)&cmdq->thread[i]; mbox 526 drivers/mailbox/mtk-cmdq-mailbox.c err = devm_mbox_controller_register(dev, &cmdq->mbox); mbox 68 drivers/mailbox/omap-mailbox.c struct omap_mbox *mbox; mbox 144 drivers/mailbox/omap-mailbox.c static u32 mbox_fifo_read(struct omap_mbox *mbox) mbox 146 drivers/mailbox/omap-mailbox.c struct omap_mbox_fifo *fifo = &mbox->rx_fifo; mbox 148 drivers/mailbox/omap-mailbox.c return mbox_read_reg(mbox->parent, fifo->msg); mbox 151 drivers/mailbox/omap-mailbox.c static void mbox_fifo_write(struct omap_mbox *mbox, u32 msg) mbox 153 drivers/mailbox/omap-mailbox.c struct omap_mbox_fifo *fifo = &mbox->tx_fifo; mbox 155 drivers/mailbox/omap-mailbox.c mbox_write_reg(mbox->parent, msg, fifo->msg); mbox 158 drivers/mailbox/omap-mailbox.c static int mbox_fifo_empty(struct omap_mbox *mbox) mbox 160 drivers/mailbox/omap-mailbox.c struct omap_mbox_fifo *fifo = &mbox->rx_fifo; mbox 162 drivers/mailbox/omap-mailbox.c return (mbox_read_reg(mbox->parent, fifo->msg_stat) == 0); mbox 165 drivers/mailbox/omap-mailbox.c static int mbox_fifo_full(struct omap_mbox *mbox) mbox 167 drivers/mailbox/omap-mailbox.c struct omap_mbox_fifo *fifo = &mbox->tx_fifo; mbox 169 drivers/mailbox/omap-mailbox.c return mbox_read_reg(mbox->parent, fifo->fifo_stat); mbox 173 drivers/mailbox/omap-mailbox.c static void ack_mbox_irq(struct omap_mbox *mbox, omap_mbox_irq_t irq) mbox 176 drivers/mailbox/omap-mailbox.c &mbox->tx_fifo : &mbox->rx_fifo; mbox 180 drivers/mailbox/omap-mailbox.c mbox_write_reg(mbox->parent, bit, irqstatus); mbox 183 drivers/mailbox/omap-mailbox.c mbox_read_reg(mbox->parent, irqstatus); mbox 186 drivers/mailbox/omap-mailbox.c static int is_mbox_irq(struct omap_mbox *mbox, omap_mbox_irq_t irq) mbox 189 drivers/mailbox/omap-mailbox.c &mbox->tx_fifo : &mbox->rx_fifo; mbox 194 drivers/mailbox/omap-mailbox.c u32 enable = mbox_read_reg(mbox->parent, irqenable); mbox 195 drivers/mailbox/omap-mailbox.c u32 status = mbox_read_reg(mbox->parent, irqstatus); mbox 200 drivers/mailbox/omap-mailbox.c static void _omap_mbox_enable_irq(struct omap_mbox *mbox, omap_mbox_irq_t irq) mbox 204 drivers/mailbox/omap-mailbox.c &mbox->tx_fifo : &mbox->rx_fifo; mbox 208 drivers/mailbox/omap-mailbox.c l = mbox_read_reg(mbox->parent, irqenable); mbox 210 drivers/mailbox/omap-mailbox.c mbox_write_reg(mbox->parent, l, irqenable); mbox 213 drivers/mailbox/omap-mailbox.c static void _omap_mbox_disable_irq(struct omap_mbox *mbox, omap_mbox_irq_t irq) mbox 216 drivers/mailbox/omap-mailbox.c &mbox->tx_fifo : &mbox->rx_fifo; mbox 224 drivers/mailbox/omap-mailbox.c if (!mbox->intr_type) mbox 225 drivers/mailbox/omap-mailbox.c bit = mbox_read_reg(mbox->parent, irqdisable) & ~bit; mbox 227 drivers/mailbox/omap-mailbox.c mbox_write_reg(mbox->parent, bit, irqdisable); mbox 232 drivers/mailbox/omap-mailbox.c struct omap_mbox *mbox = mbox_chan_to_omap_mbox(chan); mbox 234 drivers/mailbox/omap-mailbox.c if (WARN_ON(!mbox)) mbox 237 drivers/mailbox/omap-mailbox.c _omap_mbox_enable_irq(mbox, irq); mbox 243 drivers/mailbox/omap-mailbox.c struct omap_mbox *mbox = mbox_chan_to_omap_mbox(chan); mbox 245 drivers/mailbox/omap-mailbox.c if (WARN_ON(!mbox)) mbox 248 drivers/mailbox/omap-mailbox.c _omap_mbox_disable_irq(mbox, irq); mbox 268 drivers/mailbox/omap-mailbox.c mbox_chan_received_data(mq->mbox->chan, (void *)data); mbox 272 drivers/mailbox/omap-mailbox.c _omap_mbox_enable_irq(mq->mbox, IRQ_RX); mbox 281 drivers/mailbox/omap-mailbox.c static void __mbox_tx_interrupt(struct omap_mbox *mbox) mbox 283 drivers/mailbox/omap-mailbox.c _omap_mbox_disable_irq(mbox, IRQ_TX); mbox 284 drivers/mailbox/omap-mailbox.c ack_mbox_irq(mbox, IRQ_TX); mbox 285 drivers/mailbox/omap-mailbox.c mbox_chan_txdone(mbox->chan, 0); mbox 288 drivers/mailbox/omap-mailbox.c static void __mbox_rx_interrupt(struct omap_mbox *mbox) mbox 290 drivers/mailbox/omap-mailbox.c struct omap_mbox_queue *mq = mbox->rxq; mbox 294 drivers/mailbox/omap-mailbox.c while (!mbox_fifo_empty(mbox)) { mbox 296 drivers/mailbox/omap-mailbox.c _omap_mbox_disable_irq(mbox, IRQ_RX); mbox 301 drivers/mailbox/omap-mailbox.c msg = mbox_fifo_read(mbox); mbox 308 drivers/mailbox/omap-mailbox.c ack_mbox_irq(mbox, IRQ_RX); mbox 310 drivers/mailbox/omap-mailbox.c schedule_work(&mbox->rxq->work); mbox 315 drivers/mailbox/omap-mailbox.c struct omap_mbox *mbox = p; mbox 317 drivers/mailbox/omap-mailbox.c if (is_mbox_irq(mbox, IRQ_TX)) mbox 318 drivers/mailbox/omap-mailbox.c __mbox_tx_interrupt(mbox); mbox 320 drivers/mailbox/omap-mailbox.c if (is_mbox_irq(mbox, IRQ_RX)) mbox 321 drivers/mailbox/omap-mailbox.c __mbox_rx_interrupt(mbox); mbox 326 drivers/mailbox/omap-mailbox.c static struct omap_mbox_queue *mbox_queue_alloc(struct omap_mbox *mbox, mbox 357 drivers/mailbox/omap-mailbox.c static int omap_mbox_startup(struct omap_mbox *mbox) mbox 362 drivers/mailbox/omap-mailbox.c mq = mbox_queue_alloc(mbox, mbox_rx_work); mbox 365 drivers/mailbox/omap-mailbox.c mbox->rxq = mq; mbox 366 drivers/mailbox/omap-mailbox.c mq->mbox = mbox; mbox 368 drivers/mailbox/omap-mailbox.c ret = request_irq(mbox->irq, mbox_interrupt, IRQF_SHARED, mbox 369 drivers/mailbox/omap-mailbox.c mbox->name, mbox); mbox 375 drivers/mailbox/omap-mailbox.c if (mbox->send_no_irq) mbox 376 drivers/mailbox/omap-mailbox.c mbox->chan->txdone_method = TXDONE_BY_ACK; mbox 378 drivers/mailbox/omap-mailbox.c _omap_mbox_enable_irq(mbox, IRQ_RX); mbox 383 drivers/mailbox/omap-mailbox.c mbox_queue_free(mbox->rxq); mbox 387 drivers/mailbox/omap-mailbox.c static void omap_mbox_fini(struct omap_mbox *mbox) mbox 389 drivers/mailbox/omap-mailbox.c _omap_mbox_disable_irq(mbox, IRQ_RX); mbox 390 drivers/mailbox/omap-mailbox.c free_irq(mbox->irq, mbox); mbox 391 drivers/mailbox/omap-mailbox.c flush_work(&mbox->rxq->work); mbox 392 drivers/mailbox/omap-mailbox.c mbox_queue_free(mbox->rxq); mbox 398 drivers/mailbox/omap-mailbox.c struct omap_mbox *_mbox, *mbox = NULL; mbox 407 drivers/mailbox/omap-mailbox.c mbox = _mbox; mbox 411 drivers/mailbox/omap-mailbox.c return mbox; mbox 418 drivers/mailbox/omap-mailbox.c struct omap_mbox *mbox = NULL; mbox 435 drivers/mailbox/omap-mailbox.c mbox = omap_mbox_device_find(mdev, chan_name); mbox 436 drivers/mailbox/omap-mailbox.c if (mbox) mbox 441 drivers/mailbox/omap-mailbox.c if (!mbox || !mbox->chan) mbox 444 drivers/mailbox/omap-mailbox.c chan = mbox->chan; mbox 453 drivers/mailbox/omap-mailbox.c ret = chan->mbox->ops->startup(chan); mbox 477 drivers/mailbox/omap-mailbox.c struct omap_mbox *mbox = mboxes[i]; mbox 479 drivers/mailbox/omap-mailbox.c mbox->dev = device_create(&omap_mbox_class, mdev->dev, mbox 480 drivers/mailbox/omap-mailbox.c 0, mbox, "%s", mbox->name); mbox 481 drivers/mailbox/omap-mailbox.c if (IS_ERR(mbox->dev)) { mbox 482 drivers/mailbox/omap-mailbox.c ret = PTR_ERR(mbox->dev); mbox 521 drivers/mailbox/omap-mailbox.c struct omap_mbox *mbox = mbox_chan_to_omap_mbox(chan); mbox 522 drivers/mailbox/omap-mailbox.c struct omap_mbox_device *mdev = mbox->parent; mbox 527 drivers/mailbox/omap-mailbox.c ret = omap_mbox_startup(mbox); mbox 536 drivers/mailbox/omap-mailbox.c struct omap_mbox *mbox = mbox_chan_to_omap_mbox(chan); mbox 537 drivers/mailbox/omap-mailbox.c struct omap_mbox_device *mdev = mbox->parent; mbox 540 drivers/mailbox/omap-mailbox.c omap_mbox_fini(mbox); mbox 545 drivers/mailbox/omap-mailbox.c static int omap_mbox_chan_send_noirq(struct omap_mbox *mbox, u32 msg) mbox 549 drivers/mailbox/omap-mailbox.c if (!mbox_fifo_full(mbox)) { mbox 550 drivers/mailbox/omap-mailbox.c _omap_mbox_enable_irq(mbox, IRQ_RX); mbox 551 drivers/mailbox/omap-mailbox.c mbox_fifo_write(mbox, msg); mbox 553 drivers/mailbox/omap-mailbox.c _omap_mbox_disable_irq(mbox, IRQ_RX); mbox 556 drivers/mailbox/omap-mailbox.c mbox_fifo_read(mbox); mbox 557 drivers/mailbox/omap-mailbox.c ack_mbox_irq(mbox, IRQ_RX); mbox 563 drivers/mailbox/omap-mailbox.c static int omap_mbox_chan_send(struct omap_mbox *mbox, u32 msg) mbox 567 drivers/mailbox/omap-mailbox.c if (!mbox_fifo_full(mbox)) { mbox 568 drivers/mailbox/omap-mailbox.c mbox_fifo_write(mbox, msg); mbox 573 drivers/mailbox/omap-mailbox.c _omap_mbox_enable_irq(mbox, IRQ_TX); mbox 579 drivers/mailbox/omap-mailbox.c struct omap_mbox *mbox = mbox_chan_to_omap_mbox(chan); mbox 583 drivers/mailbox/omap-mailbox.c if (!mbox) mbox 586 drivers/mailbox/omap-mailbox.c if (mbox->send_no_irq) mbox 587 drivers/mailbox/omap-mailbox.c ret = omap_mbox_chan_send_noirq(mbox, msg); mbox 589 drivers/mailbox/omap-mailbox.c ret = omap_mbox_chan_send(mbox, msg); mbox 678 drivers/mailbox/omap-mailbox.c struct omap_mbox *mbox; mbox 691 drivers/mailbox/omap-mailbox.c mbox = omap_mbox_device_find(mdev, node->name); mbox 693 drivers/mailbox/omap-mailbox.c return mbox ? mbox->chan : ERR_PTR(-ENOENT); mbox 701 drivers/mailbox/omap-mailbox.c struct omap_mbox **list, *mbox, *mboxblk; mbox 796 drivers/mailbox/omap-mailbox.c mboxblk = devm_kcalloc(&pdev->dev, info_count, sizeof(*mbox), mbox 801 drivers/mailbox/omap-mailbox.c mbox = mboxblk; mbox 804 drivers/mailbox/omap-mailbox.c fifo = &mbox->tx_fifo; mbox 812 drivers/mailbox/omap-mailbox.c fifo = &mbox->rx_fifo; mbox 820 drivers/mailbox/omap-mailbox.c mbox->send_no_irq = finfo->send_no_irq; mbox 821 drivers/mailbox/omap-mailbox.c mbox->intr_type = intr_type; mbox 823 drivers/mailbox/omap-mailbox.c mbox->parent = mdev; mbox 824 drivers/mailbox/omap-mailbox.c mbox->name = finfo->name; mbox 825 drivers/mailbox/omap-mailbox.c mbox->irq = platform_get_irq(pdev, finfo->tx_irq); mbox 826 drivers/mailbox/omap-mailbox.c if (mbox->irq < 0) mbox 827 drivers/mailbox/omap-mailbox.c return mbox->irq; mbox 828 drivers/mailbox/omap-mailbox.c mbox->chan = &chnls[i]; mbox 829 drivers/mailbox/omap-mailbox.c chnls[i].con_priv = mbox; mbox 830 drivers/mailbox/omap-mailbox.c list[i] = mbox++; mbox 300 drivers/mailbox/pcc.c devm_free_irq(chan->mbox->dev, pcc_doorbell_irq[id], chan); mbox 48 drivers/mailbox/pl320-ipc.c static inline void set_destination(int source, int mbox) mbox 50 drivers/mailbox/pl320-ipc.c writel_relaxed(CHAN_MASK(source), ipc_base + IPCMxDSET(mbox)); mbox 51 drivers/mailbox/pl320-ipc.c writel_relaxed(CHAN_MASK(source), ipc_base + IPCMxMSET(mbox)); mbox 54 drivers/mailbox/pl320-ipc.c static inline void clear_destination(int source, int mbox) mbox 56 drivers/mailbox/pl320-ipc.c writel_relaxed(CHAN_MASK(source), ipc_base + IPCMxDCLEAR(mbox)); mbox 57 drivers/mailbox/pl320-ipc.c writel_relaxed(CHAN_MASK(source), ipc_base + IPCMxMCLEAR(mbox)); mbox 60 drivers/mailbox/pl320-ipc.c static void __ipc_send(int mbox, u32 *data) mbox 64 drivers/mailbox/pl320-ipc.c writel_relaxed(data[i], ipc_base + IPCMxDR(mbox, i)); mbox 65 drivers/mailbox/pl320-ipc.c writel_relaxed(0x1, ipc_base + IPCMxSEND(mbox)); mbox 68 drivers/mailbox/pl320-ipc.c static u32 __ipc_rcv(int mbox, u32 *data) mbox 72 drivers/mailbox/pl320-ipc.c data[i] = readl_relaxed(ipc_base + IPCMxDR(mbox, i)); mbox 43 drivers/mailbox/platform_mhu.c struct mbox_controller mbox; mbox 93 drivers/mailbox/platform_mhu.c dev_err(chan->mbox->dev, mbox 148 drivers/mailbox/platform_mhu.c mhu->mbox.dev = dev; mbox 149 drivers/mailbox/platform_mhu.c mhu->mbox.chans = &mhu->chan[0]; mbox 150 drivers/mailbox/platform_mhu.c mhu->mbox.num_chans = MHU_CHANS; mbox 151 drivers/mailbox/platform_mhu.c mhu->mbox.ops = &platform_mhu_ops; mbox 152 drivers/mailbox/platform_mhu.c mhu->mbox.txdone_irq = false; mbox 153 drivers/mailbox/platform_mhu.c mhu->mbox.txdone_poll = true; mbox 154 drivers/mailbox/platform_mhu.c mhu->mbox.txpoll_period = 1; mbox 158 drivers/mailbox/platform_mhu.c err = devm_mbox_controller_register(dev, &mhu->mbox); mbox 19 drivers/mailbox/qcom-apcs-ipc-mailbox.c struct mbox_controller mbox; mbox 37 drivers/mailbox/qcom-apcs-ipc-mailbox.c struct qcom_apcs_ipc *apcs = container_of(chan->mbox, mbox 38 drivers/mailbox/qcom-apcs-ipc-mailbox.c struct qcom_apcs_ipc, mbox); mbox 85 drivers/mailbox/qcom-apcs-ipc-mailbox.c apcs->mbox.dev = &pdev->dev; mbox 86 drivers/mailbox/qcom-apcs-ipc-mailbox.c apcs->mbox.ops = &qcom_apcs_ipc_ops; mbox 87 drivers/mailbox/qcom-apcs-ipc-mailbox.c apcs->mbox.chans = apcs->mbox_chans; mbox 88 drivers/mailbox/qcom-apcs-ipc-mailbox.c apcs->mbox.num_chans = ARRAY_SIZE(apcs->mbox_chans); mbox 90 drivers/mailbox/qcom-apcs-ipc-mailbox.c ret = devm_mbox_controller_register(&pdev->dev, &apcs->mbox); mbox 42 drivers/mailbox/rockchip-mailbox.c struct mbox_controller mbox; mbox 54 drivers/mailbox/rockchip-mailbox.c struct rockchip_mbox *mb = dev_get_drvdata(chan->mbox->dev); mbox 62 drivers/mailbox/rockchip-mailbox.c dev_err(mb->mbox.dev, "Transmit size over buf size(%d)\n", mbox 67 drivers/mailbox/rockchip-mailbox.c dev_dbg(mb->mbox.dev, "Chan[%d]: A2B message, cmd 0x%08x\n", mbox 81 drivers/mailbox/rockchip-mailbox.c struct rockchip_mbox *mb = dev_get_drvdata(chan->mbox->dev); mbox 84 drivers/mailbox/rockchip-mailbox.c writel_relaxed((1 << mb->mbox.num_chans) - 1, mbox 92 drivers/mailbox/rockchip-mailbox.c struct rockchip_mbox *mb = dev_get_drvdata(chan->mbox->dev); mbox 113 drivers/mailbox/rockchip-mailbox.c for (idx = 0; idx < mb->mbox.num_chans; idx++) { mbox 131 drivers/mailbox/rockchip-mailbox.c for (idx = 0; idx < mb->mbox.num_chans; idx++) { mbox 137 drivers/mailbox/rockchip-mailbox.c dev_err(mb->mbox.dev, mbox 142 drivers/mailbox/rockchip-mailbox.c mbox_chan_received_data(&mb->mbox.chans[idx], msg); mbox 145 drivers/mailbox/rockchip-mailbox.c dev_dbg(mb->mbox.dev, "Chan[%d]: B2A message, cmd 0x%08x\n", mbox 187 drivers/mailbox/rockchip-mailbox.c mb->mbox.chans = devm_kcalloc(&pdev->dev, drv_data->num_chans, mbox 188 drivers/mailbox/rockchip-mailbox.c sizeof(*mb->mbox.chans), GFP_KERNEL); mbox 189 drivers/mailbox/rockchip-mailbox.c if (!mb->mbox.chans) mbox 194 drivers/mailbox/rockchip-mailbox.c mb->mbox.dev = &pdev->dev; mbox 195 drivers/mailbox/rockchip-mailbox.c mb->mbox.num_chans = drv_data->num_chans; mbox 196 drivers/mailbox/rockchip-mailbox.c mb->mbox.ops = &rockchip_mbox_chan_ops; mbox 197 drivers/mailbox/rockchip-mailbox.c mb->mbox.txdone_irq = true; mbox 224 drivers/mailbox/rockchip-mailbox.c for (i = 0; i < mb->mbox.num_chans; i++) { mbox 242 drivers/mailbox/rockchip-mailbox.c ret = devm_mbox_controller_register(&pdev->dev, &mb->mbox); mbox 149 drivers/mailbox/stm32-ipcc.c struct stm32_ipcc *ipcc = container_of(link->mbox, struct stm32_ipcc, mbox 168 drivers/mailbox/stm32-ipcc.c struct stm32_ipcc *ipcc = container_of(link->mbox, struct stm32_ipcc, mbox 188 drivers/mailbox/stm32-ipcc.c struct stm32_ipcc *ipcc = container_of(link->mbox, struct stm32_ipcc, mbox 314 drivers/mailbox/tegra-hsp.c if (db->master >= chan->mbox->num_chans) { mbox 315 drivers/mailbox/tegra-hsp.c dev_err(chan->mbox->dev, mbox 493 drivers/mailbox/tegra-hsp.c static struct mbox_chan *tegra_hsp_db_xlate(struct mbox_controller *mbox, mbox 496 drivers/mailbox/tegra-hsp.c struct tegra_hsp *hsp = container_of(mbox, struct tegra_hsp, mbox_db); mbox 516 drivers/mailbox/tegra-hsp.c for (i = 0; i < mbox->num_chans; i++) { mbox 517 drivers/mailbox/tegra-hsp.c chan = &mbox->chans[i]; mbox 532 drivers/mailbox/tegra-hsp.c static struct mbox_chan *tegra_hsp_sm_xlate(struct mbox_controller *mbox, mbox 535 drivers/mailbox/tegra-hsp.c struct tegra_hsp *hsp = container_of(mbox, struct tegra_hsp, mbox_sm); mbox 140 drivers/mailbox/ti-msgmgr.c struct mbox_controller mbox; mbox 205 drivers/mailbox/ti-msgmgr.c struct device *dev = chan->mbox->dev; mbox 288 drivers/mailbox/ti-msgmgr.c struct device *dev = chan->mbox->dev; mbox 315 drivers/mailbox/ti-msgmgr.c struct device *dev = chan->mbox->dev; mbox 348 drivers/mailbox/ti-msgmgr.c struct device *dev = chan->mbox->dev; mbox 455 drivers/mailbox/ti-msgmgr.c struct device *dev = chan->mbox->dev; mbox 517 drivers/mailbox/ti-msgmgr.c static struct mbox_chan *ti_msgmgr_of_xlate(struct mbox_controller *mbox, mbox 526 drivers/mailbox/ti-msgmgr.c inst = container_of(mbox, struct ti_msgmgr_inst, mbox); mbox 715 drivers/mailbox/ti-msgmgr.c struct mbox_controller *mbox; mbox 808 drivers/mailbox/ti-msgmgr.c mbox = &inst->mbox; mbox 809 drivers/mailbox/ti-msgmgr.c mbox->dev = dev; mbox 810 drivers/mailbox/ti-msgmgr.c mbox->ops = &ti_msgmgr_chan_ops; mbox 811 drivers/mailbox/ti-msgmgr.c mbox->chans = inst->chans; mbox 812 drivers/mailbox/ti-msgmgr.c mbox->num_chans = inst->num_valid_queues; mbox 813 drivers/mailbox/ti-msgmgr.c mbox->txdone_irq = false; mbox 814 drivers/mailbox/ti-msgmgr.c mbox->txdone_poll = desc->tx_polled; mbox 816 drivers/mailbox/ti-msgmgr.c mbox->txpoll_period = desc->tx_poll_timeout_ms; mbox 817 drivers/mailbox/ti-msgmgr.c mbox->of_xlate = ti_msgmgr_of_xlate; mbox 820 drivers/mailbox/ti-msgmgr.c ret = devm_mbox_controller_register(dev, mbox); mbox 92 drivers/mailbox/zynqmp-ipi-mailbox.c struct mbox_controller mbox; mbox 163 drivers/mailbox/zynqmp-ipi-mailbox.c chan = &ipi_mbox->mbox.chans[IPI_MB_CHNL_RX]; mbox 189 drivers/mailbox/zynqmp-ipi-mailbox.c struct device *dev = chan->mbox->dev; mbox 229 drivers/mailbox/zynqmp-ipi-mailbox.c struct device *dev = chan->mbox->dev; mbox 267 drivers/mailbox/zynqmp-ipi-mailbox.c struct device *dev = chan->mbox->dev; mbox 318 drivers/mailbox/zynqmp-ipi-mailbox.c struct device *dev = chan->mbox->dev; mbox 360 drivers/mailbox/zynqmp-ipi-mailbox.c struct device *dev = chan->mbox->dev; mbox 403 drivers/mailbox/zynqmp-ipi-mailbox.c static struct mbox_chan *zynqmp_ipi_of_xlate(struct mbox_controller *mbox, mbox 407 drivers/mailbox/zynqmp-ipi-mailbox.c struct device *dev = mbox->dev; mbox 417 drivers/mailbox/zynqmp-ipi-mailbox.c chan = &mbox->chans[chan_type]; mbox 478 drivers/mailbox/zynqmp-ipi-mailbox.c struct mbox_controller *mbox; mbox 585 drivers/mailbox/zynqmp-ipi-mailbox.c mbox = &ipi_mbox->mbox; mbox 586 drivers/mailbox/zynqmp-ipi-mailbox.c mbox->dev = mdev; mbox 587 drivers/mailbox/zynqmp-ipi-mailbox.c mbox->ops = &zynqmp_ipi_chan_ops; mbox 588 drivers/mailbox/zynqmp-ipi-mailbox.c mbox->num_chans = 2; mbox 589 drivers/mailbox/zynqmp-ipi-mailbox.c mbox->txdone_irq = false; mbox 590 drivers/mailbox/zynqmp-ipi-mailbox.c mbox->txdone_poll = true; mbox 591 drivers/mailbox/zynqmp-ipi-mailbox.c mbox->txpoll_period = 5; mbox 592 drivers/mailbox/zynqmp-ipi-mailbox.c mbox->of_xlate = zynqmp_ipi_of_xlate; mbox 596 drivers/mailbox/zynqmp-ipi-mailbox.c mbox->chans = chans; mbox 601 drivers/mailbox/zynqmp-ipi-mailbox.c ret = devm_mbox_controller_register(mdev, mbox); mbox 625 drivers/mailbox/zynqmp-ipi-mailbox.c mbox_controller_unregister(&ipi_mbox->mbox); mbox 636 drivers/mailbox/zynqmp-ipi-mailbox.c struct zynqmp_ipi_mbox *mbox; mbox 640 drivers/mailbox/zynqmp-ipi-mailbox.c pdata = devm_kzalloc(dev, sizeof(*pdata) + (num_mboxes * sizeof(*mbox)), mbox 657 drivers/mailbox/zynqmp-ipi-mailbox.c mbox = pdata->ipi_mboxes; mbox 659 drivers/mailbox/zynqmp-ipi-mailbox.c mbox->pdata = pdata; mbox 660 drivers/mailbox/zynqmp-ipi-mailbox.c ret = zynqmp_ipi_mbox_probe(mbox, nc); mbox 666 drivers/mailbox/zynqmp-ipi-mailbox.c mbox++; mbox 216 drivers/media/pci/ivtv/ivtv-driver.h volatile struct ivtv_mailbox __iomem *mbox; mbox 79 drivers/media/pci/ivtv/ivtv-firmware.c if (itv->has_cx23415 && itv->dec_mbox.mbox) mbox 81 drivers/media/pci/ivtv/ivtv-firmware.c if (itv->enc_mbox.mbox) mbox 85 drivers/media/pci/ivtv/ivtv-firmware.c itv->enc_mbox.mbox = itv->dec_mbox.mbox = NULL; mbox 206 drivers/media/pci/ivtv/ivtv-firmware.c itv->enc_mbox.mbox = ivtv_search_mailbox(itv->enc_mem, IVTV_ENCODER_SIZE); mbox 207 drivers/media/pci/ivtv/ivtv-firmware.c if (itv->enc_mbox.mbox == NULL) mbox 211 drivers/media/pci/ivtv/ivtv-firmware.c itv->enc_mbox.mbox = NULL; mbox 213 drivers/media/pci/ivtv/ivtv-firmware.c if (itv->enc_mbox.mbox == NULL) mbox 219 drivers/media/pci/ivtv/ivtv-firmware.c itv->dec_mbox.mbox = ivtv_search_mailbox(itv->dec_mem, IVTV_DECODER_SIZE); mbox 220 drivers/media/pci/ivtv/ivtv-firmware.c if (itv->dec_mbox.mbox == NULL) { mbox 224 drivers/media/pci/ivtv/ivtv-firmware.c itv->dec_mbox.mbox = NULL; mbox 229 drivers/media/pci/ivtv/ivtv-firmware.c return itv->dec_mbox.mbox ? 0 : -ENODEV; mbox 133 drivers/media/pci/ivtv/ivtv-mailbox.c u32 flags = readl(&mbdata->mbox[mb].flags); mbox 138 drivers/media/pci/ivtv/ivtv-mailbox.c write_sync(IVTV_MBOX_DRIVER_BUSY, &mbdata->mbox[mb].flags); mbox 175 drivers/media/pci/ivtv/ivtv-mailbox.c static void write_mailbox(volatile struct ivtv_mailbox __iomem *mbox, int cmd, int args, u32 data[]) mbox 179 drivers/media/pci/ivtv/ivtv-mailbox.c write_sync(cmd, &mbox->cmd); mbox 180 drivers/media/pci/ivtv/ivtv-mailbox.c write_sync(IVTV_API_STD_TIMEOUT, &mbox->timeout); mbox 183 drivers/media/pci/ivtv/ivtv-mailbox.c write_sync(data[i], &mbox->data[i]); mbox 185 drivers/media/pci/ivtv/ivtv-mailbox.c write_sync(IVTV_MBOX_DRIVER_DONE | IVTV_MBOX_DRIVER_BUSY, &mbox->flags); mbox 194 drivers/media/pci/ivtv/ivtv-mailbox.c i, readl(&mbdata->mbox[i].cmd), readl(&mbdata->mbox[i].flags)); mbox 195 drivers/media/pci/ivtv/ivtv-mailbox.c write_sync(0, &mbdata->mbox[i].flags); mbox 203 drivers/media/pci/ivtv/ivtv-mailbox.c volatile struct ivtv_mailbox __iomem *mbox; mbox 248 drivers/media/pci/ivtv/ivtv-mailbox.c write_mailbox(&mbdata->mbox[mb], cmd, args, data); mbox 253 drivers/media/pci/ivtv/ivtv-mailbox.c api_info[cmd].name, mb, readl(&mbdata->mbox[mb].flags)); mbox 269 drivers/media/pci/ivtv/ivtv-mailbox.c mbox = &mbdata->mbox[mb]; mbox 270 drivers/media/pci/ivtv/ivtv-mailbox.c write_mailbox(mbox, cmd, args, data); mbox 286 drivers/media/pci/ivtv/ivtv-mailbox.c if (readl(&mbox->flags) & IVTV_MBOX_FIRMWARE_DONE) mbox 290 drivers/media/pci/ivtv/ivtv-mailbox.c while (!(readl(&mbox->flags) & IVTV_MBOX_FIRMWARE_DONE)) { mbox 294 drivers/media/pci/ivtv/ivtv-mailbox.c write_sync(0, &mbox->flags); mbox 309 drivers/media/pci/ivtv/ivtv-mailbox.c data[i] = readl(&mbox->data[i]); mbox 310 drivers/media/pci/ivtv/ivtv-mailbox.c write_sync(0, &mbox->flags); mbox 361 drivers/media/pci/ivtv/ivtv-mailbox.c volatile u32 __iomem *p = mbdata->mbox[mb].data; mbox 749 drivers/media/pci/ivtv/ivtv-streams.c writel(0, &itv->dec_mbox.mbox[IVTV_MBOX_DMA_END].data[0]); mbox 750 drivers/media/pci/ivtv/ivtv-streams.c writel(0, &itv->dec_mbox.mbox[IVTV_MBOX_DMA_END].data[1]); mbox 751 drivers/media/pci/ivtv/ivtv-streams.c writel(0, &itv->dec_mbox.mbox[IVTV_MBOX_DMA_END].data[2]); mbox 752 drivers/media/pci/ivtv/ivtv-streams.c writel(0, &itv->dec_mbox.mbox[IVTV_MBOX_DMA_END].data[3]); mbox 753 drivers/media/pci/ivtv/ivtv-streams.c writel(0, &itv->dec_mbox.mbox[IVTV_MBOX_DMA].data[0]); mbox 754 drivers/media/pci/ivtv/ivtv-streams.c writel(0, &itv->dec_mbox.mbox[IVTV_MBOX_DMA].data[1]); mbox 755 drivers/media/pci/ivtv/ivtv-streams.c writel(0, &itv->dec_mbox.mbox[IVTV_MBOX_DMA].data[2]); mbox 756 drivers/media/pci/ivtv/ivtv-streams.c writel(0, &itv->dec_mbox.mbox[IVTV_MBOX_DMA].data[3]); mbox 33 drivers/media/usb/dvb-usb-v2/af9015.c state->buf[5] = req->mbox; mbox 146 drivers/media/usb/dvb-usb-v2/af9015.c u8 mbox, addr_len; mbox 175 drivers/media/usb/dvb-usb-v2/af9015.c mbox = 0; mbox 179 drivers/media/usb/dvb-usb-v2/af9015.c mbox = 0; mbox 183 drivers/media/usb/dvb-usb-v2/af9015.c mbox = 0; mbox 187 drivers/media/usb/dvb-usb-v2/af9015.c mbox = msg[0].buf[2]; mbox 203 drivers/media/usb/dvb-usb-v2/af9015.c req.mbox = mbox; mbox 221 drivers/media/usb/dvb-usb-v2/af9015.c req.mbox = mbox; mbox 239 drivers/media/usb/dvb-usb-v2/af9015.c req.mbox = mbox; mbox 63 drivers/media/usb/dvb-usb-v2/af9015.h u8 mbox; /* [5] */ mbox 55 drivers/media/usb/dvb-usb-v2/af9035.c state->buf[1] = req->mbox; mbox 118 drivers/media/usb/dvb-usb-v2/af9035.c u8 mbox = (reg >> 16) & 0xff; mbox 119 drivers/media/usb/dvb-usb-v2/af9035.c struct usb_req req = { CMD_MEM_WR, mbox, 6 + len, wbuf, 0, NULL }; mbox 141 drivers/media/usb/dvb-usb-v2/af9035.c u8 mbox = (reg >> 16) & 0xff; mbox 142 drivers/media/usb/dvb-usb-v2/af9035.c struct usb_req req = { CMD_MEM_RD, mbox, sizeof(wbuf), wbuf, len, val }; mbox 346 drivers/media/usb/dvb-usb-v2/af9035.c req.mbox |= ((msg[0].addr & 0x80) >> 3); mbox 405 drivers/media/usb/dvb-usb-v2/af9035.c req.mbox |= ((msg[0].addr & 0x80) >> 3); mbox 437 drivers/media/usb/dvb-usb-v2/af9035.c req.mbox |= ((msg[0].addr & 0x80) >> 3); mbox 38 drivers/media/usb/dvb-usb-v2/af9035.h u8 mbox; mbox 310 drivers/net/can/janz-ican3.c unsigned int mbox, mbox_page; mbox 326 drivers/net/can/janz-ican3.c mbox = (xord & MSYNC_RBLW) ? MSYNC_RB0 : MSYNC_RB1; mbox 328 drivers/net/can/janz-ican3.c mbox = (xord & MSYNC_RB0) ? MSYNC_RB0 : MSYNC_RB1; mbox 331 drivers/net/can/janz-ican3.c mbox_page = (mbox == MSYNC_RB0) ? QUEUE_OLD_RB0 : QUEUE_OLD_RB1; mbox 339 drivers/net/can/janz-ican3.c locl ^= mbox; mbox 355 drivers/net/can/janz-ican3.c unsigned int mbox, mbox_page; mbox 370 drivers/net/can/janz-ican3.c mbox = (xord & MSYNC_WB0) ? MSYNC_WB1 : MSYNC_WB0; mbox 373 drivers/net/can/janz-ican3.c mbox_page = (mbox == MSYNC_WB0) ? QUEUE_OLD_WB0 : QUEUE_OLD_WB1; mbox 377 drivers/net/can/janz-ican3.c locl ^= mbox; mbox 378 drivers/net/can/janz-ican3.c if (mbox == MSYNC_WB1) mbox 125 drivers/net/ethernet/aquantia/atlantic/aq_hw.h struct hw_atl_utils_mbox mbox; mbox 577 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c struct hw_atl_utils_mbox_header mbox; mbox 581 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c hw_atl_utils_mpi_read_mbox(self, &mbox); mbox 583 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c transaction_id = mbox.transaction_id; mbox 586 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c self, mbox.transaction_id, mbox 588 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c mbox.transaction_id, mbox 772 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c struct hw_atl_utils_mbox mbox; mbox 775 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c hw_atl_utils_mpi_read_stats(self, &mbox); mbox 778 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c mbox.stats._N_ - self->last_stats._N_) mbox 806 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c memcpy(&self->last_stats, &mbox.stats, sizeof(mbox.stats)); mbox 936 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c struct hw_atl_utils_mbox_header mbox; mbox 938 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c hw_atl_utils_mpi_read_mbox(self, &mbox); mbox 940 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c return mbox.transaction_id; mbox 599 drivers/net/ethernet/broadcom/tg3.c void __iomem *mbox = tp->regs + off; mbox 600 drivers/net/ethernet/broadcom/tg3.c writel(val, mbox); mbox 602 drivers/net/ethernet/broadcom/tg3.c writel(val, mbox); mbox 605 drivers/net/ethernet/broadcom/tg3.c readl(mbox); mbox 9646 drivers/net/ethernet/broadcom/tg3.c u32 mbox = MAILBOX_SNDNIC_PROD_IDX_0 + TG3_64BIT_REG_LOW; mbox 9648 drivers/net/ethernet/broadcom/tg3.c tw32_tx_mbox(mbox + i * 8, 0); mbox 681 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c struct octeon_mbox *mbox = (struct octeon_mbox *)wk->ctxptr; mbox 682 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c struct octeon_device *oct = mbox->oct_dev; mbox 688 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c mbox_int_val = readq(mbox->mbox_int_reg); mbox 689 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c writeq(mbox_int_val, mbox->mbox_int_reg); mbox 694 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c val64 = readq(oct->mbox[q_no]->mbox_write_reg); mbox 697 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c if (octeon_mbox_read(oct->mbox[q_no])) mbox 699 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c oct->mbox[q_no]); mbox 705 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c octeon_mbox_process_message(mbox); mbox 711 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c struct octeon_mbox *mbox = NULL; mbox 722 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c mbox = vmalloc(sizeof(*mbox)); mbox 723 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c if (!mbox) mbox 726 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c memset(mbox, 0, sizeof(struct octeon_mbox)); mbox 728 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c spin_lock_init(&mbox->lock); mbox 730 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c mbox->oct_dev = oct; mbox 732 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c mbox->q_no = q_no; mbox 734 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c mbox->state = OCTEON_MBOX_STATE_IDLE; mbox 737 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c mbox->mbox_int_reg = (u8 *)oct->mmio[0].hw_addr + mbox 741 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c mbox->mbox_write_reg = (u8 *)oct->mmio[0].hw_addr + mbox 745 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c mbox->mbox_read_reg = (u8 *)oct->mmio[0].hw_addr + mbox 749 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c INIT_DELAYED_WORK(&mbox->mbox_poll_wk.work, mbox 751 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c mbox->mbox_poll_wk.ctxptr = (void *)mbox; mbox 753 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c oct->mbox[q_no] = mbox; mbox 755 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c writeq(OCTEON_PFVFSIG, mbox->mbox_read_reg); mbox 759 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c schedule_delayed_work(&oct->mbox[0]->mbox_poll_wk.work, mbox 767 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c vfree(oct->mbox[i]); mbox 783 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c &oct->mbox[q_no]->mbox_poll_wk.work); mbox 784 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c vfree(oct->mbox[q_no]); mbox 990 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c mbox_int_val = readq(oct->mbox[0]->mbox_int_reg); mbox 997 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c oct->mbox[0]->mbox_int_reg); mbox 998 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c if (octeon_mbox_read(oct->mbox[q_no])) { mbox 999 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c work = &oct->mbox[q_no]->mbox_poll_wk.work; mbox 266 drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c struct octeon_mbox *mbox = (struct octeon_mbox *)wk->ctxptr; mbox 268 drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c octeon_mbox_process_message(mbox); mbox 273 drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c cancel_delayed_work_sync(&oct->mbox[0]->mbox_poll_wk.work); mbox 274 drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c vfree(oct->mbox[0]); mbox 280 drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c struct octeon_mbox *mbox = NULL; mbox 282 drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c mbox = vmalloc(sizeof(*mbox)); mbox 283 drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c if (!mbox) mbox 286 drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c memset(mbox, 0, sizeof(struct octeon_mbox)); mbox 288 drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c spin_lock_init(&mbox->lock); mbox 290 drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c mbox->oct_dev = oct; mbox 292 drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c mbox->q_no = 0; mbox 294 drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c mbox->state = OCTEON_MBOX_STATE_IDLE; mbox 297 drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c mbox->mbox_int_reg = mbox 300 drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c mbox->mbox_read_reg = mbox 303 drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c mbox->mbox_write_reg = mbox 306 drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c INIT_DELAYED_WORK(&mbox->mbox_poll_wk.work, mbox 309 drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c mbox->mbox_poll_wk.ctxptr = mbox; mbox 311 drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c oct->mbox[0] = mbox; mbox 313 drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c writeq(OCTEON_PFVFSIG, mbox->mbox_read_reg); mbox 479 drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c mbox_int_val = readq(oct->mbox[0]->mbox_int_reg); mbox 480 drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c writeq(mbox_int_val, oct->mbox[0]->mbox_int_reg); mbox 481 drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c if (octeon_mbox_read(oct->mbox[0])) mbox 482 drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c schedule_delayed_work(&oct->mbox[0]->mbox_poll_wk.work, mbox 844 drivers/net/ethernet/cavium/liquidio/octeon_device.c ioq_vector->mbox = oct->mbox[i]; mbox 412 drivers/net/ethernet/cavium/liquidio/octeon_device.h struct octeon_mbox *mbox; mbox 573 drivers/net/ethernet/cavium/liquidio/octeon_device.h struct octeon_mbox *mbox[MAX_POSSIBLE_VFS]; mbox 36 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c int octeon_mbox_read(struct octeon_mbox *mbox) mbox 41 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c spin_lock(&mbox->lock); mbox 43 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c msg.u64 = readq(mbox->mbox_read_reg); mbox 46 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c spin_unlock(&mbox->lock); mbox 50 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c if (mbox->state & OCTEON_MBOX_STATE_REQUEST_RECEIVING) { mbox 51 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c mbox->mbox_req.data[mbox->mbox_req.recv_len - 1] = msg.u64; mbox 52 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c mbox->mbox_req.recv_len++; mbox 54 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c if (mbox->state & OCTEON_MBOX_STATE_RESPONSE_RECEIVING) { mbox 55 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c mbox->mbox_resp.data[mbox->mbox_resp.recv_len - 1] = mbox 57 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c mbox->mbox_resp.recv_len++; mbox 59 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c if ((mbox->state & OCTEON_MBOX_STATE_IDLE) && mbox 61 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c mbox->state &= ~OCTEON_MBOX_STATE_IDLE; mbox 62 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c mbox->state |= mbox 64 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c mbox->mbox_req.msg.u64 = msg.u64; mbox 65 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c mbox->mbox_req.q_no = mbox->q_no; mbox 66 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c mbox->mbox_req.recv_len = 1; mbox 68 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c if ((mbox->state & mbox 71 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c mbox->state &= mbox 73 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c mbox->state |= mbox 76 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c mbox->mbox_resp.msg.u64 = msg.u64; mbox 77 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c mbox->mbox_resp.q_no = mbox->q_no; mbox 78 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c mbox->mbox_resp.recv_len = 1; mbox 81 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c mbox->mbox_read_reg); mbox 82 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c mbox->state |= OCTEON_MBOX_STATE_ERROR; mbox 83 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c spin_unlock(&mbox->lock); mbox 90 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c if (mbox->state & OCTEON_MBOX_STATE_REQUEST_RECEIVING) { mbox 91 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c if (mbox->mbox_req.recv_len < mbox->mbox_req.msg.s.len) { mbox 94 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c mbox->state &= ~OCTEON_MBOX_STATE_REQUEST_RECEIVING; mbox 95 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c mbox->state |= OCTEON_MBOX_STATE_REQUEST_RECEIVED; mbox 99 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c if (mbox->state & OCTEON_MBOX_STATE_RESPONSE_RECEIVING) { mbox 100 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c if (mbox->mbox_resp.recv_len < mbox 101 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c mbox->mbox_resp.msg.s.len) { mbox 104 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c mbox->state &= mbox 106 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c mbox->state |= mbox 115 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c writeq(OCTEON_PFVFACK, mbox->mbox_read_reg); mbox 117 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c spin_unlock(&mbox->lock); mbox 134 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c struct octeon_mbox *mbox = oct->mbox[mbox_cmd->q_no]; mbox 139 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c spin_lock_irqsave(&mbox->lock, flags); mbox 142 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c !(mbox->state & OCTEON_MBOX_STATE_REQUEST_RECEIVED)) { mbox 143 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c spin_unlock_irqrestore(&mbox->lock, flags); mbox 148 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c !(mbox->state & OCTEON_MBOX_STATE_IDLE)) { mbox 149 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c spin_unlock_irqrestore(&mbox->lock, flags); mbox 154 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c memcpy(&mbox->mbox_resp, mbox_cmd, mbox 156 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c mbox->state = OCTEON_MBOX_STATE_RESPONSE_PENDING; mbox 159 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c spin_unlock_irqrestore(&mbox->lock, flags); mbox 163 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c while (readq(mbox->mbox_write_reg) != OCTEON_PFVFSIG) { mbox 172 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c writeq(mbox_cmd->msg.u64, mbox->mbox_write_reg); mbox 175 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c while (readq(mbox->mbox_write_reg) != mbox 184 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c writeq(mbox_cmd->data[i], mbox->mbox_write_reg); mbox 190 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c spin_lock_irqsave(&mbox->lock, flags); mbox 192 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c mbox->state = OCTEON_MBOX_STATE_IDLE; mbox 193 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c writeq(OCTEON_PFVFSIG, mbox->mbox_read_reg); mbox 197 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c mbox->state &= ~OCTEON_MBOX_STATE_RESPONSE_PENDING; mbox 198 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c if (!(mbox->state & mbox 201 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c mbox->state = OCTEON_MBOX_STATE_IDLE; mbox 204 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c spin_unlock_irqrestore(&mbox->lock, flags); mbox 236 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c static int octeon_mbox_process_cmd(struct octeon_mbox *mbox, mbox 239 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c struct octeon_device *oct = mbox->oct_dev; mbox 262 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c mbox->q_no); mbox 263 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c pcie_flr(oct->sriov_info.dpiring_to_vfpcidev_lut[mbox->q_no]); mbox 292 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c int octeon_mbox_process_message(struct octeon_mbox *mbox) mbox 297 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c spin_lock_irqsave(&mbox->lock, flags); mbox 299 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c if (mbox->state & OCTEON_MBOX_STATE_ERROR) { mbox 300 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c if (mbox->state & (OCTEON_MBOX_STATE_RESPONSE_PENDING | mbox 302 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c memcpy(&mbox_cmd, &mbox->mbox_resp, mbox 304 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c mbox->state = OCTEON_MBOX_STATE_IDLE; mbox 305 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c writeq(OCTEON_PFVFSIG, mbox->mbox_read_reg); mbox 306 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c spin_unlock_irqrestore(&mbox->lock, flags); mbox 309 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c mbox_cmd.fn(mbox->oct_dev, &mbox_cmd, mbox 314 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c mbox->state = OCTEON_MBOX_STATE_IDLE; mbox 315 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c writeq(OCTEON_PFVFSIG, mbox->mbox_read_reg); mbox 316 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c spin_unlock_irqrestore(&mbox->lock, flags); mbox 320 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c if (mbox->state & OCTEON_MBOX_STATE_RESPONSE_RECEIVED) { mbox 321 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c memcpy(&mbox_cmd, &mbox->mbox_resp, mbox 323 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c mbox->state = OCTEON_MBOX_STATE_IDLE; mbox 324 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c writeq(OCTEON_PFVFSIG, mbox->mbox_read_reg); mbox 325 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c spin_unlock_irqrestore(&mbox->lock, flags); mbox 328 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c mbox_cmd.fn(mbox->oct_dev, &mbox_cmd, mbox_cmd.fn_arg); mbox 332 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c if (mbox->state & OCTEON_MBOX_STATE_REQUEST_RECEIVED) { mbox 333 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c memcpy(&mbox_cmd, &mbox->mbox_req, mbox 336 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c mbox->state &= ~OCTEON_MBOX_STATE_REQUEST_RECEIVED; mbox 337 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c if (!(mbox->state & mbox 339 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c mbox->state = OCTEON_MBOX_STATE_IDLE; mbox 340 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c writeq(OCTEON_PFVFSIG, mbox->mbox_read_reg); mbox 343 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c spin_unlock_irqrestore(&mbox->lock, flags); mbox 344 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c octeon_mbox_process_cmd(mbox, &mbox_cmd); mbox 348 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c spin_unlock_irqrestore(&mbox->lock, flags); mbox 356 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c struct octeon_mbox *mbox = oct->mbox[q_no]; mbox 360 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c spin_lock_irqsave(&mbox->lock, flags); mbox 361 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c mbox_cmd = &mbox->mbox_resp; mbox 363 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c if (!(mbox->state & OCTEON_MBOX_STATE_RESPONSE_PENDING)) { mbox 364 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c spin_unlock_irqrestore(&mbox->lock, flags); mbox 368 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c mbox->state = OCTEON_MBOX_STATE_IDLE; mbox 370 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c writeq(OCTEON_PFVFSIG, mbox->mbox_read_reg); mbox 371 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c spin_unlock_irqrestore(&mbox->lock, flags); mbox 116 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.h int octeon_mbox_read(struct octeon_mbox *mbox); mbox 119 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.h int octeon_mbox_process_message(struct octeon_mbox *mbox); mbox 370 drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c int mbox, key, stat, q; mbox 378 drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c for (mbox = 0; mbox < NIC_PF_VF_MAILBOX_SIZE; mbox++) mbox 380 drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c NIC_VF_PF_MAILBOX_0_1 | (mbox << 3)); mbox 56 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c return t4_wr_mbox_meat(adap, adap->mbox, &c, sizeof(c), &c, false); mbox 71 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c return t4_wr_mbox_meat(adap, adap->mbox, &c, sizeof(c), &c, false); mbox 1741 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c rc = t4_query_params(padap, padap->mbox, padap->pf, 0, 2, para, val); mbox 1759 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c rc = t4_query_params(padap, padap->mbox, padap->pf, 0, 2, mbox 1940 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c rc = t4_sge_ctxt_rd(padap, padap->mbox, cid, ctype, data); mbox 2037 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c t4_sge_ctxt_flush(padap, padap->mbox, i); mbox 2212 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c rc = t4_wr_mbox(padap, padap->mbox, &ldst_cmd, mbox 932 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h unsigned int mbox; mbox 1502 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_wr_mbox_meat_timeout(struct adapter *adap, int mbox, const void *cmd, mbox 1504 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_wr_mbox_meat(struct adapter *adap, int mbox, const void *cmd, int size, mbox 1507 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h static inline int t4_wr_mbox_timeout(struct adapter *adap, int mbox, mbox 1511 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h return t4_wr_mbox_meat_timeout(adap, mbox, cmd, size, rpl, true, mbox 1515 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h static inline int t4_wr_mbox(struct adapter *adap, int mbox, const void *cmd, mbox 1518 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h return t4_wr_mbox_meat(adap, mbox, cmd, size, rpl, true); mbox 1521 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h static inline int t4_wr_mbox_ns(struct adapter *adap, int mbox, const void *cmd, mbox 1524 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h return t4_wr_mbox_meat(adap, mbox, cmd, size, rpl, false); mbox 1590 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_link_l1cfg_core(struct adapter *adap, unsigned int mbox, mbox 1594 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h static inline int t4_link_l1cfg(struct adapter *adapter, unsigned int mbox, mbox 1597 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h return t4_link_l1cfg_core(adapter, mbox, port, lc, mbox 1601 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h static inline int t4_link_l1cfg_ns(struct adapter *adapter, unsigned int mbox, mbox 1604 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h return t4_link_l1cfg_core(adapter, mbox, port, lc, mbox 1608 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_restart_aneg(struct adapter *adap, unsigned int mbox, unsigned int port); mbox 1646 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_fw_upgrade(struct adapter *adap, unsigned int mbox, mbox 1681 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_init_rss_mode(struct adapter *adap, int mbox); mbox 1682 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_init_portinfo(struct port_info *pi, int mbox, mbox 1684 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_port_init(struct adapter *adap, int mbox, int pf, int vf); mbox 1687 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_config_rss_range(struct adapter *adapter, int mbox, unsigned int viid, mbox 1689 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_config_glbl_rss(struct adapter *adapter, int mbox, unsigned int mode, mbox 1691 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_config_vi_rss(struct adapter *adapter, int mbox, unsigned int viid, mbox 1758 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_fw_hello(struct adapter *adap, unsigned int mbox, unsigned int evt_mbox, mbox 1760 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_fw_bye(struct adapter *adap, unsigned int mbox); mbox 1761 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_early_init(struct adapter *adap, unsigned int mbox); mbox 1762 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_fw_reset(struct adapter *adap, unsigned int mbox, int reset); mbox 1765 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_fw_initialize(struct adapter *adap, unsigned int mbox); mbox 1766 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_query_params(struct adapter *adap, unsigned int mbox, unsigned int pf, mbox 1769 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_query_params_ns(struct adapter *adap, unsigned int mbox, unsigned int pf, mbox 1772 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_query_params_rw(struct adapter *adap, unsigned int mbox, unsigned int pf, mbox 1775 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_set_params_timeout(struct adapter *adap, unsigned int mbox, mbox 1779 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_set_params(struct adapter *adap, unsigned int mbox, unsigned int pf, mbox 1782 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_cfg_pfvf(struct adapter *adap, unsigned int mbox, unsigned int pf, mbox 1787 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_alloc_vi(struct adapter *adap, unsigned int mbox, unsigned int port, mbox 1790 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_free_vi(struct adapter *adap, unsigned int mbox, mbox 1793 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_set_rxmode(struct adapter *adap, unsigned int mbox, unsigned int viid, mbox 1808 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_alloc_mac_filt(struct adapter *adap, unsigned int mbox, mbox 1811 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_free_mac_filt(struct adapter *adap, unsigned int mbox, mbox 1814 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_change_mac(struct adapter *adap, unsigned int mbox, unsigned int viid, mbox 1816 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_set_addr_hash(struct adapter *adap, unsigned int mbox, unsigned int viid, mbox 1818 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_enable_vi_params(struct adapter *adap, unsigned int mbox, mbox 1820 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_enable_pi_params(struct adapter *adap, unsigned int mbox, mbox 1823 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_enable_vi(struct adapter *adap, unsigned int mbox, unsigned int viid, mbox 1825 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_identify_port(struct adapter *adap, unsigned int mbox, unsigned int viid, mbox 1827 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_mdio_rd(struct adapter *adap, unsigned int mbox, unsigned int phy_addr, mbox 1829 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_mdio_wr(struct adapter *adap, unsigned int mbox, unsigned int phy_addr, mbox 1831 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_iq_stop(struct adapter *adap, unsigned int mbox, unsigned int pf, mbox 1834 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_iq_free(struct adapter *adap, unsigned int mbox, unsigned int pf, mbox 1837 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_eth_eq_free(struct adapter *adap, unsigned int mbox, unsigned int pf, mbox 1839 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_ctrl_eq_free(struct adapter *adap, unsigned int mbox, unsigned int pf, mbox 1841 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_ofld_eq_free(struct adapter *adap, unsigned int mbox, unsigned int pf, mbox 1843 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_sge_ctxt_flush(struct adapter *adap, unsigned int mbox, int ctxt_type); mbox 1857 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_fwaddrspace_write(struct adapter *adap, unsigned int mbox, mbox 1862 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_sge_ctxt_rd(struct adapter *adap, unsigned int mbox, unsigned int cid, mbox 1888 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_i2c_rd(struct adapter *adap, unsigned int mbox, int port, mbox 1905 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_set_vlan_acl(struct adapter *adap, unsigned int mbox, unsigned int vf, mbox 455 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c err = t4_wr_mbox(adap, adap->mbox, &pcmd, sizeof(pcmd), &pcmd); mbox 467 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c err = t4_wr_mbox(adap, adap->mbox, &pcmd, sizeof(pcmd), &pcmd); mbox 520 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c err = t4_wr_mbox(adap, adap->mbox, &pcmd, sizeof(pcmd), &pcmd); mbox 533 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c err = t4_wr_mbox(adap, adap->mbox, &pcmd, sizeof(pcmd), &pcmd); mbox 545 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c err = t4_wr_mbox(adap, adap->mbox, &pcmd, sizeof(pcmd), &pcmd); mbox 558 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c err = t4_wr_mbox(adap, adap->mbox, &pcmd, sizeof(pcmd), &pcmd); mbox 578 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c err = t4_wr_mbox(adap, adap->mbox, &pcmd, sizeof(pcmd), &pcmd); mbox 609 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c err = t4_wr_mbox(adap, adap->mbox, &pcmd, sizeof(pcmd), &pcmd); mbox 622 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c err = t4_wr_mbox(adap, adap->mbox, &pcmd, sizeof(pcmd), &pcmd); mbox 670 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c err = t4_wr_mbox(adap, adap->mbox, &pcmd, sizeof(pcmd), &pcmd); mbox 805 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c err = t4_wr_mbox(adap, adap->mbox, &pcmd, sizeof(pcmd), &pcmd); mbox 855 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c err = t4_wr_mbox(adap, adap->mbox, &pcmd, sizeof(pcmd), &pcmd); mbox 889 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c err = t4_wr_mbox(adap, adap->mbox, &pcmd, sizeof(pcmd), &pcmd); mbox 963 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c err = t4_wr_mbox(adap, adap->mbox, &pcmd, sizeof(pcmd), &pcmd); mbox 977 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c err = t4_wr_mbox(adap, adap->mbox, &pcmd, sizeof(pcmd), &pcmd); mbox 1128 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c err = t4_wr_mbox(adap, adap->mbox, &pcmd, sizeof(pcmd), &pcmd); mbox 1158 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c err = t4_wr_mbox(adap, adap->mbox, &pcmd, sizeof(pcmd), &pcmd); mbox 1196 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c err = t4_wr_mbox(adap, adap->mbox, &pcmd, sizeof(pcmd), &pcmd); mbox 1208 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c err = t4_wr_mbox(adap, adap->mbox, &pcmd, sizeof(pcmd), &pcmd); mbox 1247 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c unsigned int mbox = (uintptr_t)seq->private & 7; mbox 1248 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c struct adapter *adap = seq->private - mbox; mbox 1249 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c void __iomem *addr = adap->regs + PF_REG(mbox, CIM_PF_MAILBOX_DATA_A); mbox 1259 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c void __iomem *ctrl = adap->regs + PF_REG(mbox, ctrl_reg); mbox 1284 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c unsigned int mbox; mbox 1301 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c mbox = (uintptr_t)ino->i_private & 7; mbox 1302 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c adap = ino->i_private - mbox; mbox 1303 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c addr = adap->regs + PF_REG(mbox, CIM_PF_MAILBOX_DATA_A); mbox 1789 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c ret = t4_wr_mbox(adap, adap->mbox, &ldst_cmd, mbox 1962 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c ret = t4_query_params(adap, adap->mbox, adap->pf, 0, 2, mbox 685 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c ret = t4_link_l1cfg(pi->adapter, pi->adapter->mbox, pi->tx_chan, lc); mbox 783 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c ret = t4_link_l1cfg(pi->adapter, pi->adapter->mbox, mbox 818 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c return t4_link_l1cfg(p->adapter, p->adapter->mbox, p->tx_chan, mbox 968 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c ret = t4_set_params(adap, adap->mbox, adap->pf, 0, 1, ¶m, &val); mbox 1026 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c ret = t4_set_params(adap, adap->mbox, adap->pf, 0, mbox 1215 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c unsigned int mbox = PCIE_FW_MASTER_M + 1; mbox 1242 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c mbox = adap->mbox; mbox 1244 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c ret = t4_fw_upgrade(adap, mbox, fw->data, fw->size, 1); mbox 1458 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c ret = t4_i2c_rd(adapter, adapter->mbox, pi->tx_chan, mbox 1463 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c ret = t4_i2c_rd(adapter, adapter->mbox, pi->tx_chan, mbox 1483 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c ret = t4_i2c_rd(adapter, adapter->mbox, pi->tx_chan, mbox 1516 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c return t4_i2c_rd(adapter, adapter->mbox, pi->tx_chan, mbox 1523 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c ret = t4_i2c_rd(adapter, adapter->mbox, pi->tx_chan, mbox 1534 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c return t4_i2c_rd(adapter, adapter->mbox, pi->tx_chan, I2C_DEV_ADDR_A2, mbox 256 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c err = t4_set_params_timeout(adap, adap->mbox, adap->pf, 0, 1, mbox 358 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c return t4_set_addr_hash(adap, adap->mbox, pi->viid, ucast, mbox 435 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c return t4_set_rxmode(adapter, adapter->mbox, pi->viid, mtu, mbox 466 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_change_mac(adapter, adapter->mbox, viid, mbox 805 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_query_params(adap, adap->mbox, adap->pf, 0, 1, ¶m, &val); mbox 816 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_set_params(adap, adap->mbox, adap->pf, 0, 1, ¶m, &val); mbox 858 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c err = t4_config_vi_rss(adapter, adapter->mbox, pi->viid, mbox 1167 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c err = t4_set_params(adap, adap->mbox, adap->pf, 0, 1, mbox 1810 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c return t4_sge_ctxt_flush(adap, adap->mbox, CTXT_EGRESS); mbox 2618 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c unsigned int mbox; mbox 2642 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c mbox = pi->adapter->pf; mbox 2644 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_mdio_rd(pi->adapter, mbox, prtad, devad, mbox 2647 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_mdio_wr(pi->adapter, mbox, prtad, devad, mbox 2878 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_set_params(adap, adap->mbox, adap->pf, vf + 1, 1, mbox 2938 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_set_params(adap, adap->mbox, adap->pf, vf + 1, 1, &fw_pfvf, mbox 2965 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_set_vlan_acl(adap, adap->mbox, vf + 1, vlan); mbox 3006 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_set_params(adap, adap->mbox, adap->pf, vf + 1, 1, mbox 3576 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_query_params(adapter, adapter->mbox, adapter->pf, 0, mbox 3686 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_wr_mbox(adapter, adapter->mbox, &hma_cmd, mbox 3725 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_wr_mbox(adap, adap->mbox, c, sizeof(*c), c); mbox 3731 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_wr_mbox(adap, adap->mbox, c, sizeof(*c), NULL); mbox 3742 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_cfg_pfvf(adap, adap->mbox, adap->pf, 0, adap->sge.egr_sz, 64, mbox 3996 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_fw_reset(adapter, adapter->mbox, mbox 4051 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_query_params(adapter, adapter->mbox, mbox 4105 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_set_params(adapter, adapter->mbox, adapter->pf, 0, mbox 4132 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_wr_mbox(adapter, adapter->mbox, &caps_cmd, sizeof(caps_cmd), mbox 4148 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_wr_mbox(adapter, adapter->mbox, &caps_cmd, mbox 4173 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_wr_mbox(adapter, adapter->mbox, &caps_cmd, sizeof(caps_cmd), mbox 4203 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_fw_initialize(adapter, adapter->mbox); mbox 4305 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_fw_hello(adap, adap->mbox, adap->mbox, mbox 4312 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c if (ret == adap->mbox) mbox 4400 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_query_params(adap, adap->mbox, adap->pf, 0, 1, mbox 4461 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_query_params(adap, adap->mbox, adap->pf, 0, 1, &v, &port_vec); mbox 4481 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_query_params(adap, adap->mbox, adap->pf, 0, mbox 4516 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_query_params(adap, adap->mbox, adap->pf, 0, 6, params, val); mbox 4532 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_query_params(adap, adap->mbox, adap->pf, 0, 2, mbox 4548 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_query_params(adap, adap->mbox, adap->pf, 0, 2, params, val); mbox 4596 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_query_params(adap, adap->mbox, adap->pf, 0, 2, params, val); mbox 4611 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_query_params(adap, adap->mbox, adap->pf, 0, 2, params, val); mbox 4628 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c (void)t4_set_params(adap, adap->mbox, adap->pf, 0, 1, params, val); mbox 4640 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_query_params(adap, adap->mbox, adap->pf, 0, mbox 4647 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_query_params(adap, adap->mbox, adap->pf, 0, mbox 4656 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_query_params(adap, adap->mbox, adap->pf, 0, mbox 4666 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_query_params(adap, adap->mbox, adap->pf, 0, mbox 4678 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_wr_mbox(adap, adap->mbox, &caps_cmd, sizeof(caps_cmd), mbox 4699 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_query_params(adap, adap->mbox, adap->pf, 0, 6, mbox 4741 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_query_params(adap, adap->mbox, adap->pf, 0, 6, mbox 4754 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_query_params(adap, adap->mbox, adap->pf, 0, 2, mbox 4772 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_query_params(adap, adap->mbox, adap->pf, 0, 6, params, mbox 4785 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_query_params(adap, adap->mbox, adap->pf, 0, 2, params, mbox 4802 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_query_params(adap, adap->mbox, adap->pf, 0, 1, params, mbox 4808 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_query_params(adap, adap->mbox, adap->pf, 0, 1, params, mbox 4816 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_query_params(adap, adap->mbox, adap->pf, 0, 2, mbox 4825 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_query_params(adap, adap->mbox, adap->pf, 0, 2, mbox 4845 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_query_params(adap, adap->mbox, adap->pf, 0, mbox 4859 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_query_params(adap, adap->mbox, adap->pf, 0, mbox 4927 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c t4_fw_bye(adap, adap->mbox); mbox 4993 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c if (t4_fw_hello(adap, adap->mbox, adap->pf, MASTER_MUST, NULL) < 0) mbox 5003 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_alloc_vi(adap, adap->mbox, pi->tx_chan, adap->pf, 0, 1, mbox 5366 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c err = t4_init_rss_mode(adap, adap->mbox); mbox 5459 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c t4_free_vi(adapter, adapter->mbox, adapter->pf, mbox 5591 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c err = t4_wr_mbox(adap, adap->mbox, &port_cmd, sizeof(port_cmd), mbox 5715 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c adapter->mbox = func; mbox 6251 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c t4_fw_bye(adapter, adapter->mbox); mbox 89 drivers/net/ethernet/chelsio/cxgb4/cxgb4_mps.c ret = t4_free_mac_filt(adap, adap->mbox, viid, mbox 106 drivers/net/ethernet/chelsio/cxgb4/cxgb4_mps.c ret = t4_alloc_mac_filt(adap, adap->mbox, viid, free, mbox 142 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c err = t4_wr_mbox(adapter, adapter->mbox, &c, sizeof(c), NULL); mbox 163 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c err = t4_wr_mbox(adapter, adapter->mbox, &c, sizeof(c), NULL); mbox 189 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c err = t4_wr_mbox(adapter, adapter->mbox, &c, sizeof(c), NULL); mbox 222 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c err = t4_wr_mbox(adapter, adapter->mbox, &c, sizeof(c), NULL); mbox 254 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c err = t4_wr_mbox(adapter, adapter->mbox, &c, sizeof(c), NULL); mbox 293 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c err = t4_wr_mbox(adapter, adapter->mbox, &c, sizeof(c), NULL); mbox 355 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c err = t4_wr_mbox(adapter, adapter->mbox, &c, sizeof(c), NULL); mbox 376 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c err = t4_wr_mbox(adapter, adapter->mbox, &c, sizeof(c), NULL); mbox 23 drivers/net/ethernet/chelsio/cxgb4/cxgb4_thermal.c ret = t4_query_params(adap, adap->mbox, adap->pf, 0, 1, mbox 76 drivers/net/ethernet/chelsio/cxgb4/cxgb4_thermal.c ret = t4_query_params(adap, adap->mbox, adap->pf, 0, 1, mbox 224 drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c ret = t4_set_params(adap, adap->mbox, adap->pf, mbox 255 drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c t4_set_params(adap, adap->mbox, adap->pf, mbox 468 drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c t4_ofld_eq_free(adap, adap->mbox, adap->pf, 0, mbox 102 drivers/net/ethernet/chelsio/cxgb4/sched.c err = t4_set_params(adap, adap->mbox, pf, vf, 1, &fw_param, &fw_class); mbox 3604 drivers/net/ethernet/chelsio/cxgb4/sge.c ret = t4_wr_mbox(adap, adap->mbox, &c, sizeof(c), &c); mbox 3676 drivers/net/ethernet/chelsio/cxgb4/sge.c ret = t4_set_params(adap, adap->mbox, adap->pf, 0, 1, mbox 3792 drivers/net/ethernet/chelsio/cxgb4/sge.c ret = t4_wr_mbox(adap, adap->mbox, &c, sizeof(c), &c); mbox 3853 drivers/net/ethernet/chelsio/cxgb4/sge.c ret = t4_wr_mbox(adap, adap->mbox, &c, sizeof(c), &c); mbox 3880 drivers/net/ethernet/chelsio/cxgb4/sge.c return t4_set_params(adap, adap->mbox, adap->pf, 0, 1, ¶m, &val); mbox 3926 drivers/net/ethernet/chelsio/cxgb4/sge.c ret = t4_wr_mbox(adap, adap->mbox, &c, sizeof(c), &c); mbox 3966 drivers/net/ethernet/chelsio/cxgb4/sge.c t4_iq_free(adap, adap->mbox, adap->pf, 0, FW_IQ_TYPE_FL_INT_CAP, mbox 4018 drivers/net/ethernet/chelsio/cxgb4/sge.c t4_iq_stop(adap, adap->mbox, adap->pf, 0, mbox 4034 drivers/net/ethernet/chelsio/cxgb4/sge.c t4_eth_eq_free(adap, adap->mbox, adap->pf, 0, mbox 4050 drivers/net/ethernet/chelsio/cxgb4/sge.c t4_ctrl_eq_free(adap, adap->mbox, adap->pf, 0, mbox 4066 drivers/net/ethernet/chelsio/cxgb4/sge.c t4_eth_eq_free(adap, adap->mbox, adap->pf, 0, mbox 282 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_wr_mbox_meat_timeout(struct adapter *adap, int mbox, const void *cmd, mbox 296 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c u32 data_reg = PF_REG(mbox, CIM_PF_MAILBOX_DATA_A); mbox 297 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c u32 ctl_reg = PF_REG(mbox, CIM_PF_MAILBOX_CTRL_A); mbox 433 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c *(const u8 *)cmd, mbox); mbox 442 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_wr_mbox_meat(struct adapter *adap, int mbox, const void *cmd, int size, mbox 445 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c return t4_wr_mbox_meat_timeout(adap, mbox, cmd, size, rpl, sleep_ok, mbox 756 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ret = t4_wr_mbox(adap, adap->mbox, &ldst_cmd, sizeof(ldst_cmd), mbox 2875 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ret = t4_query_params(adapter, adapter->mbox, adapter->pf, 0, mbox 2909 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c v = t4_wr_mbox(adapter, adapter->mbox, &cmd, sizeof(cmd), &rpl); mbox 3235 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ret = t4_query_params(adapter, adapter->mbox, adapter->pf, 0, mbox 3272 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ret = t4_query_params(adapter, adapter->mbox, adapter->pf, 0, mbox 3531 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ret = -t4_fw_upgrade(adap, adap->mbox, fw_data, mbox 3749 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ret = t4_query_params(adap, adap->mbox, adap->pf, 0, 1, mbox 3821 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ret = t4_query_params_rw(adap, adap->mbox, adap->pf, 0, 1, mbox 3850 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ret = t4_set_params_timeout(adap, adap->mbox, adap->pf, 0, 1, mbox 3894 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c return t4_wr_mbox(adap, adap->mbox, &c, sizeof(c), NULL); mbox 4215 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_link_l1cfg_core(struct adapter *adapter, unsigned int mbox, mbox 4247 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ret = t4_wr_mbox_meat_timeout(adapter, mbox, &cmd, sizeof(cmd), NULL, mbox 4273 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_restart_aneg(struct adapter *adap, unsigned int mbox, unsigned int port) mbox 4291 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL); mbox 5157 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_config_rss_range(struct adapter *adapter, int mbox, unsigned int viid, mbox 5199 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ret = t4_wr_mbox(adapter, mbox, &cmd, sizeof(cmd), NULL); mbox 5215 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_config_glbl_rss(struct adapter *adapter, int mbox, unsigned int mode, mbox 5233 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c return t4_wr_mbox(adapter, mbox, &c, sizeof(c), NULL); mbox 5246 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_config_vi_rss(struct adapter *adapter, int mbox, unsigned int viid, mbox 5258 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c return t4_wr_mbox(adapter, mbox, &c, sizeof(c), NULL); mbox 5328 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ret = t4_wr_mbox_meat(adap, adap->mbox, &c, sizeof(c), &c, mbox 6189 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ret = t4_query_params_ns(adapter, adapter->mbox, adapter->pf, mbox 6235 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ret = t4_query_params_ns(adapter, adapter->mbox, adapter->pf, mbox 6522 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_fwaddrspace_write(struct adapter *adap, unsigned int mbox, mbox 6538 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL); mbox 6552 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_mdio_rd(struct adapter *adap, unsigned int mbox, unsigned int phy_addr, mbox 6569 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ret = t4_wr_mbox(adap, mbox, &c, sizeof(c), &c); mbox 6586 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_mdio_wr(struct adapter *adap, unsigned int mbox, unsigned int phy_addr, mbox 6603 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL); mbox 6780 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_sge_ctxt_flush(struct adapter *adap, unsigned int mbox, int ctxt_type) mbox 6796 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ret = t4_wr_mbox(adap, mbox, &c, sizeof(c), &c); mbox 6830 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ret = t4_query_params(adap, adap->mbox, adap->pf, 0, mbox 6852 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_fw_hello(struct adapter *adap, unsigned int mbox, unsigned int evt_mbox, mbox 6868 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c mbox : FW_HELLO_CMD_MBMASTER_M) | mbox 6880 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ret = t4_wr_mbox(adap, mbox, &c, sizeof(c), &c); mbox 6912 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c master_mbox != mbox) { mbox 6978 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_fw_bye(struct adapter *adap, unsigned int mbox) mbox 6984 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL); mbox 6995 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_early_init(struct adapter *adap, unsigned int mbox) mbox 7001 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL); mbox 7012 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_fw_reset(struct adapter *adap, unsigned int mbox, int reset) mbox 7019 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL); mbox 7038 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c static int t4_fw_halt(struct adapter *adap, unsigned int mbox, int force) mbox 7046 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c if (mbox <= PCIE_FW_MASTER_M) { mbox 7053 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ret = t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL); mbox 7103 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c static int t4_fw_restart(struct adapter *adap, unsigned int mbox, int reset) mbox 7120 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c if (mbox <= PCIE_FW_MASTER_M) { mbox 7123 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c if (t4_fw_reset(adap, mbox, mbox 7166 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_fw_upgrade(struct adapter *adap, unsigned int mbox, mbox 7180 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ret = t4_fw_halt(adap, mbox, force); mbox 7208 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ret = t4_fw_restart(adap, mbox, reset); mbox 7432 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_fw_initialize(struct adapter *adap, unsigned int mbox) mbox 7438 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL); mbox 7456 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_query_params_rw(struct adapter *adap, unsigned int mbox, unsigned int pf, mbox 7481 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ret = t4_wr_mbox_meat(adap, mbox, &c, sizeof(c), &c, sleep_ok); mbox 7488 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_query_params(struct adapter *adap, unsigned int mbox, unsigned int pf, mbox 7492 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c return t4_query_params_rw(adap, mbox, pf, vf, nparams, params, val, 0, mbox 7496 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_query_params_ns(struct adapter *adap, unsigned int mbox, unsigned int pf, mbox 7500 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c return t4_query_params_rw(adap, mbox, pf, vf, nparams, params, val, 0, mbox 7518 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_set_params_timeout(struct adapter *adap, unsigned int mbox, mbox 7541 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c return t4_wr_mbox_timeout(adap, mbox, &c, sizeof(c), NULL, timeout); mbox 7557 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_set_params(struct adapter *adap, unsigned int mbox, unsigned int pf, mbox 7561 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c return t4_set_params_timeout(adap, mbox, pf, vf, nparams, params, val, mbox 7586 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_cfg_pfvf(struct adapter *adap, unsigned int mbox, unsigned int pf, mbox 7610 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL); mbox 7630 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_alloc_vi(struct adapter *adap, unsigned int mbox, unsigned int port, mbox 7645 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ret = t4_wr_mbox(adap, mbox, &c, sizeof(c), &c); mbox 7687 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_free_vi(struct adapter *adap, unsigned int mbox, unsigned int pf, mbox 7701 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c return t4_wr_mbox(adap, mbox, &c, sizeof(c), &c); mbox 7718 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_set_rxmode(struct adapter *adap, unsigned int mbox, unsigned int viid, mbox 7747 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c return t4_wr_mbox_meat(adap, mbox, &c, sizeof(c), NULL, sleep_ok); mbox 7783 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ret = t4_wr_mbox_meat(adap, adap->mbox, &c, sizeof(c), &c, sleep_ok); mbox 7834 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c return t4_wr_mbox_meat(adap, adap->mbox, &c, sizeof(c), &c, sleep_ok); mbox 7880 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ret = t4_wr_mbox_meat(adap, adap->mbox, &c, sizeof(c), &c, sleep_ok); mbox 7932 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ret = t4_wr_mbox_meat(adap, adap->mbox, &c, sizeof(c), &c, sleep_ok); mbox 7964 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_alloc_mac_filt(struct adapter *adap, unsigned int mbox, mbox 8008 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ret = t4_wr_mbox_meat(adap, mbox, &c, sizeof(c), &c, sleep_ok); mbox 8049 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_free_mac_filt(struct adapter *adap, unsigned int mbox, mbox 8090 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ret = t4_wr_mbox_meat(adap, mbox, &c, sizeof(c), &c, sleep_ok); mbox 8130 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_change_mac(struct adapter *adap, unsigned int mbox, unsigned int viid, mbox 8152 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ret = t4_wr_mbox(adap, mbox, &c, sizeof(c), &c); mbox 8189 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_set_addr_hash(struct adapter *adap, unsigned int mbox, unsigned int viid, mbox 8202 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c return t4_wr_mbox_meat(adap, mbox, &c, sizeof(c), NULL, sleep_ok); mbox 8217 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_enable_vi_params(struct adapter *adap, unsigned int mbox, mbox 8230 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c return t4_wr_mbox_ns(adap, mbox, &c, sizeof(c), NULL); mbox 8243 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_enable_vi(struct adapter *adap, unsigned int mbox, unsigned int viid, mbox 8246 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c return t4_enable_vi_params(adap, mbox, viid, rx_en, tx_en, 0); mbox 8264 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_enable_pi_params(struct adapter *adap, unsigned int mbox, mbox 8268 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int ret = t4_enable_vi_params(adap, mbox, pi->viid, mbox 8286 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_identify_port(struct adapter *adap, unsigned int mbox, unsigned int viid, mbox 8297 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL); mbox 8315 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_iq_stop(struct adapter *adap, unsigned int mbox, unsigned int pf, mbox 8330 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL); mbox 8346 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_iq_free(struct adapter *adap, unsigned int mbox, unsigned int pf, mbox 8361 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL); mbox 8374 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_eth_eq_free(struct adapter *adap, unsigned int mbox, unsigned int pf, mbox 8386 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL); mbox 8399 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_ctrl_eq_free(struct adapter *adap, unsigned int mbox, unsigned int pf, mbox 8411 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL); mbox 8424 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_ofld_eq_free(struct adapter *adap, unsigned int mbox, unsigned int pf, mbox 8436 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL); mbox 8727 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ret = t4_link_l1cfg_ns(adapter, adapter->mbox, pi->lport, lc); mbox 8761 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ret = t4_wr_mbox(pi->adapter, pi->adapter->mbox, mbox 8800 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ret = t4_wr_mbox(pi->adapter, pi->adapter->mbox, mbox 9350 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ret = t4_wr_mbox(adap, adap->mbox, &devlog_cmd, sizeof(devlog_cmd), mbox 9424 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ret = t4_query_params(adap, adap->mbox, adap->pf, 0, 1, mbox 9556 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_init_rss_mode(struct adapter *adap, int mbox) mbox 9571 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ret = t4_wr_mbox(adap, mbox, &rvc, sizeof(rvc), &rvc); mbox 9593 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_init_portinfo(struct port_info *pi, int mbox, mbox 9618 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ret = t4_set_params(adapter, mbox, pf, vf, 1, ¶m, &val); mbox 9632 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ret = t4_wr_mbox(pi->adapter, mbox, &cmd, sizeof(cmd), &cmd); mbox 9658 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ret = t4_alloc_vi(pi->adapter, mbox, port, pf, vf, 1, mac, &rss_size, mbox 9689 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_port_init(struct adapter *adap, int mbox, int pf, int vf) mbox 9700 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ret = t4_init_portinfo(pi, mbox, j, pf, vf, addr); mbox 10229 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c return t4_wr_mbox(adapter, adapter->mbox, &cmd, sizeof(cmd), &cmd); mbox 10298 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_sge_ctxt_rd(struct adapter *adap, unsigned int mbox, unsigned int cid, mbox 10316 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ret = t4_wr_mbox(adap, mbox, &c, sizeof(c), &c); mbox 10376 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c return t4_wr_mbox_meat(adapter, adapter->mbox, &cmd, sizeof(cmd), mbox 10391 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_i2c_rd(struct adapter *adap, unsigned int mbox, int port, mbox 10422 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ret = t4_wr_mbox(adap, mbox, &ldst_cmd, sizeof(ldst_cmd), mbox 10443 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_set_vlan_acl(struct adapter *adap, unsigned int mbox, unsigned int vf, mbox 10467 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c return t4_wr_mbox(adap, adap->mbox, &vlan_cmd, sizeof(vlan_cmd), NULL); mbox 668 drivers/net/ethernet/emulex/benet/be_cmds.c struct be_mcc_mailbox *mbox = mbox_mem->va; mbox 669 drivers/net/ethernet/emulex/benet/be_cmds.c struct be_mcc_compl *compl = &mbox->compl; mbox 697 drivers/net/ethernet/emulex/benet/be_cmds.c status = be_mcc_compl_process(adapter, &mbox->compl); mbox 20 drivers/net/ethernet/marvell/octeontx2/af/mbox.c void otx2_mbox_reset(struct otx2_mbox *mbox, int devid) mbox 22 drivers/net/ethernet/marvell/octeontx2/af/mbox.c struct otx2_mbox_dev *mdev = &mbox->dev[devid]; mbox 25 drivers/net/ethernet/marvell/octeontx2/af/mbox.c tx_hdr = mdev->mbase + mbox->tx_start; mbox 26 drivers/net/ethernet/marvell/octeontx2/af/mbox.c rx_hdr = mdev->mbase + mbox->rx_start; mbox 37 drivers/net/ethernet/marvell/octeontx2/af/mbox.c void otx2_mbox_destroy(struct otx2_mbox *mbox) mbox 39 drivers/net/ethernet/marvell/octeontx2/af/mbox.c mbox->reg_base = NULL; mbox 40 drivers/net/ethernet/marvell/octeontx2/af/mbox.c mbox->hwbase = NULL; mbox 42 drivers/net/ethernet/marvell/octeontx2/af/mbox.c kfree(mbox->dev); mbox 43 drivers/net/ethernet/marvell/octeontx2/af/mbox.c mbox->dev = NULL; mbox 47 drivers/net/ethernet/marvell/octeontx2/af/mbox.c int otx2_mbox_init(struct otx2_mbox *mbox, void *hwbase, struct pci_dev *pdev, mbox 56 drivers/net/ethernet/marvell/octeontx2/af/mbox.c mbox->tx_start = MBOX_DOWN_TX_START; mbox 57 drivers/net/ethernet/marvell/octeontx2/af/mbox.c mbox->rx_start = MBOX_DOWN_RX_START; mbox 58 drivers/net/ethernet/marvell/octeontx2/af/mbox.c mbox->tx_size = MBOX_DOWN_TX_SIZE; mbox 59 drivers/net/ethernet/marvell/octeontx2/af/mbox.c mbox->rx_size = MBOX_DOWN_RX_SIZE; mbox 63 drivers/net/ethernet/marvell/octeontx2/af/mbox.c mbox->tx_start = MBOX_DOWN_RX_START; mbox 64 drivers/net/ethernet/marvell/octeontx2/af/mbox.c mbox->rx_start = MBOX_DOWN_TX_START; mbox 65 drivers/net/ethernet/marvell/octeontx2/af/mbox.c mbox->tx_size = MBOX_DOWN_RX_SIZE; mbox 66 drivers/net/ethernet/marvell/octeontx2/af/mbox.c mbox->rx_size = MBOX_DOWN_TX_SIZE; mbox 70 drivers/net/ethernet/marvell/octeontx2/af/mbox.c mbox->tx_start = MBOX_UP_TX_START; mbox 71 drivers/net/ethernet/marvell/octeontx2/af/mbox.c mbox->rx_start = MBOX_UP_RX_START; mbox 72 drivers/net/ethernet/marvell/octeontx2/af/mbox.c mbox->tx_size = MBOX_UP_TX_SIZE; mbox 73 drivers/net/ethernet/marvell/octeontx2/af/mbox.c mbox->rx_size = MBOX_UP_RX_SIZE; mbox 77 drivers/net/ethernet/marvell/octeontx2/af/mbox.c mbox->tx_start = MBOX_UP_RX_START; mbox 78 drivers/net/ethernet/marvell/octeontx2/af/mbox.c mbox->rx_start = MBOX_UP_TX_START; mbox 79 drivers/net/ethernet/marvell/octeontx2/af/mbox.c mbox->tx_size = MBOX_UP_RX_SIZE; mbox 80 drivers/net/ethernet/marvell/octeontx2/af/mbox.c mbox->rx_size = MBOX_UP_TX_SIZE; mbox 89 drivers/net/ethernet/marvell/octeontx2/af/mbox.c mbox->trigger = RVU_AF_AFPF_MBOX0; mbox 90 drivers/net/ethernet/marvell/octeontx2/af/mbox.c mbox->tr_shift = 4; mbox 94 drivers/net/ethernet/marvell/octeontx2/af/mbox.c mbox->trigger = RVU_PF_PFAF_MBOX1; mbox 95 drivers/net/ethernet/marvell/octeontx2/af/mbox.c mbox->tr_shift = 0; mbox 99 drivers/net/ethernet/marvell/octeontx2/af/mbox.c mbox->trigger = RVU_PF_VFX_PFVF_MBOX0; mbox 100 drivers/net/ethernet/marvell/octeontx2/af/mbox.c mbox->tr_shift = 12; mbox 104 drivers/net/ethernet/marvell/octeontx2/af/mbox.c mbox->trigger = RVU_VF_VFPF_MBOX1; mbox 105 drivers/net/ethernet/marvell/octeontx2/af/mbox.c mbox->tr_shift = 0; mbox 111 drivers/net/ethernet/marvell/octeontx2/af/mbox.c mbox->reg_base = reg_base; mbox 112 drivers/net/ethernet/marvell/octeontx2/af/mbox.c mbox->hwbase = hwbase; mbox 113 drivers/net/ethernet/marvell/octeontx2/af/mbox.c mbox->pdev = pdev; mbox 115 drivers/net/ethernet/marvell/octeontx2/af/mbox.c mbox->dev = kcalloc(ndevs, sizeof(struct otx2_mbox_dev), GFP_KERNEL); mbox 116 drivers/net/ethernet/marvell/octeontx2/af/mbox.c if (!mbox->dev) { mbox 117 drivers/net/ethernet/marvell/octeontx2/af/mbox.c otx2_mbox_destroy(mbox); mbox 121 drivers/net/ethernet/marvell/octeontx2/af/mbox.c mbox->ndevs = ndevs; mbox 123 drivers/net/ethernet/marvell/octeontx2/af/mbox.c mdev = &mbox->dev[devid]; mbox 124 drivers/net/ethernet/marvell/octeontx2/af/mbox.c mdev->mbase = mbox->hwbase + (devid * MBOX_SIZE); mbox 127 drivers/net/ethernet/marvell/octeontx2/af/mbox.c otx2_mbox_reset(mbox, devid); mbox 134 drivers/net/ethernet/marvell/octeontx2/af/mbox.c int otx2_mbox_wait_for_rsp(struct otx2_mbox *mbox, int devid) mbox 136 drivers/net/ethernet/marvell/octeontx2/af/mbox.c struct otx2_mbox_dev *mdev = &mbox->dev[devid]; mbox 149 drivers/net/ethernet/marvell/octeontx2/af/mbox.c int otx2_mbox_busy_poll_for_rsp(struct otx2_mbox *mbox, int devid) mbox 151 drivers/net/ethernet/marvell/octeontx2/af/mbox.c struct otx2_mbox_dev *mdev = &mbox->dev[devid]; mbox 163 drivers/net/ethernet/marvell/octeontx2/af/mbox.c void otx2_mbox_msg_send(struct otx2_mbox *mbox, int devid) mbox 165 drivers/net/ethernet/marvell/octeontx2/af/mbox.c struct otx2_mbox_dev *mdev = &mbox->dev[devid]; mbox 168 drivers/net/ethernet/marvell/octeontx2/af/mbox.c tx_hdr = mdev->mbase + mbox->tx_start; mbox 169 drivers/net/ethernet/marvell/octeontx2/af/mbox.c rx_hdr = mdev->mbase + mbox->rx_start; mbox 191 drivers/net/ethernet/marvell/octeontx2/af/mbox.c writeq(1, (void __iomem *)mbox->reg_base + mbox 192 drivers/net/ethernet/marvell/octeontx2/af/mbox.c (mbox->trigger | (devid << mbox->tr_shift))); mbox 196 drivers/net/ethernet/marvell/octeontx2/af/mbox.c struct mbox_msghdr *otx2_mbox_alloc_msg_rsp(struct otx2_mbox *mbox, int devid, mbox 199 drivers/net/ethernet/marvell/octeontx2/af/mbox.c struct otx2_mbox_dev *mdev = &mbox->dev[devid]; mbox 206 drivers/net/ethernet/marvell/octeontx2/af/mbox.c if ((mdev->msg_size + size) > mbox->tx_size - msgs_offset) mbox 208 drivers/net/ethernet/marvell/octeontx2/af/mbox.c if ((mdev->rsp_size + size_rsp) > mbox->rx_size - msgs_offset) mbox 215 drivers/net/ethernet/marvell/octeontx2/af/mbox.c msghdr = mdev->mbase + mbox->tx_start + msgs_offset + mdev->msg_size; mbox 231 drivers/net/ethernet/marvell/octeontx2/af/mbox.c struct mbox_msghdr *otx2_mbox_get_rsp(struct otx2_mbox *mbox, int devid, mbox 234 drivers/net/ethernet/marvell/octeontx2/af/mbox.c unsigned long imsg = mbox->tx_start + msgs_offset; mbox 235 drivers/net/ethernet/marvell/octeontx2/af/mbox.c unsigned long irsp = mbox->rx_start + msgs_offset; mbox 236 drivers/net/ethernet/marvell/octeontx2/af/mbox.c struct otx2_mbox_dev *mdev = &mbox->dev[devid]; mbox 261 drivers/net/ethernet/marvell/octeontx2/af/mbox.c otx2_reply_invalid_msg(struct otx2_mbox *mbox, int devid, u16 pcifunc, u16 id) mbox 266 drivers/net/ethernet/marvell/octeontx2/af/mbox.c otx2_mbox_alloc_msg(mbox, devid, sizeof(*rsp)); mbox 277 drivers/net/ethernet/marvell/octeontx2/af/mbox.c bool otx2_mbox_nonempty(struct otx2_mbox *mbox, int devid) mbox 279 drivers/net/ethernet/marvell/octeontx2/af/mbox.c struct otx2_mbox_dev *mdev = &mbox->dev[devid]; mbox 94 drivers/net/ethernet/marvell/octeontx2/af/mbox.h void otx2_mbox_reset(struct otx2_mbox *mbox, int devid); mbox 95 drivers/net/ethernet/marvell/octeontx2/af/mbox.h void otx2_mbox_destroy(struct otx2_mbox *mbox); mbox 96 drivers/net/ethernet/marvell/octeontx2/af/mbox.h int otx2_mbox_init(struct otx2_mbox *mbox, void __force *hwbase, mbox 99 drivers/net/ethernet/marvell/octeontx2/af/mbox.h void otx2_mbox_msg_send(struct otx2_mbox *mbox, int devid); mbox 100 drivers/net/ethernet/marvell/octeontx2/af/mbox.h int otx2_mbox_wait_for_rsp(struct otx2_mbox *mbox, int devid); mbox 101 drivers/net/ethernet/marvell/octeontx2/af/mbox.h int otx2_mbox_busy_poll_for_rsp(struct otx2_mbox *mbox, int devid); mbox 102 drivers/net/ethernet/marvell/octeontx2/af/mbox.h struct mbox_msghdr *otx2_mbox_alloc_msg_rsp(struct otx2_mbox *mbox, int devid, mbox 104 drivers/net/ethernet/marvell/octeontx2/af/mbox.h struct mbox_msghdr *otx2_mbox_get_rsp(struct otx2_mbox *mbox, int devid, mbox 106 drivers/net/ethernet/marvell/octeontx2/af/mbox.h int otx2_reply_invalid_msg(struct otx2_mbox *mbox, int devid, mbox 108 drivers/net/ethernet/marvell/octeontx2/af/mbox.h bool otx2_mbox_nonempty(struct otx2_mbox *mbox, int devid); mbox 110 drivers/net/ethernet/marvell/octeontx2/af/mbox.h static inline struct mbox_msghdr *otx2_mbox_alloc_msg(struct otx2_mbox *mbox, mbox 113 drivers/net/ethernet/marvell/octeontx2/af/mbox.h return otx2_mbox_alloc_msg_rsp(mbox, devid, size, 0); mbox 1366 drivers/net/ethernet/marvell/octeontx2/af/rvu.c static int rvu_process_mbox_msg(struct otx2_mbox *mbox, int devid, mbox 1369 drivers/net/ethernet/marvell/octeontx2/af/rvu.c struct rvu *rvu = pci_get_drvdata(mbox->pdev); mbox 1382 drivers/net/ethernet/marvell/octeontx2/af/rvu.c mbox, devid, \ mbox 1411 drivers/net/ethernet/marvell/octeontx2/af/rvu.c otx2_reply_invalid_msg(mbox, devid, req->pcifunc, req->id); mbox 1424 drivers/net/ethernet/marvell/octeontx2/af/rvu.c struct otx2_mbox *mbox; mbox 1438 drivers/net/ethernet/marvell/octeontx2/af/rvu.c mbox = &mw->mbox; mbox 1439 drivers/net/ethernet/marvell/octeontx2/af/rvu.c mdev = &mbox->dev[devid]; mbox 1442 drivers/net/ethernet/marvell/octeontx2/af/rvu.c req_hdr = mdev->mbase + mbox->rx_start; mbox 1446 drivers/net/ethernet/marvell/octeontx2/af/rvu.c offset = mbox->rx_start + ALIGN(sizeof(*req_hdr), MBOX_MSG_ALIGN); mbox 1465 drivers/net/ethernet/marvell/octeontx2/af/rvu.c err = rvu_process_mbox_msg(mbox, devid, msg); mbox 1467 drivers/net/ethernet/marvell/octeontx2/af/rvu.c offset = mbox->rx_start + msg->next_msgoff; mbox 1483 drivers/net/ethernet/marvell/octeontx2/af/rvu.c otx2_mbox_msg_send(mbox, devid); mbox 1507 drivers/net/ethernet/marvell/octeontx2/af/rvu.c struct otx2_mbox *mbox; mbox 1522 drivers/net/ethernet/marvell/octeontx2/af/rvu.c mbox = &mw->mbox_up; mbox 1523 drivers/net/ethernet/marvell/octeontx2/af/rvu.c mdev = &mbox->dev[devid]; mbox 1525 drivers/net/ethernet/marvell/octeontx2/af/rvu.c rsp_hdr = mdev->mbase + mbox->rx_start; mbox 1531 drivers/net/ethernet/marvell/octeontx2/af/rvu.c offset = mbox->rx_start + ALIGN(sizeof(*rsp_hdr), MBOX_MSG_ALIGN); mbox 1560 drivers/net/ethernet/marvell/octeontx2/af/rvu.c offset = mbox->rx_start + msg->next_msgoff; mbox 1564 drivers/net/ethernet/marvell/octeontx2/af/rvu.c otx2_mbox_reset(mbox, devid); mbox 1642 drivers/net/ethernet/marvell/octeontx2/af/rvu.c err = otx2_mbox_init(&mw->mbox, hwbase, rvu->pdev, reg_base, dir, num); mbox 1677 drivers/net/ethernet/marvell/octeontx2/af/rvu.c if (mw->mbox.hwbase) mbox 1678 drivers/net/ethernet/marvell/octeontx2/af/rvu.c iounmap((void __iomem *)mw->mbox.hwbase); mbox 1680 drivers/net/ethernet/marvell/octeontx2/af/rvu.c otx2_mbox_destroy(&mw->mbox); mbox 1688 drivers/net/ethernet/marvell/octeontx2/af/rvu.c struct otx2_mbox *mbox; mbox 1697 drivers/net/ethernet/marvell/octeontx2/af/rvu.c mbox = &mw->mbox; mbox 1698 drivers/net/ethernet/marvell/octeontx2/af/rvu.c mdev = &mbox->dev[i]; mbox 1699 drivers/net/ethernet/marvell/octeontx2/af/rvu.c hdr = mdev->mbase + mbox->rx_start; mbox 1703 drivers/net/ethernet/marvell/octeontx2/af/rvu.c mbox = &mw->mbox_up; mbox 1704 drivers/net/ethernet/marvell/octeontx2/af/rvu.c mdev = &mbox->dev[i]; mbox 1705 drivers/net/ethernet/marvell/octeontx2/af/rvu.c hdr = mdev->mbase + mbox->rx_start; mbox 215 drivers/net/ethernet/marvell/octeontx2/af/rvu.h struct otx2_mbox mbox; mbox 4349 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static u32 qp_attach_mbox_size(void *mbox) mbox 4354 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c rule_header = (struct _rule_hw *)(mbox + size); mbox 402 drivers/net/ethernet/mellanox/mlx5/core/qp.c static int mbox_alloc(struct mbox_info *mbox, int inlen, int outlen) mbox 404 drivers/net/ethernet/mellanox/mlx5/core/qp.c mbox->inlen = inlen; mbox 405 drivers/net/ethernet/mellanox/mlx5/core/qp.c mbox->outlen = outlen; mbox 406 drivers/net/ethernet/mellanox/mlx5/core/qp.c mbox->in = kzalloc(mbox->inlen, GFP_KERNEL); mbox 407 drivers/net/ethernet/mellanox/mlx5/core/qp.c mbox->out = kzalloc(mbox->outlen, GFP_KERNEL); mbox 408 drivers/net/ethernet/mellanox/mlx5/core/qp.c if (!mbox->in || !mbox->out) { mbox 409 drivers/net/ethernet/mellanox/mlx5/core/qp.c kfree(mbox->in); mbox 410 drivers/net/ethernet/mellanox/mlx5/core/qp.c kfree(mbox->out); mbox 417 drivers/net/ethernet/mellanox/mlx5/core/qp.c static void mbox_free(struct mbox_info *mbox) mbox 419 drivers/net/ethernet/mellanox/mlx5/core/qp.c kfree(mbox->in); mbox 420 drivers/net/ethernet/mellanox/mlx5/core/qp.c kfree(mbox->out); mbox 425 drivers/net/ethernet/mellanox/mlx5/core/qp.c struct mbox_info *mbox, u16 uid) mbox 427 drivers/net/ethernet/mellanox/mlx5/core/qp.c mbox->out = NULL; mbox 428 drivers/net/ethernet/mellanox/mlx5/core/qp.c mbox->in = NULL; mbox 430 drivers/net/ethernet/mellanox/mlx5/core/qp.c #define MBOX_ALLOC(mbox, typ) \ mbox 431 drivers/net/ethernet/mellanox/mlx5/core/qp.c mbox_alloc(mbox, MLX5_ST_SZ_BYTES(typ##_in), MLX5_ST_SZ_BYTES(typ##_out)) mbox 451 drivers/net/ethernet/mellanox/mlx5/core/qp.c if (MBOX_ALLOC(mbox, qp_2rst)) mbox 453 drivers/net/ethernet/mellanox/mlx5/core/qp.c MOD_QP_IN_SET(qp_2rst, mbox->in, opcode, qpn, uid); mbox 456 drivers/net/ethernet/mellanox/mlx5/core/qp.c if (MBOX_ALLOC(mbox, qp_2err)) mbox 458 drivers/net/ethernet/mellanox/mlx5/core/qp.c MOD_QP_IN_SET(qp_2err, mbox->in, opcode, qpn, uid); mbox 463 drivers/net/ethernet/mellanox/mlx5/core/qp.c if (MBOX_ALLOC(mbox, rst2init_qp)) mbox 465 drivers/net/ethernet/mellanox/mlx5/core/qp.c MOD_QP_IN_SET_QPC(rst2init_qp, mbox->in, opcode, qpn, mbox 469 drivers/net/ethernet/mellanox/mlx5/core/qp.c if (MBOX_ALLOC(mbox, init2rtr_qp)) mbox 471 drivers/net/ethernet/mellanox/mlx5/core/qp.c MOD_QP_IN_SET_QPC(init2rtr_qp, mbox->in, opcode, qpn, mbox 475 drivers/net/ethernet/mellanox/mlx5/core/qp.c if (MBOX_ALLOC(mbox, rtr2rts_qp)) mbox 477 drivers/net/ethernet/mellanox/mlx5/core/qp.c MOD_QP_IN_SET_QPC(rtr2rts_qp, mbox->in, opcode, qpn, mbox 481 drivers/net/ethernet/mellanox/mlx5/core/qp.c if (MBOX_ALLOC(mbox, rts2rts_qp)) mbox 483 drivers/net/ethernet/mellanox/mlx5/core/qp.c MOD_QP_IN_SET_QPC(rts2rts_qp, mbox->in, opcode, qpn, mbox 487 drivers/net/ethernet/mellanox/mlx5/core/qp.c if (MBOX_ALLOC(mbox, sqerr2rts_qp)) mbox 489 drivers/net/ethernet/mellanox/mlx5/core/qp.c MOD_QP_IN_SET_QPC(sqerr2rts_qp, mbox->in, opcode, qpn, mbox 493 drivers/net/ethernet/mellanox/mlx5/core/qp.c if (MBOX_ALLOC(mbox, init2init_qp)) mbox 495 drivers/net/ethernet/mellanox/mlx5/core/qp.c MOD_QP_IN_SET_QPC(init2init_qp, mbox->in, opcode, qpn, mbox 510 drivers/net/ethernet/mellanox/mlx5/core/qp.c struct mbox_info mbox; mbox 514 drivers/net/ethernet/mellanox/mlx5/core/qp.c opt_param_mask, qpc, &mbox, qp->uid); mbox 518 drivers/net/ethernet/mellanox/mlx5/core/qp.c err = mlx5_cmd_exec(dev, mbox.in, mbox.inlen, mbox.out, mbox.outlen); mbox 519 drivers/net/ethernet/mellanox/mlx5/core/qp.c mbox_free(&mbox); mbox 16 drivers/net/ethernet/mellanox/mlxsw/cmd.h static inline void mlxsw_cmd_mbox_free(char *mbox) mbox 18 drivers/net/ethernet/mellanox/mlxsw/cmd.h kfree(mbox); mbox 21 drivers/net/ethernet/mellanox/mlxsw/cmd.h static inline void mlxsw_cmd_mbox_zero(char *mbox) mbox 23 drivers/net/ethernet/mellanox/mlxsw/cmd.h memset(mbox, 0, MLXSW_CMD_MBOX_SIZE); mbox 2121 drivers/net/ethernet/mellanox/mlxsw/core.c int mlxsw_core_resources_query(struct mlxsw_core *mlxsw_core, char *mbox, mbox 2132 drivers/net/ethernet/mellanox/mlxsw/core.c mlxsw_cmd_mbox_zero(mbox); mbox 2136 drivers/net/ethernet/mellanox/mlxsw/core.c err = mlxsw_cmd_query_resources(mlxsw_core, mbox, index); mbox 2141 drivers/net/ethernet/mellanox/mlxsw/core.c id = mlxsw_cmd_mbox_query_resource_id_get(mbox, i); mbox 2142 drivers/net/ethernet/mellanox/mlxsw/core.c data = mlxsw_cmd_mbox_query_resource_data_get(mbox, i); mbox 200 drivers/net/ethernet/mellanox/mlxsw/core.h int mlxsw_core_resources_query(struct mlxsw_core *mlxsw_core, char *mbox, mbox 514 drivers/net/ethernet/mellanox/mlxsw/i2c.c char *mbox; mbox 519 drivers/net/ethernet/mellanox/mlxsw/i2c.c mbox = mlxsw_cmd_mbox_alloc(); mbox 520 drivers/net/ethernet/mellanox/mlxsw/i2c.c if (!mbox) mbox 523 drivers/net/ethernet/mellanox/mlxsw/i2c.c err = mlxsw_cmd_query_fw(mlxsw_core, mbox); mbox 528 drivers/net/ethernet/mellanox/mlxsw/i2c.c mlxsw_cmd_mbox_query_fw_fw_rev_major_get(mbox); mbox 530 drivers/net/ethernet/mellanox/mlxsw/i2c.c mlxsw_cmd_mbox_query_fw_fw_rev_minor_get(mbox); mbox 532 drivers/net/ethernet/mellanox/mlxsw/i2c.c mlxsw_cmd_mbox_query_fw_fw_rev_subminor_get(mbox); mbox 534 drivers/net/ethernet/mellanox/mlxsw/i2c.c err = mlxsw_core_resources_query(mlxsw_core, mbox, res); mbox 537 drivers/net/ethernet/mellanox/mlxsw/i2c.c mlxsw_cmd_mbox_free(mbox); mbox 284 drivers/net/ethernet/mellanox/mlxsw/pci.c static int mlxsw_pci_sdq_init(struct mlxsw_pci *mlxsw_pci, char *mbox, mbox 294 drivers/net/ethernet/mellanox/mlxsw/pci.c mlxsw_cmd_mbox_sw2hw_dq_cq_set(mbox, q->num); mbox 295 drivers/net/ethernet/mellanox/mlxsw/pci.c mlxsw_cmd_mbox_sw2hw_dq_sdq_tclass_set(mbox, 3); mbox 296 drivers/net/ethernet/mellanox/mlxsw/pci.c mlxsw_cmd_mbox_sw2hw_dq_log2_dq_sz_set(mbox, 3); /* 8 pages */ mbox 300 drivers/net/ethernet/mellanox/mlxsw/pci.c mlxsw_cmd_mbox_sw2hw_dq_pa_set(mbox, i, mapaddr); mbox 303 drivers/net/ethernet/mellanox/mlxsw/pci.c err = mlxsw_cmd_sw2hw_sdq(mlxsw_pci->core, mbox, q->num); mbox 386 drivers/net/ethernet/mellanox/mlxsw/pci.c static int mlxsw_pci_rdq_init(struct mlxsw_pci *mlxsw_pci, char *mbox, mbox 400 drivers/net/ethernet/mellanox/mlxsw/pci.c mlxsw_cmd_mbox_sw2hw_dq_cq_set(mbox, sdq_count + q->num); mbox 401 drivers/net/ethernet/mellanox/mlxsw/pci.c mlxsw_cmd_mbox_sw2hw_dq_log2_dq_sz_set(mbox, 3); /* 8 pages */ mbox 405 drivers/net/ethernet/mellanox/mlxsw/pci.c mlxsw_cmd_mbox_sw2hw_dq_pa_set(mbox, i, mapaddr); mbox 408 drivers/net/ethernet/mellanox/mlxsw/pci.c err = mlxsw_cmd_sw2hw_rdq(mlxsw_pci->core, mbox, q->num); mbox 461 drivers/net/ethernet/mellanox/mlxsw/pci.c static int mlxsw_pci_cq_init(struct mlxsw_pci *mlxsw_pci, char *mbox, mbox 476 drivers/net/ethernet/mellanox/mlxsw/pci.c mlxsw_cmd_mbox_sw2hw_cq_cqe_ver_set(mbox, mbox 479 drivers/net/ethernet/mellanox/mlxsw/pci.c mlxsw_cmd_mbox_sw2hw_cq_cqe_ver_set(mbox, mbox 482 drivers/net/ethernet/mellanox/mlxsw/pci.c mlxsw_cmd_mbox_sw2hw_cq_c_eqn_set(mbox, MLXSW_PCI_EQ_COMP_NUM); mbox 483 drivers/net/ethernet/mellanox/mlxsw/pci.c mlxsw_cmd_mbox_sw2hw_cq_st_set(mbox, 0); mbox 484 drivers/net/ethernet/mellanox/mlxsw/pci.c mlxsw_cmd_mbox_sw2hw_cq_log_cq_size_set(mbox, ilog2(q->count)); mbox 488 drivers/net/ethernet/mellanox/mlxsw/pci.c mlxsw_cmd_mbox_sw2hw_cq_pa_set(mbox, i, mapaddr); mbox 490 drivers/net/ethernet/mellanox/mlxsw/pci.c err = mlxsw_cmd_sw2hw_cq(mlxsw_pci->core, mbox, q->num); mbox 658 drivers/net/ethernet/mellanox/mlxsw/pci.c static int mlxsw_pci_eq_init(struct mlxsw_pci *mlxsw_pci, char *mbox, mbox 672 drivers/net/ethernet/mellanox/mlxsw/pci.c mlxsw_cmd_mbox_sw2hw_eq_int_msix_set(mbox, 1); /* MSI-X used */ mbox 673 drivers/net/ethernet/mellanox/mlxsw/pci.c mlxsw_cmd_mbox_sw2hw_eq_st_set(mbox, 1); /* armed */ mbox 674 drivers/net/ethernet/mellanox/mlxsw/pci.c mlxsw_cmd_mbox_sw2hw_eq_log_eq_size_set(mbox, ilog2(q->count)); mbox 678 drivers/net/ethernet/mellanox/mlxsw/pci.c mlxsw_cmd_mbox_sw2hw_eq_pa_set(mbox, i, mapaddr); mbox 680 drivers/net/ethernet/mellanox/mlxsw/pci.c err = mlxsw_cmd_sw2hw_eq(mlxsw_pci->core, mbox, q->num); mbox 775 drivers/net/ethernet/mellanox/mlxsw/pci.c int (*init)(struct mlxsw_pci *mlxsw_pci, char *mbox, mbox 821 drivers/net/ethernet/mellanox/mlxsw/pci.c static int mlxsw_pci_queue_init(struct mlxsw_pci *mlxsw_pci, char *mbox, mbox 868 drivers/net/ethernet/mellanox/mlxsw/pci.c mlxsw_cmd_mbox_zero(mbox); mbox 869 drivers/net/ethernet/mellanox/mlxsw/pci.c err = q_ops->init(mlxsw_pci, mbox, q); mbox 894 drivers/net/ethernet/mellanox/mlxsw/pci.c static int mlxsw_pci_queue_group_init(struct mlxsw_pci *mlxsw_pci, char *mbox, mbox 908 drivers/net/ethernet/mellanox/mlxsw/pci.c err = mlxsw_pci_queue_init(mlxsw_pci, mbox, q_ops, mbox 936 drivers/net/ethernet/mellanox/mlxsw/pci.c static int mlxsw_pci_aqs_init(struct mlxsw_pci *mlxsw_pci, char *mbox) mbox 950 drivers/net/ethernet/mellanox/mlxsw/pci.c mlxsw_cmd_mbox_zero(mbox); mbox 951 drivers/net/ethernet/mellanox/mlxsw/pci.c err = mlxsw_cmd_query_aq_cap(mlxsw_pci->core, mbox); mbox 955 drivers/net/ethernet/mellanox/mlxsw/pci.c num_sdqs = mlxsw_cmd_mbox_query_aq_cap_max_num_sdqs_get(mbox); mbox 956 drivers/net/ethernet/mellanox/mlxsw/pci.c sdq_log2sz = mlxsw_cmd_mbox_query_aq_cap_log_max_sdq_sz_get(mbox); mbox 957 drivers/net/ethernet/mellanox/mlxsw/pci.c num_rdqs = mlxsw_cmd_mbox_query_aq_cap_max_num_rdqs_get(mbox); mbox 958 drivers/net/ethernet/mellanox/mlxsw/pci.c rdq_log2sz = mlxsw_cmd_mbox_query_aq_cap_log_max_rdq_sz_get(mbox); mbox 959 drivers/net/ethernet/mellanox/mlxsw/pci.c num_cqs = mlxsw_cmd_mbox_query_aq_cap_max_num_cqs_get(mbox); mbox 960 drivers/net/ethernet/mellanox/mlxsw/pci.c cq_log2sz = mlxsw_cmd_mbox_query_aq_cap_log_max_cq_sz_get(mbox); mbox 961 drivers/net/ethernet/mellanox/mlxsw/pci.c cqv2_log2sz = mlxsw_cmd_mbox_query_aq_cap_log_max_cqv2_sz_get(mbox); mbox 962 drivers/net/ethernet/mellanox/mlxsw/pci.c num_eqs = mlxsw_cmd_mbox_query_aq_cap_max_num_eqs_get(mbox); mbox 963 drivers/net/ethernet/mellanox/mlxsw/pci.c eq_log2sz = mlxsw_cmd_mbox_query_aq_cap_log_max_eq_sz_get(mbox); mbox 983 drivers/net/ethernet/mellanox/mlxsw/pci.c err = mlxsw_pci_queue_group_init(mlxsw_pci, mbox, &mlxsw_pci_eq_ops, mbox 990 drivers/net/ethernet/mellanox/mlxsw/pci.c err = mlxsw_pci_queue_group_init(mlxsw_pci, mbox, &mlxsw_pci_cq_ops, mbox 997 drivers/net/ethernet/mellanox/mlxsw/pci.c err = mlxsw_pci_queue_group_init(mlxsw_pci, mbox, &mlxsw_pci_sdq_ops, mbox 1004 drivers/net/ethernet/mellanox/mlxsw/pci.c err = mlxsw_pci_queue_group_init(mlxsw_pci, mbox, &mlxsw_pci_rdq_ops, mbox 1035 drivers/net/ethernet/mellanox/mlxsw/pci.c char *mbox, int index, mbox 1042 drivers/net/ethernet/mellanox/mlxsw/pci.c mbox, index, swid->type); mbox 1047 drivers/net/ethernet/mellanox/mlxsw/pci.c mbox, index, swid->properties); mbox 1050 drivers/net/ethernet/mellanox/mlxsw/pci.c mlxsw_cmd_mbox_config_profile_swid_config_mask_set(mbox, index, mask); mbox 1074 drivers/net/ethernet/mellanox/mlxsw/pci.c static int mlxsw_pci_config_profile(struct mlxsw_pci *mlxsw_pci, char *mbox, mbox 1081 drivers/net/ethernet/mellanox/mlxsw/pci.c mlxsw_cmd_mbox_zero(mbox); mbox 1085 drivers/net/ethernet/mellanox/mlxsw/pci.c mbox, 1); mbox 1087 drivers/net/ethernet/mellanox/mlxsw/pci.c mbox, profile->max_vepa_channels); mbox 1091 drivers/net/ethernet/mellanox/mlxsw/pci.c mbox, 1); mbox 1093 drivers/net/ethernet/mellanox/mlxsw/pci.c mbox, profile->max_mid); mbox 1097 drivers/net/ethernet/mellanox/mlxsw/pci.c mbox, 1); mbox 1099 drivers/net/ethernet/mellanox/mlxsw/pci.c mbox, profile->max_pgt); mbox 1103 drivers/net/ethernet/mellanox/mlxsw/pci.c mbox, 1); mbox 1105 drivers/net/ethernet/mellanox/mlxsw/pci.c mbox, profile->max_system_port); mbox 1109 drivers/net/ethernet/mellanox/mlxsw/pci.c mbox, 1); mbox 1111 drivers/net/ethernet/mellanox/mlxsw/pci.c mbox, profile->max_vlan_groups); mbox 1115 drivers/net/ethernet/mellanox/mlxsw/pci.c mbox, 1); mbox 1117 drivers/net/ethernet/mellanox/mlxsw/pci.c mbox, profile->max_regions); mbox 1121 drivers/net/ethernet/mellanox/mlxsw/pci.c mbox, 1); mbox 1123 drivers/net/ethernet/mellanox/mlxsw/pci.c mbox, profile->max_flood_tables); mbox 1125 drivers/net/ethernet/mellanox/mlxsw/pci.c mbox, profile->max_vid_flood_tables); mbox 1127 drivers/net/ethernet/mellanox/mlxsw/pci.c mbox, profile->max_fid_offset_flood_tables); mbox 1129 drivers/net/ethernet/mellanox/mlxsw/pci.c mbox, profile->fid_offset_flood_table_size); mbox 1131 drivers/net/ethernet/mellanox/mlxsw/pci.c mbox, profile->max_fid_flood_tables); mbox 1133 drivers/net/ethernet/mellanox/mlxsw/pci.c mbox, profile->fid_flood_table_size); mbox 1137 drivers/net/ethernet/mellanox/mlxsw/pci.c mbox, 1); mbox 1139 drivers/net/ethernet/mellanox/mlxsw/pci.c mbox, profile->flood_mode); mbox 1143 drivers/net/ethernet/mellanox/mlxsw/pci.c mbox, 1); mbox 1145 drivers/net/ethernet/mellanox/mlxsw/pci.c mbox, profile->max_ib_mc); mbox 1149 drivers/net/ethernet/mellanox/mlxsw/pci.c mbox, 1); mbox 1151 drivers/net/ethernet/mellanox/mlxsw/pci.c mbox, profile->max_pkey); mbox 1155 drivers/net/ethernet/mellanox/mlxsw/pci.c mbox, 1); mbox 1157 drivers/net/ethernet/mellanox/mlxsw/pci.c mbox, profile->ar_sec); mbox 1161 drivers/net/ethernet/mellanox/mlxsw/pci.c mbox, 1); mbox 1163 drivers/net/ethernet/mellanox/mlxsw/pci.c mbox, profile->adaptive_routing_group_cap); mbox 1170 drivers/net/ethernet/mellanox/mlxsw/pci.c mlxsw_cmd_mbox_config_profile_set_kvd_linear_size_set(mbox, 1); mbox 1171 drivers/net/ethernet/mellanox/mlxsw/pci.c mlxsw_cmd_mbox_config_profile_kvd_linear_size_set(mbox, mbox 1173 drivers/net/ethernet/mellanox/mlxsw/pci.c mlxsw_cmd_mbox_config_profile_set_kvd_hash_single_size_set(mbox, mbox 1175 drivers/net/ethernet/mellanox/mlxsw/pci.c mlxsw_cmd_mbox_config_profile_kvd_hash_single_size_set(mbox, mbox 1178 drivers/net/ethernet/mellanox/mlxsw/pci.c mbox, 1); mbox 1179 drivers/net/ethernet/mellanox/mlxsw/pci.c mlxsw_cmd_mbox_config_profile_kvd_hash_double_size_set(mbox, mbox 1184 drivers/net/ethernet/mellanox/mlxsw/pci.c mlxsw_pci_config_profile_swid_config(mlxsw_pci, mbox, i, mbox 1188 drivers/net/ethernet/mellanox/mlxsw/pci.c mlxsw_cmd_mbox_config_profile_set_cqe_version_set(mbox, 1); mbox 1189 drivers/net/ethernet/mellanox/mlxsw/pci.c mlxsw_cmd_mbox_config_profile_cqe_version_set(mbox, 1); mbox 1192 drivers/net/ethernet/mellanox/mlxsw/pci.c return mlxsw_cmd_config_profile_set(mlxsw_pci->core, mbox); mbox 1195 drivers/net/ethernet/mellanox/mlxsw/pci.c static int mlxsw_pci_boardinfo(struct mlxsw_pci *mlxsw_pci, char *mbox) mbox 1200 drivers/net/ethernet/mellanox/mlxsw/pci.c mlxsw_cmd_mbox_zero(mbox); mbox 1201 drivers/net/ethernet/mellanox/mlxsw/pci.c err = mlxsw_cmd_boardinfo(mlxsw_pci->core, mbox); mbox 1204 drivers/net/ethernet/mellanox/mlxsw/pci.c mlxsw_cmd_mbox_boardinfo_vsd_memcpy_from(mbox, bus_info->vsd); mbox 1205 drivers/net/ethernet/mellanox/mlxsw/pci.c mlxsw_cmd_mbox_boardinfo_psid_memcpy_from(mbox, bus_info->psid); mbox 1209 drivers/net/ethernet/mellanox/mlxsw/pci.c static int mlxsw_pci_fw_area_init(struct mlxsw_pci *mlxsw_pci, char *mbox, mbox 1223 drivers/net/ethernet/mellanox/mlxsw/pci.c mlxsw_cmd_mbox_zero(mbox); mbox 1235 drivers/net/ethernet/mellanox/mlxsw/pci.c mlxsw_cmd_mbox_map_fa_pa_set(mbox, nent, mem_item->mapaddr); mbox 1236 drivers/net/ethernet/mellanox/mlxsw/pci.c mlxsw_cmd_mbox_map_fa_log2size_set(mbox, nent, 0); /* 1 page */ mbox 1238 drivers/net/ethernet/mellanox/mlxsw/pci.c err = mlxsw_cmd_map_fa(mlxsw_pci->core, mbox, nent); mbox 1242 drivers/net/ethernet/mellanox/mlxsw/pci.c mlxsw_cmd_mbox_zero(mbox); mbox 1247 drivers/net/ethernet/mellanox/mlxsw/pci.c err = mlxsw_cmd_map_fa(mlxsw_pci->core, mbox, nent); mbox 1296 drivers/net/ethernet/mellanox/mlxsw/pci.c struct mlxsw_pci_mem_item *mbox) mbox 1301 drivers/net/ethernet/mellanox/mlxsw/pci.c mbox->size = MLXSW_CMD_MBOX_SIZE; mbox 1302 drivers/net/ethernet/mellanox/mlxsw/pci.c mbox->buf = pci_alloc_consistent(pdev, MLXSW_CMD_MBOX_SIZE, mbox 1303 drivers/net/ethernet/mellanox/mlxsw/pci.c &mbox->mapaddr); mbox 1304 drivers/net/ethernet/mellanox/mlxsw/pci.c if (!mbox->buf) { mbox 1313 drivers/net/ethernet/mellanox/mlxsw/pci.c struct mlxsw_pci_mem_item *mbox) mbox 1317 drivers/net/ethernet/mellanox/mlxsw/pci.c pci_free_consistent(pdev, MLXSW_CMD_MBOX_SIZE, mbox->buf, mbox 1318 drivers/net/ethernet/mellanox/mlxsw/pci.c mbox->mapaddr); mbox 1400 drivers/net/ethernet/mellanox/mlxsw/pci.c char *mbox; mbox 1409 drivers/net/ethernet/mellanox/mlxsw/pci.c mbox = mlxsw_cmd_mbox_alloc(); mbox 1410 drivers/net/ethernet/mellanox/mlxsw/pci.c if (!mbox) mbox 1431 drivers/net/ethernet/mellanox/mlxsw/pci.c err = mlxsw_cmd_query_fw(mlxsw_core, mbox); mbox 1436 drivers/net/ethernet/mellanox/mlxsw/pci.c mlxsw_cmd_mbox_query_fw_fw_rev_major_get(mbox); mbox 1438 drivers/net/ethernet/mellanox/mlxsw/pci.c mlxsw_cmd_mbox_query_fw_fw_rev_minor_get(mbox); mbox 1440 drivers/net/ethernet/mellanox/mlxsw/pci.c mlxsw_cmd_mbox_query_fw_fw_rev_subminor_get(mbox); mbox 1442 drivers/net/ethernet/mellanox/mlxsw/pci.c if (mlxsw_cmd_mbox_query_fw_cmd_interface_rev_get(mbox) != 1) { mbox 1447 drivers/net/ethernet/mellanox/mlxsw/pci.c if (mlxsw_cmd_mbox_query_fw_doorbell_page_bar_get(mbox) != 0) { mbox 1454 drivers/net/ethernet/mellanox/mlxsw/pci.c mlxsw_cmd_mbox_query_fw_doorbell_page_offset_get(mbox); mbox 1456 drivers/net/ethernet/mellanox/mlxsw/pci.c if (mlxsw_cmd_mbox_query_fw_fr_rn_clk_bar_get(mbox) != 0) { mbox 1463 drivers/net/ethernet/mellanox/mlxsw/pci.c mlxsw_cmd_mbox_query_fw_free_running_clock_offset_get(mbox); mbox 1465 drivers/net/ethernet/mellanox/mlxsw/pci.c num_pages = mlxsw_cmd_mbox_query_fw_fw_pages_get(mbox); mbox 1466 drivers/net/ethernet/mellanox/mlxsw/pci.c err = mlxsw_pci_fw_area_init(mlxsw_pci, mbox, num_pages); mbox 1470 drivers/net/ethernet/mellanox/mlxsw/pci.c err = mlxsw_pci_boardinfo(mlxsw_pci, mbox); mbox 1474 drivers/net/ethernet/mellanox/mlxsw/pci.c err = mlxsw_core_resources_query(mlxsw_core, mbox, res); mbox 1493 drivers/net/ethernet/mellanox/mlxsw/pci.c err = mlxsw_pci_config_profile(mlxsw_pci, mbox, profile, res); mbox 1497 drivers/net/ethernet/mellanox/mlxsw/pci.c err = mlxsw_pci_aqs_init(mlxsw_pci, mbox); mbox 1531 drivers/net/ethernet/mellanox/mlxsw/pci.c mlxsw_cmd_mbox_free(mbox); mbox 94 drivers/net/ethernet/netronome/nfp/nfp_main.c if (!pf->mbox) mbox 97 drivers/net/ethernet/netronome/nfp/nfp_main.c max_data_sz = nfp_rtsym_size(pf->mbox) - NFP_MBOX_SYM_MIN_SIZE; mbox 100 drivers/net/ethernet/netronome/nfp/nfp_main.c err = nfp_rtsym_readl(pf->cpp, pf->mbox, NFP_MBOX_CMD, &val); mbox 108 drivers/net/ethernet/netronome/nfp/nfp_main.c n = nfp_rtsym_write(pf->cpp, pf->mbox, NFP_MBOX_DATA, in_data, mbox 113 drivers/net/ethernet/netronome/nfp/nfp_main.c err = nfp_rtsym_writeq(pf->cpp, pf->mbox, NFP_MBOX_DATA_LEN, in_length); mbox 118 drivers/net/ethernet/netronome/nfp/nfp_main.c err = nfp_rtsym_readl(pf->cpp, pf->mbox, NFP_MBOX_DATA_LEN, &val); mbox 123 drivers/net/ethernet/netronome/nfp/nfp_main.c err = nfp_rtsym_writeq(pf->cpp, pf->mbox, NFP_MBOX_CMD, cmd); mbox 130 drivers/net/ethernet/netronome/nfp/nfp_main.c err = nfp_rtsym_readl(pf->cpp, pf->mbox, NFP_MBOX_CMD, &val); mbox 143 drivers/net/ethernet/netronome/nfp/nfp_main.c err = nfp_rtsym_readl(pf->cpp, pf->mbox, NFP_MBOX_DATA_LEN, &val); mbox 148 drivers/net/ethernet/netronome/nfp/nfp_main.c n = nfp_rtsym_read(pf->cpp, pf->mbox, NFP_MBOX_DATA, mbox 154 drivers/net/ethernet/netronome/nfp/nfp_main.c err = nfp_rtsym_readl(pf->cpp, pf->mbox, NFP_MBOX_RET, &val); mbox 672 drivers/net/ethernet/netronome/nfp/nfp_main.c pf->mbox = nfp_rtsym_lookup(pf->rtbl, pf_symbol); mbox 673 drivers/net/ethernet/netronome/nfp/nfp_main.c if (pf->mbox && nfp_rtsym_size(pf->mbox) < NFP_MBOX_SYM_MIN_SIZE) { mbox 675 drivers/net/ethernet/netronome/nfp/nfp_main.c nfp_rtsym_size(pf->mbox), NFP_MBOX_SYM_MIN_SIZE); mbox 106 drivers/net/ethernet/netronome/nfp/nfp_main.h const struct nfp_rtsym *mbox; mbox 332 drivers/net/ethernet/netronome/nfp/nfp_net_common.c u32 mbox = nn->tlv_caps.mbox_off; mbox 335 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nn_writeq(nn, mbox + NFP_NET_CFG_MBOX_SIMPLE_CMD, mbox_cmd); mbox 343 drivers/net/ethernet/netronome/nfp/nfp_net_common.c return -nn_readl(nn, mbox + NFP_NET_CFG_MBOX_SIMPLE_RET); mbox 348 drivers/net/ethernet/netronome/nfp/nfp_net_common.c u32 mbox = nn->tlv_caps.mbox_off; mbox 350 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nn_writeq(nn, mbox + NFP_NET_CFG_MBOX_SIMPLE_CMD, mbox_cmd); mbox 357 drivers/net/ethernet/netronome/nfp/nfp_net_common.c u32 mbox = nn->tlv_caps.mbox_off; mbox 361 drivers/net/ethernet/netronome/nfp/nfp_net_common.c return -nn_readl(nn, mbox + NFP_NET_CFG_MBOX_SIMPLE_RET); mbox 86 drivers/net/ethernet/netronome/nfp/nfp_shared_buf.c if (!pf->mbox) mbox 3682 drivers/net/ethernet/sun/niu.c struct rxdma_mailbox *mbox = rp->mbox; mbox 3689 drivers/net/ethernet/sun/niu.c stat = le64_to_cpup(&mbox->rx_dma_ctl_stat); mbox 3690 drivers/net/ethernet/sun/niu.c qlen = (le64_to_cpup(&mbox->rcrstat_a) & RCRSTAT_A_QLEN); mbox 3692 drivers/net/ethernet/sun/niu.c mbox->rx_dma_ctl_stat = 0; mbox 3693 drivers/net/ethernet/sun/niu.c mbox->rcrstat_a = 0; mbox 4128 drivers/net/ethernet/sun/niu.c struct rxdma_mailbox *mbox = rp->mbox; mbox 4129 drivers/net/ethernet/sun/niu.c u64 stat_write, stat = le64_to_cpup(&mbox->rx_dma_ctl_stat); mbox 4240 drivers/net/ethernet/sun/niu.c if (rp->mbox) { mbox 4243 drivers/net/ethernet/sun/niu.c rp->mbox, rp->mbox_dma); mbox 4244 drivers/net/ethernet/sun/niu.c rp->mbox = NULL; mbox 4270 drivers/net/ethernet/sun/niu.c if (rp->mbox) { mbox 4273 drivers/net/ethernet/sun/niu.c rp->mbox, rp->mbox_dma); mbox 4274 drivers/net/ethernet/sun/niu.c rp->mbox = NULL; mbox 4332 drivers/net/ethernet/sun/niu.c rp->mbox = np->ops->alloc_coherent(np->device, mbox 4335 drivers/net/ethernet/sun/niu.c if (!rp->mbox) mbox 4337 drivers/net/ethernet/sun/niu.c if ((unsigned long)rp->mbox & (64UL - 1)) { mbox 4339 drivers/net/ethernet/sun/niu.c rp->mbox); mbox 4390 drivers/net/ethernet/sun/niu.c rp->mbox = np->ops->alloc_coherent(np->device, mbox 4393 drivers/net/ethernet/sun/niu.c if (!rp->mbox) mbox 4395 drivers/net/ethernet/sun/niu.c if ((unsigned long)rp->mbox & (64UL - 1)) { mbox 4397 drivers/net/ethernet/sun/niu.c rp->mbox); mbox 2867 drivers/net/ethernet/sun/niu.h struct txdma_mailbox *mbox; mbox 2921 drivers/net/ethernet/sun/niu.h struct rxdma_mailbox *mbox; mbox 265 drivers/net/rionet.c static void rionet_inb_msg_event(struct rio_mport *mport, void *dev_id, int mbox, int slot) mbox 273 drivers/net/rionet.c DRV_NAME, mbox, slot); mbox 281 drivers/net/rionet.c static void rionet_outb_msg_event(struct rio_mport *mport, void *dev_id, int mbox, int slot) mbox 291 drivers/net/rionet.c DRV_NAME, mbox, slot); mbox 383 drivers/net/wireless/ath/wil6210/debugfs.c DEFINE_SHOW_ATTRIBUTE(mbox); mbox 16 drivers/net/wireless/ti/wl1251/event.c struct event_mailbox *mbox) mbox 21 drivers/net/wireless/ti/wl1251/event.c mbox->scheduled_scan_status, mbox 22 drivers/net/wireless/ti/wl1251/event.c mbox->scheduled_scan_channels); mbox 41 drivers/net/wireless/ti/wl1251/event.c struct event_mailbox *mbox) mbox 45 drivers/net/wireless/ti/wl1251/event.c wl1251_debug(DEBUG_EVENT, "ps status: %x", mbox->ps_status); mbox 47 drivers/net/wireless/ti/wl1251/event.c switch (mbox->ps_status) { mbox 76 drivers/net/wireless/ti/wl1251/event.c static void wl1251_event_mbox_dump(struct event_mailbox *mbox) mbox 79 drivers/net/wireless/ti/wl1251/event.c wl1251_debug(DEBUG_EVENT, "\tvector: 0x%x", mbox->events_vector); mbox 80 drivers/net/wireless/ti/wl1251/event.c wl1251_debug(DEBUG_EVENT, "\tmask: 0x%x", mbox->events_mask); mbox 83 drivers/net/wireless/ti/wl1251/event.c static int wl1251_event_process(struct wl1251 *wl, struct event_mailbox *mbox) mbox 88 drivers/net/wireless/ti/wl1251/event.c wl1251_event_mbox_dump(mbox); mbox 90 drivers/net/wireless/ti/wl1251/event.c vector = mbox->events_vector & ~(mbox->events_mask); mbox 94 drivers/net/wireless/ti/wl1251/event.c ret = wl1251_event_scan_complete(wl, mbox); mbox 112 drivers/net/wireless/ti/wl1251/event.c ret = wl1251_event_ps_report(wl, mbox); mbox 205 drivers/net/wireless/ti/wl1251/event.c struct event_mailbox mbox; mbox 214 drivers/net/wireless/ti/wl1251/event.c wl1251_mem_read(wl, wl->mbox_ptr[mbox_num], &mbox, mbox 218 drivers/net/wireless/ti/wl1251/event.c ret = wl1251_event_process(wl, &mbox); mbox 110 drivers/net/wireless/ti/wl1251/event.h int wl1251_event_handle(struct wl1251 *wl, u8 mbox); mbox 36 drivers/net/wireless/ti/wl12xx/event.c struct wl12xx_event_mailbox *mbox = wl->mbox; mbox 40 drivers/net/wireless/ti/wl12xx/event.c vector = le32_to_cpu(mbox->events_vector); mbox 41 drivers/net/wireless/ti/wl12xx/event.c vector &= ~(le32_to_cpu(mbox->events_mask)); mbox 47 drivers/net/wireless/ti/wl12xx/event.c mbox->scheduled_scan_status); mbox 56 drivers/net/wireless/ti/wl12xx/event.c mbox->scheduled_scan_status); mbox 63 drivers/net/wireless/ti/wl12xx/event.c mbox->scheduled_scan_status); mbox 66 drivers/net/wireless/ti/wl12xx/event.c mbox->soft_gemini_sense_info); mbox 72 drivers/net/wireless/ti/wl12xx/event.c wlcore_event_rssi_trigger(wl, mbox->rssi_snr_trigger_metric); mbox 76 drivers/net/wireless/ti/wl12xx/event.c BIT(mbox->role_id), mbox 77 drivers/net/wireless/ti/wl12xx/event.c mbox->rx_ba_allowed); mbox 81 drivers/net/wireless/ti/wl12xx/event.c mbox->channel_switch_status); mbox 92 drivers/net/wireless/ti/wl12xx/event.c le16_to_cpu(mbox->sta_tx_retry_exceeded)); mbox 96 drivers/net/wireless/ti/wl12xx/event.c le16_to_cpu(mbox->sta_aging_status)); mbox 118 drivers/net/wireless/ti/wl18xx/event.c struct wl18xx_event_mailbox *mbox = wl->mbox; mbox 121 drivers/net/wireless/ti/wl18xx/event.c vector = le32_to_cpu(mbox->events_vector); mbox 126 drivers/net/wireless/ti/wl18xx/event.c mbox->number_of_scan_results); mbox 134 drivers/net/wireless/ti/wl18xx/event.c mbox->time_sync_tsf_high_msb, mbox 135 drivers/net/wireless/ti/wl18xx/event.c mbox->time_sync_tsf_high_lsb, mbox 136 drivers/net/wireless/ti/wl18xx/event.c mbox->time_sync_tsf_low_msb, mbox 137 drivers/net/wireless/ti/wl18xx/event.c mbox->time_sync_tsf_low_lsb); mbox 141 drivers/net/wireless/ti/wl18xx/event.c mbox->radar_channel, mbox 142 drivers/net/wireless/ti/wl18xx/event.c wl18xx_radar_type_decode(mbox->radar_type)); mbox 151 drivers/net/wireless/ti/wl18xx/event.c mbox->number_of_sched_scan_results); mbox 160 drivers/net/wireless/ti/wl18xx/event.c wlcore_event_rssi_trigger(wl, mbox->rssi_snr_trigger_metric); mbox 164 drivers/net/wireless/ti/wl18xx/event.c le16_to_cpu(mbox->rx_ba_role_id_bitmap), mbox 165 drivers/net/wireless/ti/wl18xx/event.c le16_to_cpu(mbox->rx_ba_allowed_bitmap)); mbox 169 drivers/net/wireless/ti/wl18xx/event.c le16_to_cpu(mbox->bss_loss_bitmap)); mbox 173 drivers/net/wireless/ti/wl18xx/event.c le16_to_cpu(mbox->channel_switch_role_id_bitmap), mbox 185 drivers/net/wireless/ti/wl18xx/event.c le16_to_cpu(mbox->tx_retry_exceeded_bitmap)); mbox 189 drivers/net/wireless/ti/wl18xx/event.c le16_to_cpu(mbox->inactive_sta_bitmap)); mbox 195 drivers/net/wireless/ti/wl18xx/event.c wlcore_smart_config_sync_event(wl, mbox->sc_sync_channel, mbox 196 drivers/net/wireless/ti/wl18xx/event.c mbox->sc_sync_band); mbox 200 drivers/net/wireless/ti/wl18xx/event.c mbox->sc_ssid_len, mbox 201 drivers/net/wireless/ti/wl18xx/event.c mbox->sc_ssid, mbox 202 drivers/net/wireless/ti/wl18xx/event.c mbox->sc_pwd_len, mbox 203 drivers/net/wireless/ti/wl18xx/event.c mbox->sc_pwd); mbox 211 drivers/net/wireless/ti/wl18xx/event.c u8 link_id = mbox->rx_ba_link_id; mbox 212 drivers/net/wireless/ti/wl18xx/event.c u8 win_size = mbox->rx_ba_win_size; mbox 363 drivers/net/wireless/ti/wlcore/event.c ret = wlcore_read(wl, wl->mbox_ptr[mbox_num], wl->mbox, mbox 64 drivers/net/wireless/ti/wlcore/event.h int wl1271_event_handle(struct wl1271 *wl, u8 mbox); mbox 6459 drivers/net/wireless/ti/wlcore/main.c wl->mbox = kmalloc(wl->mbox_size, GFP_KERNEL | GFP_DMA); mbox 6460 drivers/net/wireless/ti/wlcore/main.c if (!wl->mbox) { mbox 6474 drivers/net/wireless/ti/wlcore/main.c kfree(wl->mbox); mbox 6511 drivers/net/wireless/ti/wlcore/main.c kfree(wl->mbox); mbox 314 drivers/net/wireless/ti/wlcore/wlcore.h void *mbox; mbox 614 drivers/rapidio/devices/tsi721.c int mbox; mbox 616 drivers/rapidio/devices/tsi721.c mbox = (irq - priv->msix[TSI721_VECT_OMB0_DONE].vector) % RIO_MAX_MBOX; mbox 617 drivers/rapidio/devices/tsi721.c tsi721_omsg_handler(priv, mbox); mbox 631 drivers/rapidio/devices/tsi721.c int mbox; mbox 633 drivers/rapidio/devices/tsi721.c mbox = (irq - priv->msix[TSI721_VECT_IMB0_RCV].vector) % RIO_MAX_MBOX; mbox 634 drivers/rapidio/devices/tsi721.c tsi721_imsg_handler(priv, mbox + 4); mbox 1667 drivers/rapidio/devices/tsi721.c tsi721_add_outb_message(struct rio_mport *mport, struct rio_dev *rdev, int mbox, mbox 1675 drivers/rapidio/devices/tsi721.c if (!priv->omsg_init[mbox] || mbox 1679 drivers/rapidio/devices/tsi721.c spin_lock_irqsave(&priv->omsg_ring[mbox].lock, flags); mbox 1681 drivers/rapidio/devices/tsi721.c tx_slot = priv->omsg_ring[mbox].tx_slot; mbox 1684 drivers/rapidio/devices/tsi721.c memcpy(priv->omsg_ring[mbox].omq_base[tx_slot], buffer, len); mbox 1690 drivers/rapidio/devices/tsi721.c desc = priv->omsg_ring[mbox].omd_base; mbox 1698 drivers/rapidio/devices/tsi721.c cpu_to_le32((mport->sys_size << 26) | (mbox << 22) | mbox 1701 drivers/rapidio/devices/tsi721.c cpu_to_le32((u64)priv->omsg_ring[mbox].omq_phys[tx_slot] & mbox 1704 drivers/rapidio/devices/tsi721.c cpu_to_le32((u64)priv->omsg_ring[mbox].omq_phys[tx_slot] >> 32); mbox 1706 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].wr_count++; mbox 1709 drivers/rapidio/devices/tsi721.c if (++priv->omsg_ring[mbox].tx_slot == priv->omsg_ring[mbox].size) { mbox 1710 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].tx_slot = 0; mbox 1712 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].wr_count++; mbox 1718 drivers/rapidio/devices/tsi721.c iowrite32(priv->omsg_ring[mbox].wr_count, mbox 1719 drivers/rapidio/devices/tsi721.c priv->regs + TSI721_OBDMAC_DWRCNT(mbox)); mbox 1720 drivers/rapidio/devices/tsi721.c ioread32(priv->regs + TSI721_OBDMAC_DWRCNT(mbox)); mbox 1722 drivers/rapidio/devices/tsi721.c spin_unlock_irqrestore(&priv->omsg_ring[mbox].lock, flags); mbox 1874 drivers/rapidio/devices/tsi721.c int mbox, int entries) mbox 1882 drivers/rapidio/devices/tsi721.c (!is_power_of_2(entries)) || mbox >= RIO_MAX_MBOX) { mbox 1887 drivers/rapidio/devices/tsi721.c if ((mbox_sel & (1 << mbox)) == 0) { mbox 1892 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].dev_id = dev_id; mbox 1893 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].size = entries; mbox 1894 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].sts_rdptr = 0; mbox 1895 drivers/rapidio/devices/tsi721.c spin_lock_init(&priv->omsg_ring[mbox].lock); mbox 1900 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].omq_base[i] = mbox 1903 drivers/rapidio/devices/tsi721.c &priv->omsg_ring[mbox].omq_phys[i], mbox 1905 drivers/rapidio/devices/tsi721.c if (priv->omsg_ring[mbox].omq_base[i] == NULL) { mbox 1907 drivers/rapidio/devices/tsi721.c "ENOMEM for OB_MSG_%d data buffer", mbox); mbox 1914 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].omd_base = dma_alloc_coherent( mbox 1917 drivers/rapidio/devices/tsi721.c &priv->omsg_ring[mbox].omd_phys, GFP_KERNEL); mbox 1918 drivers/rapidio/devices/tsi721.c if (priv->omsg_ring[mbox].omd_base == NULL) { mbox 1920 drivers/rapidio/devices/tsi721.c "ENOMEM for OB_MSG_%d descriptor memory", mbox); mbox 1925 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].tx_slot = 0; mbox 1928 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].sts_size = roundup_pow_of_two(entries + 1); mbox 1929 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].sts_base = dma_alloc_coherent(&priv->pdev->dev, mbox 1930 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].sts_size * sizeof(struct tsi721_dma_sts), mbox 1931 drivers/rapidio/devices/tsi721.c &priv->omsg_ring[mbox].sts_phys, mbox 1933 drivers/rapidio/devices/tsi721.c if (priv->omsg_ring[mbox].sts_base == NULL) { mbox 1935 drivers/rapidio/devices/tsi721.c "ENOMEM for OB_MSG_%d status FIFO", mbox); mbox 1945 drivers/rapidio/devices/tsi721.c iowrite32(((u64)priv->omsg_ring[mbox].omd_phys >> 32), mbox 1946 drivers/rapidio/devices/tsi721.c priv->regs + TSI721_OBDMAC_DPTRH(mbox)); mbox 1947 drivers/rapidio/devices/tsi721.c iowrite32(((u64)priv->omsg_ring[mbox].omd_phys & mbox 1949 drivers/rapidio/devices/tsi721.c priv->regs + TSI721_OBDMAC_DPTRL(mbox)); mbox 1952 drivers/rapidio/devices/tsi721.c iowrite32(((u64)priv->omsg_ring[mbox].sts_phys >> 32), mbox 1953 drivers/rapidio/devices/tsi721.c priv->regs + TSI721_OBDMAC_DSBH(mbox)); mbox 1954 drivers/rapidio/devices/tsi721.c iowrite32(((u64)priv->omsg_ring[mbox].sts_phys & mbox 1956 drivers/rapidio/devices/tsi721.c priv->regs + TSI721_OBDMAC_DSBL(mbox)); mbox 1957 drivers/rapidio/devices/tsi721.c iowrite32(TSI721_DMAC_DSSZ_SIZE(priv->omsg_ring[mbox].sts_size), mbox 1958 drivers/rapidio/devices/tsi721.c priv->regs + (u32)TSI721_OBDMAC_DSSZ(mbox)); mbox 1964 drivers/rapidio/devices/tsi721.c int idx = TSI721_VECT_OMB0_DONE + mbox; mbox 1973 drivers/rapidio/devices/tsi721.c mbox); mbox 1977 drivers/rapidio/devices/tsi721.c idx = TSI721_VECT_OMB0_INT + mbox; mbox 1983 drivers/rapidio/devices/tsi721.c "Unable to get MSI-X IRQ for MBOX%d-INT", mbox); mbox 1984 drivers/rapidio/devices/tsi721.c idx = TSI721_VECT_OMB0_DONE + mbox; mbox 1991 drivers/rapidio/devices/tsi721.c tsi721_omsg_interrupt_enable(priv, mbox, TSI721_OBDMAC_INT_ALL); mbox 1994 drivers/rapidio/devices/tsi721.c bd_ptr = priv->omsg_ring[mbox].omd_base; mbox 1998 drivers/rapidio/devices/tsi721.c cpu_to_le32((u64)priv->omsg_ring[mbox].omd_phys & mbox 2001 drivers/rapidio/devices/tsi721.c cpu_to_le32((u64)priv->omsg_ring[mbox].omd_phys >> 32); mbox 2002 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].wr_count = 0; mbox 2007 drivers/rapidio/devices/tsi721.c priv->regs + TSI721_OBDMAC_CTL(mbox)); mbox 2008 drivers/rapidio/devices/tsi721.c ioread32(priv->regs + TSI721_OBDMAC_DWRCNT(mbox)); mbox 2011 drivers/rapidio/devices/tsi721.c priv->omsg_init[mbox] = 1; mbox 2018 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].sts_size * sizeof(struct tsi721_dma_sts), mbox 2019 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].sts_base, mbox 2020 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].sts_phys); mbox 2022 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].sts_base = NULL; mbox 2028 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].omd_base, mbox 2029 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].omd_phys); mbox 2031 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].omd_base = NULL; mbox 2034 drivers/rapidio/devices/tsi721.c for (i = 0; i < priv->omsg_ring[mbox].size; i++) { mbox 2035 drivers/rapidio/devices/tsi721.c if (priv->omsg_ring[mbox].omq_base[i]) { mbox 2038 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].omq_base[i], mbox 2039 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].omq_phys[i]); mbox 2041 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].omq_base[i] = NULL; mbox 2054 drivers/rapidio/devices/tsi721.c static void tsi721_close_outb_mbox(struct rio_mport *mport, int mbox) mbox 2059 drivers/rapidio/devices/tsi721.c if (!priv->omsg_init[mbox]) mbox 2061 drivers/rapidio/devices/tsi721.c priv->omsg_init[mbox] = 0; mbox 2065 drivers/rapidio/devices/tsi721.c tsi721_omsg_interrupt_disable(priv, mbox, TSI721_OBDMAC_INT_ALL); mbox 2069 drivers/rapidio/devices/tsi721.c free_irq(priv->msix[TSI721_VECT_OMB0_DONE + mbox].vector, mbox 2071 drivers/rapidio/devices/tsi721.c free_irq(priv->msix[TSI721_VECT_OMB0_INT + mbox].vector, mbox 2078 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].sts_size * sizeof(struct tsi721_dma_sts), mbox 2079 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].sts_base, mbox 2080 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].sts_phys); mbox 2082 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].sts_base = NULL; mbox 2086 drivers/rapidio/devices/tsi721.c (priv->omsg_ring[mbox].size + 1) * mbox 2088 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].omd_base, mbox 2089 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].omd_phys); mbox 2091 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].omd_base = NULL; mbox 2094 drivers/rapidio/devices/tsi721.c for (i = 0; i < priv->omsg_ring[mbox].size; i++) { mbox 2095 drivers/rapidio/devices/tsi721.c if (priv->omsg_ring[mbox].omq_base[i]) { mbox 2098 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].omq_base[i], mbox 2099 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].omq_phys[i]); mbox 2101 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].omq_base[i] = NULL; mbox 2115 drivers/rapidio/devices/tsi721.c u32 mbox = ch - 4; mbox 2119 drivers/rapidio/devices/tsi721.c spin_lock(&priv->imsg_ring[mbox].lock); mbox 2124 drivers/rapidio/devices/tsi721.c tsi_info(&priv->pdev->dev, "IB MBOX%d SRIO timeout", mbox); mbox 2127 drivers/rapidio/devices/tsi721.c tsi_info(&priv->pdev->dev, "IB MBOX%d PCIe error", mbox); mbox 2130 drivers/rapidio/devices/tsi721.c tsi_info(&priv->pdev->dev, "IB MBOX%d IB free queue low", mbox); mbox 2137 drivers/rapidio/devices/tsi721.c mport->inb_msg[mbox].mcback) mbox 2138 drivers/rapidio/devices/tsi721.c mport->inb_msg[mbox].mcback(mport, mbox 2139 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].dev_id, mbox, -1); mbox 2150 drivers/rapidio/devices/tsi721.c spin_unlock(&priv->imsg_ring[mbox].lock); mbox 2161 drivers/rapidio/devices/tsi721.c int mbox, int entries) mbox 2164 drivers/rapidio/devices/tsi721.c int ch = mbox + 4; mbox 2171 drivers/rapidio/devices/tsi721.c (!is_power_of_2(entries)) || mbox >= RIO_MAX_MBOX) { mbox 2176 drivers/rapidio/devices/tsi721.c if ((mbox_sel & (1 << mbox)) == 0) { mbox 2182 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].dev_id = dev_id; mbox 2183 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].size = entries; mbox 2184 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].rx_slot = 0; mbox 2185 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].desc_rdptr = 0; mbox 2186 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].fq_wrptr = 0; mbox 2187 drivers/rapidio/devices/tsi721.c for (i = 0; i < priv->imsg_ring[mbox].size; i++) mbox 2188 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].imq_base[i] = NULL; mbox 2189 drivers/rapidio/devices/tsi721.c spin_lock_init(&priv->imsg_ring[mbox].lock); mbox 2192 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].buf_base = mbox 2195 drivers/rapidio/devices/tsi721.c &priv->imsg_ring[mbox].buf_phys, mbox 2198 drivers/rapidio/devices/tsi721.c if (priv->imsg_ring[mbox].buf_base == NULL) { mbox 2200 drivers/rapidio/devices/tsi721.c "Failed to allocate buffers for IB MBOX%d", mbox); mbox 2206 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].imfq_base = mbox 2209 drivers/rapidio/devices/tsi721.c &priv->imsg_ring[mbox].imfq_phys, mbox 2212 drivers/rapidio/devices/tsi721.c if (priv->imsg_ring[mbox].imfq_base == NULL) { mbox 2214 drivers/rapidio/devices/tsi721.c "Failed to allocate free queue for IB MBOX%d", mbox); mbox 2220 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].imd_base = mbox 2223 drivers/rapidio/devices/tsi721.c &priv->imsg_ring[mbox].imd_phys, GFP_KERNEL); mbox 2225 drivers/rapidio/devices/tsi721.c if (priv->imsg_ring[mbox].imd_base == NULL) { mbox 2228 drivers/rapidio/devices/tsi721.c mbox); mbox 2234 drivers/rapidio/devices/tsi721.c free_ptr = priv->imsg_ring[mbox].imfq_base; mbox 2237 drivers/rapidio/devices/tsi721.c (u64)(priv->imsg_ring[mbox].buf_phys) + mbox 2258 drivers/rapidio/devices/tsi721.c iowrite32(((u64)priv->imsg_ring[mbox].imfq_phys >> 32), mbox 2260 drivers/rapidio/devices/tsi721.c iowrite32(((u64)priv->imsg_ring[mbox].imfq_phys & mbox 2267 drivers/rapidio/devices/tsi721.c iowrite32(((u64)priv->imsg_ring[mbox].imd_phys >> 32), mbox 2269 drivers/rapidio/devices/tsi721.c iowrite32(((u32)priv->imsg_ring[mbox].imd_phys & mbox 2279 drivers/rapidio/devices/tsi721.c int idx = TSI721_VECT_IMB0_RCV + mbox; mbox 2288 drivers/rapidio/devices/tsi721.c mbox); mbox 2292 drivers/rapidio/devices/tsi721.c idx = TSI721_VECT_IMB0_INT + mbox; mbox 2298 drivers/rapidio/devices/tsi721.c "Unable to get MSI-X IRQ for IBOX%d-INT", mbox); mbox 2300 drivers/rapidio/devices/tsi721.c priv->msix[TSI721_VECT_IMB0_RCV + mbox].vector, mbox 2313 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].fq_wrptr = entries - 1; mbox 2316 drivers/rapidio/devices/tsi721.c priv->imsg_init[mbox] = 1; mbox 2322 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].size * sizeof(struct tsi721_imsg_desc), mbox 2323 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].imd_base, mbox 2324 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].imd_phys); mbox 2326 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].imd_base = NULL; mbox 2331 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].size * 8, mbox 2332 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].imfq_base, mbox 2333 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].imfq_phys); mbox 2335 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].imfq_base = NULL; mbox 2339 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].size * TSI721_MSG_BUFFER_SIZE, mbox 2340 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].buf_base, mbox 2341 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].buf_phys); mbox 2343 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].buf_base = NULL; mbox 2354 drivers/rapidio/devices/tsi721.c static void tsi721_close_inb_mbox(struct rio_mport *mport, int mbox) mbox 2358 drivers/rapidio/devices/tsi721.c int ch = mbox + 4; mbox 2360 drivers/rapidio/devices/tsi721.c if (!priv->imsg_init[mbox]) /* mbox isn't initialized yet */ mbox 2362 drivers/rapidio/devices/tsi721.c priv->imsg_init[mbox] = 0; mbox 2371 drivers/rapidio/devices/tsi721.c free_irq(priv->msix[TSI721_VECT_IMB0_RCV + mbox].vector, mbox 2373 drivers/rapidio/devices/tsi721.c free_irq(priv->msix[TSI721_VECT_IMB0_INT + mbox].vector, mbox 2379 drivers/rapidio/devices/tsi721.c for (rx_slot = 0; rx_slot < priv->imsg_ring[mbox].size; rx_slot++) mbox 2380 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].imq_base[rx_slot] = NULL; mbox 2384 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].size * TSI721_MSG_BUFFER_SIZE, mbox 2385 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].buf_base, mbox 2386 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].buf_phys); mbox 2388 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].buf_base = NULL; mbox 2392 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].size * 8, mbox 2393 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].imfq_base, mbox 2394 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].imfq_phys); mbox 2396 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].imfq_base = NULL; mbox 2400 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].size * sizeof(struct tsi721_imsg_desc), mbox 2401 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].imd_base, mbox 2402 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].imd_phys); mbox 2404 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].imd_base = NULL; mbox 2413 drivers/rapidio/devices/tsi721.c static int tsi721_add_inb_buffer(struct rio_mport *mport, int mbox, void *buf) mbox 2419 drivers/rapidio/devices/tsi721.c rx_slot = priv->imsg_ring[mbox].rx_slot; mbox 2420 drivers/rapidio/devices/tsi721.c if (priv->imsg_ring[mbox].imq_base[rx_slot]) { mbox 2428 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].imq_base[rx_slot] = buf; mbox 2430 drivers/rapidio/devices/tsi721.c if (++priv->imsg_ring[mbox].rx_slot == priv->imsg_ring[mbox].size) mbox 2431 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].rx_slot = 0; mbox 2444 drivers/rapidio/devices/tsi721.c static void *tsi721_get_inb_message(struct rio_mport *mport, int mbox) mbox 2453 drivers/rapidio/devices/tsi721.c int ch = mbox + 4; mbox 2456 drivers/rapidio/devices/tsi721.c if (!priv->imsg_init[mbox]) mbox 2459 drivers/rapidio/devices/tsi721.c desc = priv->imsg_ring[mbox].imd_base; mbox 2460 drivers/rapidio/devices/tsi721.c desc += priv->imsg_ring[mbox].desc_rdptr; mbox 2465 drivers/rapidio/devices/tsi721.c rx_slot = priv->imsg_ring[mbox].rx_slot; mbox 2466 drivers/rapidio/devices/tsi721.c while (priv->imsg_ring[mbox].imq_base[rx_slot] == NULL) { mbox 2467 drivers/rapidio/devices/tsi721.c if (++rx_slot == priv->imsg_ring[mbox].size) mbox 2474 drivers/rapidio/devices/tsi721.c rx_virt = priv->imsg_ring[mbox].buf_base + mbox 2475 drivers/rapidio/devices/tsi721.c (rx_phys - (u64)priv->imsg_ring[mbox].buf_phys); mbox 2477 drivers/rapidio/devices/tsi721.c buf = priv->imsg_ring[mbox].imq_base[rx_slot]; mbox 2483 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].imq_base[rx_slot] = NULL; mbox 2486 drivers/rapidio/devices/tsi721.c if (++priv->imsg_ring[mbox].desc_rdptr == priv->imsg_ring[mbox].size) mbox 2487 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].desc_rdptr = 0; mbox 2489 drivers/rapidio/devices/tsi721.c iowrite32(priv->imsg_ring[mbox].desc_rdptr, mbox 2493 drivers/rapidio/devices/tsi721.c free_ptr = priv->imsg_ring[mbox].imfq_base; mbox 2494 drivers/rapidio/devices/tsi721.c free_ptr[priv->imsg_ring[mbox].fq_wrptr] = cpu_to_le64(rx_phys); mbox 2496 drivers/rapidio/devices/tsi721.c if (++priv->imsg_ring[mbox].fq_wrptr == priv->imsg_ring[mbox].size) mbox 2497 drivers/rapidio/devices/tsi721.c priv->imsg_ring[mbox].fq_wrptr = 0; mbox 2499 drivers/rapidio/devices/tsi721.c iowrite32(priv->imsg_ring[mbox].fq_wrptr, mbox 234 drivers/rapidio/rio.c int mbox, mbox 236 drivers/rapidio/rio.c void (*minb) (struct rio_mport * mport, void *dev_id, int mbox, mbox 247 drivers/rapidio/rio.c rio_init_mbox_res(res, mbox, mbox); mbox 257 drivers/rapidio/rio.c mport->inb_msg[mbox].res = res; mbox 260 drivers/rapidio/rio.c mport->inb_msg[mbox].mcback = minb; mbox 262 drivers/rapidio/rio.c rc = mport->ops->open_inb_mbox(mport, dev_id, mbox, entries); mbox 264 drivers/rapidio/rio.c mport->inb_msg[mbox].mcback = NULL; mbox 265 drivers/rapidio/rio.c mport->inb_msg[mbox].res = NULL; mbox 285 drivers/rapidio/rio.c int rio_release_inb_mbox(struct rio_mport *mport, int mbox) mbox 289 drivers/rapidio/rio.c if (!mport->ops->close_inb_mbox || !mport->inb_msg[mbox].res) mbox 292 drivers/rapidio/rio.c mport->ops->close_inb_mbox(mport, mbox); mbox 293 drivers/rapidio/rio.c mport->inb_msg[mbox].mcback = NULL; mbox 295 drivers/rapidio/rio.c rc = release_resource(mport->inb_msg[mbox].res); mbox 299 drivers/rapidio/rio.c kfree(mport->inb_msg[mbox].res); mbox 300 drivers/rapidio/rio.c mport->inb_msg[mbox].res = NULL; mbox 319 drivers/rapidio/rio.c int mbox, mbox 321 drivers/rapidio/rio.c void (*moutb) (struct rio_mport * mport, void *dev_id, int mbox, int slot)) mbox 331 drivers/rapidio/rio.c rio_init_mbox_res(res, mbox, mbox); mbox 341 drivers/rapidio/rio.c mport->outb_msg[mbox].res = res; mbox 344 drivers/rapidio/rio.c mport->outb_msg[mbox].mcback = moutb; mbox 346 drivers/rapidio/rio.c rc = mport->ops->open_outb_mbox(mport, dev_id, mbox, entries); mbox 348 drivers/rapidio/rio.c mport->outb_msg[mbox].mcback = NULL; mbox 349 drivers/rapidio/rio.c mport->outb_msg[mbox].res = NULL; mbox 369 drivers/rapidio/rio.c int rio_release_outb_mbox(struct rio_mport *mport, int mbox) mbox 373 drivers/rapidio/rio.c if (!mport->ops->close_outb_mbox || !mport->outb_msg[mbox].res) mbox 376 drivers/rapidio/rio.c mport->ops->close_outb_mbox(mport, mbox); mbox 377 drivers/rapidio/rio.c mport->outb_msg[mbox].mcback = NULL; mbox 379 drivers/rapidio/rio.c rc = release_resource(mport->outb_msg[mbox].res); mbox 383 drivers/rapidio/rio.c kfree(mport->outb_msg[mbox].res); mbox 384 drivers/rapidio/rio.c mport->outb_msg[mbox].res = NULL; mbox 618 drivers/rapidio/rio_cm.c int mbox, int slot) mbox 695 drivers/rapidio/rio_cm.c int mbox, int slot) mbox 37 drivers/remoteproc/omap_remoteproc.c struct mbox_chan *mbox; mbox 89 drivers/remoteproc/omap_remoteproc.c ret = mbox_send_message(oproc->mbox, (void *)vqid); mbox 120 drivers/remoteproc/omap_remoteproc.c oproc->mbox = omap_mbox_request_channel(client, pdata->mbox_name); mbox 121 drivers/remoteproc/omap_remoteproc.c if (IS_ERR(oproc->mbox)) { mbox 124 drivers/remoteproc/omap_remoteproc.c PTR_ERR(oproc->mbox)); mbox 135 drivers/remoteproc/omap_remoteproc.c ret = mbox_send_message(oproc->mbox, (void *)RP_MBOX_ECHO_REQUEST); mbox 150 drivers/remoteproc/omap_remoteproc.c mbox_free_channel(oproc->mbox); mbox 167 drivers/remoteproc/omap_remoteproc.c mbox_free_channel(oproc->mbox); mbox 641 drivers/scsi/be2iscsi/be_cmds.c struct be_mcc_mailbox *mbox = mbox_mem->va; mbox 669 drivers/scsi/be2iscsi/be_cmds.c status = beiscsi_process_mbox_compl(ctrl, &mbox->compl); mbox 1180 drivers/scsi/csiostor/csio_hw.c csio_hw_fw_halt(struct csio_hw *hw, uint32_t mbox, int32_t force) mbox 1188 drivers/scsi/csiostor/csio_hw.c if (mbox <= PCIE_FW_MASTER_M) { mbox 1259 drivers/scsi/csiostor/csio_hw.c csio_hw_fw_restart(struct csio_hw *hw, uint32_t mbox, int32_t reset) mbox 1276 drivers/scsi/csiostor/csio_hw.c if (mbox <= PCIE_FW_MASTER_M) { mbox 1322 drivers/scsi/csiostor/csio_hw.c csio_hw_fw_upgrade(struct csio_hw *hw, uint32_t mbox, mbox 1328 drivers/scsi/csiostor/csio_hw.c ret = csio_hw_fw_halt(hw, mbox, force); mbox 1345 drivers/scsi/csiostor/csio_hw.c return csio_hw_fw_restart(hw, mbox, reset); mbox 750 drivers/scsi/lpfc/lpfc.h MAILBOX_t *mbox; mbox 1643 drivers/scsi/lpfc/lpfc_attr.c LPFC_MBOXQ_t *mbox = NULL; mbox 1678 drivers/scsi/lpfc/lpfc_attr.c mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); mbox 1679 drivers/scsi/lpfc/lpfc_attr.c if (!mbox) mbox 1682 drivers/scsi/lpfc/lpfc_attr.c lpfc_sli4_config(phba, mbox, LPFC_MBOX_SUBSYSTEM_FCOE, mbox 1687 drivers/scsi/lpfc/lpfc_attr.c &mbox->u.mqe.un.set_trunk_mode, mbox 1689 drivers/scsi/lpfc/lpfc_attr.c rc = lpfc_sli_issue_mbox(phba, mbox, MBX_POLL); mbox 1695 drivers/scsi/lpfc/lpfc_attr.c mempool_free(mbox, phba->mbox_mem_pool); mbox 108 drivers/scsi/lpfc/lpfc_bsg.c struct lpfc_bsg_mbox mbox; mbox 2545 drivers/scsi/lpfc/lpfc_bsg.c LPFC_MBOXQ_t *mbox; mbox 2549 drivers/scsi/lpfc/lpfc_bsg.c mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); mbox 2550 drivers/scsi/lpfc/lpfc_bsg.c if (!mbox) mbox 2556 drivers/scsi/lpfc/lpfc_bsg.c mbox, *rpi); mbox 2560 drivers/scsi/lpfc/lpfc_bsg.c mempool_free(mbox, phba->mbox_mem_pool); mbox 2566 drivers/scsi/lpfc/lpfc_bsg.c mbox, *rpi); mbox 2570 drivers/scsi/lpfc/lpfc_bsg.c mempool_free(mbox, phba->mbox_mem_pool); mbox 2576 drivers/scsi/lpfc/lpfc_bsg.c dmabuff = (struct lpfc_dmabuf *)mbox->ctx_buf; mbox 2577 drivers/scsi/lpfc/lpfc_bsg.c mbox->ctx_buf = NULL; mbox 2578 drivers/scsi/lpfc/lpfc_bsg.c mbox->ctx_ndlp = NULL; mbox 2579 drivers/scsi/lpfc/lpfc_bsg.c status = lpfc_sli_issue_mbox_wait(phba, mbox, LPFC_MBOX_TMO); mbox 2581 drivers/scsi/lpfc/lpfc_bsg.c if ((status != MBX_SUCCESS) || (mbox->u.mb.mbxStatus)) { mbox 2585 drivers/scsi/lpfc/lpfc_bsg.c mempool_free(mbox, phba->mbox_mem_pool); mbox 2592 drivers/scsi/lpfc/lpfc_bsg.c *rpi = mbox->u.mb.un.varWords[0]; mbox 2596 drivers/scsi/lpfc/lpfc_bsg.c mempool_free(mbox, phba->mbox_mem_pool); mbox 2609 drivers/scsi/lpfc/lpfc_bsg.c LPFC_MBOXQ_t *mbox; mbox 2613 drivers/scsi/lpfc/lpfc_bsg.c mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); mbox 2614 drivers/scsi/lpfc/lpfc_bsg.c if (mbox == NULL) mbox 2618 drivers/scsi/lpfc/lpfc_bsg.c lpfc_unreg_login(phba, 0, rpi, mbox); mbox 2621 drivers/scsi/lpfc/lpfc_bsg.c phba->sli4_hba.rpi_ids[rpi], mbox); mbox 2623 drivers/scsi/lpfc/lpfc_bsg.c status = lpfc_sli_issue_mbox_wait(phba, mbox, LPFC_MBOX_TMO); mbox 2625 drivers/scsi/lpfc/lpfc_bsg.c if ((status != MBX_SUCCESS) || (mbox->u.mb.mbxStatus)) { mbox 2627 drivers/scsi/lpfc/lpfc_bsg.c mempool_free(mbox, phba->mbox_mem_pool); mbox 2630 drivers/scsi/lpfc/lpfc_bsg.c mempool_free(mbox, phba->mbox_mem_pool); mbox 3470 drivers/scsi/lpfc/lpfc_bsg.c pmb_buf = (uint8_t *)dd_data->context_un.mbox.mb; mbox 3495 drivers/scsi/lpfc/lpfc_bsg.c mempool_free(dd_data->context_un.mbox.pmboxq, phba->mbox_mem_pool); mbox 3496 drivers/scsi/lpfc/lpfc_bsg.c lpfc_bsg_dma_page_free(phba, dd_data->context_un.mbox.dmabuffers); mbox 3666 drivers/scsi/lpfc/lpfc_bsg.c pmb_buf = (uint8_t *)dd_data->context_un.mbox.mb; mbox 4038 drivers/scsi/lpfc/lpfc_bsg.c dd_data->context_un.mbox.pmboxq = pmboxq; mbox 4039 drivers/scsi/lpfc/lpfc_bsg.c dd_data->context_un.mbox.mb = (MAILBOX_t *)pmbx; mbox 4209 drivers/scsi/lpfc/lpfc_bsg.c dd_data->context_un.mbox.pmboxq = pmboxq; mbox 4210 drivers/scsi/lpfc/lpfc_bsg.c dd_data->context_un.mbox.mb = (MAILBOX_t *)mbx; mbox 4555 drivers/scsi/lpfc/lpfc_bsg.c dd_data->context_un.mbox.pmboxq = pmboxq; mbox 4556 drivers/scsi/lpfc/lpfc_bsg.c dd_data->context_un.mbox.mb = (MAILBOX_t *)pbuf; mbox 4961 drivers/scsi/lpfc/lpfc_bsg.c dd_data->context_un.mbox.dmabuffers = dmabuf; mbox 4970 drivers/scsi/lpfc/lpfc_bsg.c dd_data->context_un.mbox.pmboxq = pmboxq; mbox 4971 drivers/scsi/lpfc/lpfc_bsg.c dd_data->context_un.mbox.mb = (MAILBOX_t *)pmbx; mbox 4972 drivers/scsi/lpfc/lpfc_bsg.c dd_data->context_un.mbox.ext = ext; mbox 4973 drivers/scsi/lpfc/lpfc_bsg.c dd_data->context_un.mbox.mbOffset = mbox_req->mbOffset; mbox 4974 drivers/scsi/lpfc/lpfc_bsg.c dd_data->context_un.mbox.inExtWLen = mbox_req->inExtWLen; mbox 4975 drivers/scsi/lpfc/lpfc_bsg.c dd_data->context_un.mbox.outExtWLen = mbox_req->outExtWLen; mbox 241 drivers/scsi/lpfc/lpfc_crtn.h void lpfc_reg_fcfi_mrq(struct lpfc_hba *phba, struct lpfcMboxq *mbox, int mode); mbox 544 drivers/scsi/lpfc/lpfc_crtn.h int lpfc_sli4_dump_page_a0(struct lpfc_hba *phba, struct lpfcMboxq *mbox); mbox 372 drivers/scsi/lpfc/lpfc_els.c LPFC_MBOXQ_t *mbox; mbox 386 drivers/scsi/lpfc/lpfc_els.c mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); mbox 387 drivers/scsi/lpfc/lpfc_els.c if (!mbox) { mbox 393 drivers/scsi/lpfc/lpfc_els.c lpfc_config_link(phba, mbox); mbox 394 drivers/scsi/lpfc/lpfc_els.c mbox->mbox_cmpl = lpfc_sli_def_mbox_cmpl; mbox 395 drivers/scsi/lpfc/lpfc_els.c mbox->vport = vport; mbox 397 drivers/scsi/lpfc/lpfc_els.c rc = lpfc_sli_issue_mbox(phba, mbox, MBX_NOWAIT); mbox 403 drivers/scsi/lpfc/lpfc_els.c mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); mbox 404 drivers/scsi/lpfc/lpfc_els.c if (!mbox) { mbox 408 drivers/scsi/lpfc/lpfc_els.c rc = lpfc_reg_rpi(phba, vport->vpi, Fabric_DID, (uint8_t *)sp, mbox, mbox 415 drivers/scsi/lpfc/lpfc_els.c mbox->mbox_cmpl = lpfc_mbx_cmpl_fabric_reg_login; mbox 416 drivers/scsi/lpfc/lpfc_els.c mbox->vport = vport; mbox 420 drivers/scsi/lpfc/lpfc_els.c mbox->ctx_ndlp = lpfc_nlp_get(ndlp); mbox 422 drivers/scsi/lpfc/lpfc_els.c rc = lpfc_sli_issue_mbox(phba, mbox, MBX_NOWAIT); mbox 435 drivers/scsi/lpfc/lpfc_els.c mp = (struct lpfc_dmabuf *)mbox->ctx_buf; mbox 439 drivers/scsi/lpfc/lpfc_els.c mempool_free(mbox, phba->mbox_mem_pool); mbox 857 drivers/scsi/lpfc/lpfc_els.c LPFC_MBOXQ_t *mbox; mbox 927 drivers/scsi/lpfc/lpfc_els.c mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); mbox 928 drivers/scsi/lpfc/lpfc_els.c if (!mbox) mbox 931 drivers/scsi/lpfc/lpfc_els.c lpfc_config_link(phba, mbox); mbox 933 drivers/scsi/lpfc/lpfc_els.c mbox->mbox_cmpl = lpfc_mbx_cmpl_local_config_link; mbox 934 drivers/scsi/lpfc/lpfc_els.c mbox->vport = vport; mbox 935 drivers/scsi/lpfc/lpfc_els.c rc = lpfc_sli_issue_mbox(phba, mbox, MBX_NOWAIT); mbox 937 drivers/scsi/lpfc/lpfc_els.c mempool_free(mbox, phba->mbox_mem_pool); mbox 2809 drivers/scsi/lpfc/lpfc_els.c struct lpfcMboxq *mbox; mbox 2885 drivers/scsi/lpfc/lpfc_els.c mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); mbox 2886 drivers/scsi/lpfc/lpfc_els.c if (mbox) { mbox 2887 drivers/scsi/lpfc/lpfc_els.c lpfc_config_link(phba, mbox); mbox 2888 drivers/scsi/lpfc/lpfc_els.c mbox->mbox_cmpl = lpfc_sli_def_mbox_cmpl; mbox 2889 drivers/scsi/lpfc/lpfc_els.c mbox->vport = vport; mbox 2890 drivers/scsi/lpfc/lpfc_els.c if (lpfc_sli_issue_mbox(phba, mbox, MBX_NOWAIT) == mbox 2892 drivers/scsi/lpfc/lpfc_els.c mempool_free(mbox, phba->mbox_mem_pool); mbox 3532 drivers/scsi/lpfc/lpfc_els.c LPFC_MBOXQ_t *mbox; mbox 3538 drivers/scsi/lpfc/lpfc_els.c mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); mbox 3539 drivers/scsi/lpfc/lpfc_els.c if (!mbox) { mbox 3556 drivers/scsi/lpfc/lpfc_els.c lpfc_init_link(phba, mbox, phba->cfg_topology, mbox 3558 drivers/scsi/lpfc/lpfc_els.c mbox->mbox_cmpl = lpfc_sli_def_mbox_cmpl; mbox 3559 drivers/scsi/lpfc/lpfc_els.c mbox->vport = vport; mbox 3560 drivers/scsi/lpfc/lpfc_els.c rc = lpfc_sli_issue_mbox(phba, mbox, MBX_NOWAIT); mbox 3565 drivers/scsi/lpfc/lpfc_els.c mempool_free(mbox, phba->mbox_mem_pool); mbox 4298 drivers/scsi/lpfc/lpfc_els.c LPFC_MBOXQ_t *mbox = NULL; mbox 4304 drivers/scsi/lpfc/lpfc_els.c if (cmdiocb->context_un.mbox) mbox 4305 drivers/scsi/lpfc/lpfc_els.c mbox = cmdiocb->context_un.mbox; mbox 4322 drivers/scsi/lpfc/lpfc_els.c if (mbox) { mbox 4323 drivers/scsi/lpfc/lpfc_els.c mp = (struct lpfc_dmabuf *)mbox->ctx_buf; mbox 4328 drivers/scsi/lpfc/lpfc_els.c mempool_free(mbox, phba->mbox_mem_pool); mbox 4355 drivers/scsi/lpfc/lpfc_els.c if (mbox) { mbox 4368 drivers/scsi/lpfc/lpfc_els.c mp = mbox->ctx_buf; mbox 4374 drivers/scsi/lpfc/lpfc_els.c mempool_free(mbox, phba->mbox_mem_pool); mbox 4381 drivers/scsi/lpfc/lpfc_els.c mbox->ctx_ndlp = lpfc_nlp_get(ndlp); mbox 4382 drivers/scsi/lpfc/lpfc_els.c mbox->vport = vport; mbox 4384 drivers/scsi/lpfc/lpfc_els.c mbox->mbox_flag |= LPFC_MBX_IMED_UNREG; mbox 4385 drivers/scsi/lpfc/lpfc_els.c mbox->mbox_cmpl = lpfc_mbx_cmpl_dflt_rpi; mbox 4388 drivers/scsi/lpfc/lpfc_els.c mbox->mbox_cmpl = lpfc_mbx_cmpl_reg_login; mbox 4395 drivers/scsi/lpfc/lpfc_els.c if (lpfc_sli_issue_mbox(phba, mbox, MBX_NOWAIT) mbox 4435 drivers/scsi/lpfc/lpfc_els.c mp = (struct lpfc_dmabuf *)mbox->ctx_buf; mbox 4440 drivers/scsi/lpfc/lpfc_els.c mempool_free(mbox, phba->mbox_mem_pool); mbox 4495 drivers/scsi/lpfc/lpfc_els.c LPFC_MBOXQ_t *mbox) mbox 4546 drivers/scsi/lpfc/lpfc_els.c if (mbox) mbox 4547 drivers/scsi/lpfc/lpfc_els.c elsiocb->context_un.mbox = mbox; mbox 4666 drivers/scsi/lpfc/lpfc_els.c LPFC_MBOXQ_t *mbox) mbox 4692 drivers/scsi/lpfc/lpfc_els.c if (mbox) mbox 4693 drivers/scsi/lpfc/lpfc_els.c elsiocb->context_un.mbox = mbox; mbox 5837 drivers/scsi/lpfc/lpfc_els.c LPFC_MBOXQ_t *mbox = NULL; mbox 5840 drivers/scsi/lpfc/lpfc_els.c mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); mbox 5841 drivers/scsi/lpfc/lpfc_els.c if (!mbox) { mbox 5847 drivers/scsi/lpfc/lpfc_els.c if (lpfc_sli4_dump_page_a0(phba, mbox)) mbox 5849 drivers/scsi/lpfc/lpfc_els.c mbox->vport = rdp_context->ndlp->vport; mbox 5850 drivers/scsi/lpfc/lpfc_els.c mbox->mbox_cmpl = lpfc_mbx_cmpl_rdp_page_a0; mbox 5851 drivers/scsi/lpfc/lpfc_els.c mbox->ctx_ndlp = (struct lpfc_rdp_context *)rdp_context; mbox 5852 drivers/scsi/lpfc/lpfc_els.c rc = lpfc_sli_issue_mbox(phba, mbox, MBX_NOWAIT); mbox 5860 drivers/scsi/lpfc/lpfc_els.c mempool_free(mbox, phba->mbox_mem_pool); mbox 6072 drivers/scsi/lpfc/lpfc_els.c LPFC_MBOXQ_t *mbox = NULL; mbox 6076 drivers/scsi/lpfc/lpfc_els.c mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); mbox 6077 drivers/scsi/lpfc/lpfc_els.c if (!mbox) mbox 6080 drivers/scsi/lpfc/lpfc_els.c cfg_shdr = &mbox->u.mqe.un.sli4_config.header.cfg_shdr; mbox 6083 drivers/scsi/lpfc/lpfc_els.c lpfc_sli4_config(phba, mbox, LPFC_MBOX_SUBSYSTEM_COMMON, mbox 6086 drivers/scsi/lpfc/lpfc_els.c mbox->ctx_ndlp = (void *)lcb_context; mbox 6087 drivers/scsi/lpfc/lpfc_els.c mbox->vport = phba->pport; mbox 6088 drivers/scsi/lpfc/lpfc_els.c mbox->mbox_cmpl = lpfc_els_lcb_rsp; mbox 6089 drivers/scsi/lpfc/lpfc_els.c bf_set(lpfc_mbx_set_beacon_port_num, &mbox->u.mqe.un.beacon_config, mbox 6091 drivers/scsi/lpfc/lpfc_els.c bf_set(lpfc_mbx_set_beacon_state, &mbox->u.mqe.un.beacon_config, mbox 6093 drivers/scsi/lpfc/lpfc_els.c mbox->u.mqe.un.beacon_config.word5 = 0; /* Reserved */ mbox 6106 drivers/scsi/lpfc/lpfc_els.c &mbox->u.mqe.un.beacon_config, 0); mbox 6108 drivers/scsi/lpfc/lpfc_els.c &mbox->u.mqe.un.beacon_config, mbox 6113 drivers/scsi/lpfc/lpfc_els.c mempool_free(mbox, phba->mbox_mem_pool); mbox 6119 drivers/scsi/lpfc/lpfc_els.c &mbox->u.mqe.un.beacon_config, beacon_state); mbox 6121 drivers/scsi/lpfc/lpfc_els.c &mbox->u.mqe.un.beacon_config, 1); mbox 6123 drivers/scsi/lpfc/lpfc_els.c &mbox->u.mqe.un.beacon_config, mbox 6127 drivers/scsi/lpfc/lpfc_els.c rc = lpfc_sli_issue_mbox(phba, mbox, MBX_NOWAIT); mbox 6129 drivers/scsi/lpfc/lpfc_els.c mempool_free(mbox, phba->mbox_mem_pool); mbox 6774 drivers/scsi/lpfc/lpfc_els.c LPFC_MBOXQ_t *mbox; mbox 6812 drivers/scsi/lpfc/lpfc_els.c mbox = mempool_alloc(phba->mbox_mem_pool, mbox 6814 drivers/scsi/lpfc/lpfc_els.c if (!mbox) mbox 6817 drivers/scsi/lpfc/lpfc_els.c lpfc_init_link(phba, mbox, mbox 6820 drivers/scsi/lpfc/lpfc_els.c mbox->u.mb.un.varInitLnk.lipsr_AL_PA = 0; mbox 6821 drivers/scsi/lpfc/lpfc_els.c mbox->mbox_cmpl = lpfc_sli_def_mbox_cmpl; mbox 6822 drivers/scsi/lpfc/lpfc_els.c mbox->vport = vport; mbox 6823 drivers/scsi/lpfc/lpfc_els.c rc = lpfc_sli_issue_mbox(phba, mbox, mbox 6827 drivers/scsi/lpfc/lpfc_els.c mempool_free(mbox, phba->mbox_mem_pool); mbox 7245 drivers/scsi/lpfc/lpfc_els.c LPFC_MBOXQ_t *mbox; mbox 7253 drivers/scsi/lpfc/lpfc_els.c mbox = mempool_alloc(phba->mbox_mem_pool, GFP_ATOMIC); mbox 7254 drivers/scsi/lpfc/lpfc_els.c if (mbox) { mbox 7255 drivers/scsi/lpfc/lpfc_els.c lpfc_read_lnk_stat(phba, mbox); mbox 7256 drivers/scsi/lpfc/lpfc_els.c mbox->ctx_buf = (void *)((unsigned long) mbox 7259 drivers/scsi/lpfc/lpfc_els.c mbox->ctx_ndlp = lpfc_nlp_get(ndlp); mbox 7260 drivers/scsi/lpfc/lpfc_els.c mbox->vport = vport; mbox 7261 drivers/scsi/lpfc/lpfc_els.c mbox->mbox_cmpl = lpfc_els_rsp_rls_acc; mbox 7262 drivers/scsi/lpfc/lpfc_els.c if (lpfc_sli_issue_mbox(phba, mbox, MBX_NOWAIT) mbox 7270 drivers/scsi/lpfc/lpfc_els.c mempool_free(mbox, phba->mbox_mem_pool); mbox 7394 drivers/scsi/lpfc/lpfc_els.c LPFC_MBOXQ_t *mbox; mbox 7416 drivers/scsi/lpfc/lpfc_els.c mbox = mempool_alloc(phba->mbox_mem_pool, GFP_ATOMIC); mbox 7417 drivers/scsi/lpfc/lpfc_els.c if (mbox) { mbox 7418 drivers/scsi/lpfc/lpfc_els.c lpfc_read_lnk_stat(phba, mbox); mbox 7419 drivers/scsi/lpfc/lpfc_els.c mbox->ctx_buf = (void *)((unsigned long) mbox 7422 drivers/scsi/lpfc/lpfc_els.c mbox->ctx_ndlp = lpfc_nlp_get(ndlp); mbox 7423 drivers/scsi/lpfc/lpfc_els.c mbox->vport = vport; mbox 7424 drivers/scsi/lpfc/lpfc_els.c mbox->mbox_cmpl = lpfc_els_rsp_rps_acc; mbox 7425 drivers/scsi/lpfc/lpfc_els.c if (lpfc_sli_issue_mbox(phba, mbox, MBX_NOWAIT) mbox 7433 drivers/scsi/lpfc/lpfc_els.c mempool_free(mbox, phba->mbox_mem_pool); mbox 8327 drivers/scsi/lpfc/lpfc_els.c LPFC_MBOXQ_t *mbox; mbox 8732 drivers/scsi/lpfc/lpfc_els.c mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); mbox 8733 drivers/scsi/lpfc/lpfc_els.c if (!mbox) mbox 8736 drivers/scsi/lpfc/lpfc_els.c lpfc_init_link(phba, mbox, mbox 8739 drivers/scsi/lpfc/lpfc_els.c mbox->u.mb.un.varInitLnk.lipsr_AL_PA = 0; mbox 8740 drivers/scsi/lpfc/lpfc_els.c mbox->mbox_cmpl = lpfc_sli_def_mbox_cmpl; mbox 8741 drivers/scsi/lpfc/lpfc_els.c mbox->vport = vport; mbox 8742 drivers/scsi/lpfc/lpfc_els.c if (lpfc_sli_issue_mbox(phba, mbox, MBX_NOWAIT) == mbox 8744 drivers/scsi/lpfc/lpfc_els.c mempool_free(mbox, phba->mbox_mem_pool); mbox 9082 drivers/scsi/lpfc/lpfc_els.c LPFC_MBOXQ_t *mbox; mbox 9084 drivers/scsi/lpfc/lpfc_els.c mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); mbox 9085 drivers/scsi/lpfc/lpfc_els.c if (mbox) { mbox 9086 drivers/scsi/lpfc/lpfc_els.c lpfc_reg_vpi(vport, mbox); mbox 9087 drivers/scsi/lpfc/lpfc_els.c mbox->vport = vport; mbox 9088 drivers/scsi/lpfc/lpfc_els.c mbox->ctx_ndlp = lpfc_nlp_get(ndlp); mbox 9089 drivers/scsi/lpfc/lpfc_els.c mbox->mbox_cmpl = lpfc_cmpl_reg_new_vport; mbox 9090 drivers/scsi/lpfc/lpfc_els.c if (lpfc_sli_issue_mbox(phba, mbox, MBX_NOWAIT) mbox 9096 drivers/scsi/lpfc/lpfc_els.c mempool_free(mbox, phba->mbox_mem_pool); mbox 3644 drivers/scsi/lpfc/lpfc_hbadisc.c LPFC_MBOXQ_t *mbox; mbox 3647 drivers/scsi/lpfc/lpfc_hbadisc.c mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); mbox 3648 drivers/scsi/lpfc/lpfc_hbadisc.c if (!mbox) mbox 3651 drivers/scsi/lpfc/lpfc_hbadisc.c lpfc_unreg_vpi(phba, vport->vpi, mbox); mbox 3652 drivers/scsi/lpfc/lpfc_hbadisc.c mbox->vport = vport; mbox 3653 drivers/scsi/lpfc/lpfc_hbadisc.c mbox->mbox_cmpl = lpfc_mbx_cmpl_unreg_vpi; mbox 3654 drivers/scsi/lpfc/lpfc_hbadisc.c rc = lpfc_sli_issue_mbox(phba, mbox, MBX_NOWAIT); mbox 3658 drivers/scsi/lpfc/lpfc_hbadisc.c mempool_free(mbox, phba->mbox_mem_pool); mbox 4870 drivers/scsi/lpfc/lpfc_hbadisc.c struct lpfc_nodelist *ndlp, LPFC_MBOXQ_t *mbox) mbox 4875 drivers/scsi/lpfc/lpfc_hbadisc.c mbox->ctx_ndlp = ndlp; mbox 4876 drivers/scsi/lpfc/lpfc_hbadisc.c mbox->mbox_cmpl = lpfc_nlp_logo_unreg; mbox 4883 drivers/scsi/lpfc/lpfc_hbadisc.c mbox->ctx_ndlp = lpfc_nlp_get(ndlp); mbox 4884 drivers/scsi/lpfc/lpfc_hbadisc.c mbox->mbox_cmpl = lpfc_sli4_unreg_rpi_cmpl_clr; mbox 4896 drivers/scsi/lpfc/lpfc_hbadisc.c mbox->ctx_ndlp = ndlp; mbox 4897 drivers/scsi/lpfc/lpfc_hbadisc.c mbox->mbox_cmpl = lpfc_sli_def_mbox_cmpl; mbox 4914 drivers/scsi/lpfc/lpfc_hbadisc.c LPFC_MBOXQ_t *mbox; mbox 4942 drivers/scsi/lpfc/lpfc_hbadisc.c mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); mbox 4943 drivers/scsi/lpfc/lpfc_hbadisc.c if (mbox) { mbox 4949 drivers/scsi/lpfc/lpfc_hbadisc.c lpfc_unreg_login(phba, vport->vpi, rpi, mbox); mbox 4950 drivers/scsi/lpfc/lpfc_hbadisc.c mbox->vport = vport; mbox 4951 drivers/scsi/lpfc/lpfc_hbadisc.c lpfc_set_unreg_login_mbx_cmpl(phba, vport, ndlp, mbox); mbox 4952 drivers/scsi/lpfc/lpfc_hbadisc.c if (mbox->mbox_cmpl == lpfc_sli4_unreg_rpi_cmpl_clr) mbox 4969 drivers/scsi/lpfc/lpfc_hbadisc.c rc = lpfc_sli_issue_mbox(phba, mbox, MBX_NOWAIT); mbox 4971 drivers/scsi/lpfc/lpfc_hbadisc.c mempool_free(mbox, phba->mbox_mem_pool); mbox 5030 drivers/scsi/lpfc/lpfc_hbadisc.c LPFC_MBOXQ_t *mbox; mbox 5038 drivers/scsi/lpfc/lpfc_hbadisc.c mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); mbox 5039 drivers/scsi/lpfc/lpfc_hbadisc.c if (mbox) { mbox 5041 drivers/scsi/lpfc/lpfc_hbadisc.c mbox); mbox 5042 drivers/scsi/lpfc/lpfc_hbadisc.c mbox->vport = vport; mbox 5043 drivers/scsi/lpfc/lpfc_hbadisc.c mbox->mbox_cmpl = lpfc_sli_def_mbox_cmpl; mbox 5044 drivers/scsi/lpfc/lpfc_hbadisc.c mbox->ctx_ndlp = NULL; mbox 5045 drivers/scsi/lpfc/lpfc_hbadisc.c rc = lpfc_sli_issue_mbox_wait(phba, mbox, LPFC_MBOX_TMO); mbox 5047 drivers/scsi/lpfc/lpfc_hbadisc.c mempool_free(mbox, phba->mbox_mem_pool); mbox 5060 drivers/scsi/lpfc/lpfc_hbadisc.c LPFC_MBOXQ_t *mbox; mbox 5067 drivers/scsi/lpfc/lpfc_hbadisc.c mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); mbox 5068 drivers/scsi/lpfc/lpfc_hbadisc.c if (mbox) { mbox 5070 drivers/scsi/lpfc/lpfc_hbadisc.c mbox); mbox 5071 drivers/scsi/lpfc/lpfc_hbadisc.c mbox->vport = vport; mbox 5072 drivers/scsi/lpfc/lpfc_hbadisc.c mbox->mbox_cmpl = lpfc_sli_def_mbox_cmpl; mbox 5073 drivers/scsi/lpfc/lpfc_hbadisc.c mbox->ctx_ndlp = NULL; mbox 5074 drivers/scsi/lpfc/lpfc_hbadisc.c rc = lpfc_sli_issue_mbox_wait(phba, mbox, LPFC_MBOX_TMO); mbox 5076 drivers/scsi/lpfc/lpfc_hbadisc.c mempool_free(mbox, phba->mbox_mem_pool); mbox 5207 drivers/scsi/lpfc/lpfc_hbadisc.c LPFC_MBOXQ_t *mbox; mbox 5223 drivers/scsi/lpfc/lpfc_hbadisc.c if ((mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL)) mbox 5226 drivers/scsi/lpfc/lpfc_hbadisc.c (uint8_t *) &vport->fc_sparam, mbox, ndlp->nlp_rpi); mbox 5228 drivers/scsi/lpfc/lpfc_hbadisc.c mempool_free(mbox, phba->mbox_mem_pool); mbox 5231 drivers/scsi/lpfc/lpfc_hbadisc.c mbox->mbox_flag |= LPFC_MBX_IMED_UNREG; mbox 5232 drivers/scsi/lpfc/lpfc_hbadisc.c mbox->mbox_cmpl = lpfc_mbx_cmpl_dflt_rpi; mbox 5233 drivers/scsi/lpfc/lpfc_hbadisc.c mbox->vport = vport; mbox 5234 drivers/scsi/lpfc/lpfc_hbadisc.c mbox->ctx_ndlp = ndlp; mbox 5235 drivers/scsi/lpfc/lpfc_hbadisc.c rc =lpfc_sli_issue_mbox(phba, mbox, MBX_NOWAIT); mbox 5237 drivers/scsi/lpfc/lpfc_hbadisc.c mempool_free(mbox, phba->mbox_mem_pool); mbox 5542 drivers/scsi/lpfc/lpfc_hbadisc.c LPFC_MBOXQ_t *mbox; mbox 5558 drivers/scsi/lpfc/lpfc_hbadisc.c if ((mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL)) != NULL) { mbox 5560 drivers/scsi/lpfc/lpfc_hbadisc.c lpfc_clear_la(phba, mbox); mbox 5561 drivers/scsi/lpfc/lpfc_hbadisc.c mbox->mbox_cmpl = lpfc_mbx_cmpl_clear_la; mbox 5562 drivers/scsi/lpfc/lpfc_hbadisc.c mbox->vport = vport; mbox 5563 drivers/scsi/lpfc/lpfc_hbadisc.c rc = lpfc_sli_issue_mbox(phba, mbox, MBX_NOWAIT); mbox 5565 drivers/scsi/lpfc/lpfc_hbadisc.c mempool_free(mbox, phba->mbox_mem_pool); mbox 6617 drivers/scsi/lpfc/lpfc_hbadisc.c LPFC_MBOXQ_t *mbox; mbox 6620 drivers/scsi/lpfc/lpfc_hbadisc.c mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); mbox 6621 drivers/scsi/lpfc/lpfc_hbadisc.c if (!mbox) { mbox 6627 drivers/scsi/lpfc/lpfc_hbadisc.c lpfc_unreg_fcfi(mbox, phba->fcf.fcfi); mbox 6628 drivers/scsi/lpfc/lpfc_hbadisc.c mbox->vport = phba->pport; mbox 6629 drivers/scsi/lpfc/lpfc_hbadisc.c mbox->mbox_cmpl = lpfc_unregister_fcfi_cmpl; mbox 6630 drivers/scsi/lpfc/lpfc_hbadisc.c rc = lpfc_sli_issue_mbox(phba, mbox, MBX_NOWAIT); mbox 7767 drivers/scsi/lpfc/lpfc_init.c phba->mbox = phba->slim2p.virt + offsetof(struct lpfc_sli2_slim, mbx); mbox 844 drivers/scsi/lpfc/lpfc_mbox.c LPFC_MBOXQ_t *mbox; mbox 847 drivers/scsi/lpfc/lpfc_mbox.c mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); mbox 848 drivers/scsi/lpfc/lpfc_mbox.c if (mbox) { mbox 857 drivers/scsi/lpfc/lpfc_mbox.c mbox); mbox 858 drivers/scsi/lpfc/lpfc_mbox.c mbox->u.mb.un.varUnregLogin.rsvd1 = 0x4000; mbox 859 drivers/scsi/lpfc/lpfc_mbox.c mbox->vport = vport; mbox 860 drivers/scsi/lpfc/lpfc_mbox.c mbox->mbox_cmpl = lpfc_sli_def_mbox_cmpl; mbox 861 drivers/scsi/lpfc/lpfc_mbox.c mbox->ctx_ndlp = NULL; mbox 862 drivers/scsi/lpfc/lpfc_mbox.c rc = lpfc_sli_issue_mbox(phba, mbox, MBX_NOWAIT); mbox 864 drivers/scsi/lpfc/lpfc_mbox.c mempool_free(mbox, phba->mbox_mem_pool); mbox 1326 drivers/scsi/lpfc/lpfc_mbox.c offset = (uint8_t *)phba->mbox - (uint8_t *)phba->slim2p.virt; mbox 1382 drivers/scsi/lpfc/lpfc_mbox.c phba->host_gp = &phba->mbox->us.s2.host[0]; mbox 1384 drivers/scsi/lpfc/lpfc_mbox.c offset = (uint8_t *)&phba->mbox->us.s2.host - mbox 1627 drivers/scsi/lpfc/lpfc_mbox.c MAILBOX_t *mbox = &mboxq->u.mb; mbox 1630 drivers/scsi/lpfc/lpfc_mbox.c switch (mbox->mbxCommand) { mbox 1687 drivers/scsi/lpfc/lpfc_mbox.c lpfc_sli4_mbx_sge_set(struct lpfcMboxq *mbox, uint32_t sgentry, mbox 1693 drivers/scsi/lpfc/lpfc_mbox.c &mbox->u.mqe.un.nembed_cmd; mbox 1708 drivers/scsi/lpfc/lpfc_mbox.c lpfc_sli4_mbx_sge_get(struct lpfcMboxq *mbox, uint32_t sgentry, mbox 1714 drivers/scsi/lpfc/lpfc_mbox.c &mbox->u.mqe.un.nembed_cmd; mbox 1728 drivers/scsi/lpfc/lpfc_mbox.c lpfc_sli4_mbox_cmd_free(struct lpfc_hba *phba, struct lpfcMboxq *mbox) mbox 1735 drivers/scsi/lpfc/lpfc_mbox.c sli4_cfg = &mbox->u.mqe.un.sli4_config; mbox 1739 drivers/scsi/lpfc/lpfc_mbox.c mempool_free(mbox, phba->mbox_mem_pool); mbox 1746 drivers/scsi/lpfc/lpfc_mbox.c if (unlikely(!mbox->sge_array)) { mbox 1747 drivers/scsi/lpfc/lpfc_mbox.c mempool_free(mbox, phba->mbox_mem_pool); mbox 1752 drivers/scsi/lpfc/lpfc_mbox.c lpfc_sli4_mbx_sge_get(mbox, sgentry, &sge); mbox 1755 drivers/scsi/lpfc/lpfc_mbox.c mbox->sge_array->addr[sgentry], phyaddr); mbox 1758 drivers/scsi/lpfc/lpfc_mbox.c kfree(mbox->sge_array); mbox 1760 drivers/scsi/lpfc/lpfc_mbox.c mempool_free(mbox, phba->mbox_mem_pool); mbox 1778 drivers/scsi/lpfc/lpfc_mbox.c lpfc_sli4_config(struct lpfc_hba *phba, struct lpfcMboxq *mbox, mbox 1790 drivers/scsi/lpfc/lpfc_mbox.c memset(mbox, 0, sizeof(*mbox)); mbox 1791 drivers/scsi/lpfc/lpfc_mbox.c bf_set(lpfc_mqe_command, &mbox->u.mqe, MBX_SLI4_CONFIG); mbox 1794 drivers/scsi/lpfc/lpfc_mbox.c sli4_config = &mbox->u.mqe.un.sli4_config; mbox 1816 drivers/scsi/lpfc/lpfc_mbox.c mbox->sge_array = kzalloc(sizeof(struct lpfc_mbx_nembed_sge_virt), mbox 1818 drivers/scsi/lpfc/lpfc_mbox.c if (!mbox->sge_array) { mbox 1836 drivers/scsi/lpfc/lpfc_mbox.c mbox->sge_array->addr[pagen] = viraddr; mbox 1842 drivers/scsi/lpfc/lpfc_mbox.c lpfc_sli4_mbx_sge_set(mbox, pagen, phyaddr, mbox 1846 drivers/scsi/lpfc/lpfc_mbox.c lpfc_sli4_mbx_sge_set(mbox, pagen, phyaddr, mbox 1886 drivers/scsi/lpfc/lpfc_mbox.c lpfc_sli4_mbox_rsrc_extent(struct lpfc_hba *phba, struct lpfcMboxq *mbox, mbox 1896 drivers/scsi/lpfc/lpfc_mbox.c virtaddr = mbox->sge_array->addr[0]; mbox 1908 drivers/scsi/lpfc/lpfc_mbox.c &mbox->u.mqe.un.alloc_rsrc_extents.u.req, mbox 1920 drivers/scsi/lpfc/lpfc_mbox.c opcode = lpfc_sli_config_mbox_opcode_get(phba, mbox); mbox 1925 drivers/scsi/lpfc/lpfc_mbox.c &mbox->u.mqe.un.alloc_rsrc_extents.u.req, mbox 1957 drivers/scsi/lpfc/lpfc_mbox.c lpfc_sli_config_mbox_subsys_get(struct lpfc_hba *phba, LPFC_MBOXQ_t *mbox) mbox 1962 drivers/scsi/lpfc/lpfc_mbox.c if (mbox->u.mb.mbxCommand != MBX_SLI4_CONFIG) mbox 1964 drivers/scsi/lpfc/lpfc_mbox.c sli4_cfg = &mbox->u.mqe.un.sli4_config; mbox 1968 drivers/scsi/lpfc/lpfc_mbox.c cfg_shdr = &mbox->u.mqe.un.sli4_config.header.cfg_shdr; mbox 1973 drivers/scsi/lpfc/lpfc_mbox.c if (unlikely(!mbox->sge_array)) mbox 1975 drivers/scsi/lpfc/lpfc_mbox.c cfg_shdr = (union lpfc_sli4_cfg_shdr *)mbox->sge_array->addr[0]; mbox 1990 drivers/scsi/lpfc/lpfc_mbox.c lpfc_sli_config_mbox_opcode_get(struct lpfc_hba *phba, LPFC_MBOXQ_t *mbox) mbox 1995 drivers/scsi/lpfc/lpfc_mbox.c if (mbox->u.mb.mbxCommand != MBX_SLI4_CONFIG) mbox 1997 drivers/scsi/lpfc/lpfc_mbox.c sli4_cfg = &mbox->u.mqe.un.sli4_config; mbox 2001 drivers/scsi/lpfc/lpfc_mbox.c cfg_shdr = &mbox->u.mqe.un.sli4_config.header.cfg_shdr; mbox 2006 drivers/scsi/lpfc/lpfc_mbox.c if (unlikely(!mbox->sge_array)) mbox 2008 drivers/scsi/lpfc/lpfc_mbox.c cfg_shdr = (union lpfc_sli4_cfg_shdr *)mbox->sge_array->addr[0]; mbox 2116 drivers/scsi/lpfc/lpfc_mbox.c lpfc_init_vfi(struct lpfcMboxq *mbox, struct lpfc_vport *vport) mbox 2120 drivers/scsi/lpfc/lpfc_mbox.c memset(mbox, 0, sizeof(*mbox)); mbox 2121 drivers/scsi/lpfc/lpfc_mbox.c mbox->vport = vport; mbox 2122 drivers/scsi/lpfc/lpfc_mbox.c init_vfi = &mbox->u.mqe.un.init_vfi; mbox 2123 drivers/scsi/lpfc/lpfc_mbox.c bf_set(lpfc_mqe_command, &mbox->u.mqe, MBX_INIT_VFI); mbox 2147 drivers/scsi/lpfc/lpfc_mbox.c lpfc_reg_vfi(struct lpfcMboxq *mbox, struct lpfc_vport *vport, dma_addr_t phys) mbox 2153 drivers/scsi/lpfc/lpfc_mbox.c memset(mbox, 0, sizeof(*mbox)); mbox 2154 drivers/scsi/lpfc/lpfc_mbox.c reg_vfi = &mbox->u.mqe.un.reg_vfi; mbox 2155 drivers/scsi/lpfc/lpfc_mbox.c bf_set(lpfc_mqe_command, &mbox->u.mqe, MBX_REG_VFI); mbox 2227 drivers/scsi/lpfc/lpfc_mbox.c lpfc_init_vpi(struct lpfc_hba *phba, struct lpfcMboxq *mbox, uint16_t vpi) mbox 2229 drivers/scsi/lpfc/lpfc_mbox.c memset(mbox, 0, sizeof(*mbox)); mbox 2230 drivers/scsi/lpfc/lpfc_mbox.c bf_set(lpfc_mqe_command, &mbox->u.mqe, MBX_INIT_VPI); mbox 2231 drivers/scsi/lpfc/lpfc_mbox.c bf_set(lpfc_init_vpi_vpi, &mbox->u.mqe.un.init_vpi, mbox 2233 drivers/scsi/lpfc/lpfc_mbox.c bf_set(lpfc_init_vpi_vfi, &mbox->u.mqe.un.init_vpi, mbox 2249 drivers/scsi/lpfc/lpfc_mbox.c lpfc_unreg_vfi(struct lpfcMboxq *mbox, struct lpfc_vport *vport) mbox 2251 drivers/scsi/lpfc/lpfc_mbox.c memset(mbox, 0, sizeof(*mbox)); mbox 2252 drivers/scsi/lpfc/lpfc_mbox.c bf_set(lpfc_mqe_command, &mbox->u.mqe, MBX_UNREG_VFI); mbox 2253 drivers/scsi/lpfc/lpfc_mbox.c bf_set(lpfc_unreg_vfi_vfi, &mbox->u.mqe.un.unreg_vfi, mbox 2266 drivers/scsi/lpfc/lpfc_mbox.c lpfc_sli4_dump_cfg_rg23(struct lpfc_hba *phba, struct lpfcMboxq *mbox) mbox 2271 drivers/scsi/lpfc/lpfc_mbox.c memset(mbox, 0, sizeof(*mbox)); mbox 2272 drivers/scsi/lpfc/lpfc_mbox.c mb = &mbox->u.mb; mbox 2291 drivers/scsi/lpfc/lpfc_mbox.c mbox->ctx_buf = (uint8_t *)mp; mbox 2324 drivers/scsi/lpfc/lpfc_mbox.c lpfc_mbx_cmpl_rdp_page_a2(struct lpfc_hba *phba, LPFC_MBOXQ_t *mbox) mbox 2326 drivers/scsi/lpfc/lpfc_mbox.c struct lpfc_dmabuf *mp = (struct lpfc_dmabuf *)mbox->ctx_buf; mbox 2328 drivers/scsi/lpfc/lpfc_mbox.c (struct lpfc_rdp_context *)(mbox->ctx_ndlp); mbox 2330 drivers/scsi/lpfc/lpfc_mbox.c if (bf_get(lpfc_mqe_status, &mbox->u.mqe)) mbox 2340 drivers/scsi/lpfc/lpfc_mbox.c memset(mbox, 0, sizeof(*mbox)); mbox 2341 drivers/scsi/lpfc/lpfc_mbox.c lpfc_read_lnk_stat(phba, mbox); mbox 2342 drivers/scsi/lpfc/lpfc_mbox.c mbox->vport = rdp_context->ndlp->vport; mbox 2343 drivers/scsi/lpfc/lpfc_mbox.c mbox->mbox_cmpl = lpfc_mbx_cmpl_rdp_link_stat; mbox 2344 drivers/scsi/lpfc/lpfc_mbox.c mbox->ctx_ndlp = (struct lpfc_rdp_context *)rdp_context; mbox 2345 drivers/scsi/lpfc/lpfc_mbox.c if (lpfc_sli_issue_mbox(phba, mbox, MBX_NOWAIT) == MBX_NOT_FINISHED) mbox 2354 drivers/scsi/lpfc/lpfc_mbox.c lpfc_sli4_mbox_cmd_free(phba, mbox); mbox 2359 drivers/scsi/lpfc/lpfc_mbox.c lpfc_mbx_cmpl_rdp_page_a0(struct lpfc_hba *phba, LPFC_MBOXQ_t *mbox) mbox 2362 drivers/scsi/lpfc/lpfc_mbox.c struct lpfc_dmabuf *mp = (struct lpfc_dmabuf *)(mbox->ctx_buf); mbox 2364 drivers/scsi/lpfc/lpfc_mbox.c (struct lpfc_rdp_context *)(mbox->ctx_ndlp); mbox 2366 drivers/scsi/lpfc/lpfc_mbox.c if (bf_get(lpfc_mqe_status, &mbox->u.mqe)) mbox 2372 drivers/scsi/lpfc/lpfc_mbox.c memset(mbox, 0, sizeof(*mbox)); mbox 2378 drivers/scsi/lpfc/lpfc_mbox.c mbox->ctx_buf = mp; mbox 2379 drivers/scsi/lpfc/lpfc_mbox.c mbox->vport = rdp_context->ndlp->vport; mbox 2381 drivers/scsi/lpfc/lpfc_mbox.c bf_set(lpfc_mqe_command, &mbox->u.mqe, MBX_DUMP_MEMORY); mbox 2383 drivers/scsi/lpfc/lpfc_mbox.c &mbox->u.mqe.un.mem_dump_type3, DMP_LMSD); mbox 2385 drivers/scsi/lpfc/lpfc_mbox.c &mbox->u.mqe.un.mem_dump_type3, phba->sli4_hba.physical_port); mbox 2387 drivers/scsi/lpfc/lpfc_mbox.c &mbox->u.mqe.un.mem_dump_type3, DMP_PAGE_A2); mbox 2389 drivers/scsi/lpfc/lpfc_mbox.c &mbox->u.mqe.un.mem_dump_type3, DMP_SFF_PAGE_A2_SIZE); mbox 2390 drivers/scsi/lpfc/lpfc_mbox.c mbox->u.mqe.un.mem_dump_type3.addr_lo = putPaddrLow(mp->phys); mbox 2391 drivers/scsi/lpfc/lpfc_mbox.c mbox->u.mqe.un.mem_dump_type3.addr_hi = putPaddrHigh(mp->phys); mbox 2393 drivers/scsi/lpfc/lpfc_mbox.c mbox->mbox_cmpl = lpfc_mbx_cmpl_rdp_page_a2; mbox 2394 drivers/scsi/lpfc/lpfc_mbox.c mbox->ctx_ndlp = (struct lpfc_rdp_context *)rdp_context; mbox 2395 drivers/scsi/lpfc/lpfc_mbox.c rc = lpfc_sli_issue_mbox(phba, mbox, MBX_NOWAIT); mbox 2404 drivers/scsi/lpfc/lpfc_mbox.c lpfc_sli4_mbox_cmd_free(phba, mbox); mbox 2418 drivers/scsi/lpfc/lpfc_mbox.c lpfc_sli4_dump_page_a0(struct lpfc_hba *phba, struct lpfcMboxq *mbox) mbox 2422 drivers/scsi/lpfc/lpfc_mbox.c memset(mbox, 0, sizeof(*mbox)); mbox 2437 drivers/scsi/lpfc/lpfc_mbox.c bf_set(lpfc_mqe_command, &mbox->u.mqe, MBX_DUMP_MEMORY); mbox 2439 drivers/scsi/lpfc/lpfc_mbox.c mbox->ctx_buf = mp; mbox 2442 drivers/scsi/lpfc/lpfc_mbox.c &mbox->u.mqe.un.mem_dump_type3, DMP_LMSD); mbox 2444 drivers/scsi/lpfc/lpfc_mbox.c &mbox->u.mqe.un.mem_dump_type3, phba->sli4_hba.physical_port); mbox 2446 drivers/scsi/lpfc/lpfc_mbox.c &mbox->u.mqe.un.mem_dump_type3, DMP_PAGE_A0); mbox 2448 drivers/scsi/lpfc/lpfc_mbox.c &mbox->u.mqe.un.mem_dump_type3, DMP_SFF_PAGE_A0_SIZE); mbox 2449 drivers/scsi/lpfc/lpfc_mbox.c mbox->u.mqe.un.mem_dump_type3.addr_lo = putPaddrLow(mp->phys); mbox 2450 drivers/scsi/lpfc/lpfc_mbox.c mbox->u.mqe.un.mem_dump_type3.addr_hi = putPaddrHigh(mp->phys); mbox 2469 drivers/scsi/lpfc/lpfc_mbox.c lpfc_reg_fcfi(struct lpfc_hba *phba, struct lpfcMboxq *mbox) mbox 2473 drivers/scsi/lpfc/lpfc_mbox.c memset(mbox, 0, sizeof(*mbox)); mbox 2474 drivers/scsi/lpfc/lpfc_mbox.c reg_fcfi = &mbox->u.mqe.un.reg_fcfi; mbox 2475 drivers/scsi/lpfc/lpfc_mbox.c bf_set(lpfc_mqe_command, &mbox->u.mqe, MBX_REG_FCFI); mbox 2537 drivers/scsi/lpfc/lpfc_mbox.c lpfc_reg_fcfi_mrq(struct lpfc_hba *phba, struct lpfcMboxq *mbox, int mode) mbox 2545 drivers/scsi/lpfc/lpfc_mbox.c memset(mbox, 0, sizeof(*mbox)); mbox 2546 drivers/scsi/lpfc/lpfc_mbox.c reg_fcfi = &mbox->u.mqe.un.reg_fcfi_mrq; mbox 2547 drivers/scsi/lpfc/lpfc_mbox.c bf_set(lpfc_mqe_command, &mbox->u.mqe, MBX_REG_FCFI_MRQ); mbox 2595 drivers/scsi/lpfc/lpfc_mbox.c lpfc_unreg_fcfi(struct lpfcMboxq *mbox, uint16_t fcfi) mbox 2597 drivers/scsi/lpfc/lpfc_mbox.c memset(mbox, 0, sizeof(*mbox)); mbox 2598 drivers/scsi/lpfc/lpfc_mbox.c bf_set(lpfc_mqe_command, &mbox->u.mqe, MBX_UNREG_FCFI); mbox 2599 drivers/scsi/lpfc/lpfc_mbox.c bf_set(lpfc_unreg_fcfi, &mbox->u.mqe.un.unreg_fcfi, fcfi); mbox 2611 drivers/scsi/lpfc/lpfc_mbox.c lpfc_resume_rpi(struct lpfcMboxq *mbox, struct lpfc_nodelist *ndlp) mbox 2616 drivers/scsi/lpfc/lpfc_mbox.c memset(mbox, 0, sizeof(*mbox)); mbox 2617 drivers/scsi/lpfc/lpfc_mbox.c resume_rpi = &mbox->u.mqe.un.resume_rpi; mbox 2618 drivers/scsi/lpfc/lpfc_mbox.c bf_set(lpfc_mqe_command, &mbox->u.mqe, MBX_RESUME_RPI); mbox 2634 drivers/scsi/lpfc/lpfc_mbox.c lpfc_supported_pages(struct lpfcMboxq *mbox) mbox 2638 drivers/scsi/lpfc/lpfc_mbox.c memset(mbox, 0, sizeof(*mbox)); mbox 2639 drivers/scsi/lpfc/lpfc_mbox.c supp_pages = &mbox->u.mqe.un.supp_pages; mbox 2640 drivers/scsi/lpfc/lpfc_mbox.c bf_set(lpfc_mqe_command, &mbox->u.mqe, MBX_PORT_CAPABILITIES); mbox 2652 drivers/scsi/lpfc/lpfc_mbox.c lpfc_pc_sli4_params(struct lpfcMboxq *mbox) mbox 2656 drivers/scsi/lpfc/lpfc_mbox.c memset(mbox, 0, sizeof(*mbox)); mbox 2657 drivers/scsi/lpfc/lpfc_mbox.c sli4_params = &mbox->u.mqe.un.sli4_params; mbox 2658 drivers/scsi/lpfc/lpfc_mbox.c bf_set(lpfc_mqe_command, &mbox->u.mqe, MBX_PORT_CAPABILITIES); mbox 294 drivers/scsi/lpfc/lpfc_mem.c LPFC_MBOXQ_t *mbox, *next_mbox; mbox 298 drivers/scsi/lpfc/lpfc_mem.c list_for_each_entry_safe(mbox, next_mbox, &psli->mboxq, list) { mbox 299 drivers/scsi/lpfc/lpfc_mem.c mp = (struct lpfc_dmabuf *)(mbox->ctx_buf); mbox 304 drivers/scsi/lpfc/lpfc_mem.c list_del(&mbox->list); mbox 305 drivers/scsi/lpfc/lpfc_mem.c mempool_free(mbox, phba->mbox_mem_pool); mbox 308 drivers/scsi/lpfc/lpfc_mem.c list_for_each_entry_safe(mbox, next_mbox, &psli->mboxq_cmpl, list) { mbox 309 drivers/scsi/lpfc/lpfc_mem.c mp = (struct lpfc_dmabuf *)(mbox->ctx_buf); mbox 314 drivers/scsi/lpfc/lpfc_mem.c list_del(&mbox->list); mbox 315 drivers/scsi/lpfc/lpfc_mem.c mempool_free(mbox, phba->mbox_mem_pool); mbox 322 drivers/scsi/lpfc/lpfc_mem.c mbox = psli->mbox_active; mbox 323 drivers/scsi/lpfc/lpfc_mem.c mp = (struct lpfc_dmabuf *)(mbox->ctx_buf); mbox 328 drivers/scsi/lpfc/lpfc_mem.c mempool_free(mbox, phba->mbox_mem_pool); mbox 294 drivers/scsi/lpfc/lpfc_nportdisc.c LPFC_MBOXQ_t *mbox; mbox 426 drivers/scsi/lpfc/lpfc_nportdisc.c mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); mbox 427 drivers/scsi/lpfc/lpfc_nportdisc.c if (mbox == NULL) mbox 429 drivers/scsi/lpfc/lpfc_nportdisc.c lpfc_config_link(phba, mbox); mbox 430 drivers/scsi/lpfc/lpfc_nportdisc.c mbox->mbox_cmpl = lpfc_sli_def_mbox_cmpl; mbox 431 drivers/scsi/lpfc/lpfc_nportdisc.c mbox->vport = vport; mbox 432 drivers/scsi/lpfc/lpfc_nportdisc.c rc = lpfc_sli_issue_mbox(phba, mbox, MBX_NOWAIT); mbox 434 drivers/scsi/lpfc/lpfc_nportdisc.c mempool_free(mbox, phba->mbox_mem_pool); mbox 451 drivers/scsi/lpfc/lpfc_nportdisc.c mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); mbox 452 drivers/scsi/lpfc/lpfc_nportdisc.c if (!mbox) mbox 460 drivers/scsi/lpfc/lpfc_nportdisc.c (uint8_t *) sp, mbox, ndlp->nlp_rpi); mbox 462 drivers/scsi/lpfc/lpfc_nportdisc.c mempool_free(mbox, phba->mbox_mem_pool); mbox 469 drivers/scsi/lpfc/lpfc_nportdisc.c mbox->mbox_cmpl = lpfc_mbx_cmpl_reg_login; mbox 474 drivers/scsi/lpfc/lpfc_nportdisc.c mbox->vport = vport; mbox 509 drivers/scsi/lpfc/lpfc_nportdisc.c ndlp, mbox); mbox 511 drivers/scsi/lpfc/lpfc_nportdisc.c mempool_free(mbox, phba->mbox_mem_pool); mbox 514 drivers/scsi/lpfc/lpfc_nportdisc.c rc = lpfc_els_rsp_acc(vport, ELS_CMD_PLOGI, cmdiocb, ndlp, mbox); mbox 516 drivers/scsi/lpfc/lpfc_nportdisc.c mempool_free(mbox, phba->mbox_mem_pool); mbox 1158 drivers/scsi/lpfc/lpfc_nportdisc.c LPFC_MBOXQ_t *mbox; mbox 1247 drivers/scsi/lpfc/lpfc_nportdisc.c mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); mbox 1248 drivers/scsi/lpfc/lpfc_nportdisc.c if (!mbox) { mbox 1258 drivers/scsi/lpfc/lpfc_nportdisc.c lpfc_config_link(phba, mbox); mbox 1260 drivers/scsi/lpfc/lpfc_nportdisc.c mbox->mbox_cmpl = lpfc_sli_def_mbox_cmpl; mbox 1261 drivers/scsi/lpfc/lpfc_nportdisc.c mbox->vport = vport; mbox 1262 drivers/scsi/lpfc/lpfc_nportdisc.c rc = lpfc_sli_issue_mbox(phba, mbox, MBX_NOWAIT); mbox 1264 drivers/scsi/lpfc/lpfc_nportdisc.c mempool_free(mbox, phba->mbox_mem_pool); mbox 1272 drivers/scsi/lpfc/lpfc_nportdisc.c mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); mbox 1273 drivers/scsi/lpfc/lpfc_nportdisc.c if (!mbox) { mbox 1283 drivers/scsi/lpfc/lpfc_nportdisc.c (uint8_t *) sp, mbox, ndlp->nlp_rpi) == 0) { mbox 1286 drivers/scsi/lpfc/lpfc_nportdisc.c mbox->mbox_cmpl = lpfc_mbx_cmpl_ns_reg_login; mbox 1289 drivers/scsi/lpfc/lpfc_nportdisc.c mbox->mbox_cmpl = lpfc_mbx_cmpl_fdmi_reg_login; mbox 1293 drivers/scsi/lpfc/lpfc_nportdisc.c mbox->mbox_cmpl = lpfc_mbx_cmpl_reg_login; mbox 1295 drivers/scsi/lpfc/lpfc_nportdisc.c mbox->ctx_ndlp = lpfc_nlp_get(ndlp); mbox 1296 drivers/scsi/lpfc/lpfc_nportdisc.c mbox->vport = vport; mbox 1297 drivers/scsi/lpfc/lpfc_nportdisc.c if (lpfc_sli_issue_mbox(phba, mbox, MBX_NOWAIT) mbox 1309 drivers/scsi/lpfc/lpfc_nportdisc.c mp = (struct lpfc_dmabuf *)mbox->ctx_buf; mbox 1312 drivers/scsi/lpfc/lpfc_nportdisc.c mempool_free(mbox, phba->mbox_mem_pool); mbox 1320 drivers/scsi/lpfc/lpfc_nportdisc.c mempool_free(mbox, phba->mbox_mem_pool); mbox 278 drivers/scsi/lpfc/lpfc_sli.c q->phba->mbox = (MAILBOX_t *)temp_mqe; mbox 309 drivers/scsi/lpfc/lpfc_sli.c q->phba->mbox = NULL; mbox 4206 drivers/scsi/lpfc/lpfc_sli.c volatile uint32_t mbox; mbox 4240 drivers/scsi/lpfc/lpfc_sli.c mbox = 0; mbox 4241 drivers/scsi/lpfc/lpfc_sli.c ((MAILBOX_t *)&mbox)->mbxCommand = MBX_KILL_BOARD; mbox 4242 drivers/scsi/lpfc/lpfc_sli.c ((MAILBOX_t *)&mbox)->mbxOwner = OWN_CHIP; mbox 4246 drivers/scsi/lpfc/lpfc_sli.c writel(mbox, mbox_buf); mbox 4267 drivers/scsi/lpfc/lpfc_sli.c ((MAILBOX_t *)&mbox)->mbxOwner = OWN_HOST; mbox 4272 drivers/scsi/lpfc/lpfc_sli.c if (resp_data != mbox) mbox 5024 drivers/scsi/lpfc/lpfc_sli.c phba->hbq_get = phba->mbox->us.s3_pgp.hbq_get; mbox 5025 drivers/scsi/lpfc/lpfc_sli.c phba->port_gp = phba->mbox->us.s3_pgp.port; mbox 5038 drivers/scsi/lpfc/lpfc_sli.c phba->port_gp = phba->mbox->us.s2.port; mbox 5609 drivers/scsi/lpfc/lpfc_sli.c LPFC_MBOXQ_t *mbox; mbox 5611 drivers/scsi/lpfc/lpfc_sli.c mbox = (LPFC_MBOXQ_t *) mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); mbox 5612 drivers/scsi/lpfc/lpfc_sli.c if (!mbox) mbox 5618 drivers/scsi/lpfc/lpfc_sli.c lpfc_sli4_config(phba, mbox, LPFC_MBOX_SUBSYSTEM_COMMON, mbox 5623 drivers/scsi/lpfc/lpfc_sli.c rc = lpfc_sli4_mbox_rsrc_extent(phba, mbox, 0, type, mbox 5631 drivers/scsi/lpfc/lpfc_sli.c rc = lpfc_sli_issue_mbox(phba, mbox, MBX_POLL); mbox 5633 drivers/scsi/lpfc/lpfc_sli.c mbox_tmo = lpfc_mbox_tmo_val(phba, mbox); mbox 5634 drivers/scsi/lpfc/lpfc_sli.c rc = lpfc_sli_issue_mbox_wait(phba, mbox, mbox_tmo); mbox 5641 drivers/scsi/lpfc/lpfc_sli.c rsrc_info = &mbox->u.mqe.un.rsrc_extent_info; mbox 5665 drivers/scsi/lpfc/lpfc_sli.c mempool_free(mbox, phba->mbox_mem_pool); mbox 5749 drivers/scsi/lpfc/lpfc_sli.c uint16_t type, bool *emb, LPFC_MBOXQ_t *mbox) mbox 5778 drivers/scsi/lpfc/lpfc_sli.c alloc_len = lpfc_sli4_config(phba, mbox, LPFC_MBOX_SUBSYSTEM_COMMON, mbox 5788 drivers/scsi/lpfc/lpfc_sli.c rc = lpfc_sli4_mbox_rsrc_extent(phba, mbox, extnt_cnt, type, *emb); mbox 5793 drivers/scsi/lpfc/lpfc_sli.c rc = lpfc_sli_issue_mbox(phba, mbox, MBX_POLL); mbox 5795 drivers/scsi/lpfc/lpfc_sli.c mbox_tmo = lpfc_mbox_tmo_val(phba, mbox); mbox 5796 drivers/scsi/lpfc/lpfc_sli.c rc = lpfc_sli_issue_mbox_wait(phba, mbox, mbox_tmo); mbox 5823 drivers/scsi/lpfc/lpfc_sli.c LPFC_MBOXQ_t *mbox; mbox 5850 drivers/scsi/lpfc/lpfc_sli.c mbox = (LPFC_MBOXQ_t *) mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); mbox 5851 drivers/scsi/lpfc/lpfc_sli.c if (!mbox) mbox 5854 drivers/scsi/lpfc/lpfc_sli.c rc = lpfc_sli4_cfg_post_extnts(phba, rsrc_cnt, type, &emb, mbox); mbox 5867 drivers/scsi/lpfc/lpfc_sli.c rsrc_ext = &mbox->u.mqe.un.alloc_rsrc_extents; mbox 5871 drivers/scsi/lpfc/lpfc_sli.c virtaddr = mbox->sge_array->addr[0]; mbox 6029 drivers/scsi/lpfc/lpfc_sli.c lpfc_sli4_mbox_cmd_free(phba, mbox); mbox 6049 drivers/scsi/lpfc/lpfc_sli.c LPFC_MBOXQ_t *mbox; mbox 6053 drivers/scsi/lpfc/lpfc_sli.c mbox = (LPFC_MBOXQ_t *) mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); mbox 6054 drivers/scsi/lpfc/lpfc_sli.c if (!mbox) mbox 6064 drivers/scsi/lpfc/lpfc_sli.c lpfc_sli4_config(phba, mbox, LPFC_MBOX_SUBSYSTEM_COMMON, mbox 6069 drivers/scsi/lpfc/lpfc_sli.c rc = lpfc_sli4_mbox_rsrc_extent(phba, mbox, 0, type, mbox 6076 drivers/scsi/lpfc/lpfc_sli.c rc = lpfc_sli_issue_mbox(phba, mbox, MBX_POLL); mbox 6078 drivers/scsi/lpfc/lpfc_sli.c mbox_tmo = lpfc_mbox_tmo_val(phba, mbox); mbox 6079 drivers/scsi/lpfc/lpfc_sli.c rc = lpfc_sli_issue_mbox_wait(phba, mbox, mbox_tmo); mbox 6086 drivers/scsi/lpfc/lpfc_sli.c dealloc_rsrc = &mbox->u.mqe.un.dealloc_rsrc_extents; mbox 6149 drivers/scsi/lpfc/lpfc_sli.c mempool_free(mbox, phba->mbox_mem_pool); mbox 6154 drivers/scsi/lpfc/lpfc_sli.c lpfc_set_features(struct lpfc_hba *phba, LPFC_MBOXQ_t *mbox, mbox 6161 drivers/scsi/lpfc/lpfc_sli.c lpfc_sli4_config(phba, mbox, LPFC_MBOX_SUBSYSTEM_COMMON, mbox 6168 drivers/scsi/lpfc/lpfc_sli.c &mbox->u.mqe.un.set_feature, 1); mbox 6169 drivers/scsi/lpfc/lpfc_sli.c mbox->u.mqe.un.set_feature.feature = LPFC_SET_UE_RECOVERY; mbox 6170 drivers/scsi/lpfc/lpfc_sli.c mbox->u.mqe.un.set_feature.param_len = 8; mbox 6174 drivers/scsi/lpfc/lpfc_sli.c &mbox->u.mqe.un.set_feature, 1); mbox 6176 drivers/scsi/lpfc/lpfc_sli.c &mbox->u.mqe.un.set_feature, 1); mbox 6177 drivers/scsi/lpfc/lpfc_sli.c mbox->u.mqe.un.set_feature.feature = LPFC_SET_MDS_DIAGS; mbox 6178 drivers/scsi/lpfc/lpfc_sli.c mbox->u.mqe.un.set_feature.param_len = 8; mbox 6367 drivers/scsi/lpfc/lpfc_sli.c LPFC_MBOXQ_t *mbox; mbox 6389 drivers/scsi/lpfc/lpfc_sli.c mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); mbox 6390 drivers/scsi/lpfc/lpfc_sli.c if (!mbox) { mbox 6401 drivers/scsi/lpfc/lpfc_sli.c lpfc_sli4_config(phba, mbox, LPFC_MBOX_SUBSYSTEM_LOWLEVEL, mbox 6405 drivers/scsi/lpfc/lpfc_sli.c mbx_fwlog = (struct lpfc_mbx_set_ras_fwlog *)&mbox->u.mqe.un.ras_fwlog; mbox 6430 drivers/scsi/lpfc/lpfc_sli.c mbox->vport = phba->pport; mbox 6431 drivers/scsi/lpfc/lpfc_sli.c mbox->mbox_cmpl = lpfc_sli4_ras_mbox_cmpl; mbox 6433 drivers/scsi/lpfc/lpfc_sli.c rc = lpfc_sli_issue_mbox(phba, mbox, MBX_NOWAIT); mbox 6439 drivers/scsi/lpfc/lpfc_sli.c bf_get(lpfc_mqe_status, &mbox->u.mqe)); mbox 6440 drivers/scsi/lpfc/lpfc_sli.c mempool_free(mbox, phba->mbox_mem_pool); mbox 6767 drivers/scsi/lpfc/lpfc_sli.c LPFC_MBOXQ_t *mbox; mbox 6825 drivers/scsi/lpfc/lpfc_sli.c mbox = (LPFC_MBOXQ_t *) mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); mbox 6826 drivers/scsi/lpfc/lpfc_sli.c if (!mbox) mbox 6828 drivers/scsi/lpfc/lpfc_sli.c memset(mbox, 0, sizeof(LPFC_MBOXQ_t)); mbox 6830 drivers/scsi/lpfc/lpfc_sli.c alloc_len = lpfc_sli4_config(phba, mbox, LPFC_MBOX_SUBSYSTEM_COMMON, mbox 6841 drivers/scsi/lpfc/lpfc_sli.c rc = lpfc_sli4_mbox_rsrc_extent(phba, mbox, curr_blks, type, emb); mbox 6848 drivers/scsi/lpfc/lpfc_sli.c rc = lpfc_sli_issue_mbox(phba, mbox, MBX_POLL); mbox 6850 drivers/scsi/lpfc/lpfc_sli.c mbox_tmo = lpfc_mbox_tmo_val(phba, mbox); mbox 6851 drivers/scsi/lpfc/lpfc_sli.c rc = lpfc_sli_issue_mbox_wait(phba, mbox, mbox_tmo); mbox 6866 drivers/scsi/lpfc/lpfc_sli.c rsrc_ext = &mbox->u.mqe.un.alloc_rsrc_extents; mbox 6870 drivers/scsi/lpfc/lpfc_sli.c virtaddr = mbox->sge_array->addr[0]; mbox 6887 drivers/scsi/lpfc/lpfc_sli.c lpfc_sli4_mbox_cmd_free(phba, mbox); mbox 7074 drivers/scsi/lpfc/lpfc_sli.c lpfc_set_host_data(struct lpfc_hba *phba, LPFC_MBOXQ_t *mbox) mbox 7080 drivers/scsi/lpfc/lpfc_sli.c lpfc_sli4_config(phba, mbox, LPFC_MBOX_SUBSYSTEM_COMMON, mbox 7084 drivers/scsi/lpfc/lpfc_sli.c mbox->u.mqe.un.set_host_data.param_id = LPFC_SET_HOST_OS_DRIVER_VERSION; mbox 7085 drivers/scsi/lpfc/lpfc_sli.c mbox->u.mqe.un.set_host_data.param_len = mbox 7087 drivers/scsi/lpfc/lpfc_sli.c snprintf(mbox->u.mqe.un.set_host_data.data, mbox 8219 drivers/scsi/lpfc/lpfc_sli.c - (uint8_t *)phba->mbox; mbox 8229 drivers/scsi/lpfc/lpfc_sli.c lpfc_sli_pcimem_bcopy(mbx, phba->mbox, MAILBOX_CMD_SIZE); mbox 8244 drivers/scsi/lpfc/lpfc_sli.c lpfc_sli_pcimem_bcopy(mbx, phba->mbox, mbox 8285 drivers/scsi/lpfc/lpfc_sli.c word0 = *((uint32_t *)phba->mbox); mbox 8331 drivers/scsi/lpfc/lpfc_sli.c word0 = *((uint32_t *)phba->mbox); mbox 8360 drivers/scsi/lpfc/lpfc_sli.c lpfc_sli_pcimem_bcopy(phba->mbox, mbx, mbox 12346 drivers/scsi/lpfc/lpfc_sli.c MAILBOX_t *mbox, *pmbox; mbox 12499 drivers/scsi/lpfc/lpfc_sli.c mbox = phba->mbox; mbox 12503 drivers/scsi/lpfc/lpfc_sli.c lpfc_sli_pcimem_bcopy(mbox, pmbox, sizeof(uint32_t)); mbox 12526 drivers/scsi/lpfc/lpfc_sli.c lpfc_sli_pcimem_bcopy(mbox, pmbox, mbox 13085 drivers/scsi/lpfc/lpfc_sli.c MAILBOX_t *mbox, *pmbox; mbox 13111 drivers/scsi/lpfc/lpfc_sli.c mbox = phba->mbox; mbox 13119 drivers/scsi/lpfc/lpfc_sli.c if (pmb->mbox_cmpl && mbox) mbox 13120 drivers/scsi/lpfc/lpfc_sli.c lpfc_sli4_pcimem_bcopy(mbox, mqe, sizeof(struct lpfc_mqe)); mbox 14640 drivers/scsi/lpfc/lpfc_sli.c LPFC_MBOXQ_t *mbox; mbox 14675 drivers/scsi/lpfc/lpfc_sli.c mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); mbox 14676 drivers/scsi/lpfc/lpfc_sli.c if (!mbox) { mbox 14684 drivers/scsi/lpfc/lpfc_sli.c lpfc_sli4_config(phba, mbox, LPFC_MBOX_SUBSYSTEM_COMMON, mbox 14687 drivers/scsi/lpfc/lpfc_sli.c eq_delay = &mbox->u.mqe.un.eq_delay; mbox 14710 drivers/scsi/lpfc/lpfc_sli.c mbox->vport = phba->pport; mbox 14711 drivers/scsi/lpfc/lpfc_sli.c mbox->mbox_cmpl = lpfc_sli_def_mbox_cmpl; mbox 14712 drivers/scsi/lpfc/lpfc_sli.c mbox->ctx_buf = NULL; mbox 14713 drivers/scsi/lpfc/lpfc_sli.c mbox->ctx_ndlp = NULL; mbox 14714 drivers/scsi/lpfc/lpfc_sli.c rc = lpfc_sli_issue_mbox(phba, mbox, MBX_POLL); mbox 14724 drivers/scsi/lpfc/lpfc_sli.c mempool_free(mbox, phba->mbox_mem_pool); mbox 14752 drivers/scsi/lpfc/lpfc_sli.c LPFC_MBOXQ_t *mbox; mbox 14766 drivers/scsi/lpfc/lpfc_sli.c mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); mbox 14767 drivers/scsi/lpfc/lpfc_sli.c if (!mbox) mbox 14771 drivers/scsi/lpfc/lpfc_sli.c lpfc_sli4_config(phba, mbox, LPFC_MBOX_SUBSYSTEM_COMMON, mbox 14774 drivers/scsi/lpfc/lpfc_sli.c eq_create = &mbox->u.mqe.un.eq_create; mbox 14832 drivers/scsi/lpfc/lpfc_sli.c mbox->vport = phba->pport; mbox 14833 drivers/scsi/lpfc/lpfc_sli.c mbox->mbox_cmpl = lpfc_sli_def_mbox_cmpl; mbox 14834 drivers/scsi/lpfc/lpfc_sli.c mbox->ctx_buf = NULL; mbox 14835 drivers/scsi/lpfc/lpfc_sli.c mbox->ctx_ndlp = NULL; mbox 14836 drivers/scsi/lpfc/lpfc_sli.c rc = lpfc_sli_issue_mbox(phba, mbox, MBX_POLL); mbox 14855 drivers/scsi/lpfc/lpfc_sli.c mempool_free(mbox, phba->mbox_mem_pool); mbox 14886 drivers/scsi/lpfc/lpfc_sli.c LPFC_MBOXQ_t *mbox; mbox 14895 drivers/scsi/lpfc/lpfc_sli.c mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); mbox 14896 drivers/scsi/lpfc/lpfc_sli.c if (!mbox) mbox 14900 drivers/scsi/lpfc/lpfc_sli.c lpfc_sli4_config(phba, mbox, LPFC_MBOX_SUBSYSTEM_COMMON, mbox 14903 drivers/scsi/lpfc/lpfc_sli.c cq_create = &mbox->u.mqe.un.cq_create; mbox 14966 drivers/scsi/lpfc/lpfc_sli.c rc = lpfc_sli_issue_mbox(phba, mbox, MBX_POLL); mbox 14999 drivers/scsi/lpfc/lpfc_sli.c mempool_free(mbox, phba->mbox_mem_pool); mbox 15034 drivers/scsi/lpfc/lpfc_sli.c LPFC_MBOXQ_t *mbox; mbox 15046 drivers/scsi/lpfc/lpfc_sli.c mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); mbox 15047 drivers/scsi/lpfc/lpfc_sli.c if (!mbox) mbox 15053 drivers/scsi/lpfc/lpfc_sli.c alloclen = lpfc_sli4_config(phba, mbox, LPFC_MBOX_SUBSYSTEM_FCOE, mbox 15064 drivers/scsi/lpfc/lpfc_sli.c cq_set = mbox->sge_array->addr[0]; mbox 15223 drivers/scsi/lpfc/lpfc_sli.c rc = lpfc_sli_issue_mbox(phba, mbox, MBX_POLL); mbox 15250 drivers/scsi/lpfc/lpfc_sli.c lpfc_sli4_mbox_cmd_free(phba, mbox); mbox 15270 drivers/scsi/lpfc/lpfc_sli.c LPFC_MBOXQ_t *mbox, struct lpfc_queue *cq) mbox 15278 drivers/scsi/lpfc/lpfc_sli.c lpfc_sli4_config(phba, mbox, LPFC_MBOX_SUBSYSTEM_COMMON, mbox 15281 drivers/scsi/lpfc/lpfc_sli.c mq_create = &mbox->u.mqe.un.mq_create; mbox 15341 drivers/scsi/lpfc/lpfc_sli.c LPFC_MBOXQ_t *mbox; mbox 15353 drivers/scsi/lpfc/lpfc_sli.c mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); mbox 15354 drivers/scsi/lpfc/lpfc_sli.c if (!mbox) mbox 15358 drivers/scsi/lpfc/lpfc_sli.c lpfc_sli4_config(phba, mbox, LPFC_MBOX_SUBSYSTEM_COMMON, mbox 15362 drivers/scsi/lpfc/lpfc_sli.c mq_create_ext = &mbox->u.mqe.un.mq_create_ext; mbox 15423 drivers/scsi/lpfc/lpfc_sli.c rc = lpfc_sli_issue_mbox(phba, mbox, MBX_POLL); mbox 15431 drivers/scsi/lpfc/lpfc_sli.c lpfc_mq_create_fb_init(phba, mq, mbox, cq); mbox 15432 drivers/scsi/lpfc/lpfc_sli.c mq_create = &mbox->u.mqe.un.mq_create; mbox 15433 drivers/scsi/lpfc/lpfc_sli.c rc = lpfc_sli_issue_mbox(phba, mbox, MBX_POLL); mbox 15463 drivers/scsi/lpfc/lpfc_sli.c mempool_free(mbox, phba->mbox_mem_pool); mbox 15495 drivers/scsi/lpfc/lpfc_sli.c LPFC_MBOXQ_t *mbox; mbox 15515 drivers/scsi/lpfc/lpfc_sli.c mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); mbox 15516 drivers/scsi/lpfc/lpfc_sli.c if (!mbox) mbox 15520 drivers/scsi/lpfc/lpfc_sli.c lpfc_sli4_config(phba, mbox, LPFC_MBOX_SUBSYSTEM_FCOE, mbox 15523 drivers/scsi/lpfc/lpfc_sli.c wq_create = &mbox->u.mqe.un.wq_create; mbox 15587 drivers/scsi/lpfc/lpfc_sli.c rc = lpfc_sli_issue_mbox(phba, mbox, MBX_POLL); mbox 15729 drivers/scsi/lpfc/lpfc_sli.c mempool_free(mbox, phba->mbox_mem_pool); mbox 15762 drivers/scsi/lpfc/lpfc_sli.c LPFC_MBOXQ_t *mbox; mbox 15779 drivers/scsi/lpfc/lpfc_sli.c mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); mbox 15780 drivers/scsi/lpfc/lpfc_sli.c if (!mbox) mbox 15784 drivers/scsi/lpfc/lpfc_sli.c lpfc_sli4_config(phba, mbox, LPFC_MBOX_SUBSYSTEM_FCOE, mbox 15787 drivers/scsi/lpfc/lpfc_sli.c rq_create = &mbox->u.mqe.un.rq_create; mbox 15851 drivers/scsi/lpfc/lpfc_sli.c rc = lpfc_sli_issue_mbox(phba, mbox, MBX_POLL); mbox 15921 drivers/scsi/lpfc/lpfc_sli.c lpfc_sli4_config(phba, mbox, LPFC_MBOX_SUBSYSTEM_FCOE, mbox 15992 drivers/scsi/lpfc/lpfc_sli.c rc = lpfc_sli_issue_mbox(phba, mbox, MBX_POLL); mbox 16018 drivers/scsi/lpfc/lpfc_sli.c mempool_free(mbox, phba->mbox_mem_pool); mbox 16053 drivers/scsi/lpfc/lpfc_sli.c LPFC_MBOXQ_t *mbox; mbox 16067 drivers/scsi/lpfc/lpfc_sli.c mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); mbox 16068 drivers/scsi/lpfc/lpfc_sli.c if (!mbox) mbox 16075 drivers/scsi/lpfc/lpfc_sli.c alloclen = lpfc_sli4_config(phba, mbox, LPFC_MBOX_SUBSYSTEM_FCOE, mbox 16089 drivers/scsi/lpfc/lpfc_sli.c rq_create = mbox->sge_array->addr[0]; mbox 16184 drivers/scsi/lpfc/lpfc_sli.c rc = lpfc_sli_issue_mbox(phba, mbox, MBX_POLL); mbox 16211 drivers/scsi/lpfc/lpfc_sli.c lpfc_sli4_mbox_cmd_free(phba, mbox); mbox 16230 drivers/scsi/lpfc/lpfc_sli.c LPFC_MBOXQ_t *mbox; mbox 16239 drivers/scsi/lpfc/lpfc_sli.c mbox = mempool_alloc(eq->phba->mbox_mem_pool, GFP_KERNEL); mbox 16240 drivers/scsi/lpfc/lpfc_sli.c if (!mbox) mbox 16244 drivers/scsi/lpfc/lpfc_sli.c lpfc_sli4_config(phba, mbox, LPFC_MBOX_SUBSYSTEM_COMMON, mbox 16247 drivers/scsi/lpfc/lpfc_sli.c bf_set(lpfc_mbx_eq_destroy_q_id, &mbox->u.mqe.un.eq_destroy.u.request, mbox 16249 drivers/scsi/lpfc/lpfc_sli.c mbox->vport = eq->phba->pport; mbox 16250 drivers/scsi/lpfc/lpfc_sli.c mbox->mbox_cmpl = lpfc_sli_def_mbox_cmpl; mbox 16252 drivers/scsi/lpfc/lpfc_sli.c rc = lpfc_sli_issue_mbox(eq->phba, mbox, MBX_POLL); mbox 16255 drivers/scsi/lpfc/lpfc_sli.c &mbox->u.mqe.un.eq_destroy.header.cfg_shdr; mbox 16268 drivers/scsi/lpfc/lpfc_sli.c mempool_free(mbox, eq->phba->mbox_mem_pool); mbox 16287 drivers/scsi/lpfc/lpfc_sli.c LPFC_MBOXQ_t *mbox; mbox 16295 drivers/scsi/lpfc/lpfc_sli.c mbox = mempool_alloc(cq->phba->mbox_mem_pool, GFP_KERNEL); mbox 16296 drivers/scsi/lpfc/lpfc_sli.c if (!mbox) mbox 16300 drivers/scsi/lpfc/lpfc_sli.c lpfc_sli4_config(phba, mbox, LPFC_MBOX_SUBSYSTEM_COMMON, mbox 16303 drivers/scsi/lpfc/lpfc_sli.c bf_set(lpfc_mbx_cq_destroy_q_id, &mbox->u.mqe.un.cq_destroy.u.request, mbox 16305 drivers/scsi/lpfc/lpfc_sli.c mbox->vport = cq->phba->pport; mbox 16306 drivers/scsi/lpfc/lpfc_sli.c mbox->mbox_cmpl = lpfc_sli_def_mbox_cmpl; mbox 16307 drivers/scsi/lpfc/lpfc_sli.c rc = lpfc_sli_issue_mbox(cq->phba, mbox, MBX_POLL); mbox 16310 drivers/scsi/lpfc/lpfc_sli.c &mbox->u.mqe.un.wq_create.header.cfg_shdr; mbox 16322 drivers/scsi/lpfc/lpfc_sli.c mempool_free(mbox, cq->phba->mbox_mem_pool); mbox 16341 drivers/scsi/lpfc/lpfc_sli.c LPFC_MBOXQ_t *mbox; mbox 16349 drivers/scsi/lpfc/lpfc_sli.c mbox = mempool_alloc(mq->phba->mbox_mem_pool, GFP_KERNEL); mbox 16350 drivers/scsi/lpfc/lpfc_sli.c if (!mbox) mbox 16354 drivers/scsi/lpfc/lpfc_sli.c lpfc_sli4_config(phba, mbox, LPFC_MBOX_SUBSYSTEM_COMMON, mbox 16357 drivers/scsi/lpfc/lpfc_sli.c bf_set(lpfc_mbx_mq_destroy_q_id, &mbox->u.mqe.un.mq_destroy.u.request, mbox 16359 drivers/scsi/lpfc/lpfc_sli.c mbox->vport = mq->phba->pport; mbox 16360 drivers/scsi/lpfc/lpfc_sli.c mbox->mbox_cmpl = lpfc_sli_def_mbox_cmpl; mbox 16361 drivers/scsi/lpfc/lpfc_sli.c rc = lpfc_sli_issue_mbox(mq->phba, mbox, MBX_POLL); mbox 16364 drivers/scsi/lpfc/lpfc_sli.c &mbox->u.mqe.un.mq_destroy.header.cfg_shdr; mbox 16376 drivers/scsi/lpfc/lpfc_sli.c mempool_free(mbox, mq->phba->mbox_mem_pool); mbox 16395 drivers/scsi/lpfc/lpfc_sli.c LPFC_MBOXQ_t *mbox; mbox 16403 drivers/scsi/lpfc/lpfc_sli.c mbox = mempool_alloc(wq->phba->mbox_mem_pool, GFP_KERNEL); mbox 16404 drivers/scsi/lpfc/lpfc_sli.c if (!mbox) mbox 16408 drivers/scsi/lpfc/lpfc_sli.c lpfc_sli4_config(phba, mbox, LPFC_MBOX_SUBSYSTEM_FCOE, mbox 16411 drivers/scsi/lpfc/lpfc_sli.c bf_set(lpfc_mbx_wq_destroy_q_id, &mbox->u.mqe.un.wq_destroy.u.request, mbox 16413 drivers/scsi/lpfc/lpfc_sli.c mbox->vport = wq->phba->pport; mbox 16414 drivers/scsi/lpfc/lpfc_sli.c mbox->mbox_cmpl = lpfc_sli_def_mbox_cmpl; mbox 16415 drivers/scsi/lpfc/lpfc_sli.c rc = lpfc_sli_issue_mbox(wq->phba, mbox, MBX_POLL); mbox 16417 drivers/scsi/lpfc/lpfc_sli.c &mbox->u.mqe.un.wq_destroy.header.cfg_shdr; mbox 16431 drivers/scsi/lpfc/lpfc_sli.c mempool_free(mbox, wq->phba->mbox_mem_pool); mbox 16451 drivers/scsi/lpfc/lpfc_sli.c LPFC_MBOXQ_t *mbox; mbox 16459 drivers/scsi/lpfc/lpfc_sli.c mbox = mempool_alloc(hrq->phba->mbox_mem_pool, GFP_KERNEL); mbox 16460 drivers/scsi/lpfc/lpfc_sli.c if (!mbox) mbox 16464 drivers/scsi/lpfc/lpfc_sli.c lpfc_sli4_config(phba, mbox, LPFC_MBOX_SUBSYSTEM_FCOE, mbox 16467 drivers/scsi/lpfc/lpfc_sli.c bf_set(lpfc_mbx_rq_destroy_q_id, &mbox->u.mqe.un.rq_destroy.u.request, mbox 16469 drivers/scsi/lpfc/lpfc_sli.c mbox->vport = hrq->phba->pport; mbox 16470 drivers/scsi/lpfc/lpfc_sli.c mbox->mbox_cmpl = lpfc_sli_def_mbox_cmpl; mbox 16471 drivers/scsi/lpfc/lpfc_sli.c rc = lpfc_sli_issue_mbox(hrq->phba, mbox, MBX_POLL); mbox 16474 drivers/scsi/lpfc/lpfc_sli.c &mbox->u.mqe.un.rq_destroy.header.cfg_shdr; mbox 16483 drivers/scsi/lpfc/lpfc_sli.c mempool_free(mbox, hrq->phba->mbox_mem_pool); mbox 16486 drivers/scsi/lpfc/lpfc_sli.c bf_set(lpfc_mbx_rq_destroy_q_id, &mbox->u.mqe.un.rq_destroy.u.request, mbox 16488 drivers/scsi/lpfc/lpfc_sli.c rc = lpfc_sli_issue_mbox(drq->phba, mbox, MBX_POLL); mbox 16490 drivers/scsi/lpfc/lpfc_sli.c &mbox->u.mqe.un.rq_destroy.header.cfg_shdr; mbox 16502 drivers/scsi/lpfc/lpfc_sli.c mempool_free(mbox, hrq->phba->mbox_mem_pool); mbox 16535 drivers/scsi/lpfc/lpfc_sli.c LPFC_MBOXQ_t *mbox; mbox 16547 drivers/scsi/lpfc/lpfc_sli.c mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); mbox 16548 drivers/scsi/lpfc/lpfc_sli.c if (!mbox) mbox 16551 drivers/scsi/lpfc/lpfc_sli.c lpfc_sli4_config(phba, mbox, LPFC_MBOX_SUBSYSTEM_FCOE, mbox 16557 drivers/scsi/lpfc/lpfc_sli.c &mbox->u.mqe.un.post_sgl_pages; mbox 16571 drivers/scsi/lpfc/lpfc_sli.c rc = lpfc_sli_issue_mbox(phba, mbox, MBX_POLL); mbox 16573 drivers/scsi/lpfc/lpfc_sli.c mbox_tmo = lpfc_mbox_tmo_val(phba, mbox); mbox 16574 drivers/scsi/lpfc/lpfc_sli.c rc = lpfc_sli_issue_mbox_wait(phba, mbox, mbox_tmo); mbox 16581 drivers/scsi/lpfc/lpfc_sli.c mempool_free(mbox, phba->mbox_mem_pool); mbox 16703 drivers/scsi/lpfc/lpfc_sli.c LPFC_MBOXQ_t *mbox; mbox 16720 drivers/scsi/lpfc/lpfc_sli.c mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); mbox 16721 drivers/scsi/lpfc/lpfc_sli.c if (!mbox) mbox 16725 drivers/scsi/lpfc/lpfc_sli.c alloclen = lpfc_sli4_config(phba, mbox, LPFC_MBOX_SUBSYSTEM_FCOE, mbox 16734 drivers/scsi/lpfc/lpfc_sli.c lpfc_sli4_mbox_cmd_free(phba, mbox); mbox 16738 drivers/scsi/lpfc/lpfc_sli.c viraddr = mbox->sge_array->addr[0]; mbox 16767 drivers/scsi/lpfc/lpfc_sli.c rc = lpfc_sli_issue_mbox(phba, mbox, MBX_POLL); mbox 16769 drivers/scsi/lpfc/lpfc_sli.c mbox_tmo = lpfc_mbox_tmo_val(phba, mbox); mbox 16770 drivers/scsi/lpfc/lpfc_sli.c rc = lpfc_sli_issue_mbox_wait(phba, mbox, mbox_tmo); mbox 16776 drivers/scsi/lpfc/lpfc_sli.c lpfc_sli4_mbox_cmd_free(phba, mbox); mbox 16806 drivers/scsi/lpfc/lpfc_sli.c LPFC_MBOXQ_t *mbox; mbox 16824 drivers/scsi/lpfc/lpfc_sli.c mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); mbox 16825 drivers/scsi/lpfc/lpfc_sli.c if (!mbox) { mbox 16832 drivers/scsi/lpfc/lpfc_sli.c alloclen = lpfc_sli4_config(phba, mbox, LPFC_MBOX_SUBSYSTEM_FCOE, mbox 16841 drivers/scsi/lpfc/lpfc_sli.c lpfc_sli4_mbox_cmd_free(phba, mbox); mbox 16846 drivers/scsi/lpfc/lpfc_sli.c viraddr = mbox->sge_array->addr[0]; mbox 16880 drivers/scsi/lpfc/lpfc_sli.c rc = lpfc_sli_issue_mbox(phba, mbox, MBX_POLL); mbox 16882 drivers/scsi/lpfc/lpfc_sli.c mbox_tmo = lpfc_mbox_tmo_val(phba, mbox); mbox 16883 drivers/scsi/lpfc/lpfc_sli.c rc = lpfc_sli_issue_mbox_wait(phba, mbox, mbox_tmo); mbox 16889 drivers/scsi/lpfc/lpfc_sli.c lpfc_sli4_mbox_cmd_free(phba, mbox); mbox 19020 drivers/scsi/lpfc/lpfc_sli.c lpfc_mbx_cmpl_redisc_fcf_table(struct lpfc_hba *phba, LPFC_MBOXQ_t *mbox) mbox 19025 drivers/scsi/lpfc/lpfc_sli.c redisc_fcf = &mbox->u.mqe.un.redisc_fcf_tbl; mbox 19066 drivers/scsi/lpfc/lpfc_sli.c mempool_free(mbox, phba->mbox_mem_pool); mbox 19079 drivers/scsi/lpfc/lpfc_sli.c LPFC_MBOXQ_t *mbox; mbox 19086 drivers/scsi/lpfc/lpfc_sli.c mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); mbox 19087 drivers/scsi/lpfc/lpfc_sli.c if (!mbox) { mbox 19096 drivers/scsi/lpfc/lpfc_sli.c lpfc_sli4_config(phba, mbox, LPFC_MBOX_SUBSYSTEM_FCOE, mbox 19100 drivers/scsi/lpfc/lpfc_sli.c redisc_fcf = &mbox->u.mqe.un.redisc_fcf_tbl; mbox 19105 drivers/scsi/lpfc/lpfc_sli.c mbox->vport = phba->pport; mbox 19106 drivers/scsi/lpfc/lpfc_sli.c mbox->mbox_cmpl = lpfc_mbx_cmpl_redisc_fcf_table; mbox 19107 drivers/scsi/lpfc/lpfc_sli.c rc = lpfc_sli_issue_mbox(phba, mbox, MBX_NOWAIT); mbox 19110 drivers/scsi/lpfc/lpfc_sli.c mempool_free(mbox, phba->mbox_mem_pool); mbox 19373 drivers/scsi/lpfc/lpfc_sli.c LPFC_MBOXQ_t *mbox; mbox 19381 drivers/scsi/lpfc/lpfc_sli.c mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); mbox 19382 drivers/scsi/lpfc/lpfc_sli.c if (!mbox) mbox 19385 drivers/scsi/lpfc/lpfc_sli.c lpfc_sli4_config(phba, mbox, LPFC_MBOX_SUBSYSTEM_COMMON, mbox 19390 drivers/scsi/lpfc/lpfc_sli.c wr_object = (struct lpfc_mbx_wr_object *)&mbox->u.mqe.un.wr_object; mbox 19419 drivers/scsi/lpfc/lpfc_sli.c rc = lpfc_sli_issue_mbox(phba, mbox, MBX_POLL); mbox 19421 drivers/scsi/lpfc/lpfc_sli.c mbox_tmo = lpfc_mbox_tmo_val(phba, mbox); mbox 19422 drivers/scsi/lpfc/lpfc_sli.c rc = lpfc_sli_issue_mbox_wait(phba, mbox, mbox_tmo); mbox 19459 drivers/scsi/lpfc/lpfc_sli.c mempool_free(mbox, phba->mbox_mem_pool); mbox 112 drivers/scsi/lpfc/lpfc_sli.h struct lpfcMboxq *mbox; mbox 141 drivers/scsi/megaraid.c adapter->mbox = &adapter->una_mbox64->mbox; mbox 143 drivers/scsi/megaraid.c adapter->mbox = (mbox_t *)((((unsigned long) adapter->mbox) + 15) & mbox 146 drivers/scsi/megaraid.c adapter->mbox64 = (mbox64_t *)(((unsigned long)adapter->mbox) - 8); mbox 148 drivers/scsi/megaraid.c align = ((void *)adapter->mbox) - ((void *)&adapter->una_mbox64->mbox); mbox 194 drivers/scsi/megaraid.c mbox_t *mbox; mbox 199 drivers/scsi/megaraid.c mbox = (mbox_t *)raw_mbox; mbox 202 drivers/scsi/megaraid.c memset(&mbox->m_out, 0, sizeof(raw_mbox)); mbox 209 drivers/scsi/megaraid.c mbox->m_out.xferaddr = (u32)adapter->buf_dma_handle; mbox 232 drivers/scsi/megaraid.c mbox->m_out.xferaddr = (u32)dma_handle; mbox 235 drivers/scsi/megaraid.c mbox->m_out.cmd = MEGA_MBOXCMD_ADPEXTINQ; mbox 260 drivers/scsi/megaraid.c mbox->m_out.xferaddr = prod_info_dma_handle; mbox 523 drivers/scsi/megaraid.c mbox_t *mbox; mbox 694 drivers/scsi/megaraid.c mbox = (mbox_t *)scb->raw_mbox; mbox 695 drivers/scsi/megaraid.c memset(mbox, 0, sizeof(scb->raw_mbox)); mbox 707 drivers/scsi/megaraid.c mbox->m_out.cmd = MEGA_MBOXCMD_PASSTHRU64; mbox 710 drivers/scsi/megaraid.c mbox->m_out.cmd = MEGA_MBOXCMD_PASSTHRU; mbox 718 drivers/scsi/megaraid.c mbox->m_out.xferaddr = scb->pthru_dma_addr; mbox 734 drivers/scsi/megaraid.c mbox = (mbox_t *)scb->raw_mbox; mbox 736 drivers/scsi/megaraid.c memset(mbox, 0, sizeof(scb->raw_mbox)); mbox 737 drivers/scsi/megaraid.c mbox->m_out.logdrv = ldrv_num; mbox 744 drivers/scsi/megaraid.c mbox->m_out.cmd = (*cmd->cmnd & 0x02) ? mbox 749 drivers/scsi/megaraid.c mbox->m_out.cmd = (*cmd->cmnd & 0x02) ? mbox 758 drivers/scsi/megaraid.c mbox->m_out.numsectors = (u32) cmd->cmnd[4]; mbox 759 drivers/scsi/megaraid.c mbox->m_out.lba = mbox 764 drivers/scsi/megaraid.c mbox->m_out.lba &= 0x1FFFFF; mbox 775 drivers/scsi/megaraid.c mbox->m_out.numsectors; mbox 779 drivers/scsi/megaraid.c mbox->m_out.numsectors; mbox 788 drivers/scsi/megaraid.c mbox->m_out.numsectors = mbox 791 drivers/scsi/megaraid.c mbox->m_out.lba = mbox 801 drivers/scsi/megaraid.c mbox->m_out.numsectors; mbox 805 drivers/scsi/megaraid.c mbox->m_out.numsectors; mbox 814 drivers/scsi/megaraid.c mbox->m_out.lba = mbox 820 drivers/scsi/megaraid.c mbox->m_out.numsectors = mbox 830 drivers/scsi/megaraid.c mbox->m_out.numsectors; mbox 834 drivers/scsi/megaraid.c mbox->m_out.numsectors; mbox 850 drivers/scsi/megaraid.c mbox->m_out.numsgelements = mega_build_sglist(adapter, scb, mbox 851 drivers/scsi/megaraid.c (u32 *)&mbox->m_out.xferaddr, &seg); mbox 903 drivers/scsi/megaraid.c mbox = (mbox_t *)scb->raw_mbox; mbox 904 drivers/scsi/megaraid.c memset(mbox, 0, sizeof(scb->raw_mbox)); mbox 911 drivers/scsi/megaraid.c mbox->m_out.cmd = MEGA_MBOXCMD_EXTPTHRU; mbox 913 drivers/scsi/megaraid.c mbox->m_out.xferaddr = scb->epthru_dma_addr; mbox 923 drivers/scsi/megaraid.c mbox->m_out.cmd = MEGA_MBOXCMD_PASSTHRU64; mbox 926 drivers/scsi/megaraid.c mbox->m_out.cmd = MEGA_MBOXCMD_PASSTHRU; mbox 929 drivers/scsi/megaraid.c mbox->m_out.xferaddr = scb->pthru_dma_addr; mbox 1099 drivers/scsi/megaraid.c volatile mbox_t *mbox = adapter->mbox; mbox 1102 drivers/scsi/megaraid.c if(unlikely(mbox->m_in.busy)) { mbox 1106 drivers/scsi/megaraid.c } while( mbox->m_in.busy && (i < max_mbox_busy_wait) ); mbox 1108 drivers/scsi/megaraid.c if(mbox->m_in.busy) return -1; mbox 1112 drivers/scsi/megaraid.c memcpy((char *)&mbox->m_out, (char *)scb->raw_mbox, mbox 1115 drivers/scsi/megaraid.c mbox->m_out.cmdid = scb->idx; /* Set cmdid */ mbox 1116 drivers/scsi/megaraid.c mbox->m_in.busy = 1; /* Set busy */ mbox 1124 drivers/scsi/megaraid.c switch (mbox->m_out.cmd) { mbox 1129 drivers/scsi/megaraid.c mbox64->xfer_segment_lo = mbox->m_out.xferaddr; mbox 1131 drivers/scsi/megaraid.c mbox->m_out.xferaddr = 0xFFFFFFFF; mbox 1144 drivers/scsi/megaraid.c mbox->m_in.poll = 0; mbox 1145 drivers/scsi/megaraid.c mbox->m_in.ack = 0; mbox 1162 drivers/scsi/megaraid.c if (adapter->mbox->m_in.busy) mbox 1178 drivers/scsi/megaraid.c volatile mbox_t *mbox = adapter->mbox; mbox 1186 drivers/scsi/megaraid.c memcpy((char *) mbox, raw_mbox, sizeof(struct mbox_out)); mbox 1187 drivers/scsi/megaraid.c mbox->m_out.cmdid = 0xFE; mbox 1188 drivers/scsi/megaraid.c mbox->m_in.busy = 1; mbox 1195 drivers/scsi/megaraid.c mbox64->xfer_segment_lo = mbox->m_out.xferaddr; mbox 1197 drivers/scsi/megaraid.c mbox->m_out.xferaddr = 0xFFFFFFFF; mbox 1205 drivers/scsi/megaraid.c mbox->m_in.poll = 0; mbox 1206 drivers/scsi/megaraid.c mbox->m_in.ack = 0; mbox 1207 drivers/scsi/megaraid.c mbox->m_in.numstatus = 0xFF; mbox 1208 drivers/scsi/megaraid.c mbox->m_in.status = 0xFF; mbox 1211 drivers/scsi/megaraid.c while((volatile u8)mbox->m_in.numstatus == 0xFF) mbox 1214 drivers/scsi/megaraid.c mbox->m_in.numstatus = 0xFF; mbox 1216 drivers/scsi/megaraid.c while( (volatile u8)mbox->m_in.poll != 0x77 ) mbox 1219 drivers/scsi/megaraid.c mbox->m_in.poll = 0; mbox 1220 drivers/scsi/megaraid.c mbox->m_in.ack = 0x77; mbox 1239 drivers/scsi/megaraid.c return mbox->m_in.status; mbox 1285 drivers/scsi/megaraid.c while((nstatus = (volatile u8)adapter->mbox->m_in.numstatus) mbox 1288 drivers/scsi/megaraid.c adapter->mbox->m_in.numstatus = 0xFF; mbox 1290 drivers/scsi/megaraid.c status = adapter->mbox->m_in.status; mbox 1297 drivers/scsi/megaraid.c memcpy(completed, (void *)adapter->mbox->m_in.completed, mbox 1361 drivers/scsi/megaraid.c while((nstatus = (volatile u8)adapter->mbox->m_in.numstatus) mbox 1365 drivers/scsi/megaraid.c adapter->mbox->m_in.numstatus = 0xFF; mbox 1367 drivers/scsi/megaraid.c status = adapter->mbox->m_in.status; mbox 1374 drivers/scsi/megaraid.c memcpy(completed, (void *)adapter->mbox->m_in.completed, mbox 1418 drivers/scsi/megaraid.c mbox_t *mbox = NULL; mbox 1503 drivers/scsi/megaraid.c mbox = (mbox_t *)scb->raw_mbox; mbox 1508 drivers/scsi/megaraid.c int logdrv = mbox->m_out.logdrv; mbox 1576 drivers/scsi/megaraid.c if( mbox->m_out.cmd == MEGA_MBOXCMD_PASSTHRU || mbox 1577 drivers/scsi/megaraid.c mbox->m_out.cmd == MEGA_MBOXCMD_PASSTHRU64 ) { mbox 1587 drivers/scsi/megaraid.c if (mbox->m_out.cmd == MEGA_MBOXCMD_EXTPTHRU) { mbox 1701 drivers/scsi/megaraid.c volatile mbox_t *mbox = adapter->mbox; mbox 1705 drivers/scsi/megaraid.c if (!mbox->m_in.busy) mbox 2156 drivers/scsi/megaraid.c volatile mbox_t *mbox = adapter->mbox; mbox 2159 drivers/scsi/megaraid.c seq_printf(m, " Fw Command = 0x%02x\n", mbox->m_out.cmd); mbox 2160 drivers/scsi/megaraid.c seq_printf(m, " Cmd Sequence = 0x%02x\n", mbox->m_out.cmdid); mbox 2161 drivers/scsi/megaraid.c seq_printf(m, " No of Sectors= %04d\n", mbox->m_out.numsectors); mbox 2162 drivers/scsi/megaraid.c seq_printf(m, " LBA = 0x%02x\n", mbox->m_out.lba); mbox 2163 drivers/scsi/megaraid.c seq_printf(m, " DTA = 0x%08x\n", mbox->m_out.xferaddr); mbox 2164 drivers/scsi/megaraid.c seq_printf(m, " Logical Drive= 0x%02x\n", mbox->m_out.logdrv); mbox 2165 drivers/scsi/megaraid.c seq_printf(m, " No of SG Elmt= 0x%02x\n", mbox->m_out.numsgelements); mbox 2166 drivers/scsi/megaraid.c seq_printf(m, " Busy = %01x\n", mbox->m_in.busy); mbox 2167 drivers/scsi/megaraid.c seq_printf(m, " Status = 0x%02x\n", mbox->m_in.status); mbox 3473 drivers/scsi/megaraid.c memcpy(uioc->uioc_rmbox, uioc_mimd.mbox, 18); mbox 3487 drivers/scsi/megaraid.c memcpy(uioc->uioc_rmbox, uioc_mimd.mbox, 18); mbox 3552 drivers/scsi/megaraid.c if( put_user(mc->status, (u8 __user *)&uioc_mimd->mbox[17]) ) mbox 3557 drivers/scsi/megaraid.c umc = (megacmd_t __user *)uioc_mimd->mbox; mbox 3585 drivers/scsi/megaraid.c mbox_t *mbox; mbox 3588 drivers/scsi/megaraid.c mbox = (mbox_t *)raw_mbox; mbox 3590 drivers/scsi/megaraid.c memset(&mbox->m_out, 0, sizeof(raw_mbox)); mbox 3594 drivers/scsi/megaraid.c mbox->m_out.xferaddr = (u32)adapter->buf_dma_handle; mbox 3618 drivers/scsi/megaraid.c mbox_t *mbox; mbox 3621 drivers/scsi/megaraid.c mbox = (mbox_t *)raw_mbox; mbox 3623 drivers/scsi/megaraid.c memset(&mbox->m_out, 0, sizeof(raw_mbox)); mbox 3633 drivers/scsi/megaraid.c mbox->m_out.xferaddr = (u32)adapter->buf_dma_handle; mbox 3673 drivers/scsi/megaraid.c mbox_t *mbox; mbox 3679 drivers/scsi/megaraid.c mbox = (mbox_t *)raw_mbox; mbox 3681 drivers/scsi/megaraid.c memset(&mbox->m_out, 0, sizeof(raw_mbox)); mbox 3688 drivers/scsi/megaraid.c mbox->m_out.xferaddr = (u32)adapter->buf_dma_handle; mbox 3739 drivers/scsi/megaraid.c mbox_t *mbox; mbox 3742 drivers/scsi/megaraid.c mbox = (mbox_t *)raw_mbox; mbox 3744 drivers/scsi/megaraid.c memset(&mbox->m_out, 0, sizeof(raw_mbox)); mbox 3768 drivers/scsi/megaraid.c mbox_t *mbox; mbox 3771 drivers/scsi/megaraid.c mbox = (mbox_t *)raw_mbox; mbox 3773 drivers/scsi/megaraid.c memset(&mbox->m_out, 0, sizeof(raw_mbox)); mbox 3883 drivers/scsi/megaraid.c mbox_t *mbox; mbox 3885 drivers/scsi/megaraid.c mbox = (mbox_t *)raw_mbox; mbox 3887 drivers/scsi/megaraid.c memset(mbox, 0, sizeof(raw_mbox)); mbox 3891 drivers/scsi/megaraid.c mbox->m_out.xferaddr = (u32)adapter->buf_dma_handle; mbox 3928 drivers/scsi/megaraid.c mbox_t *mbox; mbox 3930 drivers/scsi/megaraid.c mbox = (mbox_t *)raw_mbox; mbox 3932 drivers/scsi/megaraid.c memset(mbox, 0, sizeof(raw_mbox)); mbox 3936 drivers/scsi/megaraid.c mbox->m_out.xferaddr = (u32)adapter->buf_dma_handle; mbox 4514 drivers/scsi/megaraid.c mbox_t *mbox = (mbox_t *)raw_mbox; mbox 4518 drivers/scsi/megaraid.c memset(&mbox->m_out, 0, sizeof(raw_mbox)); mbox 4527 drivers/scsi/megaraid.c memset(&mbox->m_out, 0, sizeof(raw_mbox)); mbox 117 drivers/scsi/megaraid.h mbox_t mbox; mbox 488 drivers/scsi/megaraid.h u8 mbox[18]; /* 16 bytes + 2 status bytes */ mbox 778 drivers/scsi/megaraid.h volatile mbox_t *mbox; /* ptr to standard mailbox */ mbox 980 drivers/scsi/megaraid/megaraid_mbox.c raid_dev->mbox = &raid_dev->una_mbox64->mbox32; mbox 982 drivers/scsi/megaraid/megaraid_mbox.c raid_dev->mbox = (mbox_t *)((((unsigned long)raid_dev->mbox) + 15) & mbox 985 drivers/scsi/megaraid/megaraid_mbox.c raid_dev->mbox64 = (mbox64_t *)(((unsigned long)raid_dev->mbox) - 8); mbox 987 drivers/scsi/megaraid/megaraid_mbox.c align = ((void *)raid_dev->mbox - mbox 1042 drivers/scsi/megaraid/megaraid_mbox.c ccb->mbox = (mbox_t *)(mbox_pci_blk[i].vaddr + 16); mbox 1043 drivers/scsi/megaraid/megaraid_mbox.c ccb->raw_mbox = (uint8_t *)ccb->mbox; mbox 1378 drivers/scsi/megaraid/megaraid_mbox.c mbox_t *mbox; mbox 1385 drivers/scsi/megaraid/megaraid_mbox.c mbox = raid_dev->mbox; mbox 1394 drivers/scsi/megaraid/megaraid_mbox.c if (unlikely(mbox->busy)) { mbox 1399 drivers/scsi/megaraid/megaraid_mbox.c } while(mbox->busy && (i < max_mbox_busy_wait)); mbox 1401 drivers/scsi/megaraid/megaraid_mbox.c if (mbox->busy) { mbox 1412 drivers/scsi/megaraid/megaraid_mbox.c mbox->cmdid = scb->sno; mbox 1416 drivers/scsi/megaraid/megaraid_mbox.c mbox->busy = 1; // Set busy mbox 1417 drivers/scsi/megaraid/megaraid_mbox.c mbox->poll = 0; mbox 1418 drivers/scsi/megaraid/megaraid_mbox.c mbox->ack = 0; mbox 1489 drivers/scsi/megaraid/megaraid_mbox.c mbox_t *mbox; mbox 1612 drivers/scsi/megaraid/megaraid_mbox.c mbox = ccb->mbox; mbox 1623 drivers/scsi/megaraid/megaraid_mbox.c mbox->cmd = MBOXCMD_PASSTHRU64; mbox 1631 drivers/scsi/megaraid/megaraid_mbox.c mbox->xferaddr = 0xFFFFFFFF; mbox 1655 drivers/scsi/megaraid/megaraid_mbox.c mbox = ccb->mbox; mbox 1657 drivers/scsi/megaraid/megaraid_mbox.c mbox->logdrv = target; mbox 1663 drivers/scsi/megaraid/megaraid_mbox.c mbox->cmd = (scp->cmnd[0] & 0x02) ? MBOXCMD_LWRITE64: mbox 1670 drivers/scsi/megaraid/megaraid_mbox.c mbox->numsectors = (uint32_t)scp->cmnd[4]; mbox 1671 drivers/scsi/megaraid/megaraid_mbox.c mbox->lba = mbox 1676 drivers/scsi/megaraid/megaraid_mbox.c mbox->lba &= 0x1FFFFF; mbox 1683 drivers/scsi/megaraid/megaraid_mbox.c mbox->numsectors = mbox 1686 drivers/scsi/megaraid/megaraid_mbox.c mbox->lba = mbox 1697 drivers/scsi/megaraid/megaraid_mbox.c mbox->lba = mbox 1703 drivers/scsi/megaraid/megaraid_mbox.c mbox->numsectors = mbox 1723 drivers/scsi/megaraid/megaraid_mbox.c mbox->numsge = megaraid_mbox_mksgl(adapter, mbox 1725 drivers/scsi/megaraid/megaraid_mbox.c mbox->xferaddr = 0xFFFFFFFF; mbox 1821 drivers/scsi/megaraid/megaraid_mbox.c mbox = ccb->mbox; mbox 1826 drivers/scsi/megaraid/megaraid_mbox.c mbox->cmd = MBOXCMD_EXTPTHRU; mbox 1832 drivers/scsi/megaraid/megaraid_mbox.c mbox->xferaddr = 0xFFFFFFFF; mbox 1835 drivers/scsi/megaraid/megaraid_mbox.c mbox->cmd = MBOXCMD_PASSTHRU64; mbox 1841 drivers/scsi/megaraid/megaraid_mbox.c mbox->xferaddr = 0xFFFFFFFF; mbox 2036 drivers/scsi/megaraid/megaraid_mbox.c mbox_t *mbox; mbox 2047 drivers/scsi/megaraid/megaraid_mbox.c mbox = raid_dev->mbox; mbox 2070 drivers/scsi/megaraid/megaraid_mbox.c if (mbox->numstatus != 0xFF) { mbox 2071 drivers/scsi/megaraid/megaraid_mbox.c nstatus = mbox->numstatus; mbox 2076 drivers/scsi/megaraid/megaraid_mbox.c mbox->numstatus = 0xFF; mbox 2084 drivers/scsi/megaraid/megaraid_mbox.c if (mbox->completed[i] != 0xFF) break; mbox 2087 drivers/scsi/megaraid/megaraid_mbox.c completed[i] = mbox->completed[i]; mbox 2088 drivers/scsi/megaraid/megaraid_mbox.c mbox->completed[i] = 0xFF; mbox 2109 drivers/scsi/megaraid/megaraid_mbox.c scb->status = mbox->status; mbox 2186 drivers/scsi/megaraid/megaraid_mbox.c mbox_t *mbox; mbox 2214 drivers/scsi/megaraid/megaraid_mbox.c mbox = ccb->mbox; mbox 2298 drivers/scsi/megaraid/megaraid_mbox.c if (mbox->cmd == MBOXCMD_PASSTHRU || mbox 2299 drivers/scsi/megaraid/megaraid_mbox.c mbox->cmd == MBOXCMD_PASSTHRU64) { mbox 2308 drivers/scsi/megaraid/megaraid_mbox.c if (mbox->cmd == MBOXCMD_EXTPTHRU) { mbox 2676 drivers/scsi/megaraid/megaraid_mbox.c mbox_t *mbox; mbox 2680 drivers/scsi/megaraid/megaraid_mbox.c mbox = raid_dev->mbox; mbox 2691 drivers/scsi/megaraid/megaraid_mbox.c memcpy((caddr_t)mbox, (caddr_t)raw_mbox, 16); mbox 2692 drivers/scsi/megaraid/megaraid_mbox.c mbox->cmdid = 0xFE; mbox 2693 drivers/scsi/megaraid/megaraid_mbox.c mbox->busy = 1; mbox 2694 drivers/scsi/megaraid/megaraid_mbox.c mbox->poll = 0; mbox 2695 drivers/scsi/megaraid/megaraid_mbox.c mbox->ack = 0; mbox 2696 drivers/scsi/megaraid/megaraid_mbox.c mbox->numstatus = 0xFF; mbox 2697 drivers/scsi/megaraid/megaraid_mbox.c mbox->status = 0xFF; mbox 2705 drivers/scsi/megaraid/megaraid_mbox.c if (mbox->numstatus == 0xFF) { // status not yet available mbox 2708 drivers/scsi/megaraid/megaraid_mbox.c for (i = 0; mbox->numstatus == 0xFF && i < 1000; i++) { mbox 2718 drivers/scsi/megaraid/megaraid_mbox.c for (i = 0; (mbox->numstatus == 0xFF) && mbox 2738 drivers/scsi/megaraid/megaraid_mbox.c if (mbox->poll != 0x77) { mbox 2741 drivers/scsi/megaraid/megaraid_mbox.c for (i = 0; (mbox->poll != 0x77) && (i < 1000); i++) { mbox 2771 drivers/scsi/megaraid/megaraid_mbox.c mbox->poll = 0; mbox 2772 drivers/scsi/megaraid/megaraid_mbox.c mbox->ack = 0x77; mbox 2774 drivers/scsi/megaraid/megaraid_mbox.c status = mbox->status; mbox 2778 drivers/scsi/megaraid/megaraid_mbox.c mbox->numstatus = 0xFF; mbox 2779 drivers/scsi/megaraid/megaraid_mbox.c mbox->status = 0xFF; mbox 2781 drivers/scsi/megaraid/megaraid_mbox.c mbox->completed[i] = 0xFF; mbox 2806 drivers/scsi/megaraid/megaraid_mbox.c mbox_t *mbox; mbox 2810 drivers/scsi/megaraid/megaraid_mbox.c mbox = raid_dev->mbox; mbox 2813 drivers/scsi/megaraid/megaraid_mbox.c if (mbox->busy) return -1; mbox 2816 drivers/scsi/megaraid/megaraid_mbox.c memcpy((caddr_t)mbox, (caddr_t)raw_mbox, 14); mbox 2817 drivers/scsi/megaraid/megaraid_mbox.c mbox->cmdid = 0xFE; mbox 2818 drivers/scsi/megaraid/megaraid_mbox.c mbox->busy = 1; mbox 2819 drivers/scsi/megaraid/megaraid_mbox.c mbox->poll = 0; mbox 2820 drivers/scsi/megaraid/megaraid_mbox.c mbox->ack = 0; mbox 2821 drivers/scsi/megaraid/megaraid_mbox.c mbox->numstatus = 0xFF; mbox 2822 drivers/scsi/megaraid/megaraid_mbox.c mbox->status = 0xFF; mbox 2828 drivers/scsi/megaraid/megaraid_mbox.c if (mbox->numstatus != 0xFF) break; mbox 2842 drivers/scsi/megaraid/megaraid_mbox.c return mbox->status; mbox 2856 drivers/scsi/megaraid/megaraid_mbox.c mbox_t *mbox = raid_dev->mbox; mbox 2859 drivers/scsi/megaraid/megaraid_mbox.c if (mbox->busy) { mbox 2861 drivers/scsi/megaraid/megaraid_mbox.c for (i = 0; mbox->busy && i < 1000; i++) mbox 2881 drivers/scsi/megaraid/megaraid_mbox.c mbox_t *mbox; mbox 2890 drivers/scsi/megaraid/megaraid_mbox.c mbox = (mbox_t *)raw_mbox; mbox 2906 drivers/scsi/megaraid/megaraid_mbox.c mbox->xferaddr = (uint32_t)adapter->ibuf_dma_h; mbox 2939 drivers/scsi/megaraid/megaraid_mbox.c mbox->xferaddr = (uint32_t)pinfo_dma_h; mbox 3003 drivers/scsi/megaraid/megaraid_mbox.c mbox_t *mbox; mbox 3007 drivers/scsi/megaraid/megaraid_mbox.c mbox = (mbox_t *)raw_mbox; mbox 3010 drivers/scsi/megaraid/megaraid_mbox.c mbox->xferaddr = (uint32_t)adapter->ibuf_dma_h; mbox 3039 drivers/scsi/megaraid/megaraid_mbox.c mbox_t *mbox; mbox 3044 drivers/scsi/megaraid/megaraid_mbox.c mbox = (mbox_t *)raw_mbox; mbox 3048 drivers/scsi/megaraid/megaraid_mbox.c mbox->xferaddr = (uint32_t)adapter->ibuf_dma_h; mbox 3131 drivers/scsi/megaraid/megaraid_mbox.c mbox_t *mbox; mbox 3136 drivers/scsi/megaraid/megaraid_mbox.c mbox = (mbox_t *)raw_mbox; mbox 3140 drivers/scsi/megaraid/megaraid_mbox.c mbox->xferaddr = (uint32_t)adapter->ibuf_dma_h; mbox 3172 drivers/scsi/megaraid/megaraid_mbox.c mbox_t *mbox; mbox 3176 drivers/scsi/megaraid/megaraid_mbox.c mbox = (mbox_t *)raw_mbox; mbox 3180 drivers/scsi/megaraid/megaraid_mbox.c mbox->xferaddr = (uint32_t)adapter->ibuf_dma_h; mbox 3236 drivers/scsi/megaraid/megaraid_mbox.c mbox_t *mbox; mbox 3243 drivers/scsi/megaraid/megaraid_mbox.c mbox = (mbox_t *)raw_mbox; mbox 3249 drivers/scsi/megaraid/megaraid_mbox.c mbox = raid_dev->mbox; mbox 3258 drivers/scsi/megaraid/megaraid_mbox.c memcpy((caddr_t)mbox, (caddr_t)raw_mbox, 16); mbox 3259 drivers/scsi/megaraid/megaraid_mbox.c mbox->cmdid = 0xFE; mbox 3260 drivers/scsi/megaraid/megaraid_mbox.c mbox->busy = 1; mbox 3261 drivers/scsi/megaraid/megaraid_mbox.c mbox->poll = 0; mbox 3262 drivers/scsi/megaraid/megaraid_mbox.c mbox->ack = 0; mbox 3263 drivers/scsi/megaraid/megaraid_mbox.c mbox->numstatus = 0; mbox 3264 drivers/scsi/megaraid/megaraid_mbox.c mbox->status = 0; mbox 3279 drivers/scsi/megaraid/megaraid_mbox.c while (!mbox->numstatus && mbox->cmd == 0xFF) { mbox 3288 drivers/scsi/megaraid/megaraid_mbox.c if (mbox->numstatus == 1) mbox 3317 drivers/scsi/megaraid/megaraid_mbox.c mbox_t *mbox; mbox 3324 drivers/scsi/megaraid/megaraid_mbox.c mbox = ccb->mbox; mbox 3330 drivers/scsi/megaraid/megaraid_mbox.c mbox->cmd, scb->sno)); mbox 3333 drivers/scsi/megaraid/megaraid_mbox.c mbox->numsectors, mbox->lba, mbox->xferaddr, mbox->logdrv, mbox 3334 drivers/scsi/megaraid/megaraid_mbox.c mbox->numsge)); mbox 3442 drivers/scsi/megaraid/megaraid_mbox.c ccb->mbox = &ccb->mbox64->mbox32; mbox 3443 drivers/scsi/megaraid/megaraid_mbox.c ccb->raw_mbox = (uint8_t *)ccb->mbox; mbox 3883 drivers/scsi/megaraid/megaraid_mbox.c mbox_t *mbox; mbox 3902 drivers/scsi/megaraid/megaraid_mbox.c mbox = &mbox64->mbox32; mbox 3903 drivers/scsi/megaraid/megaraid_mbox.c raw_mbox = (char *)mbox; mbox 3913 drivers/scsi/megaraid/megaraid_mbox.c mbox->xferaddr = (uint32_t)raid_dev->sysfs_buffer_dma; mbox 3946 drivers/scsi/megaraid/megaraid_mbox.c rval = mbox->status; mbox 130 drivers/scsi/megaraid/megaraid_mbox.h mbox_t *mbox; mbox 187 drivers/scsi/megaraid/megaraid_mbox.h mbox_t *mbox; mbox 361 drivers/scsi/megaraid/megaraid_mm.c mbox_t *mbox; mbox 374 drivers/scsi/megaraid/megaraid_mm.c if ((mimd.mbox[0] == MBOXCMD_PASSTHRU64) || mbox 375 drivers/scsi/megaraid/megaraid_mm.c (mimd.mbox[0] == MBOXCMD_EXTPTHRU)) mbox 455 drivers/scsi/megaraid/megaraid_mm.c mbox = &mbox64->mbox32; mbox 456 drivers/scsi/megaraid/megaraid_mm.c memcpy(mbox, mimd.mbox, 14); mbox 458 drivers/scsi/megaraid/megaraid_mm.c if (mbox->cmd != MBOXCMD_PASSTHRU) { // regular DCMD mbox 460 drivers/scsi/megaraid/megaraid_mm.c mbox->xferaddr = (uint32_t)kioc->buf_paddr; mbox 480 drivers/scsi/megaraid/megaraid_mm.c mbox->xferaddr = (uint32_t)kioc->pthru32_h; mbox 865 drivers/scsi/megaraid/megaraid_mm.c if (copy_to_user(&mimd->mbox[17], mbox 82 drivers/scsi/megaraid/megaraid_mm.h uint8_t mbox[18]; /* 16 bytes + 2 status bytes */ mbox 1915 drivers/scsi/megaraid/megaraid_sas.h } mbox; mbox 2335 drivers/scsi/megaraid/megaraid_sas_base.c memset(dcmd->mbox.b, 0, MFI_MBOX_SIZE); mbox 2442 drivers/scsi/megaraid/megaraid_sas_base.c memset(dcmd->mbox.b, 0, MFI_MBOX_SIZE); mbox 2608 drivers/scsi/megaraid/megaraid_sas_base.c memset(dcmd->mbox.b, 0, MFI_MBOX_SIZE); mbox 2610 drivers/scsi/megaraid/megaraid_sas_base.c dcmd->mbox.s[0] = cpu_to_le16(sizeof(struct MR_CTRL_HB_HOST_MEM)); mbox 3588 drivers/scsi/megaraid/megaraid_sas_base.c && (cmd->frame->dcmd.mbox.b[1] == 1)) { mbox 3635 drivers/scsi/megaraid/megaraid_sas_base.c (cmd->frame->dcmd.mbox.b[0] == 1)) { mbox 4423 drivers/scsi/megaraid/megaraid_sas_base.c memset(dcmd->mbox.b, 0, MFI_MBOX_SIZE); mbox 4425 drivers/scsi/megaraid/megaraid_sas_base.c dcmd->mbox.s[0] = cpu_to_le16(device_id); mbox 4515 drivers/scsi/megaraid/megaraid_sas_base.c memset(dcmd->mbox.b, 0, MFI_MBOX_SIZE); mbox 4517 drivers/scsi/megaraid/megaraid_sas_base.c dcmd->mbox.b[0] = MR_PD_QUERY_TYPE_EXPOSED_TO_HOST; mbox 4518 drivers/scsi/megaraid/megaraid_sas_base.c dcmd->mbox.b[1] = 0; mbox 4646 drivers/scsi/megaraid/megaraid_sas_base.c memset(dcmd->mbox.b, 0, MFI_MBOX_SIZE); mbox 4649 drivers/scsi/megaraid/megaraid_sas_base.c dcmd->mbox.b[0] = 1; mbox 4764 drivers/scsi/megaraid/megaraid_sas_base.c memset(dcmd->mbox.b, 0, MFI_MBOX_SIZE); mbox 4766 drivers/scsi/megaraid/megaraid_sas_base.c dcmd->mbox.b[0] = query_type; mbox 4768 drivers/scsi/megaraid/megaraid_sas_base.c dcmd->mbox.b[2] = 1; mbox 4886 drivers/scsi/megaraid/megaraid_sas_base.c memset(dcmd->mbox.b, 0, MFI_MBOX_SIZE); mbox 4888 drivers/scsi/megaraid/megaraid_sas_base.c dcmd->mbox.b[0] = is_probe ? 0 : 1; mbox 5072 drivers/scsi/megaraid/megaraid_sas_base.c memset(dcmd->mbox.b, 0, MFI_MBOX_SIZE); mbox 5154 drivers/scsi/megaraid/megaraid_sas_base.c memset(dcmd->mbox.b, 0, MFI_MBOX_SIZE); mbox 5164 drivers/scsi/megaraid/megaraid_sas_base.c dcmd->mbox.b[0] = 1; mbox 5303 drivers/scsi/megaraid/megaraid_sas_base.c memset(dcmd->mbox.b, 0, MFI_MBOX_SIZE); mbox 5304 drivers/scsi/megaraid/megaraid_sas_base.c dcmd->mbox.b[0] = crash_buf_state; mbox 6437 drivers/scsi/megaraid/megaraid_sas_base.c memset(dcmd->mbox.b, 0, MFI_MBOX_SIZE); mbox 6514 drivers/scsi/megaraid/megaraid_sas_base.c le32_to_cpu(instance->aen_cmd->frame->dcmd.mbox.w[1]); mbox 6573 drivers/scsi/megaraid/megaraid_sas_base.c memset(dcmd->mbox.b, 0, MFI_MBOX_SIZE); mbox 6583 drivers/scsi/megaraid/megaraid_sas_base.c dcmd->mbox.w[0] = cpu_to_le32(seq_num); mbox 6585 drivers/scsi/megaraid/megaraid_sas_base.c dcmd->mbox.w[1] = cpu_to_le32(curr_aen.word); mbox 6649 drivers/scsi/megaraid/megaraid_sas_base.c memset(dcmd->mbox.b, 0, MFI_MBOX_SIZE); mbox 6650 drivers/scsi/megaraid/megaraid_sas_base.c dcmd->mbox.b[0] = MEGASAS_IS_LOGICAL(sdev); mbox 6652 drivers/scsi/megaraid/megaraid_sas_base.c dcmd->mbox.s[1] = cpu_to_le16(targetId); mbox 7452 drivers/scsi/megaraid/megaraid_sas_base.c memset(dcmd->mbox.b, 0, MFI_MBOX_SIZE); mbox 7462 drivers/scsi/megaraid/megaraid_sas_base.c dcmd->mbox.b[0] = MR_FLUSH_CTRL_CACHE | MR_FLUSH_DISK_CACHE; mbox 7505 drivers/scsi/megaraid/megaraid_sas_base.c memset(dcmd->mbox.b, 0, MFI_MBOX_SIZE); mbox 7990 drivers/scsi/megaraid/megaraid_sas_base.c crash_support = cmd->frame->dcmd.mbox.w[0]; mbox 1276 drivers/scsi/megaraid/megaraid_sas_fusion.c memset(dcmd->mbox.b, 0, MFI_MBOX_SIZE); mbox 1279 drivers/scsi/megaraid/megaraid_sas_fusion.c dcmd->mbox.b[0] = MEGASAS_DCMD_MBOX_PEND_FLAG; mbox 1379 drivers/scsi/megaraid/megaraid_sas_fusion.c memset(dcmd->mbox.b, 0, MFI_MBOX_SIZE); mbox 1463 drivers/scsi/megaraid/megaraid_sas_fusion.c memset(dcmd->mbox.b, 0, MFI_MBOX_SIZE); mbox 1488 drivers/scsi/megaraid/megaraid_sas_fusion.c dcmd->mbox.b[0] = num_lds; mbox 1489 drivers/scsi/megaraid/megaraid_sas_fusion.c dcmd->mbox.b[1] = MEGASAS_DCMD_MBOX_PEND_FLAG; mbox 154 drivers/scsi/myrb.c union myrb_cmd_mbox *mbox = &cmd_blk->mbox; mbox 156 drivers/scsi/myrb.c memset(mbox, 0, sizeof(union myrb_cmd_mbox)); mbox 166 drivers/scsi/myrb.c union myrb_cmd_mbox *mbox = &cmd_blk->mbox; mbox 169 drivers/scsi/myrb.c cb->write_cmd_mbox(next_mbox, mbox); mbox 211 drivers/scsi/myrb.c union myrb_cmd_mbox *mbox = &cmd_blk->mbox; mbox 216 drivers/scsi/myrb.c mbox->type3.id = MYRB_DCMD_TAG; mbox 217 drivers/scsi/myrb.c mbox->type3.opcode = op; mbox 218 drivers/scsi/myrb.c mbox->type3.addr = addr; mbox 234 drivers/scsi/myrb.c union myrb_cmd_mbox *mbox = &cmd_blk->mbox; mbox 246 drivers/scsi/myrb.c mbox->type3D.id = MYRB_DCMD_TAG; mbox 247 drivers/scsi/myrb.c mbox->type3D.opcode = op; mbox 248 drivers/scsi/myrb.c mbox->type3D.channel = sdev->channel; mbox 249 drivers/scsi/myrb.c mbox->type3D.target = sdev->id; mbox 250 drivers/scsi/myrb.c mbox->type3D.addr = pdev_info_addr; mbox 256 drivers/scsi/myrb.c mbox->type3D.opcode == MYRB_CMD_GET_DEVICE_STATE_OLD) mbox 288 drivers/scsi/myrb.c union myrb_cmd_mbox *mbox = &cmd_blk->mbox; mbox 300 drivers/scsi/myrb.c mbox->type3E.id = MYRB_MCMD_TAG; mbox 301 drivers/scsi/myrb.c mbox->type3E.opcode = MYRB_CMD_EVENT_LOG_OPERATION; mbox 302 drivers/scsi/myrb.c mbox->type3E.optype = DAC960_V1_GetEventLogEntry; mbox 303 drivers/scsi/myrb.c mbox->type3E.opqual = 1; mbox 304 drivers/scsi/myrb.c mbox->type3E.ev_seq = event; mbox 305 drivers/scsi/myrb.c mbox->type3E.addr = ev_addr; mbox 344 drivers/scsi/myrb.c union myrb_cmd_mbox *mbox = &cmd_blk->mbox; mbox 351 drivers/scsi/myrb.c mbox->type3.id = MYRB_MCMD_TAG; mbox 352 drivers/scsi/myrb.c mbox->type3.opcode = MYRB_CMD_GET_ERROR_TABLE; mbox 353 drivers/scsi/myrb.c mbox->type3.addr = cb->err_table_addr; mbox 443 drivers/scsi/myrb.c union myrb_cmd_mbox *mbox = &cmd_blk->mbox; mbox 455 drivers/scsi/myrb.c mbox->type3.id = MYRB_MCMD_TAG; mbox 456 drivers/scsi/myrb.c mbox->type3.opcode = MYRB_CMD_GET_REBUILD_PROGRESS; mbox 457 drivers/scsi/myrb.c mbox->type3.addr = rbld_addr; mbox 536 drivers/scsi/myrb.c union myrb_cmd_mbox *mbox = &cmd_blk->mbox; mbox 549 drivers/scsi/myrb.c mbox->type3.id = MYRB_MCMD_TAG; mbox 550 drivers/scsi/myrb.c mbox->type3.opcode = MYRB_CMD_REBUILD_STAT; mbox 551 drivers/scsi/myrb.c mbox->type3.addr = rbld_addr; mbox 583 drivers/scsi/myrb.c union myrb_cmd_mbox *mbox = &cmd_blk->mbox; mbox 597 drivers/scsi/myrb.c mbox->type3B.id = MYRB_DCMD_TAG; mbox 598 drivers/scsi/myrb.c mbox->type3B.opcode = MYRB_CMD_BGI_CONTROL; mbox 599 drivers/scsi/myrb.c mbox->type3B.optype = 0x20; mbox 600 drivers/scsi/myrb.c mbox->type3B.addr = bgi_addr; mbox 785 drivers/scsi/myrb.c union myrb_cmd_mbox *mbox = &cmd_blk->mbox; mbox 789 drivers/scsi/myrb.c mbox->type3D.opcode = MYRB_CMD_START_DEVICE; mbox 790 drivers/scsi/myrb.c mbox->type3D.id = MYRB_DCMD_TAG; mbox 791 drivers/scsi/myrb.c mbox->type3D.channel = sdev->channel; mbox 792 drivers/scsi/myrb.c mbox->type3D.target = sdev->id; mbox 793 drivers/scsi/myrb.c mbox->type3D.state = state & 0x1F; mbox 816 drivers/scsi/myrb.c union myrb_cmd_mbox mbox; mbox 819 drivers/scsi/myrb.c memset(&mbox, 0, sizeof(union myrb_cmd_mbox)); mbox 884 drivers/scsi/myrb.c mbox.typeX.opcode = 0x2B; mbox 885 drivers/scsi/myrb.c mbox.typeX.id = 0; mbox 886 drivers/scsi/myrb.c mbox.typeX.opcode2 = 0x14; mbox 887 drivers/scsi/myrb.c mbox.typeX.cmd_mbox_addr = cb->cmd_mbox_addr; mbox 888 drivers/scsi/myrb.c mbox.typeX.stat_mbox_addr = cb->stat_mbox_addr; mbox 890 drivers/scsi/myrb.c status = mmio_init_fn(pdev, base, &mbox); mbox 893 drivers/scsi/myrb.c mbox.typeX.opcode2 = 0x10; mbox 894 drivers/scsi/myrb.c status = mmio_init_fn(pdev, base, &mbox); mbox 1270 drivers/scsi/myrb.c union myrb_cmd_mbox *mbox = &cmd_blk->mbox; mbox 1290 drivers/scsi/myrb.c mbox->type3.opcode = MYRB_CMD_DCDB; mbox 1291 drivers/scsi/myrb.c mbox->type3.id = scmd->request->tag + 3; mbox 1292 drivers/scsi/myrb.c mbox->type3.addr = dcdb_addr; mbox 1426 drivers/scsi/myrb.c union myrb_cmd_mbox *mbox = &cmd_blk->mbox; mbox 1582 drivers/scsi/myrb.c mbox->type5.id = scmd->request->tag + 3; mbox 1589 drivers/scsi/myrb.c mbox->type5.opcode = MYRB_CMD_READ; mbox 1591 drivers/scsi/myrb.c mbox->type5.opcode = MYRB_CMD_WRITE; mbox 1593 drivers/scsi/myrb.c mbox->type5.ld.xfer_len = block_cnt; mbox 1594 drivers/scsi/myrb.c mbox->type5.ld.ldev_num = sdev->id; mbox 1595 drivers/scsi/myrb.c mbox->type5.lba = lba; mbox 1596 drivers/scsi/myrb.c mbox->type5.addr = (u32)sg_dma_address(sgl); mbox 1610 drivers/scsi/myrb.c mbox->type5.opcode = MYRB_CMD_READ_SG; mbox 1612 drivers/scsi/myrb.c mbox->type5.opcode = MYRB_CMD_WRITE_SG; mbox 1614 drivers/scsi/myrb.c mbox->type5.ld.xfer_len = block_cnt; mbox 1615 drivers/scsi/myrb.c mbox->type5.ld.ldev_num = sdev->id; mbox 1616 drivers/scsi/myrb.c mbox->type5.lba = lba; mbox 1617 drivers/scsi/myrb.c mbox->type5.addr = hw_sgl_addr; mbox 1618 drivers/scsi/myrb.c mbox->type5.sg_count = nsge; mbox 1952 drivers/scsi/myrb.c union myrb_cmd_mbox *mbox; mbox 1974 drivers/scsi/myrb.c mbox = &cmd_blk->mbox; mbox 1975 drivers/scsi/myrb.c mbox->type3D.opcode = MYRB_CMD_REBUILD_ASYNC; mbox 1976 drivers/scsi/myrb.c mbox->type3D.id = MYRB_DCMD_TAG; mbox 1977 drivers/scsi/myrb.c mbox->type3D.channel = sdev->channel; mbox 1978 drivers/scsi/myrb.c mbox->type3D.target = sdev->id; mbox 2002 drivers/scsi/myrb.c mbox = &cmd_blk->mbox; mbox 2003 drivers/scsi/myrb.c mbox->type3R.opcode = MYRB_CMD_REBUILD_CONTROL; mbox 2004 drivers/scsi/myrb.c mbox->type3R.id = MYRB_DCMD_TAG; mbox 2005 drivers/scsi/myrb.c mbox->type3R.rbld_rate = 0xFF; mbox 2006 drivers/scsi/myrb.c mbox->type3R.addr = rate_addr; mbox 2058 drivers/scsi/myrb.c union myrb_cmd_mbox *mbox; mbox 2081 drivers/scsi/myrb.c mbox = &cmd_blk->mbox; mbox 2082 drivers/scsi/myrb.c mbox->type3C.opcode = MYRB_CMD_CHECK_CONSISTENCY_ASYNC; mbox 2083 drivers/scsi/myrb.c mbox->type3C.id = MYRB_DCMD_TAG; mbox 2084 drivers/scsi/myrb.c mbox->type3C.ldev_num = sdev->id; mbox 2085 drivers/scsi/myrb.c mbox->type3C.auto_restore = true; mbox 2109 drivers/scsi/myrb.c mbox = &cmd_blk->mbox; mbox 2110 drivers/scsi/myrb.c mbox->type3R.opcode = MYRB_CMD_REBUILD_CONTROL; mbox 2111 drivers/scsi/myrb.c mbox->type3R.id = MYRB_DCMD_TAG; mbox 2112 drivers/scsi/myrb.c mbox->type3R.rbld_rate = 0xFF; mbox 2113 drivers/scsi/myrb.c mbox->type3R.addr = rate_addr; mbox 2640 drivers/scsi/myrb.c union myrb_cmd_mbox *mbox) mbox 2642 drivers/scsi/myrb.c mem_mbox->words[1] = mbox->words[1]; mbox 2643 drivers/scsi/myrb.c mem_mbox->words[2] = mbox->words[2]; mbox 2644 drivers/scsi/myrb.c mem_mbox->words[3] = mbox->words[3]; mbox 2647 drivers/scsi/myrb.c mem_mbox->words[0] = mbox->words[0]; mbox 2653 drivers/scsi/myrb.c union myrb_cmd_mbox *mbox) mbox 2655 drivers/scsi/myrb.c writel(mbox->words[0], base + DAC960_LA_CMDOP_OFFSET); mbox 2656 drivers/scsi/myrb.c writel(mbox->words[1], base + DAC960_LA_MBOX4_OFFSET); mbox 2657 drivers/scsi/myrb.c writel(mbox->words[2], base + DAC960_LA_MBOX8_OFFSET); mbox 2658 drivers/scsi/myrb.c writeb(mbox->bytes[12], base + DAC960_LA_MBOX12_OFFSET); mbox 2690 drivers/scsi/myrb.c union myrb_cmd_mbox *mbox) mbox 2706 drivers/scsi/myrb.c DAC960_LA_write_hw_mbox(base, mbox); mbox 2916 drivers/scsi/myrb.c union myrb_cmd_mbox *mbox) mbox 2918 drivers/scsi/myrb.c mem_mbox->words[1] = mbox->words[1]; mbox 2919 drivers/scsi/myrb.c mem_mbox->words[2] = mbox->words[2]; mbox 2920 drivers/scsi/myrb.c mem_mbox->words[3] = mbox->words[3]; mbox 2923 drivers/scsi/myrb.c mem_mbox->words[0] = mbox->words[0]; mbox 2929 drivers/scsi/myrb.c union myrb_cmd_mbox *mbox) mbox 2931 drivers/scsi/myrb.c writel(mbox->words[0], base + DAC960_PG_CMDOP_OFFSET); mbox 2932 drivers/scsi/myrb.c writel(mbox->words[1], base + DAC960_PG_MBOX4_OFFSET); mbox 2933 drivers/scsi/myrb.c writel(mbox->words[2], base + DAC960_PG_MBOX8_OFFSET); mbox 2934 drivers/scsi/myrb.c writeb(mbox->bytes[12], base + DAC960_PG_MBOX12_OFFSET); mbox 2967 drivers/scsi/myrb.c union myrb_cmd_mbox *mbox) mbox 2983 drivers/scsi/myrb.c DAC960_PG_write_hw_mbox(base, mbox); mbox 3166 drivers/scsi/myrb.c union myrb_cmd_mbox *mbox) mbox 3168 drivers/scsi/myrb.c writel(mbox->words[0], base + DAC960_PD_CMDOP_OFFSET); mbox 3169 drivers/scsi/myrb.c writel(mbox->words[1], base + DAC960_PD_MBOX4_OFFSET); mbox 3170 drivers/scsi/myrb.c writel(mbox->words[2], base + DAC960_PD_MBOX8_OFFSET); mbox 3171 drivers/scsi/myrb.c writeb(mbox->bytes[12], base + DAC960_PD_MBOX12_OFFSET); mbox 3205 drivers/scsi/myrb.c union myrb_cmd_mbox *mbox = &cmd_blk->mbox; mbox 3209 drivers/scsi/myrb.c DAC960_PD_write_cmd_mbox(base, mbox); mbox 3323 drivers/scsi/myrb.c union myrb_cmd_mbox *mbox = &cmd_blk->mbox; mbox 3324 drivers/scsi/myrb.c int ldev_num = mbox->type5.ld.ldev_num; mbox 3326 drivers/scsi/myrb.c mbox->bytes[3] &= 0x7; mbox 3327 drivers/scsi/myrb.c mbox->bytes[3] |= mbox->bytes[7] << 6; mbox 3328 drivers/scsi/myrb.c mbox->bytes[7] = ldev_num; mbox 3333 drivers/scsi/myrb.c union myrb_cmd_mbox *mbox = &cmd_blk->mbox; mbox 3334 drivers/scsi/myrb.c int ldev_num = mbox->bytes[7]; mbox 3336 drivers/scsi/myrb.c mbox->bytes[7] = mbox->bytes[3] >> 6; mbox 3337 drivers/scsi/myrb.c mbox->bytes[3] &= 0x7; mbox 3338 drivers/scsi/myrb.c mbox->bytes[3] |= ldev_num << 3; mbox 3344 drivers/scsi/myrb.c union myrb_cmd_mbox *mbox = &cmd_blk->mbox; mbox 3346 drivers/scsi/myrb.c switch (mbox->common.opcode) { mbox 3348 drivers/scsi/myrb.c mbox->common.opcode = MYRB_CMD_ENQUIRY_OLD; mbox 3351 drivers/scsi/myrb.c mbox->common.opcode = MYRB_CMD_GET_DEVICE_STATE_OLD; mbox 3354 drivers/scsi/myrb.c mbox->common.opcode = MYRB_CMD_READ_OLD; mbox 3358 drivers/scsi/myrb.c mbox->common.opcode = MYRB_CMD_WRITE_OLD; mbox 3362 drivers/scsi/myrb.c mbox->common.opcode = MYRB_CMD_READ_SG_OLD; mbox 3366 drivers/scsi/myrb.c mbox->common.opcode = MYRB_CMD_WRITE_SG_OLD; mbox 3374 drivers/scsi/myrb.c DAC960_PD_write_cmd_mbox(base, mbox); mbox 3432 drivers/scsi/myrb.c union myrb_cmd_mbox *mbox; mbox 3457 drivers/scsi/myrb.c mbox = &cmd_blk->mbox; mbox 3458 drivers/scsi/myrb.c op = mbox->common.opcode; mbox 3461 drivers/scsi/myrb.c mbox->common.opcode = MYRB_CMD_ENQUIRY; mbox 3465 drivers/scsi/myrb.c mbox->common.opcode = MYRB_CMD_READ; mbox 3469 drivers/scsi/myrb.c mbox->common.opcode = MYRB_CMD_WRITE; mbox 3473 drivers/scsi/myrb.c mbox->common.opcode = MYRB_CMD_READ_SG; mbox 3477 drivers/scsi/myrb.c mbox->common.opcode = MYRB_CMD_WRITE_SG; mbox 683 drivers/scsi/myrb.h union myrb_cmd_mbox mbox; mbox 950 drivers/scsi/myrb.h union myrb_cmd_mbox *mbox); mbox 95 drivers/scsi/myrs.c union myrs_cmd_mbox *mbox = &cmd_blk->mbox; mbox 97 drivers/scsi/myrs.c memset(mbox, 0, sizeof(union myrs_cmd_mbox)); mbox 107 drivers/scsi/myrs.c union myrs_cmd_mbox *mbox = &cmd_blk->mbox; mbox 110 drivers/scsi/myrs.c cs->write_cmd_mbox(next_mbox, mbox); mbox 162 drivers/scsi/myrs.c union myrs_cmd_mbox *mbox = &cmd_blk->mbox; mbox 180 drivers/scsi/myrs.c mbox->ctlr_info.id = MYRS_DCMD_TAG; mbox 181 drivers/scsi/myrs.c mbox->ctlr_info.opcode = MYRS_CMD_OP_IOCTL; mbox 182 drivers/scsi/myrs.c mbox->ctlr_info.control.dma_ctrl_to_host = true; mbox 183 drivers/scsi/myrs.c mbox->ctlr_info.control.no_autosense = true; mbox 184 drivers/scsi/myrs.c mbox->ctlr_info.dma_size = sizeof(struct myrs_ctlr_info); mbox 185 drivers/scsi/myrs.c mbox->ctlr_info.ctlr_num = 0; mbox 186 drivers/scsi/myrs.c mbox->ctlr_info.ioctl_opcode = MYRS_IOCTL_GET_CTLR_INFO; mbox 187 drivers/scsi/myrs.c sgl = &mbox->ctlr_info.dma_addr; mbox 189 drivers/scsi/myrs.c sgl->sge[0].sge_count = mbox->ctlr_info.dma_size; mbox 224 drivers/scsi/myrs.c union myrs_cmd_mbox *mbox = &cmd_blk->mbox; mbox 239 drivers/scsi/myrs.c mbox->ldev_info.id = MYRS_DCMD_TAG; mbox 240 drivers/scsi/myrs.c mbox->ldev_info.opcode = MYRS_CMD_OP_IOCTL; mbox 241 drivers/scsi/myrs.c mbox->ldev_info.control.dma_ctrl_to_host = true; mbox 242 drivers/scsi/myrs.c mbox->ldev_info.control.no_autosense = true; mbox 243 drivers/scsi/myrs.c mbox->ldev_info.dma_size = sizeof(struct myrs_ldev_info); mbox 244 drivers/scsi/myrs.c mbox->ldev_info.ldev.ldev_num = ldev_num; mbox 245 drivers/scsi/myrs.c mbox->ldev_info.ioctl_opcode = MYRS_IOCTL_GET_LDEV_INFO_VALID; mbox 246 drivers/scsi/myrs.c sgl = &mbox->ldev_info.dma_addr; mbox 248 drivers/scsi/myrs.c sgl->sge[0].sge_count = mbox->ldev_info.dma_size; mbox 312 drivers/scsi/myrs.c union myrs_cmd_mbox *mbox = &cmd_blk->mbox; mbox 325 drivers/scsi/myrs.c mbox->pdev_info.opcode = MYRS_CMD_OP_IOCTL; mbox 326 drivers/scsi/myrs.c mbox->pdev_info.id = MYRS_DCMD_TAG; mbox 327 drivers/scsi/myrs.c mbox->pdev_info.control.dma_ctrl_to_host = true; mbox 328 drivers/scsi/myrs.c mbox->pdev_info.control.no_autosense = true; mbox 329 drivers/scsi/myrs.c mbox->pdev_info.dma_size = sizeof(struct myrs_pdev_info); mbox 330 drivers/scsi/myrs.c mbox->pdev_info.pdev.lun = lun; mbox 331 drivers/scsi/myrs.c mbox->pdev_info.pdev.target = target; mbox 332 drivers/scsi/myrs.c mbox->pdev_info.pdev.channel = channel; mbox 333 drivers/scsi/myrs.c mbox->pdev_info.ioctl_opcode = MYRS_IOCTL_GET_PDEV_INFO_VALID; mbox 334 drivers/scsi/myrs.c sgl = &mbox->pdev_info.dma_addr; mbox 336 drivers/scsi/myrs.c sgl->sge[0].sge_count = mbox->pdev_info.dma_size; mbox 355 drivers/scsi/myrs.c union myrs_cmd_mbox *mbox = &cmd_blk->mbox; mbox 360 drivers/scsi/myrs.c mbox->dev_op.opcode = MYRS_CMD_OP_IOCTL; mbox 361 drivers/scsi/myrs.c mbox->dev_op.id = MYRS_DCMD_TAG; mbox 362 drivers/scsi/myrs.c mbox->dev_op.control.dma_ctrl_to_host = true; mbox 363 drivers/scsi/myrs.c mbox->dev_op.control.no_autosense = true; mbox 364 drivers/scsi/myrs.c mbox->dev_op.ioctl_opcode = opcode; mbox 365 drivers/scsi/myrs.c mbox->dev_op.opdev = opdev; mbox 383 drivers/scsi/myrs.c union myrs_cmd_mbox *mbox; mbox 396 drivers/scsi/myrs.c mbox = &cmd_blk->mbox; mbox 397 drivers/scsi/myrs.c mbox->pdev_info.opcode = MYRS_CMD_OP_IOCTL; mbox 398 drivers/scsi/myrs.c mbox->pdev_info.control.dma_ctrl_to_host = true; mbox 399 drivers/scsi/myrs.c mbox->pdev_info.control.no_autosense = true; mbox 400 drivers/scsi/myrs.c mbox->pdev_info.dma_size = sizeof(struct myrs_devmap); mbox 401 drivers/scsi/myrs.c mbox->pdev_info.pdev.target = target; mbox 402 drivers/scsi/myrs.c mbox->pdev_info.pdev.channel = channel; mbox 403 drivers/scsi/myrs.c mbox->pdev_info.pdev.lun = lun; mbox 404 drivers/scsi/myrs.c mbox->pdev_info.ioctl_opcode = MYRS_IOCTL_XLATE_PDEV_TO_LDEV; mbox 405 drivers/scsi/myrs.c sgl = &mbox->pdev_info.dma_addr; mbox 407 drivers/scsi/myrs.c sgl->sge[0].sge_count = mbox->pdev_info.dma_size; mbox 426 drivers/scsi/myrs.c union myrs_cmd_mbox *mbox = &cmd_blk->mbox; mbox 435 drivers/scsi/myrs.c mbox->get_event.opcode = MYRS_CMD_OP_IOCTL; mbox 436 drivers/scsi/myrs.c mbox->get_event.dma_size = sizeof(struct myrs_event); mbox 437 drivers/scsi/myrs.c mbox->get_event.evnum_upper = event_num >> 16; mbox 438 drivers/scsi/myrs.c mbox->get_event.ctlr_num = 0; mbox 439 drivers/scsi/myrs.c mbox->get_event.ioctl_opcode = MYRS_IOCTL_GET_EVENT; mbox 440 drivers/scsi/myrs.c mbox->get_event.evnum_lower = event_num & 0xFFFF; mbox 441 drivers/scsi/myrs.c sgl = &mbox->get_event.dma_addr; mbox 443 drivers/scsi/myrs.c sgl->sge[0].sge_count = mbox->get_event.dma_size; mbox 458 drivers/scsi/myrs.c union myrs_cmd_mbox *mbox = &cmd_blk->mbox; mbox 463 drivers/scsi/myrs.c mbox->common.opcode = MYRS_CMD_OP_IOCTL; mbox 464 drivers/scsi/myrs.c mbox->common.id = MYRS_MCMD_TAG; mbox 465 drivers/scsi/myrs.c mbox->common.control.dma_ctrl_to_host = true; mbox 466 drivers/scsi/myrs.c mbox->common.control.no_autosense = true; mbox 467 drivers/scsi/myrs.c mbox->common.dma_size = sizeof(struct myrs_fwstat); mbox 468 drivers/scsi/myrs.c mbox->common.ioctl_opcode = MYRS_IOCTL_GET_HEALTH_STATUS; mbox 469 drivers/scsi/myrs.c sgl = &mbox->common.dma_addr; mbox 471 drivers/scsi/myrs.c sgl->sge[0].sge_count = mbox->ctlr_info.dma_size; mbox 489 drivers/scsi/myrs.c union myrs_cmd_mbox *mbox; mbox 500 drivers/scsi/myrs.c mbox = dma_alloc_coherent(&pdev->dev, sizeof(union myrs_cmd_mbox), mbox 553 drivers/scsi/myrs.c memset(mbox, 0, sizeof(union myrs_cmd_mbox)); mbox 554 drivers/scsi/myrs.c mbox->set_mbox.id = 1; mbox 555 drivers/scsi/myrs.c mbox->set_mbox.opcode = MYRS_CMD_OP_IOCTL; mbox 556 drivers/scsi/myrs.c mbox->set_mbox.control.no_autosense = true; mbox 557 drivers/scsi/myrs.c mbox->set_mbox.first_cmd_mbox_size_kb = mbox 559 drivers/scsi/myrs.c mbox->set_mbox.first_stat_mbox_size_kb = mbox 561 drivers/scsi/myrs.c mbox->set_mbox.second_cmd_mbox_size_kb = 0; mbox 562 drivers/scsi/myrs.c mbox->set_mbox.second_stat_mbox_size_kb = 0; mbox 563 drivers/scsi/myrs.c mbox->set_mbox.sense_len = 0; mbox 564 drivers/scsi/myrs.c mbox->set_mbox.ioctl_opcode = MYRS_IOCTL_SET_MEM_MBOX; mbox 565 drivers/scsi/myrs.c mbox->set_mbox.fwstat_buf_size_kb = 1; mbox 566 drivers/scsi/myrs.c mbox->set_mbox.fwstat_buf_addr = cs->fwstat_addr; mbox 567 drivers/scsi/myrs.c mbox->set_mbox.first_cmd_mbox_addr = cs->cmd_mbox_addr; mbox 568 drivers/scsi/myrs.c mbox->set_mbox.first_stat_mbox_addr = cs->stat_mbox_addr; mbox 573 drivers/scsi/myrs.c mbox, mbox_addr); mbox 978 drivers/scsi/myrs.c union myrs_cmd_mbox *mbox; mbox 1023 drivers/scsi/myrs.c mbox = &cmd_blk->mbox; mbox 1024 drivers/scsi/myrs.c mbox->common.opcode = MYRS_CMD_OP_IOCTL; mbox 1025 drivers/scsi/myrs.c mbox->common.id = MYRS_DCMD_TAG; mbox 1026 drivers/scsi/myrs.c mbox->common.control.dma_ctrl_to_host = true; mbox 1027 drivers/scsi/myrs.c mbox->common.control.no_autosense = true; mbox 1028 drivers/scsi/myrs.c mbox->set_devstate.ioctl_opcode = MYRS_IOCTL_SET_DEVICE_STATE; mbox 1029 drivers/scsi/myrs.c mbox->set_devstate.state = new_state; mbox 1030 drivers/scsi/myrs.c mbox->set_devstate.ldev.ldev_num = ldev_num; mbox 1118 drivers/scsi/myrs.c union myrs_cmd_mbox *mbox; mbox 1157 drivers/scsi/myrs.c mbox = &cmd_blk->mbox; mbox 1158 drivers/scsi/myrs.c mbox->common.opcode = MYRS_CMD_OP_IOCTL; mbox 1159 drivers/scsi/myrs.c mbox->common.id = MYRS_DCMD_TAG; mbox 1160 drivers/scsi/myrs.c mbox->common.control.dma_ctrl_to_host = true; mbox 1161 drivers/scsi/myrs.c mbox->common.control.no_autosense = true; mbox 1163 drivers/scsi/myrs.c mbox->ldev_info.ldev.ldev_num = ldev_num; mbox 1164 drivers/scsi/myrs.c mbox->ldev_info.ioctl_opcode = MYRS_IOCTL_RBLD_DEVICE_START; mbox 1166 drivers/scsi/myrs.c mbox->ldev_info.ldev.ldev_num = ldev_num; mbox 1167 drivers/scsi/myrs.c mbox->ldev_info.ioctl_opcode = MYRS_IOCTL_RBLD_DEVICE_STOP; mbox 1219 drivers/scsi/myrs.c union myrs_cmd_mbox *mbox; mbox 1259 drivers/scsi/myrs.c mbox = &cmd_blk->mbox; mbox 1260 drivers/scsi/myrs.c mbox->common.opcode = MYRS_CMD_OP_IOCTL; mbox 1261 drivers/scsi/myrs.c mbox->common.id = MYRS_DCMD_TAG; mbox 1262 drivers/scsi/myrs.c mbox->common.control.dma_ctrl_to_host = true; mbox 1263 drivers/scsi/myrs.c mbox->common.control.no_autosense = true; mbox 1265 drivers/scsi/myrs.c mbox->cc.ldev.ldev_num = ldev_num; mbox 1266 drivers/scsi/myrs.c mbox->cc.ioctl_opcode = MYRS_IOCTL_CC_START; mbox 1267 drivers/scsi/myrs.c mbox->cc.restore_consistency = true; mbox 1268 drivers/scsi/myrs.c mbox->cc.initialized_area_only = false; mbox 1270 drivers/scsi/myrs.c mbox->cc.ldev.ldev_num = ldev_num; mbox 1271 drivers/scsi/myrs.c mbox->cc.ioctl_opcode = MYRS_IOCTL_CC_STOP; mbox 1436 drivers/scsi/myrs.c union myrs_cmd_mbox *mbox; mbox 1442 drivers/scsi/myrs.c mbox = &cmd_blk->mbox; mbox 1443 drivers/scsi/myrs.c mbox->common.opcode = MYRS_CMD_OP_IOCTL; mbox 1444 drivers/scsi/myrs.c mbox->common.id = MYRS_DCMD_TAG; mbox 1445 drivers/scsi/myrs.c mbox->common.control.dma_ctrl_to_host = true; mbox 1446 drivers/scsi/myrs.c mbox->common.control.no_autosense = true; mbox 1447 drivers/scsi/myrs.c mbox->common.ioctl_opcode = MYRS_IOCTL_START_DISCOVERY; mbox 1589 drivers/scsi/myrs.c union myrs_cmd_mbox *mbox = &cmd_blk->mbox; mbox 1643 drivers/scsi/myrs.c mbox->SCSI_10.opcode = MYRS_CMD_OP_SCSI_10; mbox 1644 drivers/scsi/myrs.c mbox->SCSI_10.pdev.lun = ldev_info->lun; mbox 1645 drivers/scsi/myrs.c mbox->SCSI_10.pdev.target = ldev_info->target; mbox 1646 drivers/scsi/myrs.c mbox->SCSI_10.pdev.channel = ldev_info->channel; mbox 1647 drivers/scsi/myrs.c mbox->SCSI_10.pdev.ctlr = 0; mbox 1649 drivers/scsi/myrs.c mbox->SCSI_10.opcode = MYRS_CMD_OP_SCSI_10_PASSTHRU; mbox 1650 drivers/scsi/myrs.c mbox->SCSI_10.pdev.lun = sdev->lun; mbox 1651 drivers/scsi/myrs.c mbox->SCSI_10.pdev.target = sdev->id; mbox 1652 drivers/scsi/myrs.c mbox->SCSI_10.pdev.channel = sdev->channel; mbox 1654 drivers/scsi/myrs.c mbox->SCSI_10.id = scmd->request->tag + 3; mbox 1655 drivers/scsi/myrs.c mbox->SCSI_10.control.dma_ctrl_to_host = mbox 1658 drivers/scsi/myrs.c mbox->SCSI_10.control.fua = true; mbox 1659 drivers/scsi/myrs.c mbox->SCSI_10.dma_size = scsi_bufflen(scmd); mbox 1660 drivers/scsi/myrs.c mbox->SCSI_10.sense_addr = cmd_blk->sense_addr; mbox 1661 drivers/scsi/myrs.c mbox->SCSI_10.sense_len = MYRS_SENSE_SIZE; mbox 1662 drivers/scsi/myrs.c mbox->SCSI_10.cdb_len = scmd->cmd_len; mbox 1664 drivers/scsi/myrs.c mbox->SCSI_10.tmo.tmo_scale = MYRS_TMO_SCALE_MINUTES; mbox 1665 drivers/scsi/myrs.c mbox->SCSI_10.tmo.tmo_val = timeout / 60; mbox 1667 drivers/scsi/myrs.c mbox->SCSI_10.tmo.tmo_scale = MYRS_TMO_SCALE_SECONDS; mbox 1668 drivers/scsi/myrs.c mbox->SCSI_10.tmo.tmo_val = timeout; mbox 1670 drivers/scsi/myrs.c memcpy(&mbox->SCSI_10.cdb, scmd->cmnd, scmd->cmd_len); mbox 1671 drivers/scsi/myrs.c hw_sge = &mbox->SCSI_10.dma_addr; mbox 1689 drivers/scsi/myrs.c mbox->SCSI_255.opcode = MYRS_CMD_OP_SCSI_256; mbox 1690 drivers/scsi/myrs.c mbox->SCSI_255.pdev.lun = ldev_info->lun; mbox 1691 drivers/scsi/myrs.c mbox->SCSI_255.pdev.target = ldev_info->target; mbox 1692 drivers/scsi/myrs.c mbox->SCSI_255.pdev.channel = ldev_info->channel; mbox 1693 drivers/scsi/myrs.c mbox->SCSI_255.pdev.ctlr = 0; mbox 1695 drivers/scsi/myrs.c mbox->SCSI_255.opcode = MYRS_CMD_OP_SCSI_255_PASSTHRU; mbox 1696 drivers/scsi/myrs.c mbox->SCSI_255.pdev.lun = sdev->lun; mbox 1697 drivers/scsi/myrs.c mbox->SCSI_255.pdev.target = sdev->id; mbox 1698 drivers/scsi/myrs.c mbox->SCSI_255.pdev.channel = sdev->channel; mbox 1700 drivers/scsi/myrs.c mbox->SCSI_255.id = scmd->request->tag + 3; mbox 1701 drivers/scsi/myrs.c mbox->SCSI_255.control.dma_ctrl_to_host = mbox 1704 drivers/scsi/myrs.c mbox->SCSI_255.control.fua = true; mbox 1705 drivers/scsi/myrs.c mbox->SCSI_255.dma_size = scsi_bufflen(scmd); mbox 1706 drivers/scsi/myrs.c mbox->SCSI_255.sense_addr = cmd_blk->sense_addr; mbox 1707 drivers/scsi/myrs.c mbox->SCSI_255.sense_len = MYRS_SENSE_SIZE; mbox 1708 drivers/scsi/myrs.c mbox->SCSI_255.cdb_len = scmd->cmd_len; mbox 1709 drivers/scsi/myrs.c mbox->SCSI_255.cdb_addr = cmd_blk->dcdb_dma; mbox 1711 drivers/scsi/myrs.c mbox->SCSI_255.tmo.tmo_scale = MYRS_TMO_SCALE_MINUTES; mbox 1712 drivers/scsi/myrs.c mbox->SCSI_255.tmo.tmo_val = timeout / 60; mbox 1714 drivers/scsi/myrs.c mbox->SCSI_255.tmo.tmo_scale = MYRS_TMO_SCALE_SECONDS; mbox 1715 drivers/scsi/myrs.c mbox->SCSI_255.tmo.tmo_val = timeout; mbox 1718 drivers/scsi/myrs.c hw_sge = &mbox->SCSI_255.dma_addr; mbox 1753 drivers/scsi/myrs.c mbox->SCSI_10.control.add_sge_mem = true; mbox 1755 drivers/scsi/myrs.c mbox->SCSI_255.control.add_sge_mem = true; mbox 2516 drivers/scsi/myrs.c union myrs_cmd_mbox *mbox) mbox 2518 drivers/scsi/myrs.c memcpy(&mem_mbox->words[1], &mbox->words[1], mbox 2522 drivers/scsi/myrs.c mem_mbox->words[0] = mbox->words[0]; mbox 2764 drivers/scsi/myrs.c union myrs_cmd_mbox *mbox) mbox 2766 drivers/scsi/myrs.c memcpy(&mem_mbox->words[1], &mbox->words[1], mbox 2770 drivers/scsi/myrs.c mem_mbox->words[0] = mbox->words[0]; mbox 3014 drivers/scsi/myrs.c union myrs_cmd_mbox *mbox) mbox 3016 drivers/scsi/myrs.c memcpy(&mem_mbox->words[1], &mbox->words[1], mbox 3020 drivers/scsi/myrs.c mem_mbox->words[0] = mbox->words[0]; mbox 871 drivers/scsi/myrs.h union myrs_cmd_mbox mbox; mbox 265 drivers/scsi/qla4xxx/ql4_def.h struct mbox_cmd_iocb *mbox; mbox 475 drivers/scsi/qla4xxx/ql4_iocb.c rval = qla4xxx_get_req_pkt(ha, (struct queue_entry **) &(mrb->mbox)); mbox 493 drivers/scsi/qla4xxx/ql4_iocb.c mrb->mbox->handle = index; mbox 494 drivers/scsi/qla4xxx/ql4_iocb.c mrb->mbox->hdr.entryType = ET_MBOX_CMD; mbox 495 drivers/scsi/qla4xxx/ql4_iocb.c mrb->mbox->hdr.entryCount = mrb->iocb_cnt; mbox 496 drivers/scsi/qla4xxx/ql4_iocb.c memcpy(mrb->mbox->in_mbox, in_mbox, 32); mbox 87 drivers/soc/mediatek/mtk-cmdq-helper.c dev = client->chan->mbox->dev; mbox 107 drivers/soc/mediatek/mtk-cmdq-helper.c dma_unmap_single(client->chan->mbox->dev, pkt->pa_base, pkt->buf_size, mbox 226 drivers/soc/mediatek/mtk-cmdq-helper.c dma_sync_single_for_cpu(client->chan->mbox->dev, pkt->pa_base, mbox 250 drivers/soc/mediatek/mtk-cmdq-helper.c dma_sync_single_for_device(client->chan->mbox->dev, pkt->pa_base, mbox 157 drivers/soc/ti/wkup_m3_ipc.c if (!m3_ipc->mbox) { mbox 170 drivers/soc/ti/wkup_m3_ipc.c ret = mbox_send_message(m3_ipc->mbox, &dummy_msg); mbox 185 drivers/soc/ti/wkup_m3_ipc.c mbox_client_txdone(m3_ipc->mbox, 0); mbox 195 drivers/soc/ti/wkup_m3_ipc.c if (!m3_ipc->mbox) { mbox 201 drivers/soc/ti/wkup_m3_ipc.c ret = mbox_send_message(m3_ipc->mbox, &dummy_msg); mbox 208 drivers/soc/ti/wkup_m3_ipc.c mbox_client_txdone(m3_ipc->mbox, 0); mbox 469 drivers/soc/ti/wkup_m3_ipc.c m3_ipc->mbox = mbox_request_channel(&m3_ipc->mbox_client, 0); mbox 471 drivers/soc/ti/wkup_m3_ipc.c if (IS_ERR(m3_ipc->mbox)) { mbox 473 drivers/soc/ti/wkup_m3_ipc.c PTR_ERR(m3_ipc->mbox)); mbox 474 drivers/soc/ti/wkup_m3_ipc.c return PTR_ERR(m3_ipc->mbox); mbox 515 drivers/soc/ti/wkup_m3_ipc.c mbox_free_channel(m3_ipc->mbox); mbox 521 drivers/soc/ti/wkup_m3_ipc.c mbox_free_channel(m3_ipc_state->mbox); mbox 756 drivers/staging/media/allegro-dvt/allegro-core.c struct allegro_mbox *mbox, mbox 759 drivers/staging/media/allegro-dvt/allegro-core.c if (!mbox) mbox 762 drivers/staging/media/allegro-dvt/allegro-core.c mbox->head = base; mbox 763 drivers/staging/media/allegro-dvt/allegro-core.c mbox->tail = base + 0x4; mbox 764 drivers/staging/media/allegro-dvt/allegro-core.c mbox->data = base + 0x8; mbox 765 drivers/staging/media/allegro-dvt/allegro-core.c mbox->size = size; mbox 766 drivers/staging/media/allegro-dvt/allegro-core.c mutex_init(&mbox->lock); mbox 768 drivers/staging/media/allegro-dvt/allegro-core.c regmap_write(dev->sram, mbox->head, 0); mbox 769 drivers/staging/media/allegro-dvt/allegro-core.c regmap_write(dev->sram, mbox->tail, 0); mbox 775 drivers/staging/media/allegro-dvt/allegro-core.c struct allegro_mbox *mbox, void *src, size_t size) mbox 785 drivers/staging/media/allegro-dvt/allegro-core.c if (size > mbox->size) { mbox 788 drivers/staging/media/allegro-dvt/allegro-core.c size, mbox->size); mbox 803 drivers/staging/media/allegro-dvt/allegro-core.c mutex_lock(&mbox->lock); mbox 804 drivers/staging/media/allegro-dvt/allegro-core.c regmap_read(dev->sram, mbox->tail, &tail); mbox 805 drivers/staging/media/allegro-dvt/allegro-core.c if (tail > mbox->size) { mbox 808 drivers/staging/media/allegro-dvt/allegro-core.c tail, mbox->size); mbox 812 drivers/staging/media/allegro-dvt/allegro-core.c size_no_wrap = min(size, mbox->size - (size_t)tail); mbox 813 drivers/staging/media/allegro-dvt/allegro-core.c regmap_bulk_write(dev->sram, mbox->data + tail, src, size_no_wrap / 4); mbox 814 drivers/staging/media/allegro-dvt/allegro-core.c regmap_bulk_write(dev->sram, mbox->data, mbox 816 drivers/staging/media/allegro-dvt/allegro-core.c regmap_write(dev->sram, mbox->tail, (tail + size) % mbox->size); mbox 819 drivers/staging/media/allegro-dvt/allegro-core.c mutex_unlock(&mbox->lock); mbox 825 drivers/staging/media/allegro-dvt/allegro-core.c struct allegro_mbox *mbox, mbox 833 drivers/staging/media/allegro-dvt/allegro-core.c regmap_read(dev->sram, mbox->head, &head); mbox 834 drivers/staging/media/allegro-dvt/allegro-core.c if (head > mbox->size) { mbox 837 drivers/staging/media/allegro-dvt/allegro-core.c head, mbox->size); mbox 842 drivers/staging/media/allegro-dvt/allegro-core.c regmap_bulk_read(dev->sram, mbox->data + head, mbox 846 drivers/staging/media/allegro-dvt/allegro-core.c if (size > mbox->size || size & 0x3) { mbox 849 drivers/staging/media/allegro-dvt/allegro-core.c header->length + sizeof(*header), mbox->size); mbox 869 drivers/staging/media/allegro-dvt/allegro-core.c (size_t)(mbox->size - (head + sizeof(*header)))); mbox 870 drivers/staging/media/allegro-dvt/allegro-core.c regmap_bulk_read(dev->sram, mbox->data + head + sizeof(*header), mbox 872 drivers/staging/media/allegro-dvt/allegro-core.c regmap_bulk_read(dev->sram, mbox->data, mbox 876 drivers/staging/media/allegro-dvt/allegro-core.c regmap_write(dev->sram, mbox->head, (head + size) % mbox->size); mbox 82 include/linux/mailbox_controller.h struct mbox_chan *(*of_xlate)(struct mbox_controller *mbox, mbox 118 include/linux/mailbox_controller.h struct mbox_controller *mbox; mbox 129 include/linux/mailbox_controller.h int mbox_controller_register(struct mbox_controller *mbox); /* can sleep */ mbox 130 include/linux/mailbox_controller.h void mbox_controller_unregister(struct mbox_controller *mbox); /* can sleep */ mbox 135 include/linux/mailbox_controller.h struct mbox_controller *mbox); mbox 137 include/linux/mailbox_controller.h struct mbox_controller *mbox); mbox 221 include/linux/rio.h void (*mcback) (struct rio_mport * mport, void *dev_id, int mbox, int slot); mbox 411 include/linux/rio.h int mbox, int entries); mbox 412 include/linux/rio.h void (*close_outb_mbox)(struct rio_mport *mport, int mbox); mbox 414 include/linux/rio.h int mbox, int entries); mbox 415 include/linux/rio.h void (*close_inb_mbox)(struct rio_mport *mport, int mbox); mbox 417 include/linux/rio.h int mbox, void *buffer, size_t len); mbox 418 include/linux/rio.h int (*add_inb_buffer)(struct rio_mport *mport, int mbox, void *buf); mbox 419 include/linux/rio.h void *(*get_inb_message)(struct rio_mport *mport, int mbox); mbox 312 include/linux/rio_drv.h struct rio_dev *rdev, int mbox, mbox 315 include/linux/rio_drv.h return mport->ops->add_outb_message(mport, rdev, mbox, mbox 332 include/linux/rio_drv.h static inline int rio_add_inb_buffer(struct rio_mport *mport, int mbox, mbox 335 include/linux/rio_drv.h return mport->ops->add_inb_buffer(mport, mbox, buffer); mbox 345 include/linux/rio_drv.h static inline void *rio_get_inb_message(struct rio_mport *mport, int mbox) mbox 347 include/linux/rio_drv.h return mport->ops->get_inb_message(mport, mbox); mbox 40 include/linux/wkup_m3_ipc.h struct mbox_chan *mbox; mbox 67 include/soc/tegra/bpmp.h } mbox;