Lines Matching refs:cgxd
76 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()
217 int cgx_get_link_info(void *cgxd, int lmac_id, in cgx_get_link_info() argument
220 struct lmac *lmac = lmac_pdata(lmac_id, cgxd); in cgx_get_link_info()
263 u64 cgx_read_dmac_ctrl(void *cgxd, int lmac_id) in cgx_read_dmac_ctrl() argument
266 struct cgx *cgx = cgxd; in cgx_read_dmac_ctrl()
268 if (!cgxd || !is_lmac_valid(cgxd, lmac_id)) in cgx_read_dmac_ctrl()
271 cgx = cgxd; in cgx_read_dmac_ctrl()
275 return cgx_read(cgxd, lmac_id, CGXX_CMRX_RX_DMAC_CTL0); in cgx_read_dmac_ctrl()
278 u64 cgx_read_dmac_entry(void *cgxd, int index) in cgx_read_dmac_entry() argument
283 if (!cgxd) in cgx_read_dmac_entry()
286 cgx = cgxd; in cgx_read_dmac_entry()
478 int cgx_set_pkind(void *cgxd, u8 lmac_id, int pkind) in cgx_set_pkind() argument
480 struct cgx *cgx = cgxd; in cgx_set_pkind()
489 static u8 cgx_get_lmac_type(void *cgxd, int lmac_id) in cgx_get_lmac_type() argument
491 struct cgx *cgx = cgxd; in cgx_get_lmac_type()
498 static u32 cgx_get_lmac_fifo_len(void *cgxd, int lmac_id) in cgx_get_lmac_fifo_len() argument
500 struct cgx *cgx = cgxd; in cgx_get_lmac_fifo_len()
525 int cgx_lmac_internal_loopback(void *cgxd, int lmac_id, bool enable) in cgx_lmac_internal_loopback() argument
527 struct cgx *cgx = cgxd; in cgx_lmac_internal_loopback()
606 static int cgx_lmac_get_pause_frm_status(void *cgxd, int lmac_id, in cgx_lmac_get_pause_frm_status() argument
609 struct cgx *cgx = cgxd; in cgx_lmac_get_pause_frm_status()
627 void cgx_lmac_enadis_rx_pause_fwding(void *cgxd, int lmac_id, bool enable) in cgx_lmac_enadis_rx_pause_fwding() argument
629 struct cgx *cgx = cgxd; in cgx_lmac_enadis_rx_pause_fwding()
681 int cgx_get_rx_stats(void *cgxd, int lmac_id, int idx, u64 *rx_stat) in cgx_get_rx_stats() argument
683 struct cgx *cgx = cgxd; in cgx_get_rx_stats()
691 int cgx_get_tx_stats(void *cgxd, int lmac_id, int idx, u64 *tx_stat) in cgx_get_tx_stats() argument
693 struct cgx *cgx = cgxd; in cgx_get_tx_stats()
701 u64 cgx_features_get(void *cgxd) in cgx_features_get() argument
703 return ((struct cgx *)cgxd)->hw_features; in cgx_features_get()
706 int cgx_stats_reset(void *cgxd, int lmac_id) in cgx_stats_reset() argument
708 struct cgx *cgx = cgxd; in cgx_stats_reset()
758 int cgx_get_fec_stats(void *cgxd, int lmac_id, struct cgx_fec_stats_rsp *rsp) in cgx_get_fec_stats() argument
762 struct cgx *cgx = cgxd; in cgx_get_fec_stats()
788 int cgx_lmac_rx_tx_enable(void *cgxd, int lmac_id, bool enable) in cgx_lmac_rx_tx_enable() argument
790 struct cgx *cgx = cgxd; in cgx_lmac_rx_tx_enable()
805 int cgx_lmac_tx_enable(void *cgxd, int lmac_id, bool enable) in cgx_lmac_tx_enable() argument
807 struct cgx *cgx = cgxd; in cgx_lmac_tx_enable()
825 static int cgx_lmac_enadis_pause_frm(void *cgxd, int lmac_id, in cgx_lmac_enadis_pause_frm() argument
828 struct cgx *cgx = cgxd; in cgx_lmac_enadis_pause_frm()
863 static void cgx_lmac_pause_frm_config(void *cgxd, int lmac_id, bool enable) in cgx_lmac_pause_frm_config() argument
865 struct cgx *cgx = cgxd; in cgx_lmac_pause_frm_config()
915 int verify_lmac_fc_cfg(void *cgxd, int lmac_id, u8 tx_pause, u8 rx_pause, in verify_lmac_fc_cfg() argument
918 struct cgx *cgx = cgxd; in verify_lmac_fc_cfg()
951 int cgx_lmac_pfc_config(void *cgxd, int lmac_id, u8 tx_pause, in cgx_lmac_pfc_config() argument
954 struct cgx *cgx = cgxd; in cgx_lmac_pfc_config()
994 int cgx_lmac_get_pfc_frm_cfg(void *cgxd, int lmac_id, u8 *tx_pause, in cgx_lmac_get_pfc_frm_cfg() argument
997 struct cgx *cgx = cgxd; in cgx_lmac_get_pfc_frm_cfg()
1011 void cgx_lmac_ptp_config(void *cgxd, int lmac_id, bool enable) in cgx_lmac_ptp_config() argument
1013 struct cgx *cgx = cgxd; in cgx_lmac_ptp_config()
1393 int cgx_lmac_evh_register(struct cgx_event_cb *cb, void *cgxd, int lmac_id) in cgx_lmac_evh_register() argument
1395 struct cgx *cgx = cgxd; in cgx_lmac_evh_register()
1407 int cgx_lmac_evh_unregister(void *cgxd, int lmac_id) in cgx_lmac_evh_unregister() argument
1411 struct cgx *cgx = cgxd; in cgx_lmac_evh_unregister()
1445 int cgx_set_link_mode(void *cgxd, struct cgx_set_link_mode_args args, in cgx_set_link_mode() argument
1448 struct cgx *cgx = cgxd; in cgx_set_link_mode()
1490 int cgx_get_phy_fec_stats(void *cgxd, int lmac_id) in cgx_get_phy_fec_stats() argument
1492 struct cgx *cgx = cgxd; in cgx_get_phy_fec_stats()
1571 int cgx_lmac_linkup_start(void *cgxd) in cgx_lmac_linkup_start() argument
1573 struct cgx *cgx = cgxd; in cgx_lmac_linkup_start()
1583 int cgx_lmac_reset(void *cgxd, int lmac_id, u8 pf_req_flr) in cgx_lmac_reset() argument
1585 struct cgx *cgx = cgxd; in cgx_lmac_reset()
1593 cgx_write(cgxd, lmac_id, CGXX_CMRX_RX_LOGL_XON, cfg); in cgx_lmac_reset()
1596 cgx_lmac_internal_loopback(cgxd, lmac_id, false); in cgx_lmac_reset()
1627 int cgx_get_nr_lmacs(void *cgxd) in cgx_get_nr_lmacs() argument
1629 struct cgx *cgx = cgxd; in cgx_get_nr_lmacs()
1634 u8 cgx_get_lmacid(void *cgxd, u8 lmac_index) in cgx_get_lmacid() argument
1636 struct cgx *cgx = cgxd; in cgx_get_lmacid()
1641 unsigned long cgx_get_lmac_bmap(void *cgxd) in cgx_get_lmac_bmap() argument
1643 struct cgx *cgx = cgxd; in cgx_get_lmac_bmap()