Lines Matching defs:cmd
971 static void alloc_inout(struct mlx5_vdpa_net *ndev, int cmd, void **in, int *inlen, void **out,
977 switch (cmd) {
986 MLX5_SET(qp_2rst_in, *in, opcode, cmd);
998 MLX5_SET(rst2init_qp_in, *in, opcode, cmd);
1015 MLX5_SET(init2rtr_qp_in, *in, opcode, cmd);
1033 MLX5_SET(rtr2rts_qp_in, *in, opcode, cmd);
1066 static int modify_qp(struct mlx5_vdpa_net *ndev, struct mlx5_vdpa_virtqueue *mvq, bool fw, int cmd)
1074 alloc_inout(ndev, cmd, &in, &inlen, &out, &outlen, get_qpn(mvq, fw), get_rqpn(mvq, fw));
1796 static virtio_net_ctrl_ack handle_ctrl_mac(struct mlx5_vdpa_dev *mvdev, u8 cmd)
1806 switch (cmd) {
1923 static virtio_net_ctrl_ack handle_ctrl_mq(struct mlx5_vdpa_dev *mvdev, u8 cmd)
1932 switch (cmd) {
1971 static virtio_net_ctrl_ack handle_ctrl_vlan(struct mlx5_vdpa_dev *mvdev, u8 cmd)
1983 switch (cmd) {
2051 status = handle_ctrl_mac(mvdev, ctrl.cmd);
2054 status = handle_ctrl_mq(mvdev, ctrl.cmd);
2057 status = handle_ctrl_vlan(mvdev, ctrl.cmd);