| /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; 404 int (*aura_aq_init)(struct otx2_nic *pfvf, int aura_id, 406 int (*pool_aq_init)(struct otx2_nic *pfvf, u16 pool_id, 480 struct otx2_nic *pf; 486 struct otx2_nic { struct 654 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 int otx2_qos_reset_schq_topology(struct otx2_nic *pfvf, u16 lvl, in otx2_qos_reset_schq_topology() 275 static void otx2_qos_free_hw_schq(struct otx2_nic *pfvf, u16 lvl, u16 schq) in otx2_qos_free_hw_schq() 288 static void otx2_qos_free_hw_node_schq(struct otx2_nic *pfvf, in otx2_qos_free_hw_node_schq() 297 static void otx2_qos_free_hw_node(struct otx2_nic *pfvf, in otx2_qos_free_hw_node() 309 static void otx2_qos_free_hw_cfg(struct otx2_nic *pfvf, in otx2_qos_free_hw_cfg() [all …]
|
| H A D | otx2_ethtool.c | 75 static struct cgx_fw_data *otx2_get_fwdata(struct otx2_nic *pfvf); 80 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_drvinfo() 86 static void otx2_get_qset_strings(struct otx2_nic *pfvf, u8 **data, int qset) in otx2_get_qset_strings() 111 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_strings() 138 static void otx2_get_qset_stats(struct otx2_nic *pfvf, in otx2_get_qset_stats() 168 static int otx2_get_phy_fec_stats(struct otx2_nic *pfvf) in otx2_get_phy_fec_stats() 189 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() 264 struct otx2_nic *pfvf = netdev_priv(dev); in otx2_get_channels() 277 struct otx2_nic *pfvf = netdev_priv(dev); in otx2_set_channels() [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_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 | cn10k_macsec.c | 49 static int cn10k_ecb_aes_encrypt(struct otx2_nic *pfvf, const u8 *sak, in cn10k_ecb_aes_encrypt() 110 static int cn10k_mcs_alloc_rsrc(struct otx2_nic *pfvf, enum mcs_direction dir, in cn10k_mcs_alloc_rsrc() 168 static void cn10k_mcs_free_rsrc(struct otx2_nic *pfvf, enum mcs_direction dir, in cn10k_mcs_free_rsrc() 209 static int cn10k_mcs_alloc_txsa(struct otx2_nic *pfvf, u16 *hw_sa_id) in cn10k_mcs_alloc_txsa() 214 static int cn10k_mcs_alloc_rxsa(struct otx2_nic *pfvf, u16 *hw_sa_id) in cn10k_mcs_alloc_rxsa() 219 static void cn10k_mcs_free_txsa(struct otx2_nic *pfvf, u16 hw_sa_id) in cn10k_mcs_free_txsa() 224 static void cn10k_mcs_free_rxsa(struct otx2_nic *pfvf, u16 hw_sa_id) in cn10k_mcs_free_rxsa() 229 static int cn10k_mcs_write_rx_secy(struct otx2_nic *pfvf, in cn10k_mcs_write_rx_secy() 281 static int cn10k_mcs_write_rx_flowid(struct otx2_nic *pfvf, in cn10k_mcs_write_rx_flowid() 327 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() 201 static void otx2_xsk_sq_append_pkt(struct otx2_nic *pfvf, u64 iova, int len, in otx2_xsk_sq_append_pkt() 229 void otx2_zc_napi_handler(struct otx2_nic *pfvf, struct xsk_buff_pool *pool, in otx2_zc_napi_handler()
|
| 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 | 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 | 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 | 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 | otx2_vf.c | 39 static void otx2vf_process_vfaf_mbox_msg(struct otx2_nic *vf, in otx2vf_process_vfaf_mbox_msg() 117 static int otx2vf_process_mbox_msg_up(struct otx2_nic *vf, in otx2vf_process_mbox_msg_up() 158 struct otx2_nic *vf; in otx2vf_vfaf_mbox_up_handler() 186 struct otx2_nic *vf = (struct otx2_nic *)vf_irq; in otx2vf_vfaf_mbox_intr_handler() 237 static void otx2vf_disable_mbox_intr(struct otx2_nic *vf) in otx2vf_disable_mbox_intr() 250 static int otx2vf_register_mbox_intr(struct otx2_nic *vf, bool probe_pf) in otx2vf_register_mbox_intr() 308 static void otx2vf_vfaf_mbox_destroy(struct otx2_nic *vf) in otx2vf_vfaf_mbox_destroy() 324 static int otx2vf_vfaf_mbox_init(struct otx2_nic *vf) in otx2vf_vfaf_mbox_init() 391 struct otx2_nic *vf; in otx2vf_open() 416 struct otx2_nic *vf = netdev_priv(netdev); in otx2vf_xmit() [all …]
|
| 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 | cn20k.c | 16 struct otx2_nic *pf = pf_irq; in cn20k_pfaf_mbox_intr_handler() 58 struct otx2_nic *vf = vf_irq; in cn20k_vfaf_mbox_intr_handler() 102 void cn20k_enable_pfvf_mbox_intr(struct otx2_nic *pf, int numvfs) in cn20k_enable_pfvf_mbox_intr() 122 void cn20k_disable_pfvf_mbox_intr(struct otx2_nic *pf, int numvfs) in cn20k_disable_pfvf_mbox_intr() 150 struct otx2_nic *pf = irq_data->pf; in cn20k_pfvf_mbox_intr_handler() 171 int cn20k_register_pfvf_mbox_intr(struct otx2_nic *pf, int numvfs) in cn20k_register_pfvf_mbox_intr() 261 int cn20k_tc_free_mcam_entry(struct otx2_nic *nic, u16 entry) in cn20k_tc_free_mcam_entry() 286 static bool cn20k_tc_check_entry_shiftable(struct otx2_nic *nic, in cn20k_tc_check_entry_shiftable() 325 void cn20k_tc_update_mcam_table_del_req(struct otx2_nic *nic, in cn20k_tc_update_mcam_table_del_req() 384 int cn20k_tc_update_mcam_table_add_req(struct otx2_nic *nic, in cn20k_tc_update_mcam_table_add_req() [all …]
|
| H A D | otx2_tc.c | 35 static void otx2_get_egress_burst_cfg(struct otx2_nic *nic, u32 burst, in otx2_get_egress_burst_cfg() 103 u64 otx2_get_txschq_rate_regval(struct otx2_nic *nic, in otx2_get_txschq_rate_regval() 131 static int otx2_set_matchall_egress_rate(struct otx2_nic *nic, in otx2_set_matchall_egress_rate() 158 static int otx2_tc_validate_flow(struct otx2_nic *nic, in otx2_tc_validate_flow() 214 static int otx2_tc_egress_matchall_install(struct otx2_nic *nic, in otx2_tc_egress_matchall_install() 258 static int otx2_tc_egress_matchall_delete(struct otx2_nic *nic, in otx2_tc_egress_matchall_delete() 274 static int otx2_tc_act_set_hw_police(struct otx2_nic *nic, in otx2_tc_act_set_hw_police() 309 static int otx2_tc_act_set_police(struct otx2_nic *nic, in otx2_tc_act_set_police() 342 static int otx2_tc_update_mcast(struct otx2_nic *nic, in otx2_tc_update_mcast() 415 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 | 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_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_mcam_pfl_info_get(struct otx2_nic *pfvf, u16 *x4_slots, u8 *kw_type) in otx2_mcam_pfl_info_get() 95 static int otx2_get_dft_rl_idx(struct otx2_nic *pfvf, u16 *mcam_idx) in otx2_get_dft_rl_idx() 131 static int otx2_free_ntuple_mcam_entries(struct otx2_nic *pfvf) in otx2_free_ntuple_mcam_entries() 158 int otx2_alloc_mcam_entries(struct otx2_nic *pfvf, u16 count) in otx2_alloc_mcam_entries() 286 int otx2_mcam_entry_init(struct otx2_nic *pfvf) in otx2_mcam_entry_init() 428 int otx2vf_mcam_flow_init(struct otx2_nic *pfvf) in otx2vf_mcam_flow_init() 453 int otx2_mcam_flow_init(struct otx2_nic *pf) in otx2_mcam_flow_init() 509 void otx2_mcam_flow_del(struct otx2_nic *pf) in otx2_mcam_flow_del() 518 static int otx2_do_add_macfilter(struct otx2_nic *pf, const u8 *mac) in otx2_do_add_macfilter() [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()
|