Lines Matching refs:profile

652  * @opcode: opcode for add, query, or remove profile(s)
656 * @num_processed: number of processed add or remove profile(s) to return
659 * RL profile function to add, query, or remove profile(s)
682 * ice_aq_add_rl_profile - adds rate limiting profile(s)
684 * @num_profiles: the number of profile(s) to be add
690 * Add RL profile (0x0410)
702 * ice_aq_remove_rl_profile - removes RL profile(s)
704 * @num_profiles: the number of profile(s) to remove
710 * Remove RL profile (0x0415)
723 * ice_sched_del_rl_profile - remove RL profile
725 * @rl_info: rate limit profile information
727 * If the profile ID is not referenced anymore, it removes profile ID with
743 /* Safe to remove profile ID */
744 buf = &rl_info->profile;
760 * This function removes all RL profile from HW as well as from SW DB.
778 ice_debug(hw, ICE_DBG_SCHED, "Remove rl profile failed\n");
2843 * ice_sched_rm_unused_rl_prof - remove unused RL profile
2860 ice_debug(pi->hw, ICE_DBG_SCHED, "Removed rl profile\n");
3074 * ice_sched_calc_wakeup - calculate RL profile wakeup parameter
3078 * This function calculates the wakeup parameter of RL profile.
3116 * ice_sched_bw_to_rl_profile - convert BW to profile parameters
3119 * @profile: profile parameters to return
3121 * This function converts the BW to profile structure format.
3125 struct ice_aqc_rl_profile_elem *profile)
3170 profile->rl_multiply = cpu_to_le16(mv);
3171 profile->wake_up_calc = cpu_to_le16(wm);
3172 profile->rl_encode = cpu_to_le16(encode);
3182 * ice_sched_add_rl_profile - add RL profile
3186 * @layer_num: specifies in which layer to create profile
3189 * parameter. If it exists, it returns the associated profile otherwise
3190 * it creates a new rate limit profile for requested BW, and adds it to
3191 * the HW DB and local list. It returns the new profile or null on error.
3224 if ((rl_prof_elem->profile.flags & ICE_AQC_RL_PROFILE_TYPE_M) ==
3226 /* Return existing profile ID info */
3229 /* Create new profile ID */
3236 status = ice_sched_bw_to_rl_profile(hw, bw, &rl_prof_elem->profile);
3242 rl_prof_elem->profile.level = layer_num + 1;
3243 rl_prof_elem->profile.flags = profile_type;
3244 rl_prof_elem->profile.max_burst_size = cpu_to_le16(hw->max_burst_size);
3247 buf = &rl_prof_elem->profile;
3268 * @rl_prof_id: rate limit profile ID
3298 /* remove shared profile */
3302 /* enable back EIR to default profile */
3331 * ice_sched_get_node_rl_prof_id - get node's rate limit profile ID
3335 * If existing profile matches, it returns the corresponding rate
3336 * limit profile ID, otherwise it returns an invalid ID as error.
3367 * ice_sched_get_rl_prof_layer - selects rate limit profile creation layer
3372 * This function returns requested profile creation layer.
3392 /* if current layer doesn't support SRL profile creation
3433 * ice_sched_rm_rl_profile - remove RL profile ID
3436 * @profile_type: profile type like EIR, CIR, or SRL
3437 * @profile_id: profile ID to remove
3439 * This function removes rate limit profile from layer 'layer_num' of type
3440 * 'profile_type' and profile ID as 'profile_id'. The caller needs to hold
3452 /* Check the existing list for RL profile */
3455 if ((rl_prof_elem->profile.flags & ICE_AQC_RL_PROFILE_TYPE_M) ==
3457 le16_to_cpu(rl_prof_elem->profile.profile_id) ==
3462 /* Remove old profile ID from database */
3465 ice_debug(pi->hw, ICE_DBG_SCHED, "Remove rl profile failed\n");
3480 * This function configures node element's BW rate limit profile ID of
3520 /* Remove stale RL profile ID */
3563 /* Remove Shared profile. Set default shared BW call
3564 * removes shared profile for a node.
3581 * This function adds new profile corresponding to requested BW, configures
3582 * node's RL profile ID of type CIR, EIR, or SRL, and removes old profile
3598 rl_prof_id = le16_to_cpu(rl_prof_info->profile.profile_id);
3608 /* Increment the profile ID reference count */
3617 rl_prof_info->profile.flags &
3679 * It updates node's BW limit parameters like BW RL profile ID of type CIR,
3695 /* Remove unused RL profile IDs from HW and SW DB */
3727 * This function configures node element's BW rate limit profile ID of
3753 * SRL profile can be applied to a node above or below the