Lines Matching refs:bld

1795 	struct ice_buf_build *bld;  in ice_pkg_buf_alloc()  local
1798 bld = devm_kzalloc(ice_hw_to_dev(hw), sizeof(*bld), GFP_KERNEL); in ice_pkg_buf_alloc()
1799 if (!bld) in ice_pkg_buf_alloc()
1802 buf = (struct ice_buf_hdr *)bld; in ice_pkg_buf_alloc()
1805 return bld; in ice_pkg_buf_alloc()
2030 void ice_pkg_buf_free(struct ice_hw *hw, struct ice_buf_build *bld) in ice_pkg_buf_free() argument
2032 devm_kfree(ice_hw_to_dev(hw), bld); in ice_pkg_buf_free()
2049 ice_pkg_buf_reserve_section(struct ice_buf_build *bld, u16 count) in ice_pkg_buf_reserve_section() argument
2055 if (!bld) in ice_pkg_buf_reserve_section()
2058 buf = (struct ice_buf_hdr *)&bld->buf; in ice_pkg_buf_reserve_section()
2065 if (bld->reserved_section_table_entries + count > ICE_MAX_S_COUNT) in ice_pkg_buf_reserve_section()
2067 bld->reserved_section_table_entries += count; in ice_pkg_buf_reserve_section()
2089 ice_pkg_buf_alloc_section(struct ice_buf_build *bld, u32 type, u16 size) in ice_pkg_buf_alloc_section() argument
2095 if (!bld || !type || !size) in ice_pkg_buf_alloc_section()
2098 buf = (struct ice_buf_hdr *)&bld->buf; in ice_pkg_buf_alloc_section()
2111 if (sect_count < bld->reserved_section_table_entries) { in ice_pkg_buf_alloc_section()
2176 static u16 ice_pkg_buf_get_active_sections(struct ice_buf_build *bld) in ice_pkg_buf_get_active_sections() argument
2180 if (!bld) in ice_pkg_buf_get_active_sections()
2183 buf = (struct ice_buf_hdr *)&bld->buf; in ice_pkg_buf_get_active_sections()
2193 struct ice_buf *ice_pkg_buf(struct ice_buf_build *bld) in ice_pkg_buf() argument
2195 if (!bld) in ice_pkg_buf()
2198 return &bld->buf; in ice_pkg_buf()
2239 struct ice_buf_build *bld; in ice_upd_dvm_boost_entry() local
2242 bld = ice_pkg_buf_alloc(hw); in ice_upd_dvm_boost_entry()
2243 if (!bld) in ice_upd_dvm_boost_entry()
2247 if (ice_pkg_buf_reserve_section(bld, 2)) in ice_upd_dvm_boost_entry()
2250 sect_rx = ice_pkg_buf_alloc_section(bld, ICE_SID_RXPARSER_BOOST_TCAM, in ice_upd_dvm_boost_entry()
2256 sect_tx = ice_pkg_buf_alloc_section(bld, ICE_SID_TXPARSER_BOOST_TCAM, in ice_upd_dvm_boost_entry()
2284 status = ice_update_pkg_no_lock(hw, ice_pkg_buf(bld), 1); in ice_upd_dvm_boost_entry()
2287 ice_pkg_buf_free(hw, bld); in ice_upd_dvm_boost_entry()
2353 struct ice_buf_build *bld; in ice_create_tunnel() local
2358 bld = ice_pkg_buf_alloc(hw); in ice_create_tunnel()
2359 if (!bld) { in ice_create_tunnel()
2365 if (ice_pkg_buf_reserve_section(bld, 2)) in ice_create_tunnel()
2368 sect_rx = ice_pkg_buf_alloc_section(bld, ICE_SID_RXPARSER_BOOST_TCAM, in ice_create_tunnel()
2374 sect_tx = ice_pkg_buf_alloc_section(bld, ICE_SID_TXPARSER_BOOST_TCAM, in ice_create_tunnel()
2395 status = ice_update_pkg(hw, ice_pkg_buf(bld), 1); in ice_create_tunnel()
2400 ice_pkg_buf_free(hw, bld); in ice_create_tunnel()
2424 struct ice_buf_build *bld; in ice_destroy_tunnel() local
2436 bld = ice_pkg_buf_alloc(hw); in ice_destroy_tunnel()
2437 if (!bld) { in ice_destroy_tunnel()
2443 if (ice_pkg_buf_reserve_section(bld, 2)) in ice_destroy_tunnel()
2446 sect_rx = ice_pkg_buf_alloc_section(bld, ICE_SID_RXPARSER_BOOST_TCAM, in ice_destroy_tunnel()
2452 sect_tx = ice_pkg_buf_alloc_section(bld, ICE_SID_TXPARSER_BOOST_TCAM, in ice_destroy_tunnel()
2466 status = ice_update_pkg(hw, ice_pkg_buf(bld), 1); in ice_destroy_tunnel()
2471 ice_pkg_buf_free(hw, bld); in ice_destroy_tunnel()
4366 struct ice_buf_build *bld, struct list_head *chgs) in ice_prof_bld_es() argument
4378 p = ice_pkg_buf_alloc_section(bld, id, in ice_prof_bld_es()
4404 struct ice_buf_build *bld, struct list_head *chgs) in ice_prof_bld_tcam() argument
4414 p = ice_pkg_buf_alloc_section(bld, id, in ice_prof_bld_tcam()
4439 ice_prof_bld_xlt1(enum ice_block blk, struct ice_buf_build *bld, in ice_prof_bld_xlt1() argument
4450 p = ice_pkg_buf_alloc_section(bld, id, in ice_prof_bld_xlt1()
4471 ice_prof_bld_xlt2(enum ice_block blk, struct ice_buf_build *bld, in ice_prof_bld_xlt2() argument
4485 p = ice_pkg_buf_alloc_section(bld, id, in ice_prof_bld_xlt2()