Lines Matching full:export
39 struct pwm_export *export = child_to_pwm_export(child); in child_to_pwm_device() local
41 return export->pwm; in child_to_pwm_device()
60 struct pwm_export *export = child_to_pwm_export(child); in period_store() local
61 struct pwm_device *pwm = export->pwm; in period_store()
70 mutex_lock(&export->lock); in period_store()
74 mutex_unlock(&export->lock); in period_store()
95 struct pwm_export *export = child_to_pwm_export(child); in duty_cycle_store() local
96 struct pwm_device *pwm = export->pwm; in duty_cycle_store()
105 mutex_lock(&export->lock); in duty_cycle_store()
109 mutex_unlock(&export->lock); in duty_cycle_store()
130 struct pwm_export *export = child_to_pwm_export(child); in enable_store() local
131 struct pwm_device *pwm = export->pwm; in enable_store()
139 mutex_lock(&export->lock); in enable_store()
158 mutex_unlock(&export->lock); in enable_store()
189 struct pwm_export *export = child_to_pwm_export(child); in polarity_store() local
190 struct pwm_device *pwm = export->pwm; in polarity_store()
202 mutex_lock(&export->lock); in polarity_store()
206 mutex_unlock(&export->lock); in polarity_store()
244 struct pwm_export *export = child_to_pwm_export(child); in pwm_export_release() local
246 kfree(export); in pwm_export_release()
251 struct pwm_export *export; in pwm_export_child() local
257 export = kzalloc(sizeof(*export), GFP_KERNEL); in pwm_export_child()
258 if (!export) { in pwm_export_child()
263 export->pwm = pwm; in pwm_export_child()
264 mutex_init(&export->lock); in pwm_export_child()
266 export->child.release = pwm_export_release; in pwm_export_child()
267 export->child.parent = parent; in pwm_export_child()
268 export->child.devt = MKDEV(0, 0); in pwm_export_child()
269 export->child.groups = pwm_groups; in pwm_export_child()
270 dev_set_name(&export->child, "pwm%u", pwm->hwpwm); in pwm_export_child()
272 ret = device_register(&export->child); in pwm_export_child()
275 put_device(&export->child); in pwm_export_child()
276 export = NULL; in pwm_export_child()
333 static DEVICE_ATTR_WO(export);
396 "device_create failed for pwm_chip sysfs export\n"); in pwmchip_sysfs_export()