Lines Matching defs:ice_seg
539 struct ice_seg *seg;
542 seg = (struct ice_seg *)ice_get_pkg_seg_by_idx(pkg_hdr, idx);
743 * @ice_seg: pointer to the segment of the package to be downloaded
748 ice_download_pkg_without_sig_seg(struct ice_hw *hw, struct ice_seg *ice_seg)
754 ice_seg->hdr.seg_format_ver.major,
755 ice_seg->hdr.seg_format_ver.minor,
756 ice_seg->hdr.seg_format_ver.update,
757 ice_seg->hdr.seg_format_ver.draft);
760 LE32_TO_CPU(ice_seg->hdr.seg_type),
761 LE32_TO_CPU(ice_seg->hdr.seg_size), ice_seg->hdr.seg_id);
763 ice_buf_tbl = ice_find_buf_table(ice_seg);
778 * @ice_seg: pointer to the segment of the package to be downloaded
784 struct ice_seg *ice_seg)
791 state = ice_download_pkg_without_sig_seg(hw, ice_seg);
828 ice_pkg_enum_section((struct ice_seg *)seg_hdr, &state,
955 * @ice_seg: pointer to the ice segment (NULL on subsequent calls)
961 * ice_enum_labels(ice_seg, type, ...) to start the enumeration, then call
966 ice_enum_labels(struct ice_seg *ice_seg, u32 type, struct ice_pkg_enum *state,
975 label = (struct ice_label *)ice_pkg_enum_entry(ice_seg, state, type,
987 * @ice_seg: pointer to the ice segment (non-NULL)
993 * The ice_seg parameter must not be NULL since the first call to
994 * ice_enum_labels requires a pointer to an actual ice_seg structure.
997 ice_find_label_value(struct ice_seg *ice_seg, char const *name, u32 type,
1006 if (!ice_seg)
1010 label_name = ice_enum_labels(ice_seg, type, &state, &val);
1016 ice_seg = NULL;
1121 struct ice_seg **seg)
1136 *seg = (struct ice_seg *)ice_find_seg_in_pkg(hw, hw->pkg_seg_id,
1216 struct ice_seg *ice_seg;
1226 ice_seg = hw->seg;
1230 ice_pkg_enum_entry(ice_seg, &state, ICE_SID_FLD_VEC_SW,
1234 ice_seg = NULL;
1326 struct ice_seg *seg;
1537 struct ice_seg *ice_seg;
1542 ice_seg = hw->seg;
1548 ice_pkg_enum_entry(ice_seg, &state, ICE_SID_FLD_VEC_SW,
1550 ice_seg = NULL;
1584 struct ice_seg *ice_seg;
1593 ice_seg = hw->seg;
1598 ice_pkg_enum_entry(ice_seg, &state, ICE_SID_FLD_VEC_SW,
1602 ice_seg = NULL;
1655 struct ice_seg *ice_seg;
1663 ice_seg = hw->seg;
1669 ice_pkg_enum_entry(ice_seg, &state, ICE_SID_FLD_VEC_SW,
1671 ice_seg = NULL;
1930 * @ice_seg: pointer to the ice segment
1934 struct ice_buf_table *ice_find_buf_table(struct ice_seg *ice_seg)
1939 (ice_seg->device_table +
1940 LE32_TO_CPU(ice_seg->device_table_count));
1973 * @ice_seg: pointer to the ice segment (or NULL on subsequent calls)
1977 * call is made with the ice_seg parameter non-NULL; on subsequent calls,
1978 * ice_seg is set to NULL which continues the enumeration. When the function
1984 ice_pkg_enum_buf(struct ice_seg *ice_seg, struct ice_pkg_enum *state)
1986 if (ice_seg) {
1987 state->buf_table = ice_find_buf_table(ice_seg);
2004 * @ice_seg: pointer to the ice segment (or NULL on subsequent calls)
2011 ice_pkg_advance_sect(struct ice_seg *ice_seg, struct ice_pkg_enum *state)
2013 if (!ice_seg && !state->buf)
2016 if (!ice_seg && state->buf)
2020 state->buf = ice_pkg_enum_buf(ice_seg, state);
2031 * @ice_seg: pointer to the ice segment (or NULL on subsequent calls)
2036 * ice segment. The first call is made with the ice_seg parameter non-NULL;
2037 * on subsequent calls, ice_seg is set to NULL which continues the enumeration.
2042 ice_pkg_enum_section(struct ice_seg *ice_seg, struct ice_pkg_enum *state,
2047 if (ice_seg)
2050 if (!ice_pkg_advance_sect(ice_seg, state))
2084 * @ice_seg: pointer to the ice segment (or NULL on subsequent calls)
2091 * the ice segment. The first call is made with the ice_seg parameter non-NULL;
2092 * on subsequent calls, ice_seg is set to NULL which continues the enumeration.
2108 ice_pkg_enum_entry(struct ice_seg *ice_seg, struct ice_pkg_enum *state,
2115 if (ice_seg) {
2119 if (!ice_pkg_enum_section(ice_seg, state, sect_type))
2183 * @ice_seg: pointer to the ice segment (non-NULL)
2188 * if it is found. The ice_seg parameter must not be NULL since the first call
2192 ice_find_boost_entry(struct ice_seg *ice_seg, u16 addr,
2200 if (!ice_seg)
2205 ice_pkg_enum_entry(ice_seg, &state,
2213 ice_seg = NULL;
2223 * @ice_seg: pointer to the segment of the package scan (non-NULL)
2226 * (hints or metadata) for driver use. The ice_seg parameter must not be NULL
2228 * ice_seg structure.
2230 void ice_init_pkg_hints(struct ice_hw *hw, struct ice_seg *ice_seg)
2240 if (!ice_seg)
2243 label_name = ice_enum_labels(ice_seg, ICE_SID_LBL_RXPARSER_TMEM, &state,
2257 ice_find_boost_entry(ice_seg, hw->tnl.tbl[i].boost_addr,