Lines Matching refs:mailbox

87 	struct mlx4_cmd_mailbox *mailbox;  in mlx4_SET_PORT_PRIO2TC()  local
93 mailbox = mlx4_alloc_cmd_mailbox(dev); in mlx4_SET_PORT_PRIO2TC()
94 if (IS_ERR(mailbox)) in mlx4_SET_PORT_PRIO2TC()
95 return PTR_ERR(mailbox); in mlx4_SET_PORT_PRIO2TC()
97 context = mailbox->buf; in mlx4_SET_PORT_PRIO2TC()
103 err = mlx4_cmd(dev, mailbox->dma, in_mod, 1, MLX4_CMD_SET_PORT, in mlx4_SET_PORT_PRIO2TC()
106 mlx4_free_cmd_mailbox(dev, mailbox); in mlx4_SET_PORT_PRIO2TC()
114 struct mlx4_cmd_mailbox *mailbox; in mlx4_SET_PORT_SCHEDULER() local
120 mailbox = mlx4_alloc_cmd_mailbox(dev); in mlx4_SET_PORT_SCHEDULER()
121 if (IS_ERR(mailbox)) in mlx4_SET_PORT_SCHEDULER()
122 return PTR_ERR(mailbox); in mlx4_SET_PORT_SCHEDULER()
124 context = mailbox->buf; in mlx4_SET_PORT_SCHEDULER()
151 err = mlx4_cmd(dev, mailbox->dma, in_mod, 1, MLX4_CMD_SET_PORT, in mlx4_SET_PORT_SCHEDULER()
154 mlx4_free_cmd_mailbox(dev, mailbox); in mlx4_SET_PORT_SCHEDULER()
164 struct mlx4_cmd_mailbox *mailbox; in mlx4_ALLOCATE_VPP_get() local
167 mailbox = mlx4_alloc_cmd_mailbox(dev); in mlx4_ALLOCATE_VPP_get()
168 if (IS_ERR(mailbox)) in mlx4_ALLOCATE_VPP_get()
169 return PTR_ERR(mailbox); in mlx4_ALLOCATE_VPP_get()
171 out_param = mailbox->buf; in mlx4_ALLOCATE_VPP_get()
173 err = mlx4_cmd_box(dev, 0, mailbox->dma, port, in mlx4_ALLOCATE_VPP_get()
188 mlx4_free_cmd_mailbox(dev, mailbox); in mlx4_ALLOCATE_VPP_get()
198 struct mlx4_cmd_mailbox *mailbox; in mlx4_ALLOCATE_VPP_set() local
201 mailbox = mlx4_alloc_cmd_mailbox(dev); in mlx4_ALLOCATE_VPP_set()
202 if (IS_ERR(mailbox)) in mlx4_ALLOCATE_VPP_set()
203 return PTR_ERR(mailbox); in mlx4_ALLOCATE_VPP_set()
205 in_param = mailbox->buf; in mlx4_ALLOCATE_VPP_set()
210 err = mlx4_cmd(dev, mailbox->dma, port, in mlx4_ALLOCATE_VPP_set()
216 mlx4_free_cmd_mailbox(dev, mailbox); in mlx4_ALLOCATE_VPP_set()
226 struct mlx4_cmd_mailbox *mailbox; in mlx4_SET_VPORT_QOS_get() local
229 mailbox = mlx4_alloc_cmd_mailbox(dev); in mlx4_SET_VPORT_QOS_get()
230 if (IS_ERR(mailbox)) in mlx4_SET_VPORT_QOS_get()
231 return PTR_ERR(mailbox); in mlx4_SET_VPORT_QOS_get()
233 ctx = mailbox->buf; in mlx4_SET_VPORT_QOS_get()
235 err = mlx4_cmd_box(dev, 0, mailbox->dma, (vport << 8) | port, in mlx4_SET_VPORT_QOS_get()
252 mlx4_free_cmd_mailbox(dev, mailbox); in mlx4_SET_VPORT_QOS_get()
263 struct mlx4_cmd_mailbox *mailbox; in mlx4_SET_VPORT_QOS_set() local
266 mailbox = mlx4_alloc_cmd_mailbox(dev); in mlx4_SET_VPORT_QOS_set()
267 if (IS_ERR(mailbox)) in mlx4_SET_VPORT_QOS_set()
268 return PTR_ERR(mailbox); in mlx4_SET_VPORT_QOS_set()
270 ctx = mailbox->buf; in mlx4_SET_VPORT_QOS_set()
280 err = mlx4_cmd(dev, mailbox->dma, (vport << 8) | port, in mlx4_SET_VPORT_QOS_set()
286 mlx4_free_cmd_mailbox(dev, mailbox); in mlx4_SET_VPORT_QOS_set()