/linux-master/drivers/infiniband/hw/hns/ |
H A D | hns_roce_mr.c | 153 struct hns_roce_cmd_mailbox *mailbox; local 157 /* Allocate mailbox memory */ 158 mailbox = hns_roce_alloc_cmd_mailbox(hr_dev); 159 if (IS_ERR(mailbox)) 160 return PTR_ERR(mailbox); 163 ret = hr_dev->hw->write_mtpt(hr_dev, mailbox->buf, mr); 165 ret = hr_dev->hw->frmr_write_mtpt(mailbox->buf, mr); 171 ret = hns_roce_create_hw_ctx(hr_dev, mailbox, HNS_ROCE_CMD_CREATE_MPT, 181 hns_roce_free_cmd_mailbox(hr_dev, mailbox); 286 struct hns_roce_cmd_mailbox *mailbox; local 503 struct hns_roce_cmd_mailbox *mailbox; local [all...] |
H A D | hns_roce_hw_v2.c | 83 /* ECC_RESOURCE_GMV is handled by cmdq, not mailbox */ 1004 * sending mailbox&cmq&doorbell to hardware. If now in .init_instance() 1035 /* When hardware reset is detected, we should stop sending mailbox&cmq& 1066 * should stop sending mailbox&cmq&doorbell to hardware, and exit 3045 "failed to post mailbox, ret = %d.\n", ret); 4119 struct hns_roce_cmd_mailbox *mailbox; local 4146 dev_warn(dev, "table %u not to be destroyed by mailbox!\n", 4153 mailbox = hns_roce_alloc_cmd_mailbox(hr_dev); 4154 if (IS_ERR(mailbox)) 4155 return PTR_ERR(mailbox); 4168 struct hns_roce_cmd_mailbox *mailbox; local 5328 struct hns_roce_cmd_mailbox *mailbox; local 5351 struct hns_roce_cmd_mailbox *mailbox; local 5375 struct hns_roce_cmd_mailbox *mailbox; local 5753 struct hns_roce_cmd_mailbox *mailbox; local 5803 struct hns_roce_cmd_mailbox *mailbox; local 5835 struct hns_roce_cmd_mailbox *mailbox; local 5882 struct hns_roce_cmd_mailbox *mailbox; local 5911 struct hns_roce_cmd_mailbox *mailbox; local 6281 struct hns_roce_cmd_mailbox *mailbox; local 6508 struct hns_roce_cmd_mailbox *mailbox; local [all...] |
H A D | hns_roce_srq.c | 89 struct hns_roce_cmd_mailbox *mailbox; local 92 mailbox = hns_roce_alloc_cmd_mailbox(hr_dev); 93 if (IS_ERR(mailbox)) { 94 ibdev_err(ibdev, "failed to alloc mailbox for SRQC.\n"); 95 return PTR_ERR(mailbox); 98 ret = hr_dev->hw->write_srqc(srq, mailbox->buf); 104 ret = hns_roce_create_hw_ctx(hr_dev, mailbox, HNS_ROCE_CMD_CREATE_SRQ, 110 hns_roce_free_cmd_mailbox(hr_dev, mailbox);
|
H A D | hns_roce_cq.c | 108 struct hns_roce_cmd_mailbox *mailbox; local 111 mailbox = hns_roce_alloc_cmd_mailbox(hr_dev); 112 if (IS_ERR(mailbox)) { 113 ibdev_err(ibdev, "failed to alloc mailbox for CQC.\n"); 114 return PTR_ERR(mailbox); 117 hr_dev->hw->write_cqc(hr_dev, hr_cq, mailbox->buf, mtts, dma_handle); 119 ret = hns_roce_create_hw_ctx(hr_dev, mailbox, HNS_ROCE_CMD_CREATE_CQC, 126 hns_roce_free_cmd_mailbox(hr_dev, mailbox);
|
/linux-master/drivers/char/ |
H A D | applicom.h | 34 struct mailbox{ struct
|
/linux-master/drivers/media/pci/ivtv/ |
H A D | Makefile | 5 ivtv-mailbox.o ivtv-queue.o ivtv-streams.o ivtv-udma.o \
|
/linux-master/drivers/media/pci/cx18/ |
H A D | Makefile | 4 cx18-mailbox.o cx18-vbi.o cx18-audio.o cx18-video.o cx18-irq.o \
|
/linux-master/include/linux/greybus/ |
H A D | interface.h | 81 u32 mailbox);
|
/linux-master/drivers/firmware/arm_scmi/ |
H A D | Makefile | 8 scmi-transport-$(CONFIG_ARM_SCMI_TRANSPORT_MAILBOX) += mailbox.o
|
/linux-master/sound/soc/intel/common/ |
H A D | sst-dsp-priv.h | 81 /* mailbox */ 82 struct sst_mailbox mailbox; member in struct:sst_dsp
|
/linux-master/drivers/infiniband/hw/mthca/ |
H A D | mthca_cq.c | 772 struct mthca_mailbox *mailbox; local 805 mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); 806 if (IS_ERR(mailbox)) { 807 err = PTR_ERR(mailbox); 811 cq_context = mailbox->buf; 844 err = mthca_SW2HW_CQ(dev, mailbox, cq->cqn); 861 mthca_free_mailbox(dev, mailbox); 870 mthca_free_mailbox(dev, mailbox); 903 struct mthca_mailbox *mailbox; local 906 mailbox [all...] |
H A D | mthca_eq.c | 473 struct mthca_mailbox *mailbox; local 494 mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); 495 if (IS_ERR(mailbox)) 497 eq_context = mailbox->buf; 545 err = mthca_SW2HW_EQ(dev, mailbox, eq->eqn); 552 mthca_free_mailbox(dev, mailbox); 578 mthca_free_mailbox(dev, mailbox); 591 struct mthca_mailbox *mailbox; local 597 mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); 598 if (IS_ERR(mailbox)) [all...] |
H A D | mthca_qp.c | 436 struct mthca_mailbox *mailbox = NULL; local 448 mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); 449 if (IS_ERR(mailbox)) { 450 err = PTR_ERR(mailbox); 454 err = mthca_QUERY_QP(dev, qp->qpn, 0, mailbox); 460 qp_param = mailbox->buf; 515 mthca_free_mailbox(dev, mailbox); 566 struct mthca_mailbox *mailbox; local 572 mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); 573 if (IS_ERR(mailbox)) { [all...] |
/linux-master/drivers/infiniband/hw/mlx4/ |
H A D | main.c | 164 struct mlx4_cmd_mailbox *mailbox; local 170 mailbox = mlx4_alloc_cmd_mailbox(dev); 171 if (IS_ERR(mailbox)) 174 gid_tbl = mailbox->buf; 179 err = mlx4_cmd(dev, mailbox->dma, 184 err += mlx4_cmd(dev, mailbox->dma, 189 mlx4_free_cmd_mailbox(dev, mailbox); 197 struct mlx4_cmd_mailbox *mailbox; local 210 mailbox = mlx4_alloc_cmd_mailbox(dev); 211 if (IS_ERR(mailbox)) 759 struct mlx4_cmd_mailbox *mailbox; local 1000 struct mlx4_cmd_mailbox *mailbox; local 1028 mlx4_free_cmd_mailbox(to_mdev(ibdev)->dev, mailbox); local 1036 struct mlx4_cmd_mailbox *mailbox; local 1530 struct mlx4_cmd_mailbox *mailbox; local [all...] |
/linux-master/drivers/scsi/ |
H A D | aha1542.h | 54 struct mailbox { struct
|
H A D | aha1542.c | 57 /* This will effectively start both of them at the first mailbox */ 62 struct mailbox *mb; 287 struct mailbox *mb = aha1542->mb; 406 aha1542->int_cmds[mbo] = NULL; /* This effectively frees up the mailbox slot, as 424 struct mailbox *mb = aha1542->mb; 477 panic("Unable to find empty mailbox for aha1542.\n"); 785 AHA1542_MAILBOXES * 2 * sizeof(struct mailbox), 829 dma_free_coherent(pdev, AHA1542_MAILBOXES * 2 * sizeof(struct mailbox), 849 dma_free_coherent(dev, AHA1542_MAILBOXES * 2 * sizeof(struct mailbox), 869 struct mailbox *m [all...] |
H A D | qla1280.c | 39 - Handle interrupts during mailbox testing 50 - Delete completion queue from srb if mailbox command failed to 93 - Use completion queue for mailbox commands instead of busy wait 121 - Rely on mailbox commands generating interrupts - do not 139 - Enable interrupts early (before any mailbox access) in preparation 140 for cleaning up the mailbox handling 729 printk(KERN_ERR "scsi(%ld): mailbox timed out, mailbox0 %04x, " 907 * by the issuance of the mailbox command. 1420 /* Insure mailbox registers are free. */ 2399 * Issue mailbox comman 3340 uint16_t mailbox[MAILBOX_REGISTER_COUNT]; local [all...] |
/linux-master/drivers/media/pci/cx88/ |
H A D | cx88-blackbird.c | 332 memory_read(dev->core, dev->mailbox - 4, &value); 335 "Firmware and/or mailbox pointer not initialized or corrupted\n"); 339 memory_read(dev->core, dev->mailbox, &flag); 346 memory_write(dev->core, dev->mailbox, flag); 349 memory_write(dev->core, dev->mailbox + 1, command); /* command code */ 351 memory_write(dev->core, dev->mailbox + 3, IVTV_API_STD_TIMEOUT); 353 memory_write(dev->core, dev->mailbox + 4 + i, data[i]); 357 memory_write(dev->core, dev->mailbox + 4 + i, 0); 360 memory_write(dev->core, dev->mailbox, flag); 365 memory_read(dev->core, dev->mailbox, [all...] |
/linux-master/drivers/scsi/qla4xxx/ |
H A D | ql4_dbg.c | 38 printk(KERN_INFO "mailbox[%d] = 0x%08X\n", 44 printk(KERN_INFO "0x%02X mailbox[%d] = 0x%08X\n", 45 (uint8_t) offsetof(struct isp_reg, mailbox[i]), i, 46 readw(&ha->reg->mailbox[i]));
|
/linux-master/include/linux/soc/mediatek/ |
H A D | mtk-cmdq.h | 11 #include <linux/mailbox/mtk-cmdq-mailbox.h> 44 * @dev: device of CMDQ mailbox client 57 * cmdq_mbox_create() - create CMDQ mailbox client and channel 58 * @dev: device of CMDQ mailbox client 59 * @index: index of CMDQ mailbox channel 61 * Return: CMDQ mailbox client pointer 66 * cmdq_mbox_destroy() - destroy CMDQ mailbox client and channel 67 * @client: the CMDQ mailbox client 73 * @client: the CMDQ mailbox clien [all...] |
/linux-master/drivers/crypto/intel/qat/qat_common/ |
H A D | adf_admin.c | 120 void __iomem *mailbox = admin->mailbox_addr; local 126 if (ADF_CSR_RD(mailbox, mb_offset) == 1) { 132 ADF_CSR_WR(mailbox, mb_offset, 1); 137 mailbox, mb_offset); 545 void __iomem *mailbox; local 576 mailbox = pmisc_addr + mailbox_offset; 585 admin->mailbox_addr = mailbox;
|
/linux-master/sound/soc/intel/atom/sst/ |
H A D | sst_acpi.c | 196 /* Get mailbox addr */ 199 ctx->mailbox = devm_ioremap(ctx->dev, ctx->mailbox_add, 201 if (!ctx->mailbox) { 202 dev_err(ctx->dev, "unable to map mailbox\n");
|
/linux-master/drivers/net/ethernet/mellanox/mlx4/ |
H A D | cmd.c | 537 mlx4_err(dev, "response expected while output mailbox is NULL for command 0x%x\n", 556 mlx4_err(dev, "response expected while output mailbox is NULL for command 0x%x\n", 598 mlx4_err(dev, "response expected while output mailbox is NULL for command 0x%x\n", 696 mlx4_err(dev, "response expected while output mailbox is NULL for command 0x%x\n", 2694 struct mlx4_cmd_mailbox *mailbox; local 2696 mailbox = kmalloc(sizeof(*mailbox), GFP_KERNEL); 2697 if (!mailbox) 2700 mailbox->buf = dma_pool_zalloc(mlx4_priv(dev)->cmd.pool, GFP_KERNEL, 2701 &mailbox 2711 mlx4_free_cmd_mailbox(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox) argument 3290 struct mlx4_cmd_mailbox *mailbox = NULL; local [all...] |
H A D | eq.c | 910 static int mlx4_SW2HW_EQ(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, argument 913 return mlx4_cmd(dev, mailbox->dma, eq_num, 0, 974 struct mlx4_cmd_mailbox *mailbox; local 1002 mailbox = mlx4_alloc_cmd_mailbox(dev); 1003 if (IS_ERR(mailbox)) 1005 eq_context = mailbox->buf; 1047 err = mlx4_SW2HW_EQ(dev, mailbox, eq->eqn); 1054 mlx4_free_cmd_mailbox(dev, mailbox); 1078 mlx4_free_cmd_mailbox(dev, mailbox);
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | cmd.c | 1375 struct mlx5_cmd_mailbox *mailbox; local 1377 mailbox = kmalloc(sizeof(*mailbox), flags); 1378 if (!mailbox) 1381 mailbox->buf = dma_pool_zalloc(dev->cmd.pool, flags, 1382 &mailbox->dma); 1383 if (!mailbox->buf) { 1385 kfree(mailbox); 1388 mailbox->next = NULL; 1390 return mailbox; 1393 free_cmd_box(struct mlx5_core_dev *dev, struct mlx5_cmd_mailbox *mailbox) argument [all...] |