Lines Matching refs:uec_info

29 static struct uec_inf uec_info[] = {  variable
134 ucc_fast_get_qe_cr_subblock(uec->uec_info->uf_info.ucc_num); in uec_graceful_stop_tx()
172 ucc_fast_get_qe_cr_subblock(uec->uec_info->uf_info.ucc_num); in uec_graceful_stop_rx()
187 if (!uec || !uec->uec_info) { in uec_restart_tx()
193 ucc_fast_get_qe_cr_subblock(uec->uec_info->uf_info.ucc_num); in uec_restart_tx()
206 if (!uec || !uec->uec_info) { in uec_restart_rx()
212 ucc_fast_get_qe_cr_subblock(uec->uec_info->uf_info.ucc_num); in uec_restart_rx()
232 if (uec->uec_info->uf_info.ucc_num >= UCC_MAX_NUM) { in uec_open()
260 if (uec->uec_info->uf_info.ucc_num >= UCC_MAX_NUM) { in uec_stop()
436 if (uec->uec_info->uf_info.eth_type == GIGA_ETH) in init_phy()
451 mii_info->mii_id = uec->uec_info->phy_address; in init_phy()
459 qe_set_mii_clk_src(uec->uec_info->uf_info.ucc_num); in init_phy()
516 uec->uec_info->enet_interface_type; in adjust_link()
517 if (uec->uec_info->uf_info.eth_type == GIGA_ETH) { in adjust_link()
720 struct uec_inf *uec_info; in uec_init_tx_parameter() local
725 uec_info = uec->uec_info; in uec_init_tx_parameter()
751 end_bd = (u32)uec->p_tx_bd_ring + (uec_info->tx_bd_ring_len - 1) in uec_init_tx_parameter()
890 struct uec_inf *uec_info; in uec_issue_init_enet_rxtx_cmd() local
899 uec_info = uec->uec_info; in uec_issue_init_enet_rxtx_cmd()
900 uf_info = &uec_info->uf_info; in uec_issue_init_enet_rxtx_cmd()
922 p_init_enet_param->rgftgfrxglobal |= ((u32)uec_info->num_threads_rx) in uec_issue_init_enet_rxtx_cmd()
924 p_init_enet_param->rgftgfrxglobal |= ((u32)uec_info->num_threads_tx) in uec_issue_init_enet_rxtx_cmd()
929 (u32)uec_info->risc_rx; in uec_issue_init_enet_rxtx_cmd()
947 off | (u32)uec_info->risc_rx; in uec_issue_init_enet_rxtx_cmd()
953 (u32)uec_info->risc_tx; in uec_issue_init_enet_rxtx_cmd()
967 off | (u32)uec_info->risc_tx; in uec_issue_init_enet_rxtx_cmd()
984 struct uec_inf *uec_info; in uec_startup() local
998 if (!uec || !uec->uec_info) { in uec_startup()
1003 uec_info = uec->uec_info; in uec_startup()
1004 uf_info = &uec_info->uf_info; in uec_startup()
1007 if (uec_info->rx_bd_ring_len < UEC_RX_BD_RING_SIZE_MIN || in uec_startup()
1008 (uec_info->rx_bd_ring_len % UEC_RX_BD_RING_SIZE_ALIGNMENT)) { in uec_startup()
1015 if (uec_info->tx_bd_ring_len < UEC_TX_BD_RING_SIZE_MIN) { in uec_startup()
1042 if (uec_convert_threads_num(uec_info->num_threads_tx, in uec_startup()
1048 if (uec_convert_threads_num(uec_info->num_threads_rx, in uec_startup()
1071 uec_set_mac_if_mode(uec, uec_info->enet_interface_type, in uec_startup()
1072 uec_info->speed); in uec_startup()
1082 qe_set_mii_clk_src(uec_info->uf_info.ucc_num); in uec_startup()
1095 if (uec->uec_info->enet_interface_type == PHY_INTERFACE_MODE_SGMII && in uec_startup()
1096 uec->uec_info->speed == SPEED_1000) { in uec_startup()
1108 length = ((uec_info->tx_bd_ring_len * SIZEOFBD) / in uec_startup()
1111 if ((uec_info->tx_bd_ring_len * SIZEOFBD) % in uec_startup()
1127 length = uec_info->rx_bd_ring_len * SIZEOFBD; in uec_startup()
1139 length = uec_info->rx_bd_ring_len * MAX_RXBUF_LEN; in uec_startup()
1154 for (i = 0; i < uec_info->tx_bd_ring_len; i++) { in uec_startup()
1166 for (i = 0; i < uec_info->rx_bd_ring_len; i++) { in uec_startup()
1354 int uec_initialize(struct bd_info *bis, struct uec_inf *uec_info) in uec_initialize() argument
1375 uec_info->risc_tx = QE_RISC_ALLOCATION_FOUR_RISCS; in uec_initialize()
1376 uec_info->risc_rx = QE_RISC_ALLOCATION_FOUR_RISCS; in uec_initialize()
1379 devlist[uec_info->uf_info.ucc_num] = dev; in uec_initialize()
1381 uec->uec_info = uec_info; in uec_initialize()
1384 sprintf(dev->name, "UEC%d", uec_info->uf_info.ucc_num); in uec_initialize()
1434 return uec_eth_init(bis, uec_info, ARRAY_SIZE(uec_info)); in uec_standard_init()