Home
last modified time | relevance | path

Searched refs:recps (Results 1 – 2 of 2) sorted by relevance

/drivers/net/ethernet/intel/ice/
Dice_switch.c1388 struct ice_sw_recipe *recps; in ice_init_def_sw_recp() local
1391 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 …]
Dice_common.c776 struct ice_sw_recipe *recps; in ice_cleanup_fltr_mgmt_struct() local
784 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()