Home
last modified time | relevance | path

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

12

/linux/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 *bp) in bnxt_vf_reps_create()
[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 *bp);
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 *bp, void *req, void *new_req, u32 len);
[all …]
H A Dbnxt_ulp.c31 static void bnxt_fill_msix_vecs(struct bnxt *bp, struct bnxt_msix_entry *ent) in bnxt_fill_msix_vecs()
51 int bnxt_get_ulp_msix_num(struct bnxt *bp) in bnxt_get_ulp_msix_num()
58 void bnxt_set_ulp_msix_num(struct bnxt *bp, int num) in bnxt_set_ulp_msix_num()
64 int bnxt_get_ulp_msix_num_in_use(struct bnxt *bp) in bnxt_get_ulp_msix_num_in_use()
71 int bnxt_get_ulp_stat_ctxs(struct bnxt *bp) in bnxt_get_ulp_stat_ctxs()
78 void bnxt_set_ulp_stat_ctxs(struct bnxt *bp, int num_ulp_ctx) in bnxt_set_ulp_stat_ctxs()
84 int bnxt_get_ulp_stat_ctxs_in_use(struct bnxt *bp) in bnxt_get_ulp_stat_ctxs_in_use()
91 void bnxt_set_dflt_ulp_stat_ctxs(struct bnxt *bp) in bnxt_set_dflt_ulp_stat_ctxs()
110 struct bnxt *bp = netdev_priv(dev); in bnxt_register_dev()
149 struct bnxt *bp = netdev_priv(dev); in bnxt_unregister_dev()
[all …]
H A Dbnxt_hwmon.h14 void bnxt_hwmon_notify_event(struct bnxt *bp);
15 void bnxt_hwmon_uninit(struct bnxt *bp);
16 void bnxt_hwmon_init(struct bnxt *bp);
18 static inline void bnxt_hwmon_notify_event(struct bnxt *bp) in bnxt_hwmon_notify_event()
22 static inline void bnxt_hwmon_uninit(struct bnxt *bp) in bnxt_hwmon_uninit()
26 static inline void bnxt_hwmon_init(struct bnxt *bp) in bnxt_hwmon_init()
H A Dbnxt_ptp.h120 struct bnxt *bp;
159 void bnxt_ptp_update_current_time(struct bnxt *bp);
160 void bnxt_ptp_pps_event(struct bnxt *bp, u32 data1, u32 data2);
161 int bnxt_ptp_cfg_tstamp_filters(struct bnxt *bp);
162 void bnxt_ptp_reapply_pps(struct bnxt *bp);
166 void bnxt_get_tx_ts_p5(struct bnxt *bp, struct sk_buff *skb, u16 prod);
167 int bnxt_get_rx_ts_p5(struct bnxt *bp, u64 *ts, u32 pkt_ts);
168 void bnxt_tx_ts_cmp(struct bnxt *bp, struct bnxt_napi *bnapi,
171 int bnxt_ptp_init_rtc(struct bnxt *bp, bool phc_cfg);
172 int bnxt_ptp_init(struct bnxt *bp);
[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 *bp) in bnxt_tc_flower_enabled()
H A Dbnxt.h1209 struct bnxt *bp;
1216 void (*tx_int)(struct bnxt *, struct bnxt_napi *,
1791 struct bnxt *bp;
1841 struct bnxt *bp;
2143 struct bnxt { struct
2340 struct sk_buff * (*rx_skb_func)(struct bnxt *, argument
2784 static inline u32 bnxt_tx_avail(struct bnxt *bp, in bnxt_tx_avail()
2792 static inline void bnxt_writeq(struct bnxt *bp, u64 val, in bnxt_writeq()
2804 static inline void bnxt_writeq_relaxed(struct bnxt *bp, u64 val, in bnxt_writeq_relaxed()
2817 static inline void bnxt_db_write_relaxed(struct bnxt *bp, in bnxt_db_write_relaxed()
[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_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.c28 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 *bp) in bnxt_vf_reps_open()
298 static void __bnxt_free_one_vf_rep(struct bnxt *bp, struct bnxt_vf_rep *vf_rep) in __bnxt_free_one_vf_rep()
[all …]
H A Dbnxt.c338 static void bnxt_db_nq(struct bnxt *bp, struct bnxt_db_info *db, u32 idx) in bnxt_db_nq()
348 static void bnxt_db_nq_arm(struct bnxt *bp, struct bnxt_db_info *db, u32 idx) in bnxt_db_nq_arm()
356 static void bnxt_db_cq(struct bnxt *bp, struct bnxt_db_info *db, u32 idx) in bnxt_db_cq()
365 static void bnxt_queue_fw_reset_work(struct bnxt *bp, unsigned long delay) in bnxt_queue_fw_reset_work()
376 static void __bnxt_queue_sp_work(struct bnxt *bp) in __bnxt_queue_sp_work()
384 static void bnxt_queue_sp_work(struct bnxt *bp, unsigned int event) in bnxt_queue_sp_work()
390 static void bnxt_sched_reset_rxr(struct bnxt *bp, struct bnxt_rx_ring_info *rxr) in bnxt_sched_reset_rxr()
403 void bnxt_sched_reset_txr(struct bnxt *bp, struct bnxt_tx_ring_info *txr, in bnxt_sched_reset_txr()
451 static void bnxt_txr_db_kick(struct bnxt *bp, struct bnxt_tx_ring_info *txr, in bnxt_txr_db_kick()
462 struct bnxt *bp = netdev_priv(dev); in bnxt_start_xmit()
[all …]
H A Dbnxt_dcb.c25 static int bnxt_queue_to_tc(struct bnxt *bp, u8 queue_id) in bnxt_queue_to_tc()
40 static int bnxt_hwrm_queue_pri2cos_cfg(struct bnxt *bp, struct ieee_ets *ets) in bnxt_hwrm_queue_pri2cos_cfg()
66 static int bnxt_hwrm_queue_pri2cos_qcfg(struct bnxt *bp, struct ieee_ets *ets) in bnxt_hwrm_queue_pri2cos_qcfg()
96 static int bnxt_hwrm_queue_cos2bw_cfg(struct bnxt *bp, struct ieee_ets *ets, in bnxt_hwrm_queue_cos2bw_cfg()
145 static int bnxt_hwrm_queue_cos2bw_qcfg(struct bnxt *bp, struct ieee_ets *ets) in bnxt_hwrm_queue_cos2bw_qcfg()
193 static int bnxt_queue_remap(struct bnxt *bp, unsigned int lltc_mask) in bnxt_queue_remap()
249 static int bnxt_hwrm_queue_pfc_cfg(struct bnxt *bp, struct ieee_pfc *pfc) in bnxt_hwrm_queue_pfc_cfg()
297 static int bnxt_hwrm_queue_pfc_qcfg(struct bnxt *bp, struct ieee_pfc *pfc) in bnxt_hwrm_queue_pfc_qcfg()
321 static int bnxt_hwrm_set_dcbx_app(struct bnxt *bp, struct dcb_app *app, in bnxt_hwrm_set_dcbx_app()
414 static int bnxt_hwrm_queue_dscp_qcaps(struct bnxt *bp) in bnxt_hwrm_queue_dscp_qcaps()
[all …]
H A Dbnxt_hwmon.c21 void bnxt_hwmon_notify_event(struct bnxt *bp) in bnxt_hwmon_notify_event()
46 static int bnxt_hwrm_temp_query(struct bnxt *bp, u8 *temp) in bnxt_hwrm_temp_query()
78 const struct bnxt *bp = _data; in bnxt_hwmon_is_visible()
103 struct bnxt *bp = dev_get_drvdata(dev); in bnxt_hwmon_read()
162 struct bnxt *bp = dev_get_drvdata(dev); in temp1_shutdown_show()
170 struct bnxt *bp = dev_get_drvdata(dev); in temp1_shutdown_alarm_show()
194 struct bnxt *bp = dev_get_drvdata(dev); in bnxt_temp_extra_attrs_visible()
210 void bnxt_hwmon_uninit(struct bnxt *bp) in bnxt_hwmon_uninit()
218 void bnxt_hwmon_init(struct bnxt *bp) in bnxt_hwmon_init()
H A Dbnxt_ptp.c23 static int bnxt_ptp_cfg_settime(struct bnxt *bp, u64 time) in bnxt_ptp_cfg_settime()
77 static int __bnxt_refclk_read(struct bnxt *bp, struct ptp_system_timestamp *sts, in __bnxt_refclk_read()
101 static int bnxt_refclk_read(struct bnxt *bp, struct ptp_system_timestamp *sts, in bnxt_refclk_read()
115 static int bnxt_refclk_read_low(struct bnxt *bp, struct ptp_system_timestamp *sts, in bnxt_refclk_read_low()
137 static void bnxt_ptp_get_current_time(struct bnxt *bp) in bnxt_ptp_get_current_time()
147 static int bnxt_hwrm_port_ts_query(struct bnxt *bp, u32 flags, u64 *ts, in bnxt_hwrm_port_ts_query()
202 void bnxt_ptp_update_current_time(struct bnxt *bp) in bnxt_ptp_update_current_time()
247 static int bnxt_ptp_adjfine_rtc(struct bnxt *bp, long scaled_ppm) in bnxt_ptp_adjfine_rtc()
270 struct bnxt *bp = ptp->bp; in bnxt_ptp_adjfine()
283 void bnxt_ptp_pps_event(struct bnxt *bp, u32 data1, u32 data2) in bnxt_ptp_pps_event()
[all …]
H A 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()
H A Dbnxt_ethtool.c49 struct bnxt *bp = netdev_priv(dev); in bnxt_get_msglevel()
56 struct bnxt *bp = netdev_priv(dev); in bnxt_set_msglevel()
66 struct bnxt *bp = netdev_priv(dev); in bnxt_get_coalesce()
104 struct bnxt *bp = netdev_priv(dev); in bnxt_set_coalesce()
511 static int bnxt_get_num_tpa_ring_stats(struct bnxt *bp) in bnxt_get_num_tpa_ring_stats()
524 static int bnxt_get_num_ring_stats(struct bnxt *bp) in bnxt_get_num_ring_stats()
537 static int bnxt_get_num_stats(struct bnxt *bp) in bnxt_get_num_stats()
563 struct bnxt *bp = netdev_priv(dev); in bnxt_get_sset_count()
577 static bool is_rx_ring(struct bnxt *bp, int ring_num) in is_rx_ring()
582 static bool is_tx_ring(struct bnxt *bp, int ring_num) in is_tx_ring()
[all …]
H A Dbnxt_tc.c48 static u16 bnxt_flow_get_dst_fid(struct bnxt *pf_bp, struct net_device *dev) in bnxt_flow_get_dst_fid()
50 struct bnxt *bp; in bnxt_flow_get_dst_fid()
67 static int bnxt_tc_parse_redir(struct bnxt *bp, in bnxt_tc_parse_redir()
83 static int bnxt_tc_parse_vlan(struct bnxt *bp, in bnxt_tc_parse_vlan()
102 static int bnxt_tc_parse_tunnel_set(struct bnxt *bp, in bnxt_tc_parse_tunnel_set()
183 bnxt_tc_parse_pedit(struct bnxt *bp, struct bnxt_tc_actions *actions, in bnxt_tc_parse_pedit()
281 static int bnxt_tc_parse_actions(struct bnxt *bp, in bnxt_tc_parse_actions()
368 static int bnxt_tc_parse_flow(struct bnxt *bp, in bnxt_tc_parse_flow()
507 static int bnxt_hwrm_cfa_flow_free(struct bnxt *bp, in bnxt_hwrm_cfa_flow_free()
589 static int bnxt_hwrm_cfa_flow_alloc(struct bnxt *bp, struct bnxt_tc_flow *flow, in bnxt_hwrm_cfa_flow_alloc()
[all …]
H A Dbnxt_coredump.c41 static int bnxt_dbg_hwrm_log_buffer_flush(struct bnxt *bp, u16 type, u32 flags, in bnxt_dbg_hwrm_log_buffer_flush()
62 static int bnxt_hwrm_dbg_dma_data(struct bnxt *bp, void *msg, in bnxt_hwrm_dbg_dma_data()
137 static int bnxt_hwrm_dbg_coredump_list(struct bnxt *bp, in bnxt_hwrm_dbg_coredump_list()
162 static int bnxt_hwrm_dbg_coredump_initiate(struct bnxt *bp, u16 component_id, in bnxt_hwrm_dbg_coredump_initiate()
179 static int bnxt_hwrm_dbg_coredump_retrieve(struct bnxt *bp, u16 component_id, in bnxt_hwrm_dbg_coredump_retrieve()
213 bnxt_fill_coredump_seg_hdr(struct bnxt *bp, in bnxt_fill_coredump_seg_hdr()
264 bnxt_fill_coredump_record(struct bnxt *bp, struct bnxt_coredump_record *record, in bnxt_fill_coredump_record()
314 static void bnxt_fill_drv_seg_record(struct bnxt *bp, in bnxt_fill_drv_seg_record()
333 static u32 bnxt_get_ctx_coredump(struct bnxt *bp, void *buf, u32 offset, in bnxt_get_ctx_coredump()
384 static int __bnxt_get_coredump(struct bnxt *bp, u16 dump_type, void *buf, in __bnxt_get_coredump()
[all …]
H A Dbnxt_xdp.c25 struct bnxt_sw_tx_bd *bnxt_xmit_bd(struct bnxt *bp, in bnxt_xmit_bd()
95 static void __bnxt_xmit_xdp(struct bnxt *bp, struct bnxt_tx_ring_info *txr, in __bnxt_xmit_xdp()
107 static void __bnxt_xmit_xdp_redirect(struct bnxt *bp, in __bnxt_xmit_xdp_redirect()
121 void bnxt_tx_int_xdp(struct bnxt *bp, struct bnxt_napi *bnapi, int budget) in bnxt_tx_int_xdp()
175 bool bnxt_xdp_attached(struct bnxt *bp, struct bnxt_rx_ring_info *rxr) in bnxt_xdp_attached()
182 void bnxt_xdp_buff_init(struct bnxt *bp, struct bnxt_rx_ring_info *rxr, in bnxt_xdp_buff_init()
224 bool bnxt_rx_xdp(struct bnxt *bp, struct bnxt_rx_ring_info *rxr, u16 cons, in bnxt_rx_xdp()
334 struct bnxt *bp = netdev_priv(dev); in bnxt_xdp_xmit()
386 static int bnxt_xdp_set(struct bnxt *bp, struct bpf_prog *prog) in bnxt_xdp_set()
447 struct bnxt *bp = netdev_priv(dev); in bnxt_xdp()
[all …]
H A Dbnxt_coredump.h159 void bnxt_fill_coredump_seg_hdr(struct bnxt *bp,
164 int bnxt_get_coredump(struct bnxt *bp, u16 dump_type, void *buf, u32 *dump_len);
165 int bnxt_hwrm_get_dump_len(struct bnxt *bp, u16 dump_type, u32 *dump_len);
166 u32 bnxt_get_coredump_length(struct bnxt *bp, u16 dump_type);
H A Dbnxt_dcb.h55 void bnxt_dcb_init(struct bnxt *bp);
56 void bnxt_dcb_free(struct bnxt *bp);
H A 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()
H A DMakefile4 bnxt_en-y := bnxt.o bnxt_hwrm.o bnxt_sriov.o bnxt_ethtool.o bnxt_dcb.o bnxt_ulp.o bnxt_xdp.o bnxt_p…
/linux/Documentation/networking/devlink/
H A Dbnxt.rst4 bnxt devlink support
7 This document describes the devlink features implemented by the ``bnxt``
28 The ``bnxt`` driver also implements the following driver-specific

12