Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/infiniband/hw/i40iw/
Di40iw_hmc.c58 static inline void i40iw_find_sd_index_limit(struct i40iw_hmc_info *hmc_info, in i40iw_find_sd_index_limit() argument
67 fpm_addr = hmc_info->hmc_obj[(type)].base + in i40iw_find_sd_index_limit()
68 hmc_info->hmc_obj[type].size * idx; in i40iw_find_sd_index_limit()
69 fpm_limit = fpm_addr + hmc_info->hmc_obj[type].size * cnt; in i40iw_find_sd_index_limit()
88 static inline void i40iw_find_pd_index_limit(struct i40iw_hmc_info *hmc_info, in i40iw_find_pd_index_limit() argument
97 fpm_adr = hmc_info->hmc_obj[type].base + in i40iw_find_pd_index_limit()
98 hmc_info->hmc_obj[type].size * idx; in i40iw_find_pd_index_limit()
99 fpm_limit = fpm_adr + (hmc_info)->hmc_obj[(type)].size * (cnt); in i40iw_find_pd_index_limit()
176 struct i40iw_hmc_info *hmc_info, in i40iw_hmc_sd_grp() argument
188 sdinfo.hmc_fn_id = hmc_info->hmc_fn_id; in i40iw_hmc_sd_grp()
[all …]
Di40iw_pble.c85 struct i40iw_hmc_info *hmc_info; in i40iw_hmc_init_pble() local
88 hmc_info = dev->hmc_info; in i40iw_hmc_init_pble()
89 pble_rsrc->fpm_base_addr = hmc_info->hmc_obj[I40IW_HMC_IW_PBLE].base; in i40iw_hmc_init_pble()
95 hmc_info->hmc_obj[I40IW_HMC_IW_PBLE].cnt - fpm_idx; in i40iw_hmc_init_pble()
139 struct i40iw_hmc_info *hmc_info = info->hmc_info; in add_sd_direct() local
145 ret_code = i40iw_add_sd_table_entry(dev->hw, hmc_info, in add_sd_direct()
258 struct i40iw_hmc_info *hmc_info = info->hmc_info; in add_bp_pages() local
269 status = i40iw_add_sd_table_entry(dev->hw, hmc_info, in add_bp_pages()
291 status = i40iw_add_pd_table_entry(dev->hw, hmc_info, pd_idx++, &mem); in add_bp_pages()
328 struct i40iw_hmc_info *hmc_info; in add_pble_pool() local
[all …]
Di40iw_hmc.h192 struct i40iw_hmc_info *hmc_info; member
203 struct i40iw_hmc_info *hmc_info; member
228 struct i40iw_hmc_info *hmc_info, u32 sd_index,
231 struct i40iw_hmc_info *hmc_info, u32 pd_index,
234 struct i40iw_hmc_info *hmc_info, u32 idx, bool is_pf);
235 enum i40iw_status_code i40iw_prep_remove_sd_bp(struct i40iw_hmc_info *hmc_info, u32 idx);
236 enum i40iw_status_code i40iw_prep_remove_pd_page(struct i40iw_hmc_info *hmc_info, u32 idx);
Di40iw_ctrl.c216 struct i40iw_hmc_info *hmc_info, in i40iw_sc_parse_fpm_query_buf() argument
224 obj_info = hmc_info->hmc_obj; in i40iw_sc_parse_fpm_query_buf()
227 hmc_info->first_sd_index = (u16)RS_64(temp, I40IW_QUERY_FPM_FIRST_PE_SD_INDEX); in i40iw_sc_parse_fpm_query_buf()
231 if (hmc_info->hmc_fn_id >= I40IW_FIRST_VF_FPM_ID) in i40iw_sc_parse_fpm_query_buf()
234 hmc_info->sd_table.sd_cnt = max_pe_sds + hmc_info->first_sd_index; in i40iw_sc_parse_fpm_query_buf()
1486 pble_obj_cnt = info->dev->hmc_info->hmc_obj[I40IW_HMC_IW_PBLE].cnt; in i40iw_sc_ceq_init()
1672 pble_obj_cnt = info->dev->hmc_info->hmc_obj[I40IW_HMC_IW_PBLE].cnt; in i40iw_sc_aeq_init()
1945 pble_obj_cnt = info->dev->hmc_info->hmc_obj[I40IW_HMC_IW_PBLE].cnt; in i40iw_sc_ccq_init()
2117 pble_obj_cnt = info->dev->hmc_info->hmc_obj[I40IW_HMC_IW_PBLE].cnt; in i40iw_sc_cq_init()
2278 pble_obj_cnt = cq->dev->hmc_info->hmc_obj[I40IW_HMC_IW_PBLE].cnt; in i40iw_sc_cq_modify()
[all …]
Di40iw_virtchnl.c339 struct i40iw_hmc_info *hmc_info = &vf_dev->hmc_info; in pf_add_hmc_obj_callback() local
355 info.hmc_info = hmc_info; in pf_add_hmc_obj_callback()
366 vf_dev->hmc_info.hmc_obj[add_hmc_obj->obj_type].cnt = add_hmc_obj->obj_count; in pf_add_hmc_obj_callback()
379 struct i40iw_hmc_info *hmc_info = &vf_dev->hmc_info; in pf_del_hmc_obj_callback() local
391 info.hmc_info = hmc_info; in pf_del_hmc_obj_callback()
484 vf_dev->hmc_info.hmc_obj = (struct i40iw_hmc_obj_info *)(&vf_dev[1]); in i40iw_vchnl_recv_pf()
487 vf_dev, &vf_dev->hmc_info, vf_dev->hmc_info.hmc_obj); in i40iw_vchnl_recv_pf()
Di40iw_main.c408 struct i40iw_hmc_info *hmc_info, in i40iw_close_hmc_objects_type() argument
415 info.hmc_info = hmc_info; in i40iw_close_hmc_objects_type()
417 info.count = hmc_info->hmc_obj[obj_type].cnt; in i40iw_close_hmc_objects_type()
432 struct i40iw_hmc_info *hmc_info, in i40iw_del_hmc_objects() argument
439 i40iw_close_hmc_objects_type(dev, iw_hmc_obj_types[i], hmc_info, is_pf, reset); in i40iw_del_hmc_objects()
484 info.hmc_info = dev->hmc_info; in i40iw_create_hmc_objs()
489 info.count = dev->hmc_info->hmc_obj[info.rsrc_type].cnt; in i40iw_create_hmc_objs()
508 dev->hmc_info, in i40iw_create_hmc_objs()
734 iwdev->sc_dev.hmc_info->hmc_obj[I40IW_HMC_IW_CQ].cnt; in i40iw_create_ceq()
743 info.elem_cnt = iwdev->sc_dev.hmc_info->hmc_obj[I40IW_HMC_IW_CQ].cnt; in i40iw_create_ceq()
[all …]
Di40iw_pble.h85 struct i40iw_hmc_info *hmc_info; member
Di40iw_hw.c60 max_qp = iwdev->sc_dev.hmc_info->hmc_obj[I40IW_HMC_IW_QP].cnt; in i40iw_initialize_hw_resources()
61 max_cq = iwdev->sc_dev.hmc_info->hmc_obj[I40IW_HMC_IW_CQ].cnt; in i40iw_initialize_hw_resources()
62 max_mr = iwdev->sc_dev.hmc_info->hmc_obj[I40IW_HMC_IW_MR].cnt; in i40iw_initialize_hw_resources()
63 arp_table_size = iwdev->sc_dev.hmc_info->hmc_obj[I40IW_HMC_IW_ARP].cnt; in i40iw_initialize_hw_resources()
Di40iw_type.h440 struct i40iw_hmc_info hmc_info; member
483 struct i40iw_hmc_info *hmc_info; member
/Linux-v4.19/drivers/net/ethernet/intel/i40e/
Di40e_hmc.c20 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 …]
Di40e_hmc.h156 #define I40E_FIND_SD_INDEX_LIMIT(hmc_info, type, index, cnt, sd_idx, sd_limit)\ argument
159 fpm_addr = (hmc_info)->hmc_obj[(type)].base + \
160 (hmc_info)->hmc_obj[(type)].size * (index); \
161 fpm_limit = fpm_addr + (hmc_info)->hmc_obj[(type)].size * (cnt);\
180 #define I40E_FIND_PD_INDEX_LIMIT(hmc_info, type, idx, cnt, pd_index, pd_limit)\ argument
183 fpm_adr = (hmc_info)->hmc_obj[(type)].base + \
184 (hmc_info)->hmc_obj[(type)].size * (idx); \
185 fpm_limit = fpm_adr + (hmc_info)->hmc_obj[(type)].size * (cnt); \
192 struct i40e_hmc_info *hmc_info,
198 struct i40e_hmc_info *hmc_info,
[all …]
Di40e_lan_hmc.c232 struct i40e_hmc_info *hmc_info, in i40e_remove_pd_page() argument
237 if (!i40e_prep_remove_pd_page(hmc_info, idx)) in i40e_remove_pd_page()
238 ret_code = i40e_remove_pd_page_new(hw, hmc_info, idx, true); in i40e_remove_pd_page()
259 struct i40e_hmc_info *hmc_info, in i40e_remove_sd_bp() argument
264 if (!i40e_prep_remove_sd_bp(hmc_info, idx)) in i40e_remove_sd_bp()
265 ret_code = i40e_remove_sd_bp_new(hw, hmc_info, idx, true); in i40e_remove_sd_bp()
295 if (NULL == info->hmc_info) { in i40e_create_lan_hmc_object()
300 if (I40E_HMC_INFO_SIGNATURE != info->hmc_info->signature) { in i40e_create_lan_hmc_object()
306 if (info->start_idx >= info->hmc_info->hmc_obj[info->rsrc_type].cnt) { in i40e_create_lan_hmc_object()
313 info->hmc_info->hmc_obj[info->rsrc_type].cnt) { in i40e_create_lan_hmc_object()
[all …]
Di40e_lan_hmc.h125 struct i40e_hmc_info *hmc_info; member
134 struct i40e_hmc_info *hmc_info; member
/Linux-v4.19/drivers/net/ethernet/intel/i40evf/
Di40e_hmc.h156 #define I40E_FIND_SD_INDEX_LIMIT(hmc_info, type, index, cnt, sd_idx, sd_limit)\ argument
159 fpm_addr = (hmc_info)->hmc_obj[(type)].base + \
160 (hmc_info)->hmc_obj[(type)].size * (index); \
161 fpm_limit = fpm_addr + (hmc_info)->hmc_obj[(type)].size * (cnt);\
180 #define I40E_FIND_PD_INDEX_LIMIT(hmc_info, type, idx, cnt, pd_index, pd_limit)\ argument
183 fpm_adr = (hmc_info)->hmc_obj[(type)].base + \
184 (hmc_info)->hmc_obj[(type)].size * (idx); \
185 fpm_limit = fpm_adr + (hmc_info)->hmc_obj[(type)].size * (cnt); \
192 struct i40e_hmc_info *hmc_info,
198 struct i40e_hmc_info *hmc_info,
[all …]
Di40e_lan_hmc.h125 struct i40e_hmc_info *hmc_info; member
134 struct i40e_hmc_info *hmc_info; member