/linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
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() 139 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_stats64() local 157 static int otx2_hw_set_mac_addr(struct otx2_nic *pfvf, u8 *mac) in otx2_hw_set_mac_addr() [all …]
|
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_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() 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() 335 void otx2_update_bpid_in_rqctx(struct otx2_nic *pfvf, int vlan_prio, int qidx, in otx2_update_bpid_in_rqctx() [all …]
|
H A D | cn10k.c | 28 void otx2_init_hw_ops(struct otx2_nic *pfvf) in otx2_init_hw_ops() 39 int cn10k_lmtst_init(struct otx2_nic *pfvf) in cn10k_lmtst_init() 88 struct otx2_nic *pfvf = dev; in cn10k_sq_aq_init() local 122 struct otx2_nic *pfvf = dev; in cn10k_refill_pool_ptrs() local 156 struct otx2_nic *pfvf = dev; in cn10k_sqe_flush() local 178 int cn10k_free_all_ipolicers(struct otx2_nic *pfvf) in cn10k_free_all_ipolicers() 203 int cn10k_alloc_leaf_profile(struct otx2_nic *pfvf, u16 *leaf) in cn10k_alloc_leaf_profile() 241 int cn10k_alloc_matchall_ipolicer(struct otx2_nic *pfvf) in cn10k_alloc_matchall_ipolicer() 321 int cn10k_map_unmap_rq_policer(struct otx2_nic *pfvf, int rq_idx, in cn10k_map_unmap_rq_policer() 348 int cn10k_free_leaf_profile(struct otx2_nic *pfvf, u16 leaf) in cn10k_free_leaf_profile() [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 | otx2_devlink.c | 15 struct otx2_nic *pfvf = otx2_dl->pfvf; in otx2_dl_mcam_count_validate() local 39 struct otx2_nic *pfvf = otx2_dl->pfvf; in otx2_dl_mcam_count_set() local 54 struct otx2_nic *pfvf = otx2_dl->pfvf; in otx2_dl_mcam_count_get() local 73 struct otx2_nic *pfvf = otx2_dl->pfvf; in otx2_dl_ucast_flt_cnt_set() local 90 struct otx2_nic *pfvf = otx2_dl->pfvf; in otx2_dl_ucast_flt_cnt_get() local 102 struct otx2_nic *pfvf = otx2_dl->pfvf; in otx2_dl_ucast_flt_cnt_validate() local 149 struct otx2_nic *pfvf = otx2_dl->pfvf; in otx2_devlink_eswitch_mode_get() local 163 struct otx2_nic *pfvf = otx2_dl->pfvf; in otx2_devlink_eswitch_mode_set() local 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 | otx2_txrx.c | 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() 393 static int otx2_rx_napi_handler(struct otx2_nic *pfvf, in otx2_rx_napi_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() 457 static struct otx2_flow *otx2_find_flow(struct otx2_nic *pfvf, u32 location) in otx2_find_flow() 469 static void otx2_add_flow_to_list(struct otx2_nic *pfvf, struct otx2_flow *flow) in otx2_add_flow_to_list() 497 int otx2_get_flow(struct otx2_nic *pfvf, struct ethtool_rxnfc *nfc, in otx2_get_flow() 516 int otx2_get_all_flows(struct otx2_nic *pfvf, struct ethtool_rxnfc *nfc, in otx2_get_all_flows() 948 static int otx2_is_flow_rule_dmacfilter(struct otx2_nic *pfvf, in otx2_is_flow_rule_dmacfilter() [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() 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 | otx2_common.h | 173 struct otx2_nic *pfvf; member 622 static inline void otx2_setup_dev_hw_settings(struct otx2_nic *pfvf) in otx2_setup_dev_hw_settings() 774 static inline void __cn10k_aura_freeptr(struct otx2_nic *pfvf, u64 aura, in __cn10k_aura_freeptr() 808 struct otx2_nic *pfvf = dev; in cn10k_aura_freeptr() local 819 static inline u64 otx2_aura_allocptr(struct otx2_nic *pfvf, int aura) in otx2_aura_allocptr() 830 struct otx2_nic *pfvf = dev; in otx2_aura_freeptr() local 836 static inline int otx2_get_pool_idx(struct otx2_nic *pfvf, int type, int idx) in otx2_get_pool_idx() 931 static inline dma_addr_t otx2_dma_map_page(struct otx2_nic *pfvf, in otx2_dma_map_page() 945 static inline void otx2_dma_unmap_page(struct otx2_nic *pfvf, in otx2_dma_unmap_page() 953 static inline u16 otx2_get_smq_idx(struct otx2_nic *pfvf, u16 qidx) in otx2_get_smq_idx() [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()
|
H A D | otx2_devlink.h | 13 struct otx2_nic *pfvf; member
|
H A D | otx2_pf.c | 1276 int otx2_reset_mac_stats(struct otx2_nic *pfvf) in otx2_reset_mac_stats() 1830 static bool otx2_promisc_use_mce_list(struct otx2_nic *pfvf) in otx2_promisc_use_mce_list() 1884 static void otx2_set_irq_coalesce(struct otx2_nic *pfvf) in otx2_set_irq_coalesce() 1896 struct otx2_nic *pfvf; in otx2_dim_work() local 2381 static int otx2_config_hw_rx_tstamp(struct otx2_nic *pfvf, bool enable) in otx2_config_hw_rx_tstamp() 2413 static int otx2_config_hw_tx_tstamp(struct otx2_nic *pfvf, bool enable) in otx2_config_hw_tx_tstamp() 2447 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_config_hwtstamp() local 2512 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_ioctl() local
|
H A D | cn20k.c | 19 void cn20k_init(struct otx2_nic *pfvf) in cn20k_init()
|
H A D | otx2_dmac_flt.c | 94 static int otx2_dmacflt_do_remove(struct otx2_nic *pfvf, const u8 *mac, in otx2_dmacflt_do_remove()
|
H A D | cn10k_ipsec.c | 865 bool otx2_sqe_add_sg_ipsec(struct otx2_nic *pfvf, struct otx2_snd_queue *sq, in otx2_sqe_add_sg_ipsec()
|
/linux/drivers/net/ethernet/marvell/octeontx2/af/ |
H A D | rvu_npa.c | 70 struct rvu_pfvf *pfvf; in rvu_npa_aq_enq_inst() local 212 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, req->hdr.pcifunc); in npa_lf_hwctx_disable() local 309 static void npa_ctx_free(struct rvu *rvu, struct rvu_pfvf *pfvf) in npa_ctx_free() 335 struct rvu_pfvf *pfvf; in rvu_mbox_handler_npa_lf_alloc() local 441 struct rvu_pfvf *pfvf; in rvu_mbox_handler_npa_lf_free() local 543 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_npa_lf_teardown() local
|
H A D | rvu.c | 341 static void rvu_update_rsrc_map(struct rvu *rvu, struct rvu_pfvf *pfvf, in rvu_update_rsrc_map() 550 struct rvu_pfvf *pfvf; in rvu_scan_block() local 605 struct rvu_pfvf *pfvf; in rvu_setup_msix_resources() local 722 struct rvu_pfvf *pfvf; in rvu_free_hw_resources() local 769 struct rvu_pfvf *pfvf; in rvu_setup_pfvf_macaddress() local 1250 u16 rvu_get_rsrc_mapcount(struct rvu_pfvf *pfvf, int blkaddr) in rvu_get_rsrc_mapcount() 1273 static bool is_blktype_attached(struct rvu_pfvf *pfvf, int blktype) in is_blktype_attached() 1295 struct rvu_pfvf *pfvf; in is_pffunc_map_valid() local 1333 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_get_blkaddr_from_slot() local 1386 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_detach_block() local [all …]
|
H A D | rvu_switch.c | 13 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_switch_enable_lbk_link() local 27 struct rvu_pfvf *pfvf; in rvu_switch_install_rx_rule() local 55 struct rvu_pfvf *pfvf; in rvu_switch_install_tx_rule() local
|
H A D | rvu_rep.c | 38 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, event->pcifunc); in rvu_rep_up_notify() local 239 struct rvu_pfvf *pfvf; in rvu_rep_install_rx_rule() local 280 struct rvu_pfvf *pfvf; in rvu_rep_install_tx_rule() local 415 struct rvu_pfvf *pfvf; in rvu_rep_pf_init() local
|
H A D | rvu_debugfs.c | 823 struct rvu_pfvf *pfvf; in rvu_dbg_rvu_pf_cgx_map_display() local 959 static void print_npa_qsize(struct seq_file *m, struct rvu_pfvf *pfvf) in print_npa_qsize() 995 struct rvu_pfvf *pfvf; in rvu_dbg_qsize_display() local 1199 struct rvu_pfvf *pfvf; in rvu_dbg_npa_ctx_display() local 1282 struct rvu_pfvf *pfvf; in write_npa_ctx() local 1681 struct rvu_pfvf *pfvf; in rvu_dbg_nix_tm_tree_display() local 1724 struct rvu_pfvf *pfvf; in rvu_dbg_nix_tm_tree_write() local 1981 struct rvu_pfvf *pfvf; in rvu_dbg_nix_tm_topo_write() local 2280 struct rvu_pfvf *pfvf; in rvu_dbg_nix_queue_ctx_display() local 2363 struct rvu_pfvf *pfvf; in write_nix_queue_ctx() local [all …]
|
H A D | rvu_cgx.c | 111 struct rvu_pfvf *pfvf = &rvu->pf[pf]; in rvu_map_cgx_nix_block() local 685 struct rvu_pfvf *pfvf; in rvu_mbox_handler_cgx_mac_addr_set() local 775 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, req->hdr.pcifunc); in rvu_mbox_handler_cgx_mac_addr_get() local 825 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_cgx_ptp_rx_cfg() local 1128 struct rvu_pfvf *parent_pf, *pfvf; in rvu_cgx_start_stop_io() local
|
/linux/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | smt.h | 60 u16 pfvf; member
|
H A D | smt.c | 209 static struct smt_entry *t4_smt_alloc_switching(struct adapter *adap, u16 pfvf, in t4_smt_alloc_switching()
|
/linux/drivers/net/ethernet/marvell/octeontx2/af/cn20k/ |
H A D | mbox_init.c | 391 int rvu_alloc_cint_qint_mem(struct rvu *rvu, struct rvu_pfvf *pfvf, in rvu_alloc_cint_qint_mem()
|