/linux-6.6.21/drivers/infiniband/hw/irdma/ |
D | hmc.c | 22 static void irdma_find_sd_index_limit(struct irdma_hmc_info *hmc_info, u32 type, in irdma_find_sd_index_limit() argument 28 fpm_addr = hmc_info->hmc_obj[(type)].base + in irdma_find_sd_index_limit() 29 hmc_info->hmc_obj[type].size * idx; in irdma_find_sd_index_limit() 30 fpm_limit = fpm_addr + hmc_info->hmc_obj[type].size * cnt; in irdma_find_sd_index_limit() 49 static void irdma_find_pd_index_limit(struct irdma_hmc_info *hmc_info, u32 type, in irdma_find_pd_index_limit() argument 55 fpm_adr = hmc_info->hmc_obj[type].base + in irdma_find_pd_index_limit() 56 hmc_info->hmc_obj[type].size * idx; in irdma_find_pd_index_limit() 57 fpm_limit = fpm_adr + (hmc_info)->hmc_obj[(type)].size * (cnt); in irdma_find_pd_index_limit() 146 struct irdma_hmc_info *hmc_info, u32 sd_index, in irdma_hmc_sd_grp() argument 155 sdinfo.hmc_fn_id = hmc_info->hmc_fn_id; in irdma_hmc_sd_grp() [all …]
|
D | pble.c | 39 struct irdma_hmc_info *hmc_info; in irdma_hmc_init_pble() local 43 hmc_info = dev->hmc_info; in irdma_hmc_init_pble() 45 pble_rsrc->fpm_base_addr = hmc_info->hmc_obj[IRDMA_HMC_IW_PBLE].base; in irdma_hmc_init_pble() 50 hmc_info->hmc_obj[IRDMA_HMC_IW_PBLE].cnt - fpm_idx; in irdma_hmc_init_pble() 91 struct irdma_hmc_info *hmc_info = info->hmc_info; in add_sd_direct() local 96 ret_code = irdma_add_sd_table_entry(dev->hw, hmc_info, in add_sd_direct() 144 struct irdma_hmc_info *hmc_info = info->hmc_info; in add_bp_pages() local 154 status = irdma_add_sd_table_entry(dev->hw, hmc_info, info->idx.sd_idx, in add_bp_pages() 167 status = irdma_add_pd_table_entry(dev, hmc_info, in add_bp_pages() 209 struct irdma_hmc_info *hmc_info; in add_pble_prm() local [all …]
|
D | hmc.h | 124 struct irdma_hmc_info *hmc_info; member 135 struct irdma_hmc_info *hmc_info; member 160 struct irdma_hmc_info *hmc_info, u32 sd_index, 163 struct irdma_hmc_info *hmc_info, u32 pd_index, 166 struct irdma_hmc_info *hmc_info, u32 idx); 167 int irdma_prep_remove_sd_bp(struct irdma_hmc_info *hmc_info, u32 idx); 168 int irdma_prep_remove_pd_page(struct irdma_hmc_info *hmc_info, u32 idx);
|
D | ctrl.c | 404 pble_obj_cnt = info->pd->dev->hmc_info->hmc_obj[IRDMA_HMC_IW_PBLE].cnt; in irdma_sc_qp_init() 457 qp->qp_uk.qp_id >= cqp->dev->hmc_info->hmc_obj[IRDMA_HMC_IW_QP].max_cnt) in irdma_sc_qp_create() 1150 pble_obj_cnt = dev->hmc_info->hmc_obj[IRDMA_HMC_IW_PBLE].cnt; in irdma_sc_mr_reg_non_shared() 2483 pble_obj_cnt = info->dev->hmc_info->hmc_obj[IRDMA_HMC_IW_PBLE].cnt; in irdma_sc_cq_init() 2526 if (cq->cq_uk.cq_id >= cqp->dev->hmc_info->hmc_obj[IRDMA_HMC_IW_CQ].max_cnt) in irdma_sc_cq_create() 2664 pble_obj_cnt = cq->dev->hmc_info->hmc_obj[IRDMA_HMC_IW_PBLE].cnt; in irdma_sc_cq_modify() 2926 struct irdma_hmc_info *hmc_info, in irdma_sc_parse_fpm_query_buf() argument 2934 obj_info = hmc_info->hmc_obj; in irdma_sc_parse_fpm_query_buf() 2937 hmc_info->first_sd_index = (u16)FIELD_GET(IRDMA_QUERY_FPM_FIRST_PE_SD_INDEX, temp); in irdma_sc_parse_fpm_query_buf() 2941 hmc_info->sd_table.sd_cnt = max_pe_sds + hmc_info->first_sd_index; in irdma_sc_parse_fpm_query_buf() [all …]
|
D | hw.c | 782 struct irdma_hmc_info *hmc_info, in irdma_close_hmc_objects_type() argument 787 info.hmc_info = hmc_info; in irdma_close_hmc_objects_type() 789 info.count = hmc_info->hmc_obj[obj_type].cnt; in irdma_close_hmc_objects_type() 805 struct irdma_hmc_info *hmc_info, bool privileged, in irdma_del_hmc_objects() argument 811 if (dev->hmc_info->hmc_obj[iw_hmc_obj_types[i]].cnt) in irdma_del_hmc_objects() 813 hmc_info, privileged, reset); in irdma_del_hmc_objects() 846 info.hmc_info = dev->hmc_info; in irdma_create_hmc_objs() 853 if (dev->hmc_info->hmc_obj[iw_hmc_obj_types[i]].cnt) { in irdma_create_hmc_objs() 855 info.count = dev->hmc_info->hmc_obj[info.rsrc_type].cnt; in irdma_create_hmc_objs() 876 if (dev->hmc_info->hmc_obj[iw_hmc_obj_types[i]].cnt) in irdma_create_hmc_objs() [all …]
|
D | pble.h | 64 struct irdma_hmc_info *hmc_info; member
|
D | type.h | 603 struct irdma_hmc_info *hmc_info; member
|
/linux-6.6.21/drivers/net/ethernet/intel/i40e/ |
D | i40e_hmc.c | 20 struct i40e_hmc_info *hmc_info, in i40e_add_sd_table_entry() argument 32 if (NULL == hmc_info->sd_table.sd_entry) { in i40e_add_sd_table_entry() 38 if (sd_index >= hmc_info->sd_table.sd_cnt) { in i40e_add_sd_table_entry() 44 sd_entry = &hmc_info->sd_table.sd_entry[sd_index]; in i40e_add_sd_table_entry() 75 hmc_info->sd_table.sd_entry[sd_index].entry_type = type; in i40e_add_sd_table_entry() 78 I40E_INC_SD_REFCNT(&hmc_info->sd_table); in i40e_add_sd_table_entry() 109 struct i40e_hmc_info *hmc_info, in i40e_add_pd_table_entry() argument 122 if (pd_index / I40E_HMC_PD_CNT_IN_SD >= hmc_info->sd_table.sd_cnt) { in i40e_add_pd_table_entry() 131 hmc_info->sd_table.sd_entry[sd_idx].entry_type) in i40e_add_pd_table_entry() 135 pd_table = &hmc_info->sd_table.sd_entry[sd_idx].u.pd_table; in i40e_add_pd_table_entry() [all …]
|
D | i40e_hmc.h | 155 #define I40E_FIND_SD_INDEX_LIMIT(hmc_info, type, index, cnt, sd_idx, sd_limit)\ argument 158 fpm_addr = (hmc_info)->hmc_obj[(type)].base + \ 159 (hmc_info)->hmc_obj[(type)].size * (index); \ 160 fpm_limit = fpm_addr + (hmc_info)->hmc_obj[(type)].size * (cnt);\ 179 #define I40E_FIND_PD_INDEX_LIMIT(hmc_info, type, idx, cnt, pd_index, pd_limit)\ argument 182 fpm_adr = (hmc_info)->hmc_obj[(type)].base + \ 183 (hmc_info)->hmc_obj[(type)].size * (idx); \ 184 fpm_limit = fpm_adr + (hmc_info)->hmc_obj[(type)].size * (cnt); \ 192 struct i40e_hmc_info *hmc_info, 197 struct i40e_hmc_info *hmc_info, [all …]
|
D | i40e_lan_hmc.c | 233 struct i40e_hmc_info *hmc_info, in i40e_remove_pd_page() argument 238 if (!i40e_prep_remove_pd_page(hmc_info, idx)) in i40e_remove_pd_page() 239 ret_code = i40e_remove_pd_page_new(hw, hmc_info, idx, true); in i40e_remove_pd_page() 260 struct i40e_hmc_info *hmc_info, in i40e_remove_sd_bp() argument 265 if (!i40e_prep_remove_sd_bp(hmc_info, idx)) in i40e_remove_sd_bp() 266 ret_code = i40e_remove_sd_bp_new(hw, hmc_info, idx, true); in i40e_remove_sd_bp() 296 if (NULL == info->hmc_info) { in i40e_create_lan_hmc_object() 301 if (I40E_HMC_INFO_SIGNATURE != info->hmc_info->signature) { in i40e_create_lan_hmc_object() 307 if (info->start_idx >= info->hmc_info->hmc_obj[info->rsrc_type].cnt) { in i40e_create_lan_hmc_object() 314 info->hmc_info->hmc_obj[info->rsrc_type].cnt) { in i40e_create_lan_hmc_object() [all …]
|
D | i40e_lan_hmc.h | 125 struct i40e_hmc_info *hmc_info; member 134 struct i40e_hmc_info *hmc_info; member
|