Home
last modified time | relevance | path

Searched refs:otx2_nic (Results 1 – 17 of 17) sorted by relevance

/linux-6.1.9/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_common.h176 struct otx2_nic *pfvf;
264 struct otx2_nic *pf;
275 struct otx2_nic *pf;
280 struct otx2_nic *pf;
293 struct otx2_nic *nic;
417 struct otx2_nic { struct
552 static inline void otx2_setup_dev_hw_settings(struct otx2_nic *pfvf) in otx2_setup_dev_hw_settings()
589 static inline void __iomem *otx2_get_regaddr(struct otx2_nic *nic, u64 offset) in otx2_get_regaddr()
611 static inline void otx2_write64(struct otx2_nic *nic, u64 offset, u64 val) in otx2_write64()
618 static inline u64 otx2_read64(struct otx2_nic *nic, u64 offset) in otx2_read64()
[all …]
Dcn10k.h13 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);
Dotx2_common.c18 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()
122 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_stats64()
140 static int otx2_hw_set_mac_addr(struct otx2_nic *pfvf, u8 *mac) in otx2_hw_set_mac_addr()
159 static int otx2_hw_get_mac_addr(struct otx2_nic *pfvf, in otx2_hw_get_mac_addr()
[all …]
Dotx2_pf.c49 static int otx2_config_hw_tx_tstamp(struct otx2_nic *pfvf, bool enable);
50 static int otx2_config_hw_rx_tstamp(struct otx2_nic *pfvf, bool enable);
54 struct otx2_nic *pf = netdev_priv(netdev); in otx2_change_mtu()
76 static void otx2_disable_flr_me_intr(struct otx2_nic *pf) in otx2_disable_flr_me_intr()
102 static void otx2_flr_wq_destroy(struct otx2_nic *pf) in otx2_flr_wq_destroy()
114 struct otx2_nic *pf = flrwork->pf; in otx2_flr_handler()
145 struct otx2_nic *pf = (struct otx2_nic *)pf_irq; in otx2_pf_flr_intr_handler()
174 struct otx2_nic *pf = (struct otx2_nic *)pf_irq; in otx2_pf_me_intr_handler()
197 static int otx2_register_flr_me_intr(struct otx2_nic *pf, int numvfs) in otx2_register_flr_me_intr()
270 static int otx2_pf_flr_init(struct otx2_nic *pf, int num_vfs) in otx2_pf_flr_init()
[all …]
Dotx2_ptp.h26 int otx2_ptp_init(struct otx2_nic *pfvf);
27 void otx2_ptp_destroy(struct otx2_nic *pfvf);
29 int otx2_ptp_clock_index(struct otx2_nic *pfvf);
30 int otx2_ptp_tstamp2time(struct otx2_nic *pfvf, u64 tstamp, u64 *tsns);
Dotx2_ethtool.c72 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()
144 static void otx2_get_qset_stats(struct otx2_nic *pfvf, in otx2_get_qset_stats()
174 static int otx2_get_phy_fec_stats(struct otx2_nic *pfvf) in otx2_get_phy_fec_stats()
195 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_ethtool_stats()
250 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_sset_count()
270 struct otx2_nic *pfvf = netdev_priv(dev); in otx2_get_channels()
283 struct otx2_nic *pfvf = netdev_priv(dev); in otx2_set_channels()
[all …]
Dcn10k_macsec.c90 static int cn10k_mcs_alloc_rsrc(struct otx2_nic *pfvf, enum mcs_direction dir, in cn10k_mcs_alloc_rsrc()
148 static void cn10k_mcs_free_rsrc(struct otx2_nic *pfvf, enum mcs_direction dir, in cn10k_mcs_free_rsrc()
179 static int cn10k_mcs_alloc_txsa(struct otx2_nic *pfvf, u16 *hw_sa_id) in cn10k_mcs_alloc_txsa()
184 static int cn10k_mcs_alloc_rxsa(struct otx2_nic *pfvf, u16 *hw_sa_id) in cn10k_mcs_alloc_rxsa()
189 static void cn10k_mcs_free_txsa(struct otx2_nic *pfvf, u16 hw_sa_id) in cn10k_mcs_free_txsa()
194 static void cn10k_mcs_free_rxsa(struct otx2_nic *pfvf, u16 hw_sa_id) in cn10k_mcs_free_rxsa()
199 static int cn10k_mcs_write_rx_secy(struct otx2_nic *pfvf, in cn10k_mcs_write_rx_secy()
236 static int cn10k_mcs_write_rx_flowid(struct otx2_nic *pfvf, in cn10k_mcs_write_rx_flowid()
275 static int cn10k_mcs_write_sc_cam(struct otx2_nic *pfvf, in cn10k_mcs_write_sc_cam()
302 static int cn10k_mcs_write_rx_sa_plcy(struct otx2_nic *pfvf, in cn10k_mcs_write_rx_sa_plcy()
[all …]
Dotx2_devlink.c15 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()
132 void otx2_unregister_dl(struct otx2_nic *pfvf) in otx2_unregister_dl()
Dotx2_dmac_flt.c10 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, u32 *dmac_index) in otx2_dmacflt_add_pfmac()
74 int otx2_dmacflt_add(struct otx2_nic *pf, const u8 *mac, u32 bit_pos) in otx2_dmacflt_add()
89 static int otx2_dmacflt_do_remove(struct otx2_nic *pfvf, const u8 *mac, in otx2_dmacflt_do_remove()
110 static int otx2_dmacflt_remove_pfmac(struct otx2_nic *pf, u32 dmac_index) in otx2_dmacflt_remove_pfmac()
129 int otx2_dmacflt_remove(struct otx2_nic *pf, const u8 *mac, in otx2_dmacflt_remove()
144 int otx2_dmacflt_get_max_cnt(struct otx2_nic *pf) in otx2_dmacflt_get_max_cnt()
177 int otx2_dmacflt_update(struct otx2_nic *pf, u8 *mac, u32 bit_pos) in otx2_dmacflt_update()
Dotx2_dcbnl.c10 static int otx2_check_pfc_config(struct otx2_nic *pfvf) in otx2_check_pfc_config()
28 int otx2_pfc_txschq_config(struct otx2_nic *pfvf) in otx2_pfc_txschq_config()
58 static int otx2_pfc_txschq_alloc_one(struct otx2_nic *pfvf, u8 prio) in otx2_pfc_txschq_alloc_one()
103 int otx2_pfc_txschq_alloc(struct otx2_nic *pfvf) in otx2_pfc_txschq_alloc()
126 static int otx2_pfc_txschq_stop_one(struct otx2_nic *pfvf, u8 prio) in otx2_pfc_txschq_stop_one()
146 static int otx2_pfc_update_sq_smq_mapping(struct otx2_nic *pfvf, int prio) in otx2_pfc_update_sq_smq_mapping()
204 int otx2_pfc_txschq_update(struct otx2_nic *pfvf) in otx2_pfc_txschq_update()
271 int otx2_pfc_txschq_stop(struct otx2_nic *pfvf) in otx2_pfc_txschq_stop()
293 int otx2_config_priority_flow_ctrl(struct otx2_nic *pfvf) in otx2_config_priority_flow_ctrl()
332 void otx2_update_bpid_in_rqctx(struct otx2_nic *pfvf, int vlan_prio, int qidx, in otx2_update_bpid_in_rqctx()
[all …]
Dotx2_vf.c37 static void otx2vf_process_vfaf_mbox_msg(struct otx2_nic *vf, in otx2vf_process_vfaf_mbox_msg()
115 static int otx2vf_process_mbox_msg_up(struct otx2_nic *vf, in otx2vf_process_mbox_msg_up()
156 struct otx2_nic *vf; in otx2vf_vfaf_mbox_up_handler()
181 struct otx2_nic *vf = (struct otx2_nic *)vf_irq; in otx2vf_vfaf_mbox_intr_handler()
224 static void otx2vf_disable_mbox_intr(struct otx2_nic *vf) in otx2vf_disable_mbox_intr()
233 static int otx2vf_register_mbox_intr(struct otx2_nic *vf, bool probe_pf) in otx2vf_register_mbox_intr()
277 static void otx2vf_vfaf_mbox_destroy(struct otx2_nic *vf) in otx2vf_vfaf_mbox_destroy()
293 static int otx2vf_vfaf_mbox_init(struct otx2_nic *vf) in otx2vf_vfaf_mbox_init()
355 struct otx2_nic *vf; in otx2vf_open()
380 struct otx2_nic *vf = netdev_priv(netdev); in otx2vf_xmit()
[all …]
Dotx2_devlink.h13 struct otx2_nic *pfvf;
17 int otx2_register_dl(struct otx2_nic *pfvf);
18 void otx2_unregister_dl(struct otx2_nic *pfvf);
Dcn10k.c26 int cn10k_lmtst_init(struct otx2_nic *pfvf) in cn10k_lmtst_init()
78 struct otx2_nic *pfvf = dev; in cn10k_sq_aq_init()
112 struct otx2_nic *pfvf = dev; in cn10k_refill_pool_ptrs()
139 struct otx2_nic *pfvf = dev; in cn10k_sqe_flush()
161 int cn10k_free_all_ipolicers(struct otx2_nic *pfvf) in cn10k_free_all_ipolicers()
186 int cn10k_alloc_leaf_profile(struct otx2_nic *pfvf, u16 *leaf) in cn10k_alloc_leaf_profile()
219 int cn10k_alloc_matchall_ipolicer(struct otx2_nic *pfvf) in cn10k_alloc_matchall_ipolicer()
299 int cn10k_map_unmap_rq_policer(struct otx2_nic *pfvf, int rq_idx, in cn10k_map_unmap_rq_policer()
326 int cn10k_free_leaf_profile(struct otx2_nic *pfvf, u16 leaf) in cn10k_free_leaf_profile()
340 int cn10k_free_matchall_ipolicer(struct otx2_nic *pfvf) in cn10k_free_matchall_ipolicer()
[all …]
Dotx2_txrx.c28 static bool otx2_xdp_rcv_pkt_handler(struct otx2_nic *pfvf,
33 static int otx2_nix_cq_op_status(struct otx2_nic *pfvf, in otx2_nix_cq_op_status()
81 static dma_addr_t otx2_dma_map_skb_frag(struct otx2_nic *pfvf, in otx2_dma_map_skb_frag()
102 static void otx2_dma_unmap_skb_frags(struct otx2_nic *pfvf, struct sg_list *sg) in otx2_dma_unmap_skb_frags()
113 static void otx2_xdp_snd_pkt_handler(struct otx2_nic *pfvf, in otx2_xdp_snd_pkt_handler()
131 static void otx2_snd_pkt_handler(struct otx2_nic *pfvf, in otx2_snd_pkt_handler()
174 static void otx2_set_rxtstamp(struct otx2_nic *pfvf, in otx2_set_rxtstamp()
192 static bool otx2_skb_add_frag(struct otx2_nic *pfvf, struct sk_buff *skb, in otx2_skb_add_frag()
233 static void otx2_set_rxhash(struct otx2_nic *pfvf, in otx2_set_rxhash()
255 static void otx2_free_rcv_seg(struct otx2_nic *pfvf, struct nix_cqe_rx_s *cqe, in otx2_free_rcv_seg()
[all …]
Dotx2_tc.c63 int otx2_tc_alloc_ent_bitmap(struct otx2_nic *nic) in otx2_tc_alloc_ent_bitmap()
86 static void otx2_get_egress_burst_cfg(struct otx2_nic *nic, u32 burst, in otx2_get_egress_burst_cfg()
150 static u64 otx2_get_txschq_rate_regval(struct otx2_nic *nic, in otx2_get_txschq_rate_regval()
178 static int otx2_set_matchall_egress_rate(struct otx2_nic *nic, in otx2_set_matchall_egress_rate()
205 static int otx2_tc_validate_flow(struct otx2_nic *nic, in otx2_tc_validate_flow()
261 static int otx2_tc_egress_matchall_install(struct otx2_nic *nic, in otx2_tc_egress_matchall_install()
308 static int otx2_tc_egress_matchall_delete(struct otx2_nic *nic, in otx2_tc_egress_matchall_delete()
324 static int otx2_tc_act_set_police(struct otx2_nic *nic, in otx2_tc_act_set_police()
376 static int otx2_tc_parse_actions(struct otx2_nic *nic, in otx2_tc_parse_actions()
385 struct otx2_nic *priv; in otx2_tc_parse_actions()
[all …]
Dotx2_flows.c15 static int otx2_mcam_entry_init(struct otx2_nic *pfvf);
35 static void otx2_clear_ntuple_flow_info(struct otx2_nic *pfvf, struct otx2_flow_config *flow_cfg) in otx2_clear_ntuple_flow_info()
42 static int otx2_free_ntuple_mcam_entries(struct otx2_nic *pfvf) in otx2_free_ntuple_mcam_entries()
74 int otx2_alloc_mcam_entries(struct otx2_nic *pfvf, u16 count) in otx2_alloc_mcam_entries()
164 static int otx2_mcam_entry_init(struct otx2_nic *pfvf) in otx2_mcam_entry_init()
238 int otx2vf_mcam_flow_init(struct otx2_nic *pfvf) in otx2vf_mcam_flow_init()
262 int otx2_mcam_flow_init(struct otx2_nic *pf) in otx2_mcam_flow_init()
314 void otx2_mcam_flow_del(struct otx2_nic *pf) in otx2_mcam_flow_del()
323 static int otx2_do_add_macfilter(struct otx2_nic *pf, const u8 *mac) in otx2_do_add_macfilter()
371 struct otx2_nic *pf = netdev_priv(netdev); in otx2_add_macfilter()
[all …]
Dotx2_ptp.c129 struct otx2_nic *pfvf = ptp->nic; in otx2_get_ptpclock()
140 struct otx2_nic *pfvf = ptp->nic; in otx2_ptp_adjtime()
167 struct otx2_nic *pfvf = ptp->nic; in otx2_ptp_settime()
225 struct otx2_nic *pfvf = ptp->nic; in otx2_sync_tstamp()
268 int otx2_ptp_init(struct otx2_nic *pfvf) in otx2_ptp_init()
361 void otx2_ptp_destroy(struct otx2_nic *pfvf) in otx2_ptp_destroy()
376 int otx2_ptp_clock_index(struct otx2_nic *pfvf) in otx2_ptp_clock_index()
385 int otx2_ptp_tstamp2time(struct otx2_nic *pfvf, u64 tstamp, u64 *tsns) in otx2_ptp_tstamp2time()