Searched refs:new_counter_index (Results 1 – 2 of 2) sorted by relevance
2625 struct counter_index *new_counter_index; in mlx4_ib_probe() local2733 new_counter_index = kmalloc(sizeof(*new_counter_index), in mlx4_ib_probe()2735 if (!new_counter_index) { in mlx4_ib_probe()2741 new_counter_index->index = counter_index; in mlx4_ib_probe()2742 new_counter_index->allocated = allocated; in mlx4_ib_probe()2743 list_add_tail(&new_counter_index->list, in mlx4_ib_probe()2751 new_counter_index = in mlx4_ib_probe()2754 if (!new_counter_index) { in mlx4_ib_probe()2758 new_counter_index->index = counter_index; in mlx4_ib_probe()2759 new_counter_index->allocated = 0; in mlx4_ib_probe()[all …]
1952 struct counter_index *new_counter_index; in create_qp_lb_counter() local1966 new_counter_index = kmalloc(sizeof(*new_counter_index), GFP_KERNEL); in create_qp_lb_counter()1967 if (!new_counter_index) { in create_qp_lb_counter()1972 new_counter_index->index = tmp_idx; in create_qp_lb_counter()1973 new_counter_index->allocated = 1; in create_qp_lb_counter()1974 qp->counter_index = new_counter_index; in create_qp_lb_counter()1977 list_add_tail(&new_counter_index->list, in create_qp_lb_counter()