• Home
  • Raw
  • Download

Lines Matching refs:pdata

34 	const struct atmel_classd_pdata *pdata;  member
50 struct atmel_classd_pdata *pdata; in atmel_classd_dt_init() local
59 pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); in atmel_classd_dt_init()
60 if (!pdata) in atmel_classd_dt_init()
65 pdata->pwm_type = CLASSD_MR_PWMTYP_DIFF; in atmel_classd_dt_init()
67 pdata->pwm_type = CLASSD_MR_PWMTYP_SINGLE; in atmel_classd_dt_init()
70 "atmel,non-overlap-time", &pdata->non_overlap_time); in atmel_classd_dt_init()
72 pdata->non_overlap_enable = false; in atmel_classd_dt_init()
74 pdata->non_overlap_enable = true; in atmel_classd_dt_init()
76 ret = of_property_read_string(np, "atmel,model", &pdata->card_name); in atmel_classd_dt_init()
78 pdata->card_name = "CLASSD"; in atmel_classd_dt_init()
80 return pdata; in atmel_classd_dt_init()
234 const struct atmel_classd_pdata *pdata = dd->pdata; in atmel_classd_component_probe() local
238 val = pdata->pwm_type << CLASSD_MR_PWMTYP_SHIFT; in atmel_classd_component_probe()
241 if (pdata->non_overlap_enable) { in atmel_classd_component_probe()
246 switch (pdata->non_overlap_time) { in atmel_classd_component_probe()
268 pdata->non_overlap_time); in atmel_classd_component_probe()
277 pwm_type[pdata->pwm_type], in atmel_classd_component_probe()
278 pdata->non_overlap_enable?"enabled":"disabled"); in atmel_classd_component_probe()
497 card->name = dd->pdata->card_name; in atmel_classd_asoc_card_init()
526 const struct atmel_classd_pdata *pdata; in atmel_classd_probe() local
530 pdata = dev_get_platdata(dev); in atmel_classd_probe()
531 if (!pdata) { in atmel_classd_probe()
532 pdata = atmel_classd_dt_init(dev); in atmel_classd_probe()
533 if (IS_ERR(pdata)) in atmel_classd_probe()
534 return PTR_ERR(pdata); in atmel_classd_probe()
541 dd->pdata = pdata; in atmel_classd_probe()