Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_common.h181 struct otx2_nic *pfvf;
288 struct otx2_nic *pf;
299 struct otx2_nic *pf;
304 struct otx2_nic *pf;
318 struct otx2_nic *nic;
442 struct otx2_nic { struct
579 static inline void otx2_setup_dev_hw_settings(struct otx2_nic *pfvf) in otx2_setup_dev_hw_settings()
617 static inline void __iomem *otx2_get_regaddr(struct otx2_nic *nic, u64 offset) in otx2_get_regaddr()
639 static inline void otx2_write64(struct otx2_nic *nic, u64 offset, u64 val) in otx2_write64()
646 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);
Dqos.c26 static void otx2_qos_update_tx_netdev_queues(struct otx2_nic *pfvf) in otx2_qos_update_tx_netdev_queues()
71 static int otx2_qos_quantum_to_dwrr_weight(struct otx2_nic *pfvf, u32 quantum) in otx2_qos_quantum_to_dwrr_weight()
82 static void otx2_config_sched_shaping(struct otx2_nic *pfvf, in otx2_config_sched_shaping()
136 static void __otx2_qos_txschq_cfg(struct otx2_nic *pfvf, in __otx2_qos_txschq_cfg()
192 static int otx2_qos_txschq_set_parent_topology(struct otx2_nic *pfvf, in otx2_qos_txschq_set_parent_topology()
233 static void otx2_qos_free_hw_node_schq(struct otx2_nic *pfvf, in otx2_qos_free_hw_node_schq()
242 static void otx2_qos_free_hw_node(struct otx2_nic *pfvf, in otx2_qos_free_hw_node()
254 static void otx2_qos_free_hw_cfg(struct otx2_nic *pfvf, in otx2_qos_free_hw_cfg()
269 static void otx2_qos_sw_node_delete(struct otx2_nic *pfvf, in otx2_qos_sw_node_delete()
283 static void otx2_qos_free_sw_node_schq(struct otx2_nic *pfvf, in otx2_qos_free_sw_node_schq()
[all …]
Dotx2_devlink.c15 struct otx2_nic *pfvf = otx2_dl->pfvf; in otx2_dl_mcam_count_validate()
39 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()
72 struct otx2_nic *pfvf = otx2_dl->pfvf; in otx2_dl_ucast_flt_cnt_set()
89 struct otx2_nic *pfvf = otx2_dl->pfvf; in otx2_dl_ucast_flt_cnt_get()
101 struct otx2_nic *pfvf = otx2_dl->pfvf; in otx2_dl_ucast_flt_cnt_validate()
147 int otx2_register_dl(struct otx2_nic *pfvf) in otx2_register_dl()
182 void otx2_unregister_dl(struct otx2_nic *pfvf) in otx2_unregister_dl()
Dotx2_common.c20 struct otx2_nic *pfvf, int qidx) in otx2_nix_rq_op_stats()
33 struct otx2_nic *pfvf, int qidx) in otx2_nix_sq_op_stats()
45 void otx2_update_lmac_stats(struct otx2_nic *pfvf) in otx2_update_lmac_stats()
63 void otx2_update_lmac_fec_stats(struct otx2_nic *pfvf) in otx2_update_lmac_fec_stats()
76 int otx2_update_rq_stats(struct otx2_nic *pfvf, int qidx) in otx2_update_rq_stats()
87 int otx2_update_sq_stats(struct otx2_nic *pfvf, int qidx) in otx2_update_sq_stats()
103 void otx2_get_dev_stats(struct otx2_nic *pfvf) in otx2_get_dev_stats()
129 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_stats64()
147 static int otx2_hw_set_mac_addr(struct otx2_nic *pfvf, u8 *mac) in otx2_hw_set_mac_addr()
166 static int otx2_hw_get_mac_addr(struct otx2_nic *pfvf, in otx2_hw_get_mac_addr()
[all …]
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()
112 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_strings()
150 static void otx2_get_qset_stats(struct otx2_nic *pfvf, in otx2_get_qset_stats()
180 static int otx2_get_phy_fec_stats(struct otx2_nic *pfvf) in otx2_get_phy_fec_stats()
201 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_ethtool_stats()
256 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_sset_count()
276 struct otx2_nic *pfvf = netdev_priv(dev); in otx2_get_channels()
289 struct otx2_nic *pfvf = netdev_priv(dev); in otx2_set_channels()
[all …]
Dotx2_pf.c51 static int otx2_config_hw_tx_tstamp(struct otx2_nic *pfvf, bool enable);
52 static int otx2_config_hw_rx_tstamp(struct otx2_nic *pfvf, bool enable);
56 struct otx2_nic *pf = netdev_priv(netdev); in otx2_change_mtu()
78 static void otx2_disable_flr_me_intr(struct otx2_nic *pf) in otx2_disable_flr_me_intr()
104 static void otx2_flr_wq_destroy(struct otx2_nic *pf) in otx2_flr_wq_destroy()
116 struct otx2_nic *pf = flrwork->pf; in otx2_flr_handler()
147 struct otx2_nic *pf = (struct otx2_nic *)pf_irq; in otx2_pf_flr_intr_handler()
176 struct otx2_nic *pf = (struct otx2_nic *)pf_irq; in otx2_pf_me_intr_handler()
199 static int otx2_register_flr_me_intr(struct otx2_nic *pf, int numvfs) in otx2_register_flr_me_intr()
272 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);
Dcn10k_macsec.c49 static int cn10k_ecb_aes_encrypt(struct otx2_nic *pfvf, u8 *sak, in cn10k_ecb_aes_encrypt()
141 static int cn10k_mcs_alloc_rsrc(struct otx2_nic *pfvf, enum mcs_direction dir, in cn10k_mcs_alloc_rsrc()
199 static void cn10k_mcs_free_rsrc(struct otx2_nic *pfvf, enum mcs_direction dir, in cn10k_mcs_free_rsrc()
239 static int cn10k_mcs_alloc_txsa(struct otx2_nic *pfvf, u16 *hw_sa_id) in cn10k_mcs_alloc_txsa()
244 static int cn10k_mcs_alloc_rxsa(struct otx2_nic *pfvf, u16 *hw_sa_id) in cn10k_mcs_alloc_rxsa()
249 static void cn10k_mcs_free_txsa(struct otx2_nic *pfvf, u16 hw_sa_id) in cn10k_mcs_free_txsa()
254 static void cn10k_mcs_free_rxsa(struct otx2_nic *pfvf, u16 hw_sa_id) in cn10k_mcs_free_rxsa()
259 static int cn10k_mcs_write_rx_secy(struct otx2_nic *pfvf, in cn10k_mcs_write_rx_secy()
311 static int cn10k_mcs_write_rx_flowid(struct otx2_nic *pfvf, in cn10k_mcs_write_rx_flowid()
357 static int cn10k_mcs_write_sc_cam(struct otx2_nic *pfvf, in cn10k_mcs_write_sc_cam()
[all …]
Dqos.h23 u64 otx2_get_txschq_rate_regval(struct otx2_nic *nic, u64 maxrate, u32 burst);
26 int otx2_qos_get_qid(struct otx2_nic *pfvf);
27 void otx2_qos_free_qid(struct otx2_nic *pfvf, int qidx);
28 int otx2_qos_enable_sq(struct otx2_nic *pfvf, int qidx);
29 void otx2_qos_disable_sq(struct otx2_nic *pfvf, int qidx);
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()
59 static int otx2_pfc_txschq_alloc_one(struct otx2_nic *pfvf, u8 prio) in otx2_pfc_txschq_alloc_one()
104 int otx2_pfc_txschq_alloc(struct otx2_nic *pfvf) in otx2_pfc_txschq_alloc()
128 static int otx2_pfc_txschq_stop_one(struct otx2_nic *pfvf, u8 prio) in otx2_pfc_txschq_stop_one()
141 static int otx2_pfc_update_sq_smq_mapping(struct otx2_nic *pfvf, int prio) in otx2_pfc_update_sq_smq_mapping()
199 int otx2_pfc_txschq_update(struct otx2_nic *pfvf) in otx2_pfc_txschq_update()
267 int otx2_pfc_txschq_stop(struct otx2_nic *pfvf) in otx2_pfc_txschq_stop()
290 int otx2_config_priority_flow_ctrl(struct otx2_nic *pfvf) in otx2_config_priority_flow_ctrl()
330 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()
184 struct otx2_nic *vf = (struct otx2_nic *)vf_irq; in otx2vf_vfaf_mbox_intr_handler()
235 static void otx2vf_disable_mbox_intr(struct otx2_nic *vf) in otx2vf_disable_mbox_intr()
244 static int otx2vf_register_mbox_intr(struct otx2_nic *vf, bool probe_pf) in otx2vf_register_mbox_intr()
288 static void otx2vf_vfaf_mbox_destroy(struct otx2_nic *vf) in otx2vf_vfaf_mbox_destroy()
304 static int otx2vf_vfaf_mbox_init(struct otx2_nic *vf) in otx2vf_vfaf_mbox_init()
365 struct otx2_nic *vf; in otx2vf_open()
390 struct otx2_nic *vf = netdev_priv(netdev); in otx2vf_xmit()
[all …]
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()
141 struct otx2_nic *pfvf = dev; in cn10k_sqe_flush()
163 int cn10k_free_all_ipolicers(struct otx2_nic *pfvf) in cn10k_free_all_ipolicers()
188 int cn10k_alloc_leaf_profile(struct otx2_nic *pfvf, u16 *leaf) in cn10k_alloc_leaf_profile()
221 int cn10k_alloc_matchall_ipolicer(struct otx2_nic *pfvf) in cn10k_alloc_matchall_ipolicer()
301 int cn10k_map_unmap_rq_policer(struct otx2_nic *pfvf, int rq_idx, in cn10k_map_unmap_rq_policer()
328 int cn10k_free_leaf_profile(struct otx2_nic *pfvf, u16 leaf) in cn10k_free_leaf_profile()
342 int cn10k_free_matchall_ipolicer(struct otx2_nic *pfvf) in cn10k_free_matchall_ipolicer()
[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);
Dotx2_txrx.c29 static bool otx2_xdp_rcv_pkt_handler(struct otx2_nic *pfvf,
35 static int otx2_nix_cq_op_status(struct otx2_nic *pfvf, in otx2_nix_cq_op_status()
83 static dma_addr_t otx2_dma_map_skb_frag(struct otx2_nic *pfvf, in otx2_dma_map_skb_frag()
104 static void otx2_dma_unmap_skb_frags(struct otx2_nic *pfvf, struct sg_list *sg) in otx2_dma_unmap_skb_frags()
115 static void otx2_xdp_snd_pkt_handler(struct otx2_nic *pfvf, in otx2_xdp_snd_pkt_handler()
133 static void otx2_snd_pkt_handler(struct otx2_nic *pfvf, in otx2_snd_pkt_handler()
176 static void otx2_set_rxtstamp(struct otx2_nic *pfvf, in otx2_set_rxtstamp()
194 static bool otx2_skb_add_frag(struct otx2_nic *pfvf, struct sk_buff *skb, in otx2_skb_add_frag()
232 static void otx2_set_rxhash(struct otx2_nic *pfvf, in otx2_set_rxhash()
254 static void otx2_free_rcv_seg(struct otx2_nic *pfvf, struct nix_cqe_rx_s *cqe, in otx2_free_rcv_seg()
[all …]
Dqos_sq.c19 static void otx2_qos_aura_pool_free(struct otx2_nic *pfvf, int pool_id) in otx2_qos_aura_pool_free()
33 static int otx2_qos_sq_aura_pool_init(struct otx2_nic *pfvf, int qidx) in otx2_qos_sq_aura_pool_init()
116 static void otx2_qos_sq_free_sqbs(struct otx2_nic *pfvf, int qidx) in otx2_qos_sq_free_sqbs()
151 static void otx2_qos_sqb_flush(struct otx2_nic *pfvf, int qidx) in otx2_qos_sqb_flush()
165 static int otx2_qos_ctx_disable(struct otx2_nic *pfvf, u16 qidx, int aura_id) in otx2_qos_ctx_disable()
220 int otx2_qos_get_qid(struct otx2_nic *pfvf) in otx2_qos_get_qid()
230 void otx2_qos_free_qid(struct otx2_nic *pfvf, int qidx) in otx2_qos_free_qid()
235 int otx2_qos_enable_sq(struct otx2_nic *pfvf, int qidx) in otx2_qos_enable_sq()
259 void otx2_qos_disable_sq(struct otx2_nic *pfvf, int qidx) in otx2_qos_disable_sq()
Dotx2_tc.c58 static void otx2_get_egress_burst_cfg(struct otx2_nic *nic, u32 burst, in otx2_get_egress_burst_cfg()
122 u64 otx2_get_txschq_rate_regval(struct otx2_nic *nic, in otx2_get_txschq_rate_regval()
150 static int otx2_set_matchall_egress_rate(struct otx2_nic *nic, in otx2_set_matchall_egress_rate()
177 static int otx2_tc_validate_flow(struct otx2_nic *nic, in otx2_tc_validate_flow()
233 static int otx2_tc_egress_matchall_install(struct otx2_nic *nic, in otx2_tc_egress_matchall_install()
277 static int otx2_tc_egress_matchall_delete(struct otx2_nic *nic, in otx2_tc_egress_matchall_delete()
293 static int otx2_tc_act_set_hw_police(struct otx2_nic *nic, in otx2_tc_act_set_hw_police()
328 static int otx2_tc_act_set_police(struct otx2_nic *nic, in otx2_tc_act_set_police()
361 static int otx2_tc_update_mcast(struct otx2_nic *nic, in otx2_tc_update_mcast()
434 static int otx2_tc_parse_actions(struct otx2_nic *nic, in otx2_tc_parse_actions()
[all …]
Dotx2_flows.c33 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 int otx2_mcam_entry_init(struct otx2_nic *pfvf) in otx2_mcam_entry_init()
261 int otx2vf_mcam_flow_init(struct otx2_nic *pfvf) in otx2vf_mcam_flow_init()
286 int otx2_mcam_flow_init(struct otx2_nic *pf) in otx2_mcam_flow_init()
341 void otx2_mcam_flow_del(struct otx2_nic *pf) in otx2_mcam_flow_del()
350 static int otx2_do_add_macfilter(struct otx2_nic *pf, const u8 *mac) in otx2_do_add_macfilter()
398 struct otx2_nic *pf = netdev_priv(netdev); in otx2_add_macfilter()
409 static bool otx2_get_mcamentry_for_mac(struct otx2_nic *pf, const u8 *mac, in otx2_get_mcamentry_for_mac()
[all …]
Dotx2_ptp.c51 struct otx2_nic *pfvf = ptp->nic; in otx2_ptp_hw_adjtime()
117 struct otx2_nic *pfvf = ptp->nic; in otx2_ptp_hw_settime()
234 struct otx2_nic *pfvf = ptp->nic; in otx2_ptp_tc_adjtime()
326 struct otx2_nic *pfvf = ptp->nic; in otx2_sync_tstamp()
382 int otx2_ptp_init(struct otx2_nic *pfvf) in otx2_ptp_init()
487 void otx2_ptp_destroy(struct otx2_nic *pfvf) in otx2_ptp_destroy()
502 int otx2_ptp_clock_index(struct otx2_nic *pfvf) in otx2_ptp_clock_index()
511 int otx2_ptp_tstamp2time(struct otx2_nic *pfvf, u64 tstamp, u64 *tsns) in otx2_ptp_tstamp2time()