Lines Matching refs:bnxt
60 #include "bnxt.h"
308 static void bnxt_db_nq(struct bnxt *bp, struct bnxt_db_info *db, u32 idx)
316 static void bnxt_db_nq_arm(struct bnxt *bp, struct bnxt_db_info *db, u32 idx)
324 static void bnxt_db_cq(struct bnxt *bp, struct bnxt_db_info *db, u32 idx)
365 static void bnxt_txr_db_kick(struct bnxt *bp, struct bnxt_tx_ring_info *txr,
372 static bool bnxt_txr_netif_try_stop_queue(struct bnxt *bp,
394 struct bnxt *bp = netdev_priv(dev);
423 "bnxt: ring busy w/ flush pending!\n");
664 static void bnxt_tx_int(struct bnxt *bp, struct bnxt_napi *bnapi, int nr_pkts)
725 static struct page *__bnxt_alloc_rx_page(struct bnxt *bp, dma_addr_t *mapping,
746 static inline u8 *__bnxt_alloc_rx_data(struct bnxt *bp, dma_addr_t *mapping,
767 int bnxt_alloc_rx_data(struct bnxt *bp, struct bnxt_rx_ring_info *rxr,
828 static inline int bnxt_alloc_rx_page(struct bnxt *bp,
885 static struct rx_agg_cmp *bnxt_get_agg(struct bnxt *bp,
897 static struct rx_agg_cmp *bnxt_get_tpa_agg_p5(struct bnxt *bp,
910 struct bnxt *bp = bnapi->bp;
963 static struct sk_buff *bnxt_rx_page_skb(struct bnxt *bp,
1010 static struct sk_buff *bnxt_rx_skb(struct bnxt *bp,
1039 static struct sk_buff *bnxt_rx_pages(struct bnxt *bp,
1116 static int bnxt_agg_bufs_valid(struct bnxt *bp, struct bnxt_cp_ring_info *cpr,
1133 struct bnxt *bp = bnapi->bp;
1154 static int bnxt_discard_rx(struct bnxt *bp, struct bnxt_cp_ring_info *cpr,
1184 static void bnxt_queue_fw_reset_work(struct bnxt *bp, unsigned long delay)
1195 static void bnxt_queue_sp_work(struct bnxt *bp)
1203 static void bnxt_sched_reset(struct bnxt *bp, struct bnxt_rx_ring_info *rxr)
1243 static void bnxt_tpa_start(struct bnxt *bp, struct bnxt_rx_ring_info *rxr,
1498 static inline struct sk_buff *bnxt_gro_skb(struct bnxt *bp,
1530 static struct net_device *bnxt_get_pkt_dev(struct bnxt *bp, u16 cfa_code)
1538 static inline struct sk_buff *bnxt_tpa_end(struct bnxt *bp,
1682 static void bnxt_tpa_agg(struct bnxt *bp, struct bnxt_rx_ring_info *rxr,
1694 static void bnxt_deliver_skb(struct bnxt *bp, struct bnxt_napi *bnapi,
1713 static int bnxt_rx_pkt(struct bnxt *bp, struct bnxt_cp_ring_info *cpr,
1935 static int bnxt_force_rx_discard(struct bnxt *bp,
1975 u32 bnxt_fw_health_readl(struct bnxt *bp, int reg_idx)
2002 static u16 bnxt_agg_ring_id_to_grp_idx(struct bnxt *bp, u16 ring_id)
2029 static int bnxt_async_event_process(struct bnxt *bp,
2180 static int bnxt_hwrm_handler(struct bnxt *bp, struct tx_cmp *txcmp)
2225 struct bnxt *bp = bnapi->bp;
2235 static inline int bnxt_has_work(struct bnxt *bp, struct bnxt_cp_ring_info *cpr)
2249 struct bnxt *bp = bnapi->bp;
2274 static int __bnxt_poll_work(struct bnxt *bp, struct bnxt_cp_ring_info *cpr,
2362 static void __bnxt_poll_work_done(struct bnxt *bp, struct bnxt_napi *bnapi)
2379 static int bnxt_poll_work(struct bnxt *bp, struct bnxt_cp_ring_info *cpr,
2400 struct bnxt *bp = bnapi->bp;
2476 struct bnxt *bp = bnapi->bp;
2507 static int __bnxt_poll_cqs(struct bnxt *bp, struct bnxt_napi *bnapi, int budget)
2524 static void __bnxt_poll_cqs_done(struct bnxt *bp, struct bnxt_napi *bnapi,
2549 struct bnxt *bp = bnapi->bp;
2604 static void bnxt_free_tx_skbs(struct bnxt *bp)
2675 static void bnxt_free_one_rx_ring_skbs(struct bnxt *bp, int ring_nr)
2761 static void bnxt_free_rx_skbs(struct bnxt *bp)
2772 static void bnxt_free_skbs(struct bnxt *bp)
2778 static void bnxt_free_ring(struct bnxt *bp, struct bnxt_ring_mem_info *rmem)
2807 static int bnxt_alloc_ring(struct bnxt *bp, struct bnxt_ring_mem_info *rmem)
2860 static void bnxt_free_tpa_info(struct bnxt *bp)
2880 static int bnxt_alloc_tpa_info(struct bnxt *bp)
2916 static void bnxt_free_rx_rings(struct bnxt *bp)
2948 static int bnxt_alloc_rx_page_pool(struct bnxt *bp,
2968 static int bnxt_alloc_rx_rings(struct bnxt *bp)
3026 static void bnxt_free_tx_rings(struct bnxt *bp)
3050 static int bnxt_alloc_tx_rings(struct bnxt *bp)
3110 static void bnxt_free_cp_rings(struct bnxt *bp)
3144 static struct bnxt_cp_ring_info *bnxt_alloc_cp_sub_ring(struct bnxt *bp)
3171 static int bnxt_alloc_cp_rings(struct bnxt *bp)
3225 static void bnxt_init_ring_struct(struct bnxt *bp)
3309 static int bnxt_alloc_one_rx_ring(struct bnxt *bp, int ring_nr)
3358 static int bnxt_init_one_rx_ring(struct bnxt *bp, int ring_nr)
3393 static void bnxt_init_cp_rings(struct bnxt *bp)
3418 static int bnxt_init_rx_rings(struct bnxt *bp)
3439 static int bnxt_init_tx_rings(struct bnxt *bp)
3456 static void bnxt_free_ring_grps(struct bnxt *bp)
3462 static int bnxt_init_ring_grps(struct bnxt *bp, bool irq_re_init)
3484 static void bnxt_free_vnics(struct bnxt *bp)
3491 static int bnxt_alloc_vnics(struct bnxt *bp)
3512 static void bnxt_init_vnics(struct bnxt *bp)
3555 void bnxt_set_tpa_flags(struct bnxt *bp)
3569 void bnxt_set_ring_params(struct bnxt *bp)
3652 int bnxt_set_rx_skb_mode(struct bnxt *bp, bool page_mode)
3674 static void bnxt_free_vnic_attributes(struct bnxt *bp)
3710 static int bnxt_alloc_vnic_attributes(struct bnxt *bp)
3787 static void bnxt_free_hwrm_resources(struct bnxt *bp)
3805 static int bnxt_alloc_kong_hwrm_resources(struct bnxt *bp)
3822 static int bnxt_alloc_hwrm_resources(struct bnxt *bp)
3835 static void bnxt_free_hwrm_short_cmd_req(struct bnxt *bp)
3847 static int bnxt_alloc_hwrm_short_cmd_req(struct bnxt *bp)
3864 static void bnxt_free_stats_mem(struct bnxt *bp, struct bnxt_stats_mem *stats)
3877 static int bnxt_alloc_stats_mem(struct bnxt *bp, struct bnxt_stats_mem *stats,
3917 static int bnxt_hwrm_func_qstat_ext(struct bnxt *bp,
3945 static int bnxt_hwrm_port_qstats(struct bnxt *bp, u8 flags);
3946 static int bnxt_hwrm_port_qstats_ext(struct bnxt *bp, u8 flags);
3948 static void bnxt_init_stats(struct bnxt *bp)
4019 static void bnxt_free_port_stats(struct bnxt *bp)
4029 static void bnxt_free_ring_stats(struct bnxt *bp)
4044 static int bnxt_alloc_stats(struct bnxt *bp)
4107 static void bnxt_clear_ring_indices(struct bnxt *bp)
4142 static void bnxt_free_ntp_fltrs(struct bnxt *bp, bool irq_reinit)
4169 static int bnxt_alloc_ntp_fltrs(struct bnxt *bp)
4194 static void bnxt_free_mem(struct bnxt *bp, bool irq_re_init)
4221 static int bnxt_alloc_mem(struct bnxt *bp, bool irq_re_init)
4346 static void bnxt_disable_int(struct bnxt *bp)
4363 static int bnxt_cp_num_to_irq_num(struct bnxt *bp, int n)
4372 static void bnxt_disable_int_sync(struct bnxt *bp)
4386 static void bnxt_enable_int(struct bnxt *bp)
4399 void bnxt_hwrm_cmd_hdr_init(struct bnxt *bp, void *request, u16 req_type,
4442 static int bnxt_hwrm_do_send_msg(struct bnxt *bp, void *msg, u32 msg_len,
4634 int _hwrm_send_message(struct bnxt *bp, void *msg, u32 msg_len, int timeout)
4639 int _hwrm_send_message_silent(struct bnxt *bp, void *msg, u32 msg_len,
4645 int hwrm_send_message(struct bnxt *bp, void *msg, u32 msg_len, int timeout)
4655 int hwrm_send_message_silent(struct bnxt *bp, void *msg, u32 msg_len,
4666 int bnxt_hwrm_func_drv_rgtr(struct bnxt *bp, unsigned long *bmap, int bmap_size,
4757 static int bnxt_hwrm_func_drv_unrgtr(struct bnxt *bp)
4768 static int bnxt_hwrm_tunnel_dst_port_free(struct bnxt *bp, u8 tunnel_type)
4796 static int bnxt_hwrm_tunnel_dst_port_alloc(struct bnxt *bp, __be16 port,
4833 static int bnxt_hwrm_cfa_l2_set_rx_mask(struct bnxt *bp, u16 vnic_id)
4848 static int bnxt_hwrm_cfa_ntuple_filter_free(struct bnxt *bp,
4877 static int bnxt_hwrm_cfa_ntuple_filter_alloc(struct bnxt *bp,
4947 static int bnxt_hwrm_set_vnic_filter(struct bnxt *bp, u16 vnic_id, u16 idx,
4981 static int bnxt_hwrm_clear_vnic_filter(struct bnxt *bp)
5009 static int bnxt_hwrm_vnic_set_tpa(struct bnxt *bp, u16 vnic_id, u32 tpa_flags)
5068 static u16 bnxt_cp_ring_from_grp(struct bnxt *bp, struct bnxt_ring_struct *ring)
5076 static u16 bnxt_cp_ring_for_rx(struct bnxt *bp, struct bnxt_rx_ring_info *rxr)
5089 static u16 bnxt_cp_ring_for_tx(struct bnxt *bp, struct bnxt_tx_ring_info *txr)
5102 static int bnxt_alloc_rss_indir_tbl(struct bnxt *bp)
5119 static void bnxt_set_dflt_rss_indir_tbl(struct bnxt *bp)
5141 static u16 bnxt_get_max_rss_ring(struct bnxt *bp)
5154 int bnxt_get_nr_rss_ctxs(struct bnxt *bp, int rx_rings)
5163 static void __bnxt_fill_hw_rss_tbl(struct bnxt *bp, struct bnxt_vnic_info *vnic)
5176 static void __bnxt_fill_hw_rss_tbl_p5(struct bnxt *bp,
5198 static void bnxt_fill_hw_rss_tbl(struct bnxt *bp, struct bnxt_vnic_info *vnic)
5206 static int bnxt_hwrm_vnic_set_rss(struct bnxt *bp, u16 vnic_id, bool set_rss)
5228 static int bnxt_hwrm_vnic_set_rss_p5(struct bnxt *bp, u16 vnic_id, bool set_rss)
5260 static int bnxt_hwrm_vnic_set_hds(struct bnxt *bp, u16 vnic_id)
5279 static void bnxt_hwrm_vnic_ctx_free_one(struct bnxt *bp, u16 vnic_id,
5292 static void bnxt_hwrm_vnic_ctx_free(struct bnxt *bp)
5307 static int bnxt_hwrm_vnic_ctx_alloc(struct bnxt *bp, u16 vnic_id, u16 ctx_idx)
5327 static u32 bnxt_get_roce_vnic_mode(struct bnxt *bp)
5334 int bnxt_hwrm_vnic_cfg(struct bnxt *bp, u16 vnic_id)
5405 static void bnxt_hwrm_vnic_free_one(struct bnxt *bp, u16 vnic_id)
5419 static void bnxt_hwrm_vnic_free(struct bnxt *bp)
5427 static int bnxt_hwrm_vnic_alloc(struct bnxt *bp, u16 vnic_id,
5467 static int bnxt_hwrm_vnic_qcaps(struct bnxt *bp)
5510 static int bnxt_hwrm_ring_grp_alloc(struct bnxt *bp)
5544 static void bnxt_hwrm_ring_grp_free(struct bnxt *bp)
5567 static int hwrm_ring_alloc_send_msg(struct bnxt *bp,
5682 static int bnxt_hwrm_set_async_event_cr(struct bnxt *bp, int idx)
5706 static void bnxt_set_db(struct bnxt *bp, struct bnxt_db_info *db, u32 ring_type,
5747 static int bnxt_hwrm_ring_alloc(struct bnxt *bp)
5870 static int hwrm_ring_free_send_msg(struct bnxt *bp,
5899 static void bnxt_hwrm_ring_free(struct bnxt *bp, bool close_path)
6000 static int bnxt_trim_rings(struct bnxt *bp, int *rx, int *tx, int max,
6003 static int bnxt_hwrm_get_rings(struct bnxt *bp)
6057 int __bnxt_hwrm_get_tx_rings(struct bnxt *bp, u16 fid, int *tx_rings)
6075 static bool bnxt_rfs_supported(struct bnxt *bp);
6078 __bnxt_hwrm_reserve_pf_rings(struct bnxt *bp, struct hwrm_func_cfg_input *req,
6128 __bnxt_hwrm_reserve_vf_rings(struct bnxt *bp,
6170 bnxt_hwrm_reserve_pf_rings(struct bnxt *bp, int tx_rings, int rx_rings,
6192 bnxt_hwrm_reserve_vf_rings(struct bnxt *bp, int tx_rings, int rx_rings,
6212 static int bnxt_hwrm_reserve_rings(struct bnxt *bp, int tx, int rx, int grp,
6223 int bnxt_nq_rings_in_use(struct bnxt *bp)
6238 static int bnxt_cp_rings_in_use(struct bnxt *bp)
6249 static int bnxt_get_func_stat_ctxs(struct bnxt *bp)
6266 static void bnxt_check_rss_tbl_no_rmgr(struct bnxt *bp)
6278 static bool bnxt_need_reserve_rings(struct bnxt *bp)
6315 static int __bnxt_reserve_rings(struct bnxt *bp)
6402 static int bnxt_hwrm_check_vf_rings(struct bnxt *bp, int tx_rings, int rx_rings,
6428 static int bnxt_hwrm_check_pf_rings(struct bnxt *bp, int tx_rings, int rx_rings,
6455 static int bnxt_hwrm_check_rings(struct bnxt *bp, int tx_rings, int rx_rings,
6471 static void bnxt_hwrm_coal_params_qcaps(struct bnxt *bp)
6516 static u16 bnxt_usec_to_coal_tmr(struct bnxt *bp, u16 usec)
6523 static void bnxt_hwrm_set_coal_params(struct bnxt *bp,
6582 static int __bnxt_hwrm_set_coal_nq(struct bnxt *bp, struct bnxt_napi *bnapi,
6607 int bnxt_hwrm_set_ring_coal(struct bnxt *bp, struct bnxt_napi *bnapi)
6635 int bnxt_hwrm_set_coal(struct bnxt *bp)
6691 static void bnxt_hwrm_stat_ctx_free(struct bnxt *bp)
6727 static int bnxt_hwrm_stat_ctx_alloc(struct bnxt *bp)
6761 static int bnxt_hwrm_func_qcfg(struct bnxt *bp)
6836 static int bnxt_hwrm_func_backing_store_qcaps(struct bnxt *bp)
6937 static int bnxt_hwrm_func_backing_store_cfg(struct bnxt *bp, u32 enables)
7038 static int bnxt_alloc_ctx_mem_blk(struct bnxt *bp,
7052 static int bnxt_alloc_ctx_pg_tbls(struct bnxt *bp,
7115 static void bnxt_free_ctx_pg_tbls(struct bnxt *bp,
7144 static void bnxt_free_ctx_mem(struct bnxt *bp)
7169 static int bnxt_alloc_ctx_mem(struct bnxt *bp)
7291 int bnxt_hwrm_func_resc_qcaps(struct bnxt *bp, bool all)
7348 static int __bnxt_hwrm_func_qcaps(struct bnxt *bp)
7433 static int bnxt_hwrm_queue_qportcfg(struct bnxt *bp);
7435 static int bnxt_hwrm_func_qcaps(struct bnxt *bp)
7458 static int bnxt_hwrm_cfa_adv_flow_mgnt_qcaps(struct bnxt *bp)
7486 static int __bnxt_alloc_fw_health(struct bnxt *bp)
7498 static int bnxt_alloc_fw_health(struct bnxt *bp)
7516 static void __bnxt_map_fw_health_reg(struct bnxt *bp, u32 reg)
7523 static void bnxt_try_map_fw_health_reg(struct bnxt *bp)
7557 static int bnxt_map_fw_health_regs(struct bnxt *bp)
7582 static int bnxt_hwrm_error_recovery_qcfg(struct bnxt *bp)
7644 static int bnxt_hwrm_func_reset(struct bnxt *bp)
7654 static void bnxt_nvm_cfg_ver_get(struct bnxt *bp)
7664 static int bnxt_hwrm_queue_qportcfg(struct bnxt *bp)
7713 static int __bnxt_hwrm_ver_get(struct bnxt *bp, bool silent)
7728 static int bnxt_hwrm_ver_get(struct bnxt *bp)
7833 int bnxt_hwrm_fw_set_time(struct bnxt *bp)
7892 static void bnxt_accumulate_all_stats(struct bnxt *bp)
7937 static int bnxt_hwrm_port_qstats(struct bnxt *bp, u8 flags)
7957 static int bnxt_hwrm_port_qstats_ext(struct bnxt *bp, u8 flags)
8034 static void bnxt_hwrm_free_tunnel_ports(struct bnxt *bp)
8044 static int bnxt_set_tpa(struct bnxt *bp, bool set_tpa)
8064 static void bnxt_hwrm_clear_vnic_rss(struct bnxt *bp)
8072 static void bnxt_clear_vnic(struct bnxt *bp)
8091 static void bnxt_hwrm_resource_free(struct bnxt *bp, bool close_path,
8103 static int bnxt_hwrm_set_br_mode(struct bnxt *bp, u16 br_mode)
8119 static int bnxt_hwrm_set_cache_line_size(struct bnxt *bp, int size)
8136 static int __bnxt_setup_vnic(struct bnxt *bp, u16 vnic_id)
8192 static int __bnxt_setup_vnic_p5(struct bnxt *bp, u16 vnic_id)
8231 static int bnxt_setup_vnic(struct bnxt *bp, u16 vnic_id)
8239 static int bnxt_alloc_rfs_vnics(struct bnxt *bp)
8276 static bool bnxt_promisc_ok(struct bnxt *bp)
8285 static int bnxt_setup_nitroa0_vnic(struct bnxt *bp)
8305 static int bnxt_cfg_rx_mode(struct bnxt *);
8306 static bool bnxt_mc_list_updated(struct bnxt *, u32 *);
8308 static int bnxt_init_chip(struct bnxt *bp, bool irq_re_init)
8421 static int bnxt_shutdown_nic(struct bnxt *bp, bool irq_re_init)
8427 static int bnxt_init_nic(struct bnxt *bp, bool irq_re_init)
8438 static int bnxt_set_real_num_queues(struct bnxt *bp)
8460 static int bnxt_trim_rings(struct bnxt *bp, int *rx, int *tx, int max,
8484 static void bnxt_setup_msix(struct bnxt *bp)
8518 static void bnxt_setup_inta(struct bnxt *bp)
8530 static int bnxt_init_int_mode(struct bnxt *bp);
8532 static int bnxt_setup_int_mode(struct bnxt *bp)
8552 static unsigned int bnxt_get_max_func_rss_ctxs(struct bnxt *bp)
8557 static unsigned int bnxt_get_max_func_vnics(struct bnxt *bp)
8563 unsigned int bnxt_get_max_func_stat_ctxs(struct bnxt *bp)
8568 unsigned int bnxt_get_max_func_cp_rings(struct bnxt *bp)
8573 static unsigned int bnxt_get_max_func_cp_rings_for_en(struct bnxt *bp)
8583 static unsigned int bnxt_get_max_func_irqs(struct bnxt *bp)
8593 static void bnxt_set_max_func_irqs(struct bnxt *bp, unsigned int max_irqs)
8598 unsigned int bnxt_get_avail_cp_rings_for_en(struct bnxt *bp)
8609 unsigned int bnxt_get_avail_stat_ctxs_for_en(struct bnxt *bp)
8614 int bnxt_get_avail_msix(struct bnxt *bp, int num)
8636 static int bnxt_get_num_msix(struct bnxt *bp)
8644 static int bnxt_init_msix(struct bnxt *bp)
8709 static int bnxt_init_inta(struct bnxt *bp)
8724 static int bnxt_init_int_mode(struct bnxt *bp)
8738 static void bnxt_clear_int_mode(struct bnxt *bp)
8748 int bnxt_reserve_rings(struct bnxt *bp, bool irq_re_init)
8786 static void bnxt_free_irq(struct bnxt *bp)
8815 static int bnxt_request_irq(struct bnxt *bp)
8873 static void bnxt_del_napi(struct bnxt *bp)
8891 static void bnxt_init_napi(struct bnxt *bp)
8919 static void bnxt_disable_napi(struct bnxt *bp)
8935 static void bnxt_enable_napi(struct bnxt *bp)
8956 void bnxt_tx_disable(struct bnxt *bp)
8975 void bnxt_tx_enable(struct bnxt *bp)
9015 static void bnxt_report_link(struct bnxt *bp)
9068 static int bnxt_hwrm_phy_qcaps(struct bnxt *bp)
9148 int bnxt_update_link(struct bnxt *bp, bool chng_link_state)
9280 static void bnxt_get_port_module_status(struct bnxt *bp)
9308 bnxt_hwrm_set_pause_common(struct bnxt *bp, struct hwrm_port_phy_cfg_input *req)
9335 static void bnxt_hwrm_set_link_common(struct bnxt *bp, struct hwrm_port_phy_cfg_input *req)
9365 int bnxt_hwrm_set_pause(struct bnxt *bp)
9395 static void bnxt_hwrm_set_eee(struct bnxt *bp,
9418 int bnxt_hwrm_set_link_setting(struct bnxt *bp, bool set_pause, bool set_eee)
9433 static int bnxt_hwrm_shutdown_link(struct bnxt *bp)
9448 static int bnxt_fw_init_one(struct bnxt *bp);
9450 static int bnxt_hwrm_if_change(struct bnxt *bp, bool up)
9527 static int bnxt_hwrm_port_led_qcaps(struct bnxt *bp)
9567 int bnxt_hwrm_alloc_wol_fltr(struct bnxt *bp)
9586 int bnxt_hwrm_free_wol_fltr(struct bnxt *bp)
9597 static u16 bnxt_hwrm_get_wol_fltrs(struct bnxt *bp, u16 handle)
9623 static void bnxt_get_wol_settings(struct bnxt *bp)
9642 struct bnxt *bp = dev_get_drvdata(dev);
9663 ATTRIBUTE_GROUPS(bnxt);
9665 static void bnxt_hwmon_close(struct bnxt *bp)
9673 static void bnxt_hwmon_open(struct bnxt *bp)
9698 static void bnxt_hwmon_close(struct bnxt *bp)
9702 static void bnxt_hwmon_open(struct bnxt *bp)
9707 static bool bnxt_eee_config_ok(struct bnxt *bp)
9731 static int bnxt_update_phy_setting(struct bnxt *bp)
9801 static void bnxt_preset_reg_win(struct bnxt *bp)
9810 static int bnxt_init_dflt_ring_mode(struct bnxt *bp);
9812 static int __bnxt_open_nic(struct bnxt *bp, bool irq_re_init, bool link_re_init)
9901 int bnxt_open_nic(struct bnxt *bp, bool irq_re_init, bool link_re_init)
9920 int bnxt_half_open_nic(struct bnxt *bp)
9952 void bnxt_half_close_nic(struct bnxt *bp)
9959 static void bnxt_reenable_sriov(struct bnxt *bp)
9972 struct bnxt *bp = netdev_priv(dev);
9999 static bool bnxt_drv_busy(struct bnxt *bp)
10005 static void bnxt_get_ring_stats(struct bnxt *bp,
10008 static void __bnxt_close_nic(struct bnxt *bp, bool irq_re_init,
10043 int bnxt_close_nic(struct bnxt *bp, bool irq_re_init, bool link_re_init)
10074 struct bnxt *bp = netdev_priv(dev);
10083 static int bnxt_hwrm_port_phy_read(struct bnxt *bp, u16 phy_addr, u16 reg,
10112 static int bnxt_hwrm_port_phy_write(struct bnxt *bp, u16 phy_addr, u16 reg,
10139 struct bnxt *bp = netdev_priv(dev);
10173 static void bnxt_get_ring_stats(struct bnxt *bp,
10208 static void bnxt_add_prev_stats(struct bnxt *bp,
10225 struct bnxt *bp = netdev_priv(dev);
10266 static bool bnxt_mc_list_updated(struct bnxt *bp, u32 *rx_mask)
10300 static bool bnxt_uc_list_updated(struct bnxt *bp)
10321 struct bnxt *bp = netdev_priv(dev);
10359 static int bnxt_cfg_rx_mode(struct bnxt *bp)
10428 static bool bnxt_can_reserve_rings(struct bnxt *bp)
10448 static bool bnxt_rfs_supported(struct bnxt *bp)
10466 static bool bnxt_rfs_capable(struct bnxt *bp)
10512 struct bnxt *bp = netdev_priv(dev);
10546 struct bnxt *bp = netdev_priv(dev);
10610 int bnxt_dbg_hwrm_rd_reg(struct bnxt *bp, u32 reg_off, u16 num_words,
10642 static int bnxt_dbg_hwrm_ring_info_get(struct bnxt *bp, u8 ring_type,
10698 static void bnxt_dbg_dump_states(struct bnxt *bp)
10713 static int bnxt_hwrm_rx_ring_reset(struct bnxt *bp, int ring_nr)
10730 static void bnxt_reset_task(struct bnxt *bp, bool silent)
10751 struct bnxt *bp = netdev_priv(dev);
10758 static void bnxt_fw_health_check(struct bnxt *bp)
10793 struct bnxt *bp = from_timer(bp, t, timer);
10841 static void bnxt_rtnl_lock_sp(struct bnxt *bp)
10852 static void bnxt_rtnl_unlock_sp(struct bnxt *bp)
10859 static void bnxt_reset(struct bnxt *bp, bool silent)
10868 static void bnxt_rx_ring_reset(struct bnxt *bp)
10916 static void bnxt_fw_reset_close(struct bnxt *bp)
10934 static bool is_bnxt_fw_ok(struct bnxt *bp)
10955 static void bnxt_force_fw_reset(struct bnxt *bp)
10982 void bnxt_fw_exception(struct bnxt *bp)
10994 static int bnxt_get_registered_vfs(struct bnxt *bp)
11015 void bnxt_fw_reset(struct bnxt *bp)
11056 static void bnxt_chk_missed_irq(struct bnxt *bp)
11094 static void bnxt_cfg_ntp_filters(struct bnxt *);
11096 static void bnxt_init_ethtool_link_settings(struct bnxt *bp)
11130 struct bnxt *bp = container_of(work, struct bnxt, sp_task);
11223 int bnxt_check_rings(struct bnxt *bp, int tx, int rx, bool sh, int tcs,
11261 static void bnxt_unmap_bars(struct bnxt *bp, struct pci_dev *pdev)
11279 static void bnxt_cleanup_pci(struct bnxt *bp)
11287 static void bnxt_init_dflt_coal(struct bnxt *bp)
11313 static int bnxt_fw_reset_via_optee(struct bnxt *bp)
11328 static int bnxt_fw_init_one_p1(struct bnxt *bp)
11380 static int bnxt_fw_init_one_p2(struct bnxt *bp)
11418 static void bnxt_set_dflt_rss_hash_type(struct bnxt *bp)
11432 static void bnxt_set_dflt_rfs(struct bnxt *bp)
11448 static void bnxt_fw_init_one_p3(struct bnxt *bp)
11465 static int bnxt_probe_phy(struct bnxt *bp, bool fw_dflt);
11467 static int bnxt_fw_init_one(struct bnxt *bp)
11497 static void bnxt_fw_reset_writel(struct bnxt *bp, int reg_idx)
11529 static void bnxt_reset_all(struct bnxt *bp)
11560 struct bnxt *bp = container_of(work, struct bnxt, fw_reset_task.work);
11718 struct bnxt *bp = netdev_priv(dev);
11810 struct bnxt *bp = netdev_priv(dev);
11835 struct bnxt *bp = netdev_priv(dev);
11851 struct bnxt *bp = netdev_priv(dev);
11896 struct bnxt *bp = cb_priv;
11915 struct bnxt *bp = netdev_priv(dev);
11970 struct bnxt *bp = netdev_priv(dev);
12065 static void bnxt_cfg_ntp_filters(struct bnxt *bp)
12111 static void bnxt_cfg_ntp_filters(struct bnxt *bp)
12120 struct bnxt *bp = netdev_priv(netdev);
12134 struct bnxt *bp = netdev_priv(netdev);
12160 struct bnxt *bp = netdev_priv(dev);
12169 struct bnxt *bp = netdev_priv(dev);
12204 struct bnxt *bp = netdev_priv(dev);
12221 struct bnxt *bp = netdev_priv(dev);
12264 struct bnxt *bp = netdev_priv(dev);
12303 static int bnxt_probe_phy(struct bnxt *bp, bool fw_dflt)
12345 static void _bnxt_get_max_rings(struct bnxt *bp, int *max_rx, int *max_tx,
12374 int bnxt_get_max_rings(struct bnxt *bp, int *max_rx, int *max_tx, bool shared)
12387 static int bnxt_get_dflt_rings(struct bnxt *bp, int *max_rx, int *max_tx,
12435 static void bnxt_trim_dflt_sh_rings(struct bnxt *bp)
12443 static int bnxt_set_dflt_rings(struct bnxt *bp, bool sh)
12498 static int bnxt_init_dflt_ring_mode(struct bnxt *bp)
12525 int bnxt_restore_pf_fw_resources(struct bnxt *bp)
12550 static int bnxt_init_mac_addr(struct bnxt *bp)
12578 static void bnxt_vpd_read_info(struct bnxt *bp)
12636 static int bnxt_pcie_dsn_get(struct bnxt *bp, u8 dsn[])
12653 static int bnxt_map_db_bar(struct bnxt *bp)
12666 struct bnxt *bp;
12893 struct bnxt *bp;
12923 struct bnxt *bp = netdev_priv(dev);
12944 struct bnxt *bp = netdev_priv(dev);
13010 struct bnxt *bp = netdev_priv(netdev);
13054 struct bnxt *bp = netdev_priv(netdev);
13103 struct bnxt *bp = netdev_priv(netdev);