Home
last modified time | relevance | path

Searched refs:cgxd (Results 1 – 8 of 8) sorted by relevance

/linux/drivers/net/ethernet/marvell/octeontx2/af/
H A Dcgx.h140 int cgx_get_cgxid(void *cgxd);
141 int cgx_get_lmac_cnt(void *cgxd);
143 int cgx_set_pkind(void *cgxd, u8 lmac_id, int pkind);
144 int cgx_lmac_evh_register(struct cgx_event_cb *cb, void *cgxd, int lmac_id);
145 int cgx_lmac_evh_unregister(void *cgxd, int lmac_id);
146 int cgx_get_tx_stats(void *cgxd, int lmac_id, int idx, u64 *tx_stat);
147 int cgx_get_rx_stats(void *cgxd, int lmac_id, int idx, u64 *rx_stat);
148 int cgx_stats_reset(void *cgxd, int lmac_id);
149 int cgx_lmac_rx_tx_enable(void *cgxd, int lmac_id, bool enable);
150 int cgx_lmac_tx_enable(void *cgxd, int lmac_id, bool enable);
[all …]
H A Drvu_cgx.c47 void *cgxd; in is_mac_feature_supported() local
53 cgxd = rvu_cgx_pdata(cgx_id, rvu); in is_mac_feature_supported()
55 return (cgx_features_get(cgxd) & feature); in is_mac_feature_supported()
96 void *cgxd = NULL; in rvu_first_cgx_pdata() local
99 cgxd = rvu_cgx_pdata(first_enabled_cgx, rvu); in rvu_first_cgx_pdata()
100 if (cgxd) in rvu_first_cgx_pdata()
104 return cgxd; in rvu_first_cgx_pdata()
311 void *cgxd; in cgx_lmac_event_handler_init() local
326 cgxd = rvu_cgx_pdata(cgx, rvu); in cgx_lmac_event_handler_init()
327 if (!cgxd) in cgx_lmac_event_handler_init()
[all …]
H A Dlmac_common.h99 void (*mac_enadis_rx_pause_fwding)(void *cgxd,
103 int (*mac_get_pause_frm_status)(void *cgxd,
108 int (*mac_enadis_pause_frm)(void *cgxd,
113 void (*mac_pause_frm_config)(void *cgxd,
118 void (*mac_enadis_ptp_config)(void *cgxd,
122 int (*mac_rx_tx_enable)(void *cgxd, int lmac_id, bool enable);
123 int (*mac_tx_enable)(void *cgxd, int lmac_id, bool enable);
124 int (*pfc_config)(void *cgxd, int lmac_id,
127 int (*mac_get_pfc_frm_cfg)(void *cgxd, int lmac_id,
129 int (*mac_reset)(void *cgxd, int lmac_id, u8 pf_req_flr);
[all …]
H A Dcgx.c76 static bool is_dev_rpm(void *cgxd) in is_dev_rpm() argument
78 struct cgx *cgx = cgxd; in is_dev_rpm()
107 struct mac_ops *get_mac_ops(void *cgxd) in get_mac_ops() argument
109 if (!cgxd) in get_mac_ops()
110 return cgxd; in get_mac_ops()
112 return ((struct cgx *)cgxd)->mac_ops; in get_mac_ops()
115 u32 cgx_get_fifo_len(void *cgxd) in cgx_get_fifo_len() argument
117 return ((struct cgx *)cgxd)->fifo_len; in cgx_get_fifo_len()
155 int cgx_get_lmac_cnt(void *cgxd) in cgx_get_lmac_cnt() argument
157 struct cgx *cgx = cgxd; in cgx_get_lmac_cnt()
[all …]
H A Drpm.h125 int rpm_lmac_get_pause_frm_status(void *cgxd, int lmac_id, u8 *tx_pause,
141 int rpm_get_fec_stats(void *cgxd, int lmac_id, struct cgx_fec_stats_rsp *rsp);
H A Drvu_debugfs.c2734 err = rvu_cgx_nix_cuml_stats(rvu, cgxd, lmac_id, (idx), \
2744 err = rvu_cgx_nix_cuml_stats(rvu, cgxd, lmac_id, (idx), \
2755 void *cgxd = s->private; in cgx_print_stats() local
2766 mac_ops = get_mac_ops(cgxd); in cgx_print_stats()
2773 err = cgx_get_link_info(cgxd, lmac_id, &linfo); in cgx_print_stats()
2825 err = mac_ops->mac_get_rx_stats(cgxd, lmac_id, stat, &rx_stat); in cgx_print_stats()
2841 err = mac_ops->mac_get_tx_stats(cgxd, lmac_id, stat, &tx_stat); in cgx_print_stats()
2886 void *cgxd = s->private; in cgx_print_dmac_flt() local
2899 pf = cgxlmac_to_pf(rvu, cgx_get_cgxid(cgxd), lmac_id); in cgx_print_dmac_flt()
2906 cfg = cgx_read_dmac_ctrl(cgxd, lmac_id); in cgx_print_dmac_flt()
[all …]
H A Drvu.h908 int rvu_cgx_nix_cuml_stats(struct rvu *rvu, void *cgxd, int lmac_id, int index,
1021 int rvu_cgx_config_tx(void *cgxd, int lmac_id, bool enable);
H A Drvu_nix.c5255 void *cgxd; in rvu_nix_lf_teardown() local
5302 cgxd = rvu_cgx_pdata(cgx_id, rvu); in rvu_nix_lf_teardown()
5303 mac_ops = get_mac_ops(cgxd); in rvu_nix_lf_teardown()
5304 mac_ops->mac_enadis_ptp_config(cgxd, lmac_id, false); in rvu_nix_lf_teardown()