ethqos 95 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c static int rgmii_readl(struct qcom_ethqos *ethqos, unsigned int offset) ethqos 97 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c return readl(ethqos->rgmii_base + offset); ethqos 100 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c static void rgmii_writel(struct qcom_ethqos *ethqos, ethqos 103 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c writel(value, ethqos->rgmii_base + offset); ethqos 106 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c static void rgmii_updatel(struct qcom_ethqos *ethqos, ethqos 111 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c temp = rgmii_readl(ethqos, offset); ethqos 113 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_writel(ethqos, temp, offset); ethqos 116 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c static void rgmii_dump(struct qcom_ethqos *ethqos) ethqos 118 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c dev_dbg(ðqos->pdev->dev, "Rgmii register dump\n"); ethqos 119 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c dev_dbg(ðqos->pdev->dev, "RGMII_IO_MACRO_CONFIG: %x\n", ethqos 120 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_readl(ethqos, RGMII_IO_MACRO_CONFIG)); ethqos 121 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c dev_dbg(ðqos->pdev->dev, "SDCC_HC_REG_DLL_CONFIG: %x\n", ethqos 122 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_readl(ethqos, SDCC_HC_REG_DLL_CONFIG)); ethqos 123 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c dev_dbg(ðqos->pdev->dev, "SDCC_HC_REG_DDR_CONFIG: %x\n", ethqos 124 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_readl(ethqos, SDCC_HC_REG_DDR_CONFIG)); ethqos 125 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c dev_dbg(ðqos->pdev->dev, "SDCC_HC_REG_DLL_CONFIG2: %x\n", ethqos 126 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_readl(ethqos, SDCC_HC_REG_DLL_CONFIG2)); ethqos 127 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c dev_dbg(ðqos->pdev->dev, "SDC4_STATUS: %x\n", ethqos 128 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_readl(ethqos, SDC4_STATUS)); ethqos 129 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c dev_dbg(ðqos->pdev->dev, "SDCC_USR_CTL: %x\n", ethqos 130 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_readl(ethqos, SDCC_USR_CTL)); ethqos 131 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c dev_dbg(ðqos->pdev->dev, "RGMII_IO_MACRO_CONFIG2: %x\n", ethqos 132 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_readl(ethqos, RGMII_IO_MACRO_CONFIG2)); ethqos 133 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c dev_dbg(ðqos->pdev->dev, "RGMII_IO_MACRO_DEBUG1: %x\n", ethqos 134 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_readl(ethqos, RGMII_IO_MACRO_DEBUG1)); ethqos 135 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c dev_dbg(ðqos->pdev->dev, "EMAC_SYSTEM_LOW_POWER_DEBUG: %x\n", ethqos 136 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_readl(ethqos, EMAC_SYSTEM_LOW_POWER_DEBUG)); ethqos 145 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c ethqos_update_rgmii_clk(struct qcom_ethqos *ethqos, unsigned int speed) ethqos 149 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c ethqos->rgmii_clk_rate = RGMII_1000_NOM_CLK_FREQ; ethqos 153 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c ethqos->rgmii_clk_rate = RGMII_ID_MODE_100_LOW_SVS_CLK_FREQ; ethqos 157 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c ethqos->rgmii_clk_rate = RGMII_ID_MODE_10_LOW_SVS_CLK_FREQ; ethqos 161 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c clk_set_rate(ethqos->rgmii_clk, ethqos->rgmii_clk_rate); ethqos 164 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c static void ethqos_set_func_clk_en(struct qcom_ethqos *ethqos) ethqos 166 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, RGMII_CONFIG_FUNC_CLK_EN, ethqos 184 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c static int ethqos_dll_configure(struct qcom_ethqos *ethqos) ethqos 190 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, SDCC_DLL_CONFIG_CDR_EN, ethqos 194 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, SDCC_DLL_CONFIG_CDR_EXT_EN, ethqos 198 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, SDCC_DLL_CONFIG_CK_OUT_EN, ethqos 202 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, SDCC_DLL_CONFIG_DLL_EN, ethqos 205 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, SDCC_DLL_MCLK_GATING_EN, ethqos 208 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, SDCC_DLL_CDR_FINE_PHASE, ethqos 213 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c val = rgmii_readl(ethqos, SDCC_HC_REG_DLL_CONFIG); ethqos 221 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c dev_err(ðqos->pdev->dev, "Clear CK_OUT_EN timedout\n"); ethqos 224 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, SDCC_DLL_CONFIG_CK_OUT_EN, ethqos 230 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c val = rgmii_readl(ethqos, SDCC_HC_REG_DLL_CONFIG); ethqos 238 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c dev_err(ðqos->pdev->dev, "Set CK_OUT_EN timedout\n"); ethqos 241 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, SDCC_DLL_CONFIG2_DDR_CAL_EN, ethqos 244 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, SDCC_DLL_CONFIG2_DLL_CLOCK_DIS, ethqos 247 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, SDCC_DLL_CONFIG2_MCLK_FREQ_CALC, ethqos 250 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, SDCC_DLL_CONFIG2_DDR_TRAFFIC_INIT_SEL, ethqos 253 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, SDCC_DLL_CONFIG2_DDR_TRAFFIC_INIT_SW, ethqos 260 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c static int ethqos_rgmii_macro_init(struct qcom_ethqos *ethqos) ethqos 263 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, RGMII_CONFIG2_TX_TO_RX_LOOPBACK_EN, ethqos 267 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, RGMII_CONFIG_INTF_SEL, ethqos 270 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c switch (ethqos->speed) { ethqos 272 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, RGMII_CONFIG_DDR_MODE, ethqos 274 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, RGMII_CONFIG_BYPASS_TX_ID_EN, ethqos 276 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, RGMII_CONFIG_POS_NEG_DATA_SEL, ethqos 279 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, RGMII_CONFIG_PROG_SWAP, ethqos 281 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, RGMII_CONFIG2_DATA_DIVIDE_CLK_SEL, ethqos 283 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, RGMII_CONFIG2_TX_CLK_PHASE_SHIFT_EN, ethqos 286 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, RGMII_CONFIG2_RSVD_CONFIG15, ethqos 288 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, RGMII_CONFIG2_RX_PROG_SWAP, ethqos 293 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, SDCC_DDR_CONFIG_PRG_RCLK_DLY, ethqos 295 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, SDCC_DDR_CONFIG_PRG_DLY_EN, ethqos 298 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, RGMII_CONFIG_LOOPBACK_EN, ethqos 303 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, RGMII_CONFIG_DDR_MODE, ethqos 305 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, RGMII_CONFIG_BYPASS_TX_ID_EN, ethqos 308 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, RGMII_CONFIG_POS_NEG_DATA_SEL, ethqos 310 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, RGMII_CONFIG_PROG_SWAP, ethqos 312 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, RGMII_CONFIG2_DATA_DIVIDE_CLK_SEL, ethqos 314 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, RGMII_CONFIG2_TX_CLK_PHASE_SHIFT_EN, ethqos 317 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, RGMII_CONFIG_MAX_SPD_PRG_2, ethqos 319 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, RGMII_CONFIG2_RSVD_CONFIG15, ethqos 321 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, RGMII_CONFIG2_RX_PROG_SWAP, ethqos 324 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, SDCC_DDR_CONFIG_EXT_PRG_RCLK_DLY_CODE, ethqos 326 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, SDCC_DDR_CONFIG_EXT_PRG_RCLK_DLY, ethqos 329 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, SDCC_DDR_CONFIG_EXT_PRG_RCLK_DLY_EN, ethqos 332 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, RGMII_CONFIG_LOOPBACK_EN, ethqos 337 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, RGMII_CONFIG_DDR_MODE, ethqos 339 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, RGMII_CONFIG_BYPASS_TX_ID_EN, ethqos 342 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, RGMII_CONFIG_POS_NEG_DATA_SEL, ethqos 344 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, RGMII_CONFIG_PROG_SWAP, ethqos 346 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, RGMII_CONFIG2_DATA_DIVIDE_CLK_SEL, ethqos 348 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, RGMII_CONFIG2_TX_CLK_PHASE_SHIFT_EN, ethqos 350 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, RGMII_CONFIG_MAX_SPD_PRG_9, ethqos 353 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, RGMII_CONFIG2_RSVD_CONFIG15, ethqos 355 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, RGMII_CONFIG2_RX_PROG_SWAP, ethqos 358 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, SDCC_DDR_CONFIG_EXT_PRG_RCLK_DLY_CODE, ethqos 360 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, SDCC_DDR_CONFIG_EXT_PRG_RCLK_DLY, ethqos 363 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, SDCC_DDR_CONFIG_EXT_PRG_RCLK_DLY_EN, ethqos 366 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, RGMII_CONFIG_LOOPBACK_EN, ethqos 370 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c dev_err(ðqos->pdev->dev, ethqos 371 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c "Invalid speed %d\n", ethqos->speed); ethqos 378 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c static int ethqos_configure(struct qcom_ethqos *ethqos) ethqos 384 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c for (i = 0; i < ethqos->num_por; i++) ethqos 385 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_writel(ethqos, ethqos->por[i].value, ethqos 386 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c ethqos->por[i].offset); ethqos 387 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c ethqos_set_func_clk_en(ethqos); ethqos 392 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, SDCC_DLL_CONFIG_DLL_RST, ethqos 396 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, SDCC_DLL_CONFIG_PDN, ethqos 400 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, SDCC_DLL_CONFIG_DLL_RST, 0, ethqos 404 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, SDCC_DLL_CONFIG_PDN, 0, ethqos 407 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c if (ethqos->speed != SPEED_100 && ethqos->speed != SPEED_10) { ethqos 409 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, SDCC_DLL_CONFIG_DLL_EN, ethqos 413 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, SDCC_DLL_CONFIG_CK_OUT_EN, ethqos 418 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_updatel(ethqos, GENMASK(26, 24), BIT(26), SDCC_USR_CTL); ethqos 423 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c dll_lock = rgmii_readl(ethqos, SDC4_STATUS); ethqos 429 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c dev_err(ðqos->pdev->dev, ethqos 433 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c if (ethqos->speed == SPEED_1000) ethqos 434 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c ethqos_dll_configure(ethqos); ethqos 436 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c ethqos_rgmii_macro_init(ethqos); ethqos 443 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c struct qcom_ethqos *ethqos = priv; ethqos 445 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c ethqos->speed = speed; ethqos 446 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c ethqos_update_rgmii_clk(ethqos, speed); ethqos 447 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c ethqos_configure(ethqos); ethqos 456 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c struct qcom_ethqos *ethqos; ethqos 470 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c ethqos = devm_kzalloc(&pdev->dev, sizeof(*ethqos), GFP_KERNEL); ethqos 471 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c if (!ethqos) { ethqos 476 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c ethqos->pdev = pdev; ethqos 478 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c ethqos->rgmii_base = devm_ioremap_resource(&pdev->dev, res); ethqos 479 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c if (IS_ERR(ethqos->rgmii_base)) { ethqos 481 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c ret = PTR_ERR(ethqos->rgmii_base); ethqos 486 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c ethqos->por = data->por; ethqos 487 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c ethqos->num_por = data->num_por; ethqos 489 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c ethqos->rgmii_clk = devm_clk_get(&pdev->dev, "rgmii"); ethqos 490 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c if (IS_ERR(ethqos->rgmii_clk)) { ethqos 491 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c ret = PTR_ERR(ethqos->rgmii_clk); ethqos 495 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c ret = clk_prepare_enable(ethqos->rgmii_clk); ethqos 499 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c ethqos->speed = SPEED_1000; ethqos 500 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c ethqos_update_rgmii_clk(ethqos, SPEED_1000); ethqos 501 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c ethqos_set_func_clk_en(ethqos); ethqos 503 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c plat_dat->bsp_priv = ethqos; ethqos 513 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c rgmii_dump(ethqos); ethqos 518 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c clk_disable_unprepare(ethqos->rgmii_clk); ethqos 528 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c struct qcom_ethqos *ethqos; ethqos 531 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c ethqos = get_stmmac_bsp_priv(&pdev->dev); ethqos 532 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c if (!ethqos) ethqos 536 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c clk_disable_unprepare(ethqos->rgmii_clk);