dwc3_data         115 drivers/usb/dwc3/dwc3-st.c static int st_dwc3_drd_init(struct st_dwc3 *dwc3_data)
dwc3_data         120 drivers/usb/dwc3/dwc3-st.c 	err = regmap_read(dwc3_data->regmap, dwc3_data->syscfg_reg_off, &val);
dwc3_data         126 drivers/usb/dwc3/dwc3-st.c 	switch (dwc3_data->dr_mode) {
dwc3_data         161 drivers/usb/dwc3/dwc3-st.c 		dev_err(dwc3_data->dev, "Unsupported mode of operation %d\n",
dwc3_data         162 drivers/usb/dwc3/dwc3-st.c 			dwc3_data->dr_mode);
dwc3_data         166 drivers/usb/dwc3/dwc3-st.c 	return regmap_write(dwc3_data->regmap, dwc3_data->syscfg_reg_off, val);
dwc3_data         173 drivers/usb/dwc3/dwc3-st.c static void st_dwc3_init(struct st_dwc3 *dwc3_data)
dwc3_data         175 drivers/usb/dwc3/dwc3-st.c 	u32 reg = st_dwc3_readl(dwc3_data->glue_base, CLKRST_CTRL);
dwc3_data         179 drivers/usb/dwc3/dwc3-st.c 	st_dwc3_writel(dwc3_data->glue_base, CLKRST_CTRL, reg);
dwc3_data         182 drivers/usb/dwc3/dwc3-st.c 	reg = st_dwc3_readl(dwc3_data->glue_base, USB2_VBUS_MNGMNT_SEL1);
dwc3_data         188 drivers/usb/dwc3/dwc3-st.c 	st_dwc3_writel(dwc3_data->glue_base, USB2_VBUS_MNGMNT_SEL1, reg);
dwc3_data         190 drivers/usb/dwc3/dwc3-st.c 	reg = st_dwc3_readl(dwc3_data->glue_base, CLKRST_CTRL);
dwc3_data         192 drivers/usb/dwc3/dwc3-st.c 	st_dwc3_writel(dwc3_data->glue_base, CLKRST_CTRL, reg);
dwc3_data         197 drivers/usb/dwc3/dwc3-st.c 	struct st_dwc3 *dwc3_data;
dwc3_data         205 drivers/usb/dwc3/dwc3-st.c 	dwc3_data = devm_kzalloc(dev, sizeof(*dwc3_data), GFP_KERNEL);
dwc3_data         206 drivers/usb/dwc3/dwc3-st.c 	if (!dwc3_data)
dwc3_data         210 drivers/usb/dwc3/dwc3-st.c 	dwc3_data->glue_base = devm_ioremap_resource(dev, res);
dwc3_data         211 drivers/usb/dwc3/dwc3-st.c 	if (IS_ERR(dwc3_data->glue_base))
dwc3_data         212 drivers/usb/dwc3/dwc3-st.c 		return PTR_ERR(dwc3_data->glue_base);
dwc3_data         218 drivers/usb/dwc3/dwc3-st.c 	dwc3_data->dev = dev;
dwc3_data         219 drivers/usb/dwc3/dwc3-st.c 	dwc3_data->regmap = regmap;
dwc3_data         227 drivers/usb/dwc3/dwc3-st.c 	dwc3_data->syscfg_reg_off = res->start;
dwc3_data         230 drivers/usb/dwc3/dwc3-st.c 		 dwc3_data->glue_base, dwc3_data->syscfg_reg_off);
dwc3_data         232 drivers/usb/dwc3/dwc3-st.c 	dwc3_data->rstc_pwrdn =
dwc3_data         234 drivers/usb/dwc3/dwc3-st.c 	if (IS_ERR(dwc3_data->rstc_pwrdn)) {
dwc3_data         236 drivers/usb/dwc3/dwc3-st.c 		ret = PTR_ERR(dwc3_data->rstc_pwrdn);
dwc3_data         241 drivers/usb/dwc3/dwc3-st.c 	reset_control_deassert(dwc3_data->rstc_pwrdn);
dwc3_data         243 drivers/usb/dwc3/dwc3-st.c 	dwc3_data->rstc_rst =
dwc3_data         245 drivers/usb/dwc3/dwc3-st.c 	if (IS_ERR(dwc3_data->rstc_rst)) {
dwc3_data         247 drivers/usb/dwc3/dwc3-st.c 		ret = PTR_ERR(dwc3_data->rstc_rst);
dwc3_data         252 drivers/usb/dwc3/dwc3-st.c 	reset_control_deassert(dwc3_data->rstc_rst);
dwc3_data         275 drivers/usb/dwc3/dwc3-st.c 	dwc3_data->dr_mode = usb_get_dr_mode(&child_pdev->dev);
dwc3_data         285 drivers/usb/dwc3/dwc3-st.c 	ret = st_dwc3_drd_init(dwc3_data);
dwc3_data         292 drivers/usb/dwc3/dwc3-st.c 	st_dwc3_init(dwc3_data);
dwc3_data         294 drivers/usb/dwc3/dwc3-st.c 	platform_set_drvdata(pdev, dwc3_data);
dwc3_data         300 drivers/usb/dwc3/dwc3-st.c 	reset_control_assert(dwc3_data->rstc_rst);
dwc3_data         302 drivers/usb/dwc3/dwc3-st.c 	reset_control_assert(dwc3_data->rstc_pwrdn);
dwc3_data         310 drivers/usb/dwc3/dwc3-st.c 	struct st_dwc3 *dwc3_data = platform_get_drvdata(pdev);
dwc3_data         314 drivers/usb/dwc3/dwc3-st.c 	reset_control_assert(dwc3_data->rstc_pwrdn);
dwc3_data         315 drivers/usb/dwc3/dwc3-st.c 	reset_control_assert(dwc3_data->rstc_rst);
dwc3_data         323 drivers/usb/dwc3/dwc3-st.c 	struct st_dwc3 *dwc3_data = dev_get_drvdata(dev);
dwc3_data         325 drivers/usb/dwc3/dwc3-st.c 	reset_control_assert(dwc3_data->rstc_pwrdn);
dwc3_data         326 drivers/usb/dwc3/dwc3-st.c 	reset_control_assert(dwc3_data->rstc_rst);
dwc3_data         335 drivers/usb/dwc3/dwc3-st.c 	struct st_dwc3 *dwc3_data = dev_get_drvdata(dev);
dwc3_data         340 drivers/usb/dwc3/dwc3-st.c 	reset_control_deassert(dwc3_data->rstc_pwrdn);
dwc3_data         341 drivers/usb/dwc3/dwc3-st.c 	reset_control_deassert(dwc3_data->rstc_rst);
dwc3_data         343 drivers/usb/dwc3/dwc3-st.c 	ret = st_dwc3_drd_init(dwc3_data);
dwc3_data         350 drivers/usb/dwc3/dwc3-st.c 	st_dwc3_init(dwc3_data);