| /linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
| H A D | otx2_common.h | 175 struct otx2_nic *pfvf; 287 struct otx2_nic *pf; 298 struct otx2_nic *pf; 303 struct otx2_nic *pf; 317 struct otx2_nic *nic; 379 int (*aura_aq_init)(struct otx2_nic *pfvf, int aura_id, 381 int (*pool_aq_init)(struct otx2_nic *pfvf, u16 pool_id, 455 struct otx2_nic *pf; 461 struct otx2_nic { struct 629 static inline void otx2_setup_dev_hw_settings(struct otx2_nic *pfvf) in otx2_setup_dev_hw_settings() [all …]
|
| H A 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); [all …]
|
| H A D | otx2_xsk.h | 11 struct otx2_nic; 14 int otx2_xsk_pool_setup(struct otx2_nic *pf, struct xsk_buff_pool *pool, u16 qid); 15 int otx2_xsk_pool_enable(struct otx2_nic *pf, struct xsk_buff_pool *pool, u16 qid); 16 int otx2_xsk_pool_disable(struct otx2_nic *pf, u16 qid); 17 int otx2_xsk_pool_alloc_buf(struct otx2_nic *pfvf, struct otx2_pool *pool, 20 void otx2_zc_napi_handler(struct otx2_nic *pfvf, struct xsk_buff_pool *pool, 22 void otx2_attach_xsk_buff(struct otx2_nic *pfvf, struct otx2_snd_queue *sq, int qidx);
|
| H A D | qos.c | 26 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() 197 static int otx2_qos_txschq_set_parent_topology(struct otx2_nic *pfvf, in otx2_qos_txschq_set_parent_topology() 238 static void otx2_qos_free_hw_node_schq(struct otx2_nic *pfvf, in otx2_qos_free_hw_node_schq() 247 static void otx2_qos_free_hw_node(struct otx2_nic *pfvf, in otx2_qos_free_hw_node() 259 static void otx2_qos_free_hw_cfg(struct otx2_nic *pfvf, in otx2_qos_free_hw_cfg() 274 static void otx2_qos_sw_node_delete(struct otx2_nic *pfvf, in otx2_qos_sw_node_delete() 288 static void otx2_qos_free_sw_node_schq(struct otx2_nic *pfvf, in otx2_qos_free_sw_node_schq() [all …]
|
| H A D | cn20k.h | 13 void cn20k_init(struct otx2_nic *pfvf); 14 int cn20k_register_pfvf_mbox_intr(struct otx2_nic *pf, int numvfs); 15 void cn20k_disable_pfvf_mbox_intr(struct otx2_nic *pf, int numvfs); 16 void cn20k_enable_pfvf_mbox_intr(struct otx2_nic *pf, int numvfs);
|
| H A D | otx2_ethtool.c | 73 static struct cgx_fw_data *otx2_get_fwdata(struct otx2_nic *pfvf); 78 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_drvinfo() 84 static void otx2_get_qset_strings(struct otx2_nic *pfvf, u8 **data, int qset) in otx2_get_qset_strings() 109 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_strings() 136 static void otx2_get_qset_stats(struct otx2_nic *pfvf, in otx2_get_qset_stats() 166 static int otx2_get_phy_fec_stats(struct otx2_nic *pfvf) in otx2_get_phy_fec_stats() 187 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_ethtool_stats() 242 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_sset_count() 262 struct otx2_nic *pfvf = netdev_priv(dev); in otx2_get_channels() 275 struct otx2_nic *pfvf = netdev_priv(dev); in otx2_set_channels() [all …]
|
| H A D | otx2_pf.c | 53 static int otx2_config_hw_tx_tstamp(struct otx2_nic *pfvf, bool enable); 54 static int otx2_config_hw_rx_tstamp(struct otx2_nic *pfvf, bool enable); 58 struct otx2_nic *pf = netdev_priv(netdev); in otx2_change_mtu() 80 static void otx2_disable_flr_me_intr(struct otx2_nic *pf) in otx2_disable_flr_me_intr() 106 static void otx2_flr_wq_destroy(struct otx2_nic *pf) in otx2_flr_wq_destroy() 118 struct otx2_nic *pf = flrwork->pf; in otx2_flr_handler() 149 struct otx2_nic *pf = (struct otx2_nic *)pf_irq; in otx2_pf_flr_intr_handler() 178 struct otx2_nic *pf = (struct otx2_nic *)pf_irq; in otx2_pf_me_intr_handler() 201 static int otx2_register_flr_me_intr(struct otx2_nic *pf, int numvfs) in otx2_register_flr_me_intr() 276 static int otx2_pf_flr_init(struct otx2_nic *pf, int num_vfs) in otx2_pf_flr_init() [all …]
|
| H A D | otx2_common.c | 22 static bool otx2_is_pfc_enabled(struct otx2_nic *pfvf) in otx2_is_pfc_enabled() 28 struct otx2_nic *pfvf, int qidx) in otx2_nix_rq_op_stats() 41 struct otx2_nic *pfvf, int qidx) in otx2_nix_sq_op_stats() 53 void otx2_update_lmac_stats(struct otx2_nic *pfvf) in otx2_update_lmac_stats() 71 void otx2_update_lmac_fec_stats(struct otx2_nic *pfvf) in otx2_update_lmac_fec_stats() 84 int otx2_update_rq_stats(struct otx2_nic *pfvf, int qidx) in otx2_update_rq_stats() 96 int otx2_update_sq_stats(struct otx2_nic *pfvf, int qidx) in otx2_update_sq_stats() 113 void otx2_get_dev_stats(struct otx2_nic *pfvf) in otx2_get_dev_stats() 141 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_stats64() 159 static int otx2_hw_set_mac_addr(struct otx2_nic *pfvf, u8 *mac) in otx2_hw_set_mac_addr() [all …]
|
| H A D | otx2_ptp.h | 26 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 D | qos.h | 23 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 D | cn10k_macsec.c | 49 static int cn10k_ecb_aes_encrypt(struct otx2_nic *pfvf, u8 *sak, in cn10k_ecb_aes_encrypt() 139 static int cn10k_mcs_alloc_rsrc(struct otx2_nic *pfvf, enum mcs_direction dir, in cn10k_mcs_alloc_rsrc() 197 static void cn10k_mcs_free_rsrc(struct otx2_nic *pfvf, enum mcs_direction dir, in cn10k_mcs_free_rsrc() 237 static int cn10k_mcs_alloc_txsa(struct otx2_nic *pfvf, u16 *hw_sa_id) in cn10k_mcs_alloc_txsa() 242 static int cn10k_mcs_alloc_rxsa(struct otx2_nic *pfvf, u16 *hw_sa_id) in cn10k_mcs_alloc_rxsa() 247 static void cn10k_mcs_free_txsa(struct otx2_nic *pfvf, u16 hw_sa_id) in cn10k_mcs_free_txsa() 252 static void cn10k_mcs_free_rxsa(struct otx2_nic *pfvf, u16 hw_sa_id) in cn10k_mcs_free_rxsa() 257 static int cn10k_mcs_write_rx_secy(struct otx2_nic *pfvf, in cn10k_mcs_write_rx_secy() 309 static int cn10k_mcs_write_rx_flowid(struct otx2_nic *pfvf, in cn10k_mcs_write_rx_flowid() 355 static int cn10k_mcs_write_sc_cam(struct otx2_nic *pfvf, in cn10k_mcs_write_sc_cam() [all …]
|
| H A D | otx2_xsk.c | 17 int otx2_xsk_pool_alloc_buf(struct otx2_nic *pfvf, struct otx2_pool *pool, in otx2_xsk_pool_alloc_buf() 36 static int otx2_xsk_ctx_disable(struct otx2_nic *pfvf, u16 qidx, int aura_id) in otx2_xsk_ctx_disable() 91 static void otx2_clean_up_rq(struct otx2_nic *pfvf, int qidx) in otx2_clean_up_rq() 119 int otx2_xsk_pool_enable(struct otx2_nic *pf, struct xsk_buff_pool *pool, u16 qidx) in otx2_xsk_pool_enable() 140 int otx2_xsk_pool_disable(struct otx2_nic *pf, u16 qidx) in otx2_xsk_pool_disable() 161 int otx2_xsk_pool_setup(struct otx2_nic *pf, struct xsk_buff_pool *pool, u16 qidx) in otx2_xsk_pool_setup() 171 struct otx2_nic *pf = netdev_priv(dev); in otx2_xsk_wakeup() 194 void otx2_attach_xsk_buff(struct otx2_nic *pfvf, struct otx2_snd_queue *sq, int qidx) in otx2_attach_xsk_buff() 200 static void otx2_xsk_sq_append_pkt(struct otx2_nic *pfvf, u64 iova, int len, in otx2_xsk_sq_append_pkt() 228 void otx2_zc_napi_handler(struct otx2_nic *pfvf, struct xsk_buff_pool *pool, in otx2_zc_napi_handler()
|
| H A D | rep.h | 34 struct otx2_nic *mdev; 52 int rvu_rep_create(struct otx2_nic *priv, struct netlink_ext_ack *extack); 53 void rvu_rep_destroy(struct otx2_nic *priv); 54 int rvu_event_up_notify(struct otx2_nic *pf, struct rep_event *info);
|
| H A D | rep.c | 32 static int rvu_rep_notify_pfvf(struct otx2_nic *priv, u16 event, 39 struct otx2_nic *priv = rep->mdev; in rvu_rep_mcam_flow_init() 110 struct otx2_nic *priv = rep->mdev; in rvu_rep_setup_tc_cb() 153 struct otx2_nic *priv = rep->mdev; in rvu_rep_sp_stats64() 203 struct otx2_nic *priv = rep->mdev; in rvu_rep_dl_port_fn_hw_addr_set() 221 rvu_rep_devlink_set_switch_id(struct otx2_nic *priv, in rvu_rep_devlink_set_switch_id() 241 struct otx2_nic *priv = rep->mdev; in rvu_rep_devlink_port_register() 267 static int rvu_rep_get_repid(struct otx2_nic *priv, u16 pcifunc) in rvu_rep_get_repid() 277 static int rvu_rep_notify_pfvf(struct otx2_nic *priv, u16 event, in rvu_rep_notify_pfvf() 297 static void rvu_rep_state_evt_handler(struct otx2_nic *priv, in rvu_rep_state_evt_handler() [all …]
|
| H A 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);
|
| H A D | qos_sq.c | 19 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() 166 static int otx2_qos_ctx_disable(struct otx2_nic *pfvf, u16 qidx, int aura_id) in otx2_qos_ctx_disable() 221 int otx2_qos_get_qid(struct otx2_nic *pfvf) in otx2_qos_get_qid() 231 void otx2_qos_free_qid(struct otx2_nic *pfvf, int qidx) in otx2_qos_free_qid() 236 int otx2_qos_enable_sq(struct otx2_nic *pfvf, int qidx) in otx2_qos_enable_sq() 260 static int otx2_qos_nix_npa_ndc_sync(struct otx2_nic *pfvf) in otx2_qos_nix_npa_ndc_sync() 280 void otx2_qos_disable_sq(struct otx2_nic *pfvf, int qidx) in otx2_qos_disable_sq()
|
| H A D | cn10k_ipsec.h | 227 void cn10k_ipsec_clean(struct otx2_nic *pf); 229 bool otx2_sqe_add_sg_ipsec(struct otx2_nic *pfvf, struct otx2_snd_queue *sq, 231 bool cn10k_ipsec_transmit(struct otx2_nic *pf, struct netdev_queue *txq, 240 static inline __maybe_unused void cn10k_ipsec_clean(struct otx2_nic *pf) in cn10k_ipsec_clean() 251 otx2_sqe_add_sg_ipsec(struct otx2_nic *pfvf, struct otx2_snd_queue *sq, in otx2_sqe_add_sg_ipsec() 258 cn10k_ipsec_transmit(struct otx2_nic *pf, struct netdev_queue *txq, in cn10k_ipsec_transmit()
|
| H A D | otx2_tc.c | 58 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 …]
|
| H A D | otx2_txrx.c | 40 static bool otx2_xdp_rcv_pkt_handler(struct otx2_nic *pfvf, 57 static int otx2_nix_cq_op_status(struct otx2_nic *pfvf, in otx2_nix_cq_op_status() 105 static void otx2_xdp_snd_pkt_handler(struct otx2_nic *pfvf, in otx2_xdp_snd_pkt_handler() 125 static void otx2_snd_pkt_handler(struct otx2_nic *pfvf, in otx2_snd_pkt_handler() 168 static void otx2_set_rxtstamp(struct otx2_nic *pfvf, in otx2_set_rxtstamp() 186 static bool otx2_skb_add_frag(struct otx2_nic *pfvf, struct sk_buff *skb, in otx2_skb_add_frag() 224 static void otx2_set_rxhash(struct otx2_nic *pfvf, in otx2_set_rxhash() 246 static void otx2_free_rcv_seg(struct otx2_nic *pfvf, struct nix_cqe_rx_s *cqe, in otx2_free_rcv_seg() 266 static bool otx2_check_rcv_errors(struct otx2_nic *pfvf, in otx2_check_rcv_errors() 330 static void otx2_rcv_pkt_handler(struct otx2_nic *pfvf, in otx2_rcv_pkt_handler() [all …]
|
| H A D | otx2_flows.c | 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() 67 int otx2_alloc_mcam_entries(struct otx2_nic *pfvf, u16 count) in otx2_alloc_mcam_entries() 159 int otx2_mcam_entry_init(struct otx2_nic *pfvf) in otx2_mcam_entry_init() 266 int otx2vf_mcam_flow_init(struct otx2_nic *pfvf) in otx2vf_mcam_flow_init() 291 int otx2_mcam_flow_init(struct otx2_nic *pf) in otx2_mcam_flow_init() 347 void otx2_mcam_flow_del(struct otx2_nic *pf) in otx2_mcam_flow_del() 356 static int otx2_do_add_macfilter(struct otx2_nic *pf, const u8 *mac) in otx2_do_add_macfilter() 404 struct otx2_nic *pf = netdev_priv(netdev); in otx2_add_macfilter() 415 static bool otx2_get_mcamentry_for_mac(struct otx2_nic *pf, const u8 *mac, in otx2_get_mcamentry_for_mac() [all …]
|
| H A D | otx2_ptp.c | 51 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()
|