Lines Matching refs:pkg_hdr

166 		    struct ice_pkg_hdr *pkg_hdr)  in ice_find_seg_in_pkg()  argument
171 pkg_hdr->pkg_format_ver.major, pkg_hdr->pkg_format_ver.minor, in ice_find_seg_in_pkg()
172 pkg_hdr->pkg_format_ver.update, in ice_find_seg_in_pkg()
173 pkg_hdr->pkg_format_ver.draft); in ice_find_seg_in_pkg()
176 for (i = 0; i < LE32_TO_CPU(pkg_hdr->seg_count); i++) { in ice_find_seg_in_pkg()
180 ((u8 *)pkg_hdr + LE32_TO_CPU(pkg_hdr->seg_offset[i])); in ice_find_seg_in_pkg()
195 ice_get_pkg_seg_by_idx(struct ice_pkg_hdr *pkg_hdr, u32 idx) in ice_get_pkg_seg_by_idx() argument
199 if (idx < LE32_TO_CPU(pkg_hdr->seg_count)) in ice_get_pkg_seg_by_idx()
201 ((u8 *)pkg_hdr + in ice_get_pkg_seg_by_idx()
202 LE32_TO_CPU(pkg_hdr->seg_offset[idx])); in ice_get_pkg_seg_by_idx()
212 static bool ice_is_signing_seg_at_idx(struct ice_pkg_hdr *pkg_hdr, u32 idx) in ice_is_signing_seg_at_idx() argument
217 seg = ice_get_pkg_seg_by_idx(pkg_hdr, idx); in ice_is_signing_seg_at_idx()
234 ice_is_signing_seg_type_at_idx(struct ice_pkg_hdr *pkg_hdr, u32 idx, in ice_is_signing_seg_type_at_idx() argument
239 if (ice_is_signing_seg_at_idx(pkg_hdr, idx)) { in ice_is_signing_seg_type_at_idx()
242 seg = (struct ice_sign_seg *)ice_get_pkg_seg_by_idx(pkg_hdr, in ice_is_signing_seg_type_at_idx()
534 ice_download_pkg_config_seg(struct ice_hw *hw, struct ice_pkg_hdr *pkg_hdr, in ice_download_pkg_config_seg() argument
542 seg = (struct ice_seg *)ice_get_pkg_seg_by_idx(pkg_hdr, idx); in ice_download_pkg_config_seg()
567 ice_dwnld_sign_and_cfg_segs(struct ice_hw *hw, struct ice_pkg_hdr *pkg_hdr, in ice_dwnld_sign_and_cfg_segs() argument
578 seg = (struct ice_sign_seg *)ice_get_pkg_seg_by_idx(pkg_hdr, idx); in ice_dwnld_sign_and_cfg_segs()
604 state = ice_download_pkg_config_seg(hw, pkg_hdr, conf_idx, start, in ice_dwnld_sign_and_cfg_segs()
618 ice_match_signing_seg(struct ice_pkg_hdr *pkg_hdr, u32 seg_id, u32 sign_type) in ice_match_signing_seg() argument
623 for (i = 0; i < LE32_TO_CPU(pkg_hdr->seg_count); i++) { in ice_match_signing_seg()
624 if (ice_is_signing_seg_type_at_idx(pkg_hdr, i, seg_id, in ice_match_signing_seg()
660 ice_download_pkg_with_sig_seg(struct ice_hw *hw, struct ice_pkg_hdr *pkg_hdr) in ice_download_pkg_with_sig_seg() argument
679 for (i = 0; i < LE32_TO_CPU(pkg_hdr->seg_count); i++) { in ice_download_pkg_with_sig_seg()
680 if (!ice_is_signing_seg_type_at_idx(pkg_hdr, i, hw->pkg_seg_id, in ice_download_pkg_with_sig_seg()
684 state = ice_dwnld_sign_and_cfg_segs(hw, pkg_hdr, i); in ice_download_pkg_with_sig_seg()
783 ice_download_pkg(struct ice_hw *hw, struct ice_pkg_hdr *pkg_hdr, in ice_download_pkg() argument
788 if (ice_match_signing_seg(pkg_hdr, hw->pkg_seg_id, hw->pkg_sign_type)) in ice_download_pkg()
789 state = ice_download_pkg_with_sig_seg(hw, pkg_hdr); in ice_download_pkg()
806 ice_init_pkg_info(struct ice_hw *hw, struct ice_pkg_hdr *pkg_hdr) in ice_init_pkg_info() argument
810 if (!pkg_hdr) in ice_init_pkg_info()
819 ice_find_seg_in_pkg(hw, hw->pkg_seg_id, pkg_hdr); in ice_init_pkg_info()
2408 struct ice_pkg_hdr *pkg_hdr; in ice_cfg_tx_topo() local
2470 pkg_hdr = (struct ice_pkg_hdr *)buf; in ice_cfg_tx_topo()
2471 state = ice_verify_pkg(pkg_hdr, len); in ice_cfg_tx_topo()
2480 ice_find_seg_in_pkg(hw, SEGMENT_TYPE_ICE_RUN_TIME_CFG, pkg_hdr); in ice_cfg_tx_topo()