Lines Matching refs:cgxd
86 static bool is_dev_rpm(void *cgxd) in is_dev_rpm() argument
88 struct cgx *cgx = cgxd; in is_dev_rpm()
117 struct mac_ops *get_mac_ops(void *cgxd) in get_mac_ops() argument
119 if (!cgxd) in get_mac_ops()
120 return cgxd; in get_mac_ops()
122 return ((struct cgx *)cgxd)->mac_ops; in get_mac_ops()
125 u32 cgx_get_fifo_len(void *cgxd) in cgx_get_fifo_len() argument
127 return ((struct cgx *)cgxd)->fifo_len; in cgx_get_fifo_len()
165 int cgx_get_lmac_cnt(void *cgxd) in cgx_get_lmac_cnt() argument
167 struct cgx *cgx = cgxd; in cgx_get_lmac_cnt()
207 int cgx_get_cgxid(void *cgxd) in cgx_get_cgxid() argument
209 struct cgx *cgx = cgxd; in cgx_get_cgxid()
250 int cgx_get_link_info(void *cgxd, int lmac_id, in cgx_get_link_info() argument
253 struct lmac *lmac = lmac_pdata(lmac_id, cgxd); in cgx_get_link_info()
296 u64 cgx_read_dmac_ctrl(void *cgxd, int lmac_id) in cgx_read_dmac_ctrl() argument
299 struct cgx *cgx = cgxd; in cgx_read_dmac_ctrl()
301 if (!cgxd || !is_lmac_valid(cgxd, lmac_id)) in cgx_read_dmac_ctrl()
304 cgx = cgxd; in cgx_read_dmac_ctrl()
308 return cgx_read(cgxd, lmac_id, CGXX_CMRX_RX_DMAC_CTL0); in cgx_read_dmac_ctrl()
311 u64 cgx_read_dmac_entry(void *cgxd, int index) in cgx_read_dmac_entry() argument
316 if (!cgxd) in cgx_read_dmac_entry()
319 cgx = cgxd; in cgx_read_dmac_entry()
511 int cgx_set_pkind(void *cgxd, u8 lmac_id, int pkind) in cgx_set_pkind() argument
513 struct cgx *cgx = cgxd; in cgx_set_pkind()
522 static u8 cgx_get_lmac_type(void *cgxd, int lmac_id) in cgx_get_lmac_type() argument
524 struct cgx *cgx = cgxd; in cgx_get_lmac_type()
531 static u32 cgx_get_lmac_fifo_len(void *cgxd, int lmac_id) in cgx_get_lmac_fifo_len() argument
533 struct cgx *cgx = cgxd; in cgx_get_lmac_fifo_len()
558 int cgx_lmac_internal_loopback(void *cgxd, int lmac_id, bool enable) in cgx_lmac_internal_loopback() argument
560 struct cgx *cgx = cgxd; in cgx_lmac_internal_loopback()
639 static int cgx_lmac_get_pause_frm_status(void *cgxd, int lmac_id, in cgx_lmac_get_pause_frm_status() argument
642 struct cgx *cgx = cgxd; in cgx_lmac_get_pause_frm_status()
660 void cgx_lmac_enadis_rx_pause_fwding(void *cgxd, int lmac_id, bool enable) in cgx_lmac_enadis_rx_pause_fwding() argument
662 struct cgx *cgx = cgxd; in cgx_lmac_enadis_rx_pause_fwding()
714 int cgx_get_rx_stats(void *cgxd, int lmac_id, int idx, u64 *rx_stat) in cgx_get_rx_stats() argument
716 struct cgx *cgx = cgxd; in cgx_get_rx_stats()
724 int cgx_get_tx_stats(void *cgxd, int lmac_id, int idx, u64 *tx_stat) in cgx_get_tx_stats() argument
726 struct cgx *cgx = cgxd; in cgx_get_tx_stats()
734 u64 cgx_features_get(void *cgxd) in cgx_features_get() argument
736 return ((struct cgx *)cgxd)->hw_features; in cgx_features_get()
739 int cgx_stats_reset(void *cgxd, int lmac_id) in cgx_stats_reset() argument
741 struct cgx *cgx = cgxd; in cgx_stats_reset()
791 int cgx_get_fec_stats(void *cgxd, int lmac_id, struct cgx_fec_stats_rsp *rsp) in cgx_get_fec_stats() argument
795 struct cgx *cgx = cgxd; in cgx_get_fec_stats()
821 int cgx_lmac_rx_tx_enable(void *cgxd, int lmac_id, bool enable) in cgx_lmac_rx_tx_enable() argument
823 struct cgx *cgx = cgxd; in cgx_lmac_rx_tx_enable()
838 int cgx_lmac_tx_enable(void *cgxd, int lmac_id, bool enable) in cgx_lmac_tx_enable() argument
840 struct cgx *cgx = cgxd; in cgx_lmac_tx_enable()
858 static int cgx_lmac_enadis_pause_frm(void *cgxd, int lmac_id, in cgx_lmac_enadis_pause_frm() argument
861 struct cgx *cgx = cgxd; in cgx_lmac_enadis_pause_frm()
896 static void cgx_lmac_pause_frm_config(void *cgxd, int lmac_id, bool enable) in cgx_lmac_pause_frm_config() argument
898 struct cgx *cgx = cgxd; in cgx_lmac_pause_frm_config()
948 int verify_lmac_fc_cfg(void *cgxd, int lmac_id, u8 tx_pause, u8 rx_pause, in verify_lmac_fc_cfg() argument
951 struct cgx *cgx = cgxd; in verify_lmac_fc_cfg()
984 int cgx_lmac_pfc_config(void *cgxd, int lmac_id, u8 tx_pause, in cgx_lmac_pfc_config() argument
987 struct cgx *cgx = cgxd; in cgx_lmac_pfc_config()
1027 int cgx_lmac_get_pfc_frm_cfg(void *cgxd, int lmac_id, u8 *tx_pause, in cgx_lmac_get_pfc_frm_cfg() argument
1030 struct cgx *cgx = cgxd; in cgx_lmac_get_pfc_frm_cfg()
1044 void cgx_lmac_ptp_config(void *cgxd, int lmac_id, bool enable) in cgx_lmac_ptp_config() argument
1046 struct cgx *cgx = cgxd; in cgx_lmac_ptp_config()
1426 int cgx_lmac_evh_register(struct cgx_event_cb *cb, void *cgxd, int lmac_id) in cgx_lmac_evh_register() argument
1428 struct cgx *cgx = cgxd; in cgx_lmac_evh_register()
1440 int cgx_lmac_evh_unregister(void *cgxd, int lmac_id) in cgx_lmac_evh_unregister() argument
1444 struct cgx *cgx = cgxd; in cgx_lmac_evh_unregister()
1478 int cgx_set_link_mode(void *cgxd, struct cgx_set_link_mode_args args, in cgx_set_link_mode() argument
1481 struct cgx *cgx = cgxd; in cgx_set_link_mode()
1523 int cgx_get_phy_fec_stats(void *cgxd, int lmac_id) in cgx_get_phy_fec_stats() argument
1525 struct cgx *cgx = cgxd; in cgx_get_phy_fec_stats()
1604 int cgx_lmac_linkup_start(void *cgxd) in cgx_lmac_linkup_start() argument
1606 struct cgx *cgx = cgxd; in cgx_lmac_linkup_start()
1616 int cgx_lmac_reset(void *cgxd, int lmac_id, u8 pf_req_flr) in cgx_lmac_reset() argument
1618 struct cgx *cgx = cgxd; in cgx_lmac_reset()
1626 cgx_write(cgxd, lmac_id, CGXX_CMRX_RX_LOGL_XON, cfg); in cgx_lmac_reset()
1629 cgx_lmac_internal_loopback(cgxd, lmac_id, false); in cgx_lmac_reset()
1660 int cgx_get_nr_lmacs(void *cgxd) in cgx_get_nr_lmacs() argument
1662 struct cgx *cgx = cgxd; in cgx_get_nr_lmacs()
1667 u8 cgx_get_lmacid(void *cgxd, u8 lmac_index) in cgx_get_lmacid() argument
1669 struct cgx *cgx = cgxd; in cgx_get_lmacid()
1674 unsigned long cgx_get_lmac_bmap(void *cgxd) in cgx_get_lmac_bmap() argument
1676 struct cgx *cgx = cgxd; in cgx_get_lmac_bmap()
1822 static void cgx_x2p_reset(void *cgxd, bool enable) in cgx_x2p_reset() argument
1824 struct cgx *cgx = cgxd; in cgx_x2p_reset()
1844 static int cgx_enadis_rx(void *cgxd, int lmac_id, bool enable) in cgx_enadis_rx() argument
1846 struct cgx *cgx = cgxd; in cgx_enadis_rx()