grf 87 drivers/clk/rockchip/clk-pll.c struct regmap *grf = pll->ctx->grf; grf 92 drivers/clk/rockchip/clk-pll.c ret = regmap_read(grf, pll->lock_offset, &val); grf 925 drivers/clk/rockchip/clk-pll.c if (!pll->rate_table || IS_ERR(ctx->grf)) grf 931 drivers/clk/rockchip/clk-pll.c if (!pll->rate_table || IS_ERR(ctx->grf)) grf 388 drivers/clk/rockchip/clk.c ctx->grf = syscon_regmap_lookup_by_phandle(ctx->cru_node, grf 461 drivers/clk/rockchip/clk.c flags, ctx->grf, list->muxdiv_offset, grf 240 drivers/clk/rockchip/clk.h struct regmap *grf; grf 384 drivers/clk/rockchip/clk.h int flags, struct regmap *grf, int reg, grf 66 drivers/gpu/drm/rockchip/analogix_dp-rockchip.c struct regmap *grf; grf 200 drivers/gpu/drm/rockchip/analogix_dp-rockchip.c ret = regmap_write(dp->grf, dp->data->lcdsel_grf_reg, val); grf 270 drivers/gpu/drm/rockchip/analogix_dp-rockchip.c dp->grf = syscon_regmap_lookup_by_phandle(np, "rockchip,grf"); grf 271 drivers/gpu/drm/rockchip/analogix_dp-rockchip.c if (IS_ERR(dp->grf)) { grf 273 drivers/gpu/drm/rockchip/analogix_dp-rockchip.c return PTR_ERR(dp->grf); grf 72 drivers/gpu/drm/rockchip/cdn-dp-core.c ret = regmap_write(dp->grf, reg, val); grf 703 drivers/gpu/drm/rockchip/cdn-dp-core.c dp->grf = syscon_regmap_lookup_by_phandle(np, "rockchip,grf"); grf 704 drivers/gpu/drm/rockchip/cdn-dp-core.c if (IS_ERR(dp->grf)) { grf 706 drivers/gpu/drm/rockchip/cdn-dp-core.c return PTR_ERR(dp->grf); grf 84 drivers/gpu/drm/rockchip/cdn-dp-core.h struct regmap *grf; grf 56 drivers/gpu/drm/rockchip/rockchip_lvds.c struct regmap *grf; grf 182 drivers/gpu/drm/rockchip/rockchip_lvds.c ret = regmap_write(lvds->grf, lvds->soc_data->grf_soc_con7, val); grf 236 drivers/gpu/drm/rockchip/rockchip_lvds.c ret = regmap_write(lvds->grf, lvds->soc_data->grf_soc_con7, val); grf 260 drivers/gpu/drm/rockchip/rockchip_lvds.c ret = regmap_write(lvds->grf, lvds->soc_data->grf_soc_con6, val); grf 539 drivers/gpu/drm/rockchip/rockchip_lvds.c lvds->grf = syscon_regmap_lookup_by_phandle(dev->of_node, grf 541 drivers/gpu/drm/rockchip/rockchip_lvds.c if (IS_ERR(lvds->grf)) { grf 543 drivers/gpu/drm/rockchip/rockchip_lvds.c return PTR_ERR(lvds->grf); grf 1239 drivers/i2c/busses/i2c-rk3x.c struct regmap *grf; grf 1241 drivers/i2c/busses/i2c-rk3x.c grf = syscon_regmap_lookup_by_phandle(np, "rockchip,grf"); grf 1242 drivers/i2c/busses/i2c-rk3x.c if (IS_ERR(grf)) { grf 1245 drivers/i2c/busses/i2c-rk3x.c return PTR_ERR(grf); grf 1256 drivers/i2c/busses/i2c-rk3x.c ret = regmap_write(grf, i2c->soc_data->grf_offset, value); grf 69 drivers/media/platform/rockchip/rga/rga.h struct regmap *grf; grf 30 drivers/net/ethernet/arc/emac_rockchip.c struct regmap *grf; grf 56 drivers/net/ethernet/arc/emac_rockchip.c err = regmap_write(emac->grf, emac->soc_data->grf_offset, data); grf 126 drivers/net/ethernet/arc/emac_rockchip.c priv->grf = syscon_regmap_lookup_by_phandle(dev->of_node, grf 128 drivers/net/ethernet/arc/emac_rockchip.c if (IS_ERR(priv->grf)) { grf 130 drivers/net/ethernet/arc/emac_rockchip.c PTR_ERR(priv->grf)); grf 131 drivers/net/ethernet/arc/emac_rockchip.c err = PTR_ERR(priv->grf); grf 186 drivers/net/ethernet/arc/emac_rockchip.c err = regmap_write(priv->grf, priv->soc_data->grf_offset, data); grf 65 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c struct regmap *grf; grf 90 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c if (IS_ERR(bsp_priv->grf)) { grf 95 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, PX30_GRF_GMAC_CON1, grf 110 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, PX30_GRF_GMAC_CON1, grf 118 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, PX30_GRF_GMAC_CON1, grf 169 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c if (IS_ERR(bsp_priv->grf)) { grf 174 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3128_GRF_MAC_CON1, grf 177 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3128_GRF_MAC_CON0, grf 187 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c if (IS_ERR(bsp_priv->grf)) { grf 192 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3128_GRF_MAC_CON1, grf 200 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c if (IS_ERR(bsp_priv->grf)) { grf 206 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3128_GRF_MAC_CON1, grf 209 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3128_GRF_MAC_CON1, grf 212 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3128_GRF_MAC_CON1, grf 222 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c if (IS_ERR(bsp_priv->grf)) { grf 228 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3128_GRF_MAC_CON1, grf 232 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3128_GRF_MAC_CON1, grf 285 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c if (IS_ERR(bsp_priv->grf)) { grf 290 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3228_GRF_MAC_CON1, grf 295 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3228_GRF_MAC_CON0, grf 304 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c if (IS_ERR(bsp_priv->grf)) { grf 309 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3228_GRF_MAC_CON1, grf 314 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3228_GRF_MAC_CON1, GRF_BIT(11)); grf 321 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c if (IS_ERR(bsp_priv->grf)) { grf 327 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3228_GRF_MAC_CON1, grf 330 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3228_GRF_MAC_CON1, grf 333 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3228_GRF_MAC_CON1, grf 343 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c if (IS_ERR(bsp_priv->grf)) { grf 349 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3228_GRF_MAC_CON1, grf 353 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3228_GRF_MAC_CON1, grf 362 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(priv->grf, RK3228_GRF_CON_MUX, grf 407 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c if (IS_ERR(bsp_priv->grf)) { grf 412 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3288_GRF_SOC_CON1, grf 415 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3288_GRF_SOC_CON3, grf 425 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c if (IS_ERR(bsp_priv->grf)) { grf 430 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3288_GRF_SOC_CON1, grf 438 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c if (IS_ERR(bsp_priv->grf)) { grf 444 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3288_GRF_SOC_CON1, grf 447 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3288_GRF_SOC_CON1, grf 450 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3288_GRF_SOC_CON1, grf 460 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c if (IS_ERR(bsp_priv->grf)) { grf 466 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3288_GRF_SOC_CON1, grf 470 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3288_GRF_SOC_CON1, grf 523 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c if (IS_ERR(bsp_priv->grf)) { grf 528 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3328_GRF_MAC_CON1, grf 534 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3328_GRF_MAC_CON0, grf 544 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c if (IS_ERR(bsp_priv->grf)) { grf 552 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, reg, grf 561 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c if (IS_ERR(bsp_priv->grf)) { grf 567 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3328_GRF_MAC_CON1, grf 570 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3328_GRF_MAC_CON1, grf 573 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3328_GRF_MAC_CON1, grf 584 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c if (IS_ERR(bsp_priv->grf)) { grf 593 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, reg, grf 597 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, reg, grf 606 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(priv->grf, RK3328_GRF_MACPHY_CON1, grf 651 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c if (IS_ERR(bsp_priv->grf)) { grf 656 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3366_GRF_SOC_CON6, grf 659 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3366_GRF_SOC_CON7, grf 669 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c if (IS_ERR(bsp_priv->grf)) { grf 674 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3366_GRF_SOC_CON6, grf 682 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c if (IS_ERR(bsp_priv->grf)) { grf 688 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3366_GRF_SOC_CON6, grf 691 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3366_GRF_SOC_CON6, grf 694 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3366_GRF_SOC_CON6, grf 704 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c if (IS_ERR(bsp_priv->grf)) { grf 710 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3366_GRF_SOC_CON6, grf 714 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3366_GRF_SOC_CON6, grf 762 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c if (IS_ERR(bsp_priv->grf)) { grf 767 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3368_GRF_SOC_CON15, grf 770 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3368_GRF_SOC_CON16, grf 780 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c if (IS_ERR(bsp_priv->grf)) { grf 785 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3368_GRF_SOC_CON15, grf 793 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c if (IS_ERR(bsp_priv->grf)) { grf 799 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3368_GRF_SOC_CON15, grf 802 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3368_GRF_SOC_CON15, grf 805 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3368_GRF_SOC_CON15, grf 815 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c if (IS_ERR(bsp_priv->grf)) { grf 821 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3368_GRF_SOC_CON15, grf 825 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3368_GRF_SOC_CON15, grf 873 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c if (IS_ERR(bsp_priv->grf)) { grf 878 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3399_GRF_SOC_CON5, grf 881 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3399_GRF_SOC_CON6, grf 891 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c if (IS_ERR(bsp_priv->grf)) { grf 896 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3399_GRF_SOC_CON5, grf 904 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c if (IS_ERR(bsp_priv->grf)) { grf 910 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3399_GRF_SOC_CON5, grf 913 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3399_GRF_SOC_CON5, grf 916 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3399_GRF_SOC_CON5, grf 926 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c if (IS_ERR(bsp_priv->grf)) { grf 932 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3399_GRF_SOC_CON5, grf 936 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RK3399_GRF_SOC_CON5, grf 967 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c if (IS_ERR(bsp_priv->grf)) { grf 972 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RV1108_GRF_GMAC_CON0, grf 980 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c if (IS_ERR(bsp_priv->grf)) { grf 986 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RV1108_GRF_GMAC_CON0, grf 990 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(bsp_priv->grf, RV1108_GRF_GMAC_CON0, grf 1020 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(priv->grf, RK_GRF_MACPHY_CON0, RK_MACPHY_CFG_CLK_50M); grf 1021 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(priv->grf, RK_GRF_MACPHY_CON0, RK_GMAC2PHY_RMII_MODE); grf 1023 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(priv->grf, RK_GRF_MACPHY_CON2, RK_GRF_CON2_MACPHY_ID); grf 1024 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(priv->grf, RK_GRF_MACPHY_CON3, RK_GRF_CON3_MACPHY_ID); grf 1028 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(priv->grf, RK_GRF_MACPHY_CON0, RK_MACPHY_DISABLE); grf 1035 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(priv->grf, RK_GRF_MACPHY_CON0, RK_MACPHY_ENABLE); grf 1042 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c regmap_write(priv->grf, RK_GRF_MACPHY_CON0, RK_MACPHY_DISABLE); grf 1275 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c bsp_priv->grf = syscon_regmap_lookup_by_phandle(dev->of_node, grf 28 drivers/phy/rockchip/phy-rockchip-dp.c struct regmap *grf; grf 38 drivers/phy/rockchip/phy-rockchip-dp.c ret = regmap_write(dp->grf, GRF_SOC_CON12, grf 50 drivers/phy/rockchip/phy-rockchip-dp.c ret = regmap_write(dp->grf, GRF_SOC_CON12, grf 107 drivers/phy/rockchip/phy-rockchip-dp.c dp->grf = syscon_node_to_regmap(dev->parent->of_node); grf 108 drivers/phy/rockchip/phy-rockchip-dp.c if (IS_ERR(dp->grf)) { grf 110 drivers/phy/rockchip/phy-rockchip-dp.c return PTR_ERR(dp->grf); grf 113 drivers/phy/rockchip/phy-rockchip-dp.c ret = regmap_write(dp->grf, GRF_SOC_CON12, GRF_EDP_REF_CLK_SEL_INTER | grf 336 drivers/phy/rockchip/phy-rockchip-emmc.c struct regmap *grf; grf 343 drivers/phy/rockchip/phy-rockchip-emmc.c grf = syscon_node_to_regmap(dev->parent->of_node); grf 344 drivers/phy/rockchip/phy-rockchip-emmc.c if (IS_ERR(grf)) { grf 346 drivers/phy/rockchip/phy-rockchip-emmc.c return PTR_ERR(grf); grf 360 drivers/phy/rockchip/phy-rockchip-emmc.c rk_phy->reg_base = grf; grf 212 drivers/phy/rockchip/phy-rockchip-inno-usb2.c struct regmap *grf; grf 227 drivers/phy/rockchip/phy-rockchip-inno-usb2.c return rphy->usbgrf == NULL ? rphy->grf : rphy->usbgrf; grf 415 drivers/phy/rockchip/phy-rockchip-inno-usb2.c ret = property_enable(rphy->grf, grf 421 drivers/phy/rockchip/phy-rockchip-inno-usb2.c ret = property_enable(rphy->grf, grf 435 drivers/phy/rockchip/phy-rockchip-inno-usb2.c ret = property_enable(rphy->grf, grf 440 drivers/phy/rockchip/phy-rockchip-inno-usb2.c ret = property_enable(rphy->grf, grf 535 drivers/phy/rockchip/phy-rockchip-inno-usb2.c vbus_attach = property_enabled(rphy->grf, grf 709 drivers/phy/rockchip/phy-rockchip-inno-usb2.c is_dcd = property_enabled(rphy->grf, grf 727 drivers/phy/rockchip/phy-rockchip-inno-usb2.c vout = property_enabled(rphy->grf, grf 749 drivers/phy/rockchip/phy-rockchip-inno-usb2.c vout = property_enabled(rphy->grf, grf 802 drivers/phy/rockchip/phy-rockchip-inno-usb2.c ret = regmap_read(rphy->grf, rport->port_cfg->utmi_ls.offset, &ul); grf 806 drivers/phy/rockchip/phy-rockchip-inno-usb2.c ret = regmap_read(rphy->grf, rport->port_cfg->utmi_hstdet.offset, &uhd); grf 860 drivers/phy/rockchip/phy-rockchip-inno-usb2.c property_enable(rphy->grf, &rport->port_cfg->ls_det_clr, true); grf 861 drivers/phy/rockchip/phy-rockchip-inno-usb2.c property_enable(rphy->grf, &rport->port_cfg->ls_det_en, true); grf 884 drivers/phy/rockchip/phy-rockchip-inno-usb2.c if (!property_enabled(rphy->grf, &rport->port_cfg->ls_det_st)) grf 890 drivers/phy/rockchip/phy-rockchip-inno-usb2.c property_enable(rphy->grf, &rport->port_cfg->ls_det_en, false); grf 891 drivers/phy/rockchip/phy-rockchip-inno-usb2.c property_enable(rphy->grf, &rport->port_cfg->ls_det_clr, true); grf 911 drivers/phy/rockchip/phy-rockchip-inno-usb2.c if (!property_enabled(rphy->grf, &rport->port_cfg->bvalid_det_st)) grf 917 drivers/phy/rockchip/phy-rockchip-inno-usb2.c property_enable(rphy->grf, &rport->port_cfg->bvalid_det_clr, true); grf 931 drivers/phy/rockchip/phy-rockchip-inno-usb2.c if (property_enabled(rphy->grf, &rport->port_cfg->bvalid_det_st)) grf 1087 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rphy->grf = syscon_node_to_regmap(dev->parent->of_node); grf 1088 drivers/phy/rockchip/phy-rockchip-inno-usb2.c if (IS_ERR(rphy->grf)) grf 1089 drivers/phy/rockchip/phy-rockchip-inno-usb2.c return PTR_ERR(rphy->grf); grf 367 drivers/phy/rockchip/phy-rockchip-pcie.c struct regmap *grf; grf 372 drivers/phy/rockchip/phy-rockchip-pcie.c grf = syscon_node_to_regmap(dev->parent->of_node); grf 373 drivers/phy/rockchip/phy-rockchip-pcie.c if (IS_ERR(grf)) { grf 375 drivers/phy/rockchip/phy-rockchip-pcie.c return PTR_ERR(grf); grf 387 drivers/phy/rockchip/phy-rockchip-pcie.c rk_phy->reg_base = grf; grf 56 drivers/phy/rockchip/phy-rockchip-usb.c int (*init_usb_uart)(struct regmap *grf, grf 324 drivers/phy/rockchip/phy-rockchip-usb.c static int __init rockchip_init_usb_uart_common(struct regmap *grf, grf 342 drivers/phy/rockchip/phy-rockchip-usb.c ret = regmap_write(grf, regoffs + UOC_CON0, val); grf 348 drivers/phy/rockchip/phy-rockchip-usb.c ret = regmap_write(grf, regoffs + UOC_CON2, val); grf 359 drivers/phy/rockchip/phy-rockchip-usb.c ret = regmap_write(grf, UOC_CON3, val); grf 374 drivers/phy/rockchip/phy-rockchip-usb.c static int __init rk3188_init_usb_uart(struct regmap *grf, grf 380 drivers/phy/rockchip/phy-rockchip-usb.c ret = rockchip_init_usb_uart_common(grf, pdata); grf 388 drivers/phy/rockchip/phy-rockchip-usb.c ret = regmap_write(grf, RK3188_UOC0_CON0, val); grf 424 drivers/phy/rockchip/phy-rockchip-usb.c static int __init rk3288_init_usb_uart(struct regmap *grf, grf 430 drivers/phy/rockchip/phy-rockchip-usb.c ret = rockchip_init_usb_uart_common(grf, pdata); grf 438 drivers/phy/rockchip/phy-rockchip-usb.c ret = regmap_write(grf, RK3288_UOC0_CON3, val); grf 527 drivers/phy/rockchip/phy-rockchip-usb.c struct regmap *grf; grf 549 drivers/phy/rockchip/phy-rockchip-usb.c grf = ERR_PTR(-ENODEV); grf 551 drivers/phy/rockchip/phy-rockchip-usb.c grf = syscon_node_to_regmap(np->parent); grf 552 drivers/phy/rockchip/phy-rockchip-usb.c if (IS_ERR(grf)) grf 553 drivers/phy/rockchip/phy-rockchip-usb.c grf = syscon_regmap_lookup_by_phandle(np, "rockchip,grf"); grf 554 drivers/phy/rockchip/phy-rockchip-usb.c if (IS_ERR(grf)) { grf 556 drivers/phy/rockchip/phy-rockchip-usb.c __func__, PTR_ERR(grf)); grf 557 drivers/phy/rockchip/phy-rockchip-usb.c return PTR_ERR(grf); grf 560 drivers/phy/rockchip/phy-rockchip-usb.c ret = data->init_usb_uart(grf, data); grf 74 drivers/power/avs/rockchip-io-domain.c struct regmap *grf; grf 93 drivers/power/avs/rockchip-io-domain.c ret = regmap_write(iod->grf, iod->soc_data->grf_offset, val); grf 164 drivers/power/avs/rockchip-io-domain.c ret = regmap_write(iod->grf, PX30_IO_VSEL, val); grf 183 drivers/power/avs/rockchip-io-domain.c ret = regmap_write(iod->grf, RK3288_SOC_CON2, val); grf 202 drivers/power/avs/rockchip-io-domain.c ret = regmap_write(iod->grf, RK3328_SOC_CON4, val); grf 221 drivers/power/avs/rockchip-io-domain.c ret = regmap_write(iod->grf, RK3368_SOC_CON15, val); grf 240 drivers/power/avs/rockchip-io-domain.c ret = regmap_write(iod->grf, RK3399_PMUGRF_CON0, val); grf 510 drivers/power/avs/rockchip-io-domain.c iod->grf = syscon_node_to_regmap(parent->of_node); grf 513 drivers/power/avs/rockchip-io-domain.c iod->grf = syscon_regmap_lookup_by_phandle(np, "rockchip,grf"); grf 516 drivers/power/avs/rockchip-io-domain.c if (IS_ERR(iod->grf)) { grf 518 drivers/power/avs/rockchip-io-domain.c return PTR_ERR(iod->grf); grf 142 drivers/soc/rockchip/grf.c struct regmap *grf; grf 156 drivers/soc/rockchip/grf.c grf = syscon_node_to_regmap(np); grf 157 drivers/soc/rockchip/grf.c if (IS_ERR(grf)) { grf 159 drivers/soc/rockchip/grf.c return PTR_ERR(grf); grf 167 drivers/soc/rockchip/grf.c ret = regmap_write(grf, val->reg, val->val); grf 107 drivers/thermal/rockchip_thermal.c void (*initialize)(struct regmap *grf, grf 161 drivers/thermal/rockchip_thermal.c struct regmap *grf; grf 606 drivers/thermal/rockchip_thermal.c static void rk_tsadcv2_initialize(struct regmap *grf, void __iomem *regs, grf 642 drivers/thermal/rockchip_thermal.c static void rk_tsadcv3_initialize(struct regmap *grf, void __iomem *regs, grf 646 drivers/thermal/rockchip_thermal.c if (IS_ERR(grf)) { grf 662 drivers/thermal/rockchip_thermal.c regmap_write(grf, GRF_TSADC_TESTBIT_L, GRF_TSADC_VCM_EN_L); grf 663 drivers/thermal/rockchip_thermal.c regmap_write(grf, GRF_TSADC_TESTBIT_H, GRF_TSADC_VCM_EN_H); grf 666 drivers/thermal/rockchip_thermal.c regmap_write(grf, GRF_SARADC_TESTBIT, GRF_SARADC_TESTBIT_ON); grf 667 drivers/thermal/rockchip_thermal.c regmap_write(grf, GRF_TSADC_TESTBIT_H, GRF_TSADC_TESTBIT_H_ON); grf 688 drivers/thermal/rockchip_thermal.c static void rk_tsadcv4_initialize(struct regmap *grf, void __iomem *regs, grf 691 drivers/thermal/rockchip_thermal.c rk_tsadcv2_initialize(grf, regs, tshut_polarity); grf 692 drivers/thermal/rockchip_thermal.c regmap_write(grf, PX30_GRF_SOC_CON2, GRF_CON_TSADC_CH_INV); grf 1169 drivers/thermal/rockchip_thermal.c thermal->grf = syscon_regmap_lookup_by_phandle(np, "rockchip,grf"); grf 1170 drivers/thermal/rockchip_thermal.c if (IS_ERR(thermal->grf)) grf 1297 drivers/thermal/rockchip_thermal.c thermal->chip->initialize(thermal->grf, thermal->regs, grf 1394 drivers/thermal/rockchip_thermal.c thermal->chip->initialize(thermal->grf, thermal->regs, grf 409 sound/soc/codecs/inno_rk3036.c struct regmap *grf; grf 428 sound/soc/codecs/inno_rk3036.c grf = syscon_regmap_lookup_by_phandle(of_node, "rockchip,grf"); grf 429 sound/soc/codecs/inno_rk3036.c if (IS_ERR(grf)) { grf 431 sound/soc/codecs/inno_rk3036.c return PTR_ERR(grf); grf 433 sound/soc/codecs/inno_rk3036.c ret = regmap_write(grf, GRF_SOC_CON0, GRF_ACODEC_SEL); grf 34 sound/soc/codecs/rk3328_codec.c struct regmap *grf; grf 116 sound/soc/codecs/rk3328_codec.c regmap_write(rk3328->grf, RK3328_GRF_SOC_CON10, val); grf 435 sound/soc/codecs/rk3328_codec.c struct regmap *grf; grf 443 sound/soc/codecs/rk3328_codec.c grf = syscon_regmap_lookup_by_phandle(rk3328_np, grf 445 sound/soc/codecs/rk3328_codec.c if (IS_ERR(grf)) { grf 447 sound/soc/codecs/rk3328_codec.c return PTR_ERR(grf); grf 449 sound/soc/codecs/rk3328_codec.c rk3328->grf = grf; grf 451 sound/soc/codecs/rk3328_codec.c regmap_write(grf, RK3328_GRF_SOC_CON2, grf 41 sound/soc/rockchip/rockchip_i2s.c struct regmap *grf; grf 346 sound/soc/rockchip/rockchip_i2s.c if (!IS_ERR(i2s->grf) && i2s->pins) { grf 367 sound/soc/rockchip/rockchip_i2s.c regmap_write(i2s->grf, i2s->pins->reg_offset, val); grf 594 sound/soc/rockchip/rockchip_i2s.c i2s->grf = syscon_regmap_lookup_by_phandle(node, "rockchip,grf"); grf 595 sound/soc/rockchip/rockchip_i2s.c if (!IS_ERR(i2s->grf)) { grf 289 sound/soc/rockchip/rockchip_spdif.c struct regmap *grf; grf 291 sound/soc/rockchip/rockchip_spdif.c grf = syscon_regmap_lookup_by_phandle(np, "rockchip,grf"); grf 292 sound/soc/rockchip/rockchip_spdif.c if (IS_ERR(grf)) { grf 295 sound/soc/rockchip/rockchip_spdif.c return PTR_ERR(grf); grf 301 sound/soc/rockchip/rockchip_spdif.c regmap_write(grf, RK3288_GRF_SOC_CON2, BIT(1) << 16);