Searched refs:pwm_map (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/pwm/
H A Dpwm-lp3943.c41 struct lp3943_pwm_map *pwm_map; lp3943_pwm_request_map() local
44 pwm_map = kzalloc(sizeof(*pwm_map), GFP_KERNEL); lp3943_pwm_request_map()
45 if (!pwm_map) lp3943_pwm_request_map()
48 pwm_map->output = pdata->pwms[hwpwm]->output; lp3943_pwm_request_map()
49 pwm_map->num_outputs = pdata->pwms[hwpwm]->num_outputs; lp3943_pwm_request_map()
51 for (i = 0; i < pwm_map->num_outputs; i++) { lp3943_pwm_request_map()
52 offset = pwm_map->output[i]; lp3943_pwm_request_map()
56 kfree(pwm_map); lp3943_pwm_request_map()
61 return pwm_map; lp3943_pwm_request_map()
67 struct lp3943_pwm_map *pwm_map; lp3943_pwm_request() local
69 pwm_map = lp3943_pwm_request_map(lp3943_pwm, pwm->hwpwm); lp3943_pwm_request()
70 if (IS_ERR(pwm_map)) lp3943_pwm_request()
71 return PTR_ERR(pwm_map); lp3943_pwm_request()
73 return pwm_set_chip_data(pwm, pwm_map); lp3943_pwm_request()
77 struct lp3943_pwm_map *pwm_map) lp3943_pwm_free_map()
82 for (i = 0; i < pwm_map->num_outputs; i++) { lp3943_pwm_free_map()
83 offset = pwm_map->output[i]; lp3943_pwm_free_map()
87 kfree(pwm_map); lp3943_pwm_free_map()
93 struct lp3943_pwm_map *pwm_map = pwm_get_chip_data(pwm); lp3943_pwm_free() local
95 lp3943_pwm_free_map(lp3943_pwm, pwm_map); lp3943_pwm_free()
137 struct lp3943_pwm_map *pwm_map, lp3943_pwm_set_mode()
144 for (i = 0; i < pwm_map->num_outputs; i++) { lp3943_pwm_set_mode()
145 index = pwm_map->output[i]; lp3943_pwm_set_mode()
159 struct lp3943_pwm_map *pwm_map = pwm_get_chip_data(pwm); lp3943_pwm_enable() local
172 return lp3943_pwm_set_mode(lp3943_pwm, pwm_map, val); lp3943_pwm_enable()
178 struct lp3943_pwm_map *pwm_map = pwm_get_chip_data(pwm); lp3943_pwm_disable() local
185 lp3943_pwm_set_mode(lp3943_pwm, pwm_map, LP3943_GPIO_OUT_HIGH); lp3943_pwm_disable()
203 struct lp3943_pwm_map *pwm_map; lp3943_pwm_parse_dt() local
238 pwm_map = devm_kzalloc(dev, sizeof(*pwm_map), GFP_KERNEL); lp3943_pwm_parse_dt()
239 if (!pwm_map) lp3943_pwm_parse_dt()
242 pwm_map->output = output; lp3943_pwm_parse_dt()
243 pwm_map->num_outputs = num_outputs; lp3943_pwm_parse_dt()
244 pdata->pwms[i] = pwm_map; lp3943_pwm_parse_dt()
76 lp3943_pwm_free_map(struct lp3943_pwm *lp3943_pwm, struct lp3943_pwm_map *pwm_map) lp3943_pwm_free_map() argument
136 lp3943_pwm_set_mode(struct lp3943_pwm *lp3943_pwm, struct lp3943_pwm_map *pwm_map, u8 val) lp3943_pwm_set_mode() argument

Completed in 101 milliseconds