Lines Matching refs:hmc_info

267 						 struct i40e_hmc_info *hmc_info,  in i40e_remove_pd_page()  argument
272 if (i40e_prep_remove_pd_page(hmc_info, idx) == I40E_SUCCESS) in i40e_remove_pd_page()
273 ret_code = i40e_remove_pd_page_new(hw, hmc_info, idx, TRUE); in i40e_remove_pd_page()
294 struct i40e_hmc_info *hmc_info, in i40e_remove_sd_bp() argument
299 if (i40e_prep_remove_sd_bp(hmc_info, idx) == I40E_SUCCESS) in i40e_remove_sd_bp()
300 ret_code = i40e_remove_sd_bp_new(hw, hmc_info, idx, TRUE); in i40e_remove_sd_bp()
330 if (NULL == info->hmc_info) { in i40e_create_lan_hmc_object()
335 if (I40E_HMC_INFO_SIGNATURE != info->hmc_info->signature) { in i40e_create_lan_hmc_object()
341 if (info->start_idx >= info->hmc_info->hmc_obj[info->rsrc_type].cnt) { in i40e_create_lan_hmc_object()
348 info->hmc_info->hmc_obj[info->rsrc_type].cnt) { in i40e_create_lan_hmc_object()
356 I40E_FIND_SD_INDEX_LIMIT(info->hmc_info, info->rsrc_type, in i40e_create_lan_hmc_object()
359 if (sd_idx >= info->hmc_info->sd_table.sd_cnt || in i40e_create_lan_hmc_object()
360 sd_lmt > info->hmc_info->sd_table.sd_cnt) { in i40e_create_lan_hmc_object()
365 I40E_FIND_PD_INDEX_LIMIT(info->hmc_info, info->rsrc_type, in i40e_create_lan_hmc_object()
383 ret_code = i40e_add_sd_table_entry(hw, info->hmc_info, j, in i40e_create_lan_hmc_object()
388 sd_entry = &info->hmc_info->sd_table.sd_entry[j]; in i40e_create_lan_hmc_object()
401 info->hmc_info, in i40e_create_lan_hmc_object()
411 i40e_remove_pd_bp(hw, info->hmc_info, in i40e_create_lan_hmc_object()
440 sd_entry = &info->hmc_info->sd_table.sd_entry[j - 1]; in i40e_create_lan_hmc_object()
447 i40e_remove_pd_bp(hw, info->hmc_info, i); in i40e_create_lan_hmc_object()
448 i40e_remove_pd_page(hw, info->hmc_info, (j - 1)); in i40e_create_lan_hmc_object()
451 i40e_remove_sd_bp(hw, info->hmc_info, (j - 1)); in i40e_create_lan_hmc_object()
481 info.hmc_info = &hw->hmc; in i40e_configure_lan_hmc()
571 if (NULL == info->hmc_info) { in i40e_delete_lan_hmc_object()
576 if (I40E_HMC_INFO_SIGNATURE != info->hmc_info->signature) { in i40e_delete_lan_hmc_object()
582 if (NULL == info->hmc_info->sd_table.sd_entry) { in i40e_delete_lan_hmc_object()
588 if (NULL == info->hmc_info->hmc_obj) { in i40e_delete_lan_hmc_object()
593 if (info->start_idx >= info->hmc_info->hmc_obj[info->rsrc_type].cnt) { in i40e_delete_lan_hmc_object()
601 info->hmc_info->hmc_obj[info->rsrc_type].cnt) { in i40e_delete_lan_hmc_object()
608 I40E_FIND_PD_INDEX_LIMIT(info->hmc_info, info->rsrc_type, in i40e_delete_lan_hmc_object()
616 info->hmc_info->sd_table.sd_entry[sd_idx].entry_type) in i40e_delete_lan_hmc_object()
622 &info->hmc_info->sd_table.sd_entry[sd_idx].u.pd_table; in i40e_delete_lan_hmc_object()
624 ret_code = i40e_remove_pd_bp(hw, info->hmc_info, j); in i40e_delete_lan_hmc_object()
631 I40E_FIND_SD_INDEX_LIMIT(info->hmc_info, info->rsrc_type, in i40e_delete_lan_hmc_object()
634 if (sd_idx >= info->hmc_info->sd_table.sd_cnt || in i40e_delete_lan_hmc_object()
635 sd_lmt > info->hmc_info->sd_table.sd_cnt) { in i40e_delete_lan_hmc_object()
641 if (!info->hmc_info->sd_table.sd_entry[i].valid) in i40e_delete_lan_hmc_object()
643 switch (info->hmc_info->sd_table.sd_entry[i].entry_type) { in i40e_delete_lan_hmc_object()
645 ret_code = i40e_remove_sd_bp(hw, info->hmc_info, i); in i40e_delete_lan_hmc_object()
650 ret_code = i40e_remove_pd_page(hw, info->hmc_info, i); in i40e_delete_lan_hmc_object()
674 info.hmc_info = &hw->hmc; in i40e_shutdown_lan_hmc()
1239 struct i40e_hmc_info *hmc_info = &hw->hmc; in i40e_hmc_get_object_va() local
1247 if (NULL == hmc_info->hmc_obj) { in i40e_hmc_get_object_va()
1257 if (I40E_HMC_INFO_SIGNATURE != hmc_info->signature) { in i40e_hmc_get_object_va()
1262 if (obj_idx >= hmc_info->hmc_obj[rsrc_type].cnt) { in i40e_hmc_get_object_va()
1269 I40E_FIND_SD_INDEX_LIMIT(hmc_info, rsrc_type, obj_idx, 1, in i40e_hmc_get_object_va()
1272 sd_entry = &hmc_info->sd_table.sd_entry[sd_idx]; in i40e_hmc_get_object_va()
1273 obj_offset_in_fpm = hmc_info->hmc_obj[rsrc_type].base + in i40e_hmc_get_object_va()
1274 hmc_info->hmc_obj[rsrc_type].size * obj_idx; in i40e_hmc_get_object_va()
1277 I40E_FIND_PD_INDEX_LIMIT(hmc_info, rsrc_type, obj_idx, 1, in i40e_hmc_get_object_va()