Lines Matching refs:bnxt

324 static void bnxt_db_nq(struct bnxt *bp, struct bnxt_db_info *db, u32 idx)  in bnxt_db_nq()
334 static void bnxt_db_nq_arm(struct bnxt *bp, struct bnxt_db_info *db, u32 idx) in bnxt_db_nq_arm()
342 static void bnxt_db_cq(struct bnxt *bp, struct bnxt_db_info *db, u32 idx) in bnxt_db_cq()
351 static void bnxt_queue_fw_reset_work(struct bnxt *bp, unsigned long delay) in bnxt_queue_fw_reset_work()
362 static void __bnxt_queue_sp_work(struct bnxt *bp) in __bnxt_queue_sp_work()
370 static void bnxt_queue_sp_work(struct bnxt *bp, unsigned int event) in bnxt_queue_sp_work()
376 static void bnxt_sched_reset_rxr(struct bnxt *bp, struct bnxt_rx_ring_info *rxr) in bnxt_sched_reset_rxr()
389 void bnxt_sched_reset_txr(struct bnxt *bp, struct bnxt_tx_ring_info *txr, in bnxt_sched_reset_txr()
437 static void bnxt_txr_db_kick(struct bnxt *bp, struct bnxt_tx_ring_info *txr, in bnxt_txr_db_kick()
448 struct bnxt *bp = netdev_priv(dev); in bnxt_start_xmit()
775 static bool __bnxt_tx_int(struct bnxt *bp, struct bnxt_tx_ring_info *txr, in __bnxt_tx_int()
853 static void bnxt_tx_int(struct bnxt *bp, struct bnxt_napi *bnapi, int budget) in bnxt_tx_int()
867 static struct page *__bnxt_alloc_rx_page(struct bnxt *bp, dma_addr_t *mapping, in __bnxt_alloc_rx_page()
888 static inline u8 *__bnxt_alloc_rx_frag(struct bnxt *bp, dma_addr_t *mapping, in __bnxt_alloc_rx_frag()
912 int bnxt_alloc_rx_data(struct bnxt *bp, struct bnxt_rx_ring_info *rxr, in bnxt_alloc_rx_data()
949 struct bnxt *bp = rxr->bnapi->bp; in bnxt_reuse_rx_data()
976 static inline int bnxt_alloc_rx_page(struct bnxt *bp, in bnxt_alloc_rx_page()
1008 static struct rx_agg_cmp *bnxt_get_agg(struct bnxt *bp, in bnxt_get_agg()
1020 static struct rx_agg_cmp *bnxt_get_tpa_agg_p5(struct bnxt *bp, in bnxt_get_tpa_agg_p5()
1033 struct bnxt *bp = bnapi->bp; in bnxt_reuse_rx_agg_bufs()
1086 static struct sk_buff *bnxt_rx_multi_page_skb(struct bnxt *bp, in bnxt_rx_multi_page_skb()
1118 static struct sk_buff *bnxt_rx_page_skb(struct bnxt *bp, in bnxt_rx_page_skb()
1165 static struct sk_buff *bnxt_rx_skb(struct bnxt *bp, in bnxt_rx_skb()
1194 static u32 __bnxt_rx_agg_pages(struct bnxt *bp, in __bnxt_rx_agg_pages()
1265 static struct sk_buff *bnxt_rx_agg_pages_skb(struct bnxt *bp, in bnxt_rx_agg_pages_skb()
1287 static u32 bnxt_rx_agg_pages_xdp(struct bnxt *bp, in bnxt_rx_agg_pages_xdp()
1308 static int bnxt_agg_bufs_valid(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, in bnxt_agg_bufs_valid()
1325 struct bnxt *bp = bnapi->bp; in bnxt_copy_data()
1379 static int bnxt_discard_rx(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, in bnxt_discard_rx()
1467 static void bnxt_tpa_start(struct bnxt *bp, struct bnxt_rx_ring_info *rxr, in bnxt_tpa_start()
1722 static inline struct sk_buff *bnxt_gro_skb(struct bnxt *bp, in bnxt_gro_skb()
1754 static struct net_device *bnxt_get_pkt_dev(struct bnxt *bp, u16 cfa_code) in bnxt_get_pkt_dev()
1762 static inline struct sk_buff *bnxt_tpa_end(struct bnxt *bp, in bnxt_tpa_end()
1912 static void bnxt_tpa_agg(struct bnxt *bp, struct bnxt_rx_ring_info *rxr, in bnxt_tpa_agg()
1924 static void bnxt_deliver_skb(struct bnxt *bp, struct bnxt_napi *bnapi, in bnxt_deliver_skb()
1938 static bool bnxt_rx_ts_valid(struct bnxt *bp, u32 flags, in bnxt_rx_ts_valid()
1994 static enum pkt_hash_types bnxt_rss_ext_op(struct bnxt *bp, in bnxt_rss_ext_op()
2018 static int bnxt_rx_pkt(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, in bnxt_rx_pkt()
2293 static int bnxt_force_rx_discard(struct bnxt *bp, in bnxt_force_rx_discard()
2338 u32 bnxt_fw_health_readl(struct bnxt *bp, int reg_idx) in bnxt_fw_health_readl()
2365 static u16 bnxt_agg_ring_id_to_grp_idx(struct bnxt *bp, u16 ring_id) in bnxt_agg_ring_id_to_grp_idx()
2382 struct bnxt *bp = container_of(link_info, struct bnxt, link_info); in bnxt_get_force_speed()
2393 struct bnxt *bp = container_of(link_info, struct bnxt, link_info); in bnxt_set_force_speed()
2425 struct bnxt *bp = container_of(link_info, struct bnxt, link_info); in bnxt_set_auto_speed()
2437 struct bnxt *bp = container_of(link_info, struct bnxt, link_info); in bnxt_force_speed_updated()
2455 struct bnxt *bp = container_of(link_info, struct bnxt, link_info); in bnxt_auto_speed_updated()
2487 static bool bnxt_event_error_report(struct bnxt *bp, u32 data1, u32 data2) in bnxt_event_error_report()
2576 static int bnxt_async_event_process(struct bnxt *bp, in bnxt_async_event_process()
2792 static int bnxt_hwrm_handler(struct bnxt *bp, struct tx_cmp *txcmp) in bnxt_hwrm_handler()
2834 struct bnxt *bp = bnapi->bp; in bnxt_msix()
2844 static inline int bnxt_has_work(struct bnxt *bp, struct bnxt_cp_ring_info *cpr) in bnxt_has_work()
2855 static int __bnxt_poll_work(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, in __bnxt_poll_work()
2958 static void __bnxt_poll_work_done(struct bnxt *bp, struct bnxt_napi *bnapi, in __bnxt_poll_work_done()
2978 static int bnxt_poll_work(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, in bnxt_poll_work()
2999 struct bnxt *bp = bnapi->bp; in bnxt_poll_nitroa0()
3075 struct bnxt *bp = bnapi->bp; in bnxt_poll()
3110 static int __bnxt_poll_cqs(struct bnxt *bp, struct bnxt_napi *bnapi, int budget) in __bnxt_poll_cqs()
3127 static void __bnxt_poll_cqs_done(struct bnxt *bp, struct bnxt_napi *bnapi, in __bnxt_poll_cqs_done()
3161 struct bnxt *bp = bnapi->bp; in bnxt_poll_p5()
3241 static void bnxt_free_tx_skbs(struct bnxt *bp) in bnxt_free_tx_skbs()
3312 static void bnxt_free_one_rx_ring(struct bnxt *bp, struct bnxt_rx_ring_info *rxr) in bnxt_free_one_rx_ring()
3339 static void bnxt_free_one_rx_agg_ring(struct bnxt *bp, struct bnxt_rx_ring_info *rxr) in bnxt_free_one_rx_agg_ring()
3359 static void bnxt_free_one_rx_ring_skbs(struct bnxt *bp, int ring_nr) in bnxt_free_one_rx_ring_skbs()
3403 static void bnxt_free_rx_skbs(struct bnxt *bp) in bnxt_free_rx_skbs()
3414 static void bnxt_free_skbs(struct bnxt *bp) in bnxt_free_skbs()
3437 static void bnxt_free_ring(struct bnxt *bp, struct bnxt_ring_mem_info *rmem) in bnxt_free_ring()
3470 static int bnxt_alloc_ring(struct bnxt *bp, struct bnxt_ring_mem_info *rmem) in bnxt_alloc_ring()
3523 static void bnxt_free_tpa_info(struct bnxt *bp) in bnxt_free_tpa_info()
3543 static int bnxt_alloc_tpa_info(struct bnxt *bp) in bnxt_alloc_tpa_info()
3579 static void bnxt_free_rx_rings(struct bnxt *bp) in bnxt_free_rx_rings()
3611 static int bnxt_alloc_rx_page_pool(struct bnxt *bp, in bnxt_alloc_rx_page_pool()
3638 static int bnxt_alloc_rx_rings(struct bnxt *bp) in bnxt_alloc_rx_rings()
3702 static void bnxt_free_tx_rings(struct bnxt *bp) in bnxt_free_tx_rings()
3735 static int bnxt_alloc_tx_rings(struct bnxt *bp) in bnxt_alloc_tx_rings()
3820 static void bnxt_free_all_cp_arrays(struct bnxt *bp) in bnxt_free_all_cp_arrays()
3835 static int bnxt_alloc_all_cp_arrays(struct bnxt *bp) in bnxt_alloc_all_cp_arrays()
3852 static void bnxt_free_cp_rings(struct bnxt *bp) in bnxt_free_cp_rings()
3889 static int bnxt_alloc_cp_sub_ring(struct bnxt *bp, in bnxt_alloc_cp_sub_ring()
3916 static int bnxt_alloc_cp_rings(struct bnxt *bp) in bnxt_alloc_cp_rings()
3992 static void bnxt_init_rx_ring_struct(struct bnxt *bp, in bnxt_init_rx_ring_struct()
4017 static void bnxt_reset_rx_ring_struct(struct bnxt *bp, in bnxt_reset_rx_ring_struct()
4049 static void bnxt_init_ring_struct(struct bnxt *bp) in bnxt_init_ring_struct()
4131 static void bnxt_alloc_one_rx_ring_skb(struct bnxt *bp, in bnxt_alloc_one_rx_ring_skb()
4150 static void bnxt_alloc_one_rx_ring_page(struct bnxt *bp, in bnxt_alloc_one_rx_ring_page()
4169 static int bnxt_alloc_one_rx_ring(struct bnxt *bp, int ring_nr) in bnxt_alloc_one_rx_ring()
4198 static void bnxt_init_one_rx_ring_rxbd(struct bnxt *bp, in bnxt_init_one_rx_ring_rxbd()
4215 static void bnxt_init_one_rx_agg_ring_rxbd(struct bnxt *bp, in bnxt_init_one_rx_agg_ring_rxbd()
4231 static int bnxt_init_one_rx_ring(struct bnxt *bp, int ring_nr) in bnxt_init_one_rx_ring()
4251 static void bnxt_init_cp_rings(struct bnxt *bp) in bnxt_init_cp_rings()
4275 static int bnxt_init_rx_rings(struct bnxt *bp) in bnxt_init_rx_rings()
4296 static int bnxt_init_tx_rings(struct bnxt *bp) in bnxt_init_tx_rings()
4318 static void bnxt_free_ring_grps(struct bnxt *bp) in bnxt_free_ring_grps()
4324 static int bnxt_init_ring_grps(struct bnxt *bp, bool irq_re_init) in bnxt_init_ring_grps()
4346 static void bnxt_free_vnics(struct bnxt *bp) in bnxt_free_vnics()
4353 static int bnxt_alloc_vnics(struct bnxt *bp) in bnxt_alloc_vnics()
4378 static void bnxt_init_vnics(struct bnxt *bp) in bnxt_init_vnics()
4445 void bnxt_set_tpa_flags(struct bnxt *bp) in bnxt_set_tpa_flags()
4459 void bnxt_set_ring_params(struct bnxt *bp) in bnxt_set_ring_params()
4556 int bnxt_set_rx_skb_mode(struct bnxt *bp, bool page_mode) in bnxt_set_rx_skb_mode()
4588 static void bnxt_free_vnic_attributes(struct bnxt *bp) in bnxt_free_vnic_attributes()
4624 static int bnxt_alloc_vnic_attributes(struct bnxt *bp) in bnxt_alloc_vnic_attributes()
4701 static void bnxt_free_hwrm_resources(struct bnxt *bp) in bnxt_free_hwrm_resources()
4714 static int bnxt_alloc_hwrm_resources(struct bnxt *bp) in bnxt_alloc_hwrm_resources()
4727 static void bnxt_free_stats_mem(struct bnxt *bp, struct bnxt_stats_mem *stats) in bnxt_free_stats_mem()
4740 static int bnxt_alloc_stats_mem(struct bnxt *bp, struct bnxt_stats_mem *stats, in bnxt_alloc_stats_mem()
4780 static int bnxt_hwrm_func_qstat_ext(struct bnxt *bp, in bnxt_hwrm_func_qstat_ext()
4809 static int bnxt_hwrm_port_qstats(struct bnxt *bp, u8 flags);
4810 static int bnxt_hwrm_port_qstats_ext(struct bnxt *bp, u8 flags);
4812 static void bnxt_init_stats(struct bnxt *bp) in bnxt_init_stats()
4883 static void bnxt_free_port_stats(struct bnxt *bp) in bnxt_free_port_stats()
4893 static void bnxt_free_ring_stats(struct bnxt *bp) in bnxt_free_ring_stats()
4911 static int bnxt_alloc_stats(struct bnxt *bp) in bnxt_alloc_stats()
4978 static void bnxt_clear_ring_indices(struct bnxt *bp) in bnxt_clear_ring_indices()
5014 void bnxt_insert_usr_fltr(struct bnxt *bp, struct bnxt_filter_base *fltr) in bnxt_insert_usr_fltr()
5024 void bnxt_del_one_usr_fltr(struct bnxt *bp, struct bnxt_filter_base *fltr) in bnxt_del_one_usr_fltr()
5030 static void bnxt_clear_usr_fltrs(struct bnxt *bp, bool all) in bnxt_clear_usr_fltrs()
5041 static void bnxt_del_fltr(struct bnxt *bp, struct bnxt_filter_base *fltr) in bnxt_del_fltr()
5052 static void bnxt_free_ntp_fltrs(struct bnxt *bp, bool all) in bnxt_free_ntp_fltrs()
5081 static int bnxt_alloc_ntp_fltrs(struct bnxt *bp) in bnxt_alloc_ntp_fltrs()
5100 static void bnxt_free_l2_filters(struct bnxt *bp, bool all) in bnxt_free_l2_filters()
5119 static void bnxt_init_l2_fltr_tbl(struct bnxt *bp) in bnxt_init_l2_fltr_tbl()
5128 static void bnxt_free_mem(struct bnxt *bp, bool irq_re_init) in bnxt_free_mem()
5157 static int bnxt_alloc_mem(struct bnxt *bp, bool irq_re_init) in bnxt_alloc_mem()
5304 static void bnxt_disable_int(struct bnxt *bp) in bnxt_disable_int()
5321 static int bnxt_cp_num_to_irq_num(struct bnxt *bp, int n) in bnxt_cp_num_to_irq_num()
5330 static void bnxt_disable_int_sync(struct bnxt *bp) in bnxt_disable_int_sync()
5347 static void bnxt_enable_int(struct bnxt *bp) in bnxt_enable_int()
5360 int bnxt_hwrm_func_drv_rgtr(struct bnxt *bp, unsigned long *bmap, int bmap_size, in bnxt_hwrm_func_drv_rgtr()
5455 int bnxt_hwrm_func_drv_unrgtr(struct bnxt *bp) in bnxt_hwrm_func_drv_unrgtr()
5469 static int bnxt_set_tpa(struct bnxt *bp, bool set_tpa);
5471 static int bnxt_hwrm_tunnel_dst_port_free(struct bnxt *bp, u8 tunnel_type) in bnxt_hwrm_tunnel_dst_port_free()
5518 static int bnxt_hwrm_tunnel_dst_port_alloc(struct bnxt *bp, __be16 port, in bnxt_hwrm_tunnel_dst_port_alloc()
5566 static int bnxt_hwrm_cfa_l2_set_rx_mask(struct bnxt *bp, u16 vnic_id) in bnxt_hwrm_cfa_l2_set_rx_mask()
5585 void bnxt_del_l2_filter(struct bnxt *bp, struct bnxt_l2_filter *fltr) in bnxt_del_l2_filter()
5604 static struct bnxt_l2_filter *__bnxt_lookup_l2_filter(struct bnxt *bp, in __bnxt_lookup_l2_filter()
5621 static struct bnxt_l2_filter *bnxt_lookup_l2_filter(struct bnxt *bp, in bnxt_lookup_l2_filter()
5647 static u32 bnxt_get_rss_flow_tuple_len(struct bnxt *bp, struct flow_keys *fkeys) in bnxt_get_rss_flow_tuple_len()
5670 static u32 bnxt_toeplitz(struct bnxt *bp, struct flow_keys *fkeys, in bnxt_toeplitz()
5710 bnxt_lookup_l2_filter_from_key(struct bnxt *bp, struct bnxt_l2_key *key) in bnxt_lookup_l2_filter_from_key()
5722 static int bnxt_init_l2_filter(struct bnxt *bp, struct bnxt_l2_filter *fltr, in bnxt_init_l2_filter()
5748 static struct bnxt_l2_filter *bnxt_alloc_l2_filter(struct bnxt *bp, in bnxt_alloc_l2_filter()
5775 struct bnxt_l2_filter *bnxt_alloc_new_l2_filter(struct bnxt *bp, in bnxt_alloc_new_l2_filter()
5820 int bnxt_hwrm_l2_filter_free(struct bnxt *bp, struct bnxt_l2_filter *fltr) in bnxt_hwrm_l2_filter_free()
5846 int bnxt_hwrm_l2_filter_alloc(struct bnxt *bp, struct bnxt_l2_filter *fltr) in bnxt_hwrm_l2_filter_alloc()
5899 int bnxt_hwrm_cfa_ntuple_filter_free(struct bnxt *bp, in bnxt_hwrm_cfa_ntuple_filter_free()
5941 bnxt_cfg_rfs_ring_tbl_idx(struct bnxt *bp, in bnxt_cfg_rfs_ring_tbl_idx()
5980 int bnxt_hwrm_cfa_ntuple_filter_alloc(struct bnxt *bp, in bnxt_hwrm_cfa_ntuple_filter_alloc()
6046 static int bnxt_hwrm_set_vnic_filter(struct bnxt *bp, u16 vnic_id, u16 idx, in bnxt_hwrm_set_vnic_filter()
6068 static void bnxt_hwrm_clear_vnic_filter(struct bnxt *bp) in bnxt_hwrm_clear_vnic_filter()
6091 static void bnxt_hwrm_vnic_update_tunl_tpa(struct bnxt *bp, in bnxt_hwrm_vnic_update_tunl_tpa()
6110 int bnxt_hwrm_vnic_set_tpa(struct bnxt *bp, struct bnxt_vnic_info *vnic, in bnxt_hwrm_vnic_set_tpa()
6173 static u16 bnxt_cp_ring_from_grp(struct bnxt *bp, struct bnxt_ring_struct *ring) in bnxt_cp_ring_from_grp()
6181 static u16 bnxt_cp_ring_for_rx(struct bnxt *bp, struct bnxt_rx_ring_info *rxr) in bnxt_cp_ring_for_rx()
6189 static u16 bnxt_cp_ring_for_tx(struct bnxt *bp, struct bnxt_tx_ring_info *txr) in bnxt_cp_ring_for_tx()
6197 static int bnxt_alloc_rss_indir_tbl(struct bnxt *bp) in bnxt_alloc_rss_indir_tbl()
6215 void bnxt_set_dflt_rss_indir_tbl(struct bnxt *bp, in bnxt_set_dflt_rss_indir_tbl()
6243 static u16 bnxt_get_max_rss_ring(struct bnxt *bp) in bnxt_get_max_rss_ring()
6256 int bnxt_get_nr_rss_ctxs(struct bnxt *bp, int rx_rings) in bnxt_get_nr_rss_ctxs()
6269 static void bnxt_fill_hw_rss_tbl(struct bnxt *bp, struct bnxt_vnic_info *vnic) in bnxt_fill_hw_rss_tbl()
6282 static void bnxt_fill_hw_rss_tbl_p5(struct bnxt *bp, in bnxt_fill_hw_rss_tbl_p5()
6310 __bnxt_hwrm_vnic_set_rss(struct bnxt *bp, struct hwrm_vnic_rss_cfg_input *req, in __bnxt_hwrm_vnic_set_rss()
6335 static int bnxt_hwrm_vnic_set_rss(struct bnxt *bp, struct bnxt_vnic_info *vnic, in bnxt_hwrm_vnic_set_rss()
6355 static int bnxt_hwrm_vnic_set_rss_p5(struct bnxt *bp, in bnxt_hwrm_vnic_set_rss_p5()
6390 static void bnxt_hwrm_update_rss_hash_cfg(struct bnxt *bp) in bnxt_hwrm_update_rss_hash_cfg()
6410 static int bnxt_hwrm_vnic_set_hds(struct bnxt *bp, struct bnxt_vnic_info *vnic) in bnxt_hwrm_vnic_set_hds()
6436 static void bnxt_hwrm_vnic_ctx_free_one(struct bnxt *bp, in bnxt_hwrm_vnic_ctx_free_one()
6452 static void bnxt_hwrm_vnic_ctx_free(struct bnxt *bp) in bnxt_hwrm_vnic_ctx_free()
6467 static int bnxt_hwrm_vnic_ctx_alloc(struct bnxt *bp, in bnxt_hwrm_vnic_ctx_alloc()
6488 static u32 bnxt_get_roce_vnic_mode(struct bnxt *bp) in bnxt_get_roce_vnic_mode()
6495 int bnxt_hwrm_vnic_cfg(struct bnxt *bp, struct bnxt_vnic_info *vnic) in bnxt_hwrm_vnic_cfg()
6569 static void bnxt_hwrm_vnic_free_one(struct bnxt *bp, in bnxt_hwrm_vnic_free_one()
6585 static void bnxt_hwrm_vnic_free(struct bnxt *bp) in bnxt_hwrm_vnic_free()
6593 int bnxt_hwrm_vnic_alloc(struct bnxt *bp, struct bnxt_vnic_info *vnic, in bnxt_hwrm_vnic_alloc()
6634 static int bnxt_hwrm_vnic_qcaps(struct bnxt *bp) in bnxt_hwrm_vnic_qcaps()
6697 static int bnxt_hwrm_ring_grp_alloc(struct bnxt *bp) in bnxt_hwrm_ring_grp_alloc()
6732 static void bnxt_hwrm_ring_grp_free(struct bnxt *bp) in bnxt_hwrm_ring_grp_free()
6756 static int hwrm_ring_alloc_send_msg(struct bnxt *bp, in hwrm_ring_alloc_send_msg()
6880 static int bnxt_hwrm_set_async_event_cr(struct bnxt *bp, int idx) in bnxt_hwrm_set_async_event_cr()
6909 static void bnxt_set_db_mask(struct bnxt *bp, struct bnxt_db_info *db, in bnxt_set_db_mask()
6933 static void bnxt_set_db(struct bnxt *bp, struct bnxt_db_info *db, u32 ring_type, in bnxt_set_db()
6976 static int bnxt_hwrm_rx_ring_alloc(struct bnxt *bp, in bnxt_hwrm_rx_ring_alloc()
6995 static int bnxt_hwrm_rx_agg_ring_alloc(struct bnxt *bp, in bnxt_hwrm_rx_agg_ring_alloc()
7018 static int bnxt_hwrm_ring_alloc(struct bnxt *bp) in bnxt_hwrm_ring_alloc()
7121 static int hwrm_ring_free_send_msg(struct bnxt *bp, in hwrm_ring_free_send_msg()
7154 static void bnxt_hwrm_rx_ring_free(struct bnxt *bp, in bnxt_hwrm_rx_ring_free()
7174 static void bnxt_hwrm_rx_agg_ring_free(struct bnxt *bp, in bnxt_hwrm_rx_agg_ring_free()
7198 static void bnxt_hwrm_ring_free(struct bnxt *bp, bool close_path) in bnxt_hwrm_ring_free()
7263 static int __bnxt_trim_rings(struct bnxt *bp, int *rx, int *tx, int max,
7265 static int bnxt_trim_rings(struct bnxt *bp, int *rx, int *tx, int max,
7268 static int bnxt_hwrm_get_rings(struct bnxt *bp) in bnxt_hwrm_get_rings()
7328 int __bnxt_hwrm_get_tx_rings(struct bnxt *bp, u16 fid, int *tx_rings) in __bnxt_hwrm_get_tx_rings()
7351 static bool bnxt_rfs_supported(struct bnxt *bp);
7354 __bnxt_hwrm_reserve_pf_rings(struct bnxt *bp, struct bnxt_hw_rings *hwr) in __bnxt_hwrm_reserve_pf_rings()
7398 __bnxt_hwrm_reserve_vf_rings(struct bnxt *bp, struct bnxt_hw_rings *hwr) in __bnxt_hwrm_reserve_vf_rings()
7440 bnxt_hwrm_reserve_pf_rings(struct bnxt *bp, struct bnxt_hw_rings *hwr) in bnxt_hwrm_reserve_pf_rings()
7465 bnxt_hwrm_reserve_vf_rings(struct bnxt *bp, struct bnxt_hw_rings *hwr) in bnxt_hwrm_reserve_vf_rings()
7486 static int bnxt_hwrm_reserve_rings(struct bnxt *bp, struct bnxt_hw_rings *hwr) in bnxt_hwrm_reserve_rings()
7494 int bnxt_nq_rings_in_use(struct bnxt *bp) in bnxt_nq_rings_in_use()
7499 static int bnxt_cp_rings_in_use(struct bnxt *bp) in bnxt_cp_rings_in_use()
7510 static int bnxt_get_func_stat_ctxs(struct bnxt *bp) in bnxt_get_func_stat_ctxs()
7515 static int bnxt_get_total_rss_ctxs(struct bnxt *bp, struct bnxt_hw_rings *hwr) in bnxt_get_total_rss_ctxs()
7536 static void bnxt_check_rss_tbl_no_rmgr(struct bnxt *bp) in bnxt_check_rss_tbl_no_rmgr()
7548 static int bnxt_get_total_vnics(struct bnxt *bp, int rx_rings) in bnxt_get_total_vnics()
7559 static bool bnxt_need_reserve_rings(struct bnxt *bp) in bnxt_need_reserve_rings()
7598 static void bnxt_copy_reserved_rings(struct bnxt *bp, struct bnxt_hw_rings *hwr) in bnxt_copy_reserved_rings()
7615 static bool bnxt_rings_ok(struct bnxt *bp, struct bnxt_hw_rings *hwr) in bnxt_rings_ok()
7621 static int bnxt_get_avail_msix(struct bnxt *bp, int num);
7623 static int __bnxt_reserve_rings(struct bnxt *bp) in __bnxt_reserve_rings()
7736 static int bnxt_hwrm_check_vf_rings(struct bnxt *bp, struct bnxt_hw_rings *hwr) in bnxt_hwrm_check_vf_rings()
7758 static int bnxt_hwrm_check_pf_rings(struct bnxt *bp, struct bnxt_hw_rings *hwr) in bnxt_hwrm_check_pf_rings()
7781 static int bnxt_hwrm_check_rings(struct bnxt *bp, struct bnxt_hw_rings *hwr) in bnxt_hwrm_check_rings()
7792 static void bnxt_hwrm_coal_params_qcaps(struct bnxt *bp) in bnxt_hwrm_coal_params_qcaps()
7839 static u16 bnxt_usec_to_coal_tmr(struct bnxt *bp, u16 usec) in bnxt_usec_to_coal_tmr()
7846 static void bnxt_hwrm_set_coal_params(struct bnxt *bp, in bnxt_hwrm_set_coal_params()
7902 static int __bnxt_hwrm_set_coal_nq(struct bnxt *bp, struct bnxt_napi *bnapi, in __bnxt_hwrm_set_coal_nq()
7930 int bnxt_hwrm_set_ring_coal(struct bnxt *bp, struct bnxt_napi *bnapi) in bnxt_hwrm_set_ring_coal()
7960 bnxt_hwrm_set_rx_coal(struct bnxt *bp, struct bnxt_napi *bnapi, in bnxt_hwrm_set_rx_coal()
7970 bnxt_hwrm_set_tx_coal(struct bnxt *bp, struct bnxt_napi *bnapi, in bnxt_hwrm_set_tx_coal()
7990 int bnxt_hwrm_set_coal(struct bnxt *bp) in bnxt_hwrm_set_coal()
8040 static void bnxt_hwrm_stat_ctx_free(struct bnxt *bp) in bnxt_hwrm_stat_ctx_free()
8082 static int bnxt_hwrm_stat_ctx_alloc(struct bnxt *bp) in bnxt_hwrm_stat_ctx_alloc()
8117 static int bnxt_hwrm_func_qcfg(struct bnxt *bp) in bnxt_hwrm_func_qcfg()
8208 static int bnxt_alloc_all_ctx_pg_info(struct bnxt *bp, int ctx_max) in bnxt_alloc_all_ctx_pg_info()
8233 static int bnxt_hwrm_func_backing_store_qcaps_v2(struct bnxt *bp) in bnxt_hwrm_func_backing_store_qcaps_v2()
8291 static int bnxt_hwrm_func_backing_store_qcaps(struct bnxt *bp) in bnxt_hwrm_func_backing_store_qcaps()
8433 static int bnxt_hwrm_func_backing_store_cfg(struct bnxt *bp, u32 enables) in bnxt_hwrm_func_backing_store_cfg()
8563 static int bnxt_alloc_ctx_mem_blk(struct bnxt *bp, in bnxt_alloc_ctx_mem_blk()
8577 static int bnxt_alloc_ctx_pg_tbls(struct bnxt *bp, in bnxt_alloc_ctx_pg_tbls()
8638 static void bnxt_free_ctx_pg_tbls(struct bnxt *bp, in bnxt_free_ctx_pg_tbls()
8667 static int bnxt_setup_ctxm_pg_tbls(struct bnxt *bp, in bnxt_setup_ctxm_pg_tbls()
8691 static int bnxt_hwrm_func_backing_store_cfg_v2(struct bnxt *bp, in bnxt_hwrm_func_backing_store_cfg_v2()
8739 static int bnxt_backing_store_cfg_v2(struct bnxt *bp, u32 ena) in bnxt_backing_store_cfg_v2()
8765 void bnxt_free_ctx_mem(struct bnxt *bp) in bnxt_free_ctx_mem()
8794 static int bnxt_alloc_ctx_mem(struct bnxt *bp) in bnxt_alloc_ctx_mem()
8919 static int bnxt_hwrm_crash_dump_mem_cfg(struct bnxt *bp) in bnxt_hwrm_crash_dump_mem_cfg()
8946 static void bnxt_free_crash_dump_mem(struct bnxt *bp) in bnxt_free_crash_dump_mem()
8955 static int bnxt_alloc_crash_dump_mem(struct bnxt *bp) in bnxt_alloc_crash_dump_mem()
8993 int bnxt_hwrm_func_resc_qcaps(struct bnxt *bp, bool all) in bnxt_hwrm_func_resc_qcaps()
9051 static int __bnxt_hwrm_ptp_qcfg(struct bnxt *bp) in __bnxt_hwrm_ptp_qcfg()
9119 static int __bnxt_hwrm_func_qcaps(struct bnxt *bp) in __bnxt_hwrm_func_qcaps()
9239 static void bnxt_hwrm_dbg_qcaps(struct bnxt *bp) in bnxt_hwrm_dbg_qcaps()
9265 static int bnxt_hwrm_queue_qportcfg(struct bnxt *bp);
9267 int bnxt_hwrm_func_qcaps(struct bnxt *bp) in bnxt_hwrm_func_qcaps()
9293 static int bnxt_hwrm_cfa_adv_flow_mgnt_qcaps(struct bnxt *bp) in bnxt_hwrm_cfa_adv_flow_mgnt_qcaps()
9330 static int __bnxt_alloc_fw_health(struct bnxt *bp) in __bnxt_alloc_fw_health()
9343 static int bnxt_alloc_fw_health(struct bnxt *bp) in bnxt_alloc_fw_health()
9361 static void __bnxt_map_fw_health_reg(struct bnxt *bp, u32 reg) in __bnxt_map_fw_health_reg()
9368 static void bnxt_inv_fw_health_reg(struct bnxt *bp) in bnxt_inv_fw_health_reg()
9385 static void bnxt_try_map_fw_health_reg(struct bnxt *bp) in bnxt_try_map_fw_health_reg()
9432 static int bnxt_map_fw_health_regs(struct bnxt *bp) in bnxt_map_fw_health_regs()
9461 static void bnxt_remap_fw_health_regs(struct bnxt *bp) in bnxt_remap_fw_health_regs()
9474 static int bnxt_hwrm_error_recovery_qcfg(struct bnxt *bp) in bnxt_hwrm_error_recovery_qcfg()
9539 static int bnxt_hwrm_func_reset(struct bnxt *bp) in bnxt_hwrm_func_reset()
9553 static void bnxt_nvm_cfg_ver_get(struct bnxt *bp) in bnxt_nvm_cfg_ver_get()
9563 static int bnxt_hwrm_queue_qportcfg(struct bnxt *bp) in bnxt_hwrm_queue_qportcfg()
9614 static int bnxt_hwrm_poll(struct bnxt *bp) in bnxt_hwrm_poll()
9632 static int bnxt_hwrm_ver_get(struct bnxt *bp) in bnxt_hwrm_ver_get()
9753 int bnxt_hwrm_fw_set_time(struct bnxt *bp) in bnxt_hwrm_fw_set_time()
9816 static void bnxt_accumulate_all_stats(struct bnxt *bp) in bnxt_accumulate_all_stats()
9861 static int bnxt_hwrm_port_qstats(struct bnxt *bp, u8 flags) in bnxt_hwrm_port_qstats()
9885 static int bnxt_hwrm_port_qstats_ext(struct bnxt *bp, u8 flags) in bnxt_hwrm_port_qstats_ext()
9975 static void bnxt_hwrm_free_tunnel_ports(struct bnxt *bp) in bnxt_hwrm_free_tunnel_ports()
9983 static int bnxt_set_tpa(struct bnxt *bp, bool set_tpa) in bnxt_set_tpa()
10003 static void bnxt_hwrm_clear_vnic_rss(struct bnxt *bp) in bnxt_hwrm_clear_vnic_rss()
10011 static void bnxt_clear_vnic(struct bnxt *bp) in bnxt_clear_vnic()
10030 static void bnxt_hwrm_resource_free(struct bnxt *bp, bool close_path, in bnxt_hwrm_resource_free()
10042 static int bnxt_hwrm_set_br_mode(struct bnxt *bp, u16 br_mode) in bnxt_hwrm_set_br_mode()
10065 static int bnxt_hwrm_set_cache_line_size(struct bnxt *bp, int size) in bnxt_hwrm_set_cache_line_size()
10086 static int __bnxt_setup_vnic(struct bnxt *bp, struct bnxt_vnic_info *vnic) in __bnxt_setup_vnic()
10141 int bnxt_hwrm_vnic_update(struct bnxt *bp, struct bnxt_vnic_info *vnic, in bnxt_hwrm_vnic_update()
10161 int bnxt_hwrm_vnic_rss_cfg_p5(struct bnxt *bp, struct bnxt_vnic_info *vnic) in bnxt_hwrm_vnic_rss_cfg_p5()
10178 int __bnxt_setup_vnic_p5(struct bnxt *bp, struct bnxt_vnic_info *vnic) in __bnxt_setup_vnic_p5()
10209 static int bnxt_setup_vnic(struct bnxt *bp, struct bnxt_vnic_info *vnic) in bnxt_setup_vnic()
10217 static int bnxt_alloc_and_setup_vnic(struct bnxt *bp, in bnxt_alloc_and_setup_vnic()
10232 static int bnxt_alloc_rfs_vnics(struct bnxt *bp) in bnxt_alloc_rfs_vnics()
10262 void bnxt_del_one_rss_ctx(struct bnxt *bp, struct bnxt_rss_ctx *rss_ctx, in bnxt_del_one_rss_ctx()
10299 static void bnxt_hwrm_realloc_rss_ctx_vnic(struct bnxt *bp) in bnxt_hwrm_realloc_rss_ctx_vnic()
10320 static void bnxt_clear_rss_ctxs(struct bnxt *bp) in bnxt_clear_rss_ctxs()
10333 static bool bnxt_promisc_ok(struct bnxt *bp) in bnxt_promisc_ok()
10342 static int bnxt_setup_nitroa0_vnic(struct bnxt *bp) in bnxt_setup_nitroa0_vnic()
10363 static int bnxt_cfg_rx_mode(struct bnxt *);
10364 static bool bnxt_mc_list_updated(struct bnxt *, u32 *);
10366 static int bnxt_init_chip(struct bnxt *bp, bool irq_re_init) in bnxt_init_chip()
10488 static int bnxt_shutdown_nic(struct bnxt *bp, bool irq_re_init) in bnxt_shutdown_nic()
10494 static int bnxt_init_nic(struct bnxt *bp, bool irq_re_init) in bnxt_init_nic()
10505 static int bnxt_set_real_num_queues(struct bnxt *bp) in bnxt_set_real_num_queues()
10527 static int __bnxt_trim_rings(struct bnxt *bp, int *rx, int *tx, int max, in __bnxt_trim_rings()
10551 static int __bnxt_num_tx_to_cp(struct bnxt *bp, int tx, int tx_sets, int tx_xdp) in __bnxt_num_tx_to_cp()
10556 int bnxt_num_tx_to_cp(struct bnxt *bp, int tx) in bnxt_num_tx_to_cp()
10565 static int bnxt_num_cp_to_tx(struct bnxt *bp, int tx_cp) in bnxt_num_cp_to_tx()
10573 static int bnxt_trim_rings(struct bnxt *bp, int *rx, int *tx, int max, in bnxt_trim_rings()
10591 static void bnxt_setup_msix(struct bnxt *bp) in bnxt_setup_msix()
10625 static int bnxt_init_int_mode(struct bnxt *bp);
10627 static int bnxt_change_msix(struct bnxt *bp, int total) in bnxt_change_msix()
10651 static int bnxt_setup_int_mode(struct bnxt *bp) in bnxt_setup_int_mode()
10667 static unsigned int bnxt_get_max_func_rss_ctxs(struct bnxt *bp) in bnxt_get_max_func_rss_ctxs()
10672 static unsigned int bnxt_get_max_func_vnics(struct bnxt *bp) in bnxt_get_max_func_vnics()
10677 unsigned int bnxt_get_max_func_stat_ctxs(struct bnxt *bp) in bnxt_get_max_func_stat_ctxs()
10682 unsigned int bnxt_get_max_func_cp_rings(struct bnxt *bp) in bnxt_get_max_func_cp_rings()
10687 static unsigned int bnxt_get_max_func_cp_rings_for_en(struct bnxt *bp) in bnxt_get_max_func_cp_rings_for_en()
10697 static unsigned int bnxt_get_max_func_irqs(struct bnxt *bp) in bnxt_get_max_func_irqs()
10707 static void bnxt_set_max_func_irqs(struct bnxt *bp, unsigned int max_irqs) in bnxt_set_max_func_irqs()
10712 unsigned int bnxt_get_avail_cp_rings_for_en(struct bnxt *bp) in bnxt_get_avail_cp_rings_for_en()
10723 unsigned int bnxt_get_avail_stat_ctxs_for_en(struct bnxt *bp) in bnxt_get_avail_stat_ctxs_for_en()
10728 static int bnxt_get_avail_msix(struct bnxt *bp, int num) in bnxt_get_avail_msix()
10741 static int bnxt_get_num_msix(struct bnxt *bp) in bnxt_get_num_msix()
10749 static int bnxt_init_int_mode(struct bnxt *bp) in bnxt_init_int_mode()
10806 static void bnxt_clear_int_mode(struct bnxt *bp) in bnxt_clear_int_mode()
10814 int bnxt_reserve_rings(struct bnxt *bp, bool irq_re_init) in bnxt_reserve_rings()
10870 static void bnxt_free_irq(struct bnxt *bp) in bnxt_free_irq()
10899 static int bnxt_request_irq(struct bnxt *bp) in bnxt_request_irq()
10955 static void bnxt_del_napi(struct bnxt *bp) in bnxt_del_napi()
10978 static void bnxt_init_napi(struct bnxt *bp) in bnxt_init_napi()
10999 static void bnxt_disable_napi(struct bnxt *bp) in bnxt_disable_napi()
11022 static void bnxt_enable_napi(struct bnxt *bp) in bnxt_enable_napi()
11044 void bnxt_tx_disable(struct bnxt *bp) in bnxt_tx_disable()
11063 void bnxt_tx_enable(struct bnxt *bp) in bnxt_tx_enable()
11103 void bnxt_report_link(struct bnxt *bp) in bnxt_report_link()
11177 static int bnxt_hwrm_phy_qcaps(struct bnxt *bp) in bnxt_hwrm_phy_qcaps()
11247 struct bnxt *bp = container_of(link_info, struct bnxt, link_info); in bnxt_support_speed_dropped()
11273 int bnxt_update_link(struct bnxt *bp, bool chng_link_state) in bnxt_update_link()
11404 static void bnxt_get_port_module_status(struct bnxt *bp) in bnxt_get_port_module_status()
11432 bnxt_hwrm_set_pause_common(struct bnxt *bp, struct hwrm_port_phy_cfg_input *req) in bnxt_hwrm_set_pause_common()
11459 static void bnxt_hwrm_set_link_common(struct bnxt *bp, struct hwrm_port_phy_cfg_input *req) in bnxt_hwrm_set_link_common()
11498 int bnxt_hwrm_set_pause(struct bnxt *bp) in bnxt_hwrm_set_pause()
11529 static void bnxt_hwrm_set_eee(struct bnxt *bp, in bnxt_hwrm_set_eee()
11552 int bnxt_hwrm_set_link_setting(struct bnxt *bp, bool set_pause, bool set_eee) in bnxt_hwrm_set_link_setting()
11571 static int bnxt_hwrm_shutdown_link(struct bnxt *bp) in bnxt_hwrm_shutdown_link()
11602 static int bnxt_fw_reset_via_optee(struct bnxt *bp) in bnxt_fw_reset_via_optee()
11617 static int bnxt_try_recover_fw(struct bnxt *bp) in bnxt_try_recover_fw()
11648 static void bnxt_clear_reservations(struct bnxt *bp, bool fw_reset) in bnxt_clear_reservations()
11669 int bnxt_cancel_reservations(struct bnxt *bp, bool fw_reset) in bnxt_cancel_reservations()
11685 static int bnxt_hwrm_if_change(struct bnxt *bp, bool up) in bnxt_hwrm_if_change()
11772 static int bnxt_hwrm_port_led_qcaps(struct bnxt *bp) in bnxt_hwrm_port_led_qcaps()
11815 int bnxt_hwrm_alloc_wol_fltr(struct bnxt *bp) in bnxt_hwrm_alloc_wol_fltr()
11838 int bnxt_hwrm_free_wol_fltr(struct bnxt *bp) in bnxt_hwrm_free_wol_fltr()
11854 static u16 bnxt_hwrm_get_wol_fltrs(struct bnxt *bp, u16 handle) in bnxt_hwrm_get_wol_fltrs()
11883 static void bnxt_get_wol_settings(struct bnxt *bp) in bnxt_get_wol_settings()
11896 static bool bnxt_eee_config_ok(struct bnxt *bp) in bnxt_eee_config_ok()
11923 static int bnxt_update_phy_setting(struct bnxt *bp) in bnxt_update_phy_setting()
11983 static int bnxt_init_dflt_ring_mode(struct bnxt *bp);
11985 static int bnxt_reinit_after_abort(struct bnxt *bp) in bnxt_reinit_after_abort()
12007 static void bnxt_cfg_one_usr_fltr(struct bnxt *bp, struct bnxt_filter_base *fltr) in bnxt_cfg_one_usr_fltr()
12035 static void bnxt_cfg_usr_fltrs(struct bnxt *bp) in bnxt_cfg_usr_fltrs()
12043 static int bnxt_set_xps_mapping(struct bnxt *bp) in bnxt_set_xps_mapping()
12083 static int __bnxt_open_nic(struct bnxt *bp, bool irq_re_init, bool link_re_init) in __bnxt_open_nic()
12184 int bnxt_open_nic(struct bnxt *bp, bool irq_re_init, bool link_re_init) in bnxt_open_nic()
12203 int bnxt_half_open_nic(struct bnxt *bp) in bnxt_half_open_nic()
12239 void bnxt_half_close_nic(struct bnxt *bp) in bnxt_half_close_nic()
12248 void bnxt_reenable_sriov(struct bnxt *bp) in bnxt_reenable_sriov()
12261 struct bnxt *bp = netdev_priv(dev); in bnxt_open()
12293 static bool bnxt_drv_busy(struct bnxt *bp) in bnxt_drv_busy()
12299 static void bnxt_get_ring_stats(struct bnxt *bp,
12302 static void __bnxt_close_nic(struct bnxt *bp, bool irq_re_init, in __bnxt_close_nic()
12341 void bnxt_close_nic(struct bnxt *bp, bool irq_re_init, bool link_re_init) in bnxt_close_nic()
12373 struct bnxt *bp = netdev_priv(dev); in bnxt_close()
12381 static int bnxt_hwrm_port_phy_read(struct bnxt *bp, u16 phy_addr, u16 reg, in bnxt_hwrm_port_phy_read()
12413 static int bnxt_hwrm_port_phy_write(struct bnxt *bp, u16 phy_addr, u16 reg, in bnxt_hwrm_port_phy_write()
12444 struct bnxt *bp = netdev_priv(dev); in bnxt_ioctl()
12484 static void bnxt_get_ring_stats(struct bnxt *bp, in bnxt_get_ring_stats()
12523 static void bnxt_add_prev_stats(struct bnxt *bp, in bnxt_add_prev_stats()
12541 struct bnxt *bp = netdev_priv(dev); in bnxt_get_stats64()
12582 static void bnxt_get_one_ring_err_stats(struct bnxt *bp, in bnxt_get_one_ring_err_stats()
12602 void bnxt_get_ring_err_stats(struct bnxt *bp, in bnxt_get_ring_err_stats()
12611 static bool bnxt_mc_list_updated(struct bnxt *bp, u32 *rx_mask) in bnxt_mc_list_updated()
12645 static bool bnxt_uc_list_updated(struct bnxt *bp) in bnxt_uc_list_updated()
12666 struct bnxt *bp = netdev_priv(dev); in bnxt_set_rx_mode()
12703 static int bnxt_cfg_rx_mode(struct bnxt *bp) in bnxt_cfg_rx_mode()
12778 static bool bnxt_can_reserve_rings(struct bnxt *bp) in bnxt_can_reserve_rings()
12798 static bool bnxt_rfs_supported(struct bnxt *bp) in bnxt_rfs_supported()
12816 bool bnxt_rfs_capable(struct bnxt *bp, bool new_rss_ctx) in bnxt_rfs_capable()
12870 struct bnxt *bp = netdev_priv(dev); in bnxt_fix_features()
12902 static int bnxt_reinit_features(struct bnxt *bp, bool irq_re_init, in bnxt_reinit_features()
12915 struct bnxt *bp = netdev_priv(dev); in bnxt_set_features()
12981 static bool bnxt_exthdr_check(struct bnxt *bp, struct sk_buff *skb, int nw_off, in bnxt_exthdr_check()
13048 static bool bnxt_udp_tunl_check(struct bnxt *bp, struct sk_buff *skb) in bnxt_udp_tunl_check()
13076 static bool bnxt_tunl_check(struct bnxt *bp, struct sk_buff *skb, u8 l4_proto) in bnxt_tunl_check()
13105 struct bnxt *bp = netdev_priv(dev); in bnxt_features_check()
13128 int bnxt_dbg_hwrm_rd_reg(struct bnxt *bp, u32 reg_off, u16 num_words, in bnxt_dbg_hwrm_rd_reg()
13167 static int bnxt_dbg_hwrm_ring_info_get(struct bnxt *bp, u8 ring_type, in bnxt_dbg_hwrm_ring_info_get()
13224 static void bnxt_dbg_dump_states(struct bnxt *bp) in bnxt_dbg_dump_states()
13239 static int bnxt_hwrm_rx_ring_reset(struct bnxt *bp, int ring_nr) in bnxt_hwrm_rx_ring_reset()
13260 static void bnxt_reset_task(struct bnxt *bp, bool silent) in bnxt_reset_task()
13272 struct bnxt *bp = netdev_priv(dev); in bnxt_tx_timeout()
13278 static void bnxt_fw_health_check(struct bnxt *bp) in bnxt_fw_health_check()
13317 struct bnxt *bp = from_timer(bp, t, timer); in bnxt_timer()
13359 static void bnxt_rtnl_lock_sp(struct bnxt *bp) in bnxt_rtnl_lock_sp()
13370 static void bnxt_rtnl_unlock_sp(struct bnxt *bp) in bnxt_rtnl_unlock_sp()
13377 static void bnxt_reset(struct bnxt *bp, bool silent) in bnxt_reset()
13386 static void bnxt_rx_ring_reset(struct bnxt *bp) in bnxt_rx_ring_reset()
13434 static void bnxt_fw_fatal_close(struct bnxt *bp) in bnxt_fw_fatal_close()
13444 static void bnxt_fw_reset_close(struct bnxt *bp) in bnxt_fw_reset_close()
13467 static bool is_bnxt_fw_ok(struct bnxt *bp) in is_bnxt_fw_ok()
13488 static void bnxt_force_fw_reset(struct bnxt *bp) in bnxt_force_fw_reset()
13524 void bnxt_fw_exception(struct bnxt *bp) in bnxt_fw_exception()
13537 static int bnxt_get_registered_vfs(struct bnxt *bp) in bnxt_get_registered_vfs()
13558 void bnxt_fw_reset(struct bnxt *bp) in bnxt_fw_reset()
13609 static void bnxt_chk_missed_irq(struct bnxt *bp) in bnxt_chk_missed_irq()
13646 static void bnxt_cfg_ntp_filters(struct bnxt *);
13648 static void bnxt_init_ethtool_link_settings(struct bnxt *bp) in bnxt_init_ethtool_link_settings()
13673 static void bnxt_fw_echo_reply(struct bnxt *bp) in bnxt_fw_echo_reply()
13687 static void bnxt_ulp_restart(struct bnxt *bp) in bnxt_ulp_restart()
13695 struct bnxt *bp = container_of(work, struct bnxt, sp_task); in bnxt_sp_task()
13802 static void _bnxt_get_max_rings(struct bnxt *bp, int *max_rx, int *max_tx,
13806 int bnxt_check_rings(struct bnxt *bp, int tx, int rx, bool sh, int tcs, in bnxt_check_rings()
13864 static void bnxt_unmap_bars(struct bnxt *bp, struct pci_dev *pdev) in bnxt_unmap_bars()
13882 static void bnxt_cleanup_pci(struct bnxt *bp) in bnxt_cleanup_pci()
13890 static void bnxt_init_dflt_coal(struct bnxt *bp) in bnxt_init_dflt_coal()
13925 static bool bnxt_fw_pre_resv_vnics(struct bnxt *bp) in bnxt_fw_pre_resv_vnics()
13938 static int bnxt_fw_init_one_p1(struct bnxt *bp) in bnxt_fw_init_one_p1()
13969 static int bnxt_fw_init_one_p2(struct bnxt *bp) in bnxt_fw_init_one_p2()
14026 static void bnxt_set_dflt_rss_hash_type(struct bnxt *bp) in bnxt_set_dflt_rss_hash_type()
14042 static void bnxt_set_dflt_rfs(struct bnxt *bp) in bnxt_set_dflt_rfs()
14058 static void bnxt_fw_init_one_p3(struct bnxt *bp) in bnxt_fw_init_one_p3()
14075 static int bnxt_probe_phy(struct bnxt *bp, bool fw_dflt);
14077 int bnxt_fw_init_one(struct bnxt *bp) in bnxt_fw_init_one()
14102 static void bnxt_fw_reset_writel(struct bnxt *bp, int reg_idx) in bnxt_fw_reset_writel()
14134 bool bnxt_hwrm_reset_permitted(struct bnxt *bp) in bnxt_hwrm_reset_permitted()
14155 static void bnxt_reset_all(struct bnxt *bp) in bnxt_reset_all()
14186 static bool bnxt_fw_reset_timeout(struct bnxt *bp) in bnxt_fw_reset_timeout()
14192 static void bnxt_fw_reset_abort(struct bnxt *bp, int rc) in bnxt_fw_reset_abort()
14203 struct bnxt *bp = container_of(work, struct bnxt, fw_reset_task.work); in bnxt_fw_reset_task()
14377 struct bnxt *bp = netdev_priv(dev); in bnxt_init_board()
14465 struct bnxt *bp = netdev_priv(dev); in bnxt_change_mac_addr()
14491 struct bnxt *bp = netdev_priv(dev); in bnxt_change_mtu()
14507 struct bnxt *bp = netdev_priv(dev); in bnxt_setup_mq_tc()
14555 struct bnxt *bp = cb_priv; in bnxt_setup_tc_block_cb()
14574 struct bnxt *bp = netdev_priv(dev); in bnxt_setup_tc()
14594 u32 bnxt_get_ntp_filter_idx(struct bnxt *bp, struct flow_keys *fkeys, in bnxt_get_ntp_filter_idx()
14606 int bnxt_insert_ntp_filter(struct bnxt *bp, struct bnxt_ntuple_filter *fltr, in bnxt_insert_ntp_filter()
14670 bnxt_lookup_ntp_filter_from_idx(struct bnxt *bp, in bnxt_lookup_ntp_filter_from_idx()
14688 struct bnxt *bp = netdev_priv(dev); in bnxt_rx_flow_steer()
14772 void bnxt_del_ntp_filter(struct bnxt *bp, struct bnxt_ntuple_filter *fltr) in bnxt_del_ntp_filter()
14788 static void bnxt_cfg_ntp_filters(struct bnxt *bp) in bnxt_cfg_ntp_filters()
14832 struct bnxt *bp = netdev_priv(netdev); in bnxt_udp_tunnel_set_port()
14848 struct bnxt *bp = netdev_priv(netdev); in bnxt_udp_tunnel_unset_port()
14886 struct bnxt *bp = netdev_priv(dev); in bnxt_bridge_getlink()
14895 struct bnxt *bp = netdev_priv(dev); in bnxt_bridge_setlink()
14924 struct bnxt *bp = netdev_priv(dev); in bnxt_get_port_parent_id()
14975 struct bnxt *bp = netdev_priv(dev); in bnxt_get_queue_stats_rx()
14998 struct bnxt *bp = netdev_priv(dev); in bnxt_get_queue_stats_tx()
15020 struct bnxt *bp = netdev_priv(dev); in bnxt_get_base_stats()
15036 static int bnxt_alloc_rx_agg_bmap(struct bnxt *bp, struct bnxt_rx_ring_info *rxr) in bnxt_alloc_rx_agg_bmap()
15052 struct bnxt *bp = netdev_priv(dev); in bnxt_queue_mem_alloc()
15122 struct bnxt *bp = netdev_priv(dev); in bnxt_queue_mem_free()
15143 static void bnxt_copy_rx_ring(struct bnxt *bp, in bnxt_copy_rx_ring()
15200 struct bnxt *bp = netdev_priv(dev); in bnxt_queue_start()
15248 struct bnxt *bp = netdev_priv(dev); in bnxt_queue_stop()
15283 struct bnxt *bp = netdev_priv(dev); in bnxt_remove_one()
15327 static int bnxt_probe_phy(struct bnxt *bp, bool fw_dflt) in bnxt_probe_phy()
15377 static void _bnxt_get_max_rings(struct bnxt *bp, int *max_rx, int *max_tx, in _bnxt_get_max_rings()
15413 int bnxt_get_max_rings(struct bnxt *bp, int *max_rx, int *max_tx, bool shared) in bnxt_get_max_rings()
15426 static int bnxt_get_dflt_rings(struct bnxt *bp, int *max_rx, int *max_tx, in bnxt_get_dflt_rings()
15474 static void bnxt_trim_dflt_sh_rings(struct bnxt *bp) in bnxt_trim_dflt_sh_rings()
15482 static int bnxt_set_dflt_rings(struct bnxt *bp, bool sh) in bnxt_set_dflt_rings()
15546 static int bnxt_init_dflt_ring_mode(struct bnxt *bp) in bnxt_init_dflt_ring_mode()
15576 int bnxt_restore_pf_fw_resources(struct bnxt *bp) in bnxt_restore_pf_fw_resources()
15601 static int bnxt_init_mac_addr(struct bnxt *bp) in bnxt_init_mac_addr()
15628 static void bnxt_vpd_read_info(struct bnxt *bp) in bnxt_vpd_read_info()
15662 static int bnxt_pcie_dsn_get(struct bnxt *bp, u8 dsn[]) in bnxt_pcie_dsn_get()
15679 static int bnxt_map_db_bar(struct bnxt *bp) in bnxt_map_db_bar()
15689 void bnxt_print_device_info(struct bnxt *bp) in bnxt_print_device_info()
15702 struct bnxt *bp; in bnxt_init_one()
15974 struct bnxt *bp; in bnxt_shutdown()
16003 struct bnxt *bp = netdev_priv(dev); in bnxt_suspend()
16023 struct bnxt *bp = netdev_priv(dev); in bnxt_resume()
16093 struct bnxt *bp = netdev_priv(netdev); in bnxt_io_error_detected()
16147 struct bnxt *bp = netdev_priv(netdev); in bnxt_io_slot_reset()
16228 struct bnxt *bp = netdev_priv(netdev); in bnxt_io_resume()