Lines Matching refs:sd_entry

59 	struct i40e_hmc_sd_entry *sd_entry;
65 if (NULL == hmc_info->sd_table.sd_entry) {
67 DEBUGOUT("i40e_add_sd_table_entry: bad sd_entry\n");
77 sd_entry = &hmc_info->sd_table.sd_entry[sd_index];
78 if (!sd_entry->valid) {
95 &sd_entry->u.pd_table.pd_entry_virt_mem,
99 sd_entry->u.pd_table.pd_entry =
101 sd_entry->u.pd_table.pd_entry_virt_mem.va;
102 i40e_memcpy(&sd_entry->u.pd_table.pd_page_addr,
106 i40e_memcpy(&sd_entry->u.bp.addr,
109 sd_entry->u.bp.sd_pd_index = sd_index;
112 hmc_info->sd_table.sd_entry[sd_index].entry_type = type;
118 if (I40E_SD_TYPE_DIRECT == sd_entry->entry_type)
119 I40E_INC_BP_REFCNT(&sd_entry->u.bp);
168 hmc_info->sd_table.sd_entry[sd_idx].entry_type)
172 pd_table = &hmc_info->sd_table.sd_entry[sd_idx].u.pd_table;
234 struct i40e_hmc_sd_entry *sd_entry;
246 sd_entry = &hmc_info->sd_table.sd_entry[sd_idx];
247 if (I40E_SD_TYPE_PAGED != sd_entry->entry_type) {
249 DEBUGOUT("i40e_remove_pd_bp: wrong sd_entry type\n");
253 pd_table = &hmc_info->sd_table.sd_entry[sd_idx].u.pd_table;
287 struct i40e_hmc_sd_entry *sd_entry;
290 sd_entry = &hmc_info->sd_table.sd_entry[idx];
291 I40E_DEC_BP_REFCNT(&sd_entry->u.bp);
292 if (sd_entry->u.bp.ref_cnt) {
299 sd_entry->valid = FALSE;
315 struct i40e_hmc_sd_entry *sd_entry;
321 sd_entry = &hmc_info->sd_table.sd_entry[idx];
324 return i40e_free_dma_mem(hw, &(sd_entry->u.bp.addr));
336 struct i40e_hmc_sd_entry *sd_entry;
338 sd_entry = &hmc_info->sd_table.sd_entry[idx];
340 if (sd_entry->u.pd_table.ref_cnt) {
346 sd_entry->valid = FALSE;
364 struct i40e_hmc_sd_entry *sd_entry;
369 sd_entry = &hmc_info->sd_table.sd_entry[idx];
372 return i40e_free_dma_mem(hw, &(sd_entry->u.pd_table.pd_page_addr));