Searched refs:pwm (Results 1 - 25 of 224) sorted by relevance

123456789

/linux-master/drivers/pwm/
H A DMakefile4 obj-$(CONFIG_PWM_AB8500) += pwm-ab8500.o
5 obj-$(CONFIG_PWM_APPLE) += pwm-apple.o
6 obj-$(CONFIG_PWM_ATMEL) += pwm-atmel.o
7 obj-$(CONFIG_PWM_ATMEL_HLCDC_PWM) += pwm-atmel-hlcdc.o
8 obj-$(CONFIG_PWM_ATMEL_TCB) += pwm-atmel-tcb.o
9 obj-$(CONFIG_PWM_BCM_IPROC) += pwm-bcm-iproc.o
10 obj-$(CONFIG_PWM_BCM_KONA) += pwm-bcm-kona.o
11 obj-$(CONFIG_PWM_BCM2835) += pwm-bcm2835.o
12 obj-$(CONFIG_PWM_BERLIN) += pwm-berlin.o
13 obj-$(CONFIG_PWM_BRCMSTB) += pwm
[all...]
H A Dpwm-twl.c12 #include <linux/pwm.h>
32 #define TWL4030_PWM_TOGGLE(pwm, x) ((x) << (pwm))
46 #define TWL6030_PWM_TOGGLE(pwm, x) ((x) << (pwm * 3))
59 static int twl_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, argument
82 base = pwm->hwpwm * 3;
88 dev_err(pwmchip_parent(chip), "%s: Failed to configure PWM\n", pwm->label);
93 static int twl4030_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) argument
102 dev_err(pwmchip_parent(chip), "%s: Failed to read GPBR1\n", pwm
123 twl4030_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) argument
152 twl4030_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) argument
190 twl4030_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) argument
220 twl6030_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) argument
243 twl6030_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) argument
281 twl4030_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, const struct pwm_state *state) argument
306 twl6030_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, const struct pwm_state *state) argument
[all...]
H A Dpwm-vt8500.c3 * drivers/pwm/pwm-vt8500.c
16 #include <linux/pwm.h>
28 #define REG_CTRL(pwm) (((pwm) << 4) + 0x00)
29 #define REG_SCALAR(pwm) (((pwm) << 4) + 0x04)
30 #define REG_PERIOD(pwm) (((pwm) << 4) + 0x08)
31 #define REG_DUTY(pwm) (((pw
72 vt8500_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, u64 duty_ns, u64 period_ns) argument
126 vt8500_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) argument
146 vt8500_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) argument
159 vt8500_pwm_set_polarity(struct pwm_chip *chip, struct pwm_device *pwm, enum pwm_polarity polarity) argument
179 vt8500_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, const struct pwm_state *state) argument
[all...]
H A Dsysfs.c15 #include <linux/pwm.h>
19 struct pwm_device *pwm; member in struct:pwm_export
33 return export->pwm;
40 const struct pwm_device *pwm = child_to_pwm_device(child); local
43 pwm_get_state(pwm, &state);
53 struct pwm_device *pwm = export->pwm; local
63 pwm_get_state(pwm, &state);
65 ret = pwm_apply_might_sleep(pwm, &state);
75 const struct pwm_device *pwm local
88 struct pwm_device *pwm = export->pwm; local
110 const struct pwm_device *pwm = child_to_pwm_device(child); local
123 struct pwm_device *pwm = export->pwm; local
158 const struct pwm_device *pwm = child_to_pwm_device(child); local
182 struct pwm_device *pwm = export->pwm; local
207 struct pwm_device *pwm = child_to_pwm_device(child); local
232 ATTRIBUTE_GROUPS(pwm); variable
241 pwm_export_child(struct device *parent, struct pwm_device *pwm) argument
285 pwm_unexport_child(struct device *parent, struct pwm_device *pwm) argument
315 struct pwm_device *pwm; local
377 pwm_class_get_state(struct device *parent, struct pwm_device *pwm, struct pwm_state *state) argument
400 pwm_class_apply_state(struct pwm_export *export, struct pwm_device *pwm, struct pwm_state *state) argument
419 struct pwm_device *pwm = &chip->pwms[i]; local
450 struct pwm_device *pwm = &chip->pwms[i]; local
531 struct pwm_device *pwm = &chip->pwms[i]; local
[all...]
H A Dcore.c13 #include <linux/pwm.h>
22 #include <dt-bindings/pwm/pwm.h>
25 #include <trace/events/pwm.h>
32 static void pwm_apply_debug(struct pwm_device *pwm, argument
35 struct pwm_state *last = &pwm->last;
36 struct pwm_chip *chip = pwm->chip;
52 err = chip->ops->get_state(chip, pwm, &s1);
53 trace_pwm_get(pwm, &s1, err);
111 err = chip->ops->apply(chip, pwm,
143 __pwm_apply(struct pwm_device *pwm, const struct pwm_state *state) argument
183 pwm_apply_might_sleep(struct pwm_device *pwm, const struct pwm_state *state) argument
218 pwm_apply_atomic(struct pwm_device *pwm, const struct pwm_state *state) argument
235 pwm_adjust_config(struct pwm_device *pwm) argument
291 pwm_capture(struct pwm_device *pwm, struct pwm_capture *result, unsigned long timeout) argument
334 pwm_device_request(struct pwm_device *pwm, const char *label) argument
394 struct pwm_device *pwm; local
416 struct pwm_device *pwm; local
440 struct pwm_device *pwm; local
585 struct pwm_device *pwm = &chip->pwms[i]; local
644 pwm_device_link_add(struct device *dev, struct pwm_device *pwm) argument
711 struct pwm_device *pwm = NULL; local
791 struct pwm_device *pwm; local
878 struct pwm_device *pwm; local
989 pwm_put(struct pwm_device *pwm) argument
1012 devm_pwm_release(void *pwm) argument
1030 struct pwm_device *pwm; local
1061 struct pwm_device *pwm = ERR_PTR(-ENODEV); local
1085 struct pwm_device *pwm = &chip->pwms[i]; local
[all...]
H A Dpwm-lpss.c24 #include "pwm-lpss.h"
74 static inline u32 pwm_lpss_read(const struct pwm_device *pwm) argument
76 struct pwm_lpss_chip *lpwm = to_lpwm(pwm->chip);
78 return readl(lpwm->regs + pwm->hwpwm * PWM_SIZE + PWM);
81 static inline void pwm_lpss_write(const struct pwm_device *pwm, u32 value) argument
83 struct pwm_lpss_chip *lpwm = to_lpwm(pwm->chip);
85 writel(value, lpwm->regs + pwm->hwpwm * PWM_SIZE + PWM);
88 static int pwm_lpss_wait_for_update(struct pwm_device *pwm) argument
90 struct pwm_lpss_chip *lpwm = to_lpwm(pwm->chip);
91 const void __iomem *addr = lpwm->regs + pwm
114 pwm_lpss_is_updating(struct pwm_device *pwm) argument
124 pwm_lpss_prepare(struct pwm_lpss_chip *lpwm, struct pwm_device *pwm, int duty_ns, int period_ns) argument
159 pwm_lpss_cond_enable(struct pwm_device *pwm, bool cond) argument
165 pwm_lpss_prepare_enable(struct pwm_lpss_chip *lpwm, struct pwm_device *pwm, const struct pwm_state *state) argument
185 pwm_lpss_apply(struct pwm_chip *chip, struct pwm_device *pwm, const struct pwm_state *state) argument
208 pwm_lpss_get_state(struct pwm_chip *chip, struct pwm_device *pwm, struct pwm_state *state) argument
[all...]
H A Dpwm-lpss.h7 * Derived from the original pwm-lpss.c
13 #include <linux/pwm.h>
16 #include <linux/platform_data/x86/pwm-lpss.h>
H A Dpwm-twl-led.c8 * This driver is a complete rewrite of the former pwm-twl6030.c authorded by:
31 #include <linux/pwm.h>
73 static int twl4030_pwmled_config(struct pwm_chip *chip, struct pwm_device *pwm, argument
96 base = pwm->hwpwm * 2 + TWL4030_PWMA_REG;
102 dev_err(pwmchip_parent(chip), "%s: Failed to configure PWM\n", pwm->label);
107 static int twl4030_pwmled_enable(struct pwm_chip *chip, struct pwm_device *pwm) argument
116 dev_err(pwmchip_parent(chip), "%s: Failed to read LEDEN\n", pwm->label);
120 val |= TWL4030_LED_TOGGLE(pwm->hwpwm, TWL4030_LED_PINS);
124 dev_err(pwmchip_parent(chip), "%s: Failed to enable PWM\n", pwm->label);
132 struct pwm_device *pwm)
131 twl4030_pwmled_disable(struct pwm_chip *chip, struct pwm_device *pwm) argument
155 twl4030_pwmled_apply(struct pwm_chip *chip, struct pwm_device *pwm, const struct pwm_state *state) argument
193 twl6030_pwmled_config(struct pwm_chip *chip, struct pwm_device *pwm, int duty_ns, int period_ns) argument
210 twl6030_pwmled_enable(struct pwm_chip *chip, struct pwm_device *pwm) argument
236 twl6030_pwmled_disable(struct pwm_chip *chip, struct pwm_device *pwm) argument
262 twl6030_pwmled_apply(struct pwm_chip *chip, struct pwm_device *pwm, const struct pwm_state *state) argument
288 twl6030_pwmled_request(struct pwm_chip *chip, struct pwm_device *pwm) argument
314 twl6030_pwmled_free(struct pwm_chip *chip, struct pwm_device *pwm) argument
[all...]
H A Dpwm-dwc-core.c20 #include <linux/pwm.h>
22 #include "pwm-dwc.h"
24 static void __dwc_pwm_set_enable(struct dwc_pwm *dwc, int pwm, int enabled) argument
28 reg = dwc_pwm_readl(dwc, DWC_TIM_CTRL(pwm));
35 dwc_pwm_writel(dwc, reg, DWC_TIM_CTRL(pwm));
39 struct pwm_device *pwm,
70 __dwc_pwm_set_enable(dwc, pwm->hwpwm, false);
78 dwc_pwm_writel(dwc, low, DWC_TIM_LD_CNT(pwm->hwpwm));
79 dwc_pwm_writel(dwc, high, DWC_TIM_LD_CNT2(pwm->hwpwm));
88 dwc_pwm_writel(dwc, ctrl, DWC_TIM_CTRL(pwm
38 __dwc_pwm_configure_timer(struct dwc_pwm *dwc, struct pwm_device *pwm, const struct pwm_state *state) argument
98 dwc_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, const struct pwm_state *state) argument
120 dwc_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm, struct pwm_state *state) argument
[all...]
H A Dpwm-stmpe.c15 #include <linux/pwm.h>
38 static int stmpe_24xx_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) argument
47 pwm->hwpwm);
51 value = ret | BIT(pwm->hwpwm);
56 pwm->hwpwm);
64 struct pwm_device *pwm)
73 pwm->hwpwm);
77 value = ret & ~BIT(pwm->hwpwm);
82 pwm->hwpwm);
97 static int stmpe_24xx_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, argument
63 stmpe_24xx_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) argument
262 stmpe_24xx_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, const struct pwm_state *state) argument
[all...]
H A Dpwm-jz4740.c20 #include <linux/pwm.h>
43 "ingenic,pwm-channels-mask",
49 static int jz4740_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) argument
56 if (!jz4740_pwm_can_use_chn(chip, pwm->hwpwm))
59 snprintf(name, sizeof(name), "timer%u", pwm->hwpwm);
74 jz->clk[pwm->hwpwm] = clk;
79 static void jz4740_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) argument
82 struct clk *clk = jz->clk[pwm->hwpwm];
88 static int jz4740_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) argument
93 regmap_set_bits(jz->map, TCU_REG_TCSRc(pwm
101 jz4740_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) argument
123 jz4740_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, const struct pwm_state *state) argument
[all...]
H A Dpwm-berlin.c19 #include <linux/pwm.h>
75 static int berlin_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, argument
100 value = berlin_pwm_readl(bpc, pwm->hwpwm, BERLIN_PWM_CONTROL);
105 berlin_pwm_writel(bpc, pwm->hwpwm, value, BERLIN_PWM_CONTROL);
107 berlin_pwm_writel(bpc, pwm->hwpwm, duty, BERLIN_PWM_DUTY);
108 berlin_pwm_writel(bpc, pwm->hwpwm, period, BERLIN_PWM_TCNT);
114 struct pwm_device *pwm,
120 value = berlin_pwm_readl(bpc, pwm->hwpwm, BERLIN_PWM_CONTROL);
127 berlin_pwm_writel(bpc, pwm->hwpwm, value, BERLIN_PWM_CONTROL);
132 static int berlin_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) argument
113 berlin_pwm_set_polarity(struct pwm_chip *chip, struct pwm_device *pwm, enum pwm_polarity polarity) argument
144 berlin_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) argument
155 berlin_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, const struct pwm_state *state) argument
[all...]
H A Dpwm-mediatek.c18 #include <linux/pwm.h>
74 struct pwm_device *pwm)
87 ret = clk_prepare_enable(pc->clk_pwms[pwm->hwpwm]);
102 struct pwm_device *pwm)
106 clk_disable_unprepare(pc->clk_pwms[pwm->hwpwm]);
118 static int pwm_mediatek_config(struct pwm_chip *chip, struct pwm_device *pwm, argument
127 ret = pwm_mediatek_clk_enable(chip, pwm);
138 do_div(resolution, clk_get_rate(pc->clk_pwms[pwm->hwpwm]));
149 pwm_mediatek_clk_disable(chip, pwm);
154 if (pc->soc->pwm45_fixup && pwm
73 pwm_mediatek_clk_enable(struct pwm_chip *chip, struct pwm_device *pwm) argument
101 pwm_mediatek_clk_disable(struct pwm_chip *chip, struct pwm_device *pwm) argument
173 pwm_mediatek_enable(struct pwm_chip *chip, struct pwm_device *pwm) argument
190 pwm_mediatek_disable(struct pwm_chip *chip, struct pwm_device *pwm) argument
202 pwm_mediatek_apply(struct pwm_chip *chip, struct pwm_device *pwm, const struct pwm_state *state) argument
[all...]
H A Dpwm-microchip-core.c42 #include <linux/pwm.h>
70 static void mchp_core_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm, argument
78 * 0-7 and the upper reg 8-15. Check if the pwm is in the upper reg
81 reg_offset = MCHPCOREPWM_EN(pwm->hwpwm >> 3);
82 shift = pwm->hwpwm & 7;
89 mchp_core_pwm->channel_enabled &= ~BIT(pwm->hwpwm);
90 mchp_core_pwm->channel_enabled |= enable << pwm->hwpwm;
97 if (mchp_core_pwm->sync_update_mask & (1 << pwm->hwpwm))
150 static void mchp_core_pwm_apply_duty(struct pwm_chip *chip, struct pwm_device *pwm, argument
180 writel_relaxed(posedge, mchp_core_pwm->base + MCHPCOREPWM_POSEDGE(pwm
273 mchp_core_pwm_apply_locked(struct pwm_chip *chip, struct pwm_device *pwm, const struct pwm_state *state) argument
359 mchp_core_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, const struct pwm_state *state) argument
376 mchp_core_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm, struct pwm_state *state) argument
[all...]
H A Dpwm-hibvt.c15 #include <linux/pwm.h>
82 static void hibvt_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) argument
86 hibvt_pwm_set_bits(hi_pwm_chip->base, PWM_CTRL_ADDR(pwm->hwpwm),
90 static void hibvt_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) argument
94 hibvt_pwm_set_bits(hi_pwm_chip->base, PWM_CTRL_ADDR(pwm->hwpwm),
98 static void hibvt_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, argument
109 hibvt_pwm_set_bits(hi_pwm_chip->base, PWM_CFG0_ADDR(pwm->hwpwm),
112 hibvt_pwm_set_bits(hi_pwm_chip->base, PWM_CFG1_ADDR(pwm->hwpwm),
117 struct pwm_device *pwm,
123 hibvt_pwm_set_bits(hi_pwm_chip->base, PWM_CTRL_ADDR(pwm
116 hibvt_pwm_set_polarity(struct pwm_chip *chip, struct pwm_device *pwm, enum pwm_polarity polarity) argument
130 hibvt_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm, struct pwm_state *state) argument
153 hibvt_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, const struct pwm_state *state) argument
[all...]
H A Dpwm-atmel.c29 #include <linux/pwm.h>
238 static void atmel_pwm_update_cdty(struct pwm_chip *chip, struct pwm_device *pwm, argument
246 val = atmel_pwm_ch_readl(atmel_pwm, pwm->hwpwm, PWM_CMR);
248 atmel_pwm_ch_writel(atmel_pwm, pwm->hwpwm, PWM_CMR, val);
251 atmel_pwm_ch_writel(atmel_pwm, pwm->hwpwm,
253 atmel_pwm_set_pending(atmel_pwm, pwm->hwpwm);
257 struct pwm_device *pwm,
262 atmel_pwm_ch_writel(atmel_pwm, pwm->hwpwm,
264 atmel_pwm_ch_writel(atmel_pwm, pwm->hwpwm,
268 static void atmel_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm, argument
256 atmel_pwm_set_cprd_cdty(struct pwm_chip *chip, struct pwm_device *pwm, unsigned long cprd, unsigned long cdty) argument
292 atmel_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, const struct pwm_state *state) argument
354 atmel_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm, struct pwm_state *state) argument
[all...]
/linux-master/include/linux/
H A Df75375s.h17 u8 pwm[2]; member in struct:f75375s_platform_data
H A Dpwm.h90 * @pwm: PWM device
98 static inline void pwm_get_state(const struct pwm_device *pwm, argument
101 *state = pwm->state;
104 static inline bool pwm_is_enabled(const struct pwm_device *pwm) argument
108 pwm_get_state(pwm, &state);
113 static inline u64 pwm_get_period(const struct pwm_device *pwm) argument
117 pwm_get_state(pwm, &state);
122 static inline u64 pwm_get_duty_cycle(const struct pwm_device *pwm) argument
126 pwm_get_state(pwm, &state);
131 static inline enum pwm_polarity pwm_get_polarity(const struct pwm_device *pwm) argument
140 pwm_get_args(const struct pwm_device *pwm, struct pwm_args *args) argument
163 pwm_init_state(const struct pwm_device *pwm, struct pwm_state *state) argument
331 pwm_config(struct pwm_device *pwm, int duty_ns, int period_ns) argument
357 pwm_enable(struct pwm_device *pwm) argument
376 pwm_disable(struct pwm_device *pwm) argument
397 pwm_might_sleep(struct pwm_device *pwm) argument
434 pwm_might_sleep(struct pwm_device *pwm) argument
439 pwm_apply_might_sleep(struct pwm_device *pwm, const struct pwm_state *state) argument
446 pwm_apply_atomic(struct pwm_device *pwm, const struct pwm_state *state) argument
452 pwm_adjust_config(struct pwm_device *pwm) argument
457 pwm_config(struct pwm_device *pwm, int duty_ns, int period_ns) argument
464 pwm_enable(struct pwm_device *pwm) argument
470 pwm_disable(struct pwm_device *pwm) argument
475 pwm_capture(struct pwm_device *pwm, struct pwm_capture *result, unsigned long timeout) argument
530 pwm_put(struct pwm_device *pwm) argument
551 pwm_apply_args(struct pwm_device *pwm) argument
585 pwm_apply_state(struct pwm_device *pwm, const struct pwm_state *state) argument
[all...]
/linux-master/include/trace/events/
H A Dpwm.h3 #define TRACE_SYSTEM pwm
8 #include <linux/pwm.h>
11 DECLARE_EVENT_CLASS(pwm,
13 TP_PROTO(struct pwm_device *pwm, const struct pwm_state *state, int err),
15 TP_ARGS(pwm, state, err),
18 __field(struct pwm_device *, pwm)
27 __entry->pwm = pwm;
36 __entry->pwm, __entry->period, __entry->duty_cycle,
41 DEFINE_EVENT(pwm, pwm_appl
[all...]
/linux-master/drivers/clocksource/
H A Dsamsung_pwm_timer.c79 static struct samsung_pwm_clocksource pwm; variable in typeref:struct:samsung_pwm_clocksource
92 reg = readl(pwm.base + REG_TCFG0);
95 writel(reg, pwm.base + REG_TCFG0);
107 bits = (fls(divisor) - 1) - pwm.variant.div_base;
111 reg = readl(pwm.base + REG_TCFG1);
114 writel(reg, pwm.base + REG_TCFG1);
129 tcon = readl_relaxed(pwm.base + REG_TCON);
131 writel_relaxed(tcon, pwm.base + REG_TCON);
147 tcon = readl_relaxed(pwm.base + REG_TCON);
152 writel_relaxed(tcnt, pwm
[all...]
/linux-master/drivers/input/keyboard/
H A Dlm8323.c126 /* pwm lock */
147 struct lm8323_pwm pwm[LM8323_NUM_PWMS]; member in struct:lm8323_chip
351 static void pwm_done(struct lm8323_pwm *pwm) argument
353 mutex_lock(&pwm->lock);
354 pwm->running = false;
355 if (pwm->desired_brightness != pwm->brightness)
356 schedule_work(&pwm->work);
357 mutex_unlock(&pwm->lock);
391 "pwm
416 lm8323_write_pwm_one(struct lm8323_pwm *pwm, int pos, u16 cmd) argument
428 lm8323_write_pwm(struct lm8323_pwm *pwm, int kill, int len, const u16 *cmds) argument
443 struct lm8323_pwm *pwm = work_to_pwm(work); local
500 struct lm8323_pwm *pwm = cdev_to_pwm(led_cdev); local
526 struct lm8323_pwm *pwm = cdev_to_pwm(led_cdev); local
535 struct lm8323_pwm *pwm = cdev_to_pwm(led_cdev); local
558 struct lm8323_pwm *pwm; local
630 int pwm; local
[all...]
/linux-master/drivers/media/dvb-frontends/
H A Dtda1002x.h50 struct i2c_adapter* i2c, u8 pwm);
53 struct i2c_adapter* i2c, u8 pwm)
63 struct i2c_adapter *i2c, u8 pwm);
67 struct i2c_adapter *i2c, u8 pwm)
52 tda10021_attach(const struct tda1002x_config* config, struct i2c_adapter* i2c, u8 pwm) argument
65 tda10023_attach( const struct tda10023_config *config, struct i2c_adapter *i2c, u8 pwm) argument
H A Dves1820.h34 struct i2c_adapter* i2c, u8 pwm);
37 struct i2c_adapter* i2c, u8 pwm)
36 ves1820_attach(const struct ves1820_config* config, struct i2c_adapter* i2c, u8 pwm) argument
/linux-master/drivers/clk/
H A Dclk-pwm.c12 #include <linux/pwm.h>
16 struct pwm_device *pwm; member in struct:clk_pwm
29 return pwm_enable(clk_pwm->pwm);
36 pwm_disable(clk_pwm->pwm);
52 pwm_get_state(clk_pwm->pwm, &state);
72 struct pwm_device *pwm; local
81 pwm = devm_pwm_get(&pdev->dev, NULL);
82 if (IS_ERR(pwm))
83 return PTR_ERR(pwm);
85 pwm_get_args(pwm,
[all...]
/linux-master/drivers/hwmon/
H A Dmlxreg-fan.c100 * @pwm: PWM data;
110 struct mlxreg_fan_pwm pwm[MLXREG_FAN_MAX_PWM]; member in struct:mlxreg_fan
125 struct mlxreg_fan_pwm *pwm; local
182 pwm = &fan->pwm[channel];
185 err = regmap_read(fan->regmap, pwm->reg, &regval);
209 struct mlxreg_fan_pwm *pwm; local
218 pwm = &fan->pwm[channel];
221 pwm
344 struct mlxreg_fan_pwm *pwm = cdev->devdata; local
364 struct mlxreg_fan_pwm *pwm = cdev->devdata; local
559 struct mlxreg_fan_pwm *pwm = &fan->pwm[i]; local
[all...]

Completed in 213 milliseconds

123456789