Home
last modified time | relevance | path

Searched refs:sd_table (Results 1 - 16 of 16) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/ethernet/intel/i40e/
H A Di40e_hmc.c33 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()
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()
202 if (sd_idx >= hmc_info->sd_table.sd_cnt) { in i40e_remove_pd_bp()
207 sd_entry = &hmc_info->sd_table in i40e_remove_pd_bp()
[all...]
H A Di40e_lan_hmc.c194 hw->hmc.sd_table.ref_cnt = 0; in i40e_init_lan_hmc()
197 if (NULL == hw->hmc.sd_table.sd_entry) { in i40e_init_lan_hmc()
198 hw->hmc.sd_table.sd_cnt = (u32) in i40e_init_lan_hmc()
202 /* allocate the sd_entry members in the sd_table */ in i40e_init_lan_hmc()
203 ret_code = i40e_allocate_virt_mem(hw, &hw->hmc.sd_table.addr, in i40e_init_lan_hmc()
205 hw->hmc.sd_table.sd_cnt)); in i40e_init_lan_hmc()
208 hw->hmc.sd_table.sd_entry = in i40e_init_lan_hmc()
209 (struct i40e_hmc_sd_entry *)hw->hmc.sd_table.addr.va; in i40e_init_lan_hmc()
325 if (sd_idx >= info->hmc_info->sd_table.sd_cnt || in i40e_create_lan_hmc_object()
326 sd_lmt > info->hmc_info->sd_table in i40e_create_lan_hmc_object()
[all...]
H A Di40e_hmc.h80 struct i40e_hmc_sd_table sd_table; member
83 #define I40E_INC_SD_REFCNT(sd_table) ((sd_table)->ref_cnt++)
87 #define I40E_DEC_SD_REFCNT(sd_table) ((sd_table)->ref_cnt--)
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/i40e/
H A Di40e_hmc.c32 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()
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()
201 if (sd_idx >= hmc_info->sd_table.sd_cnt) { in i40e_remove_pd_bp()
206 sd_entry = &hmc_info->sd_table in i40e_remove_pd_bp()
[all...]
H A Di40e_lan_hmc.c194 hw->hmc.sd_table.ref_cnt = 0; in i40e_init_lan_hmc()
197 if (NULL == hw->hmc.sd_table.sd_entry) { in i40e_init_lan_hmc()
198 hw->hmc.sd_table.sd_cnt = (u32) in i40e_init_lan_hmc()
202 /* allocate the sd_entry members in the sd_table */ in i40e_init_lan_hmc()
203 ret_code = i40e_allocate_virt_mem(hw, &hw->hmc.sd_table.addr, in i40e_init_lan_hmc()
205 hw->hmc.sd_table.sd_cnt)); in i40e_init_lan_hmc()
208 hw->hmc.sd_table.sd_entry = in i40e_init_lan_hmc()
209 (struct i40e_hmc_sd_entry *)hw->hmc.sd_table.addr.va; in i40e_init_lan_hmc()
325 if (sd_idx >= info->hmc_info->sd_table.sd_cnt || in i40e_create_lan_hmc_object()
326 sd_lmt > info->hmc_info->sd_table in i40e_create_lan_hmc_object()
[all...]
H A Di40e_hmc.h80 struct i40e_hmc_sd_table sd_table; member
83 #define I40E_INC_SD_REFCNT(sd_table) ((sd_table)->ref_cnt++)
87 #define I40E_DEC_SD_REFCNT(sd_table) ((sd_table)->ref_cnt--)
/kernel/linux/linux-6.6/drivers/infiniband/hw/irdma/
H A Dhmc.c157 sd_entry = &hmc_info->sd_table.sd_entry[i]; in irdma_hmc_sd_grp()
246 if (sd_idx >= info->hmc_info->sd_table.sd_cnt || in irdma_sc_create_hmc_obj()
247 sd_lmt > info->hmc_info->sd_table.sd_cnt) { in irdma_sc_create_hmc_obj()
262 sd_entry = &info->hmc_info->sd_table.sd_entry[j]; in irdma_sc_create_hmc_obj()
297 sd_entry = &info->hmc_info->sd_table.sd_entry[j - 1]; in irdma_sc_create_hmc_obj()
342 sd_entry = &info->hmc_info->sd_table.sd_entry[sd_idx]; in irdma_finish_del_sd_reg()
403 if (!info->hmc_info->sd_table.sd_entry[sd_idx].valid) in irdma_sc_del_hmc_obj()
406 if (info->hmc_info->sd_table.sd_entry[sd_idx].entry_type != in irdma_sc_del_hmc_obj()
411 pd_table = &info->hmc_info->sd_table.sd_entry[sd_idx].u.pd_table; in irdma_sc_del_hmc_obj()
426 if (sd_idx >= info->hmc_info->sd_table in irdma_sc_del_hmc_obj()
[all...]
H A Dhmc.h102 struct irdma_hmc_sd_table sd_table; member
H A Dpble.c236 sd_entry = &hmc_info->sd_table.sd_entry[idx->sd_idx]; in add_pble_prm()
H A Dctrl.c2941 hmc_info->sd_table.sd_cnt = max_pe_sds + hmc_info->first_sd_index; in irdma_sc_parse_fpm_query_buf()
4399 &hmc_info->sd_table.sd_cnt); in irdma_sc_cfg_iw_fpm()
4824 hmc_info->sd_table.sd_cnt, hmc_fpm_misc->max_sds); in irdma_cfg_fpm_val()
4932 loop_count, sd_needed, hmc_info->sd_table.sd_cnt); in irdma_cfg_fpm_val()
4952 hmc_info->sd_table.sd_cnt, hmc_info->first_sd_index); in irdma_cfg_fpm_val()
4963 (hmc_info->sd_table.sd_cnt + hmc_info->first_sd_index + 1); in irdma_cfg_fpm_val()
4971 hmc_info->sd_table.sd_entry = virt_mem.va; in irdma_cfg_fpm_val()
H A Dhw.c1574 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()
/kernel/linux/linux-5.10/drivers/infiniband/hw/i40iw/
H A Di40iw_hmc.c190 sd_entry = &hmc_info->sd_table.sd_entry[i]; in i40iw_hmc_sd_grp()
324 if (sd_idx >= info->hmc_info->sd_table.sd_cnt || in i40iw_sc_create_hmc_obj()
325 sd_lmt > info->hmc_info->sd_table.sd_cnt) { in i40iw_sc_create_hmc_obj()
338 sd_entry = &info->hmc_info->sd_table.sd_entry[j]; in i40iw_sc_create_hmc_obj()
374 sd_entry = &info->hmc_info->sd_table.sd_entry[j - 1]; in i40iw_sc_create_hmc_obj()
421 sd_entry = &info->hmc_info->sd_table.sd_entry[sd_idx]; in i40iw_finish_del_sd_reg()
487 if (info->hmc_info->sd_table.sd_entry[sd_idx].entry_type != in i40iw_sc_del_hmc_obj()
492 pd_table = &info->hmc_info->sd_table.sd_entry[sd_idx].u.pd_table; in i40iw_sc_del_hmc_obj()
505 if (sd_idx >= info->hmc_info->sd_table.sd_cnt || in i40iw_sc_del_hmc_obj()
506 sd_lmt > info->hmc_info->sd_table in i40iw_sc_del_hmc_obj()
[all...]
H A Di40iw_hmc.h56 #define I40IW_INC_SD_REFCNT(sd_table) ((sd_table)->ref_cnt++)
60 #define I40IW_DEC_SD_REFCNT(sd_table) ((sd_table)->ref_cnt--)
147 struct i40iw_hmc_sd_table sd_table; member
H A Di40iw_ctrl.c234 hmc_info->sd_table.sd_cnt = max_pe_sds + hmc_info->first_sd_index; in i40iw_sc_parse_fpm_query_buf()
3644 i40iw_sc_parse_fpm_commit_buf((u64 *)query_fpm_mem.va, hmc_info->hmc_obj, &hmc_info->sd_table.sd_cnt); in i40iw_sc_init_iw_hmc()
3646 (hmc_info->sd_table.sd_cnt + hmc_info->first_sd_index); in i40iw_sc_init_iw_hmc()
3650 hmc_info->sd_table.sd_entry = virt_mem.va; in i40iw_sc_init_iw_hmc()
3713 &hmc_info->sd_table.sd_cnt); in i40iw_sc_configure_iw_fpm()
4034 __func__, hmc_info->sd_table.sd_cnt, in i40iw_config_fpm_values()
4110 (hmc_info->sd_table.sd_cnt + hmc_info->first_sd_index + 1); in i40iw_config_fpm_values()
4118 hmc_info->sd_table.sd_entry = virt_mem.va; in i40iw_config_fpm_values()
H A Di40iw_pble.c349 sd_entry = &hmc_info->sd_table.sd_entry[idx->sd_idx]; in add_pble_pool()
H A Di40iw_main.c1023 kfree(dev->hmc_info->sd_table.sd_entry); in i40iw_del_init_mem()
1024 dev->hmc_info->sd_table.sd_entry = NULL; in i40iw_del_init_mem()

Completed in 27 milliseconds