Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ixl/i40e_lan_hmc.c
Show First 20 Lines • Show All 1,234 Lines • ▼ Show 20 Lines | enum i40e_status_code i40e_hmc_get_object_va(struct i40e_hw *hw, | ||||
struct i40e_hmc_info *hmc_info = &hw->hmc; | struct i40e_hmc_info *hmc_info = &hw->hmc; | ||||
struct i40e_hmc_sd_entry *sd_entry; | struct i40e_hmc_sd_entry *sd_entry; | ||||
struct i40e_hmc_pd_entry *pd_entry; | struct i40e_hmc_pd_entry *pd_entry; | ||||
u32 pd_idx, pd_lmt, rel_pd_idx; | u32 pd_idx, pd_lmt, rel_pd_idx; | ||||
enum i40e_status_code ret_code = I40E_SUCCESS; | enum i40e_status_code ret_code = I40E_SUCCESS; | ||||
u64 obj_offset_in_fpm; | u64 obj_offset_in_fpm; | ||||
u32 sd_idx, sd_lmt; | u32 sd_idx, sd_lmt; | ||||
if (NULL == hmc_info) { | |||||
ret_code = I40E_ERR_BAD_PTR; | |||||
DEBUGOUT("i40e_hmc_get_object_va: bad hmc_info ptr\n"); | |||||
goto exit; | |||||
} | |||||
if (NULL == hmc_info->hmc_obj) { | if (NULL == hmc_info->hmc_obj) { | ||||
ret_code = I40E_ERR_BAD_PTR; | ret_code = I40E_ERR_BAD_PTR; | ||||
DEBUGOUT("i40e_hmc_get_object_va: bad hmc_info->hmc_obj ptr\n"); | DEBUGOUT("i40e_hmc_get_object_va: bad hmc_info->hmc_obj ptr\n"); | ||||
goto exit; | goto exit; | ||||
} | } | ||||
if (NULL == object_base) { | if (NULL == object_base) { | ||||
ret_code = I40E_ERR_BAD_PTR; | ret_code = I40E_ERR_BAD_PTR; | ||||
DEBUGOUT("i40e_hmc_get_object_va: bad object_base ptr\n"); | DEBUGOUT("i40e_hmc_get_object_va: bad object_base ptr\n"); | ||||
▲ Show 20 Lines • Show All 157 Lines • Show Last 20 Lines |