Lines Matching refs:sw_buf
1815 struct ice_aqc_alloc_free_res_elem *sw_buf; in ice_aq_alloc_free_vsi_list() local
1820 buf_len = struct_size(sw_buf, elem, 1); in ice_aq_alloc_free_vsi_list()
1821 sw_buf = devm_kzalloc(ice_hw_to_dev(hw), buf_len, GFP_KERNEL); in ice_aq_alloc_free_vsi_list()
1822 if (!sw_buf) in ice_aq_alloc_free_vsi_list()
1824 sw_buf->num_elems = cpu_to_le16(1); in ice_aq_alloc_free_vsi_list()
1833 sw_buf->res_type = cpu_to_le16(ICE_AQC_RES_TYPE_VSI_LIST_REP); in ice_aq_alloc_free_vsi_list()
1836 sw_buf->res_type = in ice_aq_alloc_free_vsi_list()
1840 sw_buf->res_type = in ice_aq_alloc_free_vsi_list()
1848 sw_buf->elem[0].e.sw_resp = cpu_to_le16(*vsi_list_id); in ice_aq_alloc_free_vsi_list()
1850 status = ice_aq_alloc_free_res(hw, sw_buf, buf_len, opc); in ice_aq_alloc_free_vsi_list()
1855 vsi_ele = &sw_buf->elem[0]; in ice_aq_alloc_free_vsi_list()
1860 devm_kfree(ice_hw_to_dev(hw), sw_buf); in ice_aq_alloc_free_vsi_list()
2091 struct ice_aqc_alloc_free_res_elem *sw_buf; in ice_alloc_recipe() local
2095 buf_len = struct_size(sw_buf, elem, 1); in ice_alloc_recipe()
2096 sw_buf = kzalloc(buf_len, GFP_KERNEL); in ice_alloc_recipe()
2097 if (!sw_buf) in ice_alloc_recipe()
2100 sw_buf->num_elems = cpu_to_le16(1); in ice_alloc_recipe()
2101 sw_buf->res_type = cpu_to_le16((ICE_AQC_RES_TYPE_RECIPE << in ice_alloc_recipe()
2104 status = ice_aq_alloc_free_res(hw, sw_buf, buf_len, in ice_alloc_recipe()
2107 *rid = le16_to_cpu(sw_buf->elem[0].e.sw_resp); in ice_alloc_recipe()
2108 kfree(sw_buf); in ice_alloc_recipe()