Home
last modified time | relevance | path

Searched refs:hmc_info (Results 1 – 11 of 11) sorted by relevance

/drivers/infiniband/hw/irdma/
Dhmc.c22 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 …]
Dpble.c39 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 …]
Dhmc.h124 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);
Dctrl.c404 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 …]
Dhw.c782 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 …]
Dpble.h64 struct irdma_hmc_info *hmc_info; member
Dtype.h603 struct irdma_hmc_info *hmc_info; member
/drivers/net/ethernet/intel/i40e/
Di40e_hmc.c18 struct i40e_hmc_info *hmc_info, in i40e_add_sd_table_entry() argument
29 if (NULL == hmc_info->sd_table.sd_entry) { in i40e_add_sd_table_entry()
35 if (sd_index >= hmc_info->sd_table.sd_cnt) { in i40e_add_sd_table_entry()
41 sd_entry = &hmc_info->sd_table.sd_entry[sd_index]; in i40e_add_sd_table_entry()
69 hmc_info->sd_table.sd_entry[sd_index].entry_type = type; in i40e_add_sd_table_entry()
72 I40E_INC_SD_REFCNT(&hmc_info->sd_table); in i40e_add_sd_table_entry()
103 struct i40e_hmc_info *hmc_info, in i40e_add_pd_table_entry() argument
116 if (pd_index / I40E_HMC_PD_CNT_IN_SD >= hmc_info->sd_table.sd_cnt) { in i40e_add_pd_table_entry()
125 hmc_info->sd_table.sd_entry[sd_idx].entry_type) in i40e_add_pd_table_entry()
129 pd_table = &hmc_info->sd_table.sd_entry[sd_idx].u.pd_table; in i40e_add_pd_table_entry()
[all …]
Di40e_hmc.h159 #define I40E_FIND_SD_INDEX_LIMIT(hmc_info, type, index, cnt, sd_idx, sd_limit)\ argument
162 fpm_addr = (hmc_info)->hmc_obj[(type)].base + \
163 (hmc_info)->hmc_obj[(type)].size * (index); \
164 fpm_limit = fpm_addr + (hmc_info)->hmc_obj[(type)].size * (cnt);\
183 #define I40E_FIND_PD_INDEX_LIMIT(hmc_info, type, idx, cnt, pd_index, pd_limit)\ argument
186 fpm_adr = (hmc_info)->hmc_obj[(type)].base + \
187 (hmc_info)->hmc_obj[(type)].size * (idx); \
188 fpm_limit = fpm_adr + (hmc_info)->hmc_obj[(type)].size * (cnt); \
196 struct i40e_hmc_info *hmc_info,
201 struct i40e_hmc_info *hmc_info,
[all …]
Di40e_lan_hmc.c230 struct i40e_hmc_info *hmc_info, in i40e_remove_pd_page() argument
235 if (!i40e_prep_remove_pd_page(hmc_info, idx)) in i40e_remove_pd_page()
236 ret_code = i40e_remove_pd_page_new(hw, hmc_info, idx, true); in i40e_remove_pd_page()
257 struct i40e_hmc_info *hmc_info, in i40e_remove_sd_bp() argument
262 if (!i40e_prep_remove_sd_bp(hmc_info, idx)) in i40e_remove_sd_bp()
263 ret_code = i40e_remove_sd_bp_new(hw, hmc_info, idx, true); in i40e_remove_sd_bp()
293 if (NULL == info->hmc_info) { in i40e_create_lan_hmc_object()
298 if (I40E_HMC_INFO_SIGNATURE != info->hmc_info->signature) { in i40e_create_lan_hmc_object()
304 if (info->start_idx >= info->hmc_info->hmc_obj[info->rsrc_type].cnt) { in i40e_create_lan_hmc_object()
311 info->hmc_info->hmc_obj[info->rsrc_type].cnt) { in i40e_create_lan_hmc_object()
[all …]
Di40e_lan_hmc.h127 struct i40e_hmc_info *hmc_info; member
136 struct i40e_hmc_info *hmc_info; member