Lines Matching refs:pile
222 static int i40e_get_lump(struct i40e_pf *pf, struct i40e_lump_tracking *pile, in i40e_get_lump() argument
228 if (!pile || needed == 0 || id >= I40E_PILE_VALID_BIT) { in i40e_get_lump()
231 pile ? "<valid>" : "<null>", needed, id); in i40e_get_lump()
238 if (pile == pf->qp_pile && pf->vsi[id]->type == I40E_VSI_FDIR) { in i40e_get_lump()
239 if (pile->list[pile->num_entries - 1] & I40E_PILE_VALID_BIT) { in i40e_get_lump()
242 pile->num_entries - 1); in i40e_get_lump()
245 pile->list[pile->num_entries - 1] = id | I40E_PILE_VALID_BIT; in i40e_get_lump()
246 return pile->num_entries - 1; in i40e_get_lump()
250 while (i < pile->num_entries) { in i40e_get_lump()
252 if (pile->list[i] & I40E_PILE_VALID_BIT) { in i40e_get_lump()
258 for (j = 0; (j < needed) && ((i+j) < pile->num_entries); j++) { in i40e_get_lump()
259 if (pile->list[i+j] & I40E_PILE_VALID_BIT) in i40e_get_lump()
266 pile->list[i+j] = id | I40E_PILE_VALID_BIT; in i40e_get_lump()
286 static int i40e_put_lump(struct i40e_lump_tracking *pile, u16 index, u16 id) in i40e_put_lump() argument
292 if (!pile || index >= pile->num_entries) in i40e_put_lump()
296 i < pile->num_entries && pile->list[i] == valid_id; in i40e_put_lump()
298 pile->list[i] = 0; in i40e_put_lump()