Lines Matching full:profile
10 * @a: new profile info
11 * @b: old profile info
25 * i40e_ddp_does_profile_exist - checks if DDP profile loaded already
27 * @pinfo: DDP profile information structure
29 * checks if DDP profile loaded already.
30 * Returns >0 if the profile exists.
31 * Returns 0 if the profile is absent.
57 * @new: new profile info
58 * @old: old profile info
82 * @pinfo: DDP profile information structure
84 * checks if DDP profile overlaps with existing one.
85 * Returns >0 if the profile overlaps.
86 * Returns 0 if the profile is ok.
114 * @profile: pointer to the profile segment of the package
118 * Register a profile to the list of loaded profiles.
121 i40e_add_pinfo(struct i40e_hw *hw, struct i40e_profile_segment *profile, in i40e_add_pinfo() argument
139 pinfo->version = profile->version; in i40e_add_pinfo()
144 memcpy(pinfo->name, profile->name, I40E_DDP_NAME_SIZE); in i40e_add_pinfo()
152 * i40e_del_pinfo - delete DDP profile info from NIC
154 * @profile: DDP profile segment to be deleted
155 * @profile_info_sec: DDP profile section header
156 * @track_id: track ID of the profile for deletion
158 * Removes DDP profile from the NIC.
161 i40e_del_pinfo(struct i40e_hw *hw, struct i40e_profile_segment *profile, in i40e_del_pinfo() argument
179 pinfo->version = profile->version; in i40e_del_pinfo()
184 memcpy(pinfo->name, profile->name, I40E_DDP_NAME_SIZE); in i40e_del_pinfo()
195 * @size_huge: size of the whole DDP profile package in size_t
199 * reject non DDP profile file to be loaded by administrator mistake.
215 netdev_err(netdev, "Unsupported DDP profile version %u.%u.%u.%u", in i40e_ddp_is_pkg_hdr_valid()
220 netdev_err(netdev, "Invalid DDP profile - size is bigger than 4G"); in i40e_ddp_is_pkg_hdr_valid()
225 netdev_err(netdev, "Invalid DDP profile - size is too small."); in i40e_ddp_is_pkg_hdr_valid()
231 netdev_err(netdev, "Invalid DDP profile - too many segments"); in i40e_ddp_is_pkg_hdr_valid()
239 "Invalid DDP profile %u segment alignment", in i40e_ddp_is_pkg_hdr_valid()
245 "Invalid DDP profile %u segment offset", in i40e_ddp_is_pkg_hdr_valid()
259 * @is_add: true when loading profile, false when rolling back the previous one
261 * Checks correctness and loads DDP profile to the NIC. The function is
262 * also used for rolling back previously loaded profile.
302 netdev_err(netdev, "Failed to find profile segment in DDP recipe."); in i40e_ddp_load()
315 /* Check if profile data already exists*/ in i40e_ddp_load()
323 netdev_err(netdev, "DDP profile already loaded."); in i40e_ddp_load()
332 netdev_err(netdev, "DDP profile overlaps with existing one."); in i40e_ddp_load()
338 "DDP profile for deletion does not exist."); in i40e_ddp_load()
343 /* Load profile data */ in i40e_ddp_load()
349 "Profile is not supported by the device."); in i40e_ddp_load()
352 netdev_err(netdev, "Failed to write DDP profile."); in i40e_ddp_load()
358 netdev_err(netdev, "Failed to remove DDP profile."); in i40e_ddp_load()
363 /* Add/remove profile to/from profile list in FW */ in i40e_ddp_load()
368 netdev_err(netdev, "Failed to add DDP profile info."); in i40e_ddp_load()
375 netdev_err(netdev, "Failed to restore DDP profile info."); in i40e_ddp_load()
384 * i40e_ddp_restore - restore previously loaded profile and remove from list
387 * Restores previously loaded profile stored on the list in driver memory.
434 * stored profile. in i40e_ddp_flash()
461 netdev_info(netdev, "Failed to allocate memory for previous DDP profile data."); in i40e_ddp_flash()
462 netdev_info(netdev, "New profile loaded but roll-back will be impossible."); in i40e_ddp_flash()
476 netdev_warn(netdev, "There is no DDP profile to restore."); in i40e_ddp_flash()