Lines Matching full:seg
177 struct ice_generic_seg_hdr *seg;
179 seg = (struct ice_generic_seg_hdr *)
182 if (LE32_TO_CPU(seg->seg_type) == seg_type)
183 return seg;
197 struct ice_generic_seg_hdr *seg = NULL;
200 seg = (struct ice_generic_seg_hdr *)
204 return seg;
214 struct ice_generic_seg_hdr *seg;
217 seg = ice_get_pkg_seg_by_idx(pkg_hdr, idx);
218 if (seg)
219 retval = LE32_TO_CPU(seg->seg_type) == SEGMENT_TYPE_SIGNING;
240 struct ice_sign_seg *seg;
242 seg = (struct ice_sign_seg *)ice_get_pkg_seg_by_idx(pkg_hdr,
244 if (seg && LE32_TO_CPU(seg->seg_id) == seg_id &&
245 LE32_TO_CPU(seg->sign_type) == sign_type)
508 * @seg: pointer to signature segment
511 ice_download_pkg_sig_seg(struct ice_hw *hw, struct ice_sign_seg *seg)
515 state = ice_dwnld_cfg_bufs_no_lock(hw, seg->buf_tbl.buf_array, 0,
516 LE32_TO_CPU(seg->buf_tbl.buf_count),
539 struct ice_seg *seg;
542 seg = (struct ice_seg *)ice_get_pkg_seg_by_idx(pkg_hdr, idx);
543 if (!seg)
546 bufs = ice_find_buf_table(seg);
571 struct ice_sign_seg *seg;
578 seg = (struct ice_sign_seg *)ice_get_pkg_seg_by_idx(pkg_hdr, idx);
579 if (!seg) {
584 conf_idx = LE32_TO_CPU(seg->signed_seg_idx);
585 start = LE32_TO_CPU(seg->signed_buf_start);
586 count = LE32_TO_CPU(seg->signed_buf_count);
587 flags = LE32_TO_CPU(seg->flags);
592 state = ice_download_pkg_sig_seg(hw, seg);
759 ice_debug(hw, ICE_DBG_PKG, "Seg: type 0x%X, size %d, name %s\n",
765 ice_debug(hw, ICE_DBG_PKG, "Seg buf count: %d\n",
847 ice_debug(hw, ICE_DBG_PKG, "Ice Seg: %d.%d.%d.%d, %s\n",
1056 struct ice_generic_seg_hdr *seg;
1059 if (len < off + sizeof(*seg))
1062 seg = (struct ice_generic_seg_hdr *)((u8 *)pkg + off);
1065 if (len < off + LE32_TO_CPU(seg->seg_size))
1086 hw->seg = NULL;
1115 * @seg: pointer to the package segment hdr
1121 struct ice_seg **seg)
1136 *seg = (struct ice_seg *)ice_find_seg_in_pkg(hw, hw->pkg_seg_id,
1138 if (!*seg) {
1158 if ((*seg)->hdr.seg_format_ver.major !=
1160 (*seg)->hdr.seg_format_ver.minor >
1223 if (!hw->seg)
1226 ice_seg = hw->seg;
1326 struct ice_seg *seg;
1347 state = ice_chk_pkg_compat(hw, pkg, &seg);
1352 ice_init_pkg_hints(hw, seg);
1353 state = ice_download_pkg(hw, pkg, seg);
1370 hw->seg = seg;
1542 ice_seg = hw->seg;
1590 if (!lkups->n_val_words || !hw->seg)
1593 ice_seg = hw->seg;
1660 if (!hw->seg)
1663 ice_seg = hw->seg;
2406 struct ice_run_time_cfg_seg *seg;
2479 seg = (struct ice_run_time_cfg_seg *)
2481 if (!seg) {
2486 if (LE32_TO_CPU(seg->buf_table.buf_count) < ICE_MIN_S_COUNT) {
2488 seg->buf_table.buf_count);
2492 section = ice_pkg_val_buf(seg->buf_table.buf_array);