Searched refs:lpwm (Results 1 – 4 of 4) sorted by relevance
/Linux-v5.4/drivers/pwm/ |
D | pwm-lpss.c | 39 struct pwm_lpss_chip *lpwm = to_lpwm(pwm->chip); in pwm_lpss_read() local 41 return readl(lpwm->regs + pwm->hwpwm * PWM_SIZE + PWM); in pwm_lpss_read() 46 struct pwm_lpss_chip *lpwm = to_lpwm(pwm->chip); in pwm_lpss_write() local 48 writel(value, lpwm->regs + pwm->hwpwm * PWM_SIZE + PWM); in pwm_lpss_write() 53 struct pwm_lpss_chip *lpwm = to_lpwm(pwm->chip); in pwm_lpss_wait_for_update() local 54 const void __iomem *addr = lpwm->regs + pwm->hwpwm * PWM_SIZE + PWM; in pwm_lpss_wait_for_update() 82 static void pwm_lpss_prepare(struct pwm_lpss_chip *lpwm, struct pwm_device *pwm, in pwm_lpss_prepare() argument 86 unsigned long c = lpwm->info->clk_rate, base_unit_range; in pwm_lpss_prepare() 96 base_unit_range = BIT(lpwm->info->base_unit_bits) - 1; in pwm_lpss_prepare() 127 struct pwm_lpss_chip *lpwm = to_lpwm(chip); in pwm_lpss_apply() local [all …]
|
D | pwm-lpss-platform.c | 45 struct pwm_lpss_chip *lpwm; in pwm_lpss_probe_platform() local 55 lpwm = pwm_lpss_probe(&pdev->dev, r, info); in pwm_lpss_probe_platform() 56 if (IS_ERR(lpwm)) in pwm_lpss_probe_platform() 57 return PTR_ERR(lpwm); in pwm_lpss_probe_platform() 59 platform_set_drvdata(pdev, lpwm); in pwm_lpss_probe_platform() 70 struct pwm_lpss_chip *lpwm = platform_get_drvdata(pdev); in pwm_lpss_remove_platform() local 73 return pwm_lpss_remove(lpwm); in pwm_lpss_remove_platform() 78 struct pwm_lpss_chip *lpwm = dev_get_drvdata(dev); in pwm_lpss_prepare() local 84 if (lpwm->info->other_devices_aml_touches_pwm_regs) in pwm_lpss_prepare()
|
D | pwm-lpss-pci.c | 50 struct pwm_lpss_chip *lpwm; in pwm_lpss_probe_pci() local 58 lpwm = pwm_lpss_probe(&pdev->dev, &pdev->resource[0], info); in pwm_lpss_probe_pci() 59 if (IS_ERR(lpwm)) in pwm_lpss_probe_pci() 60 return PTR_ERR(lpwm); in pwm_lpss_probe_pci() 62 pci_set_drvdata(pdev, lpwm); in pwm_lpss_probe_pci() 72 struct pwm_lpss_chip *lpwm = pci_get_drvdata(pdev); in pwm_lpss_remove_pci() local 77 pwm_lpss_remove(lpwm); in pwm_lpss_remove_pci()
|
D | pwm-lpss.h | 39 int pwm_lpss_remove(struct pwm_lpss_chip *lpwm);
|