Lines Matching refs:cgxd

72 static bool is_dev_rpm(void *cgxd)  in is_dev_rpm()  argument
74 struct cgx *cgx = cgxd; in is_dev_rpm()
102 struct mac_ops *get_mac_ops(void *cgxd) in get_mac_ops() argument
104 if (!cgxd) in get_mac_ops()
105 return cgxd; in get_mac_ops()
107 return ((struct cgx *)cgxd)->mac_ops; in get_mac_ops()
145 int cgx_get_lmac_cnt(void *cgxd) in cgx_get_lmac_cnt() argument
147 struct cgx *cgx = cgxd; in cgx_get_lmac_cnt()
180 int cgx_get_cgxid(void *cgxd) in cgx_get_cgxid() argument
182 struct cgx *cgx = cgxd; in cgx_get_cgxid()
205 int cgx_get_link_info(void *cgxd, int lmac_id, in cgx_get_link_info() argument
208 struct lmac *lmac = lmac_pdata(lmac_id, cgxd); in cgx_get_link_info()
266 u64 cgx_read_dmac_ctrl(void *cgxd, int lmac_id) in cgx_read_dmac_ctrl() argument
269 struct cgx *cgx = cgxd; in cgx_read_dmac_ctrl()
271 if (!cgxd || !is_lmac_valid(cgxd, lmac_id)) in cgx_read_dmac_ctrl()
274 cgx = cgxd; in cgx_read_dmac_ctrl()
278 return cgx_read(cgxd, lmac_id, CGXX_CMRX_RX_DMAC_CTL0); in cgx_read_dmac_ctrl()
281 u64 cgx_read_dmac_entry(void *cgxd, int index) in cgx_read_dmac_entry() argument
286 if (!cgxd) in cgx_read_dmac_entry()
289 cgx = cgxd; in cgx_read_dmac_entry()
481 int cgx_set_pkind(void *cgxd, u8 lmac_id, int pkind) in cgx_set_pkind() argument
483 struct cgx *cgx = cgxd; in cgx_set_pkind()
492 static u8 cgx_get_lmac_type(void *cgxd, int lmac_id) in cgx_get_lmac_type() argument
494 struct cgx *cgx = cgxd; in cgx_get_lmac_type()
501 static u32 cgx_get_lmac_fifo_len(void *cgxd, int lmac_id) in cgx_get_lmac_fifo_len() argument
503 struct cgx *cgx = cgxd; in cgx_get_lmac_fifo_len()
528 int cgx_lmac_internal_loopback(void *cgxd, int lmac_id, bool enable) in cgx_lmac_internal_loopback() argument
530 struct cgx *cgx = cgxd; in cgx_lmac_internal_loopback()
607 static int cgx_lmac_get_pause_frm_status(void *cgxd, int lmac_id, in cgx_lmac_get_pause_frm_status() argument
610 struct cgx *cgx = cgxd; in cgx_lmac_get_pause_frm_status()
628 void cgx_lmac_enadis_rx_pause_fwding(void *cgxd, int lmac_id, bool enable) in cgx_lmac_enadis_rx_pause_fwding() argument
630 struct cgx *cgx = cgxd; in cgx_lmac_enadis_rx_pause_fwding()
682 int cgx_get_rx_stats(void *cgxd, int lmac_id, int idx, u64 *rx_stat) in cgx_get_rx_stats() argument
684 struct cgx *cgx = cgxd; in cgx_get_rx_stats()
692 int cgx_get_tx_stats(void *cgxd, int lmac_id, int idx, u64 *tx_stat) in cgx_get_tx_stats() argument
694 struct cgx *cgx = cgxd; in cgx_get_tx_stats()
702 u64 cgx_features_get(void *cgxd) in cgx_features_get() argument
704 return ((struct cgx *)cgxd)->hw_features; in cgx_features_get()
735 int cgx_get_fec_stats(void *cgxd, int lmac_id, struct cgx_fec_stats_rsp *rsp) in cgx_get_fec_stats() argument
739 struct cgx *cgx = cgxd; in cgx_get_fec_stats()
761 int cgx_lmac_rx_tx_enable(void *cgxd, int lmac_id, bool enable) in cgx_lmac_rx_tx_enable() argument
763 struct cgx *cgx = cgxd; in cgx_lmac_rx_tx_enable()
778 int cgx_lmac_tx_enable(void *cgxd, int lmac_id, bool enable) in cgx_lmac_tx_enable() argument
780 struct cgx *cgx = cgxd; in cgx_lmac_tx_enable()
798 static int cgx_lmac_enadis_pause_frm(void *cgxd, int lmac_id, in cgx_lmac_enadis_pause_frm() argument
801 struct cgx *cgx = cgxd; in cgx_lmac_enadis_pause_frm()
831 static void cgx_lmac_pause_frm_config(void *cgxd, int lmac_id, bool enable) in cgx_lmac_pause_frm_config() argument
833 struct cgx *cgx = cgxd; in cgx_lmac_pause_frm_config()
883 int verify_lmac_fc_cfg(void *cgxd, int lmac_id, u8 tx_pause, u8 rx_pause, in verify_lmac_fc_cfg() argument
886 struct cgx *cgx = cgxd; in verify_lmac_fc_cfg()
919 int cgx_lmac_pfc_config(void *cgxd, int lmac_id, u8 tx_pause, in cgx_lmac_pfc_config() argument
922 struct cgx *cgx = cgxd; in cgx_lmac_pfc_config()
962 int cgx_lmac_get_pfc_frm_cfg(void *cgxd, int lmac_id, u8 *tx_pause, in cgx_lmac_get_pfc_frm_cfg() argument
965 struct cgx *cgx = cgxd; in cgx_lmac_get_pfc_frm_cfg()
979 void cgx_lmac_ptp_config(void *cgxd, int lmac_id, bool enable) in cgx_lmac_ptp_config() argument
981 struct cgx *cgx = cgxd; in cgx_lmac_ptp_config()
1355 int cgx_lmac_evh_register(struct cgx_event_cb *cb, void *cgxd, int lmac_id) in cgx_lmac_evh_register() argument
1357 struct cgx *cgx = cgxd; in cgx_lmac_evh_register()
1369 int cgx_lmac_evh_unregister(void *cgxd, int lmac_id) in cgx_lmac_evh_unregister() argument
1373 struct cgx *cgx = cgxd; in cgx_lmac_evh_unregister()
1407 int cgx_set_link_mode(void *cgxd, struct cgx_set_link_mode_args args, in cgx_set_link_mode() argument
1410 struct cgx *cgx = cgxd; in cgx_set_link_mode()
1452 int cgx_get_phy_fec_stats(void *cgxd, int lmac_id) in cgx_get_phy_fec_stats() argument
1454 struct cgx *cgx = cgxd; in cgx_get_phy_fec_stats()
1533 int cgx_lmac_linkup_start(void *cgxd) in cgx_lmac_linkup_start() argument
1535 struct cgx *cgx = cgxd; in cgx_lmac_linkup_start()
1580 int cgx_get_nr_lmacs(void *cgxd) in cgx_get_nr_lmacs() argument
1582 struct cgx *cgx = cgxd; in cgx_get_nr_lmacs()
1587 u8 cgx_get_lmacid(void *cgxd, u8 lmac_index) in cgx_get_lmacid() argument
1589 struct cgx *cgx = cgxd; in cgx_get_lmacid()
1594 unsigned long cgx_get_lmac_bmap(void *cgxd) in cgx_get_lmac_bmap() argument
1596 struct cgx *cgx = cgxd; in cgx_get_lmac_bmap()