Lines Matching refs:mailbox
288 struct mlx4_cmd_mailbox *mailbox; in mlx4_SET_PORT() local
291 mailbox = mlx4_alloc_cmd_mailbox(dev->dev); in mlx4_SET_PORT()
292 if (IS_ERR(mailbox)) in mlx4_SET_PORT()
293 return PTR_ERR(mailbox); in mlx4_SET_PORT()
295 memset(mailbox->buf, 0, 256); in mlx4_SET_PORT()
298 *(u8 *) mailbox->buf = !!reset_qkey_viols << 6; in mlx4_SET_PORT()
299 ((__be32 *) mailbox->buf)[2] = cpu_to_be32(cap_mask); in mlx4_SET_PORT()
301 ((u8 *) mailbox->buf)[3] = !!reset_qkey_viols; in mlx4_SET_PORT()
302 ((__be32 *) mailbox->buf)[1] = cpu_to_be32(cap_mask); in mlx4_SET_PORT()
305 err = mlx4_cmd(dev->dev, mailbox->dma, port, 0, MLX4_CMD_SET_PORT, in mlx4_SET_PORT()
308 mlx4_free_cmd_mailbox(dev->dev, mailbox); in mlx4_SET_PORT()