| /linux-6.15/drivers/net/ethernet/marvell/octeontx2/nic/ |
| H A D | otx2_common.h | 169 struct otx2_nic *pfvf; 280 struct otx2_nic *pf; 291 struct otx2_nic *pf; 296 struct otx2_nic *pf; 310 struct otx2_nic *nic; 436 struct otx2_nic { struct 787 struct otx2_nic *pfvf = dev; in cn10k_aura_freeptr() 809 struct otx2_nic *pfvf = dev; in otx2_aura_freeptr() 1036 int otx2_wq_init(struct otx2_nic *pf); 1096 int otx2_get_flow(struct otx2_nic *pfvf, [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);
|
| 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 | otx2_devlink.c | 15 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() 54 struct otx2_nic *pfvf = otx2_dl->pfvf; in otx2_dl_mcam_count_get() 73 struct otx2_nic *pfvf = otx2_dl->pfvf; in otx2_dl_ucast_flt_cnt_set() 90 struct otx2_nic *pfvf = otx2_dl->pfvf; in otx2_dl_ucast_flt_cnt_get() 102 struct otx2_nic *pfvf = otx2_dl->pfvf; in otx2_dl_ucast_flt_cnt_validate() 149 struct otx2_nic *pfvf = otx2_dl->pfvf; in otx2_devlink_eswitch_mode_get() 163 struct otx2_nic *pfvf = otx2_dl->pfvf; in otx2_devlink_eswitch_mode_set() 197 int otx2_register_dl(struct otx2_nic *pfvf) in otx2_register_dl() 232 void otx2_unregister_dl(struct otx2_nic *pfvf) in otx2_unregister_dl()
|
| H A D | qos.c | 136 static void __otx2_qos_txschq_cfg(struct otx2_nic *pfvf, in __otx2_qos_txschq_cfg() 259 static void otx2_qos_free_hw_cfg(struct otx2_nic *pfvf, in otx2_qos_free_hw_cfg() 406 otx2_qos_alloc_root(struct otx2_nic *pfvf) in otx2_qos_alloc_root() 503 otx2_qos_sw_create_leaf_node(struct otx2_nic *pfvf, in otx2_qos_sw_create_leaf_node() 567 otx2_sw_node_find(struct otx2_nic *pfvf, u32 classid) in otx2_sw_node_find() 1133 struct otx2_nic *pfvf, in otx2_qos_validate_dwrr_cfg() 1156 struct otx2_nic *pfvf, in otx2_qos_validate_configuration() 1186 struct otx2_nic *pfvf, in is_qos_node_dwrr() 1691 void otx2_clean_qos_queues(struct otx2_nic *pfvf) in otx2_clean_qos_queues() 1702 void otx2_qos_config_txschq(struct otx2_nic *pfvf) in otx2_qos_config_txschq() [all …]
|
| H A D | cn10k_ipsec.c | 49 static int cn10k_outb_cptlf_attach(struct otx2_nic *pf) in cn10k_outb_cptlf_attach() 71 static int cn10k_outb_cptlf_detach(struct otx2_nic *pf) in cn10k_outb_cptlf_detach() 92 static int cn10k_outb_cptlf_alloc(struct otx2_nic *pf) in cn10k_outb_cptlf_alloc() 315 struct otx2_nic *pf = netdev_priv(netdev); in cn10k_outb_cpt_init() 526 struct otx2_nic *pf; in cn10k_outb_prepare_sa() 672 struct otx2_nic *pf; in cn10k_ipsec_outb_add_state() 717 struct otx2_nic *pf; in cn10k_ipsec_del_state() 756 struct otx2_nic *pf = container_of(ipsec, struct otx2_nic, ipsec); in cn10k_ipsec_sa_wq_handler() 767 struct otx2_nic *pf = netdev_priv(netdev); in cn10k_ipsec_ethtool_init() 788 struct otx2_nic *pf = netdev_priv(netdev); in cn10k_ipsec_init() [all …]
|
| H A D | otx2_common.c | 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() 113 void otx2_get_dev_stats(struct otx2_nic *pfvf) in otx2_get_dev_stats() 139 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_stats64() 211 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_set_mac_address() 367 void otx2_set_rss_key(struct otx2_nic *pfvf) in otx2_set_rss_key() 390 int otx2_rss_init(struct otx2_nic *pfvf) in otx2_rss_init() 859 void otx2_sqb_flush(struct otx2_nic *pfvf) in otx2_sqb_flush() 931 struct otx2_nic *pfvf = dev; in otx2_sq_aq_init() 1164 struct otx2_nic *pfvf; in otx2_pool_refill_task() [all …]
|
| H A D | otx2_ethtool.c | 77 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_drvinfo() 108 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_strings() 186 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_ethtool_stats() 241 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_sset_count() 261 struct otx2_nic *pfvf = netdev_priv(dev); in otx2_get_channels() 274 struct otx2_nic *pfvf = netdev_priv(dev); in otx2_set_channels() 315 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_pauseparam() 724 struct otx2_nic *pfvf = netdev_priv(dev); in otx2_get_rxnfc() 757 struct otx2_nic *pfvf = netdev_priv(dev); in otx2_set_rxnfc() 833 struct otx2_nic *pfvf = netdev_priv(dev); in otx2_set_rxfh() [all …]
|
| H A D | otx2_pf.c | 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() 457 struct otx2_nic *pf; in otx2_pfvf_mbox_handler() 544 struct otx2_nic *pf = (struct otx2_nic *)(pf_irq); in otx2_pfvf_mbox_intr_handler() 809 struct otx2_nic *pf; in otx2_pfaf_mbox_handler() 999 struct otx2_nic *pf = (struct otx2_nic *)pf_irq; in otx2_pfaf_mbox_intr_handler() 1423 struct otx2_nic *pf = (struct otx2_nic *)cq_poll->dev; in otx2_cq_intr_handler() 2283 struct otx2_nic *pf = container_of(work, struct otx2_nic, reset_task); in otx2_reset_task() 3042 struct otx2_nic *pf; in otx2_probe() 3260 struct otx2_nic *pf; in otx2_vf_link_event_task() [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 | rep.c | 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() 241 struct otx2_nic *priv = rep->mdev; in rvu_rep_devlink_port_register() 321 struct otx2_nic *priv = rep->mdev; in rvu_rep_change_mtu() 340 struct otx2_nic *priv; in rvu_rep_get_stats() 418 struct otx2_nic *pf = rep->mdev; in rvu_rep_xmit() 442 struct otx2_nic *priv = rep->mdev; in rvu_rep_open() 461 struct otx2_nic *priv = rep->mdev; in rvu_rep_stop() [all …]
|
| H A D | cn10k_macsec.c | 257 static int cn10k_mcs_write_rx_secy(struct otx2_nic *pfvf, in cn10k_mcs_write_rx_secy() 355 static int cn10k_mcs_write_sc_cam(struct otx2_nic *pfvf, in cn10k_mcs_write_sc_cam() 382 static int cn10k_mcs_write_keys(struct otx2_nic *pfvf, in cn10k_mcs_write_keys() 495 static int cn10k_mcs_write_tx_secy(struct otx2_nic *pfvf, in cn10k_mcs_write_tx_secy() 624 static int cn10k_mcs_link_tx_sa2sc(struct otx2_nic *pfvf, in cn10k_mcs_link_tx_sa2sc() 694 static int cn10k_write_tx_sa_pn(struct otx2_nic *pfvf, in cn10k_write_tx_sa_pn() 959 static void cn10k_mcs_delete_txsc(struct otx2_nic *pfvf, in cn10k_mcs_delete_txsc() 1015 static void cn10k_mcs_delete_rxsc(struct otx2_nic *pfvf, in cn10k_mcs_delete_rxsc() 1056 static int cn10k_mcs_secy_rx_cfg(struct otx2_nic *pfvf, in cn10k_mcs_secy_rx_cfg() 1766 int cn10k_mcs_init(struct otx2_nic *pfvf) in cn10k_mcs_init() [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 | otx2_xsk.c | 16 int otx2_xsk_pool_alloc_buf(struct otx2_nic *pfvf, struct otx2_pool *pool, in otx2_xsk_pool_alloc_buf() 35 static int otx2_xsk_ctx_disable(struct otx2_nic *pfvf, u16 qidx, int aura_id) in otx2_xsk_ctx_disable() 90 static void otx2_clean_up_rq(struct otx2_nic *pfvf, int qidx) in otx2_clean_up_rq() 118 int otx2_xsk_pool_enable(struct otx2_nic *pf, struct xsk_buff_pool *pool, u16 qidx) in otx2_xsk_pool_enable() 139 int otx2_xsk_pool_disable(struct otx2_nic *pf, u16 qidx) in otx2_xsk_pool_disable() 160 int otx2_xsk_pool_setup(struct otx2_nic *pf, struct xsk_buff_pool *pool, u16 qidx) in otx2_xsk_pool_setup() 170 struct otx2_nic *pf = netdev_priv(dev); in otx2_xsk_wakeup() 193 void otx2_attach_xsk_buff(struct otx2_nic *pfvf, struct otx2_snd_queue *sq, int qidx) in otx2_attach_xsk_buff() 199 void otx2_zc_napi_handler(struct otx2_nic *pfvf, struct xsk_buff_pool *pool, in otx2_zc_napi_handler()
|
| H A D | otx2_dmac_flt.c | 10 static int otx2_dmacflt_do_add(struct otx2_nic *pf, const u8 *mac, in otx2_dmacflt_do_add() 43 static int otx2_dmacflt_add_pfmac(struct otx2_nic *pf, u32 *dmac_index) in otx2_dmacflt_add_pfmac() 79 int otx2_dmacflt_add(struct otx2_nic *pf, const u8 *mac, u32 bit_pos) in otx2_dmacflt_add() 94 static int otx2_dmacflt_do_remove(struct otx2_nic *pfvf, const u8 *mac, in otx2_dmacflt_do_remove() 115 static int otx2_dmacflt_remove_pfmac(struct otx2_nic *pf, u32 dmac_index) in otx2_dmacflt_remove_pfmac() 134 int otx2_dmacflt_remove(struct otx2_nic *pf, const u8 *mac, in otx2_dmacflt_remove() 149 int otx2_dmacflt_get_max_cnt(struct otx2_nic *pf) in otx2_dmacflt_get_max_cnt() 182 int otx2_dmacflt_update(struct otx2_nic *pf, u8 *mac, u32 bit_pos) in otx2_dmacflt_update()
|
| H A D | rep.h | 33 struct otx2_nic *mdev; 51 int rvu_rep_create(struct otx2_nic *priv, struct netlink_ext_ack *extack); 52 void rvu_rep_destroy(struct otx2_nic *priv); 53 int rvu_event_up_notify(struct otx2_nic *pf, struct rep_event *info);
|
| H A D | otx2_dcbnl.c | 10 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() 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() 402 struct otx2_nic *pfvf = netdev_priv(dev); in otx2_dcbnl_ieee_getpfc() 412 struct otx2_nic *pfvf = netdev_priv(dev); in otx2_dcbnl_ieee_setpfc() [all …]
|
| H A D | otx2_vf.c | 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() 306 static int otx2vf_vfaf_mbox_init(struct otx2_nic *vf) in otx2vf_vfaf_mbox_init() 367 struct otx2_nic *vf; in otx2vf_open() 392 struct otx2_nic *vf = netdev_priv(netdev); in otx2vf_xmit() 417 struct otx2_nic *vf = netdev_priv(netdev); in otx2vf_set_rx_mode() 424 struct otx2_nic *vf = container_of(work, struct otx2_nic, rx_mode_work); in otx2vf_do_set_rx_mode() 471 struct otx2_nic *vf = container_of(work, struct otx2_nic, reset_task); in otx2vf_reset_task() 505 static int otx2_vf_wq_init(struct otx2_nic *vf) in otx2_vf_wq_init() 542 struct otx2_nic *vf; in otx2vf_probe() [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() 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 D | cn10k.c | 26 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() 146 struct otx2_nic *pfvf = dev; in cn10k_sqe_flush() 168 int cn10k_free_all_ipolicers(struct otx2_nic *pfvf) in cn10k_free_all_ipolicers() 193 int cn10k_alloc_leaf_profile(struct otx2_nic *pfvf, u16 *leaf) in cn10k_alloc_leaf_profile() 231 int cn10k_alloc_matchall_ipolicer(struct otx2_nic *pfvf) in cn10k_alloc_matchall_ipolicer() 338 int cn10k_free_leaf_profile(struct otx2_nic *pfvf, u16 leaf) in cn10k_free_leaf_profile() 352 int cn10k_free_matchall_ipolicer(struct otx2_nic *pfvf) in cn10k_free_matchall_ipolicer() 370 int cn10k_set_ipolicer_rate(struct otx2_nic *pfvf, u16 profile, in cn10k_set_ipolicer_rate() [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_tc.c | 122 u64 otx2_get_txschq_rate_regval(struct otx2_nic *nic, in otx2_get_txschq_rate_regval() 177 static int otx2_tc_validate_flow(struct otx2_nic *nic, in otx2_tc_validate_flow() 445 struct otx2_nic *priv; in otx2_tc_parse_actions() 1188 static int otx2_tc_del_flow(struct otx2_nic *nic, in otx2_tc_del_flow() 1249 static int otx2_tc_add_flow(struct otx2_nic *nic, in otx2_tc_add_flow() 1409 int otx2_setup_tc_cls_flower(struct otx2_nic *nic, in otx2_setup_tc_cls_flower() 1509 struct otx2_nic *nic = cb_priv; in otx2_setup_tc_block_ingress_cb() 1553 struct otx2_nic *nic = cb_priv; in otx2_setup_tc_block_egress_cb() 1573 struct otx2_nic *nic = netdev_priv(netdev); in otx2_setup_tc_block() 1608 int otx2_init_tc(struct otx2_nic *nic) in otx2_init_tc() [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() 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() 224 static void otx2_set_rxhash(struct otx2_nic *pfvf, in otx2_set_rxhash() 389 static int otx2_rx_napi_handler(struct otx2_nic *pfvf, in otx2_rx_napi_handler() 434 struct otx2_nic *pfvf = dev; in otx2_refill_pool_ptrs() 569 struct otx2_nic *pfvf; in otx2_napi_handler() 573 pfvf = (struct otx2_nic *)cq_poll->dev; in otx2_napi_handler() 1191 struct otx2_nic *pfvf = dev; in otx2_sq_append_skb() [all …]
|
| H A D | otx2_flows.c | 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() 404 struct otx2_nic *pf = netdev_priv(netdev); in otx2_add_macfilter() 435 struct otx2_nic *pf = netdev_priv(netdev); in otx2_del_macfilter() 1334 int otx2_destroy_ntuple_flows(struct otx2_nic *pfvf) in otx2_destroy_ntuple_flows() 1367 int otx2_destroy_mcam_flows(struct otx2_nic *pfvf) in otx2_destroy_mcam_flows() [all …]
|