Lines Matching defs:bp
338 static void bnxt_db_nq(struct bnxt *bp, struct bnxt_db_info *db, u32 idx) in bnxt_db_nq()
348 static void bnxt_db_nq_arm(struct bnxt *bp, struct bnxt_db_info *db, u32 idx) in bnxt_db_nq_arm()
356 static void bnxt_db_cq(struct bnxt *bp, struct bnxt_db_info *db, u32 idx) in bnxt_db_cq()
365 static void bnxt_queue_fw_reset_work(struct bnxt *bp, unsigned long delay) in bnxt_queue_fw_reset_work()
376 static void __bnxt_queue_sp_work(struct bnxt *bp) in __bnxt_queue_sp_work()
384 static void bnxt_queue_sp_work(struct bnxt *bp, unsigned int event) in bnxt_queue_sp_work()
390 static void bnxt_sched_reset_rxr(struct bnxt *bp, struct bnxt_rx_ring_info *rxr) in bnxt_sched_reset_rxr()
403 void bnxt_sched_reset_txr(struct bnxt *bp, struct bnxt_tx_ring_info *txr, in bnxt_sched_reset_txr()
451 static void bnxt_txr_db_kick(struct bnxt *bp, struct bnxt_tx_ring_info *txr, in bnxt_txr_db_kick()
462 struct bnxt *bp = netdev_priv(dev); in bnxt_start_xmit() local
800 static bool __bnxt_tx_int(struct bnxt *bp, struct bnxt_tx_ring_info *txr, in __bnxt_tx_int()
878 static void bnxt_tx_int(struct bnxt *bp, struct bnxt_napi *bnapi, int budget) in bnxt_tx_int()
897 static struct page *__bnxt_alloc_rx_page(struct bnxt *bp, dma_addr_t *mapping, in __bnxt_alloc_rx_page()
918 static inline u8 *__bnxt_alloc_rx_frag(struct bnxt *bp, dma_addr_t *mapping, in __bnxt_alloc_rx_frag()
934 int bnxt_alloc_rx_data(struct bnxt *bp, struct bnxt_rx_ring_info *rxr, in bnxt_alloc_rx_data()
971 struct bnxt *bp = rxr->bnapi->bp; in bnxt_reuse_rx_data() local
998 static inline int bnxt_alloc_rx_page(struct bnxt *bp, in bnxt_alloc_rx_page()
1030 static struct rx_agg_cmp *bnxt_get_agg(struct bnxt *bp, in bnxt_get_agg()
1042 static struct rx_agg_cmp *bnxt_get_tpa_agg_p5(struct bnxt *bp, in bnxt_get_tpa_agg_p5()
1055 struct bnxt *bp = bnapi->bp; in bnxt_reuse_rx_agg_bufs() local
1108 static struct sk_buff *bnxt_rx_multi_page_skb(struct bnxt *bp, in bnxt_rx_multi_page_skb()
1140 static struct sk_buff *bnxt_rx_page_skb(struct bnxt *bp, in bnxt_rx_page_skb()
1187 static struct sk_buff *bnxt_rx_skb(struct bnxt *bp, in bnxt_rx_skb()
1217 static u32 __bnxt_rx_agg_pages(struct bnxt *bp, in __bnxt_rx_agg_pages()
1288 static struct sk_buff *bnxt_rx_agg_pages_skb(struct bnxt *bp, in bnxt_rx_agg_pages_skb()
1310 static u32 bnxt_rx_agg_pages_xdp(struct bnxt *bp, in bnxt_rx_agg_pages_xdp()
1331 static int bnxt_agg_bufs_valid(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, in bnxt_agg_bufs_valid()
1348 struct bnxt *bp = bnapi->bp; in bnxt_copy_data() local
1402 static int bnxt_discard_rx(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, in bnxt_discard_rx()
1490 static void bnxt_tpa_start(struct bnxt *bp, struct bnxt_rx_ring_info *rxr, in bnxt_tpa_start()
1745 static inline struct sk_buff *bnxt_gro_skb(struct bnxt *bp, in bnxt_gro_skb()
1777 static struct net_device *bnxt_get_pkt_dev(struct bnxt *bp, u16 cfa_code) in bnxt_get_pkt_dev()
1785 static inline struct sk_buff *bnxt_tpa_end(struct bnxt *bp, in bnxt_tpa_end()
1936 static void bnxt_tpa_agg(struct bnxt *bp, struct bnxt_rx_ring_info *rxr, in bnxt_tpa_agg()
1948 static void bnxt_deliver_skb(struct bnxt *bp, struct bnxt_napi *bnapi, in bnxt_deliver_skb()
1962 static bool bnxt_rx_ts_valid(struct bnxt *bp, u32 flags, in bnxt_rx_ts_valid()
2018 static enum pkt_hash_types bnxt_rss_ext_op(struct bnxt *bp, in bnxt_rss_ext_op()
2042 static int bnxt_rx_pkt(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, in bnxt_rx_pkt()
2321 static int bnxt_force_rx_discard(struct bnxt *bp, in bnxt_force_rx_discard()
2366 u32 bnxt_fw_health_readl(struct bnxt *bp, int reg_idx) in bnxt_fw_health_readl()
2393 static u16 bnxt_agg_ring_id_to_grp_idx(struct bnxt *bp, u16 ring_id) in bnxt_agg_ring_id_to_grp_idx()
2410 struct bnxt *bp = container_of(link_info, struct bnxt, link_info); in bnxt_get_force_speed() local
2421 struct bnxt *bp = container_of(link_info, struct bnxt, link_info); in bnxt_set_force_speed() local
2453 struct bnxt *bp = container_of(link_info, struct bnxt, link_info); in bnxt_set_auto_speed() local
2465 struct bnxt *bp = container_of(link_info, struct bnxt, link_info); in bnxt_force_speed_updated() local
2483 struct bnxt *bp = container_of(link_info, struct bnxt, link_info); in bnxt_auto_speed_updated() local
2496 bool bnxt_bs_trace_avail(struct bnxt *bp, u16 type) in bnxt_bs_trace_avail()
2505 static void bnxt_bs_trace_init(struct bnxt *bp, struct bnxt_ctx_mem_type *ctxm) in bnxt_bs_trace_init()
2568 static bool bnxt_event_error_report(struct bnxt *bp, u32 data1, u32 data2) in bnxt_event_error_report()
2657 static int bnxt_async_event_process(struct bnxt *bp, in bnxt_async_event_process()
2881 static int bnxt_hwrm_handler(struct bnxt *bp, struct tx_cmp *txcmp) in bnxt_hwrm_handler()
2920 static bool bnxt_vnic_is_active(struct bnxt *bp) in bnxt_vnic_is_active()
2930 struct bnxt *bp = bnapi->bp; in bnxt_msix() local
2940 static inline int bnxt_has_work(struct bnxt *bp, struct bnxt_cp_ring_info *cpr) in bnxt_has_work()
2951 static int __bnxt_poll_work(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, in __bnxt_poll_work()
3054 static void __bnxt_poll_work_done(struct bnxt *bp, struct bnxt_napi *bnapi, in __bnxt_poll_work_done()
3074 static int bnxt_poll_work(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, in bnxt_poll_work()
3095 struct bnxt *bp = bnapi->bp; in bnxt_poll_nitroa0() local
3171 struct bnxt *bp = bnapi->bp; in bnxt_poll() local
3206 static int __bnxt_poll_cqs(struct bnxt *bp, struct bnxt_napi *bnapi, int budget) in __bnxt_poll_cqs()
3223 static void __bnxt_poll_cqs_done(struct bnxt *bp, struct bnxt_napi *bnapi, in __bnxt_poll_cqs_done()
3257 struct bnxt *bp = bnapi->bp; in bnxt_poll_p5() local
3337 static void bnxt_free_tx_skbs(struct bnxt *bp) in bnxt_free_tx_skbs()
3408 static void bnxt_free_one_rx_ring(struct bnxt *bp, struct bnxt_rx_ring_info *rxr) in bnxt_free_one_rx_ring()
3429 static void bnxt_free_one_rx_agg_ring(struct bnxt *bp, struct bnxt_rx_ring_info *rxr) in bnxt_free_one_rx_agg_ring()
3449 static void bnxt_free_one_tpa_info_data(struct bnxt *bp, in bnxt_free_one_tpa_info_data()
3466 static void bnxt_free_one_rx_ring_skbs(struct bnxt *bp, in bnxt_free_one_rx_ring_skbs()
3494 static void bnxt_free_rx_skbs(struct bnxt *bp) in bnxt_free_rx_skbs()
3505 static void bnxt_free_skbs(struct bnxt *bp) in bnxt_free_skbs()
3528 static size_t __bnxt_copy_ring(struct bnxt *bp, struct bnxt_ring_mem_info *rmem, in __bnxt_copy_ring()
3557 static void bnxt_free_ring(struct bnxt *bp, struct bnxt_ring_mem_info *rmem) in bnxt_free_ring()
3590 static int bnxt_alloc_ring(struct bnxt *bp, struct bnxt_ring_mem_info *rmem) in bnxt_alloc_ring()
3643 static void bnxt_free_one_tpa_info(struct bnxt *bp, in bnxt_free_one_tpa_info()
3660 static void bnxt_free_tpa_info(struct bnxt *bp) in bnxt_free_tpa_info()
3671 static int bnxt_alloc_one_tpa_info(struct bnxt *bp, in bnxt_alloc_one_tpa_info()
3698 static int bnxt_alloc_tpa_info(struct bnxt *bp) in bnxt_alloc_tpa_info()
3719 static void bnxt_free_rx_rings(struct bnxt *bp) in bnxt_free_rx_rings()
3753 static int bnxt_alloc_rx_page_pool(struct bnxt *bp, in bnxt_alloc_rx_page_pool()
3792 static int bnxt_alloc_rx_agg_bmap(struct bnxt *bp, struct bnxt_rx_ring_info *rxr) in bnxt_alloc_rx_agg_bmap()
3805 static int bnxt_alloc_rx_rings(struct bnxt *bp) in bnxt_alloc_rx_rings()
3865 static void bnxt_free_tx_rings(struct bnxt *bp) in bnxt_free_tx_rings()
3889 #define BNXT_TC_TO_RING_BASE(bp, tc) \ argument
3892 #define BNXT_RING_TO_TC_OFF(bp, tx) \ argument
3895 #define BNXT_RING_TO_TC(bp, tx) \ argument
3898 static int bnxt_alloc_tx_rings(struct bnxt *bp) in bnxt_alloc_tx_rings()
3983 static void bnxt_free_all_cp_arrays(struct bnxt *bp) in bnxt_free_all_cp_arrays()
3998 static int bnxt_alloc_all_cp_arrays(struct bnxt *bp) in bnxt_alloc_all_cp_arrays()
4015 static void bnxt_free_cp_rings(struct bnxt *bp) in bnxt_free_cp_rings()
4052 static int bnxt_alloc_cp_sub_ring(struct bnxt *bp, in bnxt_alloc_cp_sub_ring()
4079 static int bnxt_alloc_cp_rings(struct bnxt *bp) in bnxt_alloc_cp_rings()
4155 static void bnxt_init_rx_ring_struct(struct bnxt *bp, in bnxt_init_rx_ring_struct()
4180 static void bnxt_reset_rx_ring_struct(struct bnxt *bp, in bnxt_reset_rx_ring_struct()
4212 static void bnxt_init_ring_struct(struct bnxt *bp) in bnxt_init_ring_struct()
4294 static void bnxt_alloc_one_rx_ring_skb(struct bnxt *bp, in bnxt_alloc_one_rx_ring_skb()
4313 static void bnxt_alloc_one_rx_ring_page(struct bnxt *bp, in bnxt_alloc_one_rx_ring_page()
4332 static int bnxt_alloc_one_tpa_info_data(struct bnxt *bp, in bnxt_alloc_one_tpa_info_data()
4353 static int bnxt_alloc_one_rx_ring(struct bnxt *bp, int ring_nr) in bnxt_alloc_one_rx_ring()
4373 static void bnxt_init_one_rx_ring_rxbd(struct bnxt *bp, in bnxt_init_one_rx_ring_rxbd()
4390 static void bnxt_init_one_rx_agg_ring_rxbd(struct bnxt *bp, in bnxt_init_one_rx_agg_ring_rxbd()
4406 static int bnxt_init_one_rx_ring(struct bnxt *bp, int ring_nr) in bnxt_init_one_rx_ring()
4426 static void bnxt_init_cp_rings(struct bnxt *bp) in bnxt_init_cp_rings()
4450 static int bnxt_init_rx_rings(struct bnxt *bp) in bnxt_init_rx_rings()
4471 static int bnxt_init_tx_rings(struct bnxt *bp) in bnxt_init_tx_rings()
4493 static void bnxt_free_ring_grps(struct bnxt *bp) in bnxt_free_ring_grps()
4499 static int bnxt_init_ring_grps(struct bnxt *bp, bool irq_re_init) in bnxt_init_ring_grps()
4521 static void bnxt_free_vnics(struct bnxt *bp) in bnxt_free_vnics()
4528 static int bnxt_alloc_vnics(struct bnxt *bp) in bnxt_alloc_vnics()
4553 static void bnxt_init_vnics(struct bnxt *bp) in bnxt_init_vnics()
4620 void bnxt_set_tpa_flags(struct bnxt *bp) in bnxt_set_tpa_flags()
4631 static void bnxt_init_ring_params(struct bnxt *bp) in bnxt_init_ring_params()
4645 void bnxt_set_ring_params(struct bnxt *bp) in bnxt_set_ring_params()
4744 static void __bnxt_set_rx_skb_mode(struct bnxt *bp, bool page_mode) in __bnxt_set_rx_skb_mode()
4773 void bnxt_set_rx_skb_mode(struct bnxt *bp, bool page_mode) in bnxt_set_rx_skb_mode()
4791 static void bnxt_free_vnic_attributes(struct bnxt *bp) in bnxt_free_vnic_attributes()
4827 static int bnxt_alloc_vnic_attributes(struct bnxt *bp) in bnxt_alloc_vnic_attributes()
4904 static void bnxt_free_hwrm_resources(struct bnxt *bp) in bnxt_free_hwrm_resources()
4917 static int bnxt_alloc_hwrm_resources(struct bnxt *bp) in bnxt_alloc_hwrm_resources()
4930 static void bnxt_free_stats_mem(struct bnxt *bp, struct bnxt_stats_mem *stats) in bnxt_free_stats_mem()
4943 static int bnxt_alloc_stats_mem(struct bnxt *bp, struct bnxt_stats_mem *stats, in bnxt_alloc_stats_mem()
4983 static int bnxt_hwrm_func_qstat_ext(struct bnxt *bp, in bnxt_hwrm_func_qstat_ext()
5015 static void bnxt_init_stats(struct bnxt *bp) in bnxt_init_stats()
5086 static void bnxt_free_port_stats(struct bnxt *bp) in bnxt_free_port_stats()
5096 static void bnxt_free_ring_stats(struct bnxt *bp) in bnxt_free_ring_stats()
5114 static int bnxt_alloc_stats(struct bnxt *bp) in bnxt_alloc_stats()
5181 static void bnxt_clear_ring_indices(struct bnxt *bp) in bnxt_clear_ring_indices()
5217 void bnxt_insert_usr_fltr(struct bnxt *bp, struct bnxt_filter_base *fltr) in bnxt_insert_usr_fltr()
5227 void bnxt_del_one_usr_fltr(struct bnxt *bp, struct bnxt_filter_base *fltr) in bnxt_del_one_usr_fltr()
5233 static void bnxt_clear_usr_fltrs(struct bnxt *bp, bool all) in bnxt_clear_usr_fltrs()
5244 static void bnxt_del_fltr(struct bnxt *bp, struct bnxt_filter_base *fltr) in bnxt_del_fltr()
5255 static void bnxt_free_ntp_fltrs(struct bnxt *bp, bool all) in bnxt_free_ntp_fltrs()
5284 static int bnxt_alloc_ntp_fltrs(struct bnxt *bp) in bnxt_alloc_ntp_fltrs()
5303 static void bnxt_free_l2_filters(struct bnxt *bp, bool all) in bnxt_free_l2_filters()
5322 static void bnxt_init_l2_fltr_tbl(struct bnxt *bp) in bnxt_init_l2_fltr_tbl()
5331 static void bnxt_free_mem(struct bnxt *bp, bool irq_re_init) in bnxt_free_mem()
5360 static int bnxt_alloc_mem(struct bnxt *bp, bool irq_re_init) in bnxt_alloc_mem()
5507 static void bnxt_disable_int(struct bnxt *bp) in bnxt_disable_int()
5524 static int bnxt_cp_num_to_irq_num(struct bnxt *bp, int n) in bnxt_cp_num_to_irq_num()
5533 static void bnxt_disable_int_sync(struct bnxt *bp) in bnxt_disable_int_sync()
5550 static void bnxt_enable_int(struct bnxt *bp) in bnxt_enable_int()
5563 int bnxt_hwrm_func_drv_rgtr(struct bnxt *bp, unsigned long *bmap, int bmap_size, in bnxt_hwrm_func_drv_rgtr()
5658 int bnxt_hwrm_func_drv_unrgtr(struct bnxt *bp) in bnxt_hwrm_func_drv_unrgtr()
5674 static int bnxt_hwrm_tunnel_dst_port_free(struct bnxt *bp, u8 tunnel_type) in bnxt_hwrm_tunnel_dst_port_free()
5721 static int bnxt_hwrm_tunnel_dst_port_alloc(struct bnxt *bp, __be16 port, in bnxt_hwrm_tunnel_dst_port_alloc()
5769 static int bnxt_hwrm_cfa_l2_set_rx_mask(struct bnxt *bp, u16 vnic_id) in bnxt_hwrm_cfa_l2_set_rx_mask()
5788 void bnxt_del_l2_filter(struct bnxt *bp, struct bnxt_l2_filter *fltr) in bnxt_del_l2_filter()
5807 static struct bnxt_l2_filter *__bnxt_lookup_l2_filter(struct bnxt *bp, in __bnxt_lookup_l2_filter()
5824 static struct bnxt_l2_filter *bnxt_lookup_l2_filter(struct bnxt *bp, in bnxt_lookup_l2_filter()
5838 #define BNXT_IPV4_4TUPLE(bp, fkeys) \ argument
5844 #define BNXT_IPV6_4TUPLE(bp, fkeys) \ argument
5850 static u32 bnxt_get_rss_flow_tuple_len(struct bnxt *bp, struct flow_keys *fkeys) in bnxt_get_rss_flow_tuple_len()
5873 static u32 bnxt_toeplitz(struct bnxt *bp, struct flow_keys *fkeys, in bnxt_toeplitz()
5913 bnxt_lookup_l2_filter_from_key(struct bnxt *bp, struct bnxt_l2_key *key) in bnxt_lookup_l2_filter_from_key()
5925 static int bnxt_init_l2_filter(struct bnxt *bp, struct bnxt_l2_filter *fltr, in bnxt_init_l2_filter()
5951 static struct bnxt_l2_filter *bnxt_alloc_l2_filter(struct bnxt *bp, in bnxt_alloc_l2_filter()
5978 struct bnxt_l2_filter *bnxt_alloc_new_l2_filter(struct bnxt *bp, in bnxt_alloc_new_l2_filter()
6023 int bnxt_hwrm_l2_filter_free(struct bnxt *bp, struct bnxt_l2_filter *fltr) in bnxt_hwrm_l2_filter_free()
6049 int bnxt_hwrm_l2_filter_alloc(struct bnxt *bp, struct bnxt_l2_filter *fltr) in bnxt_hwrm_l2_filter_alloc()
6102 int bnxt_hwrm_cfa_ntuple_filter_free(struct bnxt *bp, in bnxt_hwrm_cfa_ntuple_filter_free()
6144 bnxt_cfg_rfs_ring_tbl_idx(struct bnxt *bp, in bnxt_cfg_rfs_ring_tbl_idx()
6183 int bnxt_hwrm_cfa_ntuple_filter_alloc(struct bnxt *bp, in bnxt_hwrm_cfa_ntuple_filter_alloc()
6249 static int bnxt_hwrm_set_vnic_filter(struct bnxt *bp, u16 vnic_id, u16 idx, in bnxt_hwrm_set_vnic_filter()
6271 static void bnxt_hwrm_clear_vnic_filter(struct bnxt *bp) in bnxt_hwrm_clear_vnic_filter()
6294 static void bnxt_hwrm_vnic_update_tunl_tpa(struct bnxt *bp, in bnxt_hwrm_vnic_update_tunl_tpa()
6313 int bnxt_hwrm_vnic_set_tpa(struct bnxt *bp, struct bnxt_vnic_info *vnic, in bnxt_hwrm_vnic_set_tpa()
6376 static u16 bnxt_cp_ring_from_grp(struct bnxt *bp, struct bnxt_ring_struct *ring) in bnxt_cp_ring_from_grp()
6384 static u16 bnxt_cp_ring_for_rx(struct bnxt *bp, struct bnxt_rx_ring_info *rxr) in bnxt_cp_ring_for_rx()
6392 static u16 bnxt_cp_ring_for_tx(struct bnxt *bp, struct bnxt_tx_ring_info *txr) in bnxt_cp_ring_for_tx()
6400 static int bnxt_alloc_rss_indir_tbl(struct bnxt *bp) in bnxt_alloc_rss_indir_tbl()
6418 void bnxt_set_dflt_rss_indir_tbl(struct bnxt *bp, in bnxt_set_dflt_rss_indir_tbl()
6446 static u16 bnxt_get_max_rss_ring(struct bnxt *bp) in bnxt_get_max_rss_ring()
6459 int bnxt_get_nr_rss_ctxs(struct bnxt *bp, int rx_rings) in bnxt_get_nr_rss_ctxs()
6472 static void bnxt_fill_hw_rss_tbl(struct bnxt *bp, struct bnxt_vnic_info *vnic) in bnxt_fill_hw_rss_tbl()
6485 static void bnxt_fill_hw_rss_tbl_p5(struct bnxt *bp, in bnxt_fill_hw_rss_tbl_p5()
6513 __bnxt_hwrm_vnic_set_rss(struct bnxt *bp, struct hwrm_vnic_rss_cfg_input *req, in __bnxt_hwrm_vnic_set_rss()
6538 static int bnxt_hwrm_vnic_set_rss(struct bnxt *bp, struct bnxt_vnic_info *vnic, in bnxt_hwrm_vnic_set_rss()
6558 static int bnxt_hwrm_vnic_set_rss_p5(struct bnxt *bp, in bnxt_hwrm_vnic_set_rss_p5()
6593 static void bnxt_hwrm_update_rss_hash_cfg(struct bnxt *bp) in bnxt_hwrm_update_rss_hash_cfg()
6613 static int bnxt_hwrm_vnic_set_hds(struct bnxt *bp, struct bnxt_vnic_info *vnic) in bnxt_hwrm_vnic_set_hds()
6638 static void bnxt_hwrm_vnic_ctx_free_one(struct bnxt *bp, in bnxt_hwrm_vnic_ctx_free_one()
6654 static void bnxt_hwrm_vnic_ctx_free(struct bnxt *bp) in bnxt_hwrm_vnic_ctx_free()
6669 static int bnxt_hwrm_vnic_ctx_alloc(struct bnxt *bp, in bnxt_hwrm_vnic_ctx_alloc()
6690 static u32 bnxt_get_roce_vnic_mode(struct bnxt *bp) in bnxt_get_roce_vnic_mode()
6697 int bnxt_hwrm_vnic_cfg(struct bnxt *bp, struct bnxt_vnic_info *vnic) in bnxt_hwrm_vnic_cfg()
6771 static void bnxt_hwrm_vnic_free_one(struct bnxt *bp, in bnxt_hwrm_vnic_free_one()
6787 static void bnxt_hwrm_vnic_free(struct bnxt *bp) in bnxt_hwrm_vnic_free()
6795 int bnxt_hwrm_vnic_alloc(struct bnxt *bp, struct bnxt_vnic_info *vnic, in bnxt_hwrm_vnic_alloc()
6836 static int bnxt_hwrm_vnic_qcaps(struct bnxt *bp) in bnxt_hwrm_vnic_qcaps()
6899 static int bnxt_hwrm_ring_grp_alloc(struct bnxt *bp) in bnxt_hwrm_ring_grp_alloc()
6934 static void bnxt_hwrm_ring_grp_free(struct bnxt *bp) in bnxt_hwrm_ring_grp_free()
6958 static int hwrm_ring_alloc_send_msg(struct bnxt *bp, in hwrm_ring_alloc_send_msg()
7082 static int bnxt_hwrm_set_async_event_cr(struct bnxt *bp, int idx) in bnxt_hwrm_set_async_event_cr()
7111 static void bnxt_set_db_mask(struct bnxt *bp, struct bnxt_db_info *db, in bnxt_set_db_mask()
7135 static void bnxt_set_db(struct bnxt *bp, struct bnxt_db_info *db, u32 ring_type, in bnxt_set_db()
7178 static int bnxt_hwrm_rx_ring_alloc(struct bnxt *bp, in bnxt_hwrm_rx_ring_alloc()
7197 static int bnxt_hwrm_rx_agg_ring_alloc(struct bnxt *bp, in bnxt_hwrm_rx_agg_ring_alloc()
7220 static int bnxt_hwrm_ring_alloc(struct bnxt *bp) in bnxt_hwrm_ring_alloc()
7323 static void bnxt_cancel_dim(struct bnxt *bp) in bnxt_cancel_dim()
7343 static int hwrm_ring_free_send_msg(struct bnxt *bp, in hwrm_ring_free_send_msg()
7376 static void bnxt_hwrm_rx_ring_free(struct bnxt *bp, in bnxt_hwrm_rx_ring_free()
7396 static void bnxt_hwrm_rx_agg_ring_free(struct bnxt *bp, in bnxt_hwrm_rx_agg_ring_free()
7420 static void bnxt_hwrm_ring_free(struct bnxt *bp, bool close_path) in bnxt_hwrm_ring_free()
7491 static int bnxt_hwrm_get_rings(struct bnxt *bp) in bnxt_hwrm_get_rings()
7551 int __bnxt_hwrm_get_tx_rings(struct bnxt *bp, u16 fid, int *tx_rings) in __bnxt_hwrm_get_tx_rings()
7577 __bnxt_hwrm_reserve_pf_rings(struct bnxt *bp, struct bnxt_hw_rings *hwr) in __bnxt_hwrm_reserve_pf_rings()
7621 __bnxt_hwrm_reserve_vf_rings(struct bnxt *bp, struct bnxt_hw_rings *hwr) in __bnxt_hwrm_reserve_vf_rings()
7663 bnxt_hwrm_reserve_pf_rings(struct bnxt *bp, struct bnxt_hw_rings *hwr) in bnxt_hwrm_reserve_pf_rings()
7688 bnxt_hwrm_reserve_vf_rings(struct bnxt *bp, struct bnxt_hw_rings *hwr) in bnxt_hwrm_reserve_vf_rings()
7709 static int bnxt_hwrm_reserve_rings(struct bnxt *bp, struct bnxt_hw_rings *hwr) in bnxt_hwrm_reserve_rings()
7717 int bnxt_nq_rings_in_use(struct bnxt *bp) in bnxt_nq_rings_in_use()
7722 static int bnxt_cp_rings_in_use(struct bnxt *bp) in bnxt_cp_rings_in_use()
7733 static int bnxt_get_func_stat_ctxs(struct bnxt *bp) in bnxt_get_func_stat_ctxs()
7738 static int bnxt_get_total_rss_ctxs(struct bnxt *bp, struct bnxt_hw_rings *hwr) in bnxt_get_total_rss_ctxs()
7759 static void bnxt_check_rss_tbl_no_rmgr(struct bnxt *bp) in bnxt_check_rss_tbl_no_rmgr()
7771 static int bnxt_get_total_vnics(struct bnxt *bp, int rx_rings) in bnxt_get_total_vnics()
7782 static bool bnxt_need_reserve_rings(struct bnxt *bp) in bnxt_need_reserve_rings()
7821 static void bnxt_copy_reserved_rings(struct bnxt *bp, struct bnxt_hw_rings *hwr) in bnxt_copy_reserved_rings()
7838 static bool bnxt_rings_ok(struct bnxt *bp, struct bnxt_hw_rings *hwr) in bnxt_rings_ok()
7846 static int __bnxt_reserve_rings(struct bnxt *bp) in __bnxt_reserve_rings()
7959 static int bnxt_hwrm_check_vf_rings(struct bnxt *bp, struct bnxt_hw_rings *hwr) in bnxt_hwrm_check_vf_rings()
7981 static int bnxt_hwrm_check_pf_rings(struct bnxt *bp, struct bnxt_hw_rings *hwr) in bnxt_hwrm_check_pf_rings()
8004 static int bnxt_hwrm_check_rings(struct bnxt *bp, struct bnxt_hw_rings *hwr) in bnxt_hwrm_check_rings()
8015 static void bnxt_hwrm_coal_params_qcaps(struct bnxt *bp) in bnxt_hwrm_coal_params_qcaps()
8062 static u16 bnxt_usec_to_coal_tmr(struct bnxt *bp, u16 usec) in bnxt_usec_to_coal_tmr()
8069 static void bnxt_hwrm_set_coal_params(struct bnxt *bp, in bnxt_hwrm_set_coal_params()
8125 static int __bnxt_hwrm_set_coal_nq(struct bnxt *bp, struct bnxt_napi *bnapi, in __bnxt_hwrm_set_coal_nq()
8153 int bnxt_hwrm_set_ring_coal(struct bnxt *bp, struct bnxt_napi *bnapi) in bnxt_hwrm_set_ring_coal()
8183 bnxt_hwrm_set_rx_coal(struct bnxt *bp, struct bnxt_napi *bnapi, in bnxt_hwrm_set_rx_coal()
8193 bnxt_hwrm_set_tx_coal(struct bnxt *bp, struct bnxt_napi *bnapi, in bnxt_hwrm_set_tx_coal()
8213 int bnxt_hwrm_set_coal(struct bnxt *bp) in bnxt_hwrm_set_coal()
8263 static void bnxt_hwrm_stat_ctx_free(struct bnxt *bp) in bnxt_hwrm_stat_ctx_free()
8305 static int bnxt_hwrm_stat_ctx_alloc(struct bnxt *bp) in bnxt_hwrm_stat_ctx_alloc()
8340 static int bnxt_hwrm_func_qcfg(struct bnxt *bp) in bnxt_hwrm_func_qcfg()
8438 static int bnxt_alloc_all_ctx_pg_info(struct bnxt *bp, int ctx_max) in bnxt_alloc_all_ctx_pg_info()
8466 static int bnxt_hwrm_func_backing_store_qcaps_v2(struct bnxt *bp) in bnxt_hwrm_func_backing_store_qcaps_v2()
8539 static int bnxt_hwrm_func_backing_store_qcaps(struct bnxt *bp) in bnxt_hwrm_func_backing_store_qcaps()
8682 static int bnxt_hwrm_func_backing_store_cfg(struct bnxt *bp, u32 enables) in bnxt_hwrm_func_backing_store_cfg()
8812 static int bnxt_alloc_ctx_mem_blk(struct bnxt *bp, in bnxt_alloc_ctx_mem_blk()
8826 static int bnxt_alloc_ctx_pg_tbls(struct bnxt *bp, in bnxt_alloc_ctx_pg_tbls()
8887 static size_t bnxt_copy_ctx_pg_tbls(struct bnxt *bp, in bnxt_copy_ctx_pg_tbls()
8917 static void bnxt_free_ctx_pg_tbls(struct bnxt *bp, in bnxt_free_ctx_pg_tbls()
8946 static int bnxt_setup_ctxm_pg_tbls(struct bnxt *bp, in bnxt_setup_ctxm_pg_tbls()
8972 static int bnxt_hwrm_func_backing_store_cfg_v2(struct bnxt *bp, in bnxt_hwrm_func_backing_store_cfg_v2()
9030 static int bnxt_backing_store_cfg_v2(struct bnxt *bp, u32 ena) in bnxt_backing_store_cfg_v2()
9091 static size_t __bnxt_copy_ctx_mem(struct bnxt *bp, in __bnxt_copy_ctx_mem()
9113 size_t bnxt_copy_ctx_mem(struct bnxt *bp, struct bnxt_ctx_mem_type *ctxm, in bnxt_copy_ctx_mem()
9121 static void bnxt_free_one_ctx_mem(struct bnxt *bp, in bnxt_free_one_ctx_mem()
9146 void bnxt_free_ctx_mem(struct bnxt *bp, bool force) in bnxt_free_ctx_mem()
9164 static int bnxt_alloc_ctx_mem(struct bnxt *bp) in bnxt_alloc_ctx_mem()
9303 static int bnxt_hwrm_crash_dump_mem_cfg(struct bnxt *bp) in bnxt_hwrm_crash_dump_mem_cfg()
9330 static void bnxt_free_crash_dump_mem(struct bnxt *bp) in bnxt_free_crash_dump_mem()
9339 static int bnxt_alloc_crash_dump_mem(struct bnxt *bp) in bnxt_alloc_crash_dump_mem()
9377 int bnxt_hwrm_func_resc_qcaps(struct bnxt *bp, bool all) in bnxt_hwrm_func_resc_qcaps()
9435 static int __bnxt_hwrm_ptp_qcfg(struct bnxt *bp) in __bnxt_hwrm_ptp_qcfg()
9503 static int __bnxt_hwrm_func_qcaps(struct bnxt *bp) in __bnxt_hwrm_func_qcaps()
9629 static void bnxt_hwrm_dbg_qcaps(struct bnxt *bp) in bnxt_hwrm_dbg_qcaps()
9657 int bnxt_hwrm_func_qcaps(struct bnxt *bp) in bnxt_hwrm_func_qcaps()
9683 static int bnxt_hwrm_cfa_adv_flow_mgnt_qcaps(struct bnxt *bp) in bnxt_hwrm_cfa_adv_flow_mgnt_qcaps()
9720 static int __bnxt_alloc_fw_health(struct bnxt *bp) in __bnxt_alloc_fw_health()
9733 static int bnxt_alloc_fw_health(struct bnxt *bp) in bnxt_alloc_fw_health()
9751 static void __bnxt_map_fw_health_reg(struct bnxt *bp, u32 reg) in __bnxt_map_fw_health_reg()
9758 static void bnxt_inv_fw_health_reg(struct bnxt *bp) in bnxt_inv_fw_health_reg()
9775 static void bnxt_try_map_fw_health_reg(struct bnxt *bp) in bnxt_try_map_fw_health_reg()
9822 static int bnxt_map_fw_health_regs(struct bnxt *bp) in bnxt_map_fw_health_regs()
9851 static void bnxt_remap_fw_health_regs(struct bnxt *bp) in bnxt_remap_fw_health_regs()
9864 static int bnxt_hwrm_error_recovery_qcfg(struct bnxt *bp) in bnxt_hwrm_error_recovery_qcfg()
9929 static int bnxt_hwrm_func_reset(struct bnxt *bp) in bnxt_hwrm_func_reset()
9943 static void bnxt_nvm_cfg_ver_get(struct bnxt *bp) in bnxt_nvm_cfg_ver_get()
9953 static int bnxt_hwrm_queue_qportcfg(struct bnxt *bp) in bnxt_hwrm_queue_qportcfg()
10004 static int bnxt_hwrm_poll(struct bnxt *bp) in bnxt_hwrm_poll()
10022 static int bnxt_hwrm_ver_get(struct bnxt *bp) in bnxt_hwrm_ver_get()
10143 int bnxt_hwrm_fw_set_time(struct bnxt *bp) in bnxt_hwrm_fw_set_time()
10206 static void bnxt_accumulate_all_stats(struct bnxt *bp) in bnxt_accumulate_all_stats()
10251 static int bnxt_hwrm_port_qstats(struct bnxt *bp, u8 flags) in bnxt_hwrm_port_qstats()
10275 static int bnxt_hwrm_port_qstats_ext(struct bnxt *bp, u8 flags) in bnxt_hwrm_port_qstats_ext()
10365 static void bnxt_hwrm_free_tunnel_ports(struct bnxt *bp) in bnxt_hwrm_free_tunnel_ports()
10373 static int bnxt_set_tpa(struct bnxt *bp, bool set_tpa) in bnxt_set_tpa()
10393 static void bnxt_hwrm_clear_vnic_rss(struct bnxt *bp) in bnxt_hwrm_clear_vnic_rss()
10401 static void bnxt_clear_vnic(struct bnxt *bp) in bnxt_clear_vnic()
10420 static void bnxt_hwrm_resource_free(struct bnxt *bp, bool close_path, in bnxt_hwrm_resource_free()
10432 static int bnxt_hwrm_set_br_mode(struct bnxt *bp, u16 br_mode) in bnxt_hwrm_set_br_mode()
10455 static int bnxt_hwrm_set_cache_line_size(struct bnxt *bp, int size) in bnxt_hwrm_set_cache_line_size()
10476 static int __bnxt_setup_vnic(struct bnxt *bp, struct bnxt_vnic_info *vnic) in __bnxt_setup_vnic()
10531 int bnxt_hwrm_vnic_update(struct bnxt *bp, struct bnxt_vnic_info *vnic, in bnxt_hwrm_vnic_update()
10551 int bnxt_hwrm_vnic_rss_cfg_p5(struct bnxt *bp, struct bnxt_vnic_info *vnic) in bnxt_hwrm_vnic_rss_cfg_p5()
10568 int __bnxt_setup_vnic_p5(struct bnxt *bp, struct bnxt_vnic_info *vnic) in __bnxt_setup_vnic_p5()
10599 static int bnxt_setup_vnic(struct bnxt *bp, struct bnxt_vnic_info *vnic) in bnxt_setup_vnic()
10607 static int bnxt_alloc_and_setup_vnic(struct bnxt *bp, in bnxt_alloc_and_setup_vnic()
10622 static int bnxt_alloc_rfs_vnics(struct bnxt *bp) in bnxt_alloc_rfs_vnics()
10652 void bnxt_del_one_rss_ctx(struct bnxt *bp, struct bnxt_rss_ctx *rss_ctx, in bnxt_del_one_rss_ctx()
10689 static void bnxt_hwrm_realloc_rss_ctx_vnic(struct bnxt *bp) in bnxt_hwrm_realloc_rss_ctx_vnic()
10710 static void bnxt_clear_rss_ctxs(struct bnxt *bp) in bnxt_clear_rss_ctxs()
10723 static bool bnxt_promisc_ok(struct bnxt *bp) in bnxt_promisc_ok()
10732 static int bnxt_setup_nitroa0_vnic(struct bnxt *bp) in bnxt_setup_nitroa0_vnic()
10756 static int bnxt_init_chip(struct bnxt *bp, bool irq_re_init) in bnxt_init_chip()
10878 static int bnxt_shutdown_nic(struct bnxt *bp, bool irq_re_init) in bnxt_shutdown_nic()
10884 static int bnxt_init_nic(struct bnxt *bp, bool irq_re_init) in bnxt_init_nic()
10895 static int bnxt_set_real_num_queues(struct bnxt *bp) in bnxt_set_real_num_queues()
10917 static int __bnxt_trim_rings(struct bnxt *bp, int *rx, int *tx, int max, in __bnxt_trim_rings()
10941 static int __bnxt_num_tx_to_cp(struct bnxt *bp, int tx, int tx_sets, int tx_xdp) in __bnxt_num_tx_to_cp()
10946 int bnxt_num_tx_to_cp(struct bnxt *bp, int tx) in bnxt_num_tx_to_cp()
10955 static int bnxt_num_cp_to_tx(struct bnxt *bp, int tx_cp) in bnxt_num_cp_to_tx()
10963 static int bnxt_trim_rings(struct bnxt *bp, int *rx, int *tx, int max, in bnxt_trim_rings()
10981 static void bnxt_setup_msix(struct bnxt *bp) in bnxt_setup_msix()
11017 static int bnxt_change_msix(struct bnxt *bp, int total) in bnxt_change_msix()
11041 static int bnxt_setup_int_mode(struct bnxt *bp) in bnxt_setup_int_mode()
11057 static unsigned int bnxt_get_max_func_rss_ctxs(struct bnxt *bp) in bnxt_get_max_func_rss_ctxs()
11062 static unsigned int bnxt_get_max_func_vnics(struct bnxt *bp) in bnxt_get_max_func_vnics()
11067 unsigned int bnxt_get_max_func_stat_ctxs(struct bnxt *bp) in bnxt_get_max_func_stat_ctxs()
11072 unsigned int bnxt_get_max_func_cp_rings(struct bnxt *bp) in bnxt_get_max_func_cp_rings()
11077 static unsigned int bnxt_get_max_func_cp_rings_for_en(struct bnxt *bp) in bnxt_get_max_func_cp_rings_for_en()
11087 static unsigned int bnxt_get_max_func_irqs(struct bnxt *bp) in bnxt_get_max_func_irqs()
11097 static void bnxt_set_max_func_irqs(struct bnxt *bp, unsigned int max_irqs) in bnxt_set_max_func_irqs()
11102 unsigned int bnxt_get_avail_cp_rings_for_en(struct bnxt *bp) in bnxt_get_avail_cp_rings_for_en()
11113 unsigned int bnxt_get_avail_stat_ctxs_for_en(struct bnxt *bp) in bnxt_get_avail_stat_ctxs_for_en()
11118 static int bnxt_get_avail_msix(struct bnxt *bp, int num) in bnxt_get_avail_msix()
11131 static int bnxt_get_num_msix(struct bnxt *bp) in bnxt_get_num_msix()
11139 static int bnxt_init_int_mode(struct bnxt *bp) in bnxt_init_int_mode()
11196 static void bnxt_clear_int_mode(struct bnxt *bp) in bnxt_clear_int_mode()
11204 int bnxt_reserve_rings(struct bnxt *bp, bool irq_re_init) in bnxt_reserve_rings()
11260 static void bnxt_free_irq(struct bnxt *bp) in bnxt_free_irq()
11289 static int bnxt_request_irq(struct bnxt *bp) in bnxt_request_irq()
11345 static void bnxt_del_napi(struct bnxt *bp) in bnxt_del_napi()
11368 static void bnxt_init_napi(struct bnxt *bp) in bnxt_init_napi()
11390 static void bnxt_disable_napi(struct bnxt *bp) in bnxt_disable_napi()
11411 static void bnxt_enable_napi(struct bnxt *bp) in bnxt_enable_napi()
11433 void bnxt_tx_disable(struct bnxt *bp) in bnxt_tx_disable()
11452 void bnxt_tx_enable(struct bnxt *bp) in bnxt_tx_enable()
11492 void bnxt_report_link(struct bnxt *bp) in bnxt_report_link()
11566 static int bnxt_hwrm_phy_qcaps(struct bnxt *bp) in bnxt_hwrm_phy_qcaps()
11627 static void bnxt_hwrm_mac_qcaps(struct bnxt *bp) in bnxt_hwrm_mac_qcaps()
11656 struct bnxt *bp = container_of(link_info, struct bnxt, link_info); in bnxt_support_speed_dropped() local
11682 int bnxt_update_link(struct bnxt *bp, bool chng_link_state) in bnxt_update_link()
11813 static void bnxt_get_port_module_status(struct bnxt *bp) in bnxt_get_port_module_status()
11841 bnxt_hwrm_set_pause_common(struct bnxt *bp, struct hwrm_port_phy_cfg_input *req) in bnxt_hwrm_set_pause_common()
11868 static void bnxt_hwrm_set_link_common(struct bnxt *bp, struct hwrm_port_phy_cfg_input *req) in bnxt_hwrm_set_link_common()
11907 int bnxt_hwrm_set_pause(struct bnxt *bp) in bnxt_hwrm_set_pause()
11938 static void bnxt_hwrm_set_eee(struct bnxt *bp, in bnxt_hwrm_set_eee()
11961 int bnxt_hwrm_set_link_setting(struct bnxt *bp, bool set_pause, bool set_eee) in bnxt_hwrm_set_link_setting()
11980 static int bnxt_hwrm_shutdown_link(struct bnxt *bp) in bnxt_hwrm_shutdown_link()
12011 static int bnxt_fw_reset_via_optee(struct bnxt *bp) in bnxt_fw_reset_via_optee()
12026 static int bnxt_try_recover_fw(struct bnxt *bp) in bnxt_try_recover_fw()
12057 static void bnxt_clear_reservations(struct bnxt *bp, bool fw_reset) in bnxt_clear_reservations()
12078 int bnxt_cancel_reservations(struct bnxt *bp, bool fw_reset) in bnxt_cancel_reservations()
12094 static int bnxt_hwrm_if_change(struct bnxt *bp, bool up) in bnxt_hwrm_if_change()
12181 static int bnxt_hwrm_port_led_qcaps(struct bnxt *bp) in bnxt_hwrm_port_led_qcaps()
12224 int bnxt_hwrm_alloc_wol_fltr(struct bnxt *bp) in bnxt_hwrm_alloc_wol_fltr()
12247 int bnxt_hwrm_free_wol_fltr(struct bnxt *bp) in bnxt_hwrm_free_wol_fltr()
12263 static u16 bnxt_hwrm_get_wol_fltrs(struct bnxt *bp, u16 handle) in bnxt_hwrm_get_wol_fltrs()
12292 static void bnxt_get_wol_settings(struct bnxt *bp) in bnxt_get_wol_settings()
12305 static bool bnxt_eee_config_ok(struct bnxt *bp) in bnxt_eee_config_ok()
12332 static int bnxt_update_phy_setting(struct bnxt *bp) in bnxt_update_phy_setting()
12394 static int bnxt_reinit_after_abort(struct bnxt *bp) in bnxt_reinit_after_abort()
12416 static void bnxt_cfg_one_usr_fltr(struct bnxt *bp, struct bnxt_filter_base *fltr) in bnxt_cfg_one_usr_fltr()
12444 static void bnxt_cfg_usr_fltrs(struct bnxt *bp) in bnxt_cfg_usr_fltrs()
12452 static int bnxt_set_xps_mapping(struct bnxt *bp) in bnxt_set_xps_mapping()
12492 static int __bnxt_open_nic(struct bnxt *bp, bool irq_re_init, bool link_re_init) in __bnxt_open_nic()
12593 int bnxt_open_nic(struct bnxt *bp, bool irq_re_init, bool link_re_init) in bnxt_open_nic()
12612 int bnxt_half_open_nic(struct bnxt *bp) in bnxt_half_open_nic()
12648 void bnxt_half_close_nic(struct bnxt *bp) in bnxt_half_close_nic()
12657 void bnxt_reenable_sriov(struct bnxt *bp) in bnxt_reenable_sriov()
12670 struct bnxt *bp = netdev_priv(dev); in bnxt_open() local
12702 static bool bnxt_drv_busy(struct bnxt *bp) in bnxt_drv_busy()
12711 static void __bnxt_close_nic(struct bnxt *bp, bool irq_re_init, in __bnxt_close_nic()
12750 void bnxt_close_nic(struct bnxt *bp, bool irq_re_init, bool link_re_init) in bnxt_close_nic()
12782 struct bnxt *bp = netdev_priv(dev); in bnxt_close() local
12790 static int bnxt_hwrm_port_phy_read(struct bnxt *bp, u16 phy_addr, u16 reg, in bnxt_hwrm_port_phy_read()
12822 static int bnxt_hwrm_port_phy_write(struct bnxt *bp, u16 phy_addr, u16 reg, in bnxt_hwrm_port_phy_write()
12853 struct bnxt *bp = netdev_priv(dev); in bnxt_ioctl() local
12893 static void bnxt_get_ring_stats(struct bnxt *bp, in bnxt_get_ring_stats()
12932 static void bnxt_add_prev_stats(struct bnxt *bp, in bnxt_add_prev_stats()
12950 struct bnxt *bp = netdev_priv(dev); in bnxt_get_stats64() local
12991 static void bnxt_get_one_ring_err_stats(struct bnxt *bp, in bnxt_get_one_ring_err_stats()
13011 void bnxt_get_ring_err_stats(struct bnxt *bp, in bnxt_get_ring_err_stats()
13020 static bool bnxt_mc_list_updated(struct bnxt *bp, u32 *rx_mask) in bnxt_mc_list_updated()
13054 static bool bnxt_uc_list_updated(struct bnxt *bp) in bnxt_uc_list_updated()
13075 struct bnxt *bp = netdev_priv(dev); in bnxt_set_rx_mode() local
13112 static int bnxt_cfg_rx_mode(struct bnxt *bp) in bnxt_cfg_rx_mode()
13187 static bool bnxt_can_reserve_rings(struct bnxt *bp) in bnxt_can_reserve_rings()
13207 static bool bnxt_rfs_supported(struct bnxt *bp) in bnxt_rfs_supported()
13225 bool bnxt_rfs_capable(struct bnxt *bp, bool new_rss_ctx) in bnxt_rfs_capable()
13279 struct bnxt *bp = netdev_priv(dev); in bnxt_fix_features() local
13311 static int bnxt_reinit_features(struct bnxt *bp, bool irq_re_init, in bnxt_reinit_features()
13324 struct bnxt *bp = netdev_priv(dev); in bnxt_set_features() local
13390 static bool bnxt_exthdr_check(struct bnxt *bp, struct sk_buff *skb, int nw_off, in bnxt_exthdr_check()
13457 static bool bnxt_udp_tunl_check(struct bnxt *bp, struct sk_buff *skb) in bnxt_udp_tunl_check()
13485 static bool bnxt_tunl_check(struct bnxt *bp, struct sk_buff *skb, u8 l4_proto) in bnxt_tunl_check()
13514 struct bnxt *bp = netdev_priv(dev); in bnxt_features_check() local
13537 int bnxt_dbg_hwrm_rd_reg(struct bnxt *bp, u32 reg_off, u16 num_words, in bnxt_dbg_hwrm_rd_reg()
13576 static int bnxt_dbg_hwrm_ring_info_get(struct bnxt *bp, u8 ring_type, in bnxt_dbg_hwrm_ring_info_get()
13633 static void bnxt_dbg_dump_states(struct bnxt *bp) in bnxt_dbg_dump_states()
13648 static int bnxt_hwrm_rx_ring_reset(struct bnxt *bp, int ring_nr) in bnxt_hwrm_rx_ring_reset()
13669 static void bnxt_reset_task(struct bnxt *bp, bool silent) in bnxt_reset_task()
13681 struct bnxt *bp = netdev_priv(dev); in bnxt_tx_timeout() local
13687 static void bnxt_fw_health_check(struct bnxt *bp) in bnxt_fw_health_check()
13726 struct bnxt *bp = from_timer(bp, t, timer); in bnxt_timer() local
13768 static void bnxt_rtnl_lock_sp(struct bnxt *bp) in bnxt_rtnl_lock_sp()
13779 static void bnxt_rtnl_unlock_sp(struct bnxt *bp) in bnxt_rtnl_unlock_sp()
13786 static void bnxt_reset(struct bnxt *bp, bool silent) in bnxt_reset()
13795 static void bnxt_rx_ring_reset(struct bnxt *bp) in bnxt_rx_ring_reset()
13843 static void bnxt_fw_fatal_close(struct bnxt *bp) in bnxt_fw_fatal_close()
13853 static void bnxt_fw_reset_close(struct bnxt *bp) in bnxt_fw_reset_close()
13876 static bool is_bnxt_fw_ok(struct bnxt *bp) in is_bnxt_fw_ok()
13897 static void bnxt_force_fw_reset(struct bnxt *bp) in bnxt_force_fw_reset()
13934 void bnxt_fw_exception(struct bnxt *bp) in bnxt_fw_exception()
13947 static int bnxt_get_registered_vfs(struct bnxt *bp) in bnxt_get_registered_vfs()
13968 void bnxt_fw_reset(struct bnxt *bp) in bnxt_fw_reset()
14020 static void bnxt_chk_missed_irq(struct bnxt *bp) in bnxt_chk_missed_irq()
14059 static void bnxt_init_ethtool_link_settings(struct bnxt *bp) in bnxt_init_ethtool_link_settings()
14084 static void bnxt_fw_echo_reply(struct bnxt *bp) in bnxt_fw_echo_reply()
14098 static void bnxt_ulp_restart(struct bnxt *bp) in bnxt_ulp_restart()
14106 struct bnxt *bp = container_of(work, struct bnxt, sp_task); in bnxt_sp_task() local
14217 int bnxt_check_rings(struct bnxt *bp, int tx, int rx, bool sh, int tcs, in bnxt_check_rings()
14275 static void bnxt_unmap_bars(struct bnxt *bp, struct pci_dev *pdev) in bnxt_unmap_bars()
14293 static void bnxt_cleanup_pci(struct bnxt *bp) in bnxt_cleanup_pci()
14301 static void bnxt_init_dflt_coal(struct bnxt *bp) in bnxt_init_dflt_coal()
14336 static bool bnxt_fw_pre_resv_vnics(struct bnxt *bp) in bnxt_fw_pre_resv_vnics()
14349 static int bnxt_fw_init_one_p1(struct bnxt *bp) in bnxt_fw_init_one_p1()
14380 static int bnxt_fw_init_one_p2(struct bnxt *bp) in bnxt_fw_init_one_p2()
14437 static void bnxt_set_dflt_rss_hash_type(struct bnxt *bp) in bnxt_set_dflt_rss_hash_type()
14453 static void bnxt_set_dflt_rfs(struct bnxt *bp) in bnxt_set_dflt_rfs()
14469 static void bnxt_fw_init_one_p3(struct bnxt *bp) in bnxt_fw_init_one_p3()
14488 int bnxt_fw_init_one(struct bnxt *bp) in bnxt_fw_init_one()
14513 static void bnxt_fw_reset_writel(struct bnxt *bp, int reg_idx) in bnxt_fw_reset_writel()
14545 bool bnxt_hwrm_reset_permitted(struct bnxt *bp) in bnxt_hwrm_reset_permitted()
14566 static void bnxt_reset_all(struct bnxt *bp) in bnxt_reset_all()
14597 static bool bnxt_fw_reset_timeout(struct bnxt *bp) in bnxt_fw_reset_timeout()
14603 static void bnxt_fw_reset_abort(struct bnxt *bp, int rc) in bnxt_fw_reset_abort()
14614 struct bnxt *bp = container_of(work, struct bnxt, fw_reset_task.work); in bnxt_fw_reset_task() local
14788 struct bnxt *bp = netdev_priv(dev); in bnxt_init_board() local
14876 struct bnxt *bp = netdev_priv(dev); in bnxt_change_mac_addr() local
14902 struct bnxt *bp = netdev_priv(dev); in bnxt_change_mtu() local
14926 struct bnxt *bp = netdev_priv(dev); in bnxt_setup_mq_tc() local
14974 struct bnxt *bp = cb_priv; in bnxt_setup_tc_block_cb() local
14993 struct bnxt *bp = netdev_priv(dev); in bnxt_setup_tc() local
15013 u32 bnxt_get_ntp_filter_idx(struct bnxt *bp, struct flow_keys *fkeys, in bnxt_get_ntp_filter_idx()
15025 int bnxt_insert_ntp_filter(struct bnxt *bp, struct bnxt_ntuple_filter *fltr, in bnxt_insert_ntp_filter()
15089 bnxt_lookup_ntp_filter_from_idx(struct bnxt *bp, in bnxt_lookup_ntp_filter_from_idx()
15107 struct bnxt *bp = netdev_priv(dev); in bnxt_rx_flow_steer() local
15191 void bnxt_del_ntp_filter(struct bnxt *bp, struct bnxt_ntuple_filter *fltr) in bnxt_del_ntp_filter()
15207 static void bnxt_cfg_ntp_filters(struct bnxt *bp) in bnxt_cfg_ntp_filters()
15251 struct bnxt *bp = netdev_priv(netdev); in bnxt_udp_tunnel_set_port() local
15267 struct bnxt *bp = netdev_priv(netdev); in bnxt_udp_tunnel_unset_port() local
15305 struct bnxt *bp = netdev_priv(dev); in bnxt_bridge_getlink() local
15314 struct bnxt *bp = netdev_priv(dev); in bnxt_bridge_setlink() local
15343 struct bnxt *bp = netdev_priv(dev); in bnxt_get_port_parent_id() local
15394 struct bnxt *bp = netdev_priv(dev); in bnxt_get_queue_stats_rx() local
15420 struct bnxt *bp = netdev_priv(dev); in bnxt_get_queue_stats_tx() local
15445 struct bnxt *bp = netdev_priv(dev); in bnxt_get_base_stats() local
15464 struct bnxt *bp = netdev_priv(dev); in bnxt_queue_mem_alloc() local
15549 struct bnxt *bp = netdev_priv(dev); in bnxt_queue_mem_free() local
15573 static void bnxt_copy_rx_ring(struct bnxt *bp, in bnxt_copy_rx_ring()
15630 struct bnxt *bp = netdev_priv(dev); in bnxt_queue_start() local
15688 struct bnxt *bp = netdev_priv(dev); in bnxt_queue_stop() local
15727 struct bnxt *bp = netdev_priv(dev); in bnxt_remove_one() local
15771 static int bnxt_probe_phy(struct bnxt *bp, bool fw_dflt) in bnxt_probe_phy()
15825 static void _bnxt_get_max_rings(struct bnxt *bp, int *max_rx, int *max_tx, in _bnxt_get_max_rings()
15861 int bnxt_get_max_rings(struct bnxt *bp, int *max_rx, int *max_tx, bool shared) in bnxt_get_max_rings()
15874 static int bnxt_get_dflt_rings(struct bnxt *bp, int *max_rx, int *max_tx, in bnxt_get_dflt_rings()
15922 static void bnxt_trim_dflt_sh_rings(struct bnxt *bp) in bnxt_trim_dflt_sh_rings()
15930 static int bnxt_set_dflt_rings(struct bnxt *bp, bool sh) in bnxt_set_dflt_rings()
15994 static int bnxt_init_dflt_ring_mode(struct bnxt *bp) in bnxt_init_dflt_ring_mode()
16024 int bnxt_restore_pf_fw_resources(struct bnxt *bp) in bnxt_restore_pf_fw_resources()
16049 static int bnxt_init_mac_addr(struct bnxt *bp) in bnxt_init_mac_addr()
16076 static void bnxt_vpd_read_info(struct bnxt *bp) in bnxt_vpd_read_info()
16110 static int bnxt_pcie_dsn_get(struct bnxt *bp, u8 dsn[]) in bnxt_pcie_dsn_get()
16127 static int bnxt_map_db_bar(struct bnxt *bp) in bnxt_map_db_bar()
16137 void bnxt_print_device_info(struct bnxt *bp) in bnxt_print_device_info()
16150 struct bnxt *bp; in bnxt_init_one() local
16423 struct bnxt *bp; in bnxt_shutdown() local
16453 struct bnxt *bp = netdev_priv(dev); in bnxt_suspend() local
16474 struct bnxt *bp = netdev_priv(dev); in bnxt_resume() local
16548 struct bnxt *bp = netdev_priv(netdev); in bnxt_io_error_detected() local
16602 struct bnxt *bp = netdev_priv(netdev); in bnxt_io_slot_reset() local
16683 struct bnxt *bp = netdev_priv(netdev); in bnxt_io_resume() local