Lines Matching refs:sd_table
157 sd_entry = &hmc_info->sd_table.sd_entry[i]; in irdma_hmc_sd_grp()
246 if (sd_idx >= info->hmc_info->sd_table.sd_cnt || in irdma_sc_create_hmc_obj()
247 sd_lmt > info->hmc_info->sd_table.sd_cnt) { in irdma_sc_create_hmc_obj()
262 sd_entry = &info->hmc_info->sd_table.sd_entry[j]; in irdma_sc_create_hmc_obj()
297 sd_entry = &info->hmc_info->sd_table.sd_entry[j - 1]; in irdma_sc_create_hmc_obj()
342 sd_entry = &info->hmc_info->sd_table.sd_entry[sd_idx]; in irdma_finish_del_sd_reg()
403 if (!info->hmc_info->sd_table.sd_entry[sd_idx].valid) in irdma_sc_del_hmc_obj()
406 if (info->hmc_info->sd_table.sd_entry[sd_idx].entry_type != in irdma_sc_del_hmc_obj()
411 pd_table = &info->hmc_info->sd_table.sd_entry[sd_idx].u.pd_table; in irdma_sc_del_hmc_obj()
426 if (sd_idx >= info->hmc_info->sd_table.sd_cnt || in irdma_sc_del_hmc_obj()
427 sd_lmt > info->hmc_info->sd_table.sd_cnt) { in irdma_sc_del_hmc_obj()
433 pd_table = &info->hmc_info->sd_table.sd_entry[i].u.pd_table; in irdma_sc_del_hmc_obj()
434 if (!info->hmc_info->sd_table.sd_entry[i].valid) in irdma_sc_del_hmc_obj()
436 switch (info->hmc_info->sd_table.sd_entry[i].entry_type) { in irdma_sc_del_hmc_obj()
481 sd_entry = &hmc_info->sd_table.sd_entry[sd_index]; in irdma_add_sd_table_entry()
517 hmc_info->sd_table.sd_entry[sd_index].entry_type = type; in irdma_add_sd_table_entry()
518 hmc_info->sd_table.use_cnt++; in irdma_add_sd_table_entry()
555 if (pd_index / IRDMA_HMC_PD_CNT_IN_SD >= hmc_info->sd_table.sd_cnt) in irdma_add_pd_table_entry()
559 if (hmc_info->sd_table.sd_entry[sd_idx].entry_type != in irdma_add_pd_table_entry()
564 pd_table = &hmc_info->sd_table.sd_entry[sd_idx].u.pd_table; in irdma_add_pd_table_entry()
626 if (sd_idx >= hmc_info->sd_table.sd_cnt) in irdma_remove_pd_bp()
629 sd_entry = &hmc_info->sd_table.sd_entry[sd_idx]; in irdma_remove_pd_bp()
633 pd_table = &hmc_info->sd_table.sd_entry[sd_idx].u.pd_table; in irdma_remove_pd_bp()
669 sd_entry = &hmc_info->sd_table.sd_entry[idx]; in irdma_prep_remove_sd_bp()
673 hmc_info->sd_table.use_cnt--; in irdma_prep_remove_sd_bp()
688 sd_entry = &hmc_info->sd_table.sd_entry[idx]; in irdma_prep_remove_pd_page()
694 hmc_info->sd_table.use_cnt--; in irdma_prep_remove_pd_page()