Lines Matching defs:bp

133 static inline u32 bnxt_tx_avail(struct bnxt *bp, struct bnxt_tx_ring_info *txr)  in bnxt_tx_avail()
166 struct bnxt *bp = netdev_priv(dev); in bnxt_start_xmit() local
418 static void bnxt_tx_int(struct bnxt *bp, struct bnxt_napi *bnapi, int nr_pkts) in bnxt_tx_int()
485 static inline u8 *__bnxt_alloc_rx_data(struct bnxt *bp, dma_addr_t *mapping, in __bnxt_alloc_rx_data()
505 static inline int bnxt_alloc_rx_data(struct bnxt *bp, in bnxt_alloc_rx_data()
557 static inline int bnxt_alloc_rx_page(struct bnxt *bp, in bnxt_alloc_rx_page()
597 struct bnxt *bp = bnapi->bp; in bnxt_reuse_rx_agg_bufs() local
645 static struct sk_buff *bnxt_rx_skb(struct bnxt *bp, in bnxt_rx_skb()
672 static struct sk_buff *bnxt_rx_pages(struct bnxt *bp, struct bnxt_napi *bnapi, in bnxt_rx_pages()
741 static int bnxt_agg_bufs_valid(struct bnxt *bp, struct bnxt_cp_ring_info *cpr, in bnxt_agg_bufs_valid()
758 struct bnxt *bp = bnapi->bp; in bnxt_copy_skb() local
779 static void bnxt_tpa_start(struct bnxt *bp, struct bnxt_rx_ring_info *rxr, in bnxt_tpa_start()
840 static void bnxt_abort_tpa(struct bnxt *bp, struct bnxt_napi *bnapi, in bnxt_abort_tpa()
924 static inline struct sk_buff *bnxt_tpa_end(struct bnxt *bp, in bnxt_tpa_end()
1044 static int bnxt_rx_pkt(struct bnxt *bp, struct bnxt_napi *bnapi, u32 *raw_cons, in bnxt_rx_pkt()
1211 static int bnxt_async_event_process(struct bnxt *bp, in bnxt_async_event_process()
1230 static int bnxt_hwrm_handler(struct bnxt *bp, struct tx_cmp *txcmp) in bnxt_hwrm_handler()
1275 struct bnxt *bp = bnapi->bp; in bnxt_msix() local
1284 static inline int bnxt_has_work(struct bnxt *bp, struct bnxt_cp_ring_info *cpr) in bnxt_has_work()
1298 struct bnxt *bp = bnapi->bp; in bnxt_inta() local
1323 static int bnxt_poll_work(struct bnxt *bp, struct bnxt_napi *bnapi, int budget) in bnxt_poll_work()
1397 struct bnxt *bp = bnapi->bp; in bnxt_poll() local
1425 struct bnxt *bp = bnapi->bp; in bnxt_busy_poll() local
1444 static void bnxt_free_tx_skbs(struct bnxt *bp) in bnxt_free_tx_skbs()
1502 static void bnxt_free_rx_skbs(struct bnxt *bp) in bnxt_free_rx_skbs()
1580 static void bnxt_free_skbs(struct bnxt *bp) in bnxt_free_skbs()
1586 static void bnxt_free_ring(struct bnxt *bp, struct bnxt_ring_struct *ring) in bnxt_free_ring()
1611 static int bnxt_alloc_ring(struct bnxt *bp, struct bnxt_ring_struct *ring) in bnxt_alloc_ring()
1645 static void bnxt_free_rx_rings(struct bnxt *bp) in bnxt_free_rx_rings()
1676 static int bnxt_alloc_rx_rings(struct bnxt *bp) in bnxt_alloc_rx_rings()
1727 static void bnxt_free_tx_rings(struct bnxt *bp) in bnxt_free_tx_rings()
1757 static int bnxt_alloc_tx_rings(struct bnxt *bp) in bnxt_alloc_tx_rings()
1822 static void bnxt_free_cp_rings(struct bnxt *bp) in bnxt_free_cp_rings()
1844 static int bnxt_alloc_cp_rings(struct bnxt *bp) in bnxt_alloc_cp_rings()
1866 static void bnxt_init_ring_struct(struct bnxt *bp) in bnxt_init_ring_struct()
1938 static int bnxt_init_one_rx_ring(struct bnxt *bp, int ring_nr) in bnxt_init_one_rx_ring()
2017 static int bnxt_init_rx_rings(struct bnxt *bp) in bnxt_init_rx_rings()
2030 static int bnxt_init_tx_rings(struct bnxt *bp) in bnxt_init_tx_rings()
2048 static void bnxt_free_ring_grps(struct bnxt *bp) in bnxt_free_ring_grps()
2054 static int bnxt_init_ring_grps(struct bnxt *bp, bool irq_re_init) in bnxt_init_ring_grps()
2076 static void bnxt_free_vnics(struct bnxt *bp) in bnxt_free_vnics()
2083 static int bnxt_alloc_vnics(struct bnxt *bp) in bnxt_alloc_vnics()
2101 static void bnxt_init_vnics(struct bnxt *bp) in bnxt_init_vnics()
2141 static void bnxt_set_tpa_flags(struct bnxt *bp) in bnxt_set_tpa_flags()
2153 void bnxt_set_ring_params(struct bnxt *bp) in bnxt_set_ring_params()
2225 static void bnxt_free_vnic_attributes(struct bnxt *bp) in bnxt_free_vnic_attributes()
2261 static int bnxt_alloc_vnic_attributes(struct bnxt *bp) in bnxt_alloc_vnic_attributes()
2327 static void bnxt_free_hwrm_resources(struct bnxt *bp) in bnxt_free_hwrm_resources()
2344 static int bnxt_alloc_hwrm_resources(struct bnxt *bp) in bnxt_alloc_hwrm_resources()
2363 static void bnxt_free_stats(struct bnxt *bp) in bnxt_free_stats()
2385 static int bnxt_alloc_stats(struct bnxt *bp) in bnxt_alloc_stats()
2407 static void bnxt_clear_ring_indices(struct bnxt *bp) in bnxt_clear_ring_indices()
2437 static void bnxt_free_ntp_fltrs(struct bnxt *bp, bool irq_reinit) in bnxt_free_ntp_fltrs()
2464 static int bnxt_alloc_ntp_fltrs(struct bnxt *bp) in bnxt_alloc_ntp_fltrs()
2488 static void bnxt_free_mem(struct bnxt *bp, bool irq_re_init) in bnxt_free_mem()
2506 static int bnxt_alloc_mem(struct bnxt *bp, bool irq_re_init) in bnxt_alloc_mem()
2569 void bnxt_hwrm_cmd_hdr_init(struct bnxt *bp, void *request, u16 req_type, in bnxt_hwrm_cmd_hdr_init()
2580 int _hwrm_send_message(struct bnxt *bp, void *msg, u32 msg_len, int timeout) in _hwrm_send_message()
2664 int hwrm_send_message(struct bnxt *bp, void *msg, u32 msg_len, int timeout) in hwrm_send_message()
2674 static int bnxt_hwrm_func_drv_rgtr(struct bnxt *bp) in bnxt_hwrm_func_drv_rgtr()
2713 static int bnxt_hwrm_tunnel_dst_port_free(struct bnxt *bp, u8 tunnel_type) in bnxt_hwrm_tunnel_dst_port_free()
2739 static int bnxt_hwrm_tunnel_dst_port_alloc(struct bnxt *bp, __be16 port, in bnxt_hwrm_tunnel_dst_port_alloc()
2769 static int bnxt_hwrm_cfa_l2_set_rx_mask(struct bnxt *bp, u16 vnic_id) in bnxt_hwrm_cfa_l2_set_rx_mask()
2784 static int bnxt_hwrm_cfa_ntuple_filter_free(struct bnxt *bp, in bnxt_hwrm_cfa_ntuple_filter_free()
2810 static int bnxt_hwrm_cfa_ntuple_filter_alloc(struct bnxt *bp, in bnxt_hwrm_cfa_ntuple_filter_alloc()
2850 static int bnxt_hwrm_set_vnic_filter(struct bnxt *bp, u16 vnic_id, u16 idx, in bnxt_hwrm_set_vnic_filter()
2882 static int bnxt_hwrm_clear_vnic_filter(struct bnxt *bp) in bnxt_hwrm_clear_vnic_filter()
2910 static int bnxt_hwrm_vnic_set_tpa(struct bnxt *bp, u16 vnic_id, u32 tpa_flags) in bnxt_hwrm_vnic_set_tpa()
2957 static int bnxt_hwrm_vnic_set_rss(struct bnxt *bp, u16 vnic_id, bool set_rss) in bnxt_hwrm_vnic_set_rss()
2995 static int bnxt_hwrm_vnic_set_hds(struct bnxt *bp, u16 vnic_id) in bnxt_hwrm_vnic_set_hds()
3014 static void bnxt_hwrm_vnic_ctx_free_one(struct bnxt *bp, u16 vnic_id) in bnxt_hwrm_vnic_ctx_free_one()
3026 static void bnxt_hwrm_vnic_ctx_free(struct bnxt *bp) in bnxt_hwrm_vnic_ctx_free()
3039 static int bnxt_hwrm_vnic_ctx_alloc(struct bnxt *bp, u16 vnic_id) in bnxt_hwrm_vnic_ctx_alloc()
3059 static int bnxt_hwrm_vnic_cfg(struct bnxt *bp, u16 vnic_id) in bnxt_hwrm_vnic_cfg()
3089 static int bnxt_hwrm_vnic_free_one(struct bnxt *bp, u16 vnic_id) in bnxt_hwrm_vnic_free_one()
3108 static void bnxt_hwrm_vnic_free(struct bnxt *bp) in bnxt_hwrm_vnic_free()
3116 static int bnxt_hwrm_vnic_alloc(struct bnxt *bp, u16 vnic_id, u16 start_grp_id, in bnxt_hwrm_vnic_alloc()
3148 static int bnxt_hwrm_ring_grp_alloc(struct bnxt *bp) in bnxt_hwrm_ring_grp_alloc()
3177 static int bnxt_hwrm_ring_grp_free(struct bnxt *bp) in bnxt_hwrm_ring_grp_free()
3205 static int hwrm_ring_alloc_send_msg(struct bnxt *bp, in hwrm_ring_alloc_send_msg()
3292 static int bnxt_hwrm_ring_alloc(struct bnxt *bp) in bnxt_hwrm_ring_alloc()
3371 static int hwrm_ring_free_send_msg(struct bnxt *bp, in hwrm_ring_free_send_msg()
3411 static int bnxt_hwrm_ring_free(struct bnxt *bp, bool close_path) in bnxt_hwrm_ring_free()
3498 int bnxt_hwrm_set_coal(struct bnxt *bp) in bnxt_hwrm_set_coal()
3547 static int bnxt_hwrm_stat_ctx_free(struct bnxt *bp) in bnxt_hwrm_stat_ctx_free()
3577 static int bnxt_hwrm_stat_ctx_alloc(struct bnxt *bp) in bnxt_hwrm_stat_ctx_alloc()
3607 static int bnxt_hwrm_func_qcaps(struct bnxt *bp) in bnxt_hwrm_func_qcaps()
3677 static int bnxt_hwrm_func_reset(struct bnxt *bp) in bnxt_hwrm_func_reset()
3687 static int bnxt_hwrm_queue_qportcfg(struct bnxt *bp) in bnxt_hwrm_queue_qportcfg()
3720 static int bnxt_hwrm_ver_get(struct bnxt *bp) in bnxt_hwrm_ver_get()
3755 static void bnxt_hwrm_free_tunnel_ports(struct bnxt *bp) in bnxt_hwrm_free_tunnel_ports()
3769 static int bnxt_set_tpa(struct bnxt *bp, bool set_tpa) in bnxt_set_tpa()
3787 static void bnxt_hwrm_clear_vnic_rss(struct bnxt *bp) in bnxt_hwrm_clear_vnic_rss()
3795 static void bnxt_hwrm_resource_free(struct bnxt *bp, bool close_path, in bnxt_hwrm_resource_free()
3816 static int bnxt_setup_vnic(struct bnxt *bp, u16 vnic_id) in bnxt_setup_vnic()
3857 static int bnxt_alloc_rfs_vnics(struct bnxt *bp) in bnxt_alloc_rfs_vnics()
3888 static int bnxt_init_chip(struct bnxt *bp, bool irq_re_init) in bnxt_init_chip()
3971 static int bnxt_shutdown_nic(struct bnxt *bp, bool irq_re_init) in bnxt_shutdown_nic()
3977 static int bnxt_init_nic(struct bnxt *bp, bool irq_re_init) in bnxt_init_nic()
3987 static void bnxt_disable_int(struct bnxt *bp) in bnxt_disable_int()
4002 static void bnxt_enable_int(struct bnxt *bp) in bnxt_enable_int()
4015 static int bnxt_set_real_num_queues(struct bnxt *bp) in bnxt_set_real_num_queues()
4038 static int bnxt_setup_msix(struct bnxt *bp) in bnxt_setup_msix()
4114 static int bnxt_setup_inta(struct bnxt *bp) in bnxt_setup_inta()
4139 static int bnxt_setup_int_mode(struct bnxt *bp) in bnxt_setup_int_mode()
4153 static void bnxt_free_irq(struct bnxt *bp) in bnxt_free_irq()
4177 static int bnxt_request_irq(struct bnxt *bp) in bnxt_request_irq()
4208 static void bnxt_del_napi(struct bnxt *bp) in bnxt_del_napi()
4223 static void bnxt_init_napi(struct bnxt *bp) in bnxt_init_napi()
4242 static void bnxt_disable_napi(struct bnxt *bp) in bnxt_disable_napi()
4255 static void bnxt_enable_napi(struct bnxt *bp) in bnxt_enable_napi()
4265 static void bnxt_tx_disable(struct bnxt *bp) in bnxt_tx_disable()
4287 static void bnxt_tx_enable(struct bnxt *bp) in bnxt_tx_enable()
4305 static void bnxt_report_link(struct bnxt *bp) in bnxt_report_link()
4334 static int bnxt_update_link(struct bnxt *bp, bool chng_link_state) in bnxt_update_link()
4392 bnxt_hwrm_set_pause_common(struct bnxt *bp, struct hwrm_port_phy_cfg_input *req) in bnxt_hwrm_set_pause_common()
4411 static void bnxt_hwrm_set_link_common(struct bnxt *bp, in bnxt_hwrm_set_link_common()
4441 int bnxt_hwrm_set_pause(struct bnxt *bp) in bnxt_hwrm_set_pause()
4471 int bnxt_hwrm_set_link_setting(struct bnxt *bp, bool set_pause) in bnxt_hwrm_set_link_setting()
4483 static int bnxt_update_phy_setting(struct bnxt *bp) in bnxt_update_phy_setting()
4536 static void bnxt_preset_reg_win(struct bnxt *bp) in bnxt_preset_reg_win()
4545 static int __bnxt_open_nic(struct bnxt *bp, bool irq_re_init, bool link_re_init) in __bnxt_open_nic()
4625 int bnxt_open_nic(struct bnxt *bp, bool irq_re_init, bool link_re_init) in bnxt_open_nic()
4639 struct bnxt *bp = netdev_priv(dev); in bnxt_open() local
4652 static void bnxt_disable_int_sync(struct bnxt *bp) in bnxt_disable_int_sync()
4665 int bnxt_close_nic(struct bnxt *bp, bool irq_re_init, bool link_re_init) in bnxt_close_nic()
4706 struct bnxt *bp = netdev_priv(dev); in bnxt_close() local
4742 struct bnxt *bp = netdev_priv(dev); in bnxt_get_stats64() local
4784 static bool bnxt_mc_list_updated(struct bnxt *bp, u32 *rx_mask) in bnxt_mc_list_updated()
4818 static bool bnxt_uc_list_updated(struct bnxt *bp) in bnxt_uc_list_updated()
4839 struct bnxt *bp = netdev_priv(dev); in bnxt_set_rx_mode() local
4873 static int bnxt_cfg_rx_mode(struct bnxt *bp) in bnxt_cfg_rx_mode()
4943 struct bnxt *bp = netdev_priv(dev); in bnxt_set_features() local
5002 static void bnxt_dbg_dump_states(struct bnxt *bp) in bnxt_dbg_dump_states()
5031 static void bnxt_reset_task(struct bnxt *bp) in bnxt_reset_task()
5042 struct bnxt *bp = netdev_priv(dev); in bnxt_tx_timeout() local
5052 struct bnxt *bp = netdev_priv(dev); in bnxt_poll_controller() local
5067 struct bnxt *bp = (struct bnxt *)data; in bnxt_timer() local
5084 struct bnxt *bp = container_of(work, struct bnxt, sp_task); in bnxt_sp_task() local
5134 struct bnxt *bp = netdev_priv(dev); in bnxt_init_board() local
5240 struct bnxt *bp = netdev_priv(dev); in bnxt_change_mac_addr() local
5266 struct bnxt *bp = netdev_priv(dev); in bnxt_change_mtu() local
5285 struct bnxt *bp = netdev_priv(dev); in bnxt_setup_tc() local
5345 struct bnxt *bp = netdev_priv(dev); in bnxt_rx_flow_steer() local
5412 static void bnxt_cfg_ntp_filters(struct bnxt *bp) in bnxt_cfg_ntp_filters()
5458 static void bnxt_cfg_ntp_filters(struct bnxt *bp) in bnxt_cfg_ntp_filters()
5467 struct bnxt *bp = netdev_priv(dev); in bnxt_add_vxlan_port() local
5489 struct bnxt *bp = netdev_priv(dev); in bnxt_del_vxlan_port() local
5545 struct bnxt *bp = netdev_priv(dev); in bnxt_remove_one() local
5564 static int bnxt_probe_phy(struct bnxt *bp) in bnxt_probe_phy()
5613 void bnxt_get_max_rings(struct bnxt *bp, int *max_rx, int *max_tx) in bnxt_get_max_rings()
5641 struct bnxt *bp; in bnxt_init_one() local