Home
last modified time | relevance | path

Searched refs:bnxt (Results 1 - 25 of 51) sorted by relevance

123

/kernel/linux/linux-6.6/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_vfr.h17 int bnxt_vf_reps_create(struct bnxt *bp);
18 void bnxt_vf_reps_destroy(struct bnxt *bp);
19 void bnxt_vf_reps_close(struct bnxt *bp);
20 void bnxt_vf_reps_open(struct bnxt *bp);
21 void bnxt_vf_rep_rx(struct bnxt *bp, struct sk_buff *skb);
22 struct net_device *bnxt_get_vf_rep(struct bnxt *bp, u16 cfa_code);
23 int bnxt_vf_reps_alloc(struct bnxt *bp);
24 void bnxt_vf_reps_free(struct bnxt *bp);
29 struct bnxt *bp = vf_rep->bp; in bnxt_vf_rep_get_fid()
41 static inline int bnxt_vf_reps_create(struct bnxt *b
[all...]
H A Dbnxt_ulp.h22 struct bnxt;
94 int bnxt_get_ulp_msix_num(struct bnxt *bp);
95 int bnxt_get_ulp_msix_base(struct bnxt *bp);
96 int bnxt_get_ulp_stat_ctxs(struct bnxt *bp);
97 void bnxt_ulp_stop(struct bnxt *bp);
98 void bnxt_ulp_start(struct bnxt *bp, int err);
99 void bnxt_ulp_sriov_cfg(struct bnxt *bp, int num_vfs);
100 void bnxt_ulp_irq_stop(struct bnxt *bp);
101 void bnxt_ulp_irq_restart(struct bnxt *bp, int err);
102 void bnxt_ulp_async_events(struct bnxt *b
[all...]
H A Dbnxt_devlink.h15 struct bnxt *bp; /* back ptr to the controlling dev */
19 static inline struct bnxt *bnxt_get_bp_from_dl(struct devlink *dl) in bnxt_get_bp_from_dl()
24 static inline void bnxt_dl_remote_reload(struct bnxt *bp) in bnxt_dl_remote_reload()
74 void bnxt_devlink_health_fw_report(struct bnxt *bp);
75 void bnxt_dl_health_fw_status_update(struct bnxt *bp, bool healthy);
76 void bnxt_dl_health_fw_recovery_done(struct bnxt *bp);
77 void bnxt_dl_fw_reporters_create(struct bnxt *bp);
78 void bnxt_dl_fw_reporters_destroy(struct bnxt *bp);
79 int bnxt_dl_register(struct bnxt *bp);
80 void bnxt_dl_unregister(struct bnxt *b
[all...]
H A Dbnxt_hwrm.h57 void hwrm_update_token(struct bnxt *bp, u16 seq, enum bnxt_hwrm_wait_state s);
121 static inline bool bnxt_kong_hwrm_message(struct bnxt *bp, struct input *req) in bnxt_kong_hwrm_message()
128 int __hwrm_req_init(struct bnxt *bp, void **req, u16 req_type, u32 req_len);
131 void *hwrm_req_hold(struct bnxt *bp, void *req);
132 void hwrm_req_drop(struct bnxt *bp, void *req);
133 void hwrm_req_flags(struct bnxt *bp, void *req, enum bnxt_hwrm_ctx_flags flags);
134 void hwrm_req_timeout(struct bnxt *bp, void *req, unsigned int timeout);
135 int hwrm_req_send(struct bnxt *bp, void *req);
136 int hwrm_req_send_silent(struct bnxt *bp, void *req);
137 int hwrm_req_replace(struct bnxt *b
[all...]
H A Dbnxt_ptp.h99 struct bnxt *bp;
138 void bnxt_ptp_update_current_time(struct bnxt *bp);
139 void bnxt_ptp_pps_event(struct bnxt *bp, u32 data1, u32 data2);
140 void bnxt_ptp_cfg_tstamp_filters(struct bnxt *bp);
141 void bnxt_ptp_reapply_pps(struct bnxt *bp);
144 int bnxt_get_tx_ts_p5(struct bnxt *bp, struct sk_buff *skb);
145 int bnxt_get_rx_ts_p5(struct bnxt *bp, u64 *ts, u32 pkt_ts);
147 int bnxt_ptp_init_rtc(struct bnxt *bp, bool phc_cfg);
148 int bnxt_ptp_init(struct bnxt *bp, bool phc_cfg);
149 void bnxt_ptp_clear(struct bnxt *b
[all...]
H A Dbnxt_sriov.h37 bool bnxt_is_trusted_vf(struct bnxt *bp, struct bnxt_vf_info *vf);
40 int bnxt_cfg_hw_sriov(struct bnxt *bp, int *num_vfs, bool reset);
41 void bnxt_sriov_disable(struct bnxt *);
42 void bnxt_hwrm_exec_fwd_req(struct bnxt *);
43 void bnxt_update_vf_mac(struct bnxt *);
44 int bnxt_approve_mac(struct bnxt *, const u8 *, bool);
H A 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 *b
[all...]
H A Dbnxt_xdp.h15 struct bnxt_sw_tx_bd *bnxt_xmit_bd(struct bnxt *bp,
19 void bnxt_tx_int_xdp(struct bnxt *bp, struct bnxt_napi *bnapi, int budget);
20 bool bnxt_rx_xdp(struct bnxt *bp, struct bnxt_rx_ring_info *rxr, u16 cons,
27 bool bnxt_xdp_attached(struct bnxt *bp, struct bnxt_rx_ring_info *rxr);
29 void bnxt_xdp_buff_init(struct bnxt *bp, struct bnxt_rx_ring_info *rxr,
34 struct sk_buff *bnxt_xdp_build_skb(struct bnxt *bp, struct sk_buff *skb,
H A Dbnxt_vfr.c17 #include "bnxt.h"
28 static int hwrm_cfa_vfr_alloc(struct bnxt *bp, u16 vf_idx, in hwrm_cfa_vfr_alloc()
55 static int hwrm_cfa_vfr_free(struct bnxt *bp, u16 vf_idx) in hwrm_cfa_vfr_free()
70 static int bnxt_hwrm_vfr_qcfg(struct bnxt *bp, struct bnxt_vf_rep *vf_rep, in bnxt_hwrm_vfr_qcfg()
99 struct bnxt *bp = vf_rep->bp; in bnxt_vf_rep_open()
153 struct bnxt *bp = vf_rep->bp; in bnxt_vf_rep_setup_tc_block_cb()
186 struct net_device *bnxt_get_vf_rep(struct bnxt *bp, u16 cfa_code) in bnxt_get_vf_rep()
198 void bnxt_vf_rep_rx(struct bnxt *bp, struct sk_buff *skb) in bnxt_vf_rep_rx()
263 void bnxt_vf_reps_close(struct bnxt *bp) in bnxt_vf_reps_close()
284 void bnxt_vf_reps_open(struct bnxt *b
[all...]
H A Dbnxt_debugfs.h11 #include "bnxt.h"
16 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()
H A Dbnxt_sriov.c19 #include "bnxt.h"
27 static int bnxt_hwrm_fwd_async_event_cmpl(struct bnxt *bp, in bnxt_hwrm_fwd_async_event_cmpl()
56 static int bnxt_vf_ndo_prep(struct bnxt *bp, int vf_id) in bnxt_vf_ndo_prep()
71 struct bnxt *bp = netdev_priv(dev); in bnxt_set_vf_spoofchk()
113 static int bnxt_hwrm_func_qcfg_flags(struct bnxt *bp, struct bnxt_vf_info *vf) in bnxt_hwrm_func_qcfg_flags()
132 bool bnxt_is_trusted_vf(struct bnxt *bp, struct bnxt_vf_info *vf) in bnxt_is_trusted_vf()
141 static int bnxt_hwrm_set_trusted_vf(struct bnxt *bp, struct bnxt_vf_info *vf) in bnxt_hwrm_set_trusted_vf()
163 struct bnxt *bp = netdev_priv(dev); in bnxt_set_vf_trust()
182 struct bnxt *bp = netdev_priv(dev); in bnxt_get_vf_config()
218 struct bnxt *b in bnxt_set_vf_mac()
[all...]
H A Dbnxt.h1020 struct bnxt *bp;
1027 void (*tx_int)(struct bnxt *, struct bnxt_napi *,
1423 struct bnxt *bp;
1473 struct bnxt *bp;
1711 struct bnxt { struct
1896 struct sk_buff * (*rx_skb_func)(struct bnxt *,
2257 static inline u32 bnxt_tx_avail(struct bnxt *bp, in bnxt_tx_avail()
2265 static inline void bnxt_writeq(struct bnxt *bp, u64 val, in bnxt_writeq()
2277 static inline void bnxt_writeq_relaxed(struct bnxt *bp, u64 val, in bnxt_writeq_relaxed()
2290 static inline void bnxt_db_write_relaxed(struct bnxt *b
[all...]
H A Dbnxt.c62 #include "bnxt.h"
271 static void bnxt_db_nq(struct bnxt *bp, struct bnxt_db_info *db, u32 idx) in bnxt_db_nq()
279 static void bnxt_db_nq_arm(struct bnxt *bp, struct bnxt_db_info *db, u32 idx) in bnxt_db_nq_arm()
287 static void bnxt_db_cq(struct bnxt *bp, struct bnxt_db_info *db, u32 idx) in bnxt_db_cq()
296 static void bnxt_queue_fw_reset_work(struct bnxt *bp, unsigned long delay) in bnxt_queue_fw_reset_work()
307 static void __bnxt_queue_sp_work(struct bnxt *bp) in __bnxt_queue_sp_work()
315 static void bnxt_queue_sp_work(struct bnxt *bp, unsigned int event) in bnxt_queue_sp_work()
321 static void bnxt_sched_reset_rxr(struct bnxt *bp, struct bnxt_rx_ring_info *rxr) in bnxt_sched_reset_rxr()
334 void bnxt_sched_reset_txr(struct bnxt *bp, struct bnxt_tx_ring_info *txr, in bnxt_sched_reset_txr()
382 static void bnxt_txr_db_kick(struct bnxt *b
10296 ATTRIBUTE_GROUPS(bnxt); global() variable
[all...]
H A Dbnxt_ulp.c25 #include "bnxt.h"
31 static void bnxt_fill_msix_vecs(struct bnxt *bp, struct bnxt_msix_entry *ent) in bnxt_fill_msix_vecs()
60 struct bnxt *bp = netdev_priv(dev); in bnxt_register_dev()
88 struct bnxt *bp = netdev_priv(dev); in bnxt_unregister_dev()
111 int bnxt_get_ulp_msix_num(struct bnxt *bp) in bnxt_get_ulp_msix_num()
120 int bnxt_get_ulp_msix_base(struct bnxt *bp) in bnxt_get_ulp_msix_base()
131 int bnxt_get_ulp_stat_ctxs(struct bnxt *bp) in bnxt_get_ulp_stat_ctxs()
147 struct bnxt *bp = netdev_priv(dev); in bnxt_send_msg()
179 void bnxt_ulp_stop(struct bnxt *bp) in bnxt_ulp_stop()
203 void bnxt_ulp_start(struct bnxt *b
[all...]
H A Dbnxt_ethtool.c28 #include "bnxt.h"
47 struct bnxt *bp = netdev_priv(dev); in bnxt_get_msglevel()
54 struct bnxt *bp = netdev_priv(dev); in bnxt_set_msglevel()
64 struct bnxt *bp = netdev_priv(dev); in bnxt_get_coalesce()
102 struct bnxt *bp = netdev_priv(dev); in bnxt_set_coalesce()
508 static int bnxt_get_num_tpa_ring_stats(struct bnxt *bp) in bnxt_get_num_tpa_ring_stats()
521 static int bnxt_get_num_ring_stats(struct bnxt *bp) in bnxt_get_num_ring_stats()
533 static int bnxt_get_num_stats(struct bnxt *bp) in bnxt_get_num_stats()
554 struct bnxt *bp = netdev_priv(dev); in bnxt_get_sset_count()
568 static bool is_rx_ring(struct bnxt *b
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnxt/
H A 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 *b
[all...]
H A 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 *b
[all...]
H A 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 *b
[all...]
H A 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 *b
[all...]
H A 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);
H A Dbnxt_debugfs.h11 #include "bnxt.h"
16 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()
H A Dbnxt_ulp.c24 #include "bnxt.h"
31 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 *b in bnxt_send_msg()
[all...]
H A Dbnxt_sriov.c18 #include "bnxt.h"
25 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 *b in bnxt_set_vf_mac()
[all...]
H A Dbnxt.c60 #include "bnxt.h"
308 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()
423 "bnxt: ring busy w/ flush pending!\n"); 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 *b
9663 ATTRIBUTE_GROUPS(bnxt); global() variable
[all...]
H A Dbnxt.h976 struct bnxt *bp;
983 void (*tx_int)(struct bnxt *, struct bnxt_napi *,
1369 struct bnxt *bp;
1419 struct bnxt *bp;
1555 struct bnxt { struct
1738 struct sk_buff * (*rx_skb_func)(struct bnxt *,
2065 static inline u32 bnxt_tx_avail(struct bnxt *bp, struct bnxt_tx_ring_info *txr) in bnxt_tx_avail()
2087 static inline void bnxt_db_write_relaxed(struct bnxt *bp, in bnxt_db_write_relaxed()
2102 static inline void bnxt_db_write(struct bnxt *bp, struct bnxt_db_info *db, in bnxt_db_write()
2142 static inline bool bnxt_kong_hwrm_message(struct bnxt *b
[all...]

Completed in 50 milliseconds

123