Lines Matching full:seg
60 const struct ice_generic_seg_hdr *seg; in ice_verify_pkg() local
63 if (len < off + sizeof(*seg)) in ice_verify_pkg()
66 seg = (void *)pkg + off; in ice_verify_pkg()
69 if (len < off + le32_to_cpu(seg->seg_size)) in ice_verify_pkg()
90 hw->seg = NULL; in ice_free_seg()
381 if (!hw->seg) in ice_get_prof_index_max()
384 ice_seg = hw->seg; in ice_get_prof_index_max()
785 ice_seg = hw->seg; in ice_get_sw_fv_bitmap()
830 if (!lkups->n_val_words || !hw->seg) in ice_get_sw_fv_list()
833 ice_seg = hw->seg; in ice_get_sw_fv_list()
900 if (!hw->seg) in ice_init_prof_result_bm()
903 ice_seg = hw->seg; in ice_init_prof_result_bm()
1361 struct ice_generic_seg_hdr *seg; in ice_is_signing_seg_at_idx() local
1363 seg = ice_get_pkg_seg_by_idx(pkg_hdr, idx); in ice_is_signing_seg_at_idx()
1364 if (!seg) in ice_is_signing_seg_at_idx()
1367 return le32_to_cpu(seg->seg_type) == SEGMENT_TYPE_SIGNING; in ice_is_signing_seg_at_idx()
1383 struct ice_sign_seg *seg; in ice_is_signing_seg_type_at_idx() local
1388 seg = (struct ice_sign_seg *)ice_get_pkg_seg_by_idx(pkg_hdr, idx); in ice_is_signing_seg_type_at_idx()
1390 if (seg && le32_to_cpu(seg->seg_id) == seg_id && in ice_is_signing_seg_type_at_idx()
1391 le32_to_cpu(seg->sign_type) == sign_type) in ice_is_signing_seg_type_at_idx()
1400 * @seg: pointer to signature segment
1403 ice_download_pkg_sig_seg(struct ice_ddp_send_ctx *ctx, struct ice_sign_seg *seg) in ice_download_pkg_sig_seg() argument
1405 return ice_dwnld_cfg_bufs_no_lock(ctx, seg->buf_tbl.buf_array, 0, in ice_download_pkg_sig_seg()
1406 le32_to_cpu(seg->buf_tbl.buf_count)); in ice_download_pkg_sig_seg()
1425 struct ice_seg *seg; in ice_download_pkg_config_seg() local
1428 seg = (struct ice_seg *)ice_get_pkg_seg_by_idx(pkg_hdr, idx); in ice_download_pkg_config_seg()
1429 if (!seg) in ice_download_pkg_config_seg()
1432 bufs = ice_find_buf_table(seg); in ice_download_pkg_config_seg()
1461 struct ice_sign_seg *seg; in ice_dwnld_sign_and_cfg_segs() local
1463 seg = (struct ice_sign_seg *)ice_get_pkg_seg_by_idx(pkg_hdr, idx); in ice_dwnld_sign_and_cfg_segs()
1464 if (!seg) { in ice_dwnld_sign_and_cfg_segs()
1470 count = le32_to_cpu(seg->signed_buf_count); in ice_dwnld_sign_and_cfg_segs()
1471 state = ice_download_pkg_sig_seg(ctx, seg); in ice_dwnld_sign_and_cfg_segs()
1475 conf_idx = le32_to_cpu(seg->signed_seg_idx); in ice_dwnld_sign_and_cfg_segs()
1476 start = le32_to_cpu(seg->signed_buf_start); in ice_dwnld_sign_and_cfg_segs()
1484 flags = le32_to_cpu(seg->flags); in ice_dwnld_sign_and_cfg_segs()
1640 ice_debug(hw, ICE_DBG_PKG, "Seg: type 0x%X, size %d, name %s\n", in ice_download_pkg_without_sig_seg()
1646 ice_debug(hw, ICE_DBG_PKG, "Seg buf count: %d\n", in ice_download_pkg_without_sig_seg()
1840 const struct ice_generic_seg_hdr *seg; in ice_find_seg_in_pkg() local
1842 seg = (void *)pkg_hdr + le32_to_cpu(pkg_hdr->seg_offset[i]); in ice_find_seg_in_pkg()
1844 if (le32_to_cpu(seg->seg_type) == seg_type) in ice_find_seg_in_pkg()
1845 return seg; in ice_find_seg_in_pkg()
1970 ice_debug(hw, ICE_DBG_PKG, "Ice Seg: %d.%d.%d.%d, %s\n", in ice_init_pkg_info()
2036 * @seg: pointer to the package segment hdr
2042 struct ice_seg **seg) in ice_chk_pkg_compat() argument
2058 *seg = (struct ice_seg *)ice_find_seg_in_pkg(hw, hw->pkg_seg_id, in ice_chk_pkg_compat()
2060 if (!*seg) { in ice_chk_pkg_compat()
2073 if ((*seg)->hdr.seg_format_ver.major != in ice_chk_pkg_compat()
2075 (*seg)->hdr.seg_format_ver.minor > in ice_chk_pkg_compat()
2154 struct ice_seg *seg = hw->seg; in ice_fill_hw_ptype() local
2158 if (!seg) in ice_fill_hw_ptype()
2164 tcam = ice_pkg_enum_entry(seg, &state, in ice_fill_hw_ptype()
2172 seg = NULL; in ice_fill_hw_ptype()
2206 struct ice_seg *seg; in ice_init_pkg() local
2232 state = ice_chk_pkg_compat(hw, pkg, &seg); in ice_init_pkg()
2237 ice_init_pkg_hints(hw, seg); in ice_init_pkg()
2238 state = ice_download_pkg(hw, pkg, seg); in ice_init_pkg()
2255 hw->seg = seg; in ice_init_pkg()
2382 const struct ice_run_time_cfg_seg *seg; in ice_cfg_tx_topo() local
2451 seg = (const struct ice_run_time_cfg_seg *) in ice_cfg_tx_topo()
2453 if (!seg) { in ice_cfg_tx_topo()
2458 if (le32_to_cpu(seg->buf_table.buf_count) < ICE_MIN_S_COUNT) { in ice_cfg_tx_topo()
2460 seg->buf_table.buf_count); in ice_cfg_tx_topo()
2464 section = ice_pkg_val_buf(seg->buf_table.buf_array); in ice_cfg_tx_topo()