Lines Matching refs:sd_entry
27 struct i40e_hmc_sd_entry *sd_entry; in i40e_add_sd_table_entry() local
33 if (NULL == hmc_info->sd_table.sd_entry) { in i40e_add_sd_table_entry()
45 sd_entry = &hmc_info->sd_table.sd_entry[sd_index]; in i40e_add_sd_table_entry()
46 if (!sd_entry->valid) { in i40e_add_sd_table_entry()
63 &sd_entry->u.pd_table.pd_entry_virt_mem, in i40e_add_sd_table_entry()
67 sd_entry->u.pd_table.pd_entry = in i40e_add_sd_table_entry()
69 sd_entry->u.pd_table.pd_entry_virt_mem.va; in i40e_add_sd_table_entry()
70 sd_entry->u.pd_table.pd_page_addr = mem; in i40e_add_sd_table_entry()
72 sd_entry->u.bp.addr = mem; in i40e_add_sd_table_entry()
73 sd_entry->u.bp.sd_pd_index = sd_index; in i40e_add_sd_table_entry()
76 hmc_info->sd_table.sd_entry[sd_index].entry_type = type; in i40e_add_sd_table_entry()
82 if (I40E_SD_TYPE_DIRECT == sd_entry->entry_type) in i40e_add_sd_table_entry()
83 I40E_INC_BP_REFCNT(&sd_entry->u.bp); in i40e_add_sd_table_entry()
132 hmc_info->sd_table.sd_entry[sd_idx].entry_type) in i40e_add_pd_table_entry()
136 pd_table = &hmc_info->sd_table.sd_entry[sd_idx].u.pd_table; in i40e_add_pd_table_entry()
194 struct i40e_hmc_sd_entry *sd_entry; in i40e_remove_pd_bp() local
207 sd_entry = &hmc_info->sd_table.sd_entry[sd_idx]; in i40e_remove_pd_bp()
208 if (I40E_SD_TYPE_PAGED != sd_entry->entry_type) { in i40e_remove_pd_bp()
214 pd_table = &hmc_info->sd_table.sd_entry[sd_idx].u.pd_table; in i40e_remove_pd_bp()
247 struct i40e_hmc_sd_entry *sd_entry; in i40e_prep_remove_sd_bp() local
251 sd_entry = &hmc_info->sd_table.sd_entry[idx]; in i40e_prep_remove_sd_bp()
252 I40E_DEC_BP_REFCNT(&sd_entry->u.bp); in i40e_prep_remove_sd_bp()
253 if (sd_entry->u.bp.ref_cnt) { in i40e_prep_remove_sd_bp()
260 sd_entry->valid = false; in i40e_prep_remove_sd_bp()
276 struct i40e_hmc_sd_entry *sd_entry; in i40e_remove_sd_bp_new() local
282 sd_entry = &hmc_info->sd_table.sd_entry[idx]; in i40e_remove_sd_bp_new()
285 return i40e_free_dma_mem(hw, &sd_entry->u.bp.addr); in i40e_remove_sd_bp_new()
296 struct i40e_hmc_sd_entry *sd_entry; in i40e_prep_remove_pd_page() local
299 sd_entry = &hmc_info->sd_table.sd_entry[idx]; in i40e_prep_remove_pd_page()
301 if (sd_entry->u.pd_table.ref_cnt) { in i40e_prep_remove_pd_page()
307 sd_entry->valid = false; in i40e_prep_remove_pd_page()
325 struct i40e_hmc_sd_entry *sd_entry; in i40e_remove_pd_page_new() local
330 sd_entry = &hmc_info->sd_table.sd_entry[idx]; in i40e_remove_pd_page_new()
333 return i40e_free_dma_mem(hw, &sd_entry->u.pd_table.pd_page_addr); in i40e_remove_pd_page_new()