Lines Matching refs:export
38 struct pwm_export *export = child_to_pwm_export(child); in child_to_pwm_device() local
40 return export->pwm; in child_to_pwm_device()
176 struct pwm_export *export = child_to_pwm_export(child); in pwm_export_release() local
178 kfree(export); in pwm_export_release()
183 struct pwm_export *export; in pwm_export_child() local
189 export = kzalloc(sizeof(*export), GFP_KERNEL); in pwm_export_child()
190 if (!export) { in pwm_export_child()
195 export->pwm = pwm; in pwm_export_child()
197 export->child.release = pwm_export_release; in pwm_export_child()
198 export->child.parent = parent; in pwm_export_child()
199 export->child.devt = MKDEV(0, 0); in pwm_export_child()
200 export->child.groups = pwm_groups; in pwm_export_child()
201 dev_set_name(&export->child, "pwm%u", pwm->hwpwm); in pwm_export_child()
203 ret = device_register(&export->child); in pwm_export_child()
206 kfree(export); in pwm_export_child()
263 static DEVICE_ATTR(export, 0200, NULL, pwm_export_store);