Lines Matching refs:uec_info
26 static uec_info_t uec_info[] = { variable
131 ucc_fast_get_qe_cr_subblock(uec->uec_info->uf_info.ucc_num); in uec_graceful_stop_tx()
169 ucc_fast_get_qe_cr_subblock(uec->uec_info->uf_info.ucc_num); in uec_graceful_stop_rx()
184 if (!uec || !uec->uec_info) { in uec_restart_tx()
190 ucc_fast_get_qe_cr_subblock(uec->uec_info->uf_info.ucc_num); in uec_restart_tx()
203 if (!uec || !uec->uec_info) { in uec_restart_rx()
209 ucc_fast_get_qe_cr_subblock(uec->uec_info->uf_info.ucc_num); in uec_restart_rx()
229 if (uec->uec_info->uf_info.ucc_num >= UCC_MAX_NUM) { in uec_open()
259 if (uec->uec_info->uf_info.ucc_num >= UCC_MAX_NUM) { in uec_stop()
439 if (uec->uec_info->uf_info.eth_type == GIGA_ETH) { in init_phy()
455 mii_info->mii_id = uec->uec_info->phy_address; in init_phy()
463 qe_set_mii_clk_src(uec->uec_info->uf_info.ucc_num); in init_phy()
521 uec->uec_info->enet_interface_type; in adjust_link()
522 if (uec->uec_info->uf_info.eth_type == GIGA_ETH) { in adjust_link()
725 uec_info_t *uec_info; in uec_init_tx_parameter() local
730 uec_info = uec->uec_info; in uec_init_tx_parameter()
756 end_bd = (u32)uec->p_tx_bd_ring + (uec_info->tx_bd_ring_len - 1) in uec_init_tx_parameter()
893 uec_info_t *uec_info; in uec_issue_init_enet_rxtx_cmd() local
901 uec_info = uec->uec_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 init_enet_offset | (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()
966 init_enet_offset | (u32)uec_info->risc_tx; in uec_issue_init_enet_rxtx_cmd()
975 uec->uec_info->uf_info.ucc_num); in uec_issue_init_enet_rxtx_cmd()
984 uec_info_t *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, uec_info->speed); in uec_startup()
1081 qe_set_mii_clk_src(uec_info->uf_info.ucc_num); in uec_startup()
1094 if ((uec->uec_info->enet_interface_type == PHY_INTERFACE_MODE_SGMII) && in uec_startup()
1095 (uec->uec_info->speed == SPEED_1000)) { in uec_startup()
1107 length = ((uec_info->tx_bd_ring_len * SIZEOFBD) / in uec_startup()
1110 if ((uec_info->tx_bd_ring_len * SIZEOFBD) % in uec_startup()
1126 length = uec_info->rx_bd_ring_len * SIZEOFBD; in uec_startup()
1138 length = uec_info->rx_bd_ring_len * MAX_RXBUF_LEN; in uec_startup()
1153 for (i = 0; i < uec_info->tx_bd_ring_len; i++) { in uec_startup()
1165 for (i = 0; i < uec_info->rx_bd_ring_len; i++) { in uec_startup()
1350 int uec_initialize(bd_t *bis, uec_info_t *uec_info) in uec_initialize() argument
1371 uec_info->risc_tx = QE_RISC_ALLOCATION_FOUR_RISCS; in uec_initialize()
1372 uec_info->risc_rx = QE_RISC_ALLOCATION_FOUR_RISCS; in uec_initialize()
1375 devlist[uec_info->uf_info.ucc_num] = dev; in uec_initialize()
1377 uec->uec_info = uec_info; in uec_initialize()
1380 sprintf(dev->name, "UEC%d", uec_info->uf_info.ucc_num); in uec_initialize()
1429 return uec_eth_init(bis, uec_info, ARRAY_SIZE(uec_info)); in uec_standard_init()