Searched refs:recps (Results 1 – 2 of 2) sorted by relevance
1388 struct ice_sw_recipe *recps; in ice_init_def_sw_recp() local1391 recps = devm_kcalloc(ice_hw_to_dev(hw), ICE_MAX_NUM_RECIPES, in ice_init_def_sw_recp()1392 sizeof(*recps), GFP_KERNEL); in ice_init_def_sw_recp()1393 if (!recps) in ice_init_def_sw_recp()1397 recps[i].root_rid = i; in ice_init_def_sw_recp()1398 INIT_LIST_HEAD(&recps[i].filt_rules); in ice_init_def_sw_recp()1399 INIT_LIST_HEAD(&recps[i].filt_replay_rules); in ice_init_def_sw_recp()1400 INIT_LIST_HEAD(&recps[i].rg_list); in ice_init_def_sw_recp()1401 mutex_init(&recps[i].filt_rule_lock); in ice_init_def_sw_recp()1404 hw->switch_info->recp_list = recps; in ice_init_def_sw_recp()[all …]
776 struct ice_sw_recipe *recps; in ice_cleanup_fltr_mgmt_struct() local784 recps = sw->recp_list; in ice_cleanup_fltr_mgmt_struct()788 recps[i].root_rid = i; in ice_cleanup_fltr_mgmt_struct()790 &recps[i].rg_list, l_entry) { in ice_cleanup_fltr_mgmt_struct()795 if (recps[i].adv_rule) { in ice_cleanup_fltr_mgmt_struct()799 mutex_destroy(&recps[i].filt_rule_lock); in ice_cleanup_fltr_mgmt_struct()801 &recps[i].filt_rules, in ice_cleanup_fltr_mgmt_struct()810 mutex_destroy(&recps[i].filt_rule_lock); in ice_cleanup_fltr_mgmt_struct()812 &recps[i].filt_rules, in ice_cleanup_fltr_mgmt_struct()818 devm_kfree(ice_hw_to_dev(hw), recps[i].root_buf); in ice_cleanup_fltr_mgmt_struct()