Home
last modified time | relevance | path

Searched refs:bnxt (Results 1 – 25 of 27) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_devlink.h15 struct bnxt *bp; /* back ptr to the controlling dev */
18 static inline struct bnxt *bnxt_get_bp_from_dl(struct devlink *dl) in bnxt_get_bp_from_dl()
24 static inline void bnxt_link_bp_to_dl(struct bnxt *bp, struct devlink *dl) in bnxt_link_bp_to_dl()
69 void bnxt_devlink_health_report(struct bnxt *bp, unsigned long event);
70 void bnxt_dl_health_status_update(struct bnxt *bp, bool healthy);
71 void bnxt_dl_health_recovery_done(struct bnxt *bp);
72 void bnxt_dl_fw_reporters_create(struct bnxt *bp);
73 void bnxt_dl_fw_reporters_destroy(struct bnxt *bp, bool all);
74 int bnxt_dl_register(struct bnxt *bp);
75 void bnxt_dl_unregister(struct bnxt *bp);
Dbnxt_vfr.h17 void bnxt_vf_reps_destroy(struct bnxt *bp);
18 void bnxt_vf_reps_close(struct bnxt *bp);
19 void bnxt_vf_reps_open(struct bnxt *bp);
20 void bnxt_vf_rep_rx(struct bnxt *bp, struct sk_buff *skb);
21 struct net_device *bnxt_get_vf_rep(struct bnxt *bp, u16 cfa_code);
26 struct bnxt *bp = vf_rep->bp; in bnxt_vf_rep_get_fid()
38 static inline void bnxt_vf_reps_close(struct bnxt *bp) in bnxt_vf_reps_close()
42 static inline void bnxt_vf_reps_open(struct bnxt *bp) in bnxt_vf_reps_open()
46 static inline void bnxt_vf_rep_rx(struct bnxt *bp, struct sk_buff *skb) in bnxt_vf_rep_rx()
50 static inline struct net_device *bnxt_get_vf_rep(struct bnxt *bp, u16 cfa_code) in bnxt_get_vf_rep()
Dbnxt_ulp.h21 struct bnxt;
100 int bnxt_get_ulp_msix_num(struct bnxt *bp);
101 int bnxt_get_ulp_msix_base(struct bnxt *bp);
102 int bnxt_get_ulp_stat_ctxs(struct bnxt *bp);
103 void bnxt_ulp_stop(struct bnxt *bp);
104 void bnxt_ulp_start(struct bnxt *bp, int err);
105 void bnxt_ulp_sriov_cfg(struct bnxt *bp, int num_vfs);
106 void bnxt_ulp_shutdown(struct bnxt *bp);
107 void bnxt_ulp_irq_stop(struct bnxt *bp);
108 void bnxt_ulp_irq_restart(struct bnxt *bp, int err);
[all …]
Dbnxt_tc.h218 int bnxt_tc_setup_flower(struct bnxt *bp, u16 src_fid,
220 int bnxt_init_tc(struct bnxt *bp);
221 void bnxt_shutdown_tc(struct bnxt *bp);
222 void bnxt_tc_flow_stats_work(struct bnxt *bp);
224 static inline bool bnxt_tc_flower_enabled(struct bnxt *bp) in bnxt_tc_flower_enabled()
231 static inline int bnxt_tc_setup_flower(struct bnxt *bp, u16 src_fid, in bnxt_tc_setup_flower()
237 static inline int bnxt_init_tc(struct bnxt *bp) in bnxt_init_tc()
242 static inline void bnxt_shutdown_tc(struct bnxt *bp) in bnxt_shutdown_tc()
246 static inline void bnxt_tc_flow_stats_work(struct bnxt *bp) in bnxt_tc_flow_stats_work()
250 static inline bool bnxt_tc_flower_enabled(struct bnxt *bp) in bnxt_tc_flower_enabled()
Dbnxt.h976 struct bnxt *bp;
983 void (*tx_int)(struct bnxt *, struct bnxt_napi *,
1368 struct bnxt *bp;
1418 struct bnxt *bp;
1554 struct bnxt { struct
1737 struct sk_buff * (*rx_skb_func)(struct bnxt *, argument
2064 static inline u32 bnxt_tx_avail(struct bnxt *bp, struct bnxt_tx_ring_info *txr) in bnxt_tx_avail()
2086 static inline void bnxt_db_write_relaxed(struct bnxt *bp, in bnxt_db_write_relaxed()
2101 static inline void bnxt_db_write(struct bnxt *bp, struct bnxt_db_info *db, in bnxt_db_write()
2141 static inline bool bnxt_kong_hwrm_message(struct bnxt *bp, struct input *req) in bnxt_kong_hwrm_message()
[all …]
Dbnxt_sriov.h39 int bnxt_cfg_hw_sriov(struct bnxt *bp, int *num_vfs, bool reset);
40 void bnxt_sriov_disable(struct bnxt *);
41 void bnxt_hwrm_exec_fwd_req(struct bnxt *);
42 void bnxt_update_vf_mac(struct bnxt *);
43 int bnxt_approve_mac(struct bnxt *, u8 *, bool);
Dbnxt_debugfs.h16 void bnxt_debug_dev_init(struct bnxt *bp);
17 void bnxt_debug_dev_exit(struct bnxt *bp);
21 static inline void bnxt_debug_dev_init(struct bnxt *bp) {} in bnxt_debug_dev_init()
22 static inline void bnxt_debug_dev_exit(struct bnxt *bp) {} in bnxt_debug_dev_exit()
Dbnxt_ulp.c31 struct bnxt *bp = netdev_priv(dev); in bnxt_register_dev()
67 struct bnxt *bp = netdev_priv(dev); in bnxt_unregister_dev()
97 static void bnxt_fill_msix_vecs(struct bnxt *bp, struct bnxt_msix_entry *ent) in bnxt_fill_msix_vecs()
121 struct bnxt *bp = netdev_priv(dev); in bnxt_req_msix_vecs()
184 struct bnxt *bp = netdev_priv(dev); in bnxt_free_msix_vecs()
202 int bnxt_get_ulp_msix_num(struct bnxt *bp) in bnxt_get_ulp_msix_num()
212 int bnxt_get_ulp_msix_base(struct bnxt *bp) in bnxt_get_ulp_msix_base()
223 int bnxt_get_ulp_stat_ctxs(struct bnxt *bp) in bnxt_get_ulp_stat_ctxs()
239 struct bnxt *bp = netdev_priv(dev); in bnxt_send_msg()
274 void bnxt_ulp_stop(struct bnxt *bp) in bnxt_ulp_stop()
[all …]
Dbnxt_dcb.c24 static int bnxt_queue_to_tc(struct bnxt *bp, u8 queue_id) in bnxt_queue_to_tc()
39 static int bnxt_hwrm_queue_pri2cos_cfg(struct bnxt *bp, struct ieee_ets *ets) in bnxt_hwrm_queue_pri2cos_cfg()
62 static int bnxt_hwrm_queue_pri2cos_qcfg(struct bnxt *bp, struct ieee_ets *ets) in bnxt_hwrm_queue_pri2cos_qcfg()
90 static int bnxt_hwrm_queue_cos2bw_cfg(struct bnxt *bp, struct ieee_ets *ets, in bnxt_hwrm_queue_cos2bw_cfg()
133 static int bnxt_hwrm_queue_cos2bw_qcfg(struct bnxt *bp, struct ieee_ets *ets) in bnxt_hwrm_queue_cos2bw_qcfg()
174 static int bnxt_queue_remap(struct bnxt *bp, unsigned int lltc_mask) in bnxt_queue_remap()
230 static int bnxt_hwrm_queue_pfc_cfg(struct bnxt *bp, struct ieee_pfc *pfc) in bnxt_hwrm_queue_pfc_cfg()
274 static int bnxt_hwrm_queue_pfc_qcfg(struct bnxt *bp, struct ieee_pfc *pfc) in bnxt_hwrm_queue_pfc_qcfg()
296 static int bnxt_hwrm_set_dcbx_app(struct bnxt *bp, struct dcb_app *app, in bnxt_hwrm_set_dcbx_app()
379 static int bnxt_hwrm_queue_dscp_qcaps(struct bnxt *bp) in bnxt_hwrm_queue_dscp_qcaps()
[all …]
Dbnxt_sriov.c25 static int bnxt_hwrm_fwd_async_event_cmpl(struct bnxt *bp, in bnxt_hwrm_fwd_async_event_cmpl()
49 static int bnxt_vf_ndo_prep(struct bnxt *bp, int vf_id) in bnxt_vf_ndo_prep()
69 struct bnxt *bp = netdev_priv(dev); in bnxt_set_vf_spoofchk()
108 static int bnxt_hwrm_func_qcfg_flags(struct bnxt *bp, struct bnxt_vf_info *vf) in bnxt_hwrm_func_qcfg_flags()
127 static bool bnxt_is_trusted_vf(struct bnxt *bp, struct bnxt_vf_info *vf) in bnxt_is_trusted_vf()
136 static int bnxt_hwrm_set_trusted_vf(struct bnxt *bp, struct bnxt_vf_info *vf) in bnxt_hwrm_set_trusted_vf()
154 struct bnxt *bp = netdev_priv(dev); in bnxt_set_vf_trust()
173 struct bnxt *bp = netdev_priv(dev); in bnxt_get_vf_config()
210 struct bnxt *bp = netdev_priv(dev); in bnxt_set_vf_mac()
238 struct bnxt *bp = netdev_priv(dev); in bnxt_set_vf_vlan()
[all …]
Dbnxt.c308 static void bnxt_db_nq(struct bnxt *bp, struct bnxt_db_info *db, u32 idx) in bnxt_db_nq()
316 static void bnxt_db_nq_arm(struct bnxt *bp, struct bnxt_db_info *db, u32 idx) in bnxt_db_nq_arm()
324 static void bnxt_db_cq(struct bnxt *bp, struct bnxt_db_info *db, u32 idx) in bnxt_db_cq()
365 static void bnxt_txr_db_kick(struct bnxt *bp, struct bnxt_tx_ring_info *txr, in bnxt_txr_db_kick()
372 static bool bnxt_txr_netif_try_stop_queue(struct bnxt *bp, in bnxt_txr_netif_try_stop_queue()
394 struct bnxt *bp = netdev_priv(dev); in bnxt_start_xmit()
664 static void bnxt_tx_int(struct bnxt *bp, struct bnxt_napi *bnapi, int nr_pkts) in bnxt_tx_int()
725 static struct page *__bnxt_alloc_rx_page(struct bnxt *bp, dma_addr_t *mapping, in __bnxt_alloc_rx_page()
746 static inline u8 *__bnxt_alloc_rx_data(struct bnxt *bp, dma_addr_t *mapping, in __bnxt_alloc_rx_data()
767 int bnxt_alloc_rx_data(struct bnxt *bp, struct bnxt_rx_ring_info *rxr, in bnxt_alloc_rx_data()
[all …]
Dbnxt_vfr.c27 static int hwrm_cfa_vfr_alloc(struct bnxt *bp, u16 vf_idx, in hwrm_cfa_vfr_alloc()
53 static int hwrm_cfa_vfr_free(struct bnxt *bp, u16 vf_idx) in hwrm_cfa_vfr_free()
67 static int bnxt_hwrm_vfr_qcfg(struct bnxt *bp, struct bnxt_vf_rep *vf_rep, in bnxt_hwrm_vfr_qcfg()
95 struct bnxt *bp = vf_rep->bp; in bnxt_vf_rep_open()
149 struct bnxt *bp = vf_rep->bp; in bnxt_vf_rep_setup_tc_block_cb()
182 struct net_device *bnxt_get_vf_rep(struct bnxt *bp, u16 cfa_code) in bnxt_get_vf_rep()
194 void bnxt_vf_rep_rx(struct bnxt *bp, struct sk_buff *skb) in bnxt_vf_rep_rx()
259 void bnxt_vf_reps_close(struct bnxt *bp) in bnxt_vf_reps_close()
280 void bnxt_vf_reps_open(struct bnxt *bp) in bnxt_vf_reps_open()
291 static void __bnxt_vf_reps_destroy(struct bnxt *bp) in __bnxt_vf_reps_destroy()
[all …]
Dbnxt_ethtool.c35 struct bnxt *bp = netdev_priv(dev); in bnxt_get_msglevel()
42 struct bnxt *bp = netdev_priv(dev); in bnxt_set_msglevel()
50 struct bnxt *bp = netdev_priv(dev); in bnxt_get_coalesce()
80 struct bnxt *bp = netdev_priv(dev); in bnxt_set_coalesce()
465 static int bnxt_get_num_tpa_ring_stats(struct bnxt *bp) in bnxt_get_num_tpa_ring_stats()
478 static int bnxt_get_num_ring_stats(struct bnxt *bp) in bnxt_get_num_ring_stats()
490 static int bnxt_get_num_stats(struct bnxt *bp) in bnxt_get_num_stats()
511 struct bnxt *bp = netdev_priv(dev); in bnxt_get_sset_count()
525 static bool is_rx_ring(struct bnxt *bp, int ring_num) in is_rx_ring()
530 static bool is_tx_ring(struct bnxt *bp, int ring_num) in is_tx_ring()
[all …]
Dbnxt_devlink.c24 struct bnxt *bp = bnxt_get_bp_from_dl(dl); in bnxt_dl_flash_update()
48 struct bnxt *bp = devlink_health_reporter_priv(reporter); in bnxt_fw_reporter_diagnose()
93 struct bnxt *bp = devlink_health_reporter_priv(reporter); in bnxt_fw_reset_recover()
112 struct bnxt *bp = devlink_health_reporter_priv(reporter); in bnxt_fw_fatal_recover()
135 void bnxt_dl_fw_reporters_create(struct bnxt *bp) in bnxt_dl_fw_reporters_create()
189 void bnxt_dl_fw_reporters_destroy(struct bnxt *bp, bool all) in bnxt_dl_fw_reporters_destroy()
216 void bnxt_devlink_health_report(struct bnxt *bp, unsigned long event) in bnxt_devlink_health_report()
252 void bnxt_dl_health_status_update(struct bnxt *bp, bool healthy) in bnxt_dl_health_status_update()
272 void bnxt_dl_health_recovery_done(struct bnxt *bp) in bnxt_dl_health_recovery_done()
357 static int bnxt_hwrm_get_nvm_cfg_ver(struct bnxt *bp, in bnxt_hwrm_get_nvm_cfg_ver()
[all …]
Dbnxt_tc.c47 static u16 bnxt_flow_get_dst_fid(struct bnxt *pf_bp, struct net_device *dev) in bnxt_flow_get_dst_fid()
49 struct bnxt *bp; in bnxt_flow_get_dst_fid()
66 static int bnxt_tc_parse_redir(struct bnxt *bp, in bnxt_tc_parse_redir()
82 static int bnxt_tc_parse_vlan(struct bnxt *bp, in bnxt_tc_parse_vlan()
101 static int bnxt_tc_parse_tunnel_set(struct bnxt *bp, in bnxt_tc_parse_tunnel_set()
182 bnxt_tc_parse_pedit(struct bnxt *bp, struct bnxt_tc_actions *actions, in bnxt_tc_parse_pedit()
280 static int bnxt_tc_parse_actions(struct bnxt *bp, in bnxt_tc_parse_actions()
367 static int bnxt_tc_parse_flow(struct bnxt *bp, in bnxt_tc_parse_flow()
502 static int bnxt_hwrm_cfa_flow_free(struct bnxt *bp, in bnxt_hwrm_cfa_flow_free()
582 static int bnxt_hwrm_cfa_flow_alloc(struct bnxt *bp, struct bnxt_tc_flow *flow, in bnxt_hwrm_cfa_flow_alloc()
[all …]
Dbnxt_xdp.h13 struct bnxt_sw_tx_bd *bnxt_xmit_bd(struct bnxt *bp,
16 void bnxt_tx_int_xdp(struct bnxt *bp, struct bnxt_napi *bnapi, int nr_pkts);
17 bool bnxt_rx_xdp(struct bnxt *bp, struct bnxt_rx_ring_info *rxr, u16 cons,
Dbnxt_xdp.c23 struct bnxt_sw_tx_bd *bnxt_xmit_bd(struct bnxt *bp, in bnxt_xmit_bd()
47 static void __bnxt_xmit_xdp(struct bnxt *bp, struct bnxt_tx_ring_info *txr, in __bnxt_xmit_xdp()
57 static void __bnxt_xmit_xdp_redirect(struct bnxt *bp, in __bnxt_xmit_xdp_redirect()
71 void bnxt_tx_int_xdp(struct bnxt *bp, struct bnxt_napi *bnapi, int nr_pkts) in bnxt_tx_int_xdp()
111 bool bnxt_rx_xdp(struct bnxt *bp, struct bnxt_rx_ring_info *rxr, u16 cons, in bnxt_rx_xdp()
218 struct bnxt *bp = netdev_priv(dev); in bnxt_xdp_xmit()
266 static int bnxt_xdp_set(struct bnxt *bp, struct bpf_prog *prog) in bnxt_xdp_set()
326 struct bnxt *bp = netdev_priv(dev); in bnxt_xdp()
Dbnxt_ethtool.h95 int bnxt_hwrm_nvm_get_dev_info(struct bnxt *bp,
99 void bnxt_ethtool_init(struct bnxt *bp);
100 void bnxt_ethtool_free(struct bnxt *bp);
Dbnxt_dcb.h52 void bnxt_dcb_init(struct bnxt *bp);
53 void bnxt_dcb_free(struct bnxt *bp);
Dbnxt_debugfs.c73 void bnxt_debug_dev_init(struct bnxt *bp) in bnxt_debug_dev_init()
91 void bnxt_debug_dev_exit(struct bnxt *bp) in bnxt_debug_dev_exit()
DMakefile4 bnxt_en-y := bnxt.o bnxt_sriov.o bnxt_ethtool.o bnxt_dcb.o bnxt_ulp.o bnxt_xdp.o bnxt_vfr.o bnxt_de…
/kernel/linux/linux-5.10/Documentation/networking/devlink/
Dbnxt.rst4 bnxt devlink support
7 This document describes the devlink features implemented by the ``bnxt``
26 The ``bnxt`` driver also implements the following driver-specific
Dindex.rst35 bnxt
/kernel/linux/linux-5.10/drivers/infiniband/hw/bnxt_re/
DMakefile3 ccflags-y := -I $(srctree)/drivers/net/ethernet/broadcom/bnxt
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/
DMakefile18 obj-$(CONFIG_BNXT) += bnxt/

12