Lines Matching defs:sw_buf

154 	struct ice_aqc_alloc_free_res_elem *sw_buf;
158 buf_len = ice_struct_size(sw_buf, elem, 1);
159 sw_buf = (struct ice_aqc_alloc_free_res_elem *)ice_malloc(hw, buf_len);
160 if (!sw_buf)
163 sw_buf->num_elems = CPU_TO_LE16(1);
164 sw_buf->res_type = CPU_TO_LE16(ICE_AQC_RES_TYPE_GLOBAL_RSS_HASH |
168 status = ice_aq_alloc_free_res(hw, 1, sw_buf, buf_len, ice_aqc_opc_alloc_res, NULL);
175 *global_lut_id = LE16_TO_CPU(sw_buf->elem[0].e.sw_resp);
178 ice_free(hw, sw_buf);
189 struct ice_aqc_alloc_free_res_elem *sw_buf;
193 buf_len = ice_struct_size(sw_buf, elem, num_elems);
194 sw_buf = (struct ice_aqc_alloc_free_res_elem *)ice_malloc(hw, buf_len);
195 if (!sw_buf)
198 sw_buf->num_elems = CPU_TO_LE16(num_elems);
199 sw_buf->res_type = CPU_TO_LE16(ICE_AQC_RES_TYPE_GLOBAL_RSS_HASH);
200 sw_buf->elem[0].e.sw_resp = CPU_TO_LE16(global_lut_id);
202 status = ice_aq_alloc_free_res(hw, num_elems, sw_buf, buf_len, ice_aqc_opc_free_res, NULL);
207 ice_free(hw, sw_buf);
225 struct ice_aqc_alloc_free_res_elem *sw_buf;
230 buf_len = ice_struct_size(sw_buf, elem, 1);
231 sw_buf = (struct ice_aqc_alloc_free_res_elem *)ice_malloc(hw, buf_len);
232 if (!sw_buf)
240 sw_buf->num_elems = CPU_TO_LE16(1);
241 sw_buf->res_type =
246 status = ice_aq_alloc_free_res(hw, 1, sw_buf, buf_len,
252 sw_ele = &sw_buf->elem[0];
289 ice_free(hw, sw_buf);
307 struct ice_aqc_alloc_free_res_elem *sw_buf, *counter_buf;
311 buf_len = ice_struct_size(sw_buf, elem, 1);
312 sw_buf = (struct ice_aqc_alloc_free_res_elem *)ice_malloc(hw, buf_len);
313 if (!sw_buf)
321 sw_buf->num_elems = CPU_TO_LE16(1);
322 sw_buf->res_type = CPU_TO_LE16(ICE_AQC_RES_TYPE_SWID);
323 sw_buf->elem[0].e.sw_resp = CPU_TO_LE16(sw_id);
325 ret_status = ice_aq_alloc_free_res(hw, 1, sw_buf, buf_len,
335 ice_free(hw, sw_buf);
355 ice_free(hw, sw_buf);
894 struct ice_aqc_alloc_free_res_elem *sw_buf;
899 buf_len = ice_struct_size(sw_buf, elem, 1);
900 sw_buf = (struct ice_aqc_alloc_free_res_elem *)ice_malloc(hw, buf_len);
901 if (!sw_buf)
903 sw_buf->num_elems = CPU_TO_LE16(1);
913 sw_buf->res_type = CPU_TO_LE16(ICE_AQC_RES_TYPE_VSI_LIST_REP);
915 sw_buf->res_type =
923 sw_buf->elem[0].e.sw_resp = CPU_TO_LE16(*vsi_list_id);
925 status = ice_aq_alloc_free_res(hw, 1, sw_buf, buf_len, opc, NULL);
930 vsi_ele = &sw_buf->elem[0];
935 ice_free(hw, sw_buf);
2861 struct ice_aqc_alloc_free_res_elem *sw_buf;
2873 buf_len = ice_struct_size(sw_buf, elem, 1);
2874 sw_buf = (struct ice_aqc_alloc_free_res_elem *)ice_malloc(hw, buf_len);
2875 if (!sw_buf)
2878 sw_buf->res_type = CPU_TO_LE16(res_type);
2879 sw_buf->num_elems = CPU_TO_LE16(1);
2881 status = ice_aq_alloc_free_res(hw, 1, sw_buf, buf_len,
2884 *l_id = LE16_TO_CPU(sw_buf->elem[0].e.sw_resp);
2886 ice_free(hw, sw_buf);