Home
last modified time | relevance | path

Searched refs:otx2_nic (Results 1 - 25 of 28) sorted by relevance

12

/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/octeontx2/nic/
H A 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;
443 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 *ni
[all...]
H A 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 *pfv
[all...]
H A 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 *pfv
[all...]
H A 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 *pfv in otx2_set_channels()
[all...]
H A 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);
H A 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()
193 static int otx2_qos_txschq_set_parent_topology(struct otx2_nic *pfvf, in otx2_qos_txschq_set_parent_topology()
234 static void otx2_qos_free_hw_node_schq(struct otx2_nic *pfvf, in otx2_qos_free_hw_node_schq()
243 static void otx2_qos_free_hw_node(struct otx2_nic *pfvf, in otx2_qos_free_hw_node()
255 static void otx2_qos_free_hw_cfg(struct otx2_nic *pfvf, in otx2_qos_free_hw_cfg()
270 static void otx2_qos_sw_node_delete(struct otx2_nic *pfvf, in otx2_qos_sw_node_delete()
284 static void otx2_qos_free_sw_node_schq(struct otx2_nic *pfv
[all...]
H A 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 *pfv
[all...]
H A 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);
H A 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_ir in otx2_pf_me_intr_handler()
[all...]
H A Dotx2_tc.c53 static void otx2_get_egress_burst_cfg(struct otx2_nic *nic, u32 burst, in otx2_get_egress_burst_cfg()
117 u64 otx2_get_txschq_rate_regval(struct otx2_nic *nic, in otx2_get_txschq_rate_regval()
145 static int otx2_set_matchall_egress_rate(struct otx2_nic *nic, in otx2_set_matchall_egress_rate()
172 static int otx2_tc_validate_flow(struct otx2_nic *nic, in otx2_tc_validate_flow()
228 static int otx2_tc_egress_matchall_install(struct otx2_nic *nic, in otx2_tc_egress_matchall_install()
272 static int otx2_tc_egress_matchall_delete(struct otx2_nic *nic, in otx2_tc_egress_matchall_delete()
288 static int otx2_tc_act_set_hw_police(struct otx2_nic *nic, in otx2_tc_act_set_hw_police()
323 static int otx2_tc_act_set_police(struct otx2_nic *nic, in otx2_tc_act_set_police()
356 static int otx2_tc_parse_actions(struct otx2_nic *nic, in otx2_tc_parse_actions()
365 struct otx2_nic *pri in otx2_tc_parse_actions()
[all...]
H A 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()
H A 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);
H A 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()
139 static int otx2_pfc_update_sq_smq_mapping(struct otx2_nic *pfvf, int prio) in otx2_pfc_update_sq_smq_mapping()
197 int otx2_pfc_txschq_update(struct otx2_nic *pfvf) in otx2_pfc_txschq_update()
264 int otx2_pfc_txschq_stop(struct otx2_nic *pfvf) in otx2_pfc_txschq_stop()
286 int otx2_config_priority_flow_ctrl(struct otx2_nic *pfvf) in otx2_config_priority_flow_ctrl()
325 void otx2_update_bpid_in_rqctx(struct otx2_nic *pfv
[all...]
H A 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()
H A 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()
52 struct otx2_nic *pfvf = otx2_dl->pfvf; in otx2_dl_mcam_count_get()
82 int otx2_register_dl(struct otx2_nic *pfvf) in otx2_register_dl()
116 void otx2_unregister_dl(struct otx2_nic *pfvf) in otx2_unregister_dl()
H A 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 *v in otx2vf_open()
[all...]
H A 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 *pfv
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_common.h148 struct otx2_nic *pfvf;
203 struct otx2_nic *pf;
210 struct otx2_nic *pf;
215 struct otx2_nic *pf;
221 struct otx2_nic *nic;
229 struct otx2_nic { struct
295 static inline void otx2_setup_dev_hw_settings(struct otx2_nic *pfvf) in otx2_setup_dev_hw_settings()
320 static inline void __iomem *otx2_get_regaddr(struct otx2_nic *nic, u64 offset) in otx2_get_regaddr()
342 static inline void otx2_write64(struct otx2_nic *nic, u64 offset, u64 val) in otx2_write64()
349 static inline u64 otx2_read64(struct otx2_nic *ni
[all...]
H A Dotx2_ethtool.c72 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_drvinfo()
78 static void otx2_get_qset_strings(struct otx2_nic *pfvf, u8 **data, int qset) in otx2_get_qset_strings()
101 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_strings()
133 static void otx2_get_qset_stats(struct otx2_nic *pfvf, in otx2_get_qset_stats()
167 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_ethtool_stats()
190 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_sset_count()
207 struct otx2_nic *pfvf = netdev_priv(dev); in otx2_get_channels()
220 struct otx2_nic *pfvf = netdev_priv(dev); in otx2_set_channels()
251 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_pauseparam()
276 struct otx2_nic *pfv in otx2_set_pauseparam()
[all...]
H A Dotx2_ptp.h7 int otx2_ptp_init(struct otx2_nic *pfvf);
8 void otx2_ptp_destroy(struct otx2_nic *pfvf);
10 int otx2_ptp_clock_index(struct otx2_nic *pfvf);
11 int otx2_ptp_tstamp2time(struct otx2_nic *pfvf, u64 tstamp, u64 *tsns);
H A Dotx2_txrx.c46 static dma_addr_t otx2_dma_map_skb_frag(struct otx2_nic *pfvf, in otx2_dma_map_skb_frag()
67 static void otx2_dma_unmap_skb_frags(struct otx2_nic *pfvf, struct sg_list *sg) in otx2_dma_unmap_skb_frags()
78 static void otx2_snd_pkt_handler(struct otx2_nic *pfvf, in otx2_snd_pkt_handler()
120 static void otx2_set_rxtstamp(struct otx2_nic *pfvf, in otx2_set_rxtstamp()
137 static void otx2_skb_add_frag(struct otx2_nic *pfvf, struct sk_buff *skb, in otx2_skb_add_frag()
166 static void otx2_set_rxhash(struct otx2_nic *pfvf, in otx2_set_rxhash()
188 static void otx2_free_rcv_seg(struct otx2_nic *pfvf, struct nix_cqe_rx_s *cqe, in otx2_free_rcv_seg()
207 static bool otx2_check_rcv_errors(struct otx2_nic *pfvf, in otx2_check_rcv_errors()
272 static void otx2_rcv_pkt_handler(struct otx2_nic *pfvf, in otx2_rcv_pkt_handler()
301 static int otx2_rx_napi_handler(struct otx2_nic *pfv
[all...]
H A 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 int otx2_update_rq_stats(struct otx2_nic *pfvf, int qidx) in otx2_update_rq_stats()
74 int otx2_update_sq_stats(struct otx2_nic *pfvf, int qidx) in otx2_update_sq_stats()
85 void otx2_get_dev_stats(struct otx2_nic *pfvf) in otx2_get_dev_stats()
116 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_stats64()
134 static int otx2_hw_set_mac_addr(struct otx2_nic *pfvf, u8 *mac) in otx2_hw_set_mac_addr()
153 static int otx2_hw_get_mac_addr(struct otx2_nic *pfvf, in otx2_hw_get_mac_addr()
188 struct otx2_nic *pfv in otx2_set_mac_address()
[all...]
H A Dotx2_pf.c46 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 *p
[all...]
H A Dotx2_vf.c30 static void otx2vf_process_vfaf_mbox_msg(struct otx2_nic *vf, in otx2vf_process_vfaf_mbox_msg()
108 static int otx2vf_process_mbox_msg_up(struct otx2_nic *vf, in otx2vf_process_mbox_msg_up()
149 struct otx2_nic *vf; in otx2vf_vfaf_mbox_up_handler()
174 struct otx2_nic *vf = (struct otx2_nic *)vf_irq; in otx2vf_vfaf_mbox_intr_handler()
217 static void otx2vf_disable_mbox_intr(struct otx2_nic *vf) in otx2vf_disable_mbox_intr()
226 static int otx2vf_register_mbox_intr(struct otx2_nic *vf, bool probe_pf) in otx2vf_register_mbox_intr()
270 static void otx2vf_vfaf_mbox_destroy(struct otx2_nic *vf) in otx2vf_vfaf_mbox_destroy()
287 static int otx2vf_vfaf_mbox_init(struct otx2_nic *vf) in otx2vf_vfaf_mbox_init()
338 struct otx2_nic *v in otx2vf_open()
[all...]
H A Dotx2_ptp.c66 struct otx2_nic *pfvf = ptp->nic; in otx2_ptp_adjtime()
80 struct otx2_nic *pfvf = ptp->nic; in otx2_ptp_gettime()
97 struct otx2_nic *pfvf = ptp->nic; in otx2_ptp_settime()
115 int otx2_ptp_init(struct otx2_nic *pfvf) in otx2_ptp_init()
184 void otx2_ptp_destroy(struct otx2_nic *pfvf) in otx2_ptp_destroy()
196 int otx2_ptp_clock_index(struct otx2_nic *pfvf) in otx2_ptp_clock_index()
204 int otx2_ptp_tstamp2time(struct otx2_nic *pfvf, u64 tstamp, u64 *tsns) in otx2_ptp_tstamp2time()

Completed in 33 milliseconds

12