Lines Matching refs:lkup_exts
2175 struct ice_prot_lkup_ext *lkup_exts; in ice_get_recp_frm_fw() local
2210 lkup_exts = &recps[rid].lkup_exts; in ice_get_recp_frm_fw()
2260 lkup_exts->fv_words[fv_word_idx].prot_id = prot; in ice_get_recp_frm_fw()
2261 lkup_exts->fv_words[fv_word_idx].off = off; in ice_get_recp_frm_fw()
2262 lkup_exts->field_mask[fv_word_idx] = in ice_get_recp_frm_fw()
2299 lkup_exts->n_val_words = fv_word_idx; in ice_get_recp_frm_fw()
4623 ice_find_recp(struct ice_hw *hw, struct ice_prot_lkup_ext *lkup_exts, in ice_find_recp() argument
4650 if (lkup_exts->n_val_words == recp[i].lkup_exts.n_val_words) { in ice_find_recp()
4651 struct ice_fv_word *ar = recp[i].lkup_exts.fv_words; in ice_find_recp()
4652 struct ice_fv_word *be = lkup_exts->fv_words; in ice_find_recp()
4653 u16 *cr = recp[i].lkup_exts.field_mask; in ice_find_recp()
4654 u16 *de = lkup_exts->field_mask; in ice_find_recp()
4661 for (pe = 0; pe < lkup_exts->n_val_words; pe++) { in ice_find_recp()
4662 for (qr = 0; qr < recp[i].lkup_exts.n_val_words; in ice_find_recp()
4678 if (qr >= recp[i].lkup_exts.n_val_words) { in ice_find_recp()
4742 struct ice_prot_lkup_ext *lkup_exts) in ice_fill_valid_words() argument
4749 word = lkup_exts->n_val_words; in ice_fill_valid_words()
4757 lkup_exts->fv_words[word].off = in ice_fill_valid_words()
4759 lkup_exts->fv_words[word].prot_id = in ice_fill_valid_words()
4761 lkup_exts->field_mask[word] = in ice_fill_valid_words()
4766 ret_val = word - lkup_exts->n_val_words; in ice_fill_valid_words()
4767 lkup_exts->n_val_words = word; in ice_fill_valid_words()
4785 struct ice_prot_lkup_ext *lkup_exts, in ice_create_first_fit_recp_def() argument
4797 for (j = 0; j < lkup_exts->n_val_words; j++) in ice_create_first_fit_recp_def()
4798 if (!test_bit(j, lkup_exts->done)) { in ice_create_first_fit_recp_def()
4814 lkup_exts->fv_words[j].prot_id; in ice_create_first_fit_recp_def()
4816 lkup_exts->fv_words[j].off; in ice_create_first_fit_recp_def()
4817 grp->mask[grp->n_val_pairs] = lkup_exts->field_mask[j]; in ice_create_first_fit_recp_def()
5257 struct ice_prot_lkup_ext *lkup_exts) in ice_create_recipe_group() argument
5267 status = ice_create_first_fit_recp_def(hw, lkup_exts, in ice_create_recipe_group()
5271 rm->n_ext_words = lkup_exts->n_val_words; in ice_create_recipe_group()
5272 memcpy(&rm->ext_words, lkup_exts->fv_words, in ice_create_recipe_group()
5274 memcpy(rm->word_masks, lkup_exts->field_mask, in ice_create_recipe_group()
5338 struct ice_prot_lkup_ext *lkup_exts; in ice_add_adv_recipe() local
5350 lkup_exts = kzalloc(sizeof(*lkup_exts), GFP_KERNEL); in ice_add_adv_recipe()
5351 if (!lkup_exts) in ice_add_adv_recipe()
5365 count = ice_fill_valid_words(&lkups[i], lkup_exts); in ice_add_adv_recipe()
5390 status = ice_get_sw_fv_list(hw, lkup_exts, fv_bitmap, &rm->fv_list); in ice_add_adv_recipe()
5397 status = ice_create_recipe_group(hw, rm, lkup_exts); in ice_add_adv_recipe()
5422 *rid = ice_find_recp(hw, lkup_exts, rinfo); in ice_add_adv_recipe()
5471 memcpy(&hw->switch_info->recp_list[*rid].lkup_exts, lkup_exts, in ice_add_adv_recipe()
5472 sizeof(*lkup_exts)); in ice_add_adv_recipe()
5488 kfree(lkup_exts); in ice_add_adv_recipe()
6456 struct ice_prot_lkup_ext lkup_exts; in ice_rem_adv_rule() local
6462 memset(&lkup_exts, 0, sizeof(lkup_exts)); in ice_rem_adv_rule()
6469 count = ice_fill_valid_words(&lkups[i], &lkup_exts); in ice_rem_adv_rule()
6474 rid = ice_find_recp(hw, &lkup_exts, rinfo); in ice_rem_adv_rule()