Lines Matching refs:v_idx
102 static int ice_vsi_alloc_q_vector(struct ice_vsi *vsi, u16 v_idx) in ice_vsi_alloc_q_vector() argument
114 q_vector->v_idx = v_idx; in ice_vsi_alloc_q_vector()
151 if (cpu_online(v_idx)) in ice_vsi_alloc_q_vector()
152 cpumask_set_cpu(v_idx, &q_vector->affinity_mask); in ice_vsi_alloc_q_vector()
163 vsi->q_vectors[v_idx] = q_vector; in ice_vsi_alloc_q_vector()
178 static void ice_free_q_vector(struct ice_vsi *vsi, int v_idx) in ice_free_q_vector() argument
187 if (!vsi->q_vectors[v_idx]) { in ice_free_q_vector()
188 dev_dbg(dev, "Queue vector at index %d not found\n", v_idx); in ice_free_q_vector()
191 q_vector = vsi->q_vectors[v_idx]; in ice_free_q_vector()
193 ice_for_each_tx_ring(tx_ring, vsi->q_vectors[v_idx]->tx) in ice_free_q_vector()
196 ice_for_each_rx_ring(rx_ring, vsi->q_vectors[v_idx]->rx) in ice_free_q_vector()
216 vsi->q_vectors[v_idx] = NULL; in ice_free_q_vector()
779 u16 v_idx; in ice_vsi_alloc_q_vectors() local
787 for (v_idx = 0; v_idx < vsi->num_q_vectors; v_idx++) { in ice_vsi_alloc_q_vectors()
788 err = ice_vsi_alloc_q_vector(vsi, v_idx); in ice_vsi_alloc_q_vectors()
796 while (v_idx--) in ice_vsi_alloc_q_vectors()
797 ice_free_q_vector(vsi, v_idx); in ice_vsi_alloc_q_vectors()
873 int v_idx; in ice_vsi_free_q_vectors() local
875 ice_for_each_q_vector(vsi, v_idx) in ice_vsi_free_q_vectors()
876 ice_free_q_vector(vsi, v_idx); in ice_vsi_free_q_vectors()