Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/net/ethernet/marvell/octeontx2/af/
Dcgx.h136 int cgx_get_cgxid(void *cgxd);
137 int cgx_get_lmac_cnt(void *cgxd);
139 int cgx_set_pkind(void *cgxd, u8 lmac_id, int pkind);
140 int cgx_lmac_evh_register(struct cgx_event_cb *cb, void *cgxd, int lmac_id);
141 int cgx_lmac_evh_unregister(void *cgxd, int lmac_id);
142 int cgx_get_tx_stats(void *cgxd, int lmac_id, int idx, u64 *tx_stat);
143 int cgx_get_rx_stats(void *cgxd, int lmac_id, int idx, u64 *rx_stat);
144 int cgx_stats_reset(void *cgxd, int lmac_id);
145 int cgx_lmac_rx_tx_enable(void *cgxd, int lmac_id, bool enable);
146 int cgx_lmac_tx_enable(void *cgxd, int lmac_id, bool enable);
[all …]
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 …]
Dlmac_common.h100 void (*mac_enadis_rx_pause_fwding)(void *cgxd,
104 int (*mac_get_pause_frm_status)(void *cgxd,
109 int (*mac_enadis_pause_frm)(void *cgxd,
114 void (*mac_pause_frm_config)(void *cgxd,
119 void (*mac_enadis_ptp_config)(void *cgxd,
123 int (*mac_rx_tx_enable)(void *cgxd, int lmac_id, bool enable);
124 int (*mac_tx_enable)(void *cgxd, int lmac_id, bool enable);
125 int (*pfc_config)(void *cgxd, int lmac_id,
128 int (*mac_get_pfc_frm_cfg)(void *cgxd, int lmac_id,
130 int (*mac_reset)(void *cgxd, int lmac_id, u8 pf_req_flr);
[all …]
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()
150 int cgx_get_lmac_cnt(void *cgxd) in cgx_get_lmac_cnt() argument
152 struct cgx *cgx = cgxd; in cgx_get_lmac_cnt()
192 int cgx_get_cgxid(void *cgxd) in cgx_get_cgxid() argument
194 struct cgx *cgx = cgxd; in cgx_get_cgxid()
[all …]
Drpm.h121 int rpm_lmac_get_pause_frm_status(void *cgxd, int lmac_id, u8 *tx_pause,
137 int rpm_get_fec_stats(void *cgxd, int lmac_id, struct cgx_fec_stats_rsp *rsp);
Drvu_debugfs.c2761 err = rvu_cgx_nix_cuml_stats(rvu, cgxd, lmac_id, (idx), \
2771 err = rvu_cgx_nix_cuml_stats(rvu, cgxd, lmac_id, (idx), \
2782 void *cgxd = s->private; in cgx_print_stats() local
2793 mac_ops = get_mac_ops(cgxd); in cgx_print_stats()
2800 err = cgx_get_link_info(cgxd, lmac_id, &linfo); in cgx_print_stats()
2852 err = mac_ops->mac_get_rx_stats(cgxd, lmac_id, stat, &rx_stat); in cgx_print_stats()
2868 err = mac_ops->mac_get_tx_stats(cgxd, lmac_id, stat, &tx_stat); in cgx_print_stats()
2913 void *cgxd = s->private; in cgx_print_dmac_flt() local
2926 pf = cgxlmac_to_pf(rvu, cgx_get_cgxid(cgxd), lmac_id); in cgx_print_dmac_flt()
2933 cfg = cgx_read_dmac_ctrl(cgxd, lmac_id); in cgx_print_dmac_flt()
[all …]
Drvu.h885 int rvu_cgx_nix_cuml_stats(struct rvu *rvu, void *cgxd, int lmac_id, int index,
993 int rvu_cgx_config_tx(void *cgxd, int lmac_id, bool enable);
Drvu_nix.c5228 void *cgxd; in rvu_nix_lf_teardown() local
5272 cgxd = rvu_cgx_pdata(cgx_id, rvu); in rvu_nix_lf_teardown()
5273 mac_ops = get_mac_ops(cgxd); in rvu_nix_lf_teardown()
5274 mac_ops->mac_enadis_ptp_config(cgxd, lmac_id, false); in rvu_nix_lf_teardown()