Lines Matching defs:sd_entry

57 	struct i40e_hmc_sd_entry *sd_entry;
63 if (NULL == hmc_info->sd_table.sd_entry) {
65 DEBUGOUT("i40e_add_sd_table_entry: bad sd_entry\n");
75 sd_entry = &hmc_info->sd_table.sd_entry[sd_index];
76 if (!sd_entry->valid) {
93 &sd_entry->u.pd_table.pd_entry_virt_mem,
97 sd_entry->u.pd_table.pd_entry =
99 sd_entry->u.pd_table.pd_entry_virt_mem.va;
100 i40e_memcpy(&sd_entry->u.pd_table.pd_page_addr,
104 i40e_memcpy(&sd_entry->u.bp.addr,
107 sd_entry->u.bp.sd_pd_index = sd_index;
110 hmc_info->sd_table.sd_entry[sd_index].entry_type = type;
116 if (I40E_SD_TYPE_DIRECT == sd_entry->entry_type)
117 I40E_INC_BP_REFCNT(&sd_entry->u.bp);
166 hmc_info->sd_table.sd_entry[sd_idx].entry_type)
170 pd_table = &hmc_info->sd_table.sd_entry[sd_idx].u.pd_table;
232 struct i40e_hmc_sd_entry *sd_entry;
244 sd_entry = &hmc_info->sd_table.sd_entry[sd_idx];
245 if (I40E_SD_TYPE_PAGED != sd_entry->entry_type) {
247 DEBUGOUT("i40e_remove_pd_bp: wrong sd_entry type\n");
251 pd_table = &hmc_info->sd_table.sd_entry[sd_idx].u.pd_table;
285 struct i40e_hmc_sd_entry *sd_entry;
288 sd_entry = &hmc_info->sd_table.sd_entry[idx];
289 I40E_DEC_BP_REFCNT(&sd_entry->u.bp);
290 if (sd_entry->u.bp.ref_cnt) {
297 sd_entry->valid = FALSE;
313 struct i40e_hmc_sd_entry *sd_entry;
319 sd_entry = &hmc_info->sd_table.sd_entry[idx];
322 return i40e_free_dma_mem(hw, &(sd_entry->u.bp.addr));
334 struct i40e_hmc_sd_entry *sd_entry;
336 sd_entry = &hmc_info->sd_table.sd_entry[idx];
338 if (sd_entry->u.pd_table.ref_cnt) {
344 sd_entry->valid = FALSE;
362 struct i40e_hmc_sd_entry *sd_entry;
367 sd_entry = &hmc_info->sd_table.sd_entry[idx];
370 return i40e_free_dma_mem(hw, &(sd_entry->u.pd_table.pd_page_addr));