Lines Matching refs:bld
691 struct ice_buf_build *bld;
694 bld = devm_kzalloc(ice_hw_to_dev(hw), sizeof(*bld), GFP_KERNEL);
695 if (!bld)
698 buf = (struct ice_buf_hdr *)bld;
701 return bld;
921 * @bld: pointer to pkg build (allocated by ice_pkg_buf_alloc())
925 void ice_pkg_buf_free(struct ice_hw *hw, struct ice_buf_build *bld)
927 devm_kfree(ice_hw_to_dev(hw), bld);
932 * @bld: pointer to pkg build (allocated by ice_pkg_buf_alloc())
943 int ice_pkg_buf_reserve_section(struct ice_buf_build *bld, u16 count)
949 if (!bld)
952 buf = (struct ice_buf_hdr *)&bld->buf;
959 if (bld->reserved_section_table_entries + count > ICE_MAX_S_COUNT)
961 bld->reserved_section_table_entries += count;
972 * @bld: pointer to pkg build (allocated by ice_pkg_buf_alloc())
982 void *ice_pkg_buf_alloc_section(struct ice_buf_build *bld, u32 type, u16 size)
988 if (!bld || !type || !size)
991 buf = (struct ice_buf_hdr *)&bld->buf;
1004 if (sect_count < bld->reserved_section_table_entries) {
1061 * @bld: pointer to pkg build (allocated by ice_pkg_buf_alloc())
1069 u16 ice_pkg_buf_get_active_sections(struct ice_buf_build *bld)
1073 if (!bld)
1076 buf = (struct ice_buf_hdr *)&bld->buf;
1082 * @bld: pointer to pkg build (allocated by ice_pkg_buf_alloc())
1086 struct ice_buf *ice_pkg_buf(struct ice_buf_build *bld)
1088 if (!bld)
1091 return &bld->buf;