Lines Matching refs:p_llh_info
385 struct qed_llh_info *p_llh_info = cdev->p_llh_info; in qed_llh_free() local
388 if (p_llh_info) { in qed_llh_free()
389 if (p_llh_info->pp_filters) in qed_llh_free()
390 for (i = 0; i < p_llh_info->num_ppfid; i++) in qed_llh_free()
391 kfree(p_llh_info->pp_filters[i]); in qed_llh_free()
393 kfree(p_llh_info->pp_filters); in qed_llh_free()
396 kfree(p_llh_info); in qed_llh_free()
397 cdev->p_llh_info = NULL; in qed_llh_free()
402 struct qed_llh_info *p_llh_info; in qed_llh_alloc() local
405 p_llh_info = kzalloc(sizeof(*p_llh_info), GFP_KERNEL); in qed_llh_alloc()
406 if (!p_llh_info) in qed_llh_alloc()
408 cdev->p_llh_info = p_llh_info; in qed_llh_alloc()
414 p_llh_info->ppfid_array[p_llh_info->num_ppfid] = i; in qed_llh_alloc()
416 p_llh_info->num_ppfid, i); in qed_llh_alloc()
417 p_llh_info->num_ppfid++; in qed_llh_alloc()
420 size = p_llh_info->num_ppfid * sizeof(*p_llh_info->pp_filters); in qed_llh_alloc()
421 p_llh_info->pp_filters = kzalloc(size, GFP_KERNEL); in qed_llh_alloc()
422 if (!p_llh_info->pp_filters) in qed_llh_alloc()
426 sizeof(**p_llh_info->pp_filters); in qed_llh_alloc()
427 for (i = 0; i < p_llh_info->num_ppfid; i++) { in qed_llh_alloc()
428 p_llh_info->pp_filters[i] = kzalloc(size, GFP_KERNEL); in qed_llh_alloc()
429 if (!p_llh_info->pp_filters[i]) in qed_llh_alloc()
439 struct qed_llh_info *p_llh_info = cdev->p_llh_info; in qed_llh_shadow_sanity() local
441 if (ppfid >= p_llh_info->num_ppfid) { in qed_llh_shadow_sanity()
444 action, ppfid, p_llh_info->num_ppfid); in qed_llh_shadow_sanity()
465 struct qed_llh_info *p_llh_info = cdev->p_llh_info; in qed_llh_shadow_search_filter() local
476 p_filters = p_llh_info->pp_filters[ppfid]; in qed_llh_shadow_search_filter()
491 struct qed_llh_info *p_llh_info = cdev->p_llh_info; in qed_llh_shadow_get_free_idx() local
502 p_filters = p_llh_info->pp_filters[ppfid]; in qed_llh_shadow_get_free_idx()
520 struct qed_llh_info *p_llh_info = cdev->p_llh_info; in __qed_llh_shadow_add_filter() local
528 p_filters = p_llh_info->pp_filters[ppfid]; in __qed_llh_shadow_add_filter()
578 struct qed_llh_info *p_llh_info = cdev->p_llh_info; in __qed_llh_shadow_remove_filter() local
586 p_filters = p_llh_info->pp_filters[ppfid]; in __qed_llh_shadow_remove_filter()
625 struct qed_llh_info *p_llh_info = cdev->p_llh_info; in qed_llh_abs_ppfid() local
627 if (ppfid >= p_llh_info->num_ppfid) { in qed_llh_abs_ppfid()
630 ppfid, p_llh_info->num_ppfid - 1); in qed_llh_abs_ppfid()
635 *p_abs_ppfid = p_llh_info->ppfid_array[ppfid]; in qed_llh_abs_ppfid()
678 for (ppfid = 0; ppfid < cdev->p_llh_info->num_ppfid; ppfid++) { in qed_llh_set_engine_affin()
702 for (ppfid = 0; ppfid < cdev->p_llh_info->num_ppfid; ppfid++) { in qed_llh_hw_init_pf()
733 return cdev->p_llh_info->num_ppfid; in qed_llh_get_num_ppfid()
821 for (ppfid = 0; ppfid < cdev->p_llh_info->num_ppfid; ppfid++) { in qed_llh_set_roce_affinity()
5434 struct qed_llh_info *p_llh_info = cdev->p_llh_info; in qed_llh_shadow_remove_all_filters() local
5442 p_filters = p_llh_info->pp_filters[ppfid]; in qed_llh_shadow_remove_all_filters()
5518 for (ppfid = 0; ppfid < cdev->p_llh_info->num_ppfid; ppfid++) in qed_llh_clear_all_filters()