Lines Matching refs:sd_idx

23 				      u32 idx, u32 cnt, u32 *sd_idx,  in irdma_find_sd_index_limit()  argument
31 *sd_idx = (u32)(fpm_addr / IRDMA_HMC_DIRECT_BP_SIZE); in irdma_find_sd_index_limit()
104 static inline void irdma_invalidate_pf_hmc_pd(struct irdma_sc_dev *dev, u32 sd_idx, in irdma_invalidate_pf_hmc_pd() argument
107 u32 val = FIELD_PREP(IRDMA_PFHMC_PDINV_PMSDIDX, sd_idx) | in irdma_invalidate_pf_hmc_pd()
123 int irdma_hmc_sd_one(struct irdma_sc_dev *dev, u8 hmc_fn_id, u64 pa, u32 sd_idx, in irdma_hmc_sd_one() argument
131 irdma_set_sd_entry(pa, sd_idx, type, sdinfo.entry); in irdma_hmc_sd_one()
133 irdma_clr_sd_entry(sd_idx, type, sdinfo.entry); in irdma_hmc_sd_one()
224 u32 sd_idx, sd_lmt; in irdma_sc_create_hmc_obj() local
244 info->start_idx, info->count, &sd_idx, in irdma_sc_create_hmc_obj()
246 if (sd_idx >= info->hmc_info->sd_table.sd_cnt || in irdma_sc_create_hmc_obj()
255 for (j = sd_idx; j < sd_lmt; j++) { in irdma_sc_create_hmc_obj()
296 while (j && (j > sd_idx)) { in irdma_sc_create_hmc_obj()
330 u32 i, sd_idx; in irdma_finish_del_sd_reg() local
341 sd_idx = info->hmc_info->sd_indexes[i]; in irdma_finish_del_sd_reg()
342 sd_entry = &info->hmc_info->sd_table.sd_entry[sd_idx]; in irdma_finish_del_sd_reg()
374 u32 sd_idx, sd_lmt; in irdma_sc_del_hmc_obj() local
401 sd_idx = j / IRDMA_HMC_PD_CNT_IN_SD; in irdma_sc_del_hmc_obj()
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()
424 info->start_idx, info->count, &sd_idx, in irdma_sc_del_hmc_obj()
426 if (sd_idx >= info->hmc_info->sd_table.sd_cnt || in irdma_sc_del_hmc_obj()
432 for (i = sd_idx; i < sd_lmt; i++) { in irdma_sc_del_hmc_obj()
551 u32 sd_idx, rel_pd_idx; in irdma_add_pd_table_entry() local
558 sd_idx = (pd_index / IRDMA_HMC_PD_CNT_IN_SD); 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()
589 pd_entry->sd_index = sd_idx; in irdma_add_pd_table_entry()
592 irdma_invalidate_pf_hmc_pd(dev, sd_idx, rel_pd_idx); in irdma_add_pd_table_entry()
620 u32 sd_idx, rel_pd_idx; in irdma_remove_pd_bp() local
624 sd_idx = idx / IRDMA_HMC_PD_CNT_IN_SD; in irdma_remove_pd_bp()
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()
643 irdma_invalidate_pf_hmc_pd(dev, sd_idx, idx); in irdma_remove_pd_bp()