Lines Matching refs:sw_buf
264 struct ice_aqc_alloc_free_res_elem *sw_buf; in ice_aq_alloc_free_vsi_list() local
269 buf_len = sizeof(*sw_buf); in ice_aq_alloc_free_vsi_list()
270 sw_buf = devm_kzalloc(ice_hw_to_dev(hw), buf_len, GFP_KERNEL); in ice_aq_alloc_free_vsi_list()
271 if (!sw_buf) in ice_aq_alloc_free_vsi_list()
273 sw_buf->num_elems = cpu_to_le16(1); in ice_aq_alloc_free_vsi_list()
281 sw_buf->res_type = cpu_to_le16(ICE_AQC_RES_TYPE_VSI_LIST_REP); in ice_aq_alloc_free_vsi_list()
283 sw_buf->res_type = in ice_aq_alloc_free_vsi_list()
291 sw_buf->elem[0].e.sw_resp = cpu_to_le16(*vsi_list_id); in ice_aq_alloc_free_vsi_list()
293 status = ice_aq_alloc_free_res(hw, 1, sw_buf, buf_len, opc, NULL); in ice_aq_alloc_free_vsi_list()
298 vsi_ele = &sw_buf->elem[0]; in ice_aq_alloc_free_vsi_list()
303 devm_kfree(ice_hw_to_dev(hw), sw_buf); in ice_aq_alloc_free_vsi_list()