/freebsd/sys/dev/irdma/ |
H A D | irdma_hmc.c | 55 irdma_find_sd_index_limit(struct irdma_hmc_info *hmc_info, u32 type, in irdma_find_sd_index_limit() argument 61 fpm_addr = hmc_info->hmc_obj[(type)].base + in irdma_find_sd_index_limit() 62 hmc_info->hmc_obj[type].size * idx; in irdma_find_sd_index_limit() 63 fpm_limit = fpm_addr + hmc_info->hmc_obj[type].size * cnt; in irdma_find_sd_index_limit() 83 irdma_find_pd_index_limit(struct irdma_hmc_info *hmc_info, u32 type, in irdma_find_pd_index_limit() argument 89 fpm_adr = hmc_info->hmc_obj[type].base + in irdma_find_pd_index_limit() 90 hmc_info->hmc_obj[type].size * idx; in irdma_find_pd_index_limit() 91 fpm_limit = fpm_adr + (hmc_info)->hmc_obj[(type)].size * (cnt); in irdma_find_pd_index_limit() 187 struct irdma_hmc_info *hmc_info, u32 sd_index, in irdma_hmc_sd_grp() argument 196 sdinfo.hmc_fn_id = hmc_info->hmc_fn_id; in irdma_hmc_sd_grp() [all …]
|
H A D | irdma_pble.c | 75 struct irdma_hmc_info *hmc_info; in irdma_hmc_init_pble() local 79 hmc_info = dev->hmc_info; in irdma_hmc_init_pble() 81 pble_rsrc->fpm_base_addr = hmc_info->hmc_obj[IRDMA_HMC_IW_PBLE].base; in irdma_hmc_init_pble() 86 hmc_info->hmc_obj[IRDMA_HMC_IW_PBLE].cnt - fpm_idx; in irdma_hmc_init_pble() 129 struct irdma_hmc_info *hmc_info = info->hmc_info; in add_sd_direct() local 134 ret_code = irdma_add_sd_table_entry(dev->hw, hmc_info, in add_sd_direct() 182 struct irdma_hmc_info *hmc_info = info->hmc_info; in add_bp_pages() local 192 status = irdma_add_sd_table_entry(dev->hw, hmc_info, info->idx.sd_idx, in add_bp_pages() 205 status = irdma_add_pd_table_entry(dev, hmc_info, in add_bp_pages() 249 struct irdma_hmc_info *hmc_info; in add_pble_prm() local [all …]
|
H A D | irdma_hmc.h | 156 struct irdma_hmc_info *hmc_info; member 167 struct irdma_hmc_info *hmc_info; member 188 struct irdma_hmc_info *hmc_info, u32 sd_index, 191 struct irdma_hmc_info *hmc_info, u32 pd_index, 194 struct irdma_hmc_info *hmc_info, u32 idx); 195 int irdma_prep_remove_sd_bp(struct irdma_hmc_info *hmc_info, u32 idx); 196 int irdma_prep_remove_pd_page(struct irdma_hmc_info *hmc_info, u32 idx);
|
H A D | irdma_ctrl.c | 461 pble_obj_cnt = info->pd->dev->hmc_info->hmc_obj[IRDMA_HMC_IW_PBLE].cnt; in irdma_sc_qp_init() 518 qp->qp_uk.qp_id > (cqp->dev->hmc_info->hmc_obj[IRDMA_HMC_IW_QP].max_cnt - 1)) in irdma_sc_qp_create() 1224 pble_obj_cnt = dev->hmc_info->hmc_obj[IRDMA_HMC_IW_PBLE].cnt; in irdma_sc_mr_reg_non_shared() 2545 pble_obj_cnt = info->dev->hmc_info->hmc_obj[IRDMA_HMC_IW_PBLE].cnt; in irdma_sc_cq_init() 2591 if (cq->cq_uk.cq_id > (cqp->dev->hmc_info->hmc_obj[IRDMA_HMC_IW_CQ].max_cnt - 1)) in irdma_sc_cq_create() 2734 pble_obj_cnt = cq->dev->hmc_info->hmc_obj[IRDMA_HMC_IW_PBLE].cnt; in irdma_sc_cq_modify() 3004 struct irdma_hmc_info *hmc_info, in irdma_sc_parse_fpm_query_buf() argument 3012 obj_info = hmc_info->hmc_obj; in irdma_sc_parse_fpm_query_buf() 3015 hmc_info->first_sd_index = (u16)FIELD_GET(IRDMA_QUERY_FPM_FIRST_PE_SD_INDEX, temp); in irdma_sc_parse_fpm_query_buf() 3019 hmc_info->sd_table.sd_cnt = max_pe_sds + hmc_info->first_sd_index; in irdma_sc_parse_fpm_query_buf() [all …]
|
H A D | irdma_hw.c | 815 struct irdma_hmc_info *hmc_info, in irdma_close_hmc_objects_type() argument 820 info.hmc_info = hmc_info; in irdma_close_hmc_objects_type() 822 info.count = hmc_info->hmc_obj[obj_type].cnt; in irdma_close_hmc_objects_type() 839 struct irdma_hmc_info *hmc_info, bool privileged, in irdma_del_hmc_objects() argument 845 if (dev->hmc_info->hmc_obj[iw_hmc_obj_types[i]].cnt) in irdma_del_hmc_objects() 847 hmc_info, privileged, reset); in irdma_del_hmc_objects() 882 info.hmc_info = dev->hmc_info; in irdma_create_hmc_objs() 889 if (dev->hmc_info->hmc_obj[iw_hmc_obj_types[i]].cnt) { in irdma_create_hmc_objs() 891 info.count = dev->hmc_info->hmc_obj[info.rsrc_type].cnt; in irdma_create_hmc_objs() 912 if (dev->hmc_info->hmc_obj[iw_hmc_obj_types[i]].cnt) in irdma_create_hmc_objs() [all …]
|
H A D | irdma_pble.h | 96 struct irdma_hmc_info *hmc_info; member
|
H A D | irdma_main.h | 591 struct irdma_hmc_info *hmc_info, bool privileged,
|
H A D | irdma_type.h | 643 struct irdma_hmc_info *hmc_info; member
|
/freebsd/sys/dev/ixl/ |
H A D | i40e_hmc.c | 50 struct i40e_hmc_info *hmc_info, in i40e_add_sd_table_entry() argument 62 if (NULL == hmc_info->sd_table.sd_entry) { in i40e_add_sd_table_entry() 68 if (sd_index >= hmc_info->sd_table.sd_cnt) { in i40e_add_sd_table_entry() 74 sd_entry = &hmc_info->sd_table.sd_entry[sd_index]; in i40e_add_sd_table_entry() 109 hmc_info->sd_table.sd_entry[sd_index].entry_type = type; in i40e_add_sd_table_entry() 112 I40E_INC_SD_REFCNT(&hmc_info->sd_table); in i40e_add_sd_table_entry() 143 struct i40e_hmc_info *hmc_info, in i40e_add_pd_table_entry() argument 156 if (pd_index / I40E_HMC_PD_CNT_IN_SD >= hmc_info->sd_table.sd_cnt) { in i40e_add_pd_table_entry() 165 hmc_info->sd_table.sd_entry[sd_idx].entry_type) in i40e_add_pd_table_entry() 169 pd_table = &hmc_info->sd_table.sd_entry[sd_idx].u.pd_table; in i40e_add_pd_table_entry() [all …]
|
H A D | i40e_hmc.h | 186 #define I40E_FIND_SD_INDEX_LIMIT(hmc_info, type, index, cnt, sd_idx, sd_limit)\ argument 189 fpm_addr = (hmc_info)->hmc_obj[(type)].base + \ 190 (hmc_info)->hmc_obj[(type)].size * (index); \ 191 fpm_limit = fpm_addr + (hmc_info)->hmc_obj[(type)].size * (cnt);\ 210 #define I40E_FIND_PD_INDEX_LIMIT(hmc_info, type, idx, cnt, pd_index, pd_limit)\ argument 213 fpm_adr = (hmc_info)->hmc_obj[(type)].base + \ 214 (hmc_info)->hmc_obj[(type)].size * (idx); \ 215 fpm_limit = fpm_adr + (hmc_info)->hmc_obj[(type)].size * (cnt); \ 222 struct i40e_hmc_info *hmc_info, 228 struct i40e_hmc_info *hmc_info, [all …]
|
H A D | i40e_lan_hmc.c | 267 struct i40e_hmc_info *hmc_info, in i40e_remove_pd_page() argument 272 if (i40e_prep_remove_pd_page(hmc_info, idx) == I40E_SUCCESS) in i40e_remove_pd_page() 273 ret_code = i40e_remove_pd_page_new(hw, hmc_info, idx, TRUE); in i40e_remove_pd_page() 294 struct i40e_hmc_info *hmc_info, in i40e_remove_sd_bp() argument 299 if (i40e_prep_remove_sd_bp(hmc_info, idx) == I40E_SUCCESS) in i40e_remove_sd_bp() 300 ret_code = i40e_remove_sd_bp_new(hw, hmc_info, idx, TRUE); in i40e_remove_sd_bp() 330 if (NULL == info->hmc_info) { in i40e_create_lan_hmc_object() 335 if (I40E_HMC_INFO_SIGNATURE != info->hmc_info->signature) { in i40e_create_lan_hmc_object() 341 if (info->start_idx >= info->hmc_info->hmc_obj[info->rsrc_type].cnt) { in i40e_create_lan_hmc_object() 348 info->hmc_info->hmc_obj[info->rsrc_type].cnt) { in i40e_create_lan_hmc_object() [all …]
|
H A D | i40e_lan_hmc.h | 155 struct i40e_hmc_info *hmc_info; member 164 struct i40e_hmc_info *hmc_info; member
|