Lines Matching full:plat
48 struct mtk_ahci_plat *plat = hpriv->plat_data; in mtk_ahci_platform_resets() local
52 plat->axi_rst = devm_reset_control_get_optional_exclusive(dev, "axi"); in mtk_ahci_platform_resets()
53 if (PTR_ERR(plat->axi_rst) == -EPROBE_DEFER) in mtk_ahci_platform_resets()
54 return PTR_ERR(plat->axi_rst); in mtk_ahci_platform_resets()
56 plat->sw_rst = devm_reset_control_get_optional_exclusive(dev, "sw"); in mtk_ahci_platform_resets()
57 if (PTR_ERR(plat->sw_rst) == -EPROBE_DEFER) in mtk_ahci_platform_resets()
58 return PTR_ERR(plat->sw_rst); in mtk_ahci_platform_resets()
60 plat->reg_rst = devm_reset_control_get_optional_exclusive(dev, "reg"); in mtk_ahci_platform_resets()
61 if (PTR_ERR(plat->reg_rst) == -EPROBE_DEFER) in mtk_ahci_platform_resets()
62 return PTR_ERR(plat->reg_rst); in mtk_ahci_platform_resets()
64 err = reset_control_assert(plat->axi_rst); in mtk_ahci_platform_resets()
70 err = reset_control_assert(plat->sw_rst); in mtk_ahci_platform_resets()
76 err = reset_control_assert(plat->reg_rst); in mtk_ahci_platform_resets()
82 err = reset_control_deassert(plat->reg_rst); in mtk_ahci_platform_resets()
88 err = reset_control_deassert(plat->sw_rst); in mtk_ahci_platform_resets()
94 err = reset_control_deassert(plat->axi_rst); in mtk_ahci_platform_resets()
106 struct mtk_ahci_plat *plat = hpriv->plat_data; in mtk_ahci_parse_property() local
111 plat->mode = syscon_regmap_lookup_by_phandle( in mtk_ahci_parse_property()
113 if (IS_ERR(plat->mode)) { in mtk_ahci_parse_property()
115 return PTR_ERR(plat->mode); in mtk_ahci_parse_property()
118 regmap_update_bits(plat->mode, SYS_CFG, SYS_CFG_SATA_MSK, in mtk_ahci_parse_property()
128 struct mtk_ahci_plat *plat; in mtk_ahci_probe() local
132 plat = devm_kzalloc(dev, sizeof(*plat), GFP_KERNEL); in mtk_ahci_probe()
133 if (!plat) in mtk_ahci_probe()
140 hpriv->plat_data = plat; in mtk_ahci_probe()