Searched refs:new_counter_index (Results 1 – 2 of 2) sorted by relevance
2427 struct counter_index *new_counter_index = NULL; in mlx4_ib_add() local2623 new_counter_index = kmalloc(sizeof(*new_counter_index), in mlx4_ib_add()2625 if (!new_counter_index) { in mlx4_ib_add()2630 new_counter_index->index = counter_index; in mlx4_ib_add()2631 new_counter_index->allocated = allocated; in mlx4_ib_add()2632 list_add_tail(&new_counter_index->list, in mlx4_ib_add()2640 new_counter_index = in mlx4_ib_add()2643 if (!new_counter_index) in mlx4_ib_add()2645 new_counter_index->index = counter_index; in mlx4_ib_add()2646 new_counter_index->allocated = 0; in mlx4_ib_add()[all …]
1574 struct counter_index *new_counter_index; in create_qp_lb_counter() local1588 new_counter_index = kmalloc(sizeof(*new_counter_index), GFP_KERNEL); in create_qp_lb_counter()1589 if (!new_counter_index) { in create_qp_lb_counter()1594 new_counter_index->index = tmp_idx; in create_qp_lb_counter()1595 new_counter_index->allocated = 1; in create_qp_lb_counter()1596 qp->counter_index = new_counter_index; in create_qp_lb_counter()1599 list_add_tail(&new_counter_index->list, in create_qp_lb_counter()