ice_seg
struct ice_seg *seg;
seg = (struct ice_seg *)ice_get_pkg_seg_by_idx(pkg_hdr, idx);
static struct ice_buf_table *ice_find_buf_table(struct ice_seg *ice_seg)
(ice_seg->device_table + le32_to_cpu(ice_seg->device_table_count));
ice_download_pkg_without_sig_seg(struct ice_hw *hw, struct ice_seg *ice_seg)
ice_seg->hdr.seg_format_ver.major,
ice_seg->hdr.seg_format_ver.minor,
ice_seg->hdr.seg_format_ver.update,
ice_seg->hdr.seg_format_ver.draft);
le32_to_cpu(ice_seg->hdr.seg_type),
le32_to_cpu(ice_seg->hdr.seg_size), ice_seg->hdr.seg_id);
ice_buf_tbl = ice_find_buf_table(ice_seg);
struct ice_seg *ice_seg)
state = ice_download_pkg_without_sig_seg(hw, ice_seg);
static const struct ice_buf_hdr *ice_pkg_enum_buf(struct ice_seg *ice_seg,
if (ice_seg) {
state->buf_table = ice_find_buf_table(ice_seg);
static bool ice_pkg_advance_sect(struct ice_seg *ice_seg,
meta = ice_pkg_enum_section((struct ice_seg *)seg_hdr, &state,
if (!ice_seg && !state->buf)
if (!ice_seg && state->buf)
struct ice_seg **seg)
state->buf = ice_pkg_enum_buf(ice_seg, state);
*seg = (struct ice_seg *)ice_find_seg_in_pkg(hw, hw->pkg_seg_id,
static void ice_init_pkg_hints(struct ice_hw *hw, struct ice_seg *ice_seg)
if (!ice_seg)
label_name = ice_enum_labels(ice_seg, ICE_SID_LBL_RXPARSER_TMEM, &state,
ice_find_boost_entry(ice_seg, hw->tnl.tbl[i].boost_addr,
ice_find_boost_entry(ice_seg, hw->dvm_upd.tbl[i].boost_addr,
struct ice_seg *seg = hw->seg;
struct ice_seg *seg;
void *ice_pkg_enum_section(struct ice_seg *ice_seg, struct ice_pkg_enum *state,
if (ice_seg)
if (!ice_pkg_advance_sect(ice_seg, state))
void *ice_pkg_enum_entry(struct ice_seg *ice_seg,
if (ice_seg) {
if (!ice_pkg_enum_section(ice_seg, state, sect_type))
struct ice_seg *ice_seg;
ice_seg = hw->seg;
fv = ice_pkg_enum_entry(ice_seg, &state, ICE_SID_FLD_VEC_SW,
ice_seg = NULL;
static char *ice_enum_labels(struct ice_seg *ice_seg, u32 type,
label = ice_pkg_enum_entry(ice_seg, state, type, NULL,
static int ice_find_boost_entry(struct ice_seg *ice_seg, u16 addr,
if (!ice_seg)
tcam = ice_pkg_enum_entry(ice_seg, &state,
ice_seg = NULL;
struct ice_seg *ice_seg;
ice_seg = hw->seg;
fv = ice_pkg_enum_entry(ice_seg, &state, ICE_SID_FLD_VEC_SW,
ice_seg = NULL;
struct ice_seg *ice_seg;
ice_seg = hw->seg;
fv = ice_pkg_enum_entry(ice_seg, &state, ICE_SID_FLD_VEC_SW,
ice_seg = NULL;
struct ice_seg *ice_seg;
ice_seg = hw->seg;
fv = ice_pkg_enum_entry(ice_seg, &state, ICE_SID_FLD_VEC_SW,
ice_seg = NULL;
ice_pkg_enum_entry(struct ice_seg *ice_seg, struct ice_pkg_enum *state,
void *ice_pkg_enum_section(struct ice_seg *ice_seg, struct ice_pkg_enum *state,
struct ice_seg *seg = hw->seg;
struct ice_seg *seg = hw->seg;
struct ice_seg *seg;