Lines Matching refs:section

165  * unexpected value has been detected (for example an invalid section count or
192 * This helper function will advance the section within the ice segment,
209 /* start of new buffer, reset section index */
218 * @sect_type: section type to enumerate
237 /* scan for next matching section */
243 /* validate section */
252 /* make sure the section fits in the buffer */
259 /* calc pointer to this section */
271 * @sect_type: section type to enumerate
273 * @handler: function that handles access to the entries into the section type
275 * This function will enumerate all the entries in particular section type in
281 * Since each section may have a different header and entry size, the handler
283 * section.
286 * contain an offset for each section table. For such cases, the section handler
288 * offset for each entry. For example, if the base for a section's header
290 * section handler function should set the offset to 10 + 2 = 12.
295 void *(*handler)(u32 sect_type, void *section,
320 /* end of a section, look for another section of this type */
334 * @sect_type: section type
335 * @section: pointer to section
340 * This function treats the given section as of type ice_sw_fv_section and
343 static void *ice_sw_fv_handler(u32 sect_type, void *section, u32 index,
346 struct ice_sw_fv_section *fv_section = section;
348 if (!section || sect_type != ICE_SID_FLD_VEC_SW)
356 * field of this section
457 * @sect_type: section type
458 * @section: pointer to section
465 static void *ice_marker_ptype_tcam_handler(u32 sect_type, void *section,
479 marker_ptype = section;
537 * @sect_type: section type
538 * @section: pointer to section
546 void *section, u32 index, u32 *offset)
550 if (!section)
559 labels = section;
569 * @type: the section type that will contain the label (0 on subsequent calls)
583 /* Check for valid label section on first call */
598 * @sect_type: section type
599 * @section: pointer to section
606 static void *ice_boost_tcam_handler(u32 sect_type, void *section, u32 index,
611 if (!section)
623 boost = section;
945 * Reserves one or more section table entries in a package buffer. This routine
964 /* already an active section, can't increase table size */
983 * @type: the section type value
984 * @size: the size of the section to reserve (in bytes)
986 * Reserves memory in the buffer for a section's content and updates the
988 * byte of the section start within the buffer, which is used to fill in the
989 * section contents.
1006 /* section start must align on 4 byte boundary */
1012 /* check for more available section table entries */
1028 /* no free section table entries */
1035 * @type: the section type value
1036 * @size: the size of the section to reserve (in bytes)
1037 * @section: returns pointer to the section
1039 * Allocates a package buffer with a single section.
1044 void **section)
1048 if (!section)
1058 *section = ice_pkg_buf_alloc_section(buf, type, size);
1059 if (!*section)
1075 * least one active section - otherwise, the buffer is not legal and should
1332 /* If the first buffer's first section has its metadata bit set
1555 /* If the first buffer's first section has its metadata bit set
1704 * @pkg_buf: the package buffer which will receive the section
1915 "Did not find ice metadata section in package\n");
2342 struct ice_buf_hdr *section;
2425 section = ice_pkg_val_buf(seg->buf_table.buf_array);
2426 if (!section || le32_to_cpu(section->section_entry[0].type) !=
2428 ice_debug(hw, ICE_DBG_INIT, "5 layer topology section type is wrong\n");
2432 size = le16_to_cpu(section->section_entry[0].size);
2433 offset = le16_to_cpu(section->section_entry[0].offset);
2435 ice_debug(hw, ICE_DBG_INIT, "5 layer topology section size is wrong\n");
2439 /* Make sure the section fits in the buffer */
2446 new_topo = ((u8 *)section) + offset;