Lines Matching refs:cqn
1671 static int cq_res_start_move_to(struct mlx4_dev *dev, int slave, int cqn, in cq_res_start_move_to() argument
1680 r = res_tracker_lookup(&tracker->res_tree[RES_CQ], cqn); in cq_res_start_move_to()
1938 int cqn; in cq_alloc_res() local
1947 err = __mlx4_cq_alloc_icm(dev, &cqn); in cq_alloc_res()
1953 err = add_res_range(dev, slave, cqn, 1, RES_CQ, 0); in cq_alloc_res()
1956 __mlx4_cq_free_icm(dev, cqn); in cq_alloc_res()
1960 set_param_l(out_param, cqn); in cq_alloc_res()
2464 int cqn; in cq_free_res() local
2469 cqn = get_param_l(&in_param); in cq_free_res()
2470 err = rem_res_range(dev, slave, cqn, 1, RES_CQ, 0); in cq_free_res()
2475 __mlx4_cq_free_icm(dev, cqn); in cq_free_res()
3441 int cqn = vhcr->in_modifier; in mlx4_SW2HW_CQ_wrapper() local
3447 err = cq_res_start_move_to(dev, slave, cqn, RES_CQ_HW, &cq); in mlx4_SW2HW_CQ_wrapper()
3462 res_end_move(dev, slave, RES_CQ, cqn); in mlx4_SW2HW_CQ_wrapper()
3468 res_abort_move(dev, slave, RES_CQ, cqn); in mlx4_SW2HW_CQ_wrapper()
3479 int cqn = vhcr->in_modifier; in mlx4_HW2SW_CQ_wrapper() local
3482 err = cq_res_start_move_to(dev, slave, cqn, RES_CQ_ALLOCATED, &cq); in mlx4_HW2SW_CQ_wrapper()
3489 res_end_move(dev, slave, RES_CQ, cqn); in mlx4_HW2SW_CQ_wrapper()
3493 res_abort_move(dev, slave, RES_CQ, cqn); in mlx4_HW2SW_CQ_wrapper()
3503 int cqn = vhcr->in_modifier; in mlx4_QUERY_CQ_wrapper() local
3507 err = get_res(dev, slave, cqn, RES_CQ, &cq); in mlx4_QUERY_CQ_wrapper()
3516 put_res(dev, slave, cqn, RES_CQ); in mlx4_QUERY_CQ_wrapper()
3575 int cqn = vhcr->in_modifier; in mlx4_MODIFY_CQ_wrapper() local
3579 err = get_res(dev, slave, cqn, RES_CQ, &cq); in mlx4_MODIFY_CQ_wrapper()
3593 put_res(dev, slave, cqn, RES_CQ); in mlx4_MODIFY_CQ_wrapper()
4808 int cqn; in rem_slave_cqs() local
4820 cqn = cq->com.res_id; in rem_slave_cqs()
4825 __mlx4_cq_free_icm(dev, cqn); in rem_slave_cqs()
4839 err = mlx4_cmd(dev, in_param, cqn, 1, in rem_slave_cqs()
4845 slave, cqn); in rem_slave_cqs()