Lines Matching refs:bld

1458 	struct ice_buf_build *bld;
1461 bld = (struct ice_buf_build *)ice_malloc(hw, sizeof(*bld));
1462 if (!bld)
1465 buf = (struct ice_buf_hdr *)bld;
1468 return bld;
1693 * @bld: pointer to pkg build (allocated by ice_pkg_buf_alloc())
1697 void ice_pkg_buf_free(struct ice_hw *hw, struct ice_buf_build *bld)
1699 ice_free(hw, bld);
1704 * @bld: pointer to pkg build (allocated by ice_pkg_buf_alloc())
1716 ice_pkg_buf_reserve_section(struct ice_buf_build *bld, u16 count)
1722 if (!bld)
1725 buf = (struct ice_buf_hdr *)&bld->buf;
1732 if (bld->reserved_section_table_entries + count > ICE_MAX_S_COUNT)
1734 bld->reserved_section_table_entries += count;
1745 * @bld: pointer to pkg build (allocated by ice_pkg_buf_alloc())
1756 ice_pkg_buf_alloc_section(struct ice_buf_build *bld, u32 type, u16 size)
1762 if (!bld || !type || !size)
1765 buf = (struct ice_buf_hdr *)&bld->buf;
1778 if (sect_count < bld->reserved_section_table_entries) {
1835 * @bld: pointer to pkg build (allocated by ice_pkg_buf_alloc())
1848 ice_pkg_buf_unreserve_section(struct ice_buf_build *bld, u16 count)
1854 if (!bld)
1857 buf = (struct ice_buf_hdr *)&bld->buf;
1864 if (count > bld->reserved_section_table_entries)
1866 bld->reserved_section_table_entries -= count;
1877 * @bld: pointer to pkg build (allocated by ice_pkg_buf_alloc())
1882 u16 ice_pkg_buf_get_free_space(struct ice_buf_build *bld)
1886 if (!bld)
1889 buf = (struct ice_buf_hdr *)&bld->buf;
1895 * @bld: pointer to pkg build (allocated by ice_pkg_buf_alloc())
1903 u16 ice_pkg_buf_get_active_sections(struct ice_buf_build *bld)
1907 if (!bld)
1910 buf = (struct ice_buf_hdr *)&bld->buf;
1916 * @bld: pointer to pkg build (allocated by ice_pkg_buf_alloc())
1920 struct ice_buf *ice_pkg_buf(struct ice_buf_build *bld)
1922 if (bld)
1923 return &bld->buf;