Lines Matching full:profile

28  * @a: new profile info
29 * @b: old profile info
43 * i40e_ddp_does_profile_exist - checks if DDP profile loaded already
45 * @pinfo: DDP profile information structure
47 * checks if DDP profile loaded already.
48 * Returns >0 if the profile exists.
49 * Returns 0 if the profile is absent.
75 * @new: new profile info
76 * @old: old profile info
100 * @pinfo: DDP profile information structure
102 * checks if DDP profile overlaps with existing one.
103 * Returns >0 if the profile overlaps.
104 * Returns 0 if the profile is ok.
132 * @profile: pointer to the profile segment of the package
136 * Register a profile to the list of loaded profiles.
139 i40e_add_pinfo(struct i40e_hw *hw, struct i40e_profile_segment *profile, in i40e_add_pinfo() argument
157 pinfo->version = profile->version; in i40e_add_pinfo()
162 memcpy(pinfo->name, profile->name, I40E_DDP_NAME_SIZE); in i40e_add_pinfo()
170 * i40e_del_pinfo - delete DDP profile info from NIC
172 * @profile: DDP profile segment to be deleted
173 * @profile_info_sec: DDP profile section header
174 * @track_id: track ID of the profile for deletion
176 * Removes DDP profile from the NIC.
179 i40e_del_pinfo(struct i40e_hw *hw, struct i40e_profile_segment *profile, in i40e_del_pinfo() argument
197 pinfo->version = profile->version; in i40e_del_pinfo()
202 memcpy(pinfo->name, profile->name, I40E_DDP_NAME_SIZE); in i40e_del_pinfo()
213 * @size_huge: size of the whole DDP profile package in size_t
217 * reject non DDP profile file to be loaded by administrator mistake.
233 netdev_err(netdev, "Unsupported DDP profile version %u.%u.%u.%u", in i40e_ddp_is_pkg_hdr_valid()
238 netdev_err(netdev, "Invalid DDP profile - size is bigger than 4G"); in i40e_ddp_is_pkg_hdr_valid()
243 netdev_err(netdev, "Invalid DDP profile - size is too small."); in i40e_ddp_is_pkg_hdr_valid()
249 netdev_err(netdev, "Invalid DDP profile - too many segments"); in i40e_ddp_is_pkg_hdr_valid()
257 "Invalid DDP profile %u segment alignment", in i40e_ddp_is_pkg_hdr_valid()
263 "Invalid DDP profile %u segment offset", in i40e_ddp_is_pkg_hdr_valid()
277 * @is_add: true when loading profile, false when rolling back the previous one
279 * Checks correctness and loads DDP profile to the NIC. The function is
280 * also used for rolling back previously loaded profile.
320 netdev_err(netdev, "Failed to find profile segment in DDP recipe."); in i40e_ddp_load()
333 /* Check if profile data already exists*/ in i40e_ddp_load()
341 netdev_err(netdev, "DDP profile already loaded."); in i40e_ddp_load()
350 netdev_err(netdev, "DDP profile overlaps with existing one."); in i40e_ddp_load()
356 "DDP profile for deletion does not exist."); in i40e_ddp_load()
361 /* Load profile data */ in i40e_ddp_load()
367 "Profile is not supported by the device."); in i40e_ddp_load()
370 netdev_err(netdev, "Failed to write DDP profile."); in i40e_ddp_load()
376 netdev_err(netdev, "Failed to remove DDP profile."); in i40e_ddp_load()
381 /* Add/remove profile to/from profile list in FW */ in i40e_ddp_load()
386 netdev_err(netdev, "Failed to add DDP profile info."); in i40e_ddp_load()
393 netdev_err(netdev, "Failed to restore DDP profile info."); in i40e_ddp_load()
402 * i40e_ddp_restore - restore previously loaded profile and remove from list
405 * Restores previously loaded profile stored on the list in driver memory.
453 * stored profile. in i40e_ddp_flash()
479 netdev_info(netdev, "Failed to allocate memory for previous DDP profile data."); in i40e_ddp_flash()
480 netdev_info(netdev, "New profile loaded but roll-back will be impossible."); in i40e_ddp_flash()
494 netdev_warn(netdev, "There is no DDP profile to restore."); in i40e_ddp_flash()