Lines Matching refs:bld
1458 struct ice_buf_build *bld; in ice_pkg_buf_alloc() local
1461 bld = (struct ice_buf_build *)ice_malloc(hw, sizeof(*bld)); in ice_pkg_buf_alloc()
1462 if (!bld) in ice_pkg_buf_alloc()
1465 buf = (struct ice_buf_hdr *)bld; in ice_pkg_buf_alloc()
1468 return bld; in ice_pkg_buf_alloc()
1697 void ice_pkg_buf_free(struct ice_hw *hw, struct ice_buf_build *bld) in ice_pkg_buf_free() argument
1699 ice_free(hw, bld); in ice_pkg_buf_free()
1716 ice_pkg_buf_reserve_section(struct ice_buf_build *bld, u16 count) in ice_pkg_buf_reserve_section() argument
1722 if (!bld) in ice_pkg_buf_reserve_section()
1725 buf = (struct ice_buf_hdr *)&bld->buf; in ice_pkg_buf_reserve_section()
1732 if (bld->reserved_section_table_entries + count > ICE_MAX_S_COUNT) in ice_pkg_buf_reserve_section()
1734 bld->reserved_section_table_entries += count; in ice_pkg_buf_reserve_section()
1756 ice_pkg_buf_alloc_section(struct ice_buf_build *bld, u32 type, u16 size) in ice_pkg_buf_alloc_section() argument
1762 if (!bld || !type || !size) in ice_pkg_buf_alloc_section()
1765 buf = (struct ice_buf_hdr *)&bld->buf; in ice_pkg_buf_alloc_section()
1778 if (sect_count < bld->reserved_section_table_entries) { in ice_pkg_buf_alloc_section()
1848 ice_pkg_buf_unreserve_section(struct ice_buf_build *bld, u16 count) in ice_pkg_buf_unreserve_section() argument
1854 if (!bld) in ice_pkg_buf_unreserve_section()
1857 buf = (struct ice_buf_hdr *)&bld->buf; in ice_pkg_buf_unreserve_section()
1864 if (count > bld->reserved_section_table_entries) in ice_pkg_buf_unreserve_section()
1866 bld->reserved_section_table_entries -= count; in ice_pkg_buf_unreserve_section()
1882 u16 ice_pkg_buf_get_free_space(struct ice_buf_build *bld) in ice_pkg_buf_get_free_space() argument
1886 if (!bld) in ice_pkg_buf_get_free_space()
1889 buf = (struct ice_buf_hdr *)&bld->buf; in ice_pkg_buf_get_free_space()
1903 u16 ice_pkg_buf_get_active_sections(struct ice_buf_build *bld) in ice_pkg_buf_get_active_sections() argument
1907 if (!bld) in ice_pkg_buf_get_active_sections()
1910 buf = (struct ice_buf_hdr *)&bld->buf; in ice_pkg_buf_get_active_sections()
1920 struct ice_buf *ice_pkg_buf(struct ice_buf_build *bld) in ice_pkg_buf() argument
1922 if (bld) in ice_pkg_buf()
1923 return &bld->buf; in ice_pkg_buf()