Lines Matching defs:bp

282 static void bnxt_db_nq(struct bnxt *bp, struct bnxt_db_info *db, u32 idx)  in bnxt_db_nq()
292 static void bnxt_db_nq_arm(struct bnxt *bp, struct bnxt_db_info *db, u32 idx) in bnxt_db_nq_arm()
300 static void bnxt_db_cq(struct bnxt *bp, struct bnxt_db_info *db, u32 idx) in bnxt_db_cq()
309 static void bnxt_queue_fw_reset_work(struct bnxt *bp, unsigned long delay) in bnxt_queue_fw_reset_work()
320 static void __bnxt_queue_sp_work(struct bnxt *bp) in __bnxt_queue_sp_work()
328 static void bnxt_queue_sp_work(struct bnxt *bp, unsigned int event) in bnxt_queue_sp_work()
334 static void bnxt_sched_reset_rxr(struct bnxt *bp, struct bnxt_rx_ring_info *rxr) in bnxt_sched_reset_rxr()
347 void bnxt_sched_reset_txr(struct bnxt *bp, struct bnxt_tx_ring_info *txr, in bnxt_sched_reset_txr()
395 static void bnxt_txr_db_kick(struct bnxt *bp, struct bnxt_tx_ring_info *txr, in bnxt_txr_db_kick()
406 struct bnxt *bp = netdev_priv(dev); in bnxt_start_xmit() local
721 static void __bnxt_tx_int(struct bnxt *bp, struct bnxt_tx_ring_info *txr, in __bnxt_tx_int()
790 static void bnxt_tx_int(struct bnxt *bp, struct bnxt_napi *bnapi, int budget) in bnxt_tx_int()
802 static struct page *__bnxt_alloc_rx_page(struct bnxt *bp, dma_addr_t *mapping, in __bnxt_alloc_rx_page()
823 static inline u8 *__bnxt_alloc_rx_frag(struct bnxt *bp, dma_addr_t *mapping, in __bnxt_alloc_rx_frag()
847 int bnxt_alloc_rx_data(struct bnxt *bp, struct bnxt_rx_ring_info *rxr, in bnxt_alloc_rx_data()
884 struct bnxt *bp = rxr->bnapi->bp; in bnxt_reuse_rx_data() local
911 static inline int bnxt_alloc_rx_page(struct bnxt *bp, in bnxt_alloc_rx_page()
943 static struct rx_agg_cmp *bnxt_get_agg(struct bnxt *bp, in bnxt_get_agg()
955 static struct rx_agg_cmp *bnxt_get_tpa_agg_p5(struct bnxt *bp, in bnxt_get_tpa_agg_p5()
968 struct bnxt *bp = bnapi->bp; in bnxt_reuse_rx_agg_bufs() local
1021 static struct sk_buff *bnxt_rx_multi_page_skb(struct bnxt *bp, in bnxt_rx_multi_page_skb()
1053 static struct sk_buff *bnxt_rx_page_skb(struct bnxt *bp, in bnxt_rx_page_skb()
1100 static struct sk_buff *bnxt_rx_skb(struct bnxt *bp, in bnxt_rx_skb()
1129 static u32 __bnxt_rx_agg_pages(struct bnxt *bp, in __bnxt_rx_agg_pages()
1200 static struct sk_buff *bnxt_rx_agg_pages_skb(struct bnxt *bp, in bnxt_rx_agg_pages_skb()
1222 static u32 bnxt_rx_agg_pages_xdp(struct bnxt *bp, in bnxt_rx_agg_pages_xdp()
1243 static int bnxt_agg_bufs_valid(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, in bnxt_agg_bufs_valid()
1260 struct bnxt *bp = bnapi->bp; in bnxt_copy_skb() local
1281 static int bnxt_discard_rx(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, in bnxt_discard_rx()
1369 static void bnxt_tpa_start(struct bnxt *bp, struct bnxt_rx_ring_info *rxr, in bnxt_tpa_start()
1624 static inline struct sk_buff *bnxt_gro_skb(struct bnxt *bp, in bnxt_gro_skb()
1656 static struct net_device *bnxt_get_pkt_dev(struct bnxt *bp, u16 cfa_code) in bnxt_get_pkt_dev()
1664 static inline struct sk_buff *bnxt_tpa_end(struct bnxt *bp, in bnxt_tpa_end()
1814 static void bnxt_tpa_agg(struct bnxt *bp, struct bnxt_rx_ring_info *rxr, in bnxt_tpa_agg()
1826 static void bnxt_deliver_skb(struct bnxt *bp, struct bnxt_napi *bnapi, in bnxt_deliver_skb()
1840 static bool bnxt_rx_ts_valid(struct bnxt *bp, u32 flags, in bnxt_rx_ts_valid()
1896 static enum pkt_hash_types bnxt_rss_ext_op(struct bnxt *bp, in bnxt_rss_ext_op()
1920 static int bnxt_rx_pkt(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, in bnxt_rx_pkt()
2199 static int bnxt_force_rx_discard(struct bnxt *bp, in bnxt_force_rx_discard()
2244 u32 bnxt_fw_health_readl(struct bnxt *bp, int reg_idx) in bnxt_fw_health_readl()
2271 static u16 bnxt_agg_ring_id_to_grp_idx(struct bnxt *bp, u16 ring_id) in bnxt_agg_ring_id_to_grp_idx()
2288 struct bnxt *bp = container_of(link_info, struct bnxt, link_info); in bnxt_get_force_speed() local
2299 struct bnxt *bp = container_of(link_info, struct bnxt, link_info); in bnxt_set_force_speed() local
2331 struct bnxt *bp = container_of(link_info, struct bnxt, link_info); in bnxt_set_auto_speed() local
2343 struct bnxt *bp = container_of(link_info, struct bnxt, link_info); in bnxt_force_speed_updated() local
2361 struct bnxt *bp = container_of(link_info, struct bnxt, link_info); in bnxt_auto_speed_updated() local
2393 static bool bnxt_event_error_report(struct bnxt *bp, u32 data1, u32 data2) in bnxt_event_error_report()
2479 static int bnxt_async_event_process(struct bnxt *bp, in bnxt_async_event_process()
2694 static int bnxt_hwrm_handler(struct bnxt *bp, struct tx_cmp *txcmp) in bnxt_hwrm_handler()
2736 struct bnxt *bp = bnapi->bp; in bnxt_msix() local
2746 static inline int bnxt_has_work(struct bnxt *bp, struct bnxt_cp_ring_info *cpr) in bnxt_has_work()
2760 struct bnxt *bp = bnapi->bp; in bnxt_inta() local
2785 static int __bnxt_poll_work(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, in __bnxt_poll_work()
2883 static void __bnxt_poll_work_done(struct bnxt *bp, struct bnxt_napi *bnapi, in __bnxt_poll_work_done()
2902 static int bnxt_poll_work(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, in bnxt_poll_work()
2923 struct bnxt *bp = bnapi->bp; in bnxt_poll_nitroa0() local
2999 struct bnxt *bp = bnapi->bp; in bnxt_poll() local
3034 static int __bnxt_poll_cqs(struct bnxt *bp, struct bnxt_napi *bnapi, int budget) in __bnxt_poll_cqs()
3051 static void __bnxt_poll_cqs_done(struct bnxt *bp, struct bnxt_napi *bnapi, in __bnxt_poll_cqs_done()
3085 struct bnxt *bp = bnapi->bp; in bnxt_poll_p5() local
3165 static void bnxt_free_tx_skbs(struct bnxt *bp) in bnxt_free_tx_skbs()
3236 static void bnxt_free_one_rx_ring_skbs(struct bnxt *bp, int ring_nr) in bnxt_free_one_rx_ring_skbs()
3310 static void bnxt_free_rx_skbs(struct bnxt *bp) in bnxt_free_rx_skbs()
3321 static void bnxt_free_skbs(struct bnxt *bp) in bnxt_free_skbs()
3344 static void bnxt_free_ring(struct bnxt *bp, struct bnxt_ring_mem_info *rmem) in bnxt_free_ring()
3377 static int bnxt_alloc_ring(struct bnxt *bp, struct bnxt_ring_mem_info *rmem) in bnxt_alloc_ring()
3430 static void bnxt_free_tpa_info(struct bnxt *bp) in bnxt_free_tpa_info()
3450 static int bnxt_alloc_tpa_info(struct bnxt *bp) in bnxt_alloc_tpa_info()
3486 static void bnxt_free_rx_rings(struct bnxt *bp) in bnxt_free_rx_rings()
3518 static int bnxt_alloc_rx_page_pool(struct bnxt *bp, in bnxt_alloc_rx_page_pool()
3544 static int bnxt_alloc_rx_rings(struct bnxt *bp) in bnxt_alloc_rx_rings()
3602 static void bnxt_free_tx_rings(struct bnxt *bp) in bnxt_free_tx_rings()
3626 #define BNXT_TC_TO_RING_BASE(bp, tc) \ argument
3629 #define BNXT_RING_TO_TC_OFF(bp, tx) \ argument
3632 #define BNXT_RING_TO_TC(bp, tx) \ argument
3635 static int bnxt_alloc_tx_rings(struct bnxt *bp) in bnxt_alloc_tx_rings()
3720 static void bnxt_free_all_cp_arrays(struct bnxt *bp) in bnxt_free_all_cp_arrays()
3735 static int bnxt_alloc_all_cp_arrays(struct bnxt *bp) in bnxt_alloc_all_cp_arrays()
3752 static void bnxt_free_cp_rings(struct bnxt *bp) in bnxt_free_cp_rings()
3789 static int bnxt_alloc_cp_sub_ring(struct bnxt *bp, in bnxt_alloc_cp_sub_ring()
3816 static int bnxt_alloc_cp_rings(struct bnxt *bp) in bnxt_alloc_cp_rings()
3895 static void bnxt_init_ring_struct(struct bnxt *bp) in bnxt_init_ring_struct()
3977 static int bnxt_alloc_one_rx_ring(struct bnxt *bp, int ring_nr) in bnxt_alloc_one_rx_ring()
4026 static int bnxt_init_one_rx_ring(struct bnxt *bp, int ring_nr) in bnxt_init_one_rx_ring()
4064 static void bnxt_init_cp_rings(struct bnxt *bp) in bnxt_init_cp_rings()
4088 static int bnxt_init_rx_rings(struct bnxt *bp) in bnxt_init_rx_rings()
4109 static int bnxt_init_tx_rings(struct bnxt *bp) in bnxt_init_tx_rings()
4131 static void bnxt_free_ring_grps(struct bnxt *bp) in bnxt_free_ring_grps()
4137 static int bnxt_init_ring_grps(struct bnxt *bp, bool irq_re_init) in bnxt_init_ring_grps()
4159 static void bnxt_free_vnics(struct bnxt *bp) in bnxt_free_vnics()
4166 static int bnxt_alloc_vnics(struct bnxt *bp) in bnxt_alloc_vnics()
4187 static void bnxt_init_vnics(struct bnxt *bp) in bnxt_init_vnics()
4239 void bnxt_set_tpa_flags(struct bnxt *bp) in bnxt_set_tpa_flags()
4253 void bnxt_set_ring_params(struct bnxt *bp) in bnxt_set_ring_params()
4350 int bnxt_set_rx_skb_mode(struct bnxt *bp, bool page_mode) in bnxt_set_rx_skb_mode()
4382 static void bnxt_free_vnic_attributes(struct bnxt *bp) in bnxt_free_vnic_attributes()
4418 static int bnxt_alloc_vnic_attributes(struct bnxt *bp) in bnxt_alloc_vnic_attributes()
4495 static void bnxt_free_hwrm_resources(struct bnxt *bp) in bnxt_free_hwrm_resources()
4508 static int bnxt_alloc_hwrm_resources(struct bnxt *bp) in bnxt_alloc_hwrm_resources()
4521 static void bnxt_free_stats_mem(struct bnxt *bp, struct bnxt_stats_mem *stats) in bnxt_free_stats_mem()
4534 static int bnxt_alloc_stats_mem(struct bnxt *bp, struct bnxt_stats_mem *stats, in bnxt_alloc_stats_mem()
4574 static int bnxt_hwrm_func_qstat_ext(struct bnxt *bp, in bnxt_hwrm_func_qstat_ext()
4606 static void bnxt_init_stats(struct bnxt *bp) in bnxt_init_stats()
4677 static void bnxt_free_port_stats(struct bnxt *bp) in bnxt_free_port_stats()
4687 static void bnxt_free_ring_stats(struct bnxt *bp) in bnxt_free_ring_stats()
4702 static int bnxt_alloc_stats(struct bnxt *bp) in bnxt_alloc_stats()
4765 static void bnxt_clear_ring_indices(struct bnxt *bp) in bnxt_clear_ring_indices()
4801 static void bnxt_free_ntp_fltrs(struct bnxt *bp, bool all) in bnxt_free_ntp_fltrs()
4832 static int bnxt_alloc_ntp_fltrs(struct bnxt *bp) in bnxt_alloc_ntp_fltrs()
4851 static void bnxt_free_l2_filters(struct bnxt *bp, bool all) in bnxt_free_l2_filters()
4874 static void bnxt_init_l2_fltr_tbl(struct bnxt *bp) in bnxt_init_l2_fltr_tbl()
4883 static void bnxt_free_mem(struct bnxt *bp, bool irq_re_init) in bnxt_free_mem()
4912 static int bnxt_alloc_mem(struct bnxt *bp, bool irq_re_init) in bnxt_alloc_mem()
5054 static void bnxt_disable_int(struct bnxt *bp) in bnxt_disable_int()
5071 static int bnxt_cp_num_to_irq_num(struct bnxt *bp, int n) in bnxt_cp_num_to_irq_num()
5080 static void bnxt_disable_int_sync(struct bnxt *bp) in bnxt_disable_int_sync()
5097 static void bnxt_enable_int(struct bnxt *bp) in bnxt_enable_int()
5110 int bnxt_hwrm_func_drv_rgtr(struct bnxt *bp, unsigned long *bmap, int bmap_size, in bnxt_hwrm_func_drv_rgtr()
5205 int bnxt_hwrm_func_drv_unrgtr(struct bnxt *bp) in bnxt_hwrm_func_drv_unrgtr()
5221 static int bnxt_hwrm_tunnel_dst_port_free(struct bnxt *bp, u8 tunnel_type) in bnxt_hwrm_tunnel_dst_port_free()
5268 static int bnxt_hwrm_tunnel_dst_port_alloc(struct bnxt *bp, __be16 port, in bnxt_hwrm_tunnel_dst_port_alloc()
5316 static int bnxt_hwrm_cfa_l2_set_rx_mask(struct bnxt *bp, u16 vnic_id) in bnxt_hwrm_cfa_l2_set_rx_mask()
5335 void bnxt_del_l2_filter(struct bnxt *bp, struct bnxt_l2_filter *fltr) in bnxt_del_l2_filter()
5353 static struct bnxt_l2_filter *__bnxt_lookup_l2_filter(struct bnxt *bp, in __bnxt_lookup_l2_filter()
5370 static struct bnxt_l2_filter *bnxt_lookup_l2_filter(struct bnxt *bp, in bnxt_lookup_l2_filter()
5384 #define BNXT_IPV4_4TUPLE(bp, fkeys) \ argument
5390 #define BNXT_IPV6_4TUPLE(bp, fkeys) \ argument
5396 static u32 bnxt_get_rss_flow_tuple_len(struct bnxt *bp, struct flow_keys *fkeys) in bnxt_get_rss_flow_tuple_len()
5419 static u32 bnxt_toeplitz(struct bnxt *bp, struct flow_keys *fkeys, in bnxt_toeplitz()
5459 bnxt_lookup_l2_filter_from_key(struct bnxt *bp, struct bnxt_l2_key *key) in bnxt_lookup_l2_filter_from_key()
5471 static int bnxt_init_l2_filter(struct bnxt *bp, struct bnxt_l2_filter *fltr, in bnxt_init_l2_filter()
5495 static struct bnxt_l2_filter *bnxt_alloc_l2_filter(struct bnxt *bp, in bnxt_alloc_l2_filter()
5533 int bnxt_hwrm_l2_filter_free(struct bnxt *bp, struct bnxt_l2_filter *fltr) in bnxt_hwrm_l2_filter_free()
5559 int bnxt_hwrm_l2_filter_alloc(struct bnxt *bp, struct bnxt_l2_filter *fltr) in bnxt_hwrm_l2_filter_alloc()
5612 int bnxt_hwrm_cfa_ntuple_filter_free(struct bnxt *bp, in bnxt_hwrm_cfa_ntuple_filter_free()
5653 int bnxt_hwrm_cfa_ntuple_filter_alloc(struct bnxt *bp, in bnxt_hwrm_cfa_ntuple_filter_alloc()
5733 static int bnxt_hwrm_set_vnic_filter(struct bnxt *bp, u16 vnic_id, u16 idx, in bnxt_hwrm_set_vnic_filter()
5755 static void bnxt_hwrm_clear_vnic_filter(struct bnxt *bp) in bnxt_hwrm_clear_vnic_filter()
5778 static void bnxt_hwrm_vnic_update_tunl_tpa(struct bnxt *bp, in bnxt_hwrm_vnic_update_tunl_tpa()
5797 static int bnxt_hwrm_vnic_set_tpa(struct bnxt *bp, u16 vnic_id, u32 tpa_flags) in bnxt_hwrm_vnic_set_tpa()
5860 static u16 bnxt_cp_ring_from_grp(struct bnxt *bp, struct bnxt_ring_struct *ring) in bnxt_cp_ring_from_grp()
5868 static u16 bnxt_cp_ring_for_rx(struct bnxt *bp, struct bnxt_rx_ring_info *rxr) in bnxt_cp_ring_for_rx()
5876 static u16 bnxt_cp_ring_for_tx(struct bnxt *bp, struct bnxt_tx_ring_info *txr) in bnxt_cp_ring_for_tx()
5884 static int bnxt_alloc_rss_indir_tbl(struct bnxt *bp) in bnxt_alloc_rss_indir_tbl()
5901 static void bnxt_set_dflt_rss_indir_tbl(struct bnxt *bp) in bnxt_set_dflt_rss_indir_tbl()
5923 static u16 bnxt_get_max_rss_ring(struct bnxt *bp) in bnxt_get_max_rss_ring()
5936 int bnxt_get_nr_rss_ctxs(struct bnxt *bp, int rx_rings) in bnxt_get_nr_rss_ctxs()
5949 static void bnxt_fill_hw_rss_tbl(struct bnxt *bp, struct bnxt_vnic_info *vnic) in bnxt_fill_hw_rss_tbl()
5962 static void bnxt_fill_hw_rss_tbl_p5(struct bnxt *bp, in bnxt_fill_hw_rss_tbl_p5()
5985 __bnxt_hwrm_vnic_set_rss(struct bnxt *bp, struct hwrm_vnic_rss_cfg_input *req, in __bnxt_hwrm_vnic_set_rss()
6007 static int bnxt_hwrm_vnic_set_rss(struct bnxt *bp, u16 vnic_id, bool set_rss) in bnxt_hwrm_vnic_set_rss()
6027 static int bnxt_hwrm_vnic_set_rss_p5(struct bnxt *bp, u16 vnic_id, bool set_rss) in bnxt_hwrm_vnic_set_rss_p5()
6062 static void bnxt_hwrm_update_rss_hash_cfg(struct bnxt *bp) in bnxt_hwrm_update_rss_hash_cfg()
6082 static int bnxt_hwrm_vnic_set_hds(struct bnxt *bp, u16 vnic_id) in bnxt_hwrm_vnic_set_hds()
6109 static void bnxt_hwrm_vnic_ctx_free_one(struct bnxt *bp, u16 vnic_id, in bnxt_hwrm_vnic_ctx_free_one()
6124 static void bnxt_hwrm_vnic_ctx_free(struct bnxt *bp) in bnxt_hwrm_vnic_ctx_free()
6139 static int bnxt_hwrm_vnic_ctx_alloc(struct bnxt *bp, u16 vnic_id, u16 ctx_idx) in bnxt_hwrm_vnic_ctx_alloc()
6159 static u32 bnxt_get_roce_vnic_mode(struct bnxt *bp) in bnxt_get_roce_vnic_mode()
6166 int bnxt_hwrm_vnic_cfg(struct bnxt *bp, u16 vnic_id) in bnxt_hwrm_vnic_cfg()
6240 static void bnxt_hwrm_vnic_free_one(struct bnxt *bp, u16 vnic_id) in bnxt_hwrm_vnic_free_one()
6256 static void bnxt_hwrm_vnic_free(struct bnxt *bp) in bnxt_hwrm_vnic_free()
6264 static int bnxt_hwrm_vnic_alloc(struct bnxt *bp, u16 vnic_id, in bnxt_hwrm_vnic_alloc()
6306 static int bnxt_hwrm_vnic_qcaps(struct bnxt *bp) in bnxt_hwrm_vnic_qcaps()
6359 static int bnxt_hwrm_ring_grp_alloc(struct bnxt *bp) in bnxt_hwrm_ring_grp_alloc()
6394 static void bnxt_hwrm_ring_grp_free(struct bnxt *bp) in bnxt_hwrm_ring_grp_free()
6418 static int hwrm_ring_alloc_send_msg(struct bnxt *bp, in hwrm_ring_alloc_send_msg()
6539 static int bnxt_hwrm_set_async_event_cr(struct bnxt *bp, int idx) in bnxt_hwrm_set_async_event_cr()
6568 static void bnxt_set_db_mask(struct bnxt *bp, struct bnxt_db_info *db, in bnxt_set_db_mask()
6592 static void bnxt_set_db(struct bnxt *bp, struct bnxt_db_info *db, u32 ring_type, in bnxt_set_db()
6635 static int bnxt_hwrm_ring_alloc(struct bnxt *bp) in bnxt_hwrm_ring_alloc()
6754 static int hwrm_ring_free_send_msg(struct bnxt *bp, in hwrm_ring_free_send_msg()
6787 static void bnxt_hwrm_ring_free(struct bnxt *bp, bool close_path) in bnxt_hwrm_ring_free()
6891 static int bnxt_hwrm_get_rings(struct bnxt *bp) in bnxt_hwrm_get_rings()
6950 int __bnxt_hwrm_get_tx_rings(struct bnxt *bp, u16 fid, int *tx_rings) in __bnxt_hwrm_get_tx_rings()
6976 __bnxt_hwrm_reserve_pf_rings(struct bnxt *bp, int tx_rings, int rx_rings, in __bnxt_hwrm_reserve_pf_rings()
7030 __bnxt_hwrm_reserve_vf_rings(struct bnxt *bp, int tx_rings, int rx_rings, in __bnxt_hwrm_reserve_vf_rings()
7076 bnxt_hwrm_reserve_pf_rings(struct bnxt *bp, int tx_rings, int rx_rings, in bnxt_hwrm_reserve_pf_rings()
7103 bnxt_hwrm_reserve_vf_rings(struct bnxt *bp, int tx_rings, int rx_rings, in bnxt_hwrm_reserve_vf_rings()
7126 static int bnxt_hwrm_reserve_rings(struct bnxt *bp, int tx, int rx, int grp, in bnxt_hwrm_reserve_rings()
7137 int bnxt_nq_rings_in_use(struct bnxt *bp) in bnxt_nq_rings_in_use()
7152 static int bnxt_cp_rings_in_use(struct bnxt *bp) in bnxt_cp_rings_in_use()
7163 static int bnxt_get_func_stat_ctxs(struct bnxt *bp) in bnxt_get_func_stat_ctxs()
7180 static void bnxt_check_rss_tbl_no_rmgr(struct bnxt *bp) in bnxt_check_rss_tbl_no_rmgr()
7192 static bool bnxt_need_reserve_rings(struct bnxt *bp) in bnxt_need_reserve_rings()
7230 static int __bnxt_reserve_rings(struct bnxt *bp) in __bnxt_reserve_rings()
7320 static int bnxt_hwrm_check_vf_rings(struct bnxt *bp, int tx_rings, int rx_rings, in bnxt_hwrm_check_vf_rings()
7345 static int bnxt_hwrm_check_pf_rings(struct bnxt *bp, int tx_rings, int rx_rings, in bnxt_hwrm_check_pf_rings()
7371 static int bnxt_hwrm_check_rings(struct bnxt *bp, int tx_rings, int rx_rings, in bnxt_hwrm_check_rings()
7387 static void bnxt_hwrm_coal_params_qcaps(struct bnxt *bp) in bnxt_hwrm_coal_params_qcaps()
7434 static u16 bnxt_usec_to_coal_tmr(struct bnxt *bp, u16 usec) in bnxt_usec_to_coal_tmr()
7441 static void bnxt_hwrm_set_coal_params(struct bnxt *bp, in bnxt_hwrm_set_coal_params()
7497 static int __bnxt_hwrm_set_coal_nq(struct bnxt *bp, struct bnxt_napi *bnapi, in __bnxt_hwrm_set_coal_nq()
7525 int bnxt_hwrm_set_ring_coal(struct bnxt *bp, struct bnxt_napi *bnapi) in bnxt_hwrm_set_ring_coal()
7555 bnxt_hwrm_set_rx_coal(struct bnxt *bp, struct bnxt_napi *bnapi, in bnxt_hwrm_set_rx_coal()
7565 bnxt_hwrm_set_tx_coal(struct bnxt *bp, struct bnxt_napi *bnapi, in bnxt_hwrm_set_tx_coal()
7585 int bnxt_hwrm_set_coal(struct bnxt *bp) in bnxt_hwrm_set_coal()
7635 static void bnxt_hwrm_stat_ctx_free(struct bnxt *bp) in bnxt_hwrm_stat_ctx_free()
7677 static int bnxt_hwrm_stat_ctx_alloc(struct bnxt *bp) in bnxt_hwrm_stat_ctx_alloc()
7712 static int bnxt_hwrm_func_qcfg(struct bnxt *bp) in bnxt_hwrm_func_qcfg()
7803 static int bnxt_alloc_all_ctx_pg_info(struct bnxt *bp, int ctx_max) in bnxt_alloc_all_ctx_pg_info()
7828 static int bnxt_hwrm_func_backing_store_qcaps_v2(struct bnxt *bp) in bnxt_hwrm_func_backing_store_qcaps_v2()
7886 static int bnxt_hwrm_func_backing_store_qcaps(struct bnxt *bp) in bnxt_hwrm_func_backing_store_qcaps()
8028 static int bnxt_hwrm_func_backing_store_cfg(struct bnxt *bp, u32 enables) in bnxt_hwrm_func_backing_store_cfg()
8158 static int bnxt_alloc_ctx_mem_blk(struct bnxt *bp, in bnxt_alloc_ctx_mem_blk()
8172 static int bnxt_alloc_ctx_pg_tbls(struct bnxt *bp, in bnxt_alloc_ctx_pg_tbls()
8233 static void bnxt_free_ctx_pg_tbls(struct bnxt *bp, in bnxt_free_ctx_pg_tbls()
8262 static int bnxt_setup_ctxm_pg_tbls(struct bnxt *bp, in bnxt_setup_ctxm_pg_tbls()
8286 static int bnxt_hwrm_func_backing_store_cfg_v2(struct bnxt *bp, in bnxt_hwrm_func_backing_store_cfg_v2()
8334 static int bnxt_backing_store_cfg_v2(struct bnxt *bp, u32 ena) in bnxt_backing_store_cfg_v2()
8360 void bnxt_free_ctx_mem(struct bnxt *bp) in bnxt_free_ctx_mem()
8389 static int bnxt_alloc_ctx_mem(struct bnxt *bp) in bnxt_alloc_ctx_mem()
8514 int bnxt_hwrm_func_resc_qcaps(struct bnxt *bp, bool all) in bnxt_hwrm_func_resc_qcaps()
8572 static int __bnxt_hwrm_ptp_qcfg(struct bnxt *bp) in __bnxt_hwrm_ptp_qcfg()
8636 static int __bnxt_hwrm_func_qcaps(struct bnxt *bp) in __bnxt_hwrm_func_qcaps()
8750 static void bnxt_hwrm_dbg_qcaps(struct bnxt *bp) in bnxt_hwrm_dbg_qcaps()
8778 int bnxt_hwrm_func_qcaps(struct bnxt *bp) in bnxt_hwrm_func_qcaps()
8804 static int bnxt_hwrm_cfa_adv_flow_mgnt_qcaps(struct bnxt *bp) in bnxt_hwrm_cfa_adv_flow_mgnt_qcaps()
8833 static int __bnxt_alloc_fw_health(struct bnxt *bp) in __bnxt_alloc_fw_health()
8846 static int bnxt_alloc_fw_health(struct bnxt *bp) in bnxt_alloc_fw_health()
8864 static void __bnxt_map_fw_health_reg(struct bnxt *bp, u32 reg) in __bnxt_map_fw_health_reg()
8871 static void bnxt_inv_fw_health_reg(struct bnxt *bp) in bnxt_inv_fw_health_reg()
8888 static void bnxt_try_map_fw_health_reg(struct bnxt *bp) in bnxt_try_map_fw_health_reg()
8935 static int bnxt_map_fw_health_regs(struct bnxt *bp) in bnxt_map_fw_health_regs()
8964 static void bnxt_remap_fw_health_regs(struct bnxt *bp) in bnxt_remap_fw_health_regs()
8977 static int bnxt_hwrm_error_recovery_qcfg(struct bnxt *bp) in bnxt_hwrm_error_recovery_qcfg()
9042 static int bnxt_hwrm_func_reset(struct bnxt *bp) in bnxt_hwrm_func_reset()
9056 static void bnxt_nvm_cfg_ver_get(struct bnxt *bp) in bnxt_nvm_cfg_ver_get()
9066 static int bnxt_hwrm_queue_qportcfg(struct bnxt *bp) in bnxt_hwrm_queue_qportcfg()
9117 static int bnxt_hwrm_poll(struct bnxt *bp) in bnxt_hwrm_poll()
9135 static int bnxt_hwrm_ver_get(struct bnxt *bp) in bnxt_hwrm_ver_get()
9256 int bnxt_hwrm_fw_set_time(struct bnxt *bp) in bnxt_hwrm_fw_set_time()
9319 static void bnxt_accumulate_all_stats(struct bnxt *bp) in bnxt_accumulate_all_stats()
9364 static int bnxt_hwrm_port_qstats(struct bnxt *bp, u8 flags) in bnxt_hwrm_port_qstats()
9388 static int bnxt_hwrm_port_qstats_ext(struct bnxt *bp, u8 flags) in bnxt_hwrm_port_qstats_ext()
9478 static void bnxt_hwrm_free_tunnel_ports(struct bnxt *bp) in bnxt_hwrm_free_tunnel_ports()
9486 static int bnxt_set_tpa(struct bnxt *bp, bool set_tpa) in bnxt_set_tpa()
9506 static void bnxt_hwrm_clear_vnic_rss(struct bnxt *bp) in bnxt_hwrm_clear_vnic_rss()
9514 static void bnxt_clear_vnic(struct bnxt *bp) in bnxt_clear_vnic()
9533 static void bnxt_hwrm_resource_free(struct bnxt *bp, bool close_path, in bnxt_hwrm_resource_free()
9545 static int bnxt_hwrm_set_br_mode(struct bnxt *bp, u16 br_mode) in bnxt_hwrm_set_br_mode()
9568 static int bnxt_hwrm_set_cache_line_size(struct bnxt *bp, int size) in bnxt_hwrm_set_cache_line_size()
9589 static int __bnxt_setup_vnic(struct bnxt *bp, u16 vnic_id) in __bnxt_setup_vnic()
9645 static int __bnxt_setup_vnic_p5(struct bnxt *bp, u16 vnic_id) in __bnxt_setup_vnic_p5()
9684 static int bnxt_setup_vnic(struct bnxt *bp, u16 vnic_id) in bnxt_setup_vnic()
9692 static int bnxt_alloc_rfs_vnics(struct bnxt *bp) in bnxt_alloc_rfs_vnics()
9725 static bool bnxt_promisc_ok(struct bnxt *bp) in bnxt_promisc_ok()
9734 static int bnxt_setup_nitroa0_vnic(struct bnxt *bp) in bnxt_setup_nitroa0_vnic()
9757 static int bnxt_init_chip(struct bnxt *bp, bool irq_re_init) in bnxt_init_chip()
9879 static int bnxt_shutdown_nic(struct bnxt *bp, bool irq_re_init) in bnxt_shutdown_nic()
9885 static int bnxt_init_nic(struct bnxt *bp, bool irq_re_init) in bnxt_init_nic()
9896 static int bnxt_set_real_num_queues(struct bnxt *bp) in bnxt_set_real_num_queues()
9918 static int __bnxt_trim_rings(struct bnxt *bp, int *rx, int *tx, int max, in __bnxt_trim_rings()
9942 static int __bnxt_num_tx_to_cp(struct bnxt *bp, int tx, int tx_sets, int tx_xdp) in __bnxt_num_tx_to_cp()
9947 int bnxt_num_tx_to_cp(struct bnxt *bp, int tx) in bnxt_num_tx_to_cp()
9956 static int bnxt_num_cp_to_tx(struct bnxt *bp, int tx_cp) in bnxt_num_cp_to_tx()
9964 static int bnxt_trim_rings(struct bnxt *bp, int *rx, int *tx, int max, in bnxt_trim_rings()
9982 static void bnxt_setup_msix(struct bnxt *bp) in bnxt_setup_msix()
10016 static void bnxt_setup_inta(struct bnxt *bp) in bnxt_setup_inta()
10032 static int bnxt_setup_int_mode(struct bnxt *bp) in bnxt_setup_int_mode()
10051 static unsigned int bnxt_get_max_func_rss_ctxs(struct bnxt *bp) in bnxt_get_max_func_rss_ctxs()
10056 static unsigned int bnxt_get_max_func_vnics(struct bnxt *bp) in bnxt_get_max_func_vnics()
10061 unsigned int bnxt_get_max_func_stat_ctxs(struct bnxt *bp) in bnxt_get_max_func_stat_ctxs()
10066 unsigned int bnxt_get_max_func_cp_rings(struct bnxt *bp) in bnxt_get_max_func_cp_rings()
10071 static unsigned int bnxt_get_max_func_cp_rings_for_en(struct bnxt *bp) in bnxt_get_max_func_cp_rings_for_en()
10081 static unsigned int bnxt_get_max_func_irqs(struct bnxt *bp) in bnxt_get_max_func_irqs()
10091 static void bnxt_set_max_func_irqs(struct bnxt *bp, unsigned int max_irqs) in bnxt_set_max_func_irqs()
10096 unsigned int bnxt_get_avail_cp_rings_for_en(struct bnxt *bp) in bnxt_get_avail_cp_rings_for_en()
10107 unsigned int bnxt_get_avail_stat_ctxs_for_en(struct bnxt *bp) in bnxt_get_avail_stat_ctxs_for_en()
10112 int bnxt_get_avail_msix(struct bnxt *bp, int num) in bnxt_get_avail_msix()
10134 static int bnxt_get_num_msix(struct bnxt *bp) in bnxt_get_num_msix()
10142 static int bnxt_init_msix(struct bnxt *bp) in bnxt_init_msix()
10208 static int bnxt_init_inta(struct bnxt *bp) in bnxt_init_inta()
10223 static int bnxt_init_int_mode(struct bnxt *bp) in bnxt_init_int_mode()
10237 static void bnxt_clear_int_mode(struct bnxt *bp) in bnxt_clear_int_mode()
10247 int bnxt_reserve_rings(struct bnxt *bp, bool irq_re_init) in bnxt_reserve_rings()
10286 static void bnxt_free_irq(struct bnxt *bp) in bnxt_free_irq()
10315 static int bnxt_request_irq(struct bnxt *bp) in bnxt_request_irq()
10374 static void bnxt_del_napi(struct bnxt *bp) in bnxt_del_napi()
10397 static void bnxt_init_napi(struct bnxt *bp) in bnxt_init_napi()
10425 static void bnxt_disable_napi(struct bnxt *bp) in bnxt_disable_napi()
10448 static void bnxt_enable_napi(struct bnxt *bp) in bnxt_enable_napi()
10470 void bnxt_tx_disable(struct bnxt *bp) in bnxt_tx_disable()
10489 void bnxt_tx_enable(struct bnxt *bp) in bnxt_tx_enable()
10529 void bnxt_report_link(struct bnxt *bp) in bnxt_report_link()
10603 static int bnxt_hwrm_phy_qcaps(struct bnxt *bp) in bnxt_hwrm_phy_qcaps()
10673 struct bnxt *bp = container_of(link_info, struct bnxt, link_info); in bnxt_support_speed_dropped() local
10699 int bnxt_update_link(struct bnxt *bp, bool chng_link_state) in bnxt_update_link()
10832 static void bnxt_get_port_module_status(struct bnxt *bp) in bnxt_get_port_module_status()
10860 bnxt_hwrm_set_pause_common(struct bnxt *bp, struct hwrm_port_phy_cfg_input *req) in bnxt_hwrm_set_pause_common()
10887 static void bnxt_hwrm_set_link_common(struct bnxt *bp, struct hwrm_port_phy_cfg_input *req) in bnxt_hwrm_set_link_common()
10926 int bnxt_hwrm_set_pause(struct bnxt *bp) in bnxt_hwrm_set_pause()
10957 static void bnxt_hwrm_set_eee(struct bnxt *bp, in bnxt_hwrm_set_eee()
10980 int bnxt_hwrm_set_link_setting(struct bnxt *bp, bool set_pause, bool set_eee) in bnxt_hwrm_set_link_setting()
10999 static int bnxt_hwrm_shutdown_link(struct bnxt *bp) in bnxt_hwrm_shutdown_link()
11030 static int bnxt_fw_reset_via_optee(struct bnxt *bp) in bnxt_fw_reset_via_optee()
11045 static int bnxt_try_recover_fw(struct bnxt *bp) in bnxt_try_recover_fw()
11076 static void bnxt_clear_reservations(struct bnxt *bp, bool fw_reset) in bnxt_clear_reservations()
11096 int bnxt_cancel_reservations(struct bnxt *bp, bool fw_reset) in bnxt_cancel_reservations()
11112 static int bnxt_hwrm_if_change(struct bnxt *bp, bool up) in bnxt_hwrm_if_change()
11199 static int bnxt_hwrm_port_led_qcaps(struct bnxt *bp) in bnxt_hwrm_port_led_qcaps()
11242 int bnxt_hwrm_alloc_wol_fltr(struct bnxt *bp) in bnxt_hwrm_alloc_wol_fltr()
11265 int bnxt_hwrm_free_wol_fltr(struct bnxt *bp) in bnxt_hwrm_free_wol_fltr()
11281 static u16 bnxt_hwrm_get_wol_fltrs(struct bnxt *bp, u16 handle) in bnxt_hwrm_get_wol_fltrs()
11310 static void bnxt_get_wol_settings(struct bnxt *bp) in bnxt_get_wol_settings()
11323 static bool bnxt_eee_config_ok(struct bnxt *bp) in bnxt_eee_config_ok()
11347 static int bnxt_update_phy_setting(struct bnxt *bp) in bnxt_update_phy_setting()
11412 static void bnxt_preset_reg_win(struct bnxt *bp) in bnxt_preset_reg_win()
11423 static int bnxt_reinit_after_abort(struct bnxt *bp) in bnxt_reinit_after_abort()
11445 static int __bnxt_open_nic(struct bnxt *bp, bool irq_re_init, bool link_re_init) in __bnxt_open_nic()
11544 int bnxt_open_nic(struct bnxt *bp, bool irq_re_init, bool link_re_init) in bnxt_open_nic()
11563 int bnxt_half_open_nic(struct bnxt *bp) in bnxt_half_open_nic()
11599 void bnxt_half_close_nic(struct bnxt *bp) in bnxt_half_close_nic()
11608 void bnxt_reenable_sriov(struct bnxt *bp) in bnxt_reenable_sriov()
11621 struct bnxt *bp = netdev_priv(dev); in bnxt_open() local
11654 static bool bnxt_drv_busy(struct bnxt *bp) in bnxt_drv_busy()
11663 static void __bnxt_close_nic(struct bnxt *bp, bool irq_re_init, in __bnxt_close_nic()
11700 void bnxt_close_nic(struct bnxt *bp, bool irq_re_init, bool link_re_init) in bnxt_close_nic()
11732 struct bnxt *bp = netdev_priv(dev); in bnxt_close() local
11740 static int bnxt_hwrm_port_phy_read(struct bnxt *bp, u16 phy_addr, u16 reg, in bnxt_hwrm_port_phy_read()
11772 static int bnxt_hwrm_port_phy_write(struct bnxt *bp, u16 phy_addr, u16 reg, in bnxt_hwrm_port_phy_write()
11803 struct bnxt *bp = netdev_priv(dev); in bnxt_ioctl() local
11843 static void bnxt_get_ring_stats(struct bnxt *bp, in bnxt_get_ring_stats()
11882 static void bnxt_add_prev_stats(struct bnxt *bp, in bnxt_add_prev_stats()
11900 struct bnxt *bp = netdev_priv(dev); in bnxt_get_stats64() local
11941 static void bnxt_get_one_ring_err_stats(struct bnxt *bp, in bnxt_get_one_ring_err_stats()
11961 void bnxt_get_ring_err_stats(struct bnxt *bp, in bnxt_get_ring_err_stats()
11970 static bool bnxt_mc_list_updated(struct bnxt *bp, u32 *rx_mask) in bnxt_mc_list_updated()
12004 static bool bnxt_uc_list_updated(struct bnxt *bp) in bnxt_uc_list_updated()
12025 struct bnxt *bp = netdev_priv(dev); in bnxt_set_rx_mode() local
12062 static int bnxt_cfg_rx_mode(struct bnxt *bp) in bnxt_cfg_rx_mode()
12137 static bool bnxt_can_reserve_rings(struct bnxt *bp) in bnxt_can_reserve_rings()
12157 static bool bnxt_rfs_supported(struct bnxt *bp) in bnxt_rfs_supported()
12175 static bool bnxt_rfs_capable(struct bnxt *bp) in bnxt_rfs_capable()
12217 struct bnxt *bp = netdev_priv(dev); in bnxt_fix_features() local
12251 struct bnxt *bp = netdev_priv(dev); in bnxt_set_features() local
12315 static bool bnxt_exthdr_check(struct bnxt *bp, struct sk_buff *skb, int nw_off, in bnxt_exthdr_check()
12382 static bool bnxt_udp_tunl_check(struct bnxt *bp, struct sk_buff *skb) in bnxt_udp_tunl_check()
12410 static bool bnxt_tunl_check(struct bnxt *bp, struct sk_buff *skb, u8 l4_proto) in bnxt_tunl_check()
12439 struct bnxt *bp = netdev_priv(dev); in bnxt_features_check() local
12462 int bnxt_dbg_hwrm_rd_reg(struct bnxt *bp, u32 reg_off, u16 num_words, in bnxt_dbg_hwrm_rd_reg()
12501 static int bnxt_dbg_hwrm_ring_info_get(struct bnxt *bp, u8 ring_type, in bnxt_dbg_hwrm_ring_info_get()
12558 static void bnxt_dbg_dump_states(struct bnxt *bp) in bnxt_dbg_dump_states()
12573 static int bnxt_hwrm_rx_ring_reset(struct bnxt *bp, int ring_nr) in bnxt_hwrm_rx_ring_reset()
12594 static void bnxt_reset_task(struct bnxt *bp, bool silent) in bnxt_reset_task()
12615 struct bnxt *bp = netdev_priv(dev); in bnxt_tx_timeout() local
12621 static void bnxt_fw_health_check(struct bnxt *bp) in bnxt_fw_health_check()
12660 struct bnxt *bp = from_timer(bp, t, timer); in bnxt_timer() local
12702 static void bnxt_rtnl_lock_sp(struct bnxt *bp) in bnxt_rtnl_lock_sp()
12713 static void bnxt_rtnl_unlock_sp(struct bnxt *bp) in bnxt_rtnl_unlock_sp()
12720 static void bnxt_reset(struct bnxt *bp, bool silent) in bnxt_reset()
12729 static void bnxt_rx_ring_reset(struct bnxt *bp) in bnxt_rx_ring_reset()
12777 static void bnxt_fw_reset_close(struct bnxt *bp) in bnxt_fw_reset_close()
12806 static bool is_bnxt_fw_ok(struct bnxt *bp) in is_bnxt_fw_ok()
12827 static void bnxt_force_fw_reset(struct bnxt *bp) in bnxt_force_fw_reset()
12861 void bnxt_fw_exception(struct bnxt *bp) in bnxt_fw_exception()
12873 static int bnxt_get_registered_vfs(struct bnxt *bp) in bnxt_get_registered_vfs()
12894 void bnxt_fw_reset(struct bnxt *bp) in bnxt_fw_reset()
12942 static void bnxt_chk_missed_irq(struct bnxt *bp) in bnxt_chk_missed_irq()
12981 static void bnxt_init_ethtool_link_settings(struct bnxt *bp) in bnxt_init_ethtool_link_settings()
13006 static void bnxt_fw_echo_reply(struct bnxt *bp) in bnxt_fw_echo_reply()
13022 struct bnxt *bp = container_of(work, struct bnxt, sp_task); in bnxt_sp_task() local
13128 int bnxt_check_rings(struct bnxt *bp, int tx, int rx, bool sh, int tcs, in bnxt_check_rings()
13169 static void bnxt_unmap_bars(struct bnxt *bp, struct pci_dev *pdev) in bnxt_unmap_bars()
13187 static void bnxt_cleanup_pci(struct bnxt *bp) in bnxt_cleanup_pci()
13195 static void bnxt_init_dflt_coal(struct bnxt *bp) in bnxt_init_dflt_coal()
13230 static bool bnxt_fw_pre_resv_vnics(struct bnxt *bp) in bnxt_fw_pre_resv_vnics()
13243 static int bnxt_fw_init_one_p1(struct bnxt *bp) in bnxt_fw_init_one_p1()
13274 static int bnxt_fw_init_one_p2(struct bnxt *bp) in bnxt_fw_init_one_p2()
13318 static void bnxt_set_dflt_rss_hash_type(struct bnxt *bp) in bnxt_set_dflt_rss_hash_type()
13334 static void bnxt_set_dflt_rfs(struct bnxt *bp) in bnxt_set_dflt_rfs()
13350 static void bnxt_fw_init_one_p3(struct bnxt *bp) in bnxt_fw_init_one_p3()
13369 int bnxt_fw_init_one(struct bnxt *bp) in bnxt_fw_init_one()
13394 static void bnxt_fw_reset_writel(struct bnxt *bp, int reg_idx) in bnxt_fw_reset_writel()
13426 bool bnxt_hwrm_reset_permitted(struct bnxt *bp) in bnxt_hwrm_reset_permitted()
13447 static void bnxt_reset_all(struct bnxt *bp) in bnxt_reset_all()
13478 static bool bnxt_fw_reset_timeout(struct bnxt *bp) in bnxt_fw_reset_timeout()
13484 static void bnxt_fw_reset_abort(struct bnxt *bp, int rc) in bnxt_fw_reset_abort()
13497 struct bnxt *bp = container_of(work, struct bnxt, fw_reset_task.work); in bnxt_fw_reset_task() local
13667 struct bnxt *bp = netdev_priv(dev); in bnxt_init_board() local
13755 struct bnxt *bp = netdev_priv(dev); in bnxt_change_mac_addr() local
13780 struct bnxt *bp = netdev_priv(dev); in bnxt_change_mtu() local
13796 struct bnxt *bp = netdev_priv(dev); in bnxt_setup_mq_tc() local
13844 struct bnxt *bp = cb_priv; in bnxt_setup_tc_block_cb() local
13863 struct bnxt *bp = netdev_priv(dev); in bnxt_setup_tc() local
13883 u32 bnxt_get_ntp_filter_idx(struct bnxt *bp, struct flow_keys *fkeys, in bnxt_get_ntp_filter_idx()
13895 int bnxt_insert_ntp_filter(struct bnxt *bp, struct bnxt_ntuple_filter *fltr, in bnxt_insert_ntp_filter()
13964 bnxt_lookup_ntp_filter_from_idx(struct bnxt *bp, in bnxt_lookup_ntp_filter_from_idx()
13982 struct bnxt *bp = netdev_priv(dev); in bnxt_rx_flow_steer() local
14065 void bnxt_del_ntp_filter(struct bnxt *bp, struct bnxt_ntuple_filter *fltr) in bnxt_del_ntp_filter()
14080 static void bnxt_cfg_ntp_filters(struct bnxt *bp) in bnxt_cfg_ntp_filters()
14124 struct bnxt *bp = netdev_priv(netdev); in bnxt_udp_tunnel_set_port() local
14140 struct bnxt *bp = netdev_priv(netdev); in bnxt_udp_tunnel_unset_port() local
14178 struct bnxt *bp = netdev_priv(dev); in bnxt_bridge_getlink() local
14187 struct bnxt *bp = netdev_priv(dev); in bnxt_bridge_setlink() local
14219 struct bnxt *bp = netdev_priv(dev); in bnxt_get_port_parent_id() local
14270 struct bnxt *bp = netdev_priv(dev); in bnxt_remove_one() local
14309 static int bnxt_probe_phy(struct bnxt *bp, bool fw_dflt) in bnxt_probe_phy()
14359 static void _bnxt_get_max_rings(struct bnxt *bp, int *max_rx, int *max_tx, in _bnxt_get_max_rings()
14394 int bnxt_get_max_rings(struct bnxt *bp, int *max_rx, int *max_tx, bool shared) in bnxt_get_max_rings()
14407 static int bnxt_get_dflt_rings(struct bnxt *bp, int *max_rx, int *max_tx, in bnxt_get_dflt_rings()
14455 static void bnxt_trim_dflt_sh_rings(struct bnxt *bp) in bnxt_trim_dflt_sh_rings()
14463 static int bnxt_set_dflt_rings(struct bnxt *bp, bool sh) in bnxt_set_dflt_rings()
14518 static int bnxt_init_dflt_ring_mode(struct bnxt *bp) in bnxt_init_dflt_ring_mode()
14548 int bnxt_restore_pf_fw_resources(struct bnxt *bp) in bnxt_restore_pf_fw_resources()
14573 static int bnxt_init_mac_addr(struct bnxt *bp) in bnxt_init_mac_addr()
14600 static void bnxt_vpd_read_info(struct bnxt *bp) in bnxt_vpd_read_info()
14634 static int bnxt_pcie_dsn_get(struct bnxt *bp, u8 dsn[]) in bnxt_pcie_dsn_get()
14651 static int bnxt_map_db_bar(struct bnxt *bp) in bnxt_map_db_bar()
14661 void bnxt_print_device_info(struct bnxt *bp) in bnxt_print_device_info()
14673 struct bnxt *bp; in bnxt_init_one() local
14924 struct bnxt *bp; in bnxt_shutdown() local
14953 struct bnxt *bp = netdev_priv(dev); in bnxt_suspend() local
14972 struct bnxt *bp = netdev_priv(dev); in bnxt_resume() local
15040 struct bnxt *bp = netdev_priv(netdev); in bnxt_io_error_detected() local
15082 struct bnxt *bp = netdev_priv(netdev); in bnxt_io_slot_reset() local
15158 struct bnxt *bp = netdev_priv(netdev); in bnxt_io_resume() local