| /OK3568_Linux_fs/kernel/drivers/infiniband/hw/i40iw/ |
| H A D | i40iw_hmc.c | 58 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 …]
|
| H A D | i40iw_pble.c | 85 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 …]
|
| H A D | i40iw_hmc.h | 192 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);
|
| H A D | i40iw_ctrl.c | 216 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() 1575 pble_obj_cnt = info->dev->hmc_info->hmc_obj[I40IW_HMC_IW_PBLE].cnt; in i40iw_sc_ceq_init() 1761 pble_obj_cnt = info->dev->hmc_info->hmc_obj[I40IW_HMC_IW_PBLE].cnt; in i40iw_sc_aeq_init() 2033 pble_obj_cnt = info->dev->hmc_info->hmc_obj[I40IW_HMC_IW_PBLE].cnt; in i40iw_sc_ccq_init() 2205 pble_obj_cnt = info->dev->hmc_info->hmc_obj[I40IW_HMC_IW_PBLE].cnt; in i40iw_sc_cq_init() 2366 pble_obj_cnt = cq->dev->hmc_info->hmc_obj[I40IW_HMC_IW_PBLE].cnt; in i40iw_sc_cq_modify() [all …]
|
| H A D | i40iw_virtchnl.c | 339 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()
|
| H A D | i40iw_main.c | 404 struct i40iw_hmc_info *hmc_info, in i40iw_close_hmc_objects_type() argument 411 info.hmc_info = hmc_info; in i40iw_close_hmc_objects_type() 413 info.count = hmc_info->hmc_obj[obj_type].cnt; in i40iw_close_hmc_objects_type() 428 struct i40iw_hmc_info *hmc_info, in i40iw_del_hmc_objects() argument 435 i40iw_close_hmc_objects_type(dev, iw_hmc_obj_types[i], hmc_info, is_pf, reset); in i40iw_del_hmc_objects() 480 info.hmc_info = dev->hmc_info; in i40iw_create_hmc_objs() 485 info.count = dev->hmc_info->hmc_obj[info.rsrc_type].cnt; in i40iw_create_hmc_objs() 504 dev->hmc_info, in i40iw_create_hmc_objs() 730 iwdev->sc_dev.hmc_info->hmc_obj[I40IW_HMC_IW_CQ].cnt; in i40iw_create_ceq() 739 info.elem_cnt = iwdev->sc_dev.hmc_info->hmc_obj[I40IW_HMC_IW_CQ].cnt; in i40iw_create_ceq() [all …]
|
| H A D | i40iw_pble.h | 85 struct i40iw_hmc_info *hmc_info; member
|
| H A D | i40iw_hw.c | 60 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()
|
| H A D | i40iw_type.h | 446 struct i40iw_hmc_info hmc_info; member 489 struct i40iw_hmc_info *hmc_info; member
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/intel/i40e/ |
| H A D | i40e_hmc.c | 21 struct i40e_hmc_info *hmc_info, in i40e_add_sd_table_entry() argument 33 if (NULL == hmc_info->sd_table.sd_entry) { in i40e_add_sd_table_entry() 39 if (sd_index >= hmc_info->sd_table.sd_cnt) { in i40e_add_sd_table_entry() 45 sd_entry = &hmc_info->sd_table.sd_entry[sd_index]; in i40e_add_sd_table_entry() 76 hmc_info->sd_table.sd_entry[sd_index].entry_type = type; in i40e_add_sd_table_entry() 79 I40E_INC_SD_REFCNT(&hmc_info->sd_table); in i40e_add_sd_table_entry() 110 struct i40e_hmc_info *hmc_info, in i40e_add_pd_table_entry() argument 123 if (pd_index / I40E_HMC_PD_CNT_IN_SD >= hmc_info->sd_table.sd_cnt) { in i40e_add_pd_table_entry() 132 hmc_info->sd_table.sd_entry[sd_idx].entry_type) in i40e_add_pd_table_entry() 136 pd_table = &hmc_info->sd_table.sd_entry[sd_idx].u.pd_table; in i40e_add_pd_table_entry() [all …]
|
| H A 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 …]
|
| H A 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); \ 191 struct i40e_hmc_info *hmc_info, 197 struct i40e_hmc_info *hmc_info, [all …]
|
| H A D | i40e_lan_hmc.h | 125 struct i40e_hmc_info *hmc_info; member 134 struct i40e_hmc_info *hmc_info; member
|