mailbox 21 arch/arm64/kernel/acpi_parking_protocol.c struct parking_protocol_mailbox __iomem *mailbox; mailbox 62 arch/arm64/kernel/acpi_parking_protocol.c struct parking_protocol_mailbox __iomem *mailbox; mailbox 76 arch/arm64/kernel/acpi_parking_protocol.c mailbox = ioremap(cpu_entry->mailbox_addr, sizeof(*mailbox)); mailbox 77 arch/arm64/kernel/acpi_parking_protocol.c if (!mailbox) mailbox 80 arch/arm64/kernel/acpi_parking_protocol.c cpu_id = readl_relaxed(&mailbox->cpu_id); mailbox 86 arch/arm64/kernel/acpi_parking_protocol.c iounmap(mailbox); mailbox 94 arch/arm64/kernel/acpi_parking_protocol.c cpu_entry->mailbox = mailbox; mailbox 102 arch/arm64/kernel/acpi_parking_protocol.c writeq_relaxed(__pa_symbol(secondary_entry), &mailbox->entry_point); mailbox 103 arch/arm64/kernel/acpi_parking_protocol.c writel_relaxed(cpu_entry->gic_cpu_id, &mailbox->cpu_id); mailbox 114 arch/arm64/kernel/acpi_parking_protocol.c struct parking_protocol_mailbox __iomem *mailbox = cpu_entry->mailbox; mailbox 117 arch/arm64/kernel/acpi_parking_protocol.c entry_point = readq_relaxed(&mailbox->entry_point); mailbox 61 arch/mips/include/asm/vr41xx/pci.h struct pci_mailbox_address *mailbox; mailbox 78 arch/mips/pci/pci-vr41xx.c .mailbox = &pci_mailbox, mailbox 102 arch/mips/pci/pci-vr41xx.c struct pci_mailbox_address *mailbox; mailbox 224 arch/mips/pci/pci-vr41xx.c if (setup->mailbox != NULL) { mailbox 225 arch/mips/pci/pci-vr41xx.c mailbox = setup->mailbox; mailbox 226 arch/mips/pci/pci-vr41xx.c val = MBADD(mailbox->base_address) | TYPE_32BITSPACE | mailbox 364 drivers/char/applicom.c struct mailbox tmpmailbox; mailbox 370 drivers/char/applicom.c if (count != sizeof(struct st_ram_io) + sizeof(struct mailbox)) { mailbox 374 drivers/char/applicom.c count, sizeof(struct st_ram_io) + sizeof(struct mailbox)); mailbox 384 drivers/char/applicom.c sizeof(struct mailbox))) mailbox 413 drivers/char/applicom.c for (c = 0; c < sizeof(struct mailbox);) { mailbox 416 drivers/char/applicom.c for (c++; c % 8 && c < sizeof(struct mailbox); c++) { mailbox 470 drivers/char/applicom.c for (c = 0; c < sizeof(struct mailbox); c++) mailbox 486 drivers/char/applicom.c struct st_ram_io *st_loc, struct mailbox *mailbox) mailbox 489 drivers/char/applicom.c unsigned char *to = (unsigned char *)mailbox; mailbox 501 drivers/char/applicom.c for (c = 0; c < sizeof(struct mailbox); c++) mailbox 527 drivers/char/applicom.c for (c = 0; c < sizeof(struct mailbox);) { mailbox 528 drivers/char/applicom.c printk("\n%5.5X: %2.2X", c, ((unsigned char *)mailbox)[c]); mailbox 530 drivers/char/applicom.c for (c++; c % 8 && c < sizeof(struct mailbox); c++) { mailbox 531 drivers/char/applicom.c printk(" %2.2X", ((unsigned char *)mailbox)[c]); mailbox 536 drivers/char/applicom.c return (sizeof(struct st_ram_io) + sizeof(struct mailbox)); mailbox 550 drivers/char/applicom.c if (count != sizeof(struct st_ram_io) + sizeof(struct mailbox)) { mailbox 552 drivers/char/applicom.c count,sizeof(struct st_ram_io) + sizeof(struct mailbox)); mailbox 571 drivers/char/applicom.c struct mailbox mailbox; mailbox 575 drivers/char/applicom.c ret = do_ac_read(i, buf, &st_loc, &mailbox); mailbox 582 drivers/char/applicom.c if (copy_to_user(buf + sizeof(st_loc), &mailbox, sizeof(mailbox))) mailbox 69 drivers/clk/meson/g12a-aoclk.c AXG_AO_GATE(mailbox, AO_CLK_GATE0_SP, 0); mailbox 347 drivers/crypto/hisilicon/qm.c struct qm_mailbox mailbox; mailbox 353 drivers/crypto/hisilicon/qm.c mailbox.w0 = cmd | mailbox 356 drivers/crypto/hisilicon/qm.c mailbox.queue_num = queue; mailbox 357 drivers/crypto/hisilicon/qm.c mailbox.base_l = lower_32_bits(dma_addr); mailbox 358 drivers/crypto/hisilicon/qm.c mailbox.base_h = upper_32_bits(dma_addr); mailbox 359 drivers/crypto/hisilicon/qm.c mailbox.rsvd = 0; mailbox 369 drivers/crypto/hisilicon/qm.c qm_mb_write(qm, &mailbox); mailbox 159 drivers/crypto/qat/qat_common/adf_admin.c void __iomem *mailbox = admin->mailbox_addr; mailbox 165 drivers/crypto/qat/qat_common/adf_admin.c if (ADF_CSR_RD(mailbox, mb_offset) == 1) { mailbox 171 drivers/crypto/qat/qat_common/adf_admin.c ADF_CSR_WR(mailbox, mb_offset, 1); mailbox 175 drivers/crypto/qat/qat_common/adf_admin.c if (ADF_CSR_RD(mailbox, mb_offset) == 0) { mailbox 239 drivers/crypto/qat/qat_common/adf_admin.c void __iomem *mailbox = (void __iomem *)((uintptr_t)csr + mailbox 272 drivers/crypto/qat/qat_common/adf_admin.c admin->mailbox_addr = mailbox; mailbox 207 drivers/greybus/interface.c u32 mailbox) mailbox 218 drivers/greybus/interface.c if (mailbox != GB_SVC_INTF_MAILBOX_GREYBUS) { mailbox 221 drivers/greybus/interface.c mailbox); mailbox 232 drivers/greybus/interface.c mailbox); mailbox 1058 drivers/greybus/svc.c u32 mailbox; mailbox 1064 drivers/greybus/svc.c mailbox = le32_to_cpu(request->mailbox); mailbox 1067 drivers/greybus/svc.c __func__, intf_id, result_code, mailbox); mailbox 1075 drivers/greybus/svc.c gb_interface_mailbox_event(intf, result_code, mailbox); mailbox 268 drivers/infiniband/hw/hns/hns_roce_cmd.c struct hns_roce_cmd_mailbox *mailbox; mailbox 270 drivers/infiniband/hw/hns/hns_roce_cmd.c mailbox = kmalloc(sizeof(*mailbox), GFP_KERNEL); mailbox 271 drivers/infiniband/hw/hns/hns_roce_cmd.c if (!mailbox) mailbox 274 drivers/infiniband/hw/hns/hns_roce_cmd.c mailbox->buf = dma_pool_alloc(hr_dev->cmd.pool, GFP_KERNEL, mailbox 275 drivers/infiniband/hw/hns/hns_roce_cmd.c &mailbox->dma); mailbox 276 drivers/infiniband/hw/hns/hns_roce_cmd.c if (!mailbox->buf) { mailbox 277 drivers/infiniband/hw/hns/hns_roce_cmd.c kfree(mailbox); mailbox 281 drivers/infiniband/hw/hns/hns_roce_cmd.c return mailbox; mailbox 285 drivers/infiniband/hw/hns/hns_roce_cmd.c struct hns_roce_cmd_mailbox *mailbox) mailbox 287 drivers/infiniband/hw/hns/hns_roce_cmd.c if (!mailbox) mailbox 290 drivers/infiniband/hw/hns/hns_roce_cmd.c dma_pool_free(hr_dev->cmd.pool, mailbox->buf, mailbox->dma); mailbox 291 drivers/infiniband/hw/hns/hns_roce_cmd.c kfree(mailbox); mailbox 149 drivers/infiniband/hw/hns/hns_roce_cmd.h struct hns_roce_cmd_mailbox *mailbox); mailbox 77 drivers/infiniband/hw/hns/hns_roce_cq.c struct hns_roce_cmd_mailbox *mailbox, mailbox 80 drivers/infiniband/hw/hns/hns_roce_cq.c return hns_roce_cmd_mbox(dev, mailbox->dma, 0, cq_num, 0, mailbox 88 drivers/infiniband/hw/hns/hns_roce_cq.c struct hns_roce_cmd_mailbox *mailbox; mailbox 137 drivers/infiniband/hw/hns/hns_roce_cq.c mailbox = hns_roce_alloc_cmd_mailbox(hr_dev); mailbox 138 drivers/infiniband/hw/hns/hns_roce_cq.c if (IS_ERR(mailbox)) { mailbox 139 drivers/infiniband/hw/hns/hns_roce_cq.c ret = PTR_ERR(mailbox); mailbox 143 drivers/infiniband/hw/hns/hns_roce_cq.c hr_dev->hw->write_cqc(hr_dev, hr_cq, mailbox->buf, mtts, dma_handle, mailbox 147 drivers/infiniband/hw/hns/hns_roce_cq.c ret = hns_roce_sw2hw_cq(hr_dev, mailbox, hr_cq->cqn); mailbox 148 drivers/infiniband/hw/hns/hns_roce_cq.c hns_roce_free_cmd_mailbox(hr_dev, mailbox); mailbox 174 drivers/infiniband/hw/hns/hns_roce_cq.c struct hns_roce_cmd_mailbox *mailbox, mailbox 177 drivers/infiniband/hw/hns/hns_roce_cq.c return hns_roce_cmd_mbox(dev, 0, mailbox ? mailbox->dma : 0, cq_num, mailbox 178 drivers/infiniband/hw/hns/hns_roce_cq.c mailbox ? 0 : 1, HNS_ROCE_CMD_HW2SW_CQ, mailbox 1201 drivers/infiniband/hw/hns/hns_roce_device.h struct hns_roce_cmd_mailbox *mailbox, mailbox 2532 drivers/infiniband/hw/hns/hns_roce_hw_v1.c struct hns_roce_cmd_mailbox *mailbox; mailbox 2554 drivers/infiniband/hw/hns/hns_roce_hw_v1.c mailbox = hns_roce_alloc_cmd_mailbox(hr_dev); mailbox 2555 drivers/infiniband/hw/hns/hns_roce_hw_v1.c if (IS_ERR(mailbox)) mailbox 2556 drivers/infiniband/hw/hns/hns_roce_hw_v1.c return PTR_ERR(mailbox); mailbox 2558 drivers/infiniband/hw/hns/hns_roce_hw_v1.c memcpy(mailbox->buf, context, sizeof(*context)); mailbox 2560 drivers/infiniband/hw/hns/hns_roce_hw_v1.c ret = hns_roce_cmd_mbox(hr_dev, mailbox->dma, 0, hr_qp->qpn, 0, mailbox 2564 drivers/infiniband/hw/hns/hns_roce_hw_v1.c hns_roce_free_cmd_mailbox(hr_dev, mailbox); mailbox 3359 drivers/infiniband/hw/hns/hns_roce_hw_v1.c struct hns_roce_cmd_mailbox *mailbox; mailbox 3362 drivers/infiniband/hw/hns/hns_roce_hw_v1.c mailbox = hns_roce_alloc_cmd_mailbox(hr_dev); mailbox 3363 drivers/infiniband/hw/hns/hns_roce_hw_v1.c if (IS_ERR(mailbox)) mailbox 3364 drivers/infiniband/hw/hns/hns_roce_hw_v1.c return PTR_ERR(mailbox); mailbox 3366 drivers/infiniband/hw/hns/hns_roce_hw_v1.c ret = hns_roce_cmd_mbox(hr_dev, 0, mailbox->dma, hr_qp->qpn, 0, mailbox 3370 drivers/infiniband/hw/hns/hns_roce_hw_v1.c memcpy(hr_context, mailbox->buf, sizeof(*hr_context)); mailbox 3374 drivers/infiniband/hw/hns/hns_roce_hw_v1.c hns_roce_free_cmd_mailbox(hr_dev, mailbox); mailbox 3040 drivers/infiniband/hw/hns/hns_roce_hw_v2.c struct hns_roce_cmd_mailbox *mailbox; mailbox 3078 drivers/infiniband/hw/hns/hns_roce_hw_v2.c mailbox = hns_roce_alloc_cmd_mailbox(hr_dev); mailbox 3079 drivers/infiniband/hw/hns/hns_roce_hw_v2.c if (IS_ERR(mailbox)) mailbox 3080 drivers/infiniband/hw/hns/hns_roce_hw_v2.c return PTR_ERR(mailbox); mailbox 3092 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ret = hns_roce_cmd_mbox(hr_dev, bt_ba, mailbox->dma, mailbox 3103 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ret = hns_roce_cmd_mbox(hr_dev, bt_ba, mailbox->dma, obj, mailbox 3107 drivers/infiniband/hw/hns/hns_roce_hw_v2.c hns_roce_free_cmd_mailbox(hr_dev, mailbox); mailbox 3116 drivers/infiniband/hw/hns/hns_roce_hw_v2.c struct hns_roce_cmd_mailbox *mailbox; mailbox 3153 drivers/infiniband/hw/hns/hns_roce_hw_v2.c mailbox = hns_roce_alloc_cmd_mailbox(hr_dev); mailbox 3154 drivers/infiniband/hw/hns/hns_roce_hw_v2.c if (IS_ERR(mailbox)) mailbox 3155 drivers/infiniband/hw/hns/hns_roce_hw_v2.c return PTR_ERR(mailbox); mailbox 3158 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ret = hns_roce_cmd_mbox(hr_dev, 0, mailbox->dma, obj, 0, op, mailbox 3161 drivers/infiniband/hw/hns/hns_roce_hw_v2.c hns_roce_free_cmd_mailbox(hr_dev, mailbox); mailbox 3171 drivers/infiniband/hw/hns/hns_roce_hw_v2.c struct hns_roce_cmd_mailbox *mailbox; mailbox 3174 drivers/infiniband/hw/hns/hns_roce_hw_v2.c mailbox = hns_roce_alloc_cmd_mailbox(hr_dev); mailbox 3175 drivers/infiniband/hw/hns/hns_roce_hw_v2.c if (IS_ERR(mailbox)) mailbox 3176 drivers/infiniband/hw/hns/hns_roce_hw_v2.c return PTR_ERR(mailbox); mailbox 3178 drivers/infiniband/hw/hns/hns_roce_hw_v2.c memcpy(mailbox->buf, context, sizeof(*context) * 2); mailbox 3180 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ret = hns_roce_cmd_mbox(hr_dev, mailbox->dma, 0, hr_qp->qpn, 0, mailbox 3184 drivers/infiniband/hw/hns/hns_roce_hw_v2.c hns_roce_free_cmd_mailbox(hr_dev, mailbox); mailbox 4499 drivers/infiniband/hw/hns/hns_roce_hw_v2.c struct hns_roce_cmd_mailbox *mailbox; mailbox 4502 drivers/infiniband/hw/hns/hns_roce_hw_v2.c mailbox = hns_roce_alloc_cmd_mailbox(hr_dev); mailbox 4503 drivers/infiniband/hw/hns/hns_roce_hw_v2.c if (IS_ERR(mailbox)) mailbox 4504 drivers/infiniband/hw/hns/hns_roce_hw_v2.c return PTR_ERR(mailbox); mailbox 4506 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ret = hns_roce_cmd_mbox(hr_dev, 0, mailbox->dma, hr_qp->qpn, 0, mailbox 4514 drivers/infiniband/hw/hns/hns_roce_hw_v2.c memcpy(hr_context, mailbox->buf, sizeof(*hr_context)); mailbox 4517 drivers/infiniband/hw/hns/hns_roce_hw_v2.c hns_roce_free_cmd_mailbox(hr_dev, mailbox); mailbox 4799 drivers/infiniband/hw/hns/hns_roce_hw_v2.c struct hns_roce_cmd_mailbox *mailbox; mailbox 4802 drivers/infiniband/hw/hns/hns_roce_hw_v2.c mailbox = hns_roce_alloc_cmd_mailbox(hr_dev); mailbox 4803 drivers/infiniband/hw/hns/hns_roce_hw_v2.c if (IS_ERR(mailbox)) mailbox 4804 drivers/infiniband/hw/hns/hns_roce_hw_v2.c return PTR_ERR(mailbox); mailbox 4806 drivers/infiniband/hw/hns/hns_roce_hw_v2.c cq_context = mailbox->buf; mailbox 4807 drivers/infiniband/hw/hns/hns_roce_hw_v2.c cqc_mask = (struct hns_roce_v2_cq_context *)mailbox->buf + 1; mailbox 4824 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ret = hns_roce_cmd_mbox(hr_dev, mailbox->dma, 0, hr_cq->cqn, 1, mailbox 4827 drivers/infiniband/hw/hns/hns_roce_hw_v2.c hns_roce_free_cmd_mailbox(hr_dev, mailbox); mailbox 5756 drivers/infiniband/hw/hns/hns_roce_hw_v2.c struct hns_roce_cmd_mailbox *mailbox; mailbox 5761 drivers/infiniband/hw/hns/hns_roce_hw_v2.c mailbox = hns_roce_alloc_cmd_mailbox(hr_dev); mailbox 5762 drivers/infiniband/hw/hns/hns_roce_hw_v2.c if (IS_ERR(mailbox)) mailbox 5763 drivers/infiniband/hw/hns/hns_roce_hw_v2.c return PTR_ERR(mailbox); mailbox 5791 drivers/infiniband/hw/hns/hns_roce_hw_v2.c hns_roce_config_eqc(hr_dev, eq, mailbox->buf); mailbox 5793 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ret = hns_roce_cmd_mbox(hr_dev, mailbox->dma, 0, eq->eqn, 0, mailbox 5800 drivers/infiniband/hw/hns/hns_roce_hw_v2.c hns_roce_free_cmd_mailbox(hr_dev, mailbox); mailbox 5817 drivers/infiniband/hw/hns/hns_roce_hw_v2.c hns_roce_free_cmd_mailbox(hr_dev, mailbox); mailbox 6130 drivers/infiniband/hw/hns/hns_roce_hw_v2.c struct hns_roce_cmd_mailbox *mailbox; mailbox 6137 drivers/infiniband/hw/hns/hns_roce_hw_v2.c mailbox = hns_roce_alloc_cmd_mailbox(hr_dev); mailbox 6138 drivers/infiniband/hw/hns/hns_roce_hw_v2.c if (IS_ERR(mailbox)) mailbox 6139 drivers/infiniband/hw/hns/hns_roce_hw_v2.c return PTR_ERR(mailbox); mailbox 6141 drivers/infiniband/hw/hns/hns_roce_hw_v2.c srq_context = mailbox->buf; mailbox 6142 drivers/infiniband/hw/hns/hns_roce_hw_v2.c srqc_mask = (struct hns_roce_srq_context *)mailbox->buf + 1; mailbox 6153 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ret = hns_roce_cmd_mbox(hr_dev, mailbox->dma, 0, srq->srqn, 0, mailbox 6156 drivers/infiniband/hw/hns/hns_roce_hw_v2.c hns_roce_free_cmd_mailbox(hr_dev, mailbox); mailbox 6172 drivers/infiniband/hw/hns/hns_roce_hw_v2.c struct hns_roce_cmd_mailbox *mailbox; mailbox 6176 drivers/infiniband/hw/hns/hns_roce_hw_v2.c mailbox = hns_roce_alloc_cmd_mailbox(hr_dev); mailbox 6177 drivers/infiniband/hw/hns/hns_roce_hw_v2.c if (IS_ERR(mailbox)) mailbox 6178 drivers/infiniband/hw/hns/hns_roce_hw_v2.c return PTR_ERR(mailbox); mailbox 6180 drivers/infiniband/hw/hns/hns_roce_hw_v2.c srq_context = mailbox->buf; mailbox 6181 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ret = hns_roce_cmd_mbox(hr_dev, 0, mailbox->dma, srq->srqn, 0, mailbox 6197 drivers/infiniband/hw/hns/hns_roce_hw_v2.c memcpy(srq_context, mailbox->buf, sizeof(*srq_context)); mailbox 6200 drivers/infiniband/hw/hns/hns_roce_hw_v2.c hns_roce_free_cmd_mailbox(hr_dev, mailbox); mailbox 13 drivers/infiniband/hw/hns/hns_roce_hw_v2_dfx.c struct hns_roce_cmd_mailbox *mailbox; mailbox 16 drivers/infiniband/hw/hns/hns_roce_hw_v2_dfx.c mailbox = hns_roce_alloc_cmd_mailbox(hr_dev); mailbox 17 drivers/infiniband/hw/hns/hns_roce_hw_v2_dfx.c if (IS_ERR(mailbox)) mailbox 18 drivers/infiniband/hw/hns/hns_roce_hw_v2_dfx.c return PTR_ERR(mailbox); mailbox 20 drivers/infiniband/hw/hns/hns_roce_hw_v2_dfx.c cq_context = mailbox->buf; mailbox 21 drivers/infiniband/hw/hns/hns_roce_hw_v2_dfx.c ret = hns_roce_cmd_mbox(hr_dev, 0, mailbox->dma, cqn, 0, mailbox 32 drivers/infiniband/hw/hns/hns_roce_hw_v2_dfx.c hns_roce_free_cmd_mailbox(hr_dev, mailbox); mailbox 52 drivers/infiniband/hw/hns/hns_roce_mr.c struct hns_roce_cmd_mailbox *mailbox, mailbox 55 drivers/infiniband/hw/hns/hns_roce_mr.c return hns_roce_cmd_mbox(hr_dev, mailbox->dma, 0, mpt_index, 0, mailbox 61 drivers/infiniband/hw/hns/hns_roce_mr.c struct hns_roce_cmd_mailbox *mailbox, mailbox 64 drivers/infiniband/hw/hns/hns_roce_mr.c return hns_roce_cmd_mbox(hr_dev, 0, mailbox ? mailbox->dma : 0, mailbox 65 drivers/infiniband/hw/hns/hns_roce_mr.c mpt_index, !mailbox, HNS_ROCE_CMD_HW2SW_MPT, mailbox 742 drivers/infiniband/hw/hns/hns_roce_mr.c struct hns_roce_cmd_mailbox *mailbox; mailbox 751 drivers/infiniband/hw/hns/hns_roce_mr.c mailbox = hns_roce_alloc_cmd_mailbox(hr_dev); mailbox 752 drivers/infiniband/hw/hns/hns_roce_mr.c if (IS_ERR(mailbox)) { mailbox 753 drivers/infiniband/hw/hns/hns_roce_mr.c ret = PTR_ERR(mailbox); mailbox 758 drivers/infiniband/hw/hns/hns_roce_mr.c ret = hr_dev->hw->write_mtpt(mailbox->buf, mr, mtpt_idx); mailbox 760 drivers/infiniband/hw/hns/hns_roce_mr.c ret = hr_dev->hw->frmr_write_mtpt(mailbox->buf, mr); mailbox 766 drivers/infiniband/hw/hns/hns_roce_mr.c ret = hns_roce_sw2hw_mpt(hr_dev, mailbox, mailbox 774 drivers/infiniband/hw/hns/hns_roce_mr.c hns_roce_free_cmd_mailbox(hr_dev, mailbox); mailbox 779 drivers/infiniband/hw/hns/hns_roce_mr.c hns_roce_free_cmd_mailbox(hr_dev, mailbox); mailbox 1211 drivers/infiniband/hw/hns/hns_roce_mr.c struct hns_roce_cmd_mailbox *mailbox, mailbox 1255 drivers/infiniband/hw/hns/hns_roce_mr.c length, mailbox->buf); mailbox 1291 drivers/infiniband/hw/hns/hns_roce_mr.c struct hns_roce_cmd_mailbox *mailbox; mailbox 1300 drivers/infiniband/hw/hns/hns_roce_mr.c mailbox = hns_roce_alloc_cmd_mailbox(hr_dev); mailbox 1301 drivers/infiniband/hw/hns/hns_roce_mr.c if (IS_ERR(mailbox)) mailbox 1302 drivers/infiniband/hw/hns/hns_roce_mr.c return PTR_ERR(mailbox); mailbox 1305 drivers/infiniband/hw/hns/hns_roce_mr.c ret = hns_roce_cmd_mbox(hr_dev, 0, mailbox->dma, mtpt_idx, 0, mailbox 1324 drivers/infiniband/hw/hns/hns_roce_mr.c mailbox, pdn, udata); mailbox 1330 drivers/infiniband/hw/hns/hns_roce_mr.c length, mailbox->buf); mailbox 1335 drivers/infiniband/hw/hns/hns_roce_mr.c ret = hns_roce_sw2hw_mpt(hr_dev, mailbox, mtpt_idx); mailbox 1346 drivers/infiniband/hw/hns/hns_roce_mr.c hns_roce_free_cmd_mailbox(hr_dev, mailbox); mailbox 1351 drivers/infiniband/hw/hns/hns_roce_mr.c hns_roce_free_cmd_mailbox(hr_dev, mailbox); mailbox 1468 drivers/infiniband/hw/hns/hns_roce_mr.c struct hns_roce_cmd_mailbox *mailbox; mailbox 1478 drivers/infiniband/hw/hns/hns_roce_mr.c mailbox = hns_roce_alloc_cmd_mailbox(hr_dev); mailbox 1479 drivers/infiniband/hw/hns/hns_roce_mr.c if (IS_ERR(mailbox)) { mailbox 1480 drivers/infiniband/hw/hns/hns_roce_mr.c ret = PTR_ERR(mailbox); mailbox 1484 drivers/infiniband/hw/hns/hns_roce_mr.c ret = hr_dev->hw->mw_write_mtpt(mailbox->buf, mw); mailbox 1490 drivers/infiniband/hw/hns/hns_roce_mr.c ret = hns_roce_sw2hw_mpt(hr_dev, mailbox, mailbox 1499 drivers/infiniband/hw/hns/hns_roce_mr.c hns_roce_free_cmd_mailbox(hr_dev, mailbox); mailbox 1504 drivers/infiniband/hw/hns/hns_roce_mr.c hns_roce_free_cmd_mailbox(hr_dev, mailbox); mailbox 63 drivers/infiniband/hw/hns/hns_roce_srq.c struct hns_roce_cmd_mailbox *mailbox, mailbox 66 drivers/infiniband/hw/hns/hns_roce_srq.c return hns_roce_cmd_mbox(dev, mailbox->dma, 0, srq_num, 0, mailbox 72 drivers/infiniband/hw/hns/hns_roce_srq.c struct hns_roce_cmd_mailbox *mailbox, mailbox 75 drivers/infiniband/hw/hns/hns_roce_srq.c return hns_roce_cmd_mbox(dev, 0, mailbox ? mailbox->dma : 0, srq_num, mailbox 76 drivers/infiniband/hw/hns/hns_roce_srq.c mailbox ? 0 : 1, HNS_ROCE_CMD_HW2SW_SRQ, mailbox 85 drivers/infiniband/hw/hns/hns_roce_srq.c struct hns_roce_cmd_mailbox *mailbox; mailbox 127 drivers/infiniband/hw/hns/hns_roce_srq.c mailbox = hns_roce_alloc_cmd_mailbox(hr_dev); mailbox 128 drivers/infiniband/hw/hns/hns_roce_srq.c if (IS_ERR(mailbox)) { mailbox 129 drivers/infiniband/hw/hns/hns_roce_srq.c ret = PTR_ERR(mailbox); mailbox 133 drivers/infiniband/hw/hns/hns_roce_srq.c hr_dev->hw->write_srqc(hr_dev, srq, pdn, xrcd, cqn, mailbox->buf, mailbox 137 drivers/infiniband/hw/hns/hns_roce_srq.c ret = hns_roce_sw2hw_srq(hr_dev, mailbox, srq->srqn); mailbox 138 drivers/infiniband/hw/hns/hns_roce_srq.c hns_roce_free_cmd_mailbox(hr_dev, mailbox); mailbox 165 drivers/infiniband/hw/mlx4/main.c struct mlx4_cmd_mailbox *mailbox; mailbox 171 drivers/infiniband/hw/mlx4/main.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 172 drivers/infiniband/hw/mlx4/main.c if (IS_ERR(mailbox)) mailbox 175 drivers/infiniband/hw/mlx4/main.c gid_tbl = mailbox->buf; mailbox 180 drivers/infiniband/hw/mlx4/main.c err = mlx4_cmd(dev, mailbox->dma, mailbox 185 drivers/infiniband/hw/mlx4/main.c err += mlx4_cmd(dev, mailbox->dma, mailbox 190 drivers/infiniband/hw/mlx4/main.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 198 drivers/infiniband/hw/mlx4/main.c struct mlx4_cmd_mailbox *mailbox; mailbox 211 drivers/infiniband/hw/mlx4/main.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 212 drivers/infiniband/hw/mlx4/main.c if (IS_ERR(mailbox)) mailbox 215 drivers/infiniband/hw/mlx4/main.c gid_tbl = mailbox->buf; mailbox 225 drivers/infiniband/hw/mlx4/main.c err = mlx4_cmd(dev, mailbox->dma, mailbox 230 drivers/infiniband/hw/mlx4/main.c err += mlx4_cmd(dev, mailbox->dma, mailbox 235 drivers/infiniband/hw/mlx4/main.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 761 drivers/infiniband/hw/mlx4/main.c struct mlx4_cmd_mailbox *mailbox; mailbox 765 drivers/infiniband/hw/mlx4/main.c mailbox = mlx4_alloc_cmd_mailbox(mdev->dev); mailbox 766 drivers/infiniband/hw/mlx4/main.c if (IS_ERR(mailbox)) mailbox 767 drivers/infiniband/hw/mlx4/main.c return PTR_ERR(mailbox); mailbox 769 drivers/infiniband/hw/mlx4/main.c err = mlx4_cmd_box(mdev->dev, 0, mailbox->dma, port, 0, mailbox 775 drivers/infiniband/hw/mlx4/main.c props->active_width = (((u8 *)mailbox->buf)[5] == 0x40) || mailbox 776 drivers/infiniband/hw/mlx4/main.c (((u8 *)mailbox->buf)[5] == 0x20 /*56Gb*/) ? mailbox 778 drivers/infiniband/hw/mlx4/main.c props->active_speed = (((u8 *)mailbox->buf)[5] == 0x20 /*56Gb*/) ? mailbox 809 drivers/infiniband/hw/mlx4/main.c mlx4_free_cmd_mailbox(mdev->dev, mailbox); mailbox 999 drivers/infiniband/hw/mlx4/main.c struct mlx4_cmd_mailbox *mailbox; mailbox 1019 drivers/infiniband/hw/mlx4/main.c mailbox = mlx4_alloc_cmd_mailbox(to_mdev(ibdev)->dev); mailbox 1020 drivers/infiniband/hw/mlx4/main.c if (IS_ERR(mailbox)) mailbox 1023 drivers/infiniband/hw/mlx4/main.c memcpy(mailbox->buf, props->node_desc, IB_DEVICE_NODE_DESC_MAX); mailbox 1024 drivers/infiniband/hw/mlx4/main.c mlx4_cmd(to_mdev(ibdev)->dev, mailbox->dma, 1, 0, mailbox 1027 drivers/infiniband/hw/mlx4/main.c mlx4_free_cmd_mailbox(to_mdev(ibdev)->dev, mailbox); mailbox 1035 drivers/infiniband/hw/mlx4/main.c struct mlx4_cmd_mailbox *mailbox; mailbox 1038 drivers/infiniband/hw/mlx4/main.c mailbox = mlx4_alloc_cmd_mailbox(dev->dev); mailbox 1039 drivers/infiniband/hw/mlx4/main.c if (IS_ERR(mailbox)) mailbox 1040 drivers/infiniband/hw/mlx4/main.c return PTR_ERR(mailbox); mailbox 1043 drivers/infiniband/hw/mlx4/main.c *(u8 *) mailbox->buf = !!reset_qkey_viols << 6; mailbox 1044 drivers/infiniband/hw/mlx4/main.c ((__be32 *) mailbox->buf)[2] = cpu_to_be32(cap_mask); mailbox 1046 drivers/infiniband/hw/mlx4/main.c ((u8 *) mailbox->buf)[3] = !!reset_qkey_viols; mailbox 1047 drivers/infiniband/hw/mlx4/main.c ((__be32 *) mailbox->buf)[1] = cpu_to_be32(cap_mask); mailbox 1050 drivers/infiniband/hw/mlx4/main.c err = mlx4_cmd(dev->dev, mailbox->dma, port, MLX4_SET_PORT_IB_OPCODE, mailbox 1054 drivers/infiniband/hw/mlx4/main.c mlx4_free_cmd_mailbox(dev->dev, mailbox); mailbox 1534 drivers/infiniband/hw/mlx4/main.c struct mlx4_cmd_mailbox *mailbox; mailbox 1558 drivers/infiniband/hw/mlx4/main.c mailbox = mlx4_alloc_cmd_mailbox(mdev->dev); mailbox 1559 drivers/infiniband/hw/mlx4/main.c if (IS_ERR(mailbox)) mailbox 1560 drivers/infiniband/hw/mlx4/main.c return PTR_ERR(mailbox); mailbox 1561 drivers/infiniband/hw/mlx4/main.c ctrl = mailbox->buf; mailbox 1576 drivers/infiniband/hw/mlx4/main.c mailbox->buf + size); mailbox 1578 drivers/infiniband/hw/mlx4/main.c mlx4_free_cmd_mailbox(mdev->dev, mailbox); mailbox 1585 drivers/infiniband/hw/mlx4/main.c mailbox->buf + size); mailbox 1587 drivers/infiniband/hw/mlx4/main.c mlx4_free_cmd_mailbox(mdev->dev, mailbox); mailbox 1604 drivers/infiniband/hw/mlx4/main.c ret = mlx4_cmd_imm(mdev->dev, mailbox->dma, reg_id, size >> 2, 0, mailbox 1614 drivers/infiniband/hw/mlx4/main.c mlx4_free_cmd_mailbox(mdev->dev, mailbox); mailbox 612 drivers/infiniband/hw/mthca/mthca_cmd.c struct mthca_mailbox *mailbox; mailbox 614 drivers/infiniband/hw/mthca/mthca_cmd.c mailbox = kmalloc(sizeof *mailbox, gfp_mask); mailbox 615 drivers/infiniband/hw/mthca/mthca_cmd.c if (!mailbox) mailbox 618 drivers/infiniband/hw/mthca/mthca_cmd.c mailbox->buf = dma_pool_alloc(dev->cmd.pool, gfp_mask, &mailbox->dma); mailbox 619 drivers/infiniband/hw/mthca/mthca_cmd.c if (!mailbox->buf) { mailbox 620 drivers/infiniband/hw/mthca/mthca_cmd.c kfree(mailbox); mailbox 624 drivers/infiniband/hw/mthca/mthca_cmd.c return mailbox; mailbox 627 drivers/infiniband/hw/mthca/mthca_cmd.c void mthca_free_mailbox(struct mthca_dev *dev, struct mthca_mailbox *mailbox) mailbox 629 drivers/infiniband/hw/mthca/mthca_cmd.c if (!mailbox) mailbox 632 drivers/infiniband/hw/mthca/mthca_cmd.c dma_pool_free(dev->cmd.pool, mailbox->buf, mailbox->dma); mailbox 633 drivers/infiniband/hw/mthca/mthca_cmd.c kfree(mailbox); mailbox 660 drivers/infiniband/hw/mthca/mthca_cmd.c struct mthca_mailbox *mailbox; mailbox 669 drivers/infiniband/hw/mthca/mthca_cmd.c mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); mailbox 670 drivers/infiniband/hw/mthca/mthca_cmd.c if (IS_ERR(mailbox)) mailbox 671 drivers/infiniband/hw/mthca/mthca_cmd.c return PTR_ERR(mailbox); mailbox 672 drivers/infiniband/hw/mthca/mthca_cmd.c memset(mailbox->buf, 0, MTHCA_MAILBOX_SIZE); mailbox 673 drivers/infiniband/hw/mthca/mthca_cmd.c pages = mailbox->buf; mailbox 705 drivers/infiniband/hw/mthca/mthca_cmd.c err = mthca_cmd(dev, mailbox->dma, nent, 0, op, mailbox 715 drivers/infiniband/hw/mthca/mthca_cmd.c err = mthca_cmd(dev, mailbox->dma, nent, 0, op, mailbox 732 drivers/infiniband/hw/mthca/mthca_cmd.c mthca_free_mailbox(dev, mailbox); mailbox 779 drivers/infiniband/hw/mthca/mthca_cmd.c struct mthca_mailbox *mailbox; mailbox 805 drivers/infiniband/hw/mthca/mthca_cmd.c mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); mailbox 806 drivers/infiniband/hw/mthca/mthca_cmd.c if (IS_ERR(mailbox)) mailbox 807 drivers/infiniband/hw/mthca/mthca_cmd.c return PTR_ERR(mailbox); mailbox 808 drivers/infiniband/hw/mthca/mthca_cmd.c outbox = mailbox->buf; mailbox 810 drivers/infiniband/hw/mthca/mthca_cmd.c err = mthca_cmd_box(dev, 0, mailbox->dma, 0, 0, CMD_QUERY_FW, mailbox 879 drivers/infiniband/hw/mthca/mthca_cmd.c mthca_free_mailbox(dev, mailbox); mailbox 885 drivers/infiniband/hw/mthca/mthca_cmd.c struct mthca_mailbox *mailbox; mailbox 898 drivers/infiniband/hw/mthca/mthca_cmd.c mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); mailbox 899 drivers/infiniband/hw/mthca/mthca_cmd.c if (IS_ERR(mailbox)) mailbox 900 drivers/infiniband/hw/mthca/mthca_cmd.c return PTR_ERR(mailbox); mailbox 901 drivers/infiniband/hw/mthca/mthca_cmd.c outbox = mailbox->buf; mailbox 903 drivers/infiniband/hw/mthca/mthca_cmd.c err = mthca_cmd_box(dev, 0, mailbox->dma, 0, 0, CMD_ENABLE_LAM, mailbox 929 drivers/infiniband/hw/mthca/mthca_cmd.c mthca_free_mailbox(dev, mailbox); mailbox 940 drivers/infiniband/hw/mthca/mthca_cmd.c struct mthca_mailbox *mailbox; mailbox 953 drivers/infiniband/hw/mthca/mthca_cmd.c mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); mailbox 954 drivers/infiniband/hw/mthca/mthca_cmd.c if (IS_ERR(mailbox)) mailbox 955 drivers/infiniband/hw/mthca/mthca_cmd.c return PTR_ERR(mailbox); mailbox 956 drivers/infiniband/hw/mthca/mthca_cmd.c outbox = mailbox->buf; mailbox 958 drivers/infiniband/hw/mthca/mthca_cmd.c err = mthca_cmd_box(dev, 0, mailbox->dma, 0, 0, CMD_QUERY_DDR, mailbox 984 drivers/infiniband/hw/mthca/mthca_cmd.c mthca_free_mailbox(dev, mailbox); mailbox 991 drivers/infiniband/hw/mthca/mthca_cmd.c struct mthca_mailbox *mailbox; mailbox 1059 drivers/infiniband/hw/mthca/mthca_cmd.c mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); mailbox 1060 drivers/infiniband/hw/mthca/mthca_cmd.c if (IS_ERR(mailbox)) mailbox 1061 drivers/infiniband/hw/mthca/mthca_cmd.c return PTR_ERR(mailbox); mailbox 1062 drivers/infiniband/hw/mthca/mthca_cmd.c outbox = mailbox->buf; mailbox 1064 drivers/infiniband/hw/mthca/mthca_cmd.c err = mthca_cmd_box(dev, 0, mailbox->dma, 0, 0, CMD_QUERY_DEV_LIM, mailbox 1236 drivers/infiniband/hw/mthca/mthca_cmd.c mthca_free_mailbox(dev, mailbox); mailbox 1271 drivers/infiniband/hw/mthca/mthca_cmd.c struct mthca_mailbox *mailbox; mailbox 1282 drivers/infiniband/hw/mthca/mthca_cmd.c mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); mailbox 1283 drivers/infiniband/hw/mthca/mthca_cmd.c if (IS_ERR(mailbox)) mailbox 1284 drivers/infiniband/hw/mthca/mthca_cmd.c return PTR_ERR(mailbox); mailbox 1285 drivers/infiniband/hw/mthca/mthca_cmd.c outbox = mailbox->buf; mailbox 1287 drivers/infiniband/hw/mthca/mthca_cmd.c err = mthca_cmd_box(dev, 0, mailbox->dma, 0, 0, CMD_QUERY_ADAPTER, mailbox 1307 drivers/infiniband/hw/mthca/mthca_cmd.c mthca_free_mailbox(dev, mailbox); mailbox 1314 drivers/infiniband/hw/mthca/mthca_cmd.c struct mthca_mailbox *mailbox; mailbox 1356 drivers/infiniband/hw/mthca/mthca_cmd.c mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); mailbox 1357 drivers/infiniband/hw/mthca/mthca_cmd.c if (IS_ERR(mailbox)) mailbox 1358 drivers/infiniband/hw/mthca/mthca_cmd.c return PTR_ERR(mailbox); mailbox 1359 drivers/infiniband/hw/mthca/mthca_cmd.c inbox = mailbox->buf; mailbox 1429 drivers/infiniband/hw/mthca/mthca_cmd.c err = mthca_cmd(dev, mailbox->dma, 0, 0, mailbox 1432 drivers/infiniband/hw/mthca/mthca_cmd.c mthca_free_mailbox(dev, mailbox); mailbox 1440 drivers/infiniband/hw/mthca/mthca_cmd.c struct mthca_mailbox *mailbox; mailbox 1459 drivers/infiniband/hw/mthca/mthca_cmd.c mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); mailbox 1460 drivers/infiniband/hw/mthca/mthca_cmd.c if (IS_ERR(mailbox)) mailbox 1461 drivers/infiniband/hw/mthca/mthca_cmd.c return PTR_ERR(mailbox); mailbox 1462 drivers/infiniband/hw/mthca/mthca_cmd.c inbox = mailbox->buf; mailbox 1481 drivers/infiniband/hw/mthca/mthca_cmd.c err = mthca_cmd(dev, mailbox->dma, port, 0, CMD_INIT_IB, mailbox 1484 drivers/infiniband/hw/mthca/mthca_cmd.c mthca_free_mailbox(dev, mailbox); mailbox 1501 drivers/infiniband/hw/mthca/mthca_cmd.c struct mthca_mailbox *mailbox; mailbox 1513 drivers/infiniband/hw/mthca/mthca_cmd.c mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); mailbox 1514 drivers/infiniband/hw/mthca/mthca_cmd.c if (IS_ERR(mailbox)) mailbox 1515 drivers/infiniband/hw/mthca/mthca_cmd.c return PTR_ERR(mailbox); mailbox 1516 drivers/infiniband/hw/mthca/mthca_cmd.c inbox = mailbox->buf; mailbox 1527 drivers/infiniband/hw/mthca/mthca_cmd.c err = mthca_cmd(dev, mailbox->dma, port, 0, CMD_SET_IB, mailbox 1530 drivers/infiniband/hw/mthca/mthca_cmd.c mthca_free_mailbox(dev, mailbox); mailbox 1541 drivers/infiniband/hw/mthca/mthca_cmd.c struct mthca_mailbox *mailbox; mailbox 1545 drivers/infiniband/hw/mthca/mthca_cmd.c mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); mailbox 1546 drivers/infiniband/hw/mthca/mthca_cmd.c if (IS_ERR(mailbox)) mailbox 1547 drivers/infiniband/hw/mthca/mthca_cmd.c return PTR_ERR(mailbox); mailbox 1548 drivers/infiniband/hw/mthca/mthca_cmd.c inbox = mailbox->buf; mailbox 1553 drivers/infiniband/hw/mthca/mthca_cmd.c err = mthca_cmd(dev, mailbox->dma, 1, 0, CMD_MAP_ICM, mailbox 1556 drivers/infiniband/hw/mthca/mthca_cmd.c mthca_free_mailbox(dev, mailbox); mailbox 1602 drivers/infiniband/hw/mthca/mthca_cmd.c int mthca_SW2HW_MPT(struct mthca_dev *dev, struct mthca_mailbox *mailbox, mailbox 1605 drivers/infiniband/hw/mthca/mthca_cmd.c return mthca_cmd(dev, mailbox->dma, mpt_index, 0, CMD_SW2HW_MPT, mailbox 1609 drivers/infiniband/hw/mthca/mthca_cmd.c int mthca_HW2SW_MPT(struct mthca_dev *dev, struct mthca_mailbox *mailbox, mailbox 1612 drivers/infiniband/hw/mthca/mthca_cmd.c return mthca_cmd_box(dev, 0, mailbox ? mailbox->dma : 0, mpt_index, mailbox 1613 drivers/infiniband/hw/mthca/mthca_cmd.c !mailbox, CMD_HW2SW_MPT, mailbox 1617 drivers/infiniband/hw/mthca/mthca_cmd.c int mthca_WRITE_MTT(struct mthca_dev *dev, struct mthca_mailbox *mailbox, mailbox 1620 drivers/infiniband/hw/mthca/mthca_cmd.c return mthca_cmd(dev, mailbox->dma, num_mtt, 0, CMD_WRITE_MTT, mailbox 1639 drivers/infiniband/hw/mthca/mthca_cmd.c int mthca_SW2HW_EQ(struct mthca_dev *dev, struct mthca_mailbox *mailbox, mailbox 1642 drivers/infiniband/hw/mthca/mthca_cmd.c return mthca_cmd(dev, mailbox->dma, eq_num, 0, CMD_SW2HW_EQ, mailbox 1646 drivers/infiniband/hw/mthca/mthca_cmd.c int mthca_HW2SW_EQ(struct mthca_dev *dev, struct mthca_mailbox *mailbox, mailbox 1649 drivers/infiniband/hw/mthca/mthca_cmd.c return mthca_cmd_box(dev, 0, mailbox->dma, eq_num, 0, mailbox 1654 drivers/infiniband/hw/mthca/mthca_cmd.c int mthca_SW2HW_CQ(struct mthca_dev *dev, struct mthca_mailbox *mailbox, mailbox 1657 drivers/infiniband/hw/mthca/mthca_cmd.c return mthca_cmd(dev, mailbox->dma, cq_num, 0, CMD_SW2HW_CQ, mailbox 1661 drivers/infiniband/hw/mthca/mthca_cmd.c int mthca_HW2SW_CQ(struct mthca_dev *dev, struct mthca_mailbox *mailbox, mailbox 1664 drivers/infiniband/hw/mthca/mthca_cmd.c return mthca_cmd_box(dev, 0, mailbox->dma, cq_num, 0, mailbox 1671 drivers/infiniband/hw/mthca/mthca_cmd.c struct mthca_mailbox *mailbox; mailbox 1679 drivers/infiniband/hw/mthca/mthca_cmd.c mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); mailbox 1680 drivers/infiniband/hw/mthca/mthca_cmd.c if (IS_ERR(mailbox)) mailbox 1681 drivers/infiniband/hw/mthca/mthca_cmd.c return PTR_ERR(mailbox); mailbox 1682 drivers/infiniband/hw/mthca/mthca_cmd.c inbox = mailbox->buf; mailbox 1692 drivers/infiniband/hw/mthca/mthca_cmd.c err = mthca_cmd(dev, mailbox->dma, cq_num, 1, CMD_RESIZE_CQ, mailbox 1695 drivers/infiniband/hw/mthca/mthca_cmd.c mthca_free_mailbox(dev, mailbox); mailbox 1699 drivers/infiniband/hw/mthca/mthca_cmd.c int mthca_SW2HW_SRQ(struct mthca_dev *dev, struct mthca_mailbox *mailbox, mailbox 1702 drivers/infiniband/hw/mthca/mthca_cmd.c return mthca_cmd(dev, mailbox->dma, srq_num, 0, CMD_SW2HW_SRQ, mailbox 1706 drivers/infiniband/hw/mthca/mthca_cmd.c int mthca_HW2SW_SRQ(struct mthca_dev *dev, struct mthca_mailbox *mailbox, mailbox 1709 drivers/infiniband/hw/mthca/mthca_cmd.c return mthca_cmd_box(dev, 0, mailbox->dma, srq_num, 0, mailbox 1715 drivers/infiniband/hw/mthca/mthca_cmd.c struct mthca_mailbox *mailbox) mailbox 1717 drivers/infiniband/hw/mthca/mthca_cmd.c return mthca_cmd_box(dev, 0, mailbox->dma, num, 0, mailbox 1729 drivers/infiniband/hw/mthca/mthca_cmd.c struct mthca_mailbox *mailbox, u32 optmask) mailbox 1779 drivers/infiniband/hw/mthca/mthca_cmd.c if (!mailbox) { mailbox 1780 drivers/infiniband/hw/mthca/mthca_cmd.c mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); mailbox 1781 drivers/infiniband/hw/mthca/mthca_cmd.c if (!IS_ERR(mailbox)) { mailbox 1785 drivers/infiniband/hw/mthca/mthca_cmd.c mailbox = NULL; mailbox 1788 drivers/infiniband/hw/mthca/mthca_cmd.c err = mthca_cmd_box(dev, 0, mailbox ? mailbox->dma : 0, mailbox 1792 drivers/infiniband/hw/mthca/mthca_cmd.c if (0 && mailbox) { mailbox 1795 drivers/infiniband/hw/mthca/mthca_cmd.c printk(" %08x\n", be32_to_cpup(mailbox->buf)); mailbox 1800 drivers/infiniband/hw/mthca/mthca_cmd.c be32_to_cpu(((__be32 *) mailbox->buf)[i + 2])); mailbox 1807 drivers/infiniband/hw/mthca/mthca_cmd.c mthca_free_mailbox(dev, mailbox); mailbox 1812 drivers/infiniband/hw/mthca/mthca_cmd.c printk(" opt param mask: %08x\n", be32_to_cpup(mailbox->buf)); mailbox 1817 drivers/infiniband/hw/mthca/mthca_cmd.c be32_to_cpu(((__be32 *) mailbox->buf)[i + 2])); mailbox 1823 drivers/infiniband/hw/mthca/mthca_cmd.c err = mthca_cmd(dev, mailbox->dma, optmask | (!!is_ee << 24) | num, mailbox 1831 drivers/infiniband/hw/mthca/mthca_cmd.c struct mthca_mailbox *mailbox) mailbox 1833 drivers/infiniband/hw/mthca/mthca_cmd.c return mthca_cmd_box(dev, 0, mailbox->dma, (!!is_ee << 24) | num, 0, mailbox 1942 drivers/infiniband/hw/mthca/mthca_cmd.c struct mthca_mailbox *mailbox) mailbox 1944 drivers/infiniband/hw/mthca/mthca_cmd.c return mthca_cmd_box(dev, 0, mailbox->dma, index, 0, mailbox 1949 drivers/infiniband/hw/mthca/mthca_cmd.c struct mthca_mailbox *mailbox) mailbox 1951 drivers/infiniband/hw/mthca/mthca_cmd.c return mthca_cmd(dev, mailbox->dma, index, 0, CMD_WRITE_MGM, mailbox 1955 drivers/infiniband/hw/mthca/mthca_cmd.c int mthca_MGID_HASH(struct mthca_dev *dev, struct mthca_mailbox *mailbox, mailbox 1961 drivers/infiniband/hw/mthca/mthca_cmd.c err = mthca_cmd_imm(dev, mailbox->dma, &imm, 0, 0, CMD_MGID_HASH, mailbox 253 drivers/infiniband/hw/mthca/mthca_cmd.h void mthca_free_mailbox(struct mthca_dev *dev, struct mthca_mailbox *mailbox); mailbox 283 drivers/infiniband/hw/mthca/mthca_cmd.h int mthca_SW2HW_MPT(struct mthca_dev *dev, struct mthca_mailbox *mailbox, mailbox 285 drivers/infiniband/hw/mthca/mthca_cmd.h int mthca_HW2SW_MPT(struct mthca_dev *dev, struct mthca_mailbox *mailbox, mailbox 287 drivers/infiniband/hw/mthca/mthca_cmd.h int mthca_WRITE_MTT(struct mthca_dev *dev, struct mthca_mailbox *mailbox, mailbox 292 drivers/infiniband/hw/mthca/mthca_cmd.h int mthca_SW2HW_EQ(struct mthca_dev *dev, struct mthca_mailbox *mailbox, mailbox 294 drivers/infiniband/hw/mthca/mthca_cmd.h int mthca_HW2SW_EQ(struct mthca_dev *dev, struct mthca_mailbox *mailbox, mailbox 296 drivers/infiniband/hw/mthca/mthca_cmd.h int mthca_SW2HW_CQ(struct mthca_dev *dev, struct mthca_mailbox *mailbox, mailbox 298 drivers/infiniband/hw/mthca/mthca_cmd.h int mthca_HW2SW_CQ(struct mthca_dev *dev, struct mthca_mailbox *mailbox, mailbox 301 drivers/infiniband/hw/mthca/mthca_cmd.h int mthca_SW2HW_SRQ(struct mthca_dev *dev, struct mthca_mailbox *mailbox, mailbox 303 drivers/infiniband/hw/mthca/mthca_cmd.h int mthca_HW2SW_SRQ(struct mthca_dev *dev, struct mthca_mailbox *mailbox, mailbox 306 drivers/infiniband/hw/mthca/mthca_cmd.h struct mthca_mailbox *mailbox); mailbox 310 drivers/infiniband/hw/mthca/mthca_cmd.h struct mthca_mailbox *mailbox, u32 optmask); mailbox 312 drivers/infiniband/hw/mthca/mthca_cmd.h struct mthca_mailbox *mailbox); mailbox 318 drivers/infiniband/hw/mthca/mthca_cmd.h struct mthca_mailbox *mailbox); mailbox 320 drivers/infiniband/hw/mthca/mthca_cmd.h struct mthca_mailbox *mailbox); mailbox 321 drivers/infiniband/hw/mthca/mthca_cmd.h int mthca_MGID_HASH(struct mthca_dev *dev, struct mthca_mailbox *mailbox, mailbox 772 drivers/infiniband/hw/mthca/mthca_cq.c struct mthca_mailbox *mailbox; mailbox 805 drivers/infiniband/hw/mthca/mthca_cq.c mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); mailbox 806 drivers/infiniband/hw/mthca/mthca_cq.c if (IS_ERR(mailbox)) mailbox 809 drivers/infiniband/hw/mthca/mthca_cq.c cq_context = mailbox->buf; mailbox 842 drivers/infiniband/hw/mthca/mthca_cq.c err = mthca_SW2HW_CQ(dev, mailbox, cq->cqn); mailbox 859 drivers/infiniband/hw/mthca/mthca_cq.c mthca_free_mailbox(dev, mailbox); mailbox 868 drivers/infiniband/hw/mthca/mthca_cq.c mthca_free_mailbox(dev, mailbox); mailbox 901 drivers/infiniband/hw/mthca/mthca_cq.c struct mthca_mailbox *mailbox; mailbox 904 drivers/infiniband/hw/mthca/mthca_cq.c mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); mailbox 905 drivers/infiniband/hw/mthca/mthca_cq.c if (IS_ERR(mailbox)) { mailbox 910 drivers/infiniband/hw/mthca/mthca_cq.c err = mthca_HW2SW_CQ(dev, mailbox, cq->cqn); mailbox 915 drivers/infiniband/hw/mthca/mthca_cq.c __be32 *ctx = mailbox->buf; mailbox 948 drivers/infiniband/hw/mthca/mthca_cq.c mthca_free_mailbox(dev, mailbox); mailbox 473 drivers/infiniband/hw/mthca/mthca_eq.c struct mthca_mailbox *mailbox; mailbox 494 drivers/infiniband/hw/mthca/mthca_eq.c mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); mailbox 495 drivers/infiniband/hw/mthca/mthca_eq.c if (IS_ERR(mailbox)) mailbox 497 drivers/infiniband/hw/mthca/mthca_eq.c eq_context = mailbox->buf; mailbox 545 drivers/infiniband/hw/mthca/mthca_eq.c err = mthca_SW2HW_EQ(dev, mailbox, eq->eqn); mailbox 552 drivers/infiniband/hw/mthca/mthca_eq.c mthca_free_mailbox(dev, mailbox); mailbox 578 drivers/infiniband/hw/mthca/mthca_eq.c mthca_free_mailbox(dev, mailbox); mailbox 591 drivers/infiniband/hw/mthca/mthca_eq.c struct mthca_mailbox *mailbox; mailbox 597 drivers/infiniband/hw/mthca/mthca_eq.c mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); mailbox 598 drivers/infiniband/hw/mthca/mthca_eq.c if (IS_ERR(mailbox)) mailbox 601 drivers/infiniband/hw/mthca/mthca_eq.c err = mthca_HW2SW_EQ(dev, mailbox, eq->eqn); mailbox 612 drivers/infiniband/hw/mthca/mthca_eq.c printk(" %08x", be32_to_cpup(mailbox->buf + i * 4)); mailbox 625 drivers/infiniband/hw/mthca/mthca_eq.c mthca_free_mailbox(dev, mailbox); mailbox 67 drivers/infiniband/hw/mthca/mthca_mcg.c struct mthca_mailbox *mailbox; mailbox 72 drivers/infiniband/hw/mthca/mthca_mcg.c mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); mailbox 73 drivers/infiniband/hw/mthca/mthca_mcg.c if (IS_ERR(mailbox)) mailbox 75 drivers/infiniband/hw/mthca/mthca_mcg.c mgid = mailbox->buf; mailbox 79 drivers/infiniband/hw/mthca/mthca_mcg.c err = mthca_MGID_HASH(dev, mailbox, hash); mailbox 116 drivers/infiniband/hw/mthca/mthca_mcg.c mthca_free_mailbox(dev, mailbox); mailbox 123 drivers/infiniband/hw/mthca/mthca_mcg.c struct mthca_mailbox *mailbox; mailbox 131 drivers/infiniband/hw/mthca/mthca_mcg.c mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); mailbox 132 drivers/infiniband/hw/mthca/mthca_mcg.c if (IS_ERR(mailbox)) mailbox 133 drivers/infiniband/hw/mthca/mthca_mcg.c return PTR_ERR(mailbox); mailbox 134 drivers/infiniband/hw/mthca/mthca_mcg.c mgm = mailbox->buf; mailbox 138 drivers/infiniband/hw/mthca/mthca_mcg.c err = find_mgm(dev, gid->raw, mailbox, &hash, &prev, &index); mailbox 155 drivers/infiniband/hw/mthca/mthca_mcg.c err = mthca_READ_MGM(dev, index, mailbox); mailbox 181 drivers/infiniband/hw/mthca/mthca_mcg.c err = mthca_WRITE_MGM(dev, index, mailbox); mailbox 191 drivers/infiniband/hw/mthca/mthca_mcg.c err = mthca_READ_MGM(dev, prev, mailbox); mailbox 199 drivers/infiniband/hw/mthca/mthca_mcg.c err = mthca_WRITE_MGM(dev, prev, mailbox); mailbox 210 drivers/infiniband/hw/mthca/mthca_mcg.c mthca_free_mailbox(dev, mailbox); mailbox 217 drivers/infiniband/hw/mthca/mthca_mcg.c struct mthca_mailbox *mailbox; mailbox 224 drivers/infiniband/hw/mthca/mthca_mcg.c mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); mailbox 225 drivers/infiniband/hw/mthca/mthca_mcg.c if (IS_ERR(mailbox)) mailbox 226 drivers/infiniband/hw/mthca/mthca_mcg.c return PTR_ERR(mailbox); mailbox 227 drivers/infiniband/hw/mthca/mthca_mcg.c mgm = mailbox->buf; mailbox 231 drivers/infiniband/hw/mthca/mthca_mcg.c err = find_mgm(dev, gid->raw, mailbox, &hash, &prev, &index); mailbox 257 drivers/infiniband/hw/mthca/mthca_mcg.c err = mthca_WRITE_MGM(dev, index, mailbox); mailbox 271 drivers/infiniband/hw/mthca/mthca_mcg.c mailbox); mailbox 279 drivers/infiniband/hw/mthca/mthca_mcg.c err = mthca_WRITE_MGM(dev, index, mailbox); mailbox 291 drivers/infiniband/hw/mthca/mthca_mcg.c err = mthca_READ_MGM(dev, prev, mailbox); mailbox 299 drivers/infiniband/hw/mthca/mthca_mcg.c err = mthca_WRITE_MGM(dev, prev, mailbox); mailbox 311 drivers/infiniband/hw/mthca/mthca_mcg.c mthca_free_mailbox(dev, mailbox); mailbox 257 drivers/infiniband/hw/mthca/mthca_mr.c struct mthca_mailbox *mailbox; mailbox 262 drivers/infiniband/hw/mthca/mthca_mr.c mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); mailbox 263 drivers/infiniband/hw/mthca/mthca_mr.c if (IS_ERR(mailbox)) mailbox 264 drivers/infiniband/hw/mthca/mthca_mr.c return PTR_ERR(mailbox); mailbox 265 drivers/infiniband/hw/mthca/mthca_mr.c mtt_entry = mailbox->buf; mailbox 283 drivers/infiniband/hw/mthca/mthca_mr.c err = mthca_WRITE_MTT(dev, mailbox, (i + 1) & ~1); mailbox 295 drivers/infiniband/hw/mthca/mthca_mr.c mthca_free_mailbox(dev, mailbox); mailbox 432 drivers/infiniband/hw/mthca/mthca_mr.c struct mthca_mailbox *mailbox; mailbox 452 drivers/infiniband/hw/mthca/mthca_mr.c mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); mailbox 453 drivers/infiniband/hw/mthca/mthca_mr.c if (IS_ERR(mailbox)) { mailbox 454 drivers/infiniband/hw/mthca/mthca_mr.c err = PTR_ERR(mailbox); mailbox 457 drivers/infiniband/hw/mthca/mthca_mr.c mpt_entry = mailbox->buf; mailbox 491 drivers/infiniband/hw/mthca/mthca_mr.c err = mthca_SW2HW_MPT(dev, mailbox, mailbox 498 drivers/infiniband/hw/mthca/mthca_mr.c mthca_free_mailbox(dev, mailbox); mailbox 502 drivers/infiniband/hw/mthca/mthca_mr.c mthca_free_mailbox(dev, mailbox); mailbox 571 drivers/infiniband/hw/mthca/mthca_mr.c struct mthca_mailbox *mailbox; mailbox 623 drivers/infiniband/hw/mthca/mthca_mr.c mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); mailbox 624 drivers/infiniband/hw/mthca/mthca_mr.c if (IS_ERR(mailbox)) { mailbox 625 drivers/infiniband/hw/mthca/mthca_mr.c err = PTR_ERR(mailbox); mailbox 629 drivers/infiniband/hw/mthca/mthca_mr.c mpt_entry = mailbox->buf; mailbox 654 drivers/infiniband/hw/mthca/mthca_mr.c err = mthca_SW2HW_MPT(dev, mailbox, mailbox 661 drivers/infiniband/hw/mthca/mthca_mr.c mthca_free_mailbox(dev, mailbox); mailbox 665 drivers/infiniband/hw/mthca/mthca_mr.c mthca_free_mailbox(dev, mailbox); mailbox 436 drivers/infiniband/hw/mthca/mthca_qp.c struct mthca_mailbox *mailbox = NULL; mailbox 448 drivers/infiniband/hw/mthca/mthca_qp.c mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); mailbox 449 drivers/infiniband/hw/mthca/mthca_qp.c if (IS_ERR(mailbox)) { mailbox 450 drivers/infiniband/hw/mthca/mthca_qp.c err = PTR_ERR(mailbox); mailbox 454 drivers/infiniband/hw/mthca/mthca_qp.c err = mthca_QUERY_QP(dev, qp->qpn, 0, mailbox); mailbox 460 drivers/infiniband/hw/mthca/mthca_qp.c qp_param = mailbox->buf; mailbox 515 drivers/infiniband/hw/mthca/mthca_qp.c mthca_free_mailbox(dev, mailbox); mailbox 566 drivers/infiniband/hw/mthca/mthca_qp.c struct mthca_mailbox *mailbox; mailbox 572 drivers/infiniband/hw/mthca/mthca_qp.c mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); mailbox 573 drivers/infiniband/hw/mthca/mthca_qp.c if (IS_ERR(mailbox)) { mailbox 574 drivers/infiniband/hw/mthca/mthca_qp.c err = PTR_ERR(mailbox); mailbox 577 drivers/infiniband/hw/mthca/mthca_qp.c qp_param = mailbox->buf; mailbox 794 drivers/infiniband/hw/mthca/mthca_qp.c mailbox, sqd_event); mailbox 853 drivers/infiniband/hw/mthca/mthca_qp.c mthca_free_mailbox(dev, mailbox); mailbox 210 drivers/infiniband/hw/mthca/mthca_srq.c struct mthca_mailbox *mailbox; mailbox 256 drivers/infiniband/hw/mthca/mthca_srq.c mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); mailbox 257 drivers/infiniband/hw/mthca/mthca_srq.c if (IS_ERR(mailbox)) { mailbox 258 drivers/infiniband/hw/mthca/mthca_srq.c err = PTR_ERR(mailbox); mailbox 272 drivers/infiniband/hw/mthca/mthca_srq.c mthca_arbel_init_srq_context(dev, pd, srq, mailbox->buf, udata); mailbox 274 drivers/infiniband/hw/mthca/mthca_srq.c mthca_tavor_init_srq_context(dev, pd, srq, mailbox->buf, udata); mailbox 276 drivers/infiniband/hw/mthca/mthca_srq.c err = mthca_SW2HW_SRQ(dev, mailbox, srq->srqn); mailbox 292 drivers/infiniband/hw/mthca/mthca_srq.c mthca_free_mailbox(dev, mailbox); mailbox 303 drivers/infiniband/hw/mthca/mthca_srq.c err = mthca_HW2SW_SRQ(dev, mailbox, srq->srqn); mailbox 312 drivers/infiniband/hw/mthca/mthca_srq.c mthca_free_mailbox(dev, mailbox); mailbox 340 drivers/infiniband/hw/mthca/mthca_srq.c struct mthca_mailbox *mailbox; mailbox 343 drivers/infiniband/hw/mthca/mthca_srq.c mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); mailbox 344 drivers/infiniband/hw/mthca/mthca_srq.c if (IS_ERR(mailbox)) { mailbox 349 drivers/infiniband/hw/mthca/mthca_srq.c err = mthca_HW2SW_SRQ(dev, mailbox, srq->srqn); mailbox 369 drivers/infiniband/hw/mthca/mthca_srq.c mthca_free_mailbox(dev, mailbox); mailbox 400 drivers/infiniband/hw/mthca/mthca_srq.c struct mthca_mailbox *mailbox; mailbox 405 drivers/infiniband/hw/mthca/mthca_srq.c mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); mailbox 406 drivers/infiniband/hw/mthca/mthca_srq.c if (IS_ERR(mailbox)) mailbox 407 drivers/infiniband/hw/mthca/mthca_srq.c return PTR_ERR(mailbox); mailbox 409 drivers/infiniband/hw/mthca/mthca_srq.c err = mthca_QUERY_SRQ(dev, srq->srqn, mailbox); mailbox 414 drivers/infiniband/hw/mthca/mthca_srq.c arbel_ctx = mailbox->buf; mailbox 417 drivers/infiniband/hw/mthca/mthca_srq.c tavor_ctx = mailbox->buf; mailbox 425 drivers/infiniband/hw/mthca/mthca_srq.c mthca_free_mailbox(dev, mailbox); mailbox 332 drivers/media/pci/cx88/cx88-blackbird.c memory_read(dev->core, dev->mailbox - 4, &value); mailbox 339 drivers/media/pci/cx88/cx88-blackbird.c memory_read(dev->core, dev->mailbox, &flag); mailbox 346 drivers/media/pci/cx88/cx88-blackbird.c memory_write(dev->core, dev->mailbox, flag); mailbox 349 drivers/media/pci/cx88/cx88-blackbird.c memory_write(dev->core, dev->mailbox + 1, command); /* command code */ mailbox 351 drivers/media/pci/cx88/cx88-blackbird.c memory_write(dev->core, dev->mailbox + 3, IVTV_API_STD_TIMEOUT); mailbox 353 drivers/media/pci/cx88/cx88-blackbird.c memory_write(dev->core, dev->mailbox + 4 + i, data[i]); mailbox 357 drivers/media/pci/cx88/cx88-blackbird.c memory_write(dev->core, dev->mailbox + 4 + i, 0); mailbox 360 drivers/media/pci/cx88/cx88-blackbird.c memory_write(dev->core, dev->mailbox, flag); mailbox 365 drivers/media/pci/cx88/cx88-blackbird.c memory_read(dev->core, dev->mailbox, &flag); mailbox 377 drivers/media/pci/cx88/cx88-blackbird.c memory_read(dev->core, dev->mailbox + 4 + i, data + i); mailbox 381 drivers/media/pci/cx88/cx88-blackbird.c memory_read(dev->core, dev->mailbox + 2, &retval); mailbox 385 drivers/media/pci/cx88/cx88-blackbird.c memory_write(dev->core, dev->mailbox, flag); mailbox 570 drivers/media/pci/cx88/cx88-blackbird.c dev->mailbox = retval; mailbox 556 drivers/media/pci/cx88/cx88.h u32 mailbox; mailbox 277 drivers/net/appletalk/ltpc.c unsigned char mailbox; mailbox 332 drivers/net/appletalk/ltpc.c static unsigned char mailbox[16]; mailbox 550 drivers/net/appletalk/ltpc.c qels[0].mailbox = 0; mailbox 575 drivers/net/appletalk/ltpc.c ltdmacbuf[1] = q->mailbox; mailbox 599 drivers/net/appletalk/ltpc.c qels[0].mailbox = 0; mailbox 618 drivers/net/appletalk/ltpc.c if(q->mailbox) { mailbox 622 drivers/net/appletalk/ltpc.c mailbox[ 0x0f & ltdmabuf[0] ] = ltdmabuf[1]; mailbox 659 drivers/net/appletalk/ltpc.c qels[i].mailbox = i; /* this should be initted rather */ mailbox 662 drivers/net/appletalk/ltpc.c ret = mailbox[i]; mailbox 683 drivers/net/appletalk/ltpc.c qels[i].mailbox = i; /* this should be initted rather */ mailbox 686 drivers/net/appletalk/ltpc.c ret = mailbox[i]; mailbox 21 drivers/net/appletalk/ltpc.h unsigned char mailbox; mailbox 26 drivers/net/appletalk/ltpc.h unsigned char mailbox; mailbox 33 drivers/net/appletalk/ltpc.h unsigned char mailbox; mailbox 39 drivers/net/appletalk/ltpc.h unsigned char mailbox; mailbox 44 drivers/net/appletalk/ltpc.h unsigned char mailbox; mailbox 50 drivers/net/appletalk/ltpc.h unsigned char mailbox; mailbox 2695 drivers/net/ethernet/mellanox/mlx4/cmd.c struct mlx4_cmd_mailbox *mailbox; mailbox 2697 drivers/net/ethernet/mellanox/mlx4/cmd.c mailbox = kmalloc(sizeof(*mailbox), GFP_KERNEL); mailbox 2698 drivers/net/ethernet/mellanox/mlx4/cmd.c if (!mailbox) mailbox 2701 drivers/net/ethernet/mellanox/mlx4/cmd.c mailbox->buf = dma_pool_zalloc(mlx4_priv(dev)->cmd.pool, GFP_KERNEL, mailbox 2702 drivers/net/ethernet/mellanox/mlx4/cmd.c &mailbox->dma); mailbox 2703 drivers/net/ethernet/mellanox/mlx4/cmd.c if (!mailbox->buf) { mailbox 2704 drivers/net/ethernet/mellanox/mlx4/cmd.c kfree(mailbox); mailbox 2708 drivers/net/ethernet/mellanox/mlx4/cmd.c return mailbox; mailbox 2713 drivers/net/ethernet/mellanox/mlx4/cmd.c struct mlx4_cmd_mailbox *mailbox) mailbox 2715 drivers/net/ethernet/mellanox/mlx4/cmd.c if (!mailbox) mailbox 2718 drivers/net/ethernet/mellanox/mlx4/cmd.c dma_pool_free(mlx4_priv(dev)->cmd.pool, mailbox->buf, mailbox->dma); mailbox 2719 drivers/net/ethernet/mellanox/mlx4/cmd.c kfree(mailbox); mailbox 3291 drivers/net/ethernet/mellanox/mlx4/cmd.c struct mlx4_cmd_mailbox *mailbox = NULL; mailbox 3302 drivers/net/ethernet/mellanox/mlx4/cmd.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 3303 drivers/net/ethernet/mellanox/mlx4/cmd.c if (IS_ERR(mailbox)) mailbox 3304 drivers/net/ethernet/mellanox/mlx4/cmd.c return PTR_ERR(mailbox); mailbox 3306 drivers/net/ethernet/mellanox/mlx4/cmd.c memset(mailbox->buf, 0, sizeof(struct mlx4_counter)); mailbox 3310 drivers/net/ethernet/mellanox/mlx4/cmd.c err = mlx4_cmd_box(dev, 0, mailbox->dma, mailbox 3320 drivers/net/ethernet/mellanox/mlx4/cmd.c tmp_counter = (struct mlx4_counter *)mailbox->buf; mailbox 3338 drivers/net/ethernet/mellanox/mlx4/cmd.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 146 drivers/net/ethernet/mellanox/mlx4/cq.c static int mlx4_SW2HW_CQ(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, mailbox 149 drivers/net/ethernet/mellanox/mlx4/cq.c return mlx4_cmd(dev, mailbox->dma, cq_num, opmod, mailbox 154 drivers/net/ethernet/mellanox/mlx4/cq.c static int mlx4_MODIFY_CQ(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, mailbox 157 drivers/net/ethernet/mellanox/mlx4/cq.c return mlx4_cmd(dev, mailbox->dma, cq_num, opmod, MLX4_CMD_MODIFY_CQ, mailbox 161 drivers/net/ethernet/mellanox/mlx4/cq.c static int mlx4_HW2SW_CQ(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, mailbox 164 drivers/net/ethernet/mellanox/mlx4/cq.c return mlx4_cmd_box(dev, 0, mailbox ? mailbox->dma : 0, mailbox 165 drivers/net/ethernet/mellanox/mlx4/cq.c cq_num, mailbox ? 0 : 1, MLX4_CMD_HW2SW_CQ, mailbox 172 drivers/net/ethernet/mellanox/mlx4/cq.c struct mlx4_cmd_mailbox *mailbox; mailbox 176 drivers/net/ethernet/mellanox/mlx4/cq.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 177 drivers/net/ethernet/mellanox/mlx4/cq.c if (IS_ERR(mailbox)) mailbox 178 drivers/net/ethernet/mellanox/mlx4/cq.c return PTR_ERR(mailbox); mailbox 180 drivers/net/ethernet/mellanox/mlx4/cq.c cq_context = mailbox->buf; mailbox 184 drivers/net/ethernet/mellanox/mlx4/cq.c err = mlx4_MODIFY_CQ(dev, mailbox, cq->cqn, 1); mailbox 186 drivers/net/ethernet/mellanox/mlx4/cq.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 194 drivers/net/ethernet/mellanox/mlx4/cq.c struct mlx4_cmd_mailbox *mailbox; mailbox 199 drivers/net/ethernet/mellanox/mlx4/cq.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 200 drivers/net/ethernet/mellanox/mlx4/cq.c if (IS_ERR(mailbox)) mailbox 201 drivers/net/ethernet/mellanox/mlx4/cq.c return PTR_ERR(mailbox); mailbox 203 drivers/net/ethernet/mellanox/mlx4/cq.c cq_context = mailbox->buf; mailbox 210 drivers/net/ethernet/mellanox/mlx4/cq.c err = mlx4_MODIFY_CQ(dev, mailbox, cq->cqn, 0); mailbox 212 drivers/net/ethernet/mellanox/mlx4/cq.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 349 drivers/net/ethernet/mellanox/mlx4/cq.c struct mlx4_cmd_mailbox *mailbox; mailbox 369 drivers/net/ethernet/mellanox/mlx4/cq.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 370 drivers/net/ethernet/mellanox/mlx4/cq.c if (IS_ERR(mailbox)) { mailbox 371 drivers/net/ethernet/mellanox/mlx4/cq.c err = PTR_ERR(mailbox); mailbox 375 drivers/net/ethernet/mellanox/mlx4/cq.c cq_context = mailbox->buf; mailbox 403 drivers/net/ethernet/mellanox/mlx4/cq.c err = mlx4_SW2HW_CQ(dev, mailbox, cq->cqn, sw_cq_init); mailbox 405 drivers/net/ethernet/mellanox/mlx4/cq.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 46 drivers/net/ethernet/mellanox/mlx4/en_port.c struct mlx4_cmd_mailbox *mailbox; mailbox 54 drivers/net/ethernet/mellanox/mlx4/en_port.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 55 drivers/net/ethernet/mellanox/mlx4/en_port.c if (IS_ERR(mailbox)) mailbox 56 drivers/net/ethernet/mellanox/mlx4/en_port.c return PTR_ERR(mailbox); mailbox 58 drivers/net/ethernet/mellanox/mlx4/en_port.c filter = mailbox->buf; mailbox 66 drivers/net/ethernet/mellanox/mlx4/en_port.c err = mlx4_cmd(dev, mailbox->dma, priv->port, 0, MLX4_CMD_SET_VLAN_FLTR, mailbox 68 drivers/net/ethernet/mellanox/mlx4/en_port.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 77 drivers/net/ethernet/mellanox/mlx4/en_port.c struct mlx4_cmd_mailbox *mailbox; mailbox 80 drivers/net/ethernet/mellanox/mlx4/en_port.c mailbox = mlx4_alloc_cmd_mailbox(mdev->dev); mailbox 81 drivers/net/ethernet/mellanox/mlx4/en_port.c if (IS_ERR(mailbox)) mailbox 82 drivers/net/ethernet/mellanox/mlx4/en_port.c return PTR_ERR(mailbox); mailbox 83 drivers/net/ethernet/mellanox/mlx4/en_port.c err = mlx4_cmd_box(mdev->dev, 0, mailbox->dma, port, 0, mailbox 88 drivers/net/ethernet/mellanox/mlx4/en_port.c qport_context = mailbox->buf; mailbox 127 drivers/net/ethernet/mellanox/mlx4/en_port.c mlx4_free_cmd_mailbox(mdev->dev, mailbox); mailbox 191 drivers/net/ethernet/mellanox/mlx4/en_port.c struct mlx4_cmd_mailbox *mailbox, *mailbox_priority; mailbox 198 drivers/net/ethernet/mellanox/mlx4/en_port.c mailbox = mlx4_alloc_cmd_mailbox(mdev->dev); mailbox 199 drivers/net/ethernet/mellanox/mlx4/en_port.c if (IS_ERR(mailbox)) mailbox 200 drivers/net/ethernet/mellanox/mlx4/en_port.c return PTR_ERR(mailbox); mailbox 204 drivers/net/ethernet/mellanox/mlx4/en_port.c mlx4_free_cmd_mailbox(mdev->dev, mailbox); mailbox 208 drivers/net/ethernet/mellanox/mlx4/en_port.c err = mlx4_cmd_box(mdev->dev, 0, mailbox->dma, in_mod, 0, mailbox 214 drivers/net/ethernet/mellanox/mlx4/en_port.c mlx4_en_stats = mailbox->buf; mailbox 428 drivers/net/ethernet/mellanox/mlx4/en_port.c mlx4_free_cmd_mailbox(mdev->dev, mailbox); mailbox 909 drivers/net/ethernet/mellanox/mlx4/eq.c static int mlx4_SW2HW_EQ(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, mailbox 912 drivers/net/ethernet/mellanox/mlx4/eq.c return mlx4_cmd(dev, mailbox->dma, eq_num, 0, mailbox 973 drivers/net/ethernet/mellanox/mlx4/eq.c struct mlx4_cmd_mailbox *mailbox; mailbox 1001 drivers/net/ethernet/mellanox/mlx4/eq.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 1002 drivers/net/ethernet/mellanox/mlx4/eq.c if (IS_ERR(mailbox)) mailbox 1004 drivers/net/ethernet/mellanox/mlx4/eq.c eq_context = mailbox->buf; mailbox 1046 drivers/net/ethernet/mellanox/mlx4/eq.c err = mlx4_SW2HW_EQ(dev, mailbox, eq->eqn); mailbox 1053 drivers/net/ethernet/mellanox/mlx4/eq.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 1078 drivers/net/ethernet/mellanox/mlx4/eq.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 180 drivers/net/ethernet/mellanox/mlx4/fw.c struct mlx4_cmd_mailbox *mailbox; mailbox 189 drivers/net/ethernet/mellanox/mlx4/fw.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 190 drivers/net/ethernet/mellanox/mlx4/fw.c if (IS_ERR(mailbox)) mailbox 191 drivers/net/ethernet/mellanox/mlx4/fw.c return PTR_ERR(mailbox); mailbox 192 drivers/net/ethernet/mellanox/mlx4/fw.c inbox = mailbox->buf; mailbox 197 drivers/net/ethernet/mellanox/mlx4/fw.c err = mlx4_cmd(dev, mailbox->dma, 0, 0, MLX4_CMD_MOD_STAT_CFG, mailbox 200 drivers/net/ethernet/mellanox/mlx4/fw.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 206 drivers/net/ethernet/mellanox/mlx4/fw.c struct mlx4_cmd_mailbox *mailbox; mailbox 221 drivers/net/ethernet/mellanox/mlx4/fw.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 222 drivers/net/ethernet/mellanox/mlx4/fw.c if (IS_ERR(mailbox)) mailbox 223 drivers/net/ethernet/mellanox/mlx4/fw.c return PTR_ERR(mailbox); mailbox 224 drivers/net/ethernet/mellanox/mlx4/fw.c outbox = mailbox->buf; mailbox 228 drivers/net/ethernet/mellanox/mlx4/fw.c err = mlx4_cmd_box(dev, 0, mailbox->dma, in_modifier, 0, mailbox 255 drivers/net/ethernet/mellanox/mlx4/fw.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 542 drivers/net/ethernet/mellanox/mlx4/fw.c struct mlx4_cmd_mailbox *mailbox; mailbox 555 drivers/net/ethernet/mellanox/mlx4/fw.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 556 drivers/net/ethernet/mellanox/mlx4/fw.c if (IS_ERR(mailbox)) mailbox 557 drivers/net/ethernet/mellanox/mlx4/fw.c return PTR_ERR(mailbox); mailbox 559 drivers/net/ethernet/mellanox/mlx4/fw.c err = mlx4_cmd_box(dev, 0, mailbox->dma, in_modifier, op_modifier, mailbox 565 drivers/net/ethernet/mellanox/mlx4/fw.c outbox = mailbox->buf; mailbox 718 drivers/net/ethernet/mellanox/mlx4/fw.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 727 drivers/net/ethernet/mellanox/mlx4/fw.c struct mlx4_cmd_mailbox *mailbox; mailbox 832 drivers/net/ethernet/mellanox/mlx4/fw.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 833 drivers/net/ethernet/mellanox/mlx4/fw.c if (IS_ERR(mailbox)) mailbox 834 drivers/net/ethernet/mellanox/mlx4/fw.c return PTR_ERR(mailbox); mailbox 835 drivers/net/ethernet/mellanox/mlx4/fw.c outbox = mailbox->buf; mailbox 837 drivers/net/ethernet/mellanox/mlx4/fw.c err = mlx4_cmd_box(dev, 0, mailbox->dma, 0, 0, MLX4_CMD_QUERY_DEV_CAP, mailbox 1123 drivers/net/ethernet/mellanox/mlx4/fw.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 1185 drivers/net/ethernet/mellanox/mlx4/fw.c struct mlx4_cmd_mailbox *mailbox; mailbox 1191 drivers/net/ethernet/mellanox/mlx4/fw.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 1192 drivers/net/ethernet/mellanox/mlx4/fw.c if (IS_ERR(mailbox)) mailbox 1193 drivers/net/ethernet/mellanox/mlx4/fw.c return PTR_ERR(mailbox); mailbox 1194 drivers/net/ethernet/mellanox/mlx4/fw.c outbox = mailbox->buf; mailbox 1197 drivers/net/ethernet/mellanox/mlx4/fw.c err = mlx4_cmd_box(dev, 0, mailbox->dma, 0, 0, MLX4_CMD_QUERY_DEV_CAP, mailbox 1226 drivers/net/ethernet/mellanox/mlx4/fw.c err = mlx4_cmd_box(dev, 0, mailbox->dma, port, 0, MLX4_CMD_QUERY_PORT, mailbox 1260 drivers/net/ethernet/mellanox/mlx4/fw.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 1487 drivers/net/ethernet/mellanox/mlx4/fw.c struct mlx4_cmd_mailbox *mailbox; mailbox 1492 drivers/net/ethernet/mellanox/mlx4/fw.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 1493 drivers/net/ethernet/mellanox/mlx4/fw.c if (IS_ERR(mailbox)) mailbox 1494 drivers/net/ethernet/mellanox/mlx4/fw.c return PTR_ERR(mailbox); mailbox 1496 drivers/net/ethernet/mellanox/mlx4/fw.c err = mlx4_cmd_box(dev, 0, mailbox->dma, port, 0, mailbox 1502 drivers/net/ethernet/mellanox/mlx4/fw.c outbox = mailbox->buf; mailbox 1511 drivers/net/ethernet/mellanox/mlx4/fw.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 1518 drivers/net/ethernet/mellanox/mlx4/fw.c struct mlx4_cmd_mailbox *mailbox; mailbox 1527 drivers/net/ethernet/mellanox/mlx4/fw.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 1528 drivers/net/ethernet/mellanox/mlx4/fw.c if (IS_ERR(mailbox)) mailbox 1529 drivers/net/ethernet/mellanox/mlx4/fw.c return PTR_ERR(mailbox); mailbox 1530 drivers/net/ethernet/mellanox/mlx4/fw.c pages = mailbox->buf; mailbox 1563 drivers/net/ethernet/mellanox/mlx4/fw.c err = mlx4_cmd(dev, mailbox->dma, nent, 0, op, mailbox 1574 drivers/net/ethernet/mellanox/mlx4/fw.c err = mlx4_cmd(dev, mailbox->dma, nent, 0, op, mailbox 1593 drivers/net/ethernet/mellanox/mlx4/fw.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 1619 drivers/net/ethernet/mellanox/mlx4/fw.c struct mlx4_cmd_mailbox *mailbox; mailbox 1645 drivers/net/ethernet/mellanox/mlx4/fw.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 1646 drivers/net/ethernet/mellanox/mlx4/fw.c if (IS_ERR(mailbox)) mailbox 1647 drivers/net/ethernet/mellanox/mlx4/fw.c return PTR_ERR(mailbox); mailbox 1648 drivers/net/ethernet/mellanox/mlx4/fw.c outbox = mailbox->buf; mailbox 1650 drivers/net/ethernet/mellanox/mlx4/fw.c err = mlx4_cmd_box(dev, 0, mailbox->dma, 0, 0, MLX4_CMD_QUERY_FW, mailbox 1736 drivers/net/ethernet/mellanox/mlx4/fw.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 1802 drivers/net/ethernet/mellanox/mlx4/fw.c struct mlx4_cmd_mailbox *mailbox; mailbox 1810 drivers/net/ethernet/mellanox/mlx4/fw.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 1811 drivers/net/ethernet/mellanox/mlx4/fw.c if (IS_ERR(mailbox)) mailbox 1812 drivers/net/ethernet/mellanox/mlx4/fw.c return PTR_ERR(mailbox); mailbox 1813 drivers/net/ethernet/mellanox/mlx4/fw.c outbox = mailbox->buf; mailbox 1815 drivers/net/ethernet/mellanox/mlx4/fw.c err = mlx4_cmd_box(dev, 0, mailbox->dma, 0, 0, MLX4_CMD_QUERY_ADAPTER, mailbox 1826 drivers/net/ethernet/mellanox/mlx4/fw.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 1832 drivers/net/ethernet/mellanox/mlx4/fw.c struct mlx4_cmd_mailbox *mailbox; mailbox 1893 drivers/net/ethernet/mellanox/mlx4/fw.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 1894 drivers/net/ethernet/mellanox/mlx4/fw.c if (IS_ERR(mailbox)) mailbox 1895 drivers/net/ethernet/mellanox/mlx4/fw.c return PTR_ERR(mailbox); mailbox 1896 drivers/net/ethernet/mellanox/mlx4/fw.c inbox = mailbox->buf; mailbox 1898 drivers/net/ethernet/mellanox/mlx4/fw.c *((u8 *) mailbox->buf + INIT_HCA_VERSION_OFFSET) = INIT_HCA_VERSION; mailbox 1900 drivers/net/ethernet/mellanox/mlx4/fw.c *((u8 *) mailbox->buf + INIT_HCA_CACHELINE_SZ_OFFSET) = mailbox 2055 drivers/net/ethernet/mellanox/mlx4/fw.c err = mlx4_cmd(dev, mailbox->dma, 0, 0, MLX4_CMD_INIT_HCA, mailbox 2061 drivers/net/ethernet/mellanox/mlx4/fw.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 2068 drivers/net/ethernet/mellanox/mlx4/fw.c struct mlx4_cmd_mailbox *mailbox; mailbox 2085 drivers/net/ethernet/mellanox/mlx4/fw.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 2086 drivers/net/ethernet/mellanox/mlx4/fw.c if (IS_ERR(mailbox)) mailbox 2087 drivers/net/ethernet/mellanox/mlx4/fw.c return PTR_ERR(mailbox); mailbox 2088 drivers/net/ethernet/mellanox/mlx4/fw.c outbox = mailbox->buf; mailbox 2090 drivers/net/ethernet/mellanox/mlx4/fw.c err = mlx4_cmd_box(dev, 0, mailbox->dma, 0, 0, mailbox 2202 drivers/net/ethernet/mellanox/mlx4/fw.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 2209 drivers/net/ethernet/mellanox/mlx4/fw.c struct mlx4_cmd_mailbox *mailbox; mailbox 2213 drivers/net/ethernet/mellanox/mlx4/fw.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 2214 drivers/net/ethernet/mellanox/mlx4/fw.c if (IS_ERR(mailbox)) { mailbox 2216 drivers/net/ethernet/mellanox/mlx4/fw.c return PTR_ERR(mailbox); mailbox 2218 drivers/net/ethernet/mellanox/mlx4/fw.c outbox = mailbox->buf; mailbox 2220 drivers/net/ethernet/mellanox/mlx4/fw.c err = mlx4_cmd_box(dev, 0, mailbox->dma, 0, 0, mailbox 2232 drivers/net/ethernet/mellanox/mlx4/fw.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 2295 drivers/net/ethernet/mellanox/mlx4/fw.c struct mlx4_cmd_mailbox *mailbox; mailbox 2316 drivers/net/ethernet/mellanox/mlx4/fw.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 2317 drivers/net/ethernet/mellanox/mlx4/fw.c if (IS_ERR(mailbox)) mailbox 2318 drivers/net/ethernet/mellanox/mlx4/fw.c return PTR_ERR(mailbox); mailbox 2319 drivers/net/ethernet/mellanox/mlx4/fw.c inbox = mailbox->buf; mailbox 2333 drivers/net/ethernet/mellanox/mlx4/fw.c err = mlx4_cmd(dev, mailbox->dma, port, 0, MLX4_CMD_INIT_PORT, mailbox 2336 drivers/net/ethernet/mellanox/mlx4/fw.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 2426 drivers/net/ethernet/mellanox/mlx4/fw.c struct mlx4_cmd_mailbox *mailbox; mailbox 2428 drivers/net/ethernet/mellanox/mlx4/fw.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 2429 drivers/net/ethernet/mellanox/mlx4/fw.c if (IS_ERR(mailbox)) mailbox 2430 drivers/net/ethernet/mellanox/mlx4/fw.c return PTR_ERR(mailbox); mailbox 2432 drivers/net/ethernet/mellanox/mlx4/fw.c memcpy(mailbox->buf, config_dev, sizeof(*config_dev)); mailbox 2434 drivers/net/ethernet/mellanox/mlx4/fw.c err = mlx4_cmd(dev, mailbox->dma, 0, 0, MLX4_CMD_CONFIG_DEV, mailbox 2437 drivers/net/ethernet/mellanox/mlx4/fw.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 2444 drivers/net/ethernet/mellanox/mlx4/fw.c struct mlx4_cmd_mailbox *mailbox; mailbox 2446 drivers/net/ethernet/mellanox/mlx4/fw.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 2447 drivers/net/ethernet/mellanox/mlx4/fw.c if (IS_ERR(mailbox)) mailbox 2448 drivers/net/ethernet/mellanox/mlx4/fw.c return PTR_ERR(mailbox); mailbox 2450 drivers/net/ethernet/mellanox/mlx4/fw.c err = mlx4_cmd_box(dev, 0, mailbox->dma, 0, 1, MLX4_CMD_CONFIG_DEV, mailbox 2454 drivers/net/ethernet/mellanox/mlx4/fw.c memcpy(config_dev, mailbox->buf, sizeof(*config_dev)); mailbox 2456 drivers/net/ethernet/mellanox/mlx4/fw.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 2552 drivers/net/ethernet/mellanox/mlx4/fw.c struct mlx4_cmd_mailbox *mailbox; mailbox 2559 drivers/net/ethernet/mellanox/mlx4/fw.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 2560 drivers/net/ethernet/mellanox/mlx4/fw.c if (IS_ERR(mailbox)) mailbox 2563 drivers/net/ethernet/mellanox/mlx4/fw.c v2p = mailbox->buf; mailbox 2567 drivers/net/ethernet/mellanox/mlx4/fw.c err = mlx4_cmd(dev, mailbox->dma, 0, mailbox 2571 drivers/net/ethernet/mellanox/mlx4/fw.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 2605 drivers/net/ethernet/mellanox/mlx4/fw.c struct mlx4_cmd_mailbox *mailbox; mailbox 2610 drivers/net/ethernet/mellanox/mlx4/fw.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 2611 drivers/net/ethernet/mellanox/mlx4/fw.c if (IS_ERR(mailbox)) mailbox 2612 drivers/net/ethernet/mellanox/mlx4/fw.c return PTR_ERR(mailbox); mailbox 2614 drivers/net/ethernet/mellanox/mlx4/fw.c outbox = mailbox->buf; mailbox 2616 drivers/net/ethernet/mellanox/mlx4/fw.c ret = mlx4_cmd_box(dev, 0, mailbox->dma, port, op_modifier, mailbox 2632 drivers/net/ethernet/mellanox/mlx4/fw.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 2641 drivers/net/ethernet/mellanox/mlx4/fw.c struct mlx4_cmd_mailbox *mailbox; mailbox 2649 drivers/net/ethernet/mellanox/mlx4/fw.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 2650 drivers/net/ethernet/mellanox/mlx4/fw.c if (IS_ERR(mailbox)) mailbox 2651 drivers/net/ethernet/mellanox/mlx4/fw.c return PTR_ERR(mailbox); mailbox 2652 drivers/net/ethernet/mellanox/mlx4/fw.c outbox = mailbox->buf; mailbox 2656 drivers/net/ethernet/mellanox/mlx4/fw.c err = mlx4_cmd_box(dev, 0, mailbox->dma, in_mod, 0x2, mailbox 2670 drivers/net/ethernet/mellanox/mlx4/fw.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 2705 drivers/net/ethernet/mellanox/mlx4/fw.c struct mlx4_cmd_mailbox *mailbox; mailbox 2723 drivers/net/ethernet/mellanox/mlx4/fw.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 2724 drivers/net/ethernet/mellanox/mlx4/fw.c if (IS_ERR(mailbox)) { mailbox 2728 drivers/net/ethernet/mellanox/mlx4/fw.c outbox = mailbox->buf; mailbox 2731 drivers/net/ethernet/mellanox/mlx4/fw.c err = mlx4_cmd_box(dev, 0, mailbox->dma, 0, 0, mailbox 2794 drivers/net/ethernet/mellanox/mlx4/fw.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 2798 drivers/net/ethernet/mellanox/mlx4/fw.c struct mlx4_cmd_mailbox *mailbox) mailbox 2808 drivers/net/ethernet/mellanox/mlx4/fw.c MLX4_GET(set_attr_mask, mailbox->buf, mailbox 2813 drivers/net/ethernet/mellanox/mlx4/fw.c MLX4_GET(getresp_attr_mask, mailbox->buf, mailbox 2818 drivers/net/ethernet/mellanox/mlx4/fw.c MLX4_GET(trap_attr_mask, mailbox->buf, mailbox 2823 drivers/net/ethernet/mellanox/mlx4/fw.c MLX4_GET(traprepress_attr_mask, mailbox->buf, mailbox 2837 drivers/net/ethernet/mellanox/mlx4/fw.c struct mlx4_cmd_mailbox *mailbox; mailbox 2844 drivers/net/ethernet/mellanox/mlx4/fw.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 2845 drivers/net/ethernet/mellanox/mlx4/fw.c if (IS_ERR(mailbox)) { mailbox 2851 drivers/net/ethernet/mellanox/mlx4/fw.c err = mlx4_cmd_box(dev, 0, mailbox->dma, 0x01 /* subn mgmt class */, mailbox 2860 drivers/net/ethernet/mellanox/mlx4/fw.c if (mlx4_check_smp_firewall_active(dev, mailbox)) mailbox 2864 drivers/net/ethernet/mellanox/mlx4/fw.c err = mlx4_cmd(dev, mailbox->dma, 0x01 /* subn mgmt class */, mailbox 2875 drivers/net/ethernet/mellanox/mlx4/fw.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 3023 drivers/net/ethernet/mellanox/mlx4/fw.c struct mlx4_cmd_mailbox *mailbox; mailbox 3028 drivers/net/ethernet/mellanox/mlx4/fw.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 3029 drivers/net/ethernet/mellanox/mlx4/fw.c if (IS_ERR(mailbox)) mailbox 3030 drivers/net/ethernet/mellanox/mlx4/fw.c return PTR_ERR(mailbox); mailbox 3031 drivers/net/ethernet/mellanox/mlx4/fw.c context = mailbox->buf; mailbox 3038 drivers/net/ethernet/mellanox/mlx4/fw.c err = mlx4_cmd(dev, mailbox->dma, in_mod, MLX4_SET_PORT_ETH_OPCODE, mailbox 3042 drivers/net/ethernet/mellanox/mlx4/fw.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 87 drivers/net/ethernet/mellanox/mlx4/fw_qos.c struct mlx4_cmd_mailbox *mailbox; mailbox 93 drivers/net/ethernet/mellanox/mlx4/fw_qos.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 94 drivers/net/ethernet/mellanox/mlx4/fw_qos.c if (IS_ERR(mailbox)) mailbox 95 drivers/net/ethernet/mellanox/mlx4/fw_qos.c return PTR_ERR(mailbox); mailbox 97 drivers/net/ethernet/mellanox/mlx4/fw_qos.c context = mailbox->buf; mailbox 103 drivers/net/ethernet/mellanox/mlx4/fw_qos.c err = mlx4_cmd(dev, mailbox->dma, in_mod, 1, MLX4_CMD_SET_PORT, mailbox 106 drivers/net/ethernet/mellanox/mlx4/fw_qos.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 114 drivers/net/ethernet/mellanox/mlx4/fw_qos.c struct mlx4_cmd_mailbox *mailbox; mailbox 120 drivers/net/ethernet/mellanox/mlx4/fw_qos.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 121 drivers/net/ethernet/mellanox/mlx4/fw_qos.c if (IS_ERR(mailbox)) mailbox 122 drivers/net/ethernet/mellanox/mlx4/fw_qos.c return PTR_ERR(mailbox); mailbox 124 drivers/net/ethernet/mellanox/mlx4/fw_qos.c context = mailbox->buf; mailbox 151 drivers/net/ethernet/mellanox/mlx4/fw_qos.c err = mlx4_cmd(dev, mailbox->dma, in_mod, 1, MLX4_CMD_SET_PORT, mailbox 154 drivers/net/ethernet/mellanox/mlx4/fw_qos.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 164 drivers/net/ethernet/mellanox/mlx4/fw_qos.c struct mlx4_cmd_mailbox *mailbox; mailbox 167 drivers/net/ethernet/mellanox/mlx4/fw_qos.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 168 drivers/net/ethernet/mellanox/mlx4/fw_qos.c if (IS_ERR(mailbox)) mailbox 169 drivers/net/ethernet/mellanox/mlx4/fw_qos.c return PTR_ERR(mailbox); mailbox 171 drivers/net/ethernet/mellanox/mlx4/fw_qos.c out_param = mailbox->buf; mailbox 173 drivers/net/ethernet/mellanox/mlx4/fw_qos.c err = mlx4_cmd_box(dev, 0, mailbox->dma, port, mailbox 188 drivers/net/ethernet/mellanox/mlx4/fw_qos.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 198 drivers/net/ethernet/mellanox/mlx4/fw_qos.c struct mlx4_cmd_mailbox *mailbox; mailbox 201 drivers/net/ethernet/mellanox/mlx4/fw_qos.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 202 drivers/net/ethernet/mellanox/mlx4/fw_qos.c if (IS_ERR(mailbox)) mailbox 203 drivers/net/ethernet/mellanox/mlx4/fw_qos.c return PTR_ERR(mailbox); mailbox 205 drivers/net/ethernet/mellanox/mlx4/fw_qos.c in_param = mailbox->buf; mailbox 210 drivers/net/ethernet/mellanox/mlx4/fw_qos.c err = mlx4_cmd(dev, mailbox->dma, port, mailbox 216 drivers/net/ethernet/mellanox/mlx4/fw_qos.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 226 drivers/net/ethernet/mellanox/mlx4/fw_qos.c struct mlx4_cmd_mailbox *mailbox; mailbox 229 drivers/net/ethernet/mellanox/mlx4/fw_qos.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 230 drivers/net/ethernet/mellanox/mlx4/fw_qos.c if (IS_ERR(mailbox)) mailbox 231 drivers/net/ethernet/mellanox/mlx4/fw_qos.c return PTR_ERR(mailbox); mailbox 233 drivers/net/ethernet/mellanox/mlx4/fw_qos.c ctx = mailbox->buf; mailbox 235 drivers/net/ethernet/mellanox/mlx4/fw_qos.c err = mlx4_cmd_box(dev, 0, mailbox->dma, (vport << 8) | port, mailbox 252 drivers/net/ethernet/mellanox/mlx4/fw_qos.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 263 drivers/net/ethernet/mellanox/mlx4/fw_qos.c struct mlx4_cmd_mailbox *mailbox; mailbox 266 drivers/net/ethernet/mellanox/mlx4/fw_qos.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 267 drivers/net/ethernet/mellanox/mlx4/fw_qos.c if (IS_ERR(mailbox)) mailbox 268 drivers/net/ethernet/mellanox/mlx4/fw_qos.c return PTR_ERR(mailbox); mailbox 270 drivers/net/ethernet/mellanox/mlx4/fw_qos.c ctx = mailbox->buf; mailbox 280 drivers/net/ethernet/mellanox/mlx4/fw_qos.c err = mlx4_cmd(dev, mailbox->dma, (vport << 8) | port, mailbox 286 drivers/net/ethernet/mellanox/mlx4/fw_qos.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 54 drivers/net/ethernet/mellanox/mlx4/mcg.c struct mlx4_cmd_mailbox *mailbox, mailbox 61 drivers/net/ethernet/mellanox/mlx4/mcg.c err = mlx4_cmd_imm(dev, mailbox->dma, &imm, size, 0, mailbox 83 drivers/net/ethernet/mellanox/mlx4/mcg.c struct mlx4_cmd_mailbox *mailbox) mailbox 85 drivers/net/ethernet/mellanox/mlx4/mcg.c return mlx4_cmd_box(dev, 0, mailbox->dma, index, 0, MLX4_CMD_READ_MCG, mailbox 90 drivers/net/ethernet/mellanox/mlx4/mcg.c struct mlx4_cmd_mailbox *mailbox) mailbox 92 drivers/net/ethernet/mellanox/mlx4/mcg.c return mlx4_cmd(dev, mailbox->dma, index, 0, MLX4_CMD_WRITE_MCG, mailbox 97 drivers/net/ethernet/mellanox/mlx4/mcg.c struct mlx4_cmd_mailbox *mailbox) mailbox 102 drivers/net/ethernet/mellanox/mlx4/mcg.c return mlx4_cmd(dev, mailbox->dma, in_mod, 0x1, mailbox 107 drivers/net/ethernet/mellanox/mlx4/mcg.c static int mlx4_GID_HASH(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, mailbox 113 drivers/net/ethernet/mellanox/mlx4/mcg.c err = mlx4_cmd_imm(dev, mailbox->dma, &imm, 0, op_mod, mailbox 152 drivers/net/ethernet/mellanox/mlx4/mcg.c struct mlx4_cmd_mailbox *mailbox; mailbox 194 drivers/net/ethernet/mellanox/mlx4/mcg.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 195 drivers/net/ethernet/mellanox/mlx4/mcg.c if (IS_ERR(mailbox)) { mailbox 199 drivers/net/ethernet/mellanox/mlx4/mcg.c mgm = mailbox->buf; mailbox 201 drivers/net/ethernet/mellanox/mlx4/mcg.c err = mlx4_READ_ENTRY(dev, index, mailbox); mailbox 222 drivers/net/ethernet/mellanox/mlx4/mcg.c err = mlx4_WRITE_ENTRY(dev, index, mailbox); mailbox 225 drivers/net/ethernet/mellanox/mlx4/mcg.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 334 drivers/net/ethernet/mellanox/mlx4/mcg.c struct mlx4_cmd_mailbox *mailbox; mailbox 343 drivers/net/ethernet/mellanox/mlx4/mcg.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 344 drivers/net/ethernet/mellanox/mlx4/mcg.c if (IS_ERR(mailbox)) mailbox 346 drivers/net/ethernet/mellanox/mlx4/mcg.c mgm = mailbox->buf; mailbox 348 drivers/net/ethernet/mellanox/mlx4/mcg.c if (mlx4_READ_ENTRY(dev, index, mailbox)) mailbox 363 drivers/net/ethernet/mellanox/mlx4/mcg.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 422 drivers/net/ethernet/mellanox/mlx4/mcg.c struct mlx4_cmd_mailbox *mailbox; mailbox 453 drivers/net/ethernet/mellanox/mlx4/mcg.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 454 drivers/net/ethernet/mellanox/mlx4/mcg.c if (IS_ERR(mailbox)) { mailbox 458 drivers/net/ethernet/mellanox/mlx4/mcg.c mgm = mailbox->buf; mailbox 468 drivers/net/ethernet/mellanox/mlx4/mcg.c err = mlx4_READ_ENTRY(dev, entry->index, mailbox); mailbox 507 drivers/net/ethernet/mellanox/mlx4/mcg.c mailbox); mailbox 529 drivers/net/ethernet/mellanox/mlx4/mcg.c err = mlx4_WRITE_PROMISC(dev, port, steer, mailbox); mailbox 533 drivers/net/ethernet/mellanox/mlx4/mcg.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 540 drivers/net/ethernet/mellanox/mlx4/mcg.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 553 drivers/net/ethernet/mellanox/mlx4/mcg.c struct mlx4_cmd_mailbox *mailbox; mailbox 582 drivers/net/ethernet/mellanox/mlx4/mcg.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 583 drivers/net/ethernet/mellanox/mlx4/mcg.c if (IS_ERR(mailbox)) { mailbox 588 drivers/net/ethernet/mellanox/mlx4/mcg.c mgm = mailbox->buf; mailbox 594 drivers/net/ethernet/mellanox/mlx4/mcg.c err = mlx4_WRITE_PROMISC(dev, port, steer, mailbox); mailbox 621 drivers/net/ethernet/mellanox/mlx4/mcg.c mailbox); mailbox 660 drivers/net/ethernet/mellanox/mlx4/mcg.c mailbox); mailbox 668 drivers/net/ethernet/mellanox/mlx4/mcg.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 699 drivers/net/ethernet/mellanox/mlx4/mcg.c struct mlx4_cmd_mailbox *mailbox; mailbox 707 drivers/net/ethernet/mellanox/mlx4/mcg.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 708 drivers/net/ethernet/mellanox/mlx4/mcg.c if (IS_ERR(mailbox)) mailbox 710 drivers/net/ethernet/mellanox/mlx4/mcg.c mgid = mailbox->buf; mailbox 714 drivers/net/ethernet/mellanox/mlx4/mcg.c err = mlx4_GID_HASH(dev, mailbox, &hash, op_mod); mailbox 715 drivers/net/ethernet/mellanox/mlx4/mcg.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 980 drivers/net/ethernet/mellanox/mlx4/mcg.c struct mlx4_cmd_mailbox *mailbox; mailbox 985 drivers/net/ethernet/mellanox/mlx4/mcg.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 986 drivers/net/ethernet/mellanox/mlx4/mcg.c if (IS_ERR(mailbox)) mailbox 987 drivers/net/ethernet/mellanox/mlx4/mcg.c return PTR_ERR(mailbox); mailbox 995 drivers/net/ethernet/mellanox/mlx4/mcg.c trans_rule_ctrl_to_hw(rule, mailbox->buf); mailbox 1000 drivers/net/ethernet/mellanox/mlx4/mcg.c ret = parse_trans_rule(dev, cur, mailbox->buf + size); mailbox 1007 drivers/net/ethernet/mellanox/mlx4/mcg.c ret = mlx4_QP_FLOW_STEERING_ATTACH(dev, mailbox, size >> 2, reg_id); mailbox 1031 drivers/net/ethernet/mellanox/mlx4/mcg.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 1109 drivers/net/ethernet/mellanox/mlx4/mcg.c struct mlx4_cmd_mailbox *mailbox; mailbox 1119 drivers/net/ethernet/mellanox/mlx4/mcg.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 1120 drivers/net/ethernet/mellanox/mlx4/mcg.c if (IS_ERR(mailbox)) mailbox 1121 drivers/net/ethernet/mellanox/mlx4/mcg.c return PTR_ERR(mailbox); mailbox 1122 drivers/net/ethernet/mellanox/mlx4/mcg.c mgm = mailbox->buf; mailbox 1126 drivers/net/ethernet/mellanox/mlx4/mcg.c mailbox, &prev, &index); mailbox 1173 drivers/net/ethernet/mellanox/mlx4/mcg.c err = mlx4_WRITE_ENTRY(dev, index, mailbox); mailbox 1180 drivers/net/ethernet/mellanox/mlx4/mcg.c err = mlx4_READ_ENTRY(dev, prev, mailbox); mailbox 1186 drivers/net/ethernet/mellanox/mlx4/mcg.c err = mlx4_WRITE_ENTRY(dev, prev, mailbox); mailbox 1210 drivers/net/ethernet/mellanox/mlx4/mcg.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 1218 drivers/net/ethernet/mellanox/mlx4/mcg.c struct mlx4_cmd_mailbox *mailbox; mailbox 1227 drivers/net/ethernet/mellanox/mlx4/mcg.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 1228 drivers/net/ethernet/mellanox/mlx4/mcg.c if (IS_ERR(mailbox)) mailbox 1229 drivers/net/ethernet/mellanox/mlx4/mcg.c return PTR_ERR(mailbox); mailbox 1230 drivers/net/ethernet/mellanox/mlx4/mcg.c mgm = mailbox->buf; mailbox 1235 drivers/net/ethernet/mellanox/mlx4/mcg.c mailbox, &prev, &index); mailbox 1275 drivers/net/ethernet/mellanox/mlx4/mcg.c err = mlx4_WRITE_ENTRY(dev, index, mailbox); mailbox 1286 drivers/net/ethernet/mellanox/mlx4/mcg.c err = mlx4_READ_ENTRY(dev, amgm_index, mailbox); mailbox 1292 drivers/net/ethernet/mellanox/mlx4/mcg.c err = mlx4_WRITE_ENTRY(dev, index, mailbox); mailbox 1307 drivers/net/ethernet/mellanox/mlx4/mcg.c err = mlx4_READ_ENTRY(dev, prev, mailbox); mailbox 1313 drivers/net/ethernet/mellanox/mlx4/mcg.c err = mlx4_WRITE_ENTRY(dev, prev, mailbox); mailbox 1328 drivers/net/ethernet/mellanox/mlx4/mcg.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 1339 drivers/net/ethernet/mellanox/mlx4/mcg.c struct mlx4_cmd_mailbox *mailbox; mailbox 1346 drivers/net/ethernet/mellanox/mlx4/mcg.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 1347 drivers/net/ethernet/mellanox/mlx4/mcg.c if (IS_ERR(mailbox)) mailbox 1348 drivers/net/ethernet/mellanox/mlx4/mcg.c return PTR_ERR(mailbox); mailbox 1350 drivers/net/ethernet/mellanox/mlx4/mcg.c memcpy(mailbox->buf, gid, 16); mailbox 1356 drivers/net/ethernet/mellanox/mlx4/mcg.c err = mlx4_cmd(dev, mailbox->dma, qpn, attach, mailbox 1360 drivers/net/ethernet/mellanox/mlx4/mcg.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 276 drivers/net/ethernet/mellanox/mlx4/mr.c static int mlx4_SW2HW_MPT(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, mailbox 279 drivers/net/ethernet/mellanox/mlx4/mr.c return mlx4_cmd(dev, mailbox->dma, mpt_index, mailbox 284 drivers/net/ethernet/mellanox/mlx4/mr.c static int mlx4_HW2SW_MPT(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, mailbox 287 drivers/net/ethernet/mellanox/mlx4/mr.c return mlx4_cmd_box(dev, 0, mailbox ? mailbox->dma : 0, mpt_index, mailbox 288 drivers/net/ethernet/mellanox/mlx4/mr.c !mailbox, MLX4_CMD_HW2SW_MPT, mailbox 298 drivers/net/ethernet/mellanox/mlx4/mr.c struct mlx4_cmd_mailbox *mailbox = NULL; mailbox 317 drivers/net/ethernet/mellanox/mlx4/mr.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 318 drivers/net/ethernet/mellanox/mlx4/mr.c if (IS_ERR(mailbox)) mailbox 319 drivers/net/ethernet/mellanox/mlx4/mr.c return PTR_ERR(mailbox); mailbox 321 drivers/net/ethernet/mellanox/mlx4/mr.c err = mlx4_cmd_box(dev, 0, mailbox->dma, key, mailbox 328 drivers/net/ethernet/mellanox/mlx4/mr.c *mpt_entry = (struct mlx4_mpt_entry **)&mailbox->buf; mailbox 339 drivers/net/ethernet/mellanox/mlx4/mr.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 362 drivers/net/ethernet/mellanox/mlx4/mr.c struct mlx4_cmd_mailbox *mailbox = mailbox 367 drivers/net/ethernet/mellanox/mlx4/mr.c err = mlx4_SW2HW_MPT(dev, mailbox, key); mailbox 382 drivers/net/ethernet/mellanox/mlx4/mr.c struct mlx4_cmd_mailbox *mailbox = mailbox 385 drivers/net/ethernet/mellanox/mlx4/mr.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 432 drivers/net/ethernet/mellanox/mlx4/mr.c struct mlx4_cmd_mailbox *mailbox, mailbox 435 drivers/net/ethernet/mellanox/mlx4/mr.c return mlx4_cmd(dev, mailbox->dma, num_entries, 0, MLX4_CMD_WRITE_MTT, mailbox 629 drivers/net/ethernet/mellanox/mlx4/mr.c struct mlx4_cmd_mailbox *mailbox; mailbox 637 drivers/net/ethernet/mellanox/mlx4/mr.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 638 drivers/net/ethernet/mellanox/mlx4/mr.c if (IS_ERR(mailbox)) { mailbox 639 drivers/net/ethernet/mellanox/mlx4/mr.c err = PTR_ERR(mailbox); mailbox 642 drivers/net/ethernet/mellanox/mlx4/mr.c mpt_entry = mailbox->buf; mailbox 671 drivers/net/ethernet/mellanox/mlx4/mr.c err = mlx4_SW2HW_MPT(dev, mailbox, mailbox 679 drivers/net/ethernet/mellanox/mlx4/mr.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 684 drivers/net/ethernet/mellanox/mlx4/mr.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 749 drivers/net/ethernet/mellanox/mlx4/mr.c struct mlx4_cmd_mailbox *mailbox = NULL; mailbox 759 drivers/net/ethernet/mellanox/mlx4/mr.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 760 drivers/net/ethernet/mellanox/mlx4/mr.c if (IS_ERR(mailbox)) mailbox 761 drivers/net/ethernet/mellanox/mlx4/mr.c return PTR_ERR(mailbox); mailbox 762 drivers/net/ethernet/mellanox/mlx4/mr.c inbox = mailbox->buf; mailbox 772 drivers/net/ethernet/mellanox/mlx4/mr.c err = mlx4_WRITE_MTT(dev, mailbox, chunk); mailbox 774 drivers/net/ethernet/mellanox/mlx4/mr.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 782 drivers/net/ethernet/mellanox/mlx4/mr.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 840 drivers/net/ethernet/mellanox/mlx4/mr.c struct mlx4_cmd_mailbox *mailbox; mailbox 848 drivers/net/ethernet/mellanox/mlx4/mr.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 849 drivers/net/ethernet/mellanox/mlx4/mr.c if (IS_ERR(mailbox)) { mailbox 850 drivers/net/ethernet/mellanox/mlx4/mr.c err = PTR_ERR(mailbox); mailbox 853 drivers/net/ethernet/mellanox/mlx4/mr.c mpt_entry = mailbox->buf; mailbox 866 drivers/net/ethernet/mellanox/mlx4/mr.c err = mlx4_SW2HW_MPT(dev, mailbox, mailbox 875 drivers/net/ethernet/mellanox/mlx4/mr.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 880 drivers/net/ethernet/mellanox/mlx4/mr.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 130 drivers/net/ethernet/mellanox/mlx4/port.c struct mlx4_cmd_mailbox *mailbox; mailbox 134 drivers/net/ethernet/mellanox/mlx4/port.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 135 drivers/net/ethernet/mellanox/mlx4/port.c if (IS_ERR(mailbox)) mailbox 136 drivers/net/ethernet/mellanox/mlx4/port.c return PTR_ERR(mailbox); mailbox 138 drivers/net/ethernet/mellanox/mlx4/port.c memcpy(mailbox->buf, entries, MLX4_MAC_TABLE_SIZE); mailbox 142 drivers/net/ethernet/mellanox/mlx4/port.c err = mlx4_cmd(dev, mailbox->dma, in_mod, MLX4_SET_PORT_ETH_OPCODE, mailbox 146 drivers/net/ethernet/mellanox/mlx4/port.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 539 drivers/net/ethernet/mellanox/mlx4/port.c struct mlx4_cmd_mailbox *mailbox; mailbox 543 drivers/net/ethernet/mellanox/mlx4/port.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 544 drivers/net/ethernet/mellanox/mlx4/port.c if (IS_ERR(mailbox)) mailbox 545 drivers/net/ethernet/mellanox/mlx4/port.c return PTR_ERR(mailbox); mailbox 547 drivers/net/ethernet/mellanox/mlx4/port.c memcpy(mailbox->buf, entries, MLX4_VLAN_TABLE_SIZE); mailbox 549 drivers/net/ethernet/mellanox/mlx4/port.c err = mlx4_cmd(dev, mailbox->dma, in_mod, MLX4_SET_PORT_ETH_OPCODE, mailbox 553 drivers/net/ethernet/mellanox/mlx4/port.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 1170 drivers/net/ethernet/mellanox/mlx4/port.c int port, struct mlx4_cmd_mailbox *mailbox) mailbox 1180 drivers/net/ethernet/mellanox/mlx4/port.c memset(mailbox->buf, 0, MLX4_MAILBOX_SIZE); mailbox 1189 drivers/net/ethernet/mellanox/mlx4/port.c gid_entry_mbox = (struct mlx4_roce_gid_entry *)mailbox->buf; mailbox 1195 drivers/net/ethernet/mellanox/mlx4/port.c err = mlx4_cmd(dev, mailbox->dma, mailbox 1207 drivers/net/ethernet/mellanox/mlx4/port.c struct mlx4_cmd_mailbox *mailbox; mailbox 1228 drivers/net/ethernet/mellanox/mlx4/port.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 1229 drivers/net/ethernet/mellanox/mlx4/port.c if (IS_ERR(mailbox)) mailbox 1236 drivers/net/ethernet/mellanox/mlx4/port.c err = mlx4_reset_roce_port_gids(dev, slave, i + 1, mailbox); mailbox 1243 drivers/net/ethernet/mellanox/mlx4/port.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 1570 drivers/net/ethernet/mellanox/mlx4/port.c struct mlx4_cmd_mailbox *mailbox; mailbox 1576 drivers/net/ethernet/mellanox/mlx4/port.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 1577 drivers/net/ethernet/mellanox/mlx4/port.c if (IS_ERR(mailbox)) mailbox 1578 drivers/net/ethernet/mellanox/mlx4/port.c return PTR_ERR(mailbox); mailbox 1580 drivers/net/ethernet/mellanox/mlx4/port.c ((__be32 *) mailbox->buf)[1] = dev->caps.ib_port_def_cap[port]; mailbox 1584 drivers/net/ethernet/mellanox/mlx4/port.c ((__be16 *) mailbox->buf)[20] = cpu_to_be16(pkey_tbl_sz); mailbox 1589 drivers/net/ethernet/mellanox/mlx4/port.c ((__be32 *) mailbox->buf)[0] = cpu_to_be32( mailbox 1595 drivers/net/ethernet/mellanox/mlx4/port.c err = mlx4_cmd(dev, mailbox->dma, port, mailbox 1602 drivers/net/ethernet/mellanox/mlx4/port.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 1611 drivers/net/ethernet/mellanox/mlx4/port.c struct mlx4_cmd_mailbox *mailbox; mailbox 1616 drivers/net/ethernet/mellanox/mlx4/port.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 1617 drivers/net/ethernet/mellanox/mlx4/port.c if (IS_ERR(mailbox)) mailbox 1618 drivers/net/ethernet/mellanox/mlx4/port.c return PTR_ERR(mailbox); mailbox 1619 drivers/net/ethernet/mellanox/mlx4/port.c context = mailbox->buf; mailbox 1633 drivers/net/ethernet/mellanox/mlx4/port.c err = mlx4_cmd(dev, mailbox->dma, in_mod, MLX4_SET_PORT_ETH_OPCODE, mailbox 1637 drivers/net/ethernet/mellanox/mlx4/port.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 1645 drivers/net/ethernet/mellanox/mlx4/port.c struct mlx4_cmd_mailbox *mailbox; mailbox 1655 drivers/net/ethernet/mellanox/mlx4/port.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 1656 drivers/net/ethernet/mellanox/mlx4/port.c if (IS_ERR(mailbox)) mailbox 1657 drivers/net/ethernet/mellanox/mlx4/port.c return PTR_ERR(mailbox); mailbox 1658 drivers/net/ethernet/mellanox/mlx4/port.c context = mailbox->buf; mailbox 1671 drivers/net/ethernet/mellanox/mlx4/port.c err = mlx4_cmd(dev, mailbox->dma, in_mod, MLX4_SET_PORT_ETH_OPCODE, mailbox 1675 drivers/net/ethernet/mellanox/mlx4/port.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 1682 drivers/net/ethernet/mellanox/mlx4/port.c struct mlx4_cmd_mailbox *mailbox; mailbox 1687 drivers/net/ethernet/mellanox/mlx4/port.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 1688 drivers/net/ethernet/mellanox/mlx4/port.c if (IS_ERR(mailbox)) mailbox 1689 drivers/net/ethernet/mellanox/mlx4/port.c return PTR_ERR(mailbox); mailbox 1690 drivers/net/ethernet/mellanox/mlx4/port.c context = mailbox->buf; mailbox 1695 drivers/net/ethernet/mellanox/mlx4/port.c err = mlx4_cmd(dev, mailbox->dma, in_mod, MLX4_SET_PORT_ETH_OPCODE, mailbox 1699 drivers/net/ethernet/mellanox/mlx4/port.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 1706 drivers/net/ethernet/mellanox/mlx4/port.c struct mlx4_cmd_mailbox *mailbox; mailbox 1711 drivers/net/ethernet/mellanox/mlx4/port.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 1712 drivers/net/ethernet/mellanox/mlx4/port.c if (IS_ERR(mailbox)) mailbox 1713 drivers/net/ethernet/mellanox/mlx4/port.c return PTR_ERR(mailbox); mailbox 1714 drivers/net/ethernet/mellanox/mlx4/port.c context = mailbox->buf; mailbox 1719 drivers/net/ethernet/mellanox/mlx4/port.c err = mlx4_cmd(dev, mailbox->dma, in_mod, MLX4_SET_PORT_ETH_OPCODE, mailbox 1723 drivers/net/ethernet/mellanox/mlx4/port.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 1730 drivers/net/ethernet/mellanox/mlx4/port.c struct mlx4_cmd_mailbox *mailbox; mailbox 1735 drivers/net/ethernet/mellanox/mlx4/port.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 1736 drivers/net/ethernet/mellanox/mlx4/port.c if (IS_ERR(mailbox)) mailbox 1737 drivers/net/ethernet/mellanox/mlx4/port.c return PTR_ERR(mailbox); mailbox 1738 drivers/net/ethernet/mellanox/mlx4/port.c context = mailbox->buf; mailbox 1746 drivers/net/ethernet/mellanox/mlx4/port.c err = mlx4_cmd(dev, mailbox->dma, in_mod, 1, MLX4_CMD_SET_PORT, mailbox 1749 drivers/net/ethernet/mellanox/mlx4/port.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 1773 drivers/net/ethernet/mellanox/mlx4/port.c struct mlx4_cmd_mailbox *mailbox; mailbox 1776 drivers/net/ethernet/mellanox/mlx4/port.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 1777 drivers/net/ethernet/mellanox/mlx4/port.c if (IS_ERR(mailbox)) mailbox 1778 drivers/net/ethernet/mellanox/mlx4/port.c return PTR_ERR(mailbox); mailbox 1779 drivers/net/ethernet/mellanox/mlx4/port.c context = mailbox->buf; mailbox 1788 drivers/net/ethernet/mellanox/mlx4/port.c err = mlx4_cmd(dev, mailbox->dma, in_mod, MLX4_SET_PORT_ETH_OPCODE, mailbox 1792 drivers/net/ethernet/mellanox/mlx4/port.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 1800 drivers/net/ethernet/mellanox/mlx4/port.c struct mlx4_cmd_mailbox *mailbox; mailbox 1802 drivers/net/ethernet/mellanox/mlx4/port.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 1803 drivers/net/ethernet/mellanox/mlx4/port.c if (IS_ERR(mailbox)) mailbox 1804 drivers/net/ethernet/mellanox/mlx4/port.c return PTR_ERR(mailbox); mailbox 1806 drivers/net/ethernet/mellanox/mlx4/port.c *((__be32 *)mailbox->buf) = cpu_to_be32(time); mailbox 1808 drivers/net/ethernet/mellanox/mlx4/port.c err = mlx4_cmd(dev, mailbox->dma, port, MLX4_SET_PORT_BEACON_OPCODE, mailbox 1812 drivers/net/ethernet/mellanox/mlx4/port.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 134 drivers/net/ethernet/mellanox/mlx4/qp.c struct mlx4_cmd_mailbox *mailbox; mailbox 159 drivers/net/ethernet/mellanox/mlx4/qp.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 160 drivers/net/ethernet/mellanox/mlx4/qp.c if (IS_ERR(mailbox)) mailbox 161 drivers/net/ethernet/mellanox/mlx4/qp.c return PTR_ERR(mailbox); mailbox 176 drivers/net/ethernet/mellanox/mlx4/qp.c *(__be32 *) mailbox->buf = cpu_to_be32(optpar); mailbox 177 drivers/net/ethernet/mellanox/mlx4/qp.c memcpy(mailbox->buf + 8, context, sizeof(*context)); mailbox 179 drivers/net/ethernet/mellanox/mlx4/qp.c ((struct mlx4_qp_context *) (mailbox->buf + 8))->local_qpn = mailbox 182 drivers/net/ethernet/mellanox/mlx4/qp.c ret = mlx4_cmd(dev, mailbox->dma, mailbox 204 drivers/net/ethernet/mellanox/mlx4/qp.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 442 drivers/net/ethernet/mellanox/mlx4/qp.c struct mlx4_cmd_mailbox *mailbox; mailbox 451 drivers/net/ethernet/mellanox/mlx4/qp.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 452 drivers/net/ethernet/mellanox/mlx4/qp.c if (IS_ERR(mailbox)) mailbox 453 drivers/net/ethernet/mellanox/mlx4/qp.c return PTR_ERR(mailbox); mailbox 455 drivers/net/ethernet/mellanox/mlx4/qp.c cmd = (struct mlx4_update_qp_context *)mailbox->buf; mailbox 504 drivers/net/ethernet/mellanox/mlx4/qp.c err = mlx4_cmd(dev, mailbox->dma, qpn & 0xffffff, 0, mailbox 508 drivers/net/ethernet/mellanox/mlx4/qp.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 896 drivers/net/ethernet/mellanox/mlx4/qp.c struct mlx4_cmd_mailbox *mailbox; mailbox 899 drivers/net/ethernet/mellanox/mlx4/qp.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 900 drivers/net/ethernet/mellanox/mlx4/qp.c if (IS_ERR(mailbox)) mailbox 901 drivers/net/ethernet/mellanox/mlx4/qp.c return PTR_ERR(mailbox); mailbox 903 drivers/net/ethernet/mellanox/mlx4/qp.c err = mlx4_cmd_box(dev, 0, mailbox->dma, qp->qpn, 0, mailbox 907 drivers/net/ethernet/mellanox/mlx4/qp.c memcpy(context, mailbox->buf + 8, sizeof(*context)); mailbox 909 drivers/net/ethernet/mellanox/mlx4/qp.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 3342 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c struct mlx4_cmd_mailbox *mailbox; mailbox 3374 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 3375 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (IS_ERR(mailbox)) { mailbox 3376 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = PTR_ERR(mailbox); mailbox 3385 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c memcpy(mailbox->buf, (u8 *) eqe, 28); mailbox 3389 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = mlx4_cmd(dev, mailbox->dma, in_modifier, 0, mailbox 3395 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 4978 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c struct mlx4_cmd_mailbox *mailbox; mailbox 4983 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 4984 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (IS_ERR(mailbox)) mailbox 4985 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c return PTR_ERR(mailbox); mailbox 4991 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c memcpy(mailbox->buf, fs_rule->mirr_mbox, fs_rule->mirr_mbox_size); mailbox 4992 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = mlx4_cmd_imm(dev, mailbox->dma, ®_id, fs_rule->mirr_mbox_size >> 2, 0, mailbox 4995 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 5276 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c struct mlx4_cmd_mailbox *mailbox; mailbox 5312 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 5313 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (IS_ERR(mailbox)) mailbox 5335 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c upd_context = mailbox->buf; mailbox 5392 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = mlx4_cmd(dev, mailbox->dma, mailbox 5405 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 64 drivers/net/ethernet/mellanox/mlx4/srq.c static int mlx4_SW2HW_SRQ(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, mailbox 67 drivers/net/ethernet/mellanox/mlx4/srq.c return mlx4_cmd(dev, mailbox->dma, srq_num, 0, mailbox 72 drivers/net/ethernet/mellanox/mlx4/srq.c static int mlx4_HW2SW_SRQ(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, mailbox 75 drivers/net/ethernet/mellanox/mlx4/srq.c return mlx4_cmd_box(dev, 0, mailbox ? mailbox->dma : 0, srq_num, mailbox 76 drivers/net/ethernet/mellanox/mlx4/srq.c mailbox ? 0 : 1, MLX4_CMD_HW2SW_SRQ, mailbox 86 drivers/net/ethernet/mellanox/mlx4/srq.c static int mlx4_QUERY_SRQ(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, mailbox 89 drivers/net/ethernet/mellanox/mlx4/srq.c return mlx4_cmd_box(dev, 0, mailbox->dma, srq_num, 0, MLX4_CMD_QUERY_SRQ, mailbox 166 drivers/net/ethernet/mellanox/mlx4/srq.c struct mlx4_cmd_mailbox *mailbox; mailbox 181 drivers/net/ethernet/mellanox/mlx4/srq.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 182 drivers/net/ethernet/mellanox/mlx4/srq.c if (IS_ERR(mailbox)) { mailbox 183 drivers/net/ethernet/mellanox/mlx4/srq.c err = PTR_ERR(mailbox); mailbox 187 drivers/net/ethernet/mellanox/mlx4/srq.c srq_context = mailbox->buf; mailbox 201 drivers/net/ethernet/mellanox/mlx4/srq.c err = mlx4_SW2HW_SRQ(dev, mailbox, srq->srqn); mailbox 202 drivers/net/ethernet/mellanox/mlx4/srq.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 251 drivers/net/ethernet/mellanox/mlx4/srq.c struct mlx4_cmd_mailbox *mailbox; mailbox 255 drivers/net/ethernet/mellanox/mlx4/srq.c mailbox = mlx4_alloc_cmd_mailbox(dev); mailbox 256 drivers/net/ethernet/mellanox/mlx4/srq.c if (IS_ERR(mailbox)) mailbox 257 drivers/net/ethernet/mellanox/mlx4/srq.c return PTR_ERR(mailbox); mailbox 259 drivers/net/ethernet/mellanox/mlx4/srq.c srq_context = mailbox->buf; mailbox 261 drivers/net/ethernet/mellanox/mlx4/srq.c err = mlx4_QUERY_SRQ(dev, mailbox, srq->srqn); mailbox 267 drivers/net/ethernet/mellanox/mlx4/srq.c mlx4_free_cmd_mailbox(dev, mailbox); mailbox 1186 drivers/net/ethernet/mellanox/mlx5/core/cmd.c struct mlx5_cmd_mailbox *mailbox; mailbox 1188 drivers/net/ethernet/mellanox/mlx5/core/cmd.c mailbox = kmalloc(sizeof(*mailbox), flags); mailbox 1189 drivers/net/ethernet/mellanox/mlx5/core/cmd.c if (!mailbox) mailbox 1192 drivers/net/ethernet/mellanox/mlx5/core/cmd.c mailbox->buf = dma_pool_zalloc(dev->cmd.pool, flags, mailbox 1193 drivers/net/ethernet/mellanox/mlx5/core/cmd.c &mailbox->dma); mailbox 1194 drivers/net/ethernet/mellanox/mlx5/core/cmd.c if (!mailbox->buf) { mailbox 1196 drivers/net/ethernet/mellanox/mlx5/core/cmd.c kfree(mailbox); mailbox 1199 drivers/net/ethernet/mellanox/mlx5/core/cmd.c mailbox->next = NULL; mailbox 1201 drivers/net/ethernet/mellanox/mlx5/core/cmd.c return mailbox; mailbox 1205 drivers/net/ethernet/mellanox/mlx5/core/cmd.c struct mlx5_cmd_mailbox *mailbox) mailbox 1207 drivers/net/ethernet/mellanox/mlx5/core/cmd.c dma_pool_free(dev->cmd.pool, mailbox->buf, mailbox->dma); mailbox 1208 drivers/net/ethernet/mellanox/mlx5/core/cmd.c kfree(mailbox); mailbox 535 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h struct qlcnic_mailbox *mailbox; mailbox 504 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c struct qlcnic_mailbox *mbx = adapter->ahw->mailbox; mailbox 846 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c flush_workqueue(ahw->mailbox->work_q); mailbox 853 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c struct qlcnic_mailbox *mbx = adapter->ahw->mailbox; mailbox 1019 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c struct qlcnic_mailbox *mbx = ahw->mailbox; mailbox 2349 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c mbx = adapter->ahw->mailbox; mailbox 3894 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c struct qlcnic_mailbox *mbx = adapter->ahw->mailbox; mailbox 3915 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c struct qlcnic_mailbox *mbx = ahw->mailbox; mailbox 3943 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c struct qlcnic_mailbox *mbx = adapter->ahw->mailbox; mailbox 3992 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c struct qlcnic_mailbox *mbx = adapter->ahw->mailbox; mailbox 4008 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c struct qlcnic_mailbox *mbx = adapter->ahw->mailbox; mailbox 4165 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c ahw->mailbox = kzalloc(sizeof(*mbx), GFP_KERNEL); mailbox 4166 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c if (!ahw->mailbox) mailbox 4169 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c mbx = ahw->mailbox; mailbox 617 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c qlcnic_83xx_reinit_mbx_work(adapter->ahw->mailbox); mailbox 822 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c struct qlcnic_mailbox *mbx = ahw->mailbox; mailbox 900 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c struct qlcnic_mailbox *mbx = adapter->ahw->mailbox; mailbox 2554 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c qlcnic_83xx_free_mailbox(ahw->mailbox); mailbox 2555 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c ahw->mailbox = NULL; mailbox 2766 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c qlcnic_83xx_free_mailbox(ahw->mailbox); mailbox 314 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c struct qlcnic_mailbox *mbx = ahw->mailbox; mailbox 1374 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c struct qlcnic_mailbox *mbx = ahw->mailbox; mailbox 1677 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c qlcnic_83xx_reinit_mbx_work(adapter->ahw->mailbox); mailbox 1768 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c struct qlcnic_mailbox *mbx = ahw->mailbox; mailbox 1854 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c struct qlcnic_mailbox *mbx = adapter->ahw->mailbox; mailbox 1871 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c struct qlcnic_mailbox *mbx = adapter->ahw->mailbox; mailbox 297 drivers/net/wan/farsync.c u16 mailbox[4]; /* Diagnostics mailbox. Not used */ mailbox 62 drivers/scsi/aha1542.c struct mailbox *mb; mailbox 269 drivers/scsi/aha1542.c struct mailbox *mb = aha1542->mb; mailbox 402 drivers/scsi/aha1542.c struct mailbox *mb = aha1542->mb; mailbox 773 drivers/scsi/aha1542.c AHA1542_MAILBOXES * 2 * sizeof(struct mailbox), mailbox 817 drivers/scsi/aha1542.c dma_free_coherent(pdev, AHA1542_MAILBOXES * 2 * sizeof(struct mailbox), mailbox 837 drivers/scsi/aha1542.c dma_free_coherent(dev, AHA1542_MAILBOXES * 2 * sizeof(struct mailbox), mailbox 857 drivers/scsi/aha1542.c struct mailbox *mb = aha1542->mb; mailbox 94 drivers/scsi/ipr.c .mailbox = 0x0042C, mailbox 119 drivers/scsi/ipr.c .mailbox = 0x0052C, mailbox 144 drivers/scsi/ipr.c .mailbox = 0x00044, mailbox 8531 drivers/scsi/ipr.c unsigned long mailbox; mailbox 8537 drivers/scsi/ipr.c mailbox = readl(ioa_cfg->ioa_mailbox); mailbox 8539 drivers/scsi/ipr.c if (!ioa_cfg->sis64 && !ipr_sdt_is_fmt2(mailbox)) { mailbox 8545 drivers/scsi/ipr.c rc = ipr_get_ldump_data_section(ioa_cfg, mailbox, (__be32 *) &sdt, mailbox 10234 drivers/scsi/ipr.c ioa_cfg->ioa_mailbox = ioa_cfg->chip_cfg->mailbox + ipr_regs; mailbox 1400 drivers/scsi/ipr.h u32 mailbox; mailbox 98 drivers/scsi/pmcraid.c .mailbox = 0x7FC30, mailbox 5089 drivers/scsi/pmcraid.c pinstance->mailbox = mapped_pci_addr + chip_cfg->mailbox; mailbox 463 drivers/scsi/pmcraid.h unsigned long mailbox; mailbox 670 drivers/scsi/pmcraid.h void __iomem *mailbox; /* Iomapped mailbox register */ mailbox 3344 drivers/scsi/qla1280.c uint16_t mailbox[MAILBOX_REGISTER_COUNT]; mailbox 3356 drivers/scsi/qla1280.c mailbox[5] = RD_REG_WORD(®->mailbox5); mailbox 3360 drivers/scsi/qla1280.c mailbox[0] = RD_REG_WORD_dmasync(®->semaphore); mailbox 3362 drivers/scsi/qla1280.c if (mailbox[0] & BIT_0) { mailbox 3366 drivers/scsi/qla1280.c wptr = &mailbox[0]; mailbox 3370 drivers/scsi/qla1280.c if (mailbox[0] != MBA_SCSI_COMPLETION) { mailbox 3385 drivers/scsi/qla1280.c mailbox[0]); mailbox 3388 drivers/scsi/qla1280.c switch (mailbox[0]) { mailbox 3395 drivers/scsi/qla1280.c index = mailbox[2] << 16 | mailbox[1]; mailbox 3425 drivers/scsi/qla1280.c index = mailbox[6] & BIT_0; mailbox 3435 drivers/scsi/qla1280.c "%xh, mbx3=%xh\n", mailbox[1], mailbox[2], mailbox 3436 drivers/scsi/qla1280.c mailbox[3]); mailbox 3463 drivers/scsi/qla1280.c index = mailbox[6] & BIT_0; mailbox 3474 drivers/scsi/qla1280.c if (mailbox[0] < MBA_ASYNC_EVENT) { mailbox 3475 drivers/scsi/qla1280.c wptr = &mailbox[0]; mailbox 3498 drivers/scsi/qla1280.c if (mailbox[5] >= RESPONSE_ENTRY_CNT) mailbox 3501 drivers/scsi/qla1280.c while (ha->rsp_ring_index != mailbox[5]) { mailbox 3505 drivers/scsi/qla1280.c " = 0x%x\n", ha->rsp_ring_index, mailbox[5]); mailbox 3515 drivers/scsi/qla1280.c ha->rsp_ring_index, mailbox[5], mailbox 3522 drivers/scsi/qla1280.c ha->rsp_ring_index, mailbox[5]); mailbox 5901 drivers/scsi/qla2xxx/qla_target.c uint16_t *mailbox) mailbox 5937 drivers/scsi/qla2xxx/qla_target.c le16_to_cpu(mailbox[0]), le16_to_cpu(mailbox[1]), mailbox 5938 drivers/scsi/qla2xxx/qla_target.c le16_to_cpu(mailbox[2]), le16_to_cpu(mailbox[3])); mailbox 5955 drivers/scsi/qla2xxx/qla_target.c le16_to_cpu(mailbox[0]), le16_to_cpu(mailbox[1]), mailbox 5956 drivers/scsi/qla2xxx/qla_target.c le16_to_cpu(mailbox[2]), le16_to_cpu(mailbox[3])); mailbox 5963 drivers/scsi/qla2xxx/qla_target.c le16_to_cpu(mailbox[0]), le16_to_cpu(mailbox[1]), mailbox 5964 drivers/scsi/qla2xxx/qla_target.c le16_to_cpu(mailbox[2]), le16_to_cpu(mailbox[3])); mailbox 5966 drivers/scsi/qla2xxx/qla_target.c if (le16_to_cpu(mailbox[3]) == 1) { mailbox 5990 drivers/scsi/qla2xxx/qla_target.c le16_to_cpu(mailbox[0]), le16_to_cpu(mailbox[1]), mailbox 5991 drivers/scsi/qla2xxx/qla_target.c le16_to_cpu(mailbox[2]), le16_to_cpu(mailbox[3])); mailbox 5993 drivers/scsi/qla2xxx/qla_target.c login_code = le16_to_cpu(mailbox[2]); mailbox 46 drivers/scsi/qla4xxx/ql4_dbg.c (uint8_t) offsetof(struct isp_reg, mailbox[i]), i, mailbox 47 drivers/scsi/qla4xxx/ql4_dbg.c readw(&ha->reg->mailbox[i])); mailbox 105 drivers/scsi/qla4xxx/ql4_fw.h __le32 mailbox[MBOX_REG_COUNT]; mailbox 703 drivers/scsi/qla4xxx/ql4_init.c writel(jiffies, &ha->reg->mailbox[7]); mailbox 708 drivers/scsi/qla4xxx/ql4_init.c writel(2, &ha->reg->mailbox[6]); mailbox 709 drivers/scsi/qla4xxx/ql4_init.c readl(&ha->reg->mailbox[6]); mailbox 725 drivers/scsi/qla4xxx/ql4_init.c mbox_status = readw(&ha->reg->mailbox[0]); mailbox 817 drivers/scsi/qla4xxx/ql4_init.c mbox_status = readw(&ha->reg->mailbox[0]); mailbox 672 drivers/scsi/qla4xxx/ql4_isr.c mailbox_out = &ha->reg->mailbox[0]; mailbox 1086 drivers/scsi/qla4xxx/ql4_isr.c readl(&ha->reg->mailbox[0])); mailbox 22 drivers/scsi/qla4xxx/ql4_mbx.c writel(mbx_cmd[i], &ha->reg->mailbox[i]); mailbox 25 drivers/scsi/qla4xxx/ql4_mbx.c writel(mbx_cmd[0], &ha->reg->mailbox[0]); mailbox 26 drivers/scsi/qla4xxx/ql4_mbx.c readl(&ha->reg->mailbox[0]); mailbox 154 drivers/scsi/smartpqi/smartpqi_sis.c u32 mailbox[6]; /* mailboxes 0-5 */ mailbox 176 drivers/scsi/smartpqi/smartpqi_sis.c writel(params->mailbox[i], ®isters->sis_mailbox[i]); mailbox 222 drivers/scsi/smartpqi/smartpqi_sis.c params->mailbox[0] = cmd_status; mailbox 223 drivers/scsi/smartpqi/smartpqi_sis.c for (i = 1; i < ARRAY_SIZE(params->mailbox); i++) mailbox 224 drivers/scsi/smartpqi/smartpqi_sis.c params->mailbox[i] = readl(®isters->sis_mailbox[i]); mailbox 247 drivers/scsi/smartpqi/smartpqi_sis.c properties = params.mailbox[1]; mailbox 252 drivers/scsi/smartpqi/smartpqi_sis.c extended_properties = params.mailbox[4]; mailbox 276 drivers/scsi/smartpqi/smartpqi_sis.c ctrl_info->max_sg_entries = params.mailbox[1]; mailbox 277 drivers/scsi/smartpqi/smartpqi_sis.c ctrl_info->max_transfer_size = params.mailbox[2]; mailbox 278 drivers/scsi/smartpqi/smartpqi_sis.c ctrl_info->max_outstanding_requests = params.mailbox[3]; mailbox 279 drivers/scsi/smartpqi/smartpqi_sis.c ctrl_info->config_table_offset = params.mailbox[4]; mailbox 280 drivers/scsi/smartpqi/smartpqi_sis.c ctrl_info->config_table_length = params.mailbox[5]; mailbox 321 drivers/scsi/smartpqi/smartpqi_sis.c params.mailbox[1] = lower_32_bits((u64)bus_address); mailbox 322 drivers/scsi/smartpqi/smartpqi_sis.c params.mailbox[2] = upper_32_bits((u64)bus_address); mailbox 323 drivers/scsi/smartpqi/smartpqi_sis.c params.mailbox[3] = sizeof(*base_struct); mailbox 120 drivers/tty/cyclades.c u32 mailbox; mailbox 3398 drivers/tty/cyclades.c const char *name, const u32 mailbox, void __iomem *base, mailbox 3439 drivers/tty/cyclades.c if (c->mailbox == mailbox && c->function == 0) /* 0 is normal */ mailbox 3455 drivers/tty/cyclades.c if (c->mailbox == mailbox && c->function == 0) mailbox 3482 drivers/tty/cyclades.c u32 mailbox, status, nchan; mailbox 3511 drivers/tty/cyclades.c mailbox = readl(&ctl_addr->mail_box_0); mailbox 3513 drivers/tty/cyclades.c if (mailbox == 0 || __cyz_fpga_loaded(ctl_addr)) { mailbox 3523 drivers/tty/cyclades.c if (mailbox != 0) { mailbox 3525 drivers/tty/cyclades.c retval = __cyz_load_fw(fw, "Cyclom-Z", mailbox, NULL, mailbox 3545 drivers/tty/cyclades.c if (mailbox != 0) { mailbox 3554 drivers/tty/cyclades.c retval = __cyz_load_fw(fw, "Cyclom-Z", mailbox, base_addr, NULL); mailbox 3646 drivers/tty/cyclades.c u32 uninitialized_var(mailbox); mailbox 3728 drivers/tty/cyclades.c mailbox = readl(&ctl_addr->mail_box_0); mailbox 3731 drivers/tty/cyclades.c mailbox == ZE_V1 ? CyPCI_Ze_win : CyPCI_Zwin); mailbox 3737 drivers/tty/cyclades.c if (mailbox == ZE_V1) { mailbox 3742 drivers/tty/cyclades.c if (mailbox == ZO_V1) { mailbox 3760 drivers/tty/cyclades.c if ((mailbox == ZO_V1) || (mailbox == ZO_V2)) mailbox 3805 drivers/tty/cyclades.c card->hw_ver = mailbox; mailbox 1266 include/linux/greybus/greybus_protocols.h __le32 mailbox; mailbox 81 include/linux/greybus/interface.h u32 mailbox); mailbox 304 include/linux/mlx4/cmd.h void mlx4_free_cmd_mailbox(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox); mailbox 1194 sound/pci/mixart/mixart.c u32 mailbox = 100 * readl_be( MIXART_MEM( chip->mgr, MIXART_PSEUDOREG_PERF_MAILBX_LOAD_OFFSET)) / ref; mailbox 1199 sound/pci/mixart/mixart.c snd_iprintf(buffer, "\tmailbox : %d\n", mailbox); mailbox 94 sound/soc/intel/atom/sst/sst.c drv->mailbox + drv->mailbox_recv_offset, size); mailbox 490 sound/soc/intel/atom/sst/sst.c memcpy32_fromio(fw_save->sram, ctx->mailbox, SST_MAILBOX_SIZE); mailbox 526 sound/soc/intel/atom/sst/sst.c memcpy32_toio(ctx->mailbox, fw_save->sram, SST_MAILBOX_SIZE); mailbox 357 sound/soc/intel/atom/sst/sst.h void __iomem *mailbox; mailbox 200 sound/soc/intel/atom/sst/sst_acpi.c ctx->mailbox = devm_ioremap_nocache(ctx->dev, ctx->mailbox_add, mailbox 202 sound/soc/intel/atom/sst/sst_acpi.c if (!ctx->mailbox) { mailbox 261 sound/soc/intel/atom/sst/sst_drv_interface.c addr = ((void __iomem *)(ctx->mailbox + ctx->tstamp)) + mailbox 355 sound/soc/intel/atom/sst/sst_drv_interface.c addr = (void __iomem *)(ctx->mailbox + ctx->tstamp) + mailbox 535 sound/soc/intel/atom/sst/sst_drv_interface.c addr = (void __iomem *)(ctx->mailbox + ctx->tstamp) + mailbox 166 sound/soc/intel/atom/sst/sst_ipc.c memcpy_toio(sst_drv_ctx->mailbox + SST_MAILBOX_SEND, mailbox 74 sound/soc/intel/atom/sst/sst_pci.c ctx->mailbox = pcim_iomap(pci, 2, pci_resource_len(pci, 2)); mailbox 75 sound/soc/intel/atom/sst/sst_pci.c if (!ctx->mailbox) { mailbox 79 sound/soc/intel/atom/sst/sst_pci.c dev_dbg(ctx->dev, "SRAM Ptr %p\n", ctx->mailbox); mailbox 280 sound/soc/intel/common/sst-dsp-priv.h struct sst_mailbox mailbox; mailbox 352 sound/soc/intel/common/sst-dsp.c sst->mailbox.in_base = sst->addr.lpe + inbox_offset; mailbox 353 sound/soc/intel/common/sst-dsp.c sst->mailbox.out_base = sst->addr.lpe + outbox_offset; mailbox 354 sound/soc/intel/common/sst-dsp.c sst->mailbox.in_size = inbox_size; mailbox 355 sound/soc/intel/common/sst-dsp.c sst->mailbox.out_size = outbox_size; mailbox 366 sound/soc/intel/common/sst-dsp.c memcpy_toio(sst->mailbox.out_base, message, bytes); mailbox 379 sound/soc/intel/common/sst-dsp.c memcpy_fromio(message, sst->mailbox.out_base, bytes); mailbox 392 sound/soc/intel/common/sst-dsp.c memcpy_toio(sst->mailbox.in_base, message, bytes); mailbox 405 sound/soc/intel/common/sst-dsp.c memcpy_fromio(message, sst->mailbox.in_base, bytes); mailbox 179 sound/soc/intel/skylake/skl-debug.c void __iomem *in_base = sst->mailbox.in_base;