Lines Matching refs:bld

1716 	struct ice_buf_build *bld;  in ice_pkg_buf_alloc()  local
1719 bld = (struct ice_buf_build *)ice_malloc(hw, sizeof(*bld)); in ice_pkg_buf_alloc()
1720 if (!bld) in ice_pkg_buf_alloc()
1723 buf = (struct ice_buf_hdr *)bld; in ice_pkg_buf_alloc()
1726 return bld; in ice_pkg_buf_alloc()
1930 void ice_pkg_buf_free(struct ice_hw *hw, struct ice_buf_build *bld) in ice_pkg_buf_free() argument
1932 ice_free(hw, bld); in ice_pkg_buf_free()
1949 ice_pkg_buf_reserve_section(struct ice_buf_build *bld, u16 count) in ice_pkg_buf_reserve_section() argument
1955 if (!bld) in ice_pkg_buf_reserve_section()
1958 buf = (struct ice_buf_hdr *)&bld->buf; in ice_pkg_buf_reserve_section()
1965 if (bld->reserved_section_table_entries + count > ICE_MAX_S_COUNT) in ice_pkg_buf_reserve_section()
1967 bld->reserved_section_table_entries += count; in ice_pkg_buf_reserve_section()
1989 ice_pkg_buf_alloc_section(struct ice_buf_build *bld, u32 type, u16 size) in ice_pkg_buf_alloc_section() argument
1995 if (!bld || !type || !size) in ice_pkg_buf_alloc_section()
1998 buf = (struct ice_buf_hdr *)&bld->buf; in ice_pkg_buf_alloc_section()
2011 if (sect_count < bld->reserved_section_table_entries) { in ice_pkg_buf_alloc_section()
2081 ice_pkg_buf_unreserve_section(struct ice_buf_build *bld, u16 count) in ice_pkg_buf_unreserve_section() argument
2087 if (!bld) in ice_pkg_buf_unreserve_section()
2090 buf = (struct ice_buf_hdr *)&bld->buf; in ice_pkg_buf_unreserve_section()
2097 if (count > bld->reserved_section_table_entries) in ice_pkg_buf_unreserve_section()
2099 bld->reserved_section_table_entries -= count; in ice_pkg_buf_unreserve_section()
2115 u16 ice_pkg_buf_get_free_space(struct ice_buf_build *bld) in ice_pkg_buf_get_free_space() argument
2119 if (!bld) in ice_pkg_buf_get_free_space()
2122 buf = (struct ice_buf_hdr *)&bld->buf; in ice_pkg_buf_get_free_space()
2136 static u16 ice_pkg_buf_get_active_sections(struct ice_buf_build *bld) in ice_pkg_buf_get_active_sections() argument
2140 if (!bld) in ice_pkg_buf_get_active_sections()
2143 buf = (struct ice_buf_hdr *)&bld->buf; in ice_pkg_buf_get_active_sections()
2153 struct ice_buf *ice_pkg_buf(struct ice_buf_build *bld) in ice_pkg_buf() argument
2155 if (!bld) in ice_pkg_buf()
2158 return &bld->buf; in ice_pkg_buf()
2300 struct ice_buf_build *bld; in ice_create_tunnel() local
2316 bld = ice_pkg_buf_alloc(hw); in ice_create_tunnel()
2317 if (!bld) { in ice_create_tunnel()
2323 if (ice_pkg_buf_reserve_section(bld, 2)) in ice_create_tunnel()
2327 ice_pkg_buf_alloc_section(bld, ICE_SID_RXPARSER_BOOST_TCAM, in ice_create_tunnel()
2334 ice_pkg_buf_alloc_section(bld, ICE_SID_TXPARSER_BOOST_TCAM, in ice_create_tunnel()
2356 status = ice_update_pkg(hw, ice_pkg_buf(bld), 1); in ice_create_tunnel()
2364 ice_pkg_buf_free(hw, bld); in ice_create_tunnel()
2386 struct ice_buf_build *bld; in ice_destroy_tunnel() local
2415 bld = ice_pkg_buf_alloc(hw); in ice_destroy_tunnel()
2416 if (!bld) { in ice_destroy_tunnel()
2422 if (ice_pkg_buf_reserve_section(bld, 2)) in ice_destroy_tunnel()
2426 ice_pkg_buf_alloc_section(bld, ICE_SID_RXPARSER_BOOST_TCAM, in ice_destroy_tunnel()
2433 ice_pkg_buf_alloc_section(bld, ICE_SID_TXPARSER_BOOST_TCAM, in ice_destroy_tunnel()
2457 status = ice_update_pkg(hw, ice_pkg_buf(bld), 1); in ice_destroy_tunnel()
2469 ice_pkg_buf_free(hw, bld); in ice_destroy_tunnel()
2565 struct ice_buf_build *bld; in ice_ptg_update_xlt1() local
2569 bld = ice_pkg_buf_alloc_single_section(hw, ice_sect_id(blk, ICE_XLT1), in ice_ptg_update_xlt1()
2573 if (!bld) in ice_ptg_update_xlt1()
2581 status = ice_update_pkg(hw, ice_pkg_buf(bld), 1); in ice_ptg_update_xlt1()
2583 ice_pkg_buf_free(hw, bld); in ice_ptg_update_xlt1()
2854 struct ice_buf_build *bld; in ice_vsig_update_xlt2_sect() local
2857 bld = ice_pkg_buf_alloc_single_section(hw, ice_sect_id(blk, ICE_XLT2), in ice_vsig_update_xlt2_sect()
2860 if (!bld) in ice_vsig_update_xlt2_sect()
2867 status = ice_update_pkg(hw, ice_pkg_buf(bld), 1); in ice_vsig_update_xlt2_sect()
2869 ice_pkg_buf_free(hw, bld); in ice_vsig_update_xlt2_sect()
4086 struct ice_buf_build *bld, struct LIST_HEAD_TYPE *chgs) in ice_prof_bld_es() argument
4099 ice_pkg_buf_alloc_section(bld, id, in ice_prof_bld_es()
4127 struct ice_buf_build *bld, struct LIST_HEAD_TYPE *chgs) in ice_prof_bld_tcam() argument
4138 ice_pkg_buf_alloc_section(bld, id, in ice_prof_bld_tcam()
4166 ice_prof_bld_xlt1(enum ice_block blk, struct ice_buf_build *bld, in ice_prof_bld_xlt1() argument
4178 ice_pkg_buf_alloc_section(bld, id, in ice_prof_bld_xlt1()
4201 ice_prof_bld_xlt2(enum ice_block blk, struct ice_buf_build *bld, in ice_prof_bld_xlt2() argument
4216 ice_pkg_buf_alloc_section(bld, id, in ice_prof_bld_xlt2()