/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_vfr.h | 17 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); 22 int bnxt_vf_reps_alloc(struct bnxt *bp); 23 void bnxt_vf_reps_free(struct bnxt *bp); 28 struct bnxt *bp = vf_rep->bp; in bnxt_vf_rep_get_fid() 40 static inline void bnxt_vf_reps_close(struct bnxt *bp) in bnxt_vf_reps_close() 44 static inline void bnxt_vf_reps_open(struct bnxt *bp) in bnxt_vf_reps_open() [all …]
|
D | bnxt_ulp.h | 21 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 …]
|
D | bnxt_devlink.h | 15 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() 56 void bnxt_devlink_health_report(struct bnxt *bp, unsigned long event); 57 void bnxt_dl_health_status_update(struct bnxt *bp, bool healthy); 58 void bnxt_dl_health_recovery_done(struct bnxt *bp); 59 void bnxt_dl_fw_reporters_create(struct bnxt *bp); 60 void bnxt_dl_fw_reporters_destroy(struct bnxt *bp, bool all); 61 int bnxt_dl_register(struct bnxt *bp); 62 void bnxt_dl_unregister(struct bnxt *bp);
|
D | bnxt_hwrm.h | 57 void hwrm_update_token(struct bnxt *bp, u16 seq, enum bnxt_hwrm_wait_state s); 125 static inline bool bnxt_kong_hwrm_message(struct bnxt *bp, struct input *req) in bnxt_kong_hwrm_message() 132 int __hwrm_req_init(struct bnxt *bp, void **req, u16 req_type, u32 req_len); 135 void *hwrm_req_hold(struct bnxt *bp, void *req); 136 void hwrm_req_drop(struct bnxt *bp, void *req); 137 void hwrm_req_flags(struct bnxt *bp, void *req, enum bnxt_hwrm_ctx_flags flags); 138 void hwrm_req_timeout(struct bnxt *bp, void *req, unsigned int timeout); 139 int hwrm_req_send(struct bnxt *bp, void *req); 140 int hwrm_req_send_silent(struct bnxt *bp, void *req); 141 int hwrm_req_replace(struct bnxt *bp, void *req, void *new_req, u32 len); [all …]
|
D | bnxt_tc.h | 218 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()
|
D | bnxt_sriov.h | 37 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);
|
D | bnxt_ulp.c | 32 struct bnxt *bp = netdev_priv(dev); in bnxt_register_dev() 68 struct bnxt *bp = netdev_priv(dev); in bnxt_unregister_dev() 98 static void bnxt_fill_msix_vecs(struct bnxt *bp, struct bnxt_msix_entry *ent) in bnxt_fill_msix_vecs() 122 struct bnxt *bp = netdev_priv(dev); in bnxt_req_msix_vecs() 185 struct bnxt *bp = netdev_priv(dev); in bnxt_free_msix_vecs() 203 int bnxt_get_ulp_msix_num(struct bnxt *bp) in bnxt_get_ulp_msix_num() 213 int bnxt_get_ulp_msix_base(struct bnxt *bp) in bnxt_get_ulp_msix_base() 224 int bnxt_get_ulp_stat_ctxs(struct bnxt *bp) in bnxt_get_ulp_stat_ctxs() 240 struct bnxt *bp = netdev_priv(dev); in bnxt_send_msg() 281 void bnxt_ulp_stop(struct bnxt *bp) in bnxt_ulp_stop() [all …]
|
D | bnxt_vfr.c | 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 *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 …]
|
D | bnxt_dcb.c | 25 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() 142 static int bnxt_hwrm_queue_cos2bw_qcfg(struct bnxt *bp, struct ieee_ets *ets) in bnxt_hwrm_queue_cos2bw_qcfg() 185 static int bnxt_queue_remap(struct bnxt *bp, unsigned int lltc_mask) in bnxt_queue_remap() 241 static int bnxt_hwrm_queue_pfc_cfg(struct bnxt *bp, struct ieee_pfc *pfc) in bnxt_hwrm_queue_pfc_cfg() 289 static int bnxt_hwrm_queue_pfc_qcfg(struct bnxt *bp, struct ieee_pfc *pfc) in bnxt_hwrm_queue_pfc_qcfg() 313 static int bnxt_hwrm_set_dcbx_app(struct bnxt *bp, struct dcb_app *app, in bnxt_hwrm_set_dcbx_app() 406 static int bnxt_hwrm_queue_dscp_qcaps(struct bnxt *bp) in bnxt_hwrm_queue_dscp_qcaps() [all …]
|
D | bnxt.h | 980 struct bnxt *bp; 987 void (*tx_int)(struct bnxt *, struct bnxt_napi *, 1378 struct bnxt *bp; 1428 struct bnxt *bp; 1593 struct bnxt { struct 1776 struct sk_buff * (*rx_skb_func)(struct bnxt *, argument 2116 static inline u32 bnxt_tx_avail(struct bnxt *bp, struct bnxt_tx_ring_info *txr) in bnxt_tx_avail() 2125 static inline void bnxt_writeq(struct bnxt *bp, u64 val, in bnxt_writeq() 2137 static inline void bnxt_writeq_relaxed(struct bnxt *bp, u64 val, in bnxt_writeq_relaxed() 2150 static inline void bnxt_db_write_relaxed(struct bnxt *bp, in bnxt_db_write_relaxed() [all …]
|
D | bnxt.c | 318 static void bnxt_db_nq(struct bnxt *bp, struct bnxt_db_info *db, u32 idx) in bnxt_db_nq() 326 static void bnxt_db_nq_arm(struct bnxt *bp, struct bnxt_db_info *db, u32 idx) in bnxt_db_nq_arm() 334 static void bnxt_db_cq(struct bnxt *bp, struct bnxt_db_info *db, u32 idx) in bnxt_db_cq() 375 static void bnxt_txr_db_kick(struct bnxt *bp, struct bnxt_tx_ring_info *txr, in bnxt_txr_db_kick() 382 static bool bnxt_txr_netif_try_stop_queue(struct bnxt *bp, in bnxt_txr_netif_try_stop_queue() 404 struct bnxt *bp = netdev_priv(dev); in bnxt_start_xmit() 701 static void bnxt_tx_int(struct bnxt *bp, struct bnxt_napi *bnapi, int nr_pkts) in bnxt_tx_int() 772 static struct page *__bnxt_alloc_rx_page(struct bnxt *bp, dma_addr_t *mapping, in __bnxt_alloc_rx_page() 793 static inline u8 *__bnxt_alloc_rx_data(struct bnxt *bp, dma_addr_t *mapping, in __bnxt_alloc_rx_data() 814 int bnxt_alloc_rx_data(struct bnxt *bp, struct bnxt_rx_ring_info *rxr, in bnxt_alloc_rx_data() [all …]
|
D | bnxt_sriov.c | 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 *bp = netdev_priv(dev); in bnxt_set_vf_mac() 250 struct bnxt *bp = netdev_priv(dev); in bnxt_set_vf_vlan() [all …]
|
D | bnxt_ptp.h | 93 struct bnxt *bp; 131 void bnxt_ptp_pps_event(struct bnxt *bp, u32 data1, u32 data2); 132 void bnxt_ptp_reapply_pps(struct bnxt *bp); 135 int bnxt_get_tx_ts_p5(struct bnxt *bp, struct sk_buff *skb); 136 int bnxt_get_rx_ts_p5(struct bnxt *bp, u64 *ts, u32 pkt_ts); 137 int bnxt_ptp_init(struct bnxt *bp); 138 void bnxt_ptp_clear(struct bnxt *bp);
|
D | bnxt_hwrm.c | 61 int __hwrm_req_init(struct bnxt *bp, void **req, u16 req_type, u32 req_len) in __hwrm_req_init() 98 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() 192 int hwrm_req_replace(struct bnxt *bp, void *req, void *new_req, u32 len) in hwrm_req_replace() 245 void hwrm_req_flags(struct bnxt *bp, void *req, enum bnxt_hwrm_ctx_flags flags) in hwrm_req_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() 368 __hwrm_acquire_token(struct bnxt *bp, enum bnxt_hwrm_chnl dst) in __hwrm_acquire_token() [all …]
|
D | bnxt_ptp.c | 60 static int bnxt_refclk_read(struct bnxt *bp, struct ptp_system_timestamp *sts, in bnxt_refclk_read() 84 static void bnxt_ptp_get_current_time(struct bnxt *bp) in bnxt_ptp_get_current_time() 96 static int bnxt_hwrm_port_ts_query(struct bnxt *bp, u32 flags, u64 *ts) in bnxt_hwrm_port_ts_query() 161 struct bnxt *bp = ptp->bp; in bnxt_ptp_adjfreq() 177 void bnxt_ptp_pps_event(struct bnxt *bp, u32 data1, u32 data2) in bnxt_ptp_pps_event() 204 static int bnxt_ptp_cfg_pin(struct bnxt *bp, u8 pin, u8 usage) in bnxt_ptp_cfg_pin() 242 static int bnxt_ptp_cfg_event(struct bnxt *bp, u8 event) in bnxt_ptp_cfg_event() 256 void bnxt_ptp_reapply_pps(struct bnxt *bp) in bnxt_ptp_reapply_pps() 305 struct bnxt *bp = ptp->bp; in bnxt_ptp_perout_cfg() 342 struct bnxt *bp = ptp->bp; in bnxt_ptp_enable() [all …]
|
D | bnxt_debugfs.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()
|
D | bnxt_ethtool.c | 38 struct bnxt *bp = netdev_priv(dev); in bnxt_get_msglevel() 45 struct bnxt *bp = netdev_priv(dev); in bnxt_set_msglevel() 55 struct bnxt *bp = netdev_priv(dev); in bnxt_get_coalesce() 87 struct bnxt *bp = netdev_priv(dev); in bnxt_set_coalesce() 474 static int bnxt_get_num_tpa_ring_stats(struct bnxt *bp) in bnxt_get_num_tpa_ring_stats() 487 static int bnxt_get_num_ring_stats(struct bnxt *bp) in bnxt_get_num_ring_stats() 499 static int bnxt_get_num_stats(struct bnxt *bp) in bnxt_get_num_stats() 520 struct bnxt *bp = netdev_priv(dev); in bnxt_get_sset_count() 534 static bool is_rx_ring(struct bnxt *bp, int ring_num) in is_rx_ring() 539 static bool is_tx_ring(struct bnxt *bp, int ring_num) in is_tx_ring() [all …]
|
D | bnxt_devlink.c | 25 struct bnxt *bp = bnxt_get_bp_from_dl(dl); in bnxt_dl_flash_update() 47 struct bnxt *bp = devlink_health_reporter_priv(reporter); in bnxt_fw_reporter_diagnose() 91 struct bnxt *bp = devlink_health_reporter_priv(reporter); in bnxt_fw_reset_recover() 110 struct bnxt *bp = devlink_health_reporter_priv(reporter); in bnxt_fw_fatal_recover() 133 void bnxt_dl_fw_reporters_create(struct bnxt *bp) in bnxt_dl_fw_reporters_create() 187 void bnxt_dl_fw_reporters_destroy(struct bnxt *bp, bool all) in bnxt_dl_fw_reporters_destroy() 214 void bnxt_devlink_health_report(struct bnxt *bp, unsigned long event) in bnxt_devlink_health_report() 250 void bnxt_dl_health_status_update(struct bnxt *bp, bool healthy) in bnxt_dl_health_status_update() 270 void bnxt_dl_health_recovery_done(struct bnxt *bp) in bnxt_dl_health_recovery_done() 355 static int bnxt_hwrm_get_nvm_cfg_ver(struct bnxt *bp, u32 *nvm_cfg_ver) in bnxt_hwrm_get_nvm_cfg_ver() [all …]
|
D | bnxt_tc.c | 48 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() 503 static int bnxt_hwrm_cfa_flow_free(struct bnxt *bp, in bnxt_hwrm_cfa_flow_free() 585 static int bnxt_hwrm_cfa_flow_alloc(struct bnxt *bp, struct bnxt_tc_flow *flow, in bnxt_hwrm_cfa_flow_alloc() [all …]
|
D | bnxt_xdp.c | 25 struct bnxt_sw_tx_bd *bnxt_xmit_bd(struct bnxt *bp, in bnxt_xmit_bd() 49 static void __bnxt_xmit_xdp(struct bnxt *bp, struct bnxt_tx_ring_info *txr, in __bnxt_xmit_xdp() 59 static void __bnxt_xmit_xdp_redirect(struct bnxt *bp, in __bnxt_xmit_xdp_redirect() 73 void bnxt_tx_int_xdp(struct bnxt *bp, struct bnxt_napi *bnapi, int nr_pkts) in bnxt_tx_int_xdp() 113 bool bnxt_rx_xdp(struct bnxt *bp, struct bnxt_rx_ring_info *rxr, u16 cons, in bnxt_rx_xdp() 215 struct bnxt *bp = netdev_priv(dev); in bnxt_xdp_xmit() 267 static int bnxt_xdp_set(struct bnxt *bp, struct bpf_prog *prog) in bnxt_xdp_set() 327 struct bnxt *bp = netdev_priv(dev); in bnxt_xdp()
|
D | bnxt_coredump.c | 18 static int bnxt_hwrm_dbg_dma_data(struct bnxt *bp, void *msg, in bnxt_hwrm_dbg_dma_data() 93 static int bnxt_hwrm_dbg_coredump_list(struct bnxt *bp, in bnxt_hwrm_dbg_coredump_list() 118 static int bnxt_hwrm_dbg_coredump_initiate(struct bnxt *bp, u16 component_id, in bnxt_hwrm_dbg_coredump_initiate() 135 static int bnxt_hwrm_dbg_coredump_retrieve(struct bnxt *bp, u16 component_id, in bnxt_hwrm_dbg_coredump_retrieve() 169 bnxt_fill_coredump_seg_hdr(struct bnxt *bp, in bnxt_fill_coredump_seg_hdr() 197 bnxt_fill_coredump_record(struct bnxt *bp, struct bnxt_coredump_record *record, in bnxt_fill_coredump_record() 247 static int __bnxt_get_coredump(struct bnxt *bp, void *buf, u32 *dump_len) in __bnxt_get_coredump() 350 int bnxt_get_coredump(struct bnxt *bp, u16 dump_type, void *buf, u32 *dump_len) in bnxt_get_coredump() 363 u32 bnxt_get_coredump_length(struct bnxt *bp, u16 dump_type) in bnxt_get_coredump_length()
|
D | bnxt_xdp.h | 15 struct bnxt_sw_tx_bd *bnxt_xmit_bd(struct bnxt *bp, 18 void bnxt_tx_int_xdp(struct bnxt *bp, struct bnxt_napi *bnapi, int nr_pkts); 19 bool bnxt_rx_xdp(struct bnxt *bp, struct bnxt_rx_ring_info *rxr, u16 cons,
|
D | bnxt_ethtool.h | 52 int bnxt_hwrm_nvm_get_dev_info(struct bnxt *bp, 56 void bnxt_ethtool_init(struct bnxt *bp); 57 void bnxt_ethtool_free(struct bnxt *bp);
|
D | bnxt_dcb.h | 52 void bnxt_dcb_init(struct bnxt *bp); 53 void bnxt_dcb_free(struct bnxt *bp);
|
D | bnxt_debugfs.c | 73 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()
|