Lines Matching refs:uec_info
75 struct uec_inf *ui = uec->uec_info; in uec_restart_tx()
89 struct uec_inf *ui = uec->uec_info; in uec_restart_rx()
108 if (uec->uec_info->uf_info.ucc_num >= UCC_MAX_NUM) { in uec_open()
131 struct uec_inf *uec_info = uec->uec_info; in uec_set_mac_if_mode() local
138 enet_if_mode = uec_info->enet_interface_type; in uec_set_mac_if_mode()
146 switch (uec_info->speed) { in uec_set_mac_if_mode()
216 struct uec_inf *uec_info = uec->uec_info; in qe_uec_start() local
225 uec_info->speed = phydev->speed; in qe_uec_start()
341 ucc_fast_get_qe_cr_subblock(uec->uec_info->uf_info.ucc_num); in uec_graceful_stop_tx()
374 ucc_fast_get_qe_cr_subblock(uec->uec_info->uf_info.ucc_num); in uec_graceful_stop_rx()
388 if (uec->uec_info->uf_info.ucc_num >= UCC_MAX_NUM) { in uec_stop()
494 struct uec_inf *uec_info; in uec_init_tx_parameter() local
499 uec_info = uec->uec_info; in uec_init_tx_parameter()
525 end_bd = (u32)uec->p_tx_bd_ring + (uec_info->tx_bd_ring_len - 1) in uec_init_tx_parameter()
664 struct uec_inf *uec_info; in uec_issue_init_enet_rxtx_cmd() local
673 uec_info = uec->uec_info; in uec_issue_init_enet_rxtx_cmd()
674 uf_info = &uec_info->uf_info; in uec_issue_init_enet_rxtx_cmd()
696 p_init_enet_param->rgftgfrxglobal |= ((u32)uec_info->num_threads_rx) in uec_issue_init_enet_rxtx_cmd()
698 p_init_enet_param->rgftgfrxglobal |= ((u32)uec_info->num_threads_tx) in uec_issue_init_enet_rxtx_cmd()
703 (u32)uec_info->risc_rx; in uec_issue_init_enet_rxtx_cmd()
721 off | (u32)uec_info->risc_rx; in uec_issue_init_enet_rxtx_cmd()
727 (u32)uec_info->risc_tx; in uec_issue_init_enet_rxtx_cmd()
741 off | (u32)uec_info->risc_tx; in uec_issue_init_enet_rxtx_cmd()
760 struct uec_inf *uec_info; in uec_startup() local
774 uec_info = uec->uec_info; in uec_startup()
775 uf_info = &uec_info->uf_info; in uec_startup()
778 if (uec_info->rx_bd_ring_len < UEC_RX_BD_RING_SIZE_MIN || in uec_startup()
779 uec_info->rx_bd_ring_len % UEC_RX_BD_RING_SIZE_ALIGNMENT) { in uec_startup()
786 if (uec_info->tx_bd_ring_len < UEC_TX_BD_RING_SIZE_MIN) { in uec_startup()
813 if (uec_convert_threads_num(uec_info->num_threads_tx, in uec_startup()
818 if (uec_convert_threads_num(uec_info->num_threads_rx, in uec_startup()
850 length = ((uec_info->tx_bd_ring_len * SIZEOFBD) / in uec_startup()
853 if ((uec_info->tx_bd_ring_len * SIZEOFBD) % in uec_startup()
867 length = uec_info->rx_bd_ring_len * SIZEOFBD; in uec_startup()
878 length = uec_info->rx_bd_ring_len * MAX_RXBUF_LEN; in uec_startup()
892 for (i = 0; i < uec_info->tx_bd_ring_len; i++) { in uec_startup()
904 for (i = 0; i < uec_info->rx_bd_ring_len; i++) { in uec_startup()
963 struct uec_inf *uec_info = uec->uec_info; in qe_uec_set_eth_type() local
964 struct ucc_fast_inf *uf_info = &uec_info->uf_info; in qe_uec_set_eth_type()
966 switch (uec_info->enet_interface_type) { in qe_uec_set_eth_type()
988 struct uec_inf *uec_info; in qe_uec_set_uec_info() local
994 uec_info = (struct uec_inf *)malloc(sizeof(struct uec_inf)); in qe_uec_set_uec_info()
995 if (!uec_info) in qe_uec_set_uec_info()
998 uf_info = &uec_info->uf_info; in qe_uec_set_uec_info()
1065 uec_info->num_threads_tx = UEC_NUM_OF_THREADS_1; in qe_uec_set_uec_info()
1066 uec_info->num_threads_rx = UEC_NUM_OF_THREADS_1; in qe_uec_set_uec_info()
1067 uec_info->risc_tx = QE_RISC_ALLOCATION_RISC1_AND_RISC2; in qe_uec_set_uec_info()
1068 uec_info->risc_rx = QE_RISC_ALLOCATION_RISC1_AND_RISC2; in qe_uec_set_uec_info()
1069 uec_info->tx_bd_ring_len = 16; in qe_uec_set_uec_info()
1070 uec_info->rx_bd_ring_len = 16; in qe_uec_set_uec_info()
1072 uec_info->risc_tx = QE_RISC_ALLOCATION_FOUR_RISCS; in qe_uec_set_uec_info()
1073 uec_info->risc_rx = QE_RISC_ALLOCATION_FOUR_RISCS; in qe_uec_set_uec_info()
1076 uec_info->enet_interface_type = pdata->phy_interface; in qe_uec_set_uec_info()
1078 uec->uec_info = uec_info; in qe_uec_set_uec_info()
1083 free(uec_info); in qe_uec_set_uec_info()
1112 free(uec->uec_info); in qe_uec_probe()