Lines Matching defs:info

267  * @info: create obj info
270 struct i40iw_hmc_create_obj_info *info)
272 if (info->start_idx >= info->hmc_info->hmc_obj[info->rsrc_type].cnt)
275 if ((info->start_idx + info->count) >
276 info->hmc_info->hmc_obj[info->rsrc_type].cnt)
279 if (!info->add_sd_cnt)
282 return i40iw_hmc_sd_grp(dev, info->hmc_info,
283 info->hmc_info->sd_indexes[0],
284 info->add_sd_cnt, true);
290 * @info: pointer to i40iw_hmc_iw_create_obj_info struct
296 struct i40iw_hmc_create_obj_info *info)
306 if (info->start_idx >= info->hmc_info->hmc_obj[info->rsrc_type].cnt)
309 if ((info->start_idx + info->count) >
310 info->hmc_info->hmc_obj[info->rsrc_type].cnt) {
313 __func__, info->rsrc_type, info->start_idx, info->count,
314 info->hmc_info->hmc_obj[info->rsrc_type].cnt);
319 return i40iw_vchnl_vf_add_hmc_objs(dev, info->rsrc_type, 0, info->count);
321 i40iw_find_sd_index_limit(info->hmc_info, info->rsrc_type,
322 info->start_idx, info->count,
324 if (sd_idx >= info->hmc_info->sd_table.sd_cnt ||
325 sd_lmt > info->hmc_info->sd_table.sd_cnt) {
328 i40iw_find_pd_index_limit(info->hmc_info, info->rsrc_type,
329 info->start_idx, info->count, &pd_idx, &pd_lmt);
332 ret_code = i40iw_add_sd_table_entry(dev->hw, info->hmc_info,
334 info->entry_type,
338 sd_entry = &info->hmc_info->sd_table.sd_entry[j];
341 ((dev->hmc_info == info->hmc_info) &&
342 (info->rsrc_type != I40IW_HMC_IW_PBLE))) {
348 ret_code = i40iw_add_pd_table_entry(dev->hw, info->hmc_info,
357 i40iw_remove_pd_bp(dev->hw, info->hmc_info, (i - 1),
358 info->is_pf);
366 info->hmc_info->sd_indexes[info->add_sd_cnt] = (u16)j;
367 info->add_sd_cnt++;
370 return i40iw_hmc_finish_add_sd_reg(dev, info);
374 sd_entry = &info->hmc_info->sd_table.sd_entry[j - 1];
381 i40iw_prep_remove_pd_page(info->hmc_info, i);
384 i40iw_prep_remove_pd_page(info->hmc_info, (j - 1));
399 * @info: dele obj info
403 struct i40iw_hmc_del_obj_info *info,
412 ret_code = i40iw_hmc_sd_grp(dev, info->hmc_info,
413 info->hmc_info->sd_indexes[0],
414 info->del_sd_cnt, false);
419 for (i = 0; i < info->del_sd_cnt; i++) {
420 sd_idx = info->hmc_info->sd_indexes[i];
421 sd_entry = &info->hmc_info->sd_table.sd_entry[sd_idx];
439 * @info: pointer to i40iw_hmc_del_obj_info struct
448 struct i40iw_hmc_del_obj_info *info,
457 if (info->start_idx >= info->hmc_info->hmc_obj[info->rsrc_type].cnt) {
460 __func__, info->start_idx, info->rsrc_type,
461 info->hmc_info->hmc_obj[info->rsrc_type].cnt);
465 if ((info->start_idx + info->count) >
466 info->hmc_info->hmc_obj[info->rsrc_type].cnt) {
469 __func__, info->start_idx, info->count,
470 info->rsrc_type,
471 info->hmc_info->hmc_obj[info->rsrc_type].cnt);
475 ret_code = i40iw_vchnl_vf_del_hmc_obj(dev, info->rsrc_type, 0,
476 info->count);
477 if (info->rsrc_type != I40IW_HMC_IW_PBLE)
481 i40iw_find_pd_index_limit(info->hmc_info, info->rsrc_type,
482 info->start_idx, info->count, &pd_idx, &pd_lmt);
487 if (info->hmc_info->sd_table.sd_entry[sd_idx].entry_type !=
492 pd_table = &info->hmc_info->sd_table.sd_entry[sd_idx].u.pd_table;
494 ret_code = i40iw_remove_pd_bp(dev->hw, info->hmc_info, j,
495 info->is_pf);
503 i40iw_find_sd_index_limit(info->hmc_info, info->rsrc_type,
504 info->start_idx, info->count, &sd_idx, &sd_lmt);
505 if (sd_idx >= info->hmc_info->sd_table.sd_cnt ||
506 sd_lmt > info->hmc_info->sd_table.sd_cnt) {
512 if (!info->hmc_info->sd_table.sd_entry[i].valid)
514 switch (info->hmc_info->sd_table.sd_entry[i].entry_type) {
516 ret_code = i40iw_prep_remove_sd_bp(info->hmc_info, i);
518 info->hmc_info->sd_indexes[info->del_sd_cnt] = (u16)i;
519 info->del_sd_cnt++;
523 ret_code = i40iw_prep_remove_pd_page(info->hmc_info, i);
525 info->hmc_info->sd_indexes[info->del_sd_cnt] = (u16)i;
526 info->del_sd_cnt++;
533 return i40iw_finish_del_sd_reg(dev, info, reset);