Lines Matching refs:ppfid

437 				 u8 ppfid, u8 filter_idx, const char *action)  in qed_llh_shadow_sanity()  argument
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()
462 u8 ppfid, in qed_llh_shadow_search_filter() argument
470 rc = qed_llh_shadow_sanity(cdev, ppfid, 0, "search"); in qed_llh_shadow_search_filter()
476 p_filters = p_llh_info->pp_filters[ppfid]; in qed_llh_shadow_search_filter()
489 qed_llh_shadow_get_free_idx(struct qed_dev *cdev, u8 ppfid, u8 *p_filter_idx) in qed_llh_shadow_get_free_idx() argument
496 rc = qed_llh_shadow_sanity(cdev, ppfid, 0, "get_free_idx"); in qed_llh_shadow_get_free_idx()
502 p_filters = p_llh_info->pp_filters[ppfid]; in qed_llh_shadow_get_free_idx()
515 u8 ppfid, in __qed_llh_shadow_add_filter() argument
524 rc = qed_llh_shadow_sanity(cdev, ppfid, filter_idx, "add"); in __qed_llh_shadow_add_filter()
528 p_filters = p_llh_info->pp_filters[ppfid]; in __qed_llh_shadow_add_filter()
543 u8 ppfid, in qed_llh_shadow_add_filter() argument
551 rc = qed_llh_shadow_search_filter(cdev, ppfid, p_filter, p_filter_idx); in qed_llh_shadow_add_filter()
557 rc = qed_llh_shadow_get_free_idx(cdev, ppfid, p_filter_idx); in qed_llh_shadow_add_filter()
566 ppfid); in qed_llh_shadow_add_filter()
570 return __qed_llh_shadow_add_filter(cdev, ppfid, *p_filter_idx, type, in qed_llh_shadow_add_filter()
576 u8 ppfid, u8 filter_idx, u32 *p_ref_cnt) in __qed_llh_shadow_remove_filter() argument
582 rc = qed_llh_shadow_sanity(cdev, ppfid, filter_idx, "remove"); in __qed_llh_shadow_remove_filter()
586 p_filters = p_llh_info->pp_filters[ppfid]; in __qed_llh_shadow_remove_filter()
603 u8 ppfid, in qed_llh_shadow_remove_filter() argument
609 rc = qed_llh_shadow_search_filter(cdev, ppfid, p_filter, p_filter_idx); in qed_llh_shadow_remove_filter()
619 return __qed_llh_shadow_remove_filter(cdev, ppfid, *p_filter_idx, in qed_llh_shadow_remove_filter()
623 static int qed_llh_abs_ppfid(struct qed_dev *cdev, u8 ppfid, u8 *p_abs_ppfid) in qed_llh_abs_ppfid() argument
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()
645 u8 ppfid; in qed_llh_set_engine_affin() local
678 for (ppfid = 0; ppfid < cdev->p_llh_info->num_ppfid; ppfid++) { in qed_llh_set_engine_affin()
679 rc = qed_llh_set_ppfid_affinity(cdev, ppfid, eng); in qed_llh_set_engine_affin()
683 ppfid); in qed_llh_set_engine_affin()
699 u8 ppfid, abs_ppfid; in qed_llh_hw_init_pf() local
702 for (ppfid = 0; ppfid < cdev->p_llh_info->num_ppfid; ppfid++) { in qed_llh_hw_init_pf()
705 rc = qed_llh_abs_ppfid(cdev, ppfid, &abs_ppfid); in qed_llh_hw_init_pf()
741 int qed_llh_set_ppfid_affinity(struct qed_dev *cdev, u8 ppfid, enum qed_eng eng) in qed_llh_set_ppfid_affinity() argument
755 rc = qed_llh_abs_ppfid(cdev, ppfid, &abs_ppfid); in qed_llh_set_ppfid_affinity()
781 if (!ppfid && QED_IS_IWARP_PERSONALITY(p_hwfn)) in qed_llh_set_ppfid_affinity()
794 u8 ppfid, abs_ppfid; in qed_llh_set_roce_affinity() local
821 for (ppfid = 0; ppfid < cdev->p_llh_info->num_ppfid; ppfid++) { in qed_llh_set_roce_affinity()
822 rc = qed_llh_abs_ppfid(cdev, ppfid, &abs_ppfid); in qed_llh_set_roce_affinity()
955 u8 ppfid, const u8 mac_addr[ETH_ALEN]) in qed_llh_add_mac_filter() argument
971 rc = qed_llh_shadow_add_filter(cdev, ppfid, in qed_llh_add_mac_filter()
979 rc = qed_llh_abs_ppfid(cdev, ppfid, &abs_ppfid); in qed_llh_add_mac_filter()
995 mac_addr, ppfid, abs_ppfid, filter_idx, ref_cnt); in qed_llh_add_mac_filter()
1001 mac_addr, ppfid); in qed_llh_add_mac_filter()
1086 u8 ppfid, in qed_llh_add_protocol_filter() argument
1113 ppfid, in qed_llh_add_protocol_filter()
1119 rc = qed_llh_abs_ppfid(cdev, ppfid, &abs_ppfid); in qed_llh_add_protocol_filter()
1141 str, ppfid, abs_ppfid, filter_idx, ref_cnt); in qed_llh_add_protocol_filter()
1147 str, ppfid); in qed_llh_add_protocol_filter()
1155 u8 ppfid, u8 mac_addr[ETH_ALEN]) in qed_llh_remove_mac_filter() argument
1174 rc = qed_llh_shadow_remove_filter(cdev, ppfid, &filter, &filter_idx, in qed_llh_remove_mac_filter()
1179 rc = qed_llh_abs_ppfid(cdev, ppfid, &abs_ppfid); in qed_llh_remove_mac_filter()
1194 mac_addr, ppfid, abs_ppfid, filter_idx, ref_cnt); in qed_llh_remove_mac_filter()
1200 mac_addr, ppfid); in qed_llh_remove_mac_filter()
1206 u8 ppfid, in qed_llh_remove_protocol_filter() argument
1232 rc = qed_llh_shadow_remove_filter(cdev, ppfid, &filter, &filter_idx, in qed_llh_remove_protocol_filter()
1237 rc = qed_llh_abs_ppfid(cdev, ppfid, &abs_ppfid); in qed_llh_remove_protocol_filter()
1252 str, ppfid, abs_ppfid, filter_idx, ref_cnt); in qed_llh_remove_protocol_filter()
1258 str, ppfid); in qed_llh_remove_protocol_filter()
5432 static int qed_llh_shadow_remove_all_filters(struct qed_dev *cdev, u8 ppfid) in qed_llh_shadow_remove_all_filters() argument
5438 rc = qed_llh_shadow_sanity(cdev, ppfid, 0, "remove_all"); in qed_llh_shadow_remove_all_filters()
5442 p_filters = p_llh_info->pp_filters[ppfid]; in qed_llh_shadow_remove_all_filters()
5449 static void qed_llh_clear_ppfid_filters(struct qed_dev *cdev, u8 ppfid) in qed_llh_clear_ppfid_filters() argument
5463 rc = qed_llh_abs_ppfid(cdev, ppfid, &abs_ppfid); in qed_llh_clear_ppfid_filters()
5467 rc = qed_llh_shadow_remove_all_filters(cdev, ppfid); in qed_llh_clear_ppfid_filters()
5512 u8 ppfid; in qed_llh_clear_all_filters() local
5518 for (ppfid = 0; ppfid < cdev->p_llh_info->num_ppfid; ppfid++) in qed_llh_clear_all_filters()
5519 qed_llh_clear_ppfid_filters(cdev, ppfid); in qed_llh_clear_all_filters()