Lines Matching defs:mailbox
137 struct mlx4_cmd_mailbox *mailbox;
162 mailbox = mlx4_alloc_cmd_mailbox(dev);
163 if (IS_ERR(mailbox))
164 return PTR_ERR(mailbox);
173 *(__be32 *) mailbox->buf = cpu_to_be32(optpar);
174 memcpy(mailbox->buf + 8, context, sizeof *context);
176 ((struct mlx4_qp_context *) (mailbox->buf + 8))->local_qpn =
179 ret = mlx4_cmd(dev, mailbox->dma,
201 mlx4_free_cmd_mailbox(dev, mailbox);
567 struct mlx4_cmd_mailbox *mailbox;
570 mailbox = mlx4_alloc_cmd_mailbox(dev);
571 if (IS_ERR(mailbox))
572 return PTR_ERR(mailbox);
574 err = mlx4_cmd_box(dev, 0, mailbox->dma, qp->qpn, 0,
578 memcpy(context, mailbox->buf + 8, sizeof *context);
580 mlx4_free_cmd_mailbox(dev, mailbox);