• Home
  • Raw
  • Download

Lines Matching refs:drvdata

84 	struct sti_sas_data *drvdata = context;  in sti_sas_read_reg()  local
88 status = regmap_read(drvdata->dac.regmap, reg, &val); in sti_sas_read_reg()
98 struct sti_sas_data *drvdata = context; in sti_sas_write_reg() local
100 return regmap_write(drvdata->dac.regmap, reg, value); in sti_sas_write_reg()
258 struct sti_sas_data *drvdata = dev_get_drvdata(component->dev); in sti_sas_set_sysclk() local
268 drvdata->spdif.mclk = freq; in sti_sas_set_sysclk()
272 drvdata->dac.mclk = freq; in sti_sas_set_sysclk()
283 struct sti_sas_data *drvdata = dev_get_drvdata(component->dev); in sti_sas_prepare() local
288 if ((drvdata->spdif.mclk / runtime->rate) != 128) { in sti_sas_prepare()
294 if ((drvdata->dac.mclk / runtime->rate) != 256) { in sti_sas_prepare()
374 struct sti_sas_data *drvdata = dev_get_drvdata(component->dev); in sti_sas_resume() local
376 return sti_sas_init_sas_registers(component, drvdata); in sti_sas_resume()
384 struct sti_sas_data *drvdata = dev_get_drvdata(component->dev); in sti_sas_component_probe() local
386 return sti_sas_init_sas_registers(component, drvdata); in sti_sas_component_probe()
409 struct sti_sas_data *drvdata; in sti_sas_driver_probe() local
413 drvdata = devm_kzalloc(&pdev->dev, sizeof(struct sti_sas_data), in sti_sas_driver_probe()
415 if (!drvdata) in sti_sas_driver_probe()
425 drvdata->dev_data = (struct sti_sas_dev_data *)of_id->data; in sti_sas_driver_probe()
428 drvdata->dev = &pdev->dev; in sti_sas_driver_probe()
431 drvdata->dac.virt_regmap = devm_regmap_init(&pdev->dev, NULL, drvdata, in sti_sas_driver_probe()
432 drvdata->dev_data->regmap); in sti_sas_driver_probe()
433 if (IS_ERR(drvdata->dac.virt_regmap)) { in sti_sas_driver_probe()
435 return PTR_ERR(drvdata->dac.virt_regmap); in sti_sas_driver_probe()
439 drvdata->dac.regmap = in sti_sas_driver_probe()
441 if (IS_ERR(drvdata->dac.regmap)) { in sti_sas_driver_probe()
443 return PTR_ERR(drvdata->dac.regmap); in sti_sas_driver_probe()
445 drvdata->spdif.regmap = drvdata->dac.regmap; in sti_sas_driver_probe()
447 sti_sas_dai[STI_SAS_DAI_ANALOG_OUT].ops = drvdata->dev_data->dac_ops; in sti_sas_driver_probe()
450 sti_sas_driver.dapm_widgets = drvdata->dev_data->dapm_widgets; in sti_sas_driver_probe()
451 sti_sas_driver.num_dapm_widgets = drvdata->dev_data->num_dapm_widgets; in sti_sas_driver_probe()
453 sti_sas_driver.dapm_routes = drvdata->dev_data->dapm_routes; in sti_sas_driver_probe()
454 sti_sas_driver.num_dapm_routes = drvdata->dev_data->num_dapm_routes; in sti_sas_driver_probe()
457 dev_set_drvdata(&pdev->dev, drvdata); in sti_sas_driver_probe()