Lines Matching refs:info

304  * @info: pointer to i40e_hmc_create_obj_info struct
310 struct i40e_hmc_lan_create_obj_info *info)
321 if (NULL == info) {
323 DEBUGOUT("i40e_create_lan_hmc_object: bad info ptr\n");
326 if (NULL == info->hmc_info) {
331 if (I40E_HMC_INFO_SIGNATURE != info->hmc_info->signature) {
337 if (info->start_idx >= info->hmc_info->hmc_obj[info->rsrc_type].cnt) {
343 if ((info->start_idx + info->count) >
344 info->hmc_info->hmc_obj[info->rsrc_type].cnt) {
352 I40E_FIND_SD_INDEX_LIMIT(info->hmc_info, info->rsrc_type,
353 info->start_idx, info->count,
355 if (sd_idx >= info->hmc_info->sd_table.sd_cnt ||
356 sd_lmt > info->hmc_info->sd_table.sd_cnt) {
361 I40E_FIND_PD_INDEX_LIMIT(info->hmc_info, info->rsrc_type,
362 info->start_idx, info->count, &pd_idx,
369 if (info->direct_mode_sz == 0)
372 sd_size = info->direct_mode_sz;
379 ret_code = i40e_add_sd_table_entry(hw, info->hmc_info, j,
380 info->entry_type,
384 sd_entry = &info->hmc_info->sd_table.sd_entry[j];
397 info->hmc_info,
407 i40e_remove_pd_bp(hw, info->hmc_info,
436 sd_entry = &info->hmc_info->sd_table.sd_entry[j - 1];
443 i40e_remove_pd_bp(hw, info->hmc_info, i);
444 i40e_remove_pd_page(hw, info->hmc_info, (j - 1));
447 i40e_remove_sd_bp(hw, info->hmc_info, (j - 1));
471 struct i40e_hmc_lan_create_obj_info info;
476 /* Initialize part of the create object info struct */
477 info.hmc_info = &hw->hmc;
478 info.rsrc_type = I40E_HMC_LAN_FULL;
479 info.start_idx = 0;
480 info.direct_mode_sz = hw->hmc.hmc_obj[I40E_HMC_LAN_FULL].size;
486 info.entry_type = I40E_SD_TYPE_DIRECT;
488 info.count = 1;
489 ret_code = i40e_create_lan_hmc_object(hw, &info);
498 info.entry_type = I40E_SD_TYPE_PAGED;
500 info.count = 1;
501 ret_code = i40e_create_lan_hmc_object(hw, &info);
546 * @info: pointer to i40e_hmc_delete_obj_info struct
554 struct i40e_hmc_lan_delete_obj_info *info)
562 if (NULL == info) {
564 DEBUGOUT("i40e_delete_hmc_object: bad info ptr\n");
567 if (NULL == info->hmc_info) {
569 DEBUGOUT("i40e_delete_hmc_object: bad info->hmc_info ptr\n");
572 if (I40E_HMC_INFO_SIGNATURE != info->hmc_info->signature) {
578 if (NULL == info->hmc_info->sd_table.sd_entry) {
584 if (NULL == info->hmc_info->hmc_obj) {
589 if (info->start_idx >= info->hmc_info->hmc_obj[info->rsrc_type].cnt) {
596 if ((info->start_idx + info->count) >
597 info->hmc_info->hmc_obj[info->rsrc_type].cnt) {
604 I40E_FIND_PD_INDEX_LIMIT(info->hmc_info, info->rsrc_type,
605 info->start_idx, info->count, &pd_idx,
612 info->hmc_info->sd_table.sd_entry[sd_idx].entry_type)
618 &info->hmc_info->sd_table.sd_entry[sd_idx].u.pd_table;
620 ret_code = i40e_remove_pd_bp(hw, info->hmc_info, j);
627 I40E_FIND_SD_INDEX_LIMIT(info->hmc_info, info->rsrc_type,
628 info->start_idx, info->count,
630 if (sd_idx >= info->hmc_info->sd_table.sd_cnt ||
631 sd_lmt > info->hmc_info->sd_table.sd_cnt) {
637 if (!info->hmc_info->sd_table.sd_entry[i].valid)
639 switch (info->hmc_info->sd_table.sd_entry[i].entry_type) {
641 ret_code = i40e_remove_sd_bp(hw, info->hmc_info, i);
646 ret_code = i40e_remove_pd_page(hw, info->hmc_info, i);
667 struct i40e_hmc_lan_delete_obj_info info;
670 info.hmc_info = &hw->hmc;
671 info.rsrc_type = I40E_HMC_LAN_FULL;
672 info.start_idx = 0;
673 info.count = 1;
676 ret_code = i40e_delete_lan_hmc_object(hw, &info);