Searched refs:pkg_hdr (Results 1 – 3 of 3) sorted by relevance
202 struct i40e_package_header *pkg_hdr, in i40e_ddp_is_pkg_hdr_valid() argument209 if (!pkg_hdr) in i40e_ddp_is_pkg_hdr_valid()212 if (pkg_hdr->version.major > 0) { in i40e_ddp_is_pkg_hdr_valid()213 struct i40e_ddp_version ver = pkg_hdr->version; in i40e_ddp_is_pkg_hdr_valid()229 pkg_hdr_size = sizeof(u32) * (pkg_hdr->segment_count + 2U); in i40e_ddp_is_pkg_hdr_valid()234 for (segment = 0; segment < pkg_hdr->segment_count; ++segment) { in i40e_ddp_is_pkg_hdr_valid()235 u32 offset = pkg_hdr->segment_offset[segment]; in i40e_ddp_is_pkg_hdr_valid()272 struct i40e_package_header *pkg_hdr; in i40e_ddp_load() local280 pkg_hdr = (struct i40e_package_header *)data; in i40e_ddp_load()281 if (!i40e_ddp_is_pkg_hdr_valid(netdev, pkg_hdr, size)) in i40e_ddp_load()[all …]
5516 struct i40e_package_header *pkg_hdr) in i40e_find_segment_in_package() argument5522 for (i = 0; i < pkg_hdr->segment_count; i++) { in i40e_find_segment_in_package()5524 (struct i40e_generic_seg_header *)((u8 *)pkg_hdr + in i40e_find_segment_in_package()5525 pkg_hdr->segment_offset[i]); in i40e_find_segment_in_package()
1476 struct ice_pkg_hdr *pkg_hdr) in ice_find_seg_in_pkg() argument1481 pkg_hdr->pkg_format_ver.major, pkg_hdr->pkg_format_ver.minor, in ice_find_seg_in_pkg()1482 pkg_hdr->pkg_format_ver.update, in ice_find_seg_in_pkg()1483 pkg_hdr->pkg_format_ver.draft); in ice_find_seg_in_pkg()1486 for (i = 0; i < le32_to_cpu(pkg_hdr->seg_count); i++) { in ice_find_seg_in_pkg()1490 *)((u8 *)pkg_hdr + in ice_find_seg_in_pkg()1491 le32_to_cpu(pkg_hdr->seg_offset[i])); in ice_find_seg_in_pkg()1508 struct ice_pkg_hdr *pkg_hdr) in ice_init_pkg_info() argument1512 if (!pkg_hdr) in ice_init_pkg_info()1515 seg_hdr = ice_find_seg_in_pkg(hw, SEGMENT_TYPE_ICE, pkg_hdr); in ice_init_pkg_info()