Lines Matching refs:sd_entry

23 	struct i40e_hmc_sd_entry *sd_entry;  in i40e_add_sd_table_entry()  local
29 if (NULL == hmc_info->sd_table.sd_entry) { in i40e_add_sd_table_entry()
41 sd_entry = &hmc_info->sd_table.sd_entry[sd_index]; in i40e_add_sd_table_entry()
42 if (!sd_entry->valid) { in i40e_add_sd_table_entry()
56 &sd_entry->u.pd_table.pd_entry_virt_mem, in i40e_add_sd_table_entry()
60 sd_entry->u.pd_table.pd_entry = in i40e_add_sd_table_entry()
62 sd_entry->u.pd_table.pd_entry_virt_mem.va; in i40e_add_sd_table_entry()
63 sd_entry->u.pd_table.pd_page_addr = mem; in i40e_add_sd_table_entry()
65 sd_entry->u.bp.addr = mem; in i40e_add_sd_table_entry()
66 sd_entry->u.bp.sd_pd_index = sd_index; in i40e_add_sd_table_entry()
69 hmc_info->sd_table.sd_entry[sd_index].entry_type = type; in i40e_add_sd_table_entry()
75 if (I40E_SD_TYPE_DIRECT == sd_entry->entry_type) in i40e_add_sd_table_entry()
76 I40E_INC_BP_REFCNT(&sd_entry->u.bp); in i40e_add_sd_table_entry()
125 hmc_info->sd_table.sd_entry[sd_idx].entry_type) in i40e_add_pd_table_entry()
129 pd_table = &hmc_info->sd_table.sd_entry[sd_idx].u.pd_table; in i40e_add_pd_table_entry()
187 struct i40e_hmc_sd_entry *sd_entry; in i40e_remove_pd_bp() local
200 sd_entry = &hmc_info->sd_table.sd_entry[sd_idx]; in i40e_remove_pd_bp()
201 if (I40E_SD_TYPE_PAGED != sd_entry->entry_type) { in i40e_remove_pd_bp()
207 pd_table = &hmc_info->sd_table.sd_entry[sd_idx].u.pd_table; in i40e_remove_pd_bp()
240 struct i40e_hmc_sd_entry *sd_entry; in i40e_prep_remove_sd_bp() local
244 sd_entry = &hmc_info->sd_table.sd_entry[idx]; in i40e_prep_remove_sd_bp()
245 I40E_DEC_BP_REFCNT(&sd_entry->u.bp); in i40e_prep_remove_sd_bp()
246 if (sd_entry->u.bp.ref_cnt) { in i40e_prep_remove_sd_bp()
253 sd_entry->valid = false; in i40e_prep_remove_sd_bp()
269 struct i40e_hmc_sd_entry *sd_entry; in i40e_remove_sd_bp_new() local
275 sd_entry = &hmc_info->sd_table.sd_entry[idx]; in i40e_remove_sd_bp_new()
278 return i40e_free_dma_mem(hw, &sd_entry->u.bp.addr); in i40e_remove_sd_bp_new()
289 struct i40e_hmc_sd_entry *sd_entry; in i40e_prep_remove_pd_page() local
292 sd_entry = &hmc_info->sd_table.sd_entry[idx]; in i40e_prep_remove_pd_page()
294 if (sd_entry->u.pd_table.ref_cnt) { in i40e_prep_remove_pd_page()
300 sd_entry->valid = false; in i40e_prep_remove_pd_page()
318 struct i40e_hmc_sd_entry *sd_entry; in i40e_remove_pd_page_new() local
323 sd_entry = &hmc_info->sd_table.sd_entry[idx]; in i40e_remove_pd_page_new()
326 return i40e_free_dma_mem(hw, &sd_entry->u.pd_table.pd_page_addr); in i40e_remove_pd_page_new()