lpwm 50 drivers/pwm/pwm-lpss-pci.c struct pwm_lpss_chip *lpwm; lpwm 58 drivers/pwm/pwm-lpss-pci.c lpwm = pwm_lpss_probe(&pdev->dev, &pdev->resource[0], info); lpwm 59 drivers/pwm/pwm-lpss-pci.c if (IS_ERR(lpwm)) lpwm 60 drivers/pwm/pwm-lpss-pci.c return PTR_ERR(lpwm); lpwm 62 drivers/pwm/pwm-lpss-pci.c pci_set_drvdata(pdev, lpwm); lpwm 72 drivers/pwm/pwm-lpss-pci.c struct pwm_lpss_chip *lpwm = pci_get_drvdata(pdev); lpwm 77 drivers/pwm/pwm-lpss-pci.c pwm_lpss_remove(lpwm); lpwm 45 drivers/pwm/pwm-lpss-platform.c struct pwm_lpss_chip *lpwm; lpwm 55 drivers/pwm/pwm-lpss-platform.c lpwm = pwm_lpss_probe(&pdev->dev, r, info); lpwm 56 drivers/pwm/pwm-lpss-platform.c if (IS_ERR(lpwm)) lpwm 57 drivers/pwm/pwm-lpss-platform.c return PTR_ERR(lpwm); lpwm 59 drivers/pwm/pwm-lpss-platform.c platform_set_drvdata(pdev, lpwm); lpwm 70 drivers/pwm/pwm-lpss-platform.c struct pwm_lpss_chip *lpwm = platform_get_drvdata(pdev); lpwm 73 drivers/pwm/pwm-lpss-platform.c return pwm_lpss_remove(lpwm); lpwm 78 drivers/pwm/pwm-lpss-platform.c struct pwm_lpss_chip *lpwm = dev_get_drvdata(dev); lpwm 84 drivers/pwm/pwm-lpss-platform.c if (lpwm->info->other_devices_aml_touches_pwm_regs) lpwm 39 drivers/pwm/pwm-lpss.c struct pwm_lpss_chip *lpwm = to_lpwm(pwm->chip); lpwm 41 drivers/pwm/pwm-lpss.c return readl(lpwm->regs + pwm->hwpwm * PWM_SIZE + PWM); lpwm 46 drivers/pwm/pwm-lpss.c struct pwm_lpss_chip *lpwm = to_lpwm(pwm->chip); lpwm 48 drivers/pwm/pwm-lpss.c writel(value, lpwm->regs + pwm->hwpwm * PWM_SIZE + PWM); lpwm 53 drivers/pwm/pwm-lpss.c struct pwm_lpss_chip *lpwm = to_lpwm(pwm->chip); lpwm 54 drivers/pwm/pwm-lpss.c const void __iomem *addr = lpwm->regs + pwm->hwpwm * PWM_SIZE + PWM; lpwm 82 drivers/pwm/pwm-lpss.c static void pwm_lpss_prepare(struct pwm_lpss_chip *lpwm, struct pwm_device *pwm, lpwm 86 drivers/pwm/pwm-lpss.c unsigned long c = lpwm->info->clk_rate, base_unit_range; lpwm 96 drivers/pwm/pwm-lpss.c base_unit_range = BIT(lpwm->info->base_unit_bits) - 1; lpwm 127 drivers/pwm/pwm-lpss.c struct pwm_lpss_chip *lpwm = to_lpwm(chip); lpwm 138 drivers/pwm/pwm-lpss.c pwm_lpss_prepare(lpwm, pwm, state->duty_cycle, state->period); lpwm 139 drivers/pwm/pwm-lpss.c pwm_lpss_cond_enable(pwm, lpwm->info->bypass == false); lpwm 145 drivers/pwm/pwm-lpss.c pwm_lpss_cond_enable(pwm, lpwm->info->bypass == true); lpwm 150 drivers/pwm/pwm-lpss.c pwm_lpss_prepare(lpwm, pwm, state->duty_cycle, state->period); lpwm 165 drivers/pwm/pwm-lpss.c struct pwm_lpss_chip *lpwm = to_lpwm(chip); lpwm 170 drivers/pwm/pwm-lpss.c base_unit_range = BIT(lpwm->info->base_unit_bits); lpwm 176 drivers/pwm/pwm-lpss.c freq = base_unit * lpwm->info->clk_rate; lpwm 203 drivers/pwm/pwm-lpss.c struct pwm_lpss_chip *lpwm; lpwm 210 drivers/pwm/pwm-lpss.c lpwm = devm_kzalloc(dev, sizeof(*lpwm), GFP_KERNEL); lpwm 211 drivers/pwm/pwm-lpss.c if (!lpwm) lpwm 214 drivers/pwm/pwm-lpss.c lpwm->regs = devm_ioremap_resource(dev, r); lpwm 215 drivers/pwm/pwm-lpss.c if (IS_ERR(lpwm->regs)) lpwm 216 drivers/pwm/pwm-lpss.c return ERR_CAST(lpwm->regs); lpwm 218 drivers/pwm/pwm-lpss.c lpwm->info = info; lpwm 220 drivers/pwm/pwm-lpss.c c = lpwm->info->clk_rate; lpwm 224 drivers/pwm/pwm-lpss.c lpwm->chip.dev = dev; lpwm 225 drivers/pwm/pwm-lpss.c lpwm->chip.ops = &pwm_lpss_ops; lpwm 226 drivers/pwm/pwm-lpss.c lpwm->chip.base = -1; lpwm 227 drivers/pwm/pwm-lpss.c lpwm->chip.npwm = info->npwm; lpwm 229 drivers/pwm/pwm-lpss.c ret = pwmchip_add(&lpwm->chip); lpwm 235 drivers/pwm/pwm-lpss.c return lpwm; lpwm 239 drivers/pwm/pwm-lpss.c int pwm_lpss_remove(struct pwm_lpss_chip *lpwm) lpwm 243 drivers/pwm/pwm-lpss.c for (i = 0; i < lpwm->info->npwm; i++) { lpwm 244 drivers/pwm/pwm-lpss.c if (pwm_is_enabled(&lpwm->chip.pwms[i])) lpwm 245 drivers/pwm/pwm-lpss.c pm_runtime_put(lpwm->chip.dev); lpwm 247 drivers/pwm/pwm-lpss.c return pwmchip_remove(&lpwm->chip); lpwm 253 drivers/pwm/pwm-lpss.c struct pwm_lpss_chip *lpwm = dev_get_drvdata(dev); lpwm 256 drivers/pwm/pwm-lpss.c for (i = 0; i < lpwm->info->npwm; i++) lpwm 257 drivers/pwm/pwm-lpss.c lpwm->saved_ctrl[i] = readl(lpwm->regs + i * PWM_SIZE + PWM); lpwm 265 drivers/pwm/pwm-lpss.c struct pwm_lpss_chip *lpwm = dev_get_drvdata(dev); lpwm 268 drivers/pwm/pwm-lpss.c for (i = 0; i < lpwm->info->npwm; i++) lpwm 269 drivers/pwm/pwm-lpss.c writel(lpwm->saved_ctrl[i], lpwm->regs + i * PWM_SIZE + PWM); lpwm 39 drivers/pwm/pwm-lpss.h int pwm_lpss_remove(struct pwm_lpss_chip *lpwm);