Searched refs:lpwm (Results 1 – 4 of 4) sorted by relevance
/linux-4.19.296/drivers/pwm/ |
D | pwm-lpss.c | 51 struct pwm_lpss_chip *lpwm = to_lpwm(pwm->chip); in pwm_lpss_read() local 53 return readl(lpwm->regs + pwm->hwpwm * PWM_SIZE + PWM); in pwm_lpss_read() 58 struct pwm_lpss_chip *lpwm = to_lpwm(pwm->chip); in pwm_lpss_write() local 60 writel(value, lpwm->regs + pwm->hwpwm * PWM_SIZE + PWM); in pwm_lpss_write() 65 struct pwm_lpss_chip *lpwm = to_lpwm(pwm->chip); in pwm_lpss_wait_for_update() local 66 const void __iomem *addr = lpwm->regs + pwm->hwpwm * PWM_SIZE + PWM; in pwm_lpss_wait_for_update() 94 static void pwm_lpss_prepare(struct pwm_lpss_chip *lpwm, struct pwm_device *pwm, in pwm_lpss_prepare() argument 98 unsigned long c = lpwm->info->clk_rate, base_unit_range; in pwm_lpss_prepare() 108 base_unit_range = BIT(lpwm->info->base_unit_bits); in pwm_lpss_prepare() 140 struct pwm_lpss_chip *lpwm = to_lpwm(chip); in pwm_lpss_apply() local [all …]
|
D | pwm-lpss-platform.c | 47 struct pwm_lpss_chip *lpwm; in pwm_lpss_probe_platform() local 57 lpwm = pwm_lpss_probe(&pdev->dev, r, info); in pwm_lpss_probe_platform() 58 if (IS_ERR(lpwm)) in pwm_lpss_probe_platform() 59 return PTR_ERR(lpwm); in pwm_lpss_probe_platform() 61 platform_set_drvdata(pdev, lpwm); in pwm_lpss_probe_platform() 71 struct pwm_lpss_chip *lpwm = platform_get_drvdata(pdev); in pwm_lpss_remove_platform() local 74 return pwm_lpss_remove(lpwm); in pwm_lpss_remove_platform()
|
D | pwm-lpss-pci.c | 53 struct pwm_lpss_chip *lpwm; in pwm_lpss_probe_pci() local 61 lpwm = pwm_lpss_probe(&pdev->dev, &pdev->resource[0], info); in pwm_lpss_probe_pci() 62 if (IS_ERR(lpwm)) in pwm_lpss_probe_pci() 63 return PTR_ERR(lpwm); in pwm_lpss_probe_pci() 65 pci_set_drvdata(pdev, lpwm); in pwm_lpss_probe_pci() 75 struct pwm_lpss_chip *lpwm = pci_get_drvdata(pdev); in pwm_lpss_remove_pci() local 80 pwm_lpss_remove(lpwm); in pwm_lpss_remove_pci()
|
D | pwm-lpss.h | 30 int pwm_lpss_remove(struct pwm_lpss_chip *lpwm);
|