mxs 282 drivers/clocksource/mxs_timer.c TIMER_OF_DECLARE(mxs, "fsl,timrot", mxs_timer_init); mxs 207 drivers/irqchip/irq-mxs.c IRQCHIP_DECLARE(mxs, "fsl,icoll", icoll_of_init); mxs 47 drivers/pwm/pwm-mxs.c struct mxs_pwm_chip *mxs = to_mxs_pwm_chip(chip); mxs 53 drivers/pwm/pwm-mxs.c rate = clk_get_rate(mxs->clk); mxs 75 drivers/pwm/pwm-mxs.c ret = clk_prepare_enable(mxs->clk); mxs 81 drivers/pwm/pwm-mxs.c mxs->base + PWM_ACTIVE0 + pwm->hwpwm * 0x20); mxs 84 drivers/pwm/pwm-mxs.c mxs->base + PWM_PERIOD0 + pwm->hwpwm * 0x20); mxs 90 drivers/pwm/pwm-mxs.c clk_disable_unprepare(mxs->clk); mxs 97 drivers/pwm/pwm-mxs.c struct mxs_pwm_chip *mxs = to_mxs_pwm_chip(chip); mxs 100 drivers/pwm/pwm-mxs.c ret = clk_prepare_enable(mxs->clk); mxs 104 drivers/pwm/pwm-mxs.c writel(1 << pwm->hwpwm, mxs->base + PWM_CTRL + SET); mxs 111 drivers/pwm/pwm-mxs.c struct mxs_pwm_chip *mxs = to_mxs_pwm_chip(chip); mxs 113 drivers/pwm/pwm-mxs.c writel(1 << pwm->hwpwm, mxs->base + PWM_CTRL + CLR); mxs 115 drivers/pwm/pwm-mxs.c clk_disable_unprepare(mxs->clk); mxs 128 drivers/pwm/pwm-mxs.c struct mxs_pwm_chip *mxs; mxs 131 drivers/pwm/pwm-mxs.c mxs = devm_kzalloc(&pdev->dev, sizeof(*mxs), GFP_KERNEL); mxs 132 drivers/pwm/pwm-mxs.c if (!mxs) mxs 135 drivers/pwm/pwm-mxs.c mxs->base = devm_platform_ioremap_resource(pdev, 0); mxs 136 drivers/pwm/pwm-mxs.c if (IS_ERR(mxs->base)) mxs 137 drivers/pwm/pwm-mxs.c return PTR_ERR(mxs->base); mxs 139 drivers/pwm/pwm-mxs.c mxs->clk = devm_clk_get(&pdev->dev, NULL); mxs 140 drivers/pwm/pwm-mxs.c if (IS_ERR(mxs->clk)) mxs 141 drivers/pwm/pwm-mxs.c return PTR_ERR(mxs->clk); mxs 143 drivers/pwm/pwm-mxs.c mxs->chip.dev = &pdev->dev; mxs 144 drivers/pwm/pwm-mxs.c mxs->chip.ops = &mxs_pwm_ops; mxs 145 drivers/pwm/pwm-mxs.c mxs->chip.base = -1; mxs 147 drivers/pwm/pwm-mxs.c ret = of_property_read_u32(np, "fsl,pwm-number", &mxs->chip.npwm); mxs 153 drivers/pwm/pwm-mxs.c ret = pwmchip_add(&mxs->chip); mxs 159 drivers/pwm/pwm-mxs.c platform_set_drvdata(pdev, mxs); mxs 161 drivers/pwm/pwm-mxs.c ret = stmp_reset_block(mxs->base); mxs 168 drivers/pwm/pwm-mxs.c pwmchip_remove(&mxs->chip); mxs 174 drivers/pwm/pwm-mxs.c struct mxs_pwm_chip *mxs = platform_get_drvdata(pdev); mxs 176 drivers/pwm/pwm-mxs.c return pwmchip_remove(&mxs->chip);