Home
last modified time | relevance | path

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

12

/linux-6.15/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);
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()
50 static inline void bnxt_vf_reps_open(struct bnxt *bp) in bnxt_vf_reps_open()
73 static inline int bnxt_vf_reps_alloc(struct bnxt *bp) in bnxt_vf_reps_alloc()
[all …]
H A Dbnxt_ulp.h24 struct bnxt;
110 int bnxt_get_ulp_msix_num(struct bnxt *bp);
111 int bnxt_get_ulp_msix_num_in_use(struct bnxt *bp);
113 int bnxt_get_ulp_stat_ctxs(struct bnxt *bp);
116 void bnxt_set_dflt_ulp_stat_ctxs(struct bnxt *bp);
117 void bnxt_ulp_stop(struct bnxt *bp);
118 void bnxt_ulp_start(struct bnxt *bp, int err);
120 void bnxt_ulp_irq_stop(struct bnxt *bp);
124 void bnxt_rdma_aux_device_del(struct bnxt *bp);
125 void bnxt_rdma_aux_device_add(struct bnxt *bp);
[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()
76 void bnxt_devlink_health_fw_report(struct bnxt *bp);
77 void bnxt_dl_health_fw_status_update(struct bnxt *bp, bool healthy);
78 void bnxt_dl_health_fw_recovery_done(struct bnxt *bp);
79 void bnxt_dl_fw_reporters_create(struct bnxt *bp);
80 void bnxt_dl_fw_reporters_destroy(struct bnxt *bp);
81 int bnxt_dl_register(struct bnxt *bp);
82 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);
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);
138 void hwrm_req_alloc_flags(struct bnxt *bp, void *req, gfp_t flags);
[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_ulp.c52 int bnxt_get_ulp_msix_num(struct bnxt *bp) in bnxt_get_ulp_msix_num()
65 int bnxt_get_ulp_msix_num_in_use(struct bnxt *bp) in bnxt_get_ulp_msix_num_in_use()
72 int bnxt_get_ulp_stat_ctxs(struct bnxt *bp) in bnxt_get_ulp_stat_ctxs()
92 void bnxt_set_dflt_ulp_stat_ctxs(struct bnxt *bp) in bnxt_set_dflt_ulp_stat_ctxs()
111 struct bnxt *bp = netdev_priv(dev); in bnxt_register_dev()
150 struct bnxt *bp = netdev_priv(dev); in bnxt_unregister_dev()
197 struct bnxt *bp = netdev_priv(dev); in bnxt_send_msg()
230 void bnxt_ulp_stop(struct bnxt *bp) in bnxt_ulp_stop()
261 void bnxt_ulp_start(struct bnxt *bp, int err) in bnxt_ulp_start()
298 void bnxt_ulp_irq_stop(struct bnxt *bp) in bnxt_ulp_irq_stop()
[all …]
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);
167 void bnxt_get_tx_ts_p5(struct bnxt *bp, struct sk_buff *skb, u16 prod);
168 int bnxt_get_rx_ts_p5(struct bnxt *bp, u64 *ts, u32 pkt_ts);
169 void bnxt_tx_ts_cmp(struct bnxt *bp, struct bnxt_napi *bnapi,
172 int bnxt_ptp_init_rtc(struct bnxt *bp, bool phc_cfg);
173 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_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.h1215 struct bnxt *bp;
1244 struct bnxt *bp;
1802 struct bnxt *bp;
1852 struct bnxt *bp;
2154 struct bnxt { struct
2912 int bnxt_hwrm_set_coal(struct bnxt *);
2922 void bnxt_tx_disable(struct bnxt *bp);
2923 void bnxt_tx_enable(struct bnxt *bp);
2926 void bnxt_report_link(struct bnxt *bp);
2953 void bnxt_fw_reset(struct bnxt *bp);
[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_vfr.c99 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()
262 void bnxt_vf_reps_close(struct bnxt *bp) in bnxt_vf_reps_close()
282 void bnxt_vf_reps_open(struct bnxt *bp) in bnxt_vf_reps_open()
311 static void __bnxt_vf_reps_destroy(struct bnxt *bp) in __bnxt_vf_reps_destroy()
336 void bnxt_vf_reps_destroy(struct bnxt *bp) in bnxt_vf_reps_destroy()
379 void bnxt_vf_reps_free(struct bnxt *bp) in bnxt_vf_reps_free()
416 int bnxt_vf_reps_alloc(struct bnxt *bp) in bnxt_vf_reps_alloc()
489 int bnxt_vf_reps_create(struct bnxt *bp) in bnxt_vf_reps_create()
555 struct bnxt *bp = bnxt_get_bp_from_dl(devlink); in bnxt_dl_eswitch_mode_get()
[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.c1059 struct bnxt *bp = bnapi->bp; in bnxt_reuse_rx_agg_bufs()
2415 struct bnxt *bp = container_of(link_info, struct bnxt, link_info); in bnxt_get_force_speed()
2426 struct bnxt *bp = container_of(link_info, struct bnxt, link_info); in bnxt_set_force_speed()
2458 struct bnxt *bp = container_of(link_info, struct bnxt, link_info); in bnxt_set_auto_speed()
2470 struct bnxt *bp = container_of(link_info, struct bnxt, link_info); in bnxt_force_speed_updated()
2488 struct bnxt *bp = container_of(link_info, struct bnxt, link_info); in bnxt_auto_speed_updated()
11886 struct bnxt *bp = container_of(link_info, struct bnxt, link_info); in bnxt_support_speed_dropped()
14352 struct bnxt *bp = container_of(work, struct bnxt, sp_task); in bnxt_sp_task()
14860 struct bnxt *bp = container_of(work, struct bnxt, fw_reset_task.work); in bnxt_fw_reset_task()
16443 struct bnxt *bp; in bnxt_init_one()
[all …]
H A Dbnxt_dcb.c520 struct bnxt *bp = netdev_priv(dev); in bnxt_dcbnl_ieee_getets()
557 struct bnxt *bp = netdev_priv(dev); in bnxt_dcbnl_ieee_setets()
593 struct bnxt *bp = netdev_priv(dev); in bnxt_dcbnl_ieee_getpfc()
633 struct bnxt *bp = netdev_priv(dev); in bnxt_dcbnl_ieee_setpfc()
668 struct bnxt *bp = netdev_priv(dev); in bnxt_dcbnl_ieee_setapp()
697 struct bnxt *bp = netdev_priv(dev); in bnxt_dcbnl_ieee_delapp()
725 struct bnxt *bp = netdev_priv(dev); in bnxt_dcbnl_getdcbx()
766 void bnxt_dcb_init(struct bnxt *bp) in bnxt_dcb_init()
781 void bnxt_dcb_free(struct bnxt *bp) in bnxt_dcb_free()
791 void bnxt_dcb_init(struct bnxt *bp) in bnxt_dcb_init()
[all …]
H A Dbnxt_sriov.c72 struct bnxt *bp = netdev_priv(dev); in bnxt_set_vf_spoofchk()
164 struct bnxt *bp = netdev_priv(dev); in bnxt_set_vf_trust()
183 struct bnxt *bp = netdev_priv(dev); in bnxt_get_vf_config()
216 struct bnxt *bp = netdev_priv(dev); in bnxt_set_vf_mac()
248 struct bnxt *bp = netdev_priv(dev); in bnxt_set_vf_vlan()
294 struct bnxt *bp = netdev_priv(dev); in bnxt_set_vf_bw()
337 struct bnxt *bp = netdev_priv(dev); in bnxt_set_vf_link_state()
922 void bnxt_sriov_disable(struct bnxt *bp) in bnxt_sriov_disable()
958 struct bnxt *bp = netdev_priv(dev); in bnxt_sriov_configure()
1275 void bnxt_update_vf_mac(struct bnxt *bp) in bnxt_update_vf_mac()
[all …]
H A Dbnxt_ptp.c270 struct bnxt *bp = ptp->bp; in bnxt_ptp_adjfine()
398 void bnxt_ptp_reapply_pps(struct bnxt *bp) in bnxt_ptp_reapply_pps()
444 struct bnxt *bp = ptp->bp; in bnxt_ptp_perout_cfg()
481 struct bnxt *bp = ptp->bp; in bnxt_ptp_enable()
532 static int bnxt_hwrm_ptp_cfg(struct bnxt *bp) in bnxt_hwrm_ptp_cfg()
565 struct bnxt *bp = netdev_priv(dev); in bnxt_hwtstamp_set()
641 struct bnxt *bp = netdev_priv(dev); in bnxt_hwtstamp_get()
757 struct bnxt *bp = ptp->bp; in bnxt_ptp_ts_aux_work()
1050 static void bnxt_ptp_free(struct bnxt *bp) in bnxt_ptp_free()
1062 int bnxt_ptp_init(struct bnxt *bp) in bnxt_ptp_init()
[all …]
H A Dbnxt_devlink.c26 static void __bnxt_fw_recover(struct bnxt *bp) in __bnxt_fw_recover()
40 struct bnxt *bp = bnxt_get_bp_from_dl(dl); in bnxt_dl_flash_update()
218 __bnxt_dl_reporter_create(struct bnxt *bp, in __bnxt_dl_reporter_create()
436 struct bnxt *bp = bnxt_get_bp_from_dl(dl); in bnxt_dl_reload_down()
519 struct bnxt *bp = bnxt_get_bp_from_dl(dl); in bnxt_dl_reload_up()
640 struct bnxt *bp = bnxt_get_bp_from_dl(dl); in bnxt_dl_selftest_run()
866 struct bnxt *bp = bnxt_get_bp_from_dl(dl); in bnxt_dl_info_get()
1104 struct bnxt *bp = bnxt_get_bp_from_dl(dl); in bnxt_dl_nvm_param_get()
1123 struct bnxt *bp = bnxt_get_bp_from_dl(dl); in bnxt_dl_nvm_param_set()
1274 int bnxt_dl_register(struct bnxt *bp) in bnxt_dl_register()
[all …]
H A Dbnxt_hwrm.c98 static struct bnxt_hwrm_ctx *__hwrm_ctx(struct bnxt *bp, u8 *req_addr) in __hwrm_ctx()
135 void hwrm_req_timeout(struct bnxt *bp, void *req, unsigned int timeout) in hwrm_req_timeout()
158 void hwrm_req_alloc_flags(struct bnxt *bp, void *req, gfp_t gfp) in hwrm_req_alloc_flags()
278 void *hwrm_req_hold(struct bnxt *bp, void *req) in hwrm_req_hold()
298 static void __hwrm_ctx_drop(struct bnxt *bp, struct bnxt_hwrm_ctx *ctx) in __hwrm_ctx_drop()
330 void hwrm_req_drop(struct bnxt *bp, void *req) in hwrm_req_drop()
370 __hwrm_acquire_token(struct bnxt *bp, enum bnxt_hwrm_chnl dst) in __hwrm_acquire_token()
421 static void hwrm_req_dbg(struct bnxt *bp, struct input *req) in hwrm_req_dbg()
459 static int __hwrm_send(struct bnxt *bp, struct bnxt_hwrm_ctx *ctx) in __hwrm_send()
725 int hwrm_req_send(struct bnxt *bp, void *req) in hwrm_req_send()
[all …]
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()
563 struct bnxt *bp = netdev_priv(dev); in bnxt_get_sset_count()
598 struct bnxt *bp = netdev_priv(dev); in bnxt_get_ethtool_stats()
2471 struct bnxt *bp = container_of(link_info, struct bnxt, link_info); in bnxt_get_ethtool_modes()
2628 struct bnxt *bp = container_of(link_info, struct bnxt, link_info); in bnxt_get_all_ethtool_support_speeds()
2653 struct bnxt *bp = container_of(link_info, struct bnxt, link_info); in bnxt_get_all_ethtool_adv_speeds()
2677 struct bnxt *bp = container_of(link_info, struct bnxt, link_info); in bnxt_get_all_ethtool_lp_speeds()
[all …]
H A Dbnxt_tc.c50 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()
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()
1470 static int __bnxt_tc_del_flow(struct bnxt *bp, in __bnxt_tc_del_flow()
1612 static int bnxt_tc_del_flow(struct bnxt *bp, in bnxt_tc_del_flow()
1823 void bnxt_tc_flow_stats_work(struct bnxt *bp) in bnxt_tc_flow_stats_work()
1873 struct bnxt *bp = priv->bp; in bnxt_tc_setup_indr_block_cb()
2013 int bnxt_init_tc(struct bnxt *bp) in bnxt_init_tc()
[all …]
H A Dbnxt_xdp.c26 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()
385 static int bnxt_xdp_set(struct bnxt *bp, struct bpf_prog *prog) in bnxt_xdp_set()
448 struct bnxt *bp = netdev_priv(dev); in bnxt_xdp()
[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()
147 static int bnxt_hwrm_dbg_coredump_list(struct bnxt *bp, in bnxt_hwrm_dbg_coredump_list()
172 static int bnxt_hwrm_dbg_coredump_initiate(struct bnxt *bp, u16 dump_type, in bnxt_hwrm_dbg_coredump_initiate()
225 bnxt_fill_coredump_seg_hdr(struct bnxt *bp, in bnxt_fill_coredump_seg_hdr()
326 static void bnxt_fill_drv_seg_record(struct bnxt *bp, in bnxt_fill_drv_seg_record()
345 static u32 bnxt_get_ctx_coredump(struct bnxt *bp, void *buf, u32 offset, in bnxt_get_ctx_coredump()
396 static int __bnxt_get_coredump(struct bnxt *bp, u16 dump_type, void *buf, in __bnxt_get_coredump()
534 static int bnxt_copy_crash_dump(struct bnxt *bp, void *buf, u32 dump_len) in bnxt_copy_crash_dump()
564 static bool bnxt_crash_dump_avail(struct bnxt *bp) in bnxt_crash_dump_avail()
[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);

12