Home
last modified time | relevance | path

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

/openbmc/linux/drivers/infiniband/hw/irdma/
H A Dhmc.c28 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()
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()
155 sdinfo.hmc_fn_id = hmc_info->hmc_fn_id; in irdma_hmc_sd_grp()
264 (dev->hmc_info == info->hmc_info && in irdma_sc_create_hmc_obj()
271 info->hmc_info, in irdma_sc_create_hmc_obj()
449 if (dev->hmc_info != info->hmc_info && in irdma_sc_del_hmc_obj()
518 hmc_info->sd_table.use_cnt++; in irdma_add_sd_table_entry()
673 hmc_info->sd_table.use_cnt--; in irdma_prep_remove_sd_bp()
[all …]
H A 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()
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
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
232 hmc_info = dev->hmc_info; in add_pble_prm()
236 sd_entry = &hmc_info->sd_table.sd_entry[idx->sd_idx]; in add_pble_prm()
[all …]
H A 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);
H A Dctrl.c2934 obj_info = hmc_info->hmc_obj; 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()
4316 hmc_info = dev->hmc_info; in irdma_sc_init_iw_hmc()
4353 hmc_info = dev->hmc_info; in irdma_sc_cfg_iw_fpm()
4354 obj_info = hmc_info->hmc_obj; in irdma_sc_cfg_iw_fpm()
4398 hmc_info->hmc_obj, in irdma_sc_cfg_iw_fpm()
4806 hmc_info = dev->hmc_info; in irdma_cfg_fpm_val()
4818 hmc_info->hmc_obj[i].cnt = hmc_info->hmc_obj[i].max_cnt; in irdma_cfg_fpm_val()
4877 hmc_info->hmc_obj[IRDMA_HMC_IW_Q1].cnt = irdma_q1_cnt(dev, hmc_info, qpwanted); in irdma_cfg_fpm_val()
4952 hmc_info->sd_table.sd_cnt, hmc_info->first_sd_index); in irdma_cfg_fpm_val()
[all …]
H A 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()
813 hmc_info, privileged, reset); in irdma_del_hmc_objects()
846 info.hmc_info = dev->hmc_info; in irdma_create_hmc_objs()
878 dev->hmc_info, privileged, in irdma_create_hmc_objs()
1384 struct irdma_hmc_info *hmc_info = rf->sc_dev.hmc_info; in irdma_create_aeq() local
1390 hmc_info->hmc_obj[IRDMA_HMC_IW_CQ].cnt; in irdma_create_aeq()
1574 kfree(dev->hmc_info->sd_table.sd_entry); in irdma_del_init_mem()
1575 dev->hmc_info->sd_table.sd_entry = NULL; in irdma_del_init_mem()
[all …]
H A Dpble.h64 struct irdma_hmc_info *hmc_info; member
H A Dtype.h603 struct irdma_hmc_info *hmc_info; member
/openbmc/linux/drivers/net/ethernet/intel/i40e/
H A 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()
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
182 struct i40e_hmc_info *hmc_info, in i40e_remove_pd_bp() argument
195 if (sd_idx >= hmc_info->sd_table.sd_cnt) { in i40e_remove_pd_bp()
250 I40E_DEC_SD_REFCNT(&hmc_info->sd_table); in i40e_prep_remove_sd_bp()
266 struct i40e_hmc_info *hmc_info, in i40e_remove_sd_bp_new() argument
302 I40E_DEC_SD_REFCNT(&hmc_info->sd_table); in i40e_prep_remove_pd_page()
[all …]
H A Di40e_hmc.h162 fpm_addr = (hmc_info)->hmc_obj[(type)].base + \
163 (hmc_info)->hmc_obj[(type)].size * (index); \
186 fpm_adr = (hmc_info)->hmc_obj[(type)].base + \
187 (hmc_info)->hmc_obj[(type)].size * (idx); \
196 struct i40e_hmc_info *hmc_info,
201 struct i40e_hmc_info *hmc_info,
205 struct i40e_hmc_info *hmc_info,
207 int i40e_prep_remove_sd_bp(struct i40e_hmc_info *hmc_info,
210 struct i40e_hmc_info *hmc_info,
212 int i40e_prep_remove_pd_page(struct i40e_hmc_info *hmc_info,
[all …]
H A Di40e_lan_hmc.c230 struct i40e_hmc_info *hmc_info, in i40e_remove_pd_page() argument
257 struct i40e_hmc_info *hmc_info, in i40e_remove_sd_bp() argument
293 if (NULL == info->hmc_info) { in i40e_create_lan_hmc_object()
364 info->hmc_info, in i40e_create_lan_hmc_object()
374 i40e_remove_pd_bp(hw, info->hmc_info, in i40e_create_lan_hmc_object()
444 info.hmc_info = &hw->hmc; in i40e_configure_lan_hmc()
534 if (NULL == info->hmc_info) { in i40e_delete_lan_hmc_object()
551 if (NULL == info->hmc_info->hmc_obj) { in i40e_delete_lan_hmc_object()
637 info.hmc_info = &hw->hmc; in i40e_shutdown_lan_hmc()
986 if (NULL == hmc_info) { in i40e_hmc_get_object_va()
[all …]
H A Di40e_lan_hmc.h127 struct i40e_hmc_info *hmc_info; member
136 struct i40e_hmc_info *hmc_info; member