Lines Matching refs:v_idx

969 static void igb_free_q_vector(struct igb_adapter *adapter, int v_idx)  in igb_free_q_vector()  argument
971 struct igb_q_vector *q_vector = adapter->q_vector[v_idx]; in igb_free_q_vector()
973 adapter->q_vector[v_idx] = NULL; in igb_free_q_vector()
990 static void igb_reset_q_vector(struct igb_adapter *adapter, int v_idx) in igb_reset_q_vector() argument
992 struct igb_q_vector *q_vector = adapter->q_vector[v_idx]; in igb_reset_q_vector()
1012 int v_idx = adapter->num_q_vectors; in igb_reset_interrupt_capability() local
1019 while (v_idx--) in igb_reset_interrupt_capability()
1020 igb_reset_q_vector(adapter, v_idx); in igb_reset_interrupt_capability()
1033 int v_idx = adapter->num_q_vectors; in igb_free_q_vectors() local
1039 while (v_idx--) { in igb_free_q_vectors()
1040 igb_reset_q_vector(adapter, v_idx); in igb_free_q_vectors()
1041 igb_free_q_vector(adapter, v_idx); in igb_free_q_vectors()
1157 int v_count, int v_idx, in igb_alloc_q_vector() argument
1174 q_vector = adapter->q_vector[v_idx]; in igb_alloc_q_vector()
1194 adapter->q_vector[v_idx] = q_vector; in igb_alloc_q_vector()
1300 int rxr_idx = 0, txr_idx = 0, v_idx = 0; in igb_alloc_q_vectors() local
1304 for (; rxr_remaining; v_idx++) { in igb_alloc_q_vectors()
1305 err = igb_alloc_q_vector(adapter, q_vectors, v_idx, in igb_alloc_q_vectors()
1317 for (; v_idx < q_vectors; v_idx++) { in igb_alloc_q_vectors()
1318 int rqpv = DIV_ROUND_UP(rxr_remaining, q_vectors - v_idx); in igb_alloc_q_vectors()
1319 int tqpv = DIV_ROUND_UP(txr_remaining, q_vectors - v_idx); in igb_alloc_q_vectors()
1321 err = igb_alloc_q_vector(adapter, q_vectors, v_idx, in igb_alloc_q_vectors()
1341 while (v_idx--) in igb_alloc_q_vectors()
1342 igb_free_q_vector(adapter, v_idx); in igb_alloc_q_vectors()