Home
last modified time | relevance | path

Searched refs:sd_table (Results 1 – 8 of 8) sorted by relevance

/src/sys/dev/ixl/
H A Di40e_hmc.c62 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()
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()
237 if (sd_idx >= hmc_info->sd_table.sd_cnt) { in i40e_remove_pd_bp()
242 sd_entry = &hmc_info->sd_table.sd_entry[sd_idx]; in i40e_remove_pd_bp()
[all …]
H A Di40e_lan_hmc.c223 hw->hmc.sd_table.ref_cnt = 0; in i40e_init_lan_hmc()
226 if (NULL == hw->hmc.sd_table.sd_entry) { in i40e_init_lan_hmc()
227 hw->hmc.sd_table.sd_cnt = (u32) in i40e_init_lan_hmc()
232 ret_code = i40e_allocate_virt_mem(hw, &hw->hmc.sd_table.addr, in i40e_init_lan_hmc()
234 hw->hmc.sd_table.sd_cnt)); in i40e_init_lan_hmc()
237 hw->hmc.sd_table.sd_entry = in i40e_init_lan_hmc()
238 (struct i40e_hmc_sd_entry *)hw->hmc.sd_table.addr.va; in i40e_init_lan_hmc()
359 if (sd_idx >= info->hmc_info->sd_table.sd_cnt || in i40e_create_lan_hmc_object()
360 sd_lmt > info->hmc_info->sd_table.sd_cnt) { in i40e_create_lan_hmc_object()
388 sd_entry = &info->hmc_info->sd_table.sd_entry[j]; in i40e_create_lan_hmc_object()
[all …]
H A Di40e_hmc.h111 struct i40e_hmc_sd_table sd_table; member
114 #define I40E_INC_SD_REFCNT(sd_table) ((sd_table)->ref_cnt++) argument
118 #define I40E_DEC_SD_REFCNT(sd_table) ((sd_table)->ref_cnt--) argument
/src/sys/dev/irdma/
H A Dirdma_hmc.c198 sd_entry = &hmc_info->sd_table.sd_entry[i]; in irdma_hmc_sd_grp()
295 if (sd_idx >= info->hmc_info->sd_table.sd_cnt || in irdma_sc_create_hmc_obj()
296 sd_lmt > info->hmc_info->sd_table.sd_cnt) { in irdma_sc_create_hmc_obj()
311 sd_entry = &info->hmc_info->sd_table.sd_entry[j]; in irdma_sc_create_hmc_obj()
346 sd_entry = &info->hmc_info->sd_table.sd_entry[j - 1]; in irdma_sc_create_hmc_obj()
392 sd_entry = &info->hmc_info->sd_table.sd_entry[sd_idx]; in irdma_finish_del_sd_reg()
452 if (!info->hmc_info->sd_table.sd_entry[sd_idx].valid) in irdma_sc_del_hmc_obj()
455 if (info->hmc_info->sd_table.sd_entry[sd_idx].entry_type != in irdma_sc_del_hmc_obj()
460 pd_table = &info->hmc_info->sd_table.sd_entry[sd_idx].u.pd_table; in irdma_sc_del_hmc_obj()
475 if (sd_idx >= info->hmc_info->sd_table.sd_cnt || in irdma_sc_del_hmc_obj()
[all …]
H A Dirdma_hmc.h134 struct irdma_hmc_sd_table sd_table; member
H A Dirdma_pble.c276 sd_entry = &hmc_info->sd_table.sd_entry[idx->sd_idx]; in add_pble_prm()
H A Dirdma_ctrl.c2975 hmc_info->sd_table.sd_cnt = max_pe_sds + hmc_info->first_sd_index; in irdma_sc_parse_fpm_query_buf()
4488 &hmc_info->sd_table.sd_cnt); in irdma_sc_cfg_iw_fpm()
4885 mem_size = sizeof(struct irdma_hmc_sd_entry) * hmc_info->sd_table.sd_cnt; in irdma_cfg_sd_mem()
4890 hmc_info->sd_table.sd_entry = virt_mem.va; in irdma_cfg_sd_mem()
4930 hmc_info->sd_table.sd_cnt, max_sds); in irdma_cfg_fpm_val()
5039 loop_count, sd_needed, hmc_info->sd_table.sd_cnt); in irdma_cfg_fpm_val()
5058 hmc_info->sd_table.sd_cnt, hmc_info->first_sd_index); in irdma_cfg_fpm_val()
H A Dirdma_hw.c1682 kfree(dev->hmc_info->sd_table.sd_entry); in irdma_del_init_mem()
1683 dev->hmc_info->sd_table.sd_entry = NULL; in irdma_del_init_mem()