Lines Matching refs:cmd_mem
1227 struct mlx5_virtqueue_query_mem *cmd_mem; in query_virtqueues() local
1235 cmd_mem = kvcalloc(num_vqs, sizeof(*cmd_mem), GFP_KERNEL); in query_virtqueues()
1236 if (!cmds || !cmd_mem) { in query_virtqueues()
1242 cmds[i].in = &cmd_mem[i].in; in query_virtqueues()
1243 cmds[i].inlen = sizeof(cmd_mem[i].in); in query_virtqueues()
1244 cmds[i].out = &cmd_mem[i].out; in query_virtqueues()
1245 cmds[i].outlen = sizeof(cmd_mem[i].out); in query_virtqueues()
1246 fill_query_virtqueue_cmd(ndev, &ndev->vqs[start_vq + i], &cmd_mem[i]); in query_virtqueues()
1267 query_virtqueue_end(ndev, &cmd_mem[i], &attrs[i]); in query_virtqueues()
1271 kvfree(cmd_mem); in query_virtqueues()
1560 struct mlx5_virtqueue_modify_mem *cmd_mem; in modify_virtqueues() local
1568 cmd_mem = kvcalloc(num_vqs, sizeof(*cmd_mem), GFP_KERNEL); in modify_virtqueues()
1569 if (!cmds || !cmd_mem) { in modify_virtqueues()
1595 cmd->in = &cmd_mem[i].in; in modify_virtqueues()
1596 cmd->inlen = sizeof(cmd_mem[i].in); in modify_virtqueues()
1597 cmd->out = &cmd_mem[i].out; in modify_virtqueues()
1598 cmd->outlen = sizeof(cmd_mem[i].out); in modify_virtqueues()
1599 fill_modify_virtqueue_cmd(ndev, mvq, state, &cmd_mem[i]); in modify_virtqueues()
1628 kvfree(cmd_mem); in modify_virtqueues()