/Linux-v5.15/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_common.h | 162 struct otx2_nic *pfvf; 240 struct otx2_nic *pf; 251 struct otx2_nic *pf; 256 struct otx2_nic *pf; 262 struct otx2_nic *nic; 315 struct otx2_nic { struct 427 static inline void otx2_setup_dev_hw_settings(struct otx2_nic *pfvf) in otx2_setup_dev_hw_settings() 459 static inline void __iomem *otx2_get_regaddr(struct otx2_nic *nic, u64 offset) in otx2_get_regaddr() 481 static inline void otx2_write64(struct otx2_nic *nic, u64 offset, u64 val) in otx2_write64() 488 static inline u64 otx2_read64(struct otx2_nic *nic, u64 offset) in otx2_read64() [all …]
|
D | cn10k.h | 13 static inline int mtu_to_dwrr_weight(struct otx2_nic *pfvf, int mtu) in mtu_to_dwrr_weight() 30 int cn10k_lmtst_init(struct otx2_nic *pfvf); 31 int cn10k_free_all_ipolicers(struct otx2_nic *pfvf); 32 int cn10k_alloc_matchall_ipolicer(struct otx2_nic *pfvf); 33 int cn10k_free_matchall_ipolicer(struct otx2_nic *pfvf); 34 int cn10k_set_matchall_ipolicer_rate(struct otx2_nic *pfvf, 36 int cn10k_map_unmap_rq_policer(struct otx2_nic *pfvf, int rq_idx, 38 int cn10k_alloc_leaf_profile(struct otx2_nic *pfvf, u16 *leaf); 39 int cn10k_set_ipolicer_rate(struct otx2_nic *pfvf, u16 profile, 41 int cn10k_free_leaf_profile(struct otx2_nic *pfvf, u16 leaf);
|
D | otx2_ethtool.c | 72 static struct cgx_fw_data *otx2_get_fwdata(struct otx2_nic *pfvf); 77 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_drvinfo() 83 static void otx2_get_qset_strings(struct otx2_nic *pfvf, u8 **data, int qset) in otx2_get_qset_strings() 106 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_strings() 142 static void otx2_get_qset_stats(struct otx2_nic *pfvf, in otx2_get_qset_stats() 172 static int otx2_get_phy_fec_stats(struct otx2_nic *pfvf) in otx2_get_phy_fec_stats() 193 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_ethtool_stats() 244 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_sset_count() 263 struct otx2_nic *pfvf = netdev_priv(dev); in otx2_get_channels() 276 struct otx2_nic *pfvf = netdev_priv(dev); in otx2_set_channels() [all …]
|
D | otx2_common.c | 18 struct otx2_nic *pfvf, int qidx) in otx2_nix_rq_op_stats() 31 struct otx2_nic *pfvf, int qidx) in otx2_nix_sq_op_stats() 43 void otx2_update_lmac_stats(struct otx2_nic *pfvf) in otx2_update_lmac_stats() 61 void otx2_update_lmac_fec_stats(struct otx2_nic *pfvf) in otx2_update_lmac_fec_stats() 74 int otx2_update_rq_stats(struct otx2_nic *pfvf, int qidx) in otx2_update_rq_stats() 85 int otx2_update_sq_stats(struct otx2_nic *pfvf, int qidx) in otx2_update_sq_stats() 96 void otx2_get_dev_stats(struct otx2_nic *pfvf) in otx2_get_dev_stats() 127 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_stats64() 145 static int otx2_hw_set_mac_addr(struct otx2_nic *pfvf, u8 *mac) in otx2_hw_set_mac_addr() 164 static int otx2_hw_get_mac_addr(struct otx2_nic *pfvf, in otx2_hw_get_mac_addr() [all …]
|
D | otx2_ptp.h | 11 int otx2_ptp_init(struct otx2_nic *pfvf); 12 void otx2_ptp_destroy(struct otx2_nic *pfvf); 14 int otx2_ptp_clock_index(struct otx2_nic *pfvf); 15 int otx2_ptp_tstamp2time(struct otx2_nic *pfvf, u64 tstamp, u64 *tsns);
|
D | otx2_dmac_flt.c | 10 static int otx2_dmacflt_do_add(struct otx2_nic *pf, const u8 *mac, in otx2_dmacflt_do_add() 38 static int otx2_dmacflt_add_pfmac(struct otx2_nic *pf) in otx2_dmacflt_add_pfmac() 58 int otx2_dmacflt_add(struct otx2_nic *pf, const u8 *mac, u8 bit_pos) in otx2_dmacflt_add() 73 static int otx2_dmacflt_do_remove(struct otx2_nic *pfvf, const u8 *mac, in otx2_dmacflt_do_remove() 94 static int otx2_dmacflt_remove_pfmac(struct otx2_nic *pf) in otx2_dmacflt_remove_pfmac() 112 int otx2_dmacflt_remove(struct otx2_nic *pf, const u8 *mac, in otx2_dmacflt_remove() 127 int otx2_dmacflt_get_max_cnt(struct otx2_nic *pf) in otx2_dmacflt_get_max_cnt() 154 int otx2_dmacflt_update(struct otx2_nic *pf, u8 *mac, u8 bit_pos) in otx2_dmacflt_update()
|
D | otx2_pf.c | 46 static int otx2_config_hw_tx_tstamp(struct otx2_nic *pfvf, bool enable); 47 static int otx2_config_hw_rx_tstamp(struct otx2_nic *pfvf, bool enable); 67 static void otx2_disable_flr_me_intr(struct otx2_nic *pf) in otx2_disable_flr_me_intr() 93 static void otx2_flr_wq_destroy(struct otx2_nic *pf) in otx2_flr_wq_destroy() 105 struct otx2_nic *pf = flrwork->pf; in otx2_flr_handler() 136 struct otx2_nic *pf = (struct otx2_nic *)pf_irq; in otx2_pf_flr_intr_handler() 165 struct otx2_nic *pf = (struct otx2_nic *)pf_irq; in otx2_pf_me_intr_handler() 188 static int otx2_register_flr_me_intr(struct otx2_nic *pf, int numvfs) in otx2_register_flr_me_intr() 261 static int otx2_pf_flr_init(struct otx2_nic *pf, int num_vfs) in otx2_pf_flr_init() 356 static int otx2_forward_vf_mbox_msgs(struct otx2_nic *pf, in otx2_forward_vf_mbox_msgs() [all …]
|
D | otx2_vf.c | 35 static void otx2vf_process_vfaf_mbox_msg(struct otx2_nic *vf, in otx2vf_process_vfaf_mbox_msg() 113 static int otx2vf_process_mbox_msg_up(struct otx2_nic *vf, in otx2vf_process_mbox_msg_up() 154 struct otx2_nic *vf; in otx2vf_vfaf_mbox_up_handler() 179 struct otx2_nic *vf = (struct otx2_nic *)vf_irq; in otx2vf_vfaf_mbox_intr_handler() 222 static void otx2vf_disable_mbox_intr(struct otx2_nic *vf) in otx2vf_disable_mbox_intr() 231 static int otx2vf_register_mbox_intr(struct otx2_nic *vf, bool probe_pf) in otx2vf_register_mbox_intr() 275 static void otx2vf_vfaf_mbox_destroy(struct otx2_nic *vf) in otx2vf_vfaf_mbox_destroy() 292 static int otx2vf_vfaf_mbox_init(struct otx2_nic *vf) in otx2vf_vfaf_mbox_init() 354 struct otx2_nic *vf; in otx2vf_open() 379 struct otx2_nic *vf = netdev_priv(netdev); in otx2vf_xmit() [all …]
|
D | otx2_devlink.c | 15 struct otx2_nic *pfvf = otx2_dl->pfvf; in otx2_dl_mcam_count_validate() 38 struct otx2_nic *pfvf = otx2_dl->pfvf; in otx2_dl_mcam_count_set() 53 struct otx2_nic *pfvf = otx2_dl->pfvf; in otx2_dl_mcam_count_get() 86 struct otx2_nic *pfvf = otx2_dl->pfvf; in otx2_devlink_info_get() 98 int otx2_register_dl(struct otx2_nic *pfvf) in otx2_register_dl() 141 void otx2_unregister_dl(struct otx2_nic *pfvf) in otx2_unregister_dl()
|
D | otx2_ptp.c | 62 struct otx2_nic *pfvf = ptp->nic; in otx2_ptp_adjtime() 76 struct otx2_nic *pfvf = ptp->nic; in otx2_ptp_gettime() 93 struct otx2_nic *pfvf = ptp->nic; in otx2_ptp_settime() 111 int otx2_ptp_init(struct otx2_nic *pfvf) in otx2_ptp_init() 180 void otx2_ptp_destroy(struct otx2_nic *pfvf) in otx2_ptp_destroy() 192 int otx2_ptp_clock_index(struct otx2_nic *pfvf) in otx2_ptp_clock_index() 200 int otx2_ptp_tstamp2time(struct otx2_nic *pfvf, u64 tstamp, u64 *tsns) in otx2_ptp_tstamp2time()
|
D | otx2_devlink.h | 13 struct otx2_nic *pfvf; 17 int otx2_register_dl(struct otx2_nic *pfvf); 18 void otx2_unregister_dl(struct otx2_nic *pfvf);
|
D | otx2_txrx.c | 44 static dma_addr_t otx2_dma_map_skb_frag(struct otx2_nic *pfvf, in otx2_dma_map_skb_frag() 65 static void otx2_dma_unmap_skb_frags(struct otx2_nic *pfvf, struct sg_list *sg) in otx2_dma_unmap_skb_frags() 76 static void otx2_snd_pkt_handler(struct otx2_nic *pfvf, in otx2_snd_pkt_handler() 118 static void otx2_set_rxtstamp(struct otx2_nic *pfvf, in otx2_set_rxtstamp() 135 static void otx2_skb_add_frag(struct otx2_nic *pfvf, struct sk_buff *skb, in otx2_skb_add_frag() 164 static void otx2_set_rxhash(struct otx2_nic *pfvf, in otx2_set_rxhash() 186 static void otx2_free_rcv_seg(struct otx2_nic *pfvf, struct nix_cqe_rx_s *cqe, in otx2_free_rcv_seg() 206 static bool otx2_check_rcv_errors(struct otx2_nic *pfvf, in otx2_check_rcv_errors() 270 static void otx2_rcv_pkt_handler(struct otx2_nic *pfvf, in otx2_rcv_pkt_handler() 314 static int otx2_rx_napi_handler(struct otx2_nic *pfvf, in otx2_rx_napi_handler() [all …]
|
D | cn10k.c | 26 int cn10k_lmtst_init(struct otx2_nic *pfvf) in cn10k_lmtst_init() 78 struct otx2_nic *pfvf = dev; in cn10k_sq_aq_init() 113 struct otx2_nic *pfvf = dev; in cn10k_refill_pool_ptrs() 140 struct otx2_nic *pfvf = dev; in cn10k_sqe_flush() 162 int cn10k_free_all_ipolicers(struct otx2_nic *pfvf) in cn10k_free_all_ipolicers() 187 int cn10k_alloc_leaf_profile(struct otx2_nic *pfvf, u16 *leaf) in cn10k_alloc_leaf_profile() 220 int cn10k_alloc_matchall_ipolicer(struct otx2_nic *pfvf) in cn10k_alloc_matchall_ipolicer() 300 int cn10k_map_unmap_rq_policer(struct otx2_nic *pfvf, int rq_idx, in cn10k_map_unmap_rq_policer() 327 int cn10k_free_leaf_profile(struct otx2_nic *pfvf, u16 leaf) in cn10k_free_leaf_profile() 341 int cn10k_free_matchall_ipolicer(struct otx2_nic *pfvf) in cn10k_free_matchall_ipolicer() [all …]
|
D | otx2_tc.c | 57 int otx2_tc_alloc_ent_bitmap(struct otx2_nic *nic) in otx2_tc_alloc_ent_bitmap() 135 static int otx2_set_matchall_egress_rate(struct otx2_nic *nic, u32 burst, u32 maxrate) in otx2_set_matchall_egress_rate() 171 static int otx2_tc_validate_flow(struct otx2_nic *nic, in otx2_tc_validate_flow() 193 static int otx2_tc_egress_matchall_install(struct otx2_nic *nic, in otx2_tc_egress_matchall_install() 236 static int otx2_tc_egress_matchall_delete(struct otx2_nic *nic, in otx2_tc_egress_matchall_delete() 252 static int otx2_tc_act_set_police(struct otx2_nic *nic, in otx2_tc_act_set_police() 304 static int otx2_tc_parse_actions(struct otx2_nic *nic, in otx2_tc_parse_actions() 313 struct otx2_nic *priv; in otx2_tc_parse_actions() 394 static int otx2_tc_prepare_flow(struct otx2_nic *nic, struct otx2_tc_flow *node, in otx2_tc_prepare_flow() 594 static int otx2_del_mcam_flow_entry(struct otx2_nic *nic, u16 entry) in otx2_del_mcam_flow_entry() [all …]
|
D | otx2_flows.c | 15 static int otx2_mcam_entry_init(struct otx2_nic *pfvf); 33 static void otx2_clear_ntuple_flow_info(struct otx2_nic *pfvf, struct otx2_flow_config *flow_cfg) in otx2_clear_ntuple_flow_info() 40 static int otx2_free_ntuple_mcam_entries(struct otx2_nic *pfvf) in otx2_free_ntuple_mcam_entries() 72 int otx2_alloc_mcam_entries(struct otx2_nic *pfvf, u16 count) in otx2_alloc_mcam_entries() 162 static int otx2_mcam_entry_init(struct otx2_nic *pfvf) in otx2_mcam_entry_init() 233 int otx2vf_mcam_flow_init(struct otx2_nic *pfvf) in otx2vf_mcam_flow_init() 251 int otx2_mcam_flow_init(struct otx2_nic *pf) in otx2_mcam_flow_init() 297 void otx2_mcam_flow_del(struct otx2_nic *pf) in otx2_mcam_flow_del() 306 static int otx2_do_add_macfilter(struct otx2_nic *pf, const u8 *mac) in otx2_do_add_macfilter() 354 struct otx2_nic *pf = netdev_priv(netdev); in otx2_add_macfilter() [all …]
|