Lines Matching defs:pkg_hdr
158 * @pkg_hdr: pointer to the package header to be searched
166 struct ice_pkg_hdr *pkg_hdr)
171 pkg_hdr->pkg_format_ver.major, pkg_hdr->pkg_format_ver.minor,
172 pkg_hdr->pkg_format_ver.update,
173 pkg_hdr->pkg_format_ver.draft);
176 for (i = 0; i < LE32_TO_CPU(pkg_hdr->seg_count); i++) {
180 ((u8 *)pkg_hdr + LE32_TO_CPU(pkg_hdr->seg_offset[i]));
191 * @pkg_hdr: pointer to the package header to be searched
195 ice_get_pkg_seg_by_idx(struct ice_pkg_hdr *pkg_hdr, u32 idx)
199 if (idx < LE32_TO_CPU(pkg_hdr->seg_count))
201 ((u8 *)pkg_hdr +
202 LE32_TO_CPU(pkg_hdr->seg_offset[idx]));
209 * @pkg_hdr: pointer to package header
212 static bool ice_is_signing_seg_at_idx(struct ice_pkg_hdr *pkg_hdr, u32 idx)
217 seg = ice_get_pkg_seg_by_idx(pkg_hdr, idx);
226 * @pkg_hdr: pointer to package header
234 ice_is_signing_seg_type_at_idx(struct ice_pkg_hdr *pkg_hdr, u32 idx,
239 if (ice_is_signing_seg_at_idx(pkg_hdr, idx)) {
242 seg = (struct ice_sign_seg *)ice_get_pkg_seg_by_idx(pkg_hdr,
525 * @pkg_hdr: pointer to package header
534 ice_download_pkg_config_seg(struct ice_hw *hw, struct ice_pkg_hdr *pkg_hdr,
542 seg = (struct ice_seg *)ice_get_pkg_seg_by_idx(pkg_hdr, idx);
561 * @pkg_hdr: pointer to package header
567 ice_dwnld_sign_and_cfg_segs(struct ice_hw *hw, struct ice_pkg_hdr *pkg_hdr,
578 seg = (struct ice_sign_seg *)ice_get_pkg_seg_by_idx(pkg_hdr, idx);
604 state = ice_download_pkg_config_seg(hw, pkg_hdr, conf_idx, start,
613 * @pkg_hdr: pointer to package header
618 ice_match_signing_seg(struct ice_pkg_hdr *pkg_hdr, u32 seg_id, u32 sign_type)
623 for (i = 0; i < LE32_TO_CPU(pkg_hdr->seg_count); i++) {
624 if (ice_is_signing_seg_type_at_idx(pkg_hdr, i, seg_id,
657 * @pkg_hdr: pointer to package header
660 ice_download_pkg_with_sig_seg(struct ice_hw *hw, struct ice_pkg_hdr *pkg_hdr)
679 for (i = 0; i < LE32_TO_CPU(pkg_hdr->seg_count); i++) {
680 if (!ice_is_signing_seg_type_at_idx(pkg_hdr, i, hw->pkg_seg_id,
684 state = ice_dwnld_sign_and_cfg_segs(hw, pkg_hdr, i);
777 * @pkg_hdr: pointer to package header
783 ice_download_pkg(struct ice_hw *hw, struct ice_pkg_hdr *pkg_hdr,
788 if (ice_match_signing_seg(pkg_hdr, hw->pkg_seg_id, hw->pkg_sign_type))
789 state = ice_download_pkg_with_sig_seg(hw, pkg_hdr);
801 * @pkg_hdr: pointer to the driver's package hdr
806 ice_init_pkg_info(struct ice_hw *hw, struct ice_pkg_hdr *pkg_hdr)
810 if (!pkg_hdr)
819 ice_find_seg_in_pkg(hw, hw->pkg_seg_id, pkg_hdr);
2408 struct ice_pkg_hdr *pkg_hdr;
2470 pkg_hdr = (struct ice_pkg_hdr *)buf;
2471 state = ice_verify_pkg(pkg_hdr, len);
2480 ice_find_seg_in_pkg(hw, SEGMENT_TYPE_ICE_RUN_TIME_CFG, pkg_hdr);