Searched refs:lpwm (Results 1 – 4 of 4) sorted by relevance
/drivers/pwm/ |
D | pwm-lpss.c | 70 struct pwm_lpss_chip *lpwm = to_lpwm(pwm->chip); in pwm_lpss_read() local 72 return readl(lpwm->regs + pwm->hwpwm * PWM_SIZE + PWM); in pwm_lpss_read() 77 struct pwm_lpss_chip *lpwm = to_lpwm(pwm->chip); in pwm_lpss_write() local 79 writel(value, lpwm->regs + pwm->hwpwm * PWM_SIZE + PWM); in pwm_lpss_write() 85 struct pwm_lpss_chip *lpwm = to_lpwm(chip); in pwm_lpss_config() local 96 c = lpwm->clk_rate; in pwm_lpss_config() 148 struct pwm_lpss_chip *lpwm; in pwm_lpss_probe() local 151 lpwm = devm_kzalloc(dev, sizeof(*lpwm), GFP_KERNEL); in pwm_lpss_probe() 152 if (!lpwm) in pwm_lpss_probe() 155 lpwm->regs = devm_ioremap_resource(dev, r); in pwm_lpss_probe() [all …]
|
D | pwm-lpss-platform.c | 25 struct pwm_lpss_chip *lpwm; in pwm_lpss_probe_platform() local 35 lpwm = pwm_lpss_probe(&pdev->dev, r, info); in pwm_lpss_probe_platform() 36 if (IS_ERR(lpwm)) in pwm_lpss_probe_platform() 37 return PTR_ERR(lpwm); in pwm_lpss_probe_platform() 39 platform_set_drvdata(pdev, lpwm); in pwm_lpss_probe_platform() 49 struct pwm_lpss_chip *lpwm = platform_get_drvdata(pdev); in pwm_lpss_remove_platform() local 52 return pwm_lpss_remove(lpwm); in pwm_lpss_remove_platform()
|
D | pwm-lpss-pci.c | 24 struct pwm_lpss_chip *lpwm; in pwm_lpss_probe_pci() local 32 lpwm = pwm_lpss_probe(&pdev->dev, &pdev->resource[0], info); in pwm_lpss_probe_pci() 33 if (IS_ERR(lpwm)) in pwm_lpss_probe_pci() 34 return PTR_ERR(lpwm); in pwm_lpss_probe_pci() 36 pci_set_drvdata(pdev, lpwm); in pwm_lpss_probe_pci() 46 struct pwm_lpss_chip *lpwm = pci_get_drvdata(pdev); in pwm_lpss_remove_pci() local 51 pwm_lpss_remove(lpwm); in pwm_lpss_remove_pci()
|
D | pwm-lpss.h | 32 int pwm_lpss_remove(struct pwm_lpss_chip *lpwm);
|