tpm                94 drivers/pwm/pwm-imx-tpm.c 	struct imx_tpm_pwm_chip *tpm = to_imx_tpm_pwm_chip(chip);
tpm                98 drivers/pwm/pwm-imx-tpm.c 	rate = clk_get_rate(tpm->clk);
tpm               141 drivers/pwm/pwm-imx-tpm.c 	struct imx_tpm_pwm_chip *tpm = to_imx_tpm_pwm_chip(chip);
tpm               146 drivers/pwm/pwm-imx-tpm.c 	state->period = tpm->real_period;
tpm               149 drivers/pwm/pwm-imx-tpm.c 	rate = clk_get_rate(tpm->clk);
tpm               150 drivers/pwm/pwm-imx-tpm.c 	val = readl(tpm->base + PWM_IMX_TPM_SC);
tpm               152 drivers/pwm/pwm-imx-tpm.c 	tmp = readl(tpm->base + PWM_IMX_TPM_CnV(pwm->hwpwm));
tpm               157 drivers/pwm/pwm-imx-tpm.c 	val = readl(tpm->base + PWM_IMX_TPM_CnSC(pwm->hwpwm));
tpm               177 drivers/pwm/pwm-imx-tpm.c 	struct imx_tpm_pwm_chip *tpm = to_imx_tpm_pwm_chip(chip);
tpm               184 drivers/pwm/pwm-imx-tpm.c 	if (state->period != tpm->real_period) {
tpm               191 drivers/pwm/pwm-imx-tpm.c 		if (tpm->user_count > 1)
tpm               194 drivers/pwm/pwm-imx-tpm.c 		val = readl(tpm->base + PWM_IMX_TPM_SC);
tpm               203 drivers/pwm/pwm-imx-tpm.c 		writel(val, tpm->base + PWM_IMX_TPM_SC);
tpm               213 drivers/pwm/pwm-imx-tpm.c 		writel(p->mod, tpm->base + PWM_IMX_TPM_MOD);
tpm               214 drivers/pwm/pwm-imx-tpm.c 		tpm->real_period = state->period;
tpm               233 drivers/pwm/pwm-imx-tpm.c 		writel(p->val, tpm->base + PWM_IMX_TPM_CnV(pwm->hwpwm));
tpm               239 drivers/pwm/pwm-imx-tpm.c 		timeout = jiffies + msecs_to_jiffies(tpm->real_period /
tpm               241 drivers/pwm/pwm-imx-tpm.c 		while (readl(tpm->base + PWM_IMX_TPM_MOD) != p->mod
tpm               242 drivers/pwm/pwm-imx-tpm.c 		       || readl(tpm->base + PWM_IMX_TPM_CnV(pwm->hwpwm))
tpm               256 drivers/pwm/pwm-imx-tpm.c 	val = readl(tpm->base + PWM_IMX_TPM_CnSC(pwm->hwpwm));
tpm               272 drivers/pwm/pwm-imx-tpm.c 	writel(val, tpm->base + PWM_IMX_TPM_CnSC(pwm->hwpwm));
tpm               276 drivers/pwm/pwm-imx-tpm.c 		val = readl(tpm->base + PWM_IMX_TPM_SC);
tpm               278 drivers/pwm/pwm-imx-tpm.c 			if (++tpm->enable_count == 1)
tpm               281 drivers/pwm/pwm-imx-tpm.c 			if (--tpm->enable_count == 0)
tpm               284 drivers/pwm/pwm-imx-tpm.c 		writel(val, tpm->base + PWM_IMX_TPM_SC);
tpm               294 drivers/pwm/pwm-imx-tpm.c 	struct imx_tpm_pwm_chip *tpm = to_imx_tpm_pwm_chip(chip);
tpm               303 drivers/pwm/pwm-imx-tpm.c 	mutex_lock(&tpm->lock);
tpm               305 drivers/pwm/pwm-imx-tpm.c 	mutex_unlock(&tpm->lock);
tpm               312 drivers/pwm/pwm-imx-tpm.c 	struct imx_tpm_pwm_chip *tpm = to_imx_tpm_pwm_chip(chip);
tpm               314 drivers/pwm/pwm-imx-tpm.c 	mutex_lock(&tpm->lock);
tpm               315 drivers/pwm/pwm-imx-tpm.c 	tpm->user_count++;
tpm               316 drivers/pwm/pwm-imx-tpm.c 	mutex_unlock(&tpm->lock);
tpm               323 drivers/pwm/pwm-imx-tpm.c 	struct imx_tpm_pwm_chip *tpm = to_imx_tpm_pwm_chip(chip);
tpm               325 drivers/pwm/pwm-imx-tpm.c 	mutex_lock(&tpm->lock);
tpm               326 drivers/pwm/pwm-imx-tpm.c 	tpm->user_count--;
tpm               327 drivers/pwm/pwm-imx-tpm.c 	mutex_unlock(&tpm->lock);
tpm               340 drivers/pwm/pwm-imx-tpm.c 	struct imx_tpm_pwm_chip *tpm;
tpm               344 drivers/pwm/pwm-imx-tpm.c 	tpm = devm_kzalloc(&pdev->dev, sizeof(*tpm), GFP_KERNEL);
tpm               345 drivers/pwm/pwm-imx-tpm.c 	if (!tpm)
tpm               348 drivers/pwm/pwm-imx-tpm.c 	platform_set_drvdata(pdev, tpm);
tpm               350 drivers/pwm/pwm-imx-tpm.c 	tpm->base = devm_platform_ioremap_resource(pdev, 0);
tpm               351 drivers/pwm/pwm-imx-tpm.c 	if (IS_ERR(tpm->base))
tpm               352 drivers/pwm/pwm-imx-tpm.c 		return PTR_ERR(tpm->base);
tpm               354 drivers/pwm/pwm-imx-tpm.c 	tpm->clk = devm_clk_get(&pdev->dev, NULL);
tpm               355 drivers/pwm/pwm-imx-tpm.c 	if (IS_ERR(tpm->clk)) {
tpm               356 drivers/pwm/pwm-imx-tpm.c 		ret = PTR_ERR(tpm->clk);
tpm               363 drivers/pwm/pwm-imx-tpm.c 	ret = clk_prepare_enable(tpm->clk);
tpm               370 drivers/pwm/pwm-imx-tpm.c 	tpm->chip.dev = &pdev->dev;
tpm               371 drivers/pwm/pwm-imx-tpm.c 	tpm->chip.ops = &imx_tpm_pwm_ops;
tpm               372 drivers/pwm/pwm-imx-tpm.c 	tpm->chip.base = -1;
tpm               373 drivers/pwm/pwm-imx-tpm.c 	tpm->chip.of_xlate = of_pwm_xlate_with_flags;
tpm               374 drivers/pwm/pwm-imx-tpm.c 	tpm->chip.of_pwm_n_cells = 3;
tpm               377 drivers/pwm/pwm-imx-tpm.c 	val = readl(tpm->base + PWM_IMX_TPM_PARAM);
tpm               378 drivers/pwm/pwm-imx-tpm.c 	tpm->chip.npwm = FIELD_GET(PWM_IMX_TPM_PARAM_CHAN, val);
tpm               380 drivers/pwm/pwm-imx-tpm.c 	mutex_init(&tpm->lock);
tpm               382 drivers/pwm/pwm-imx-tpm.c 	ret = pwmchip_add(&tpm->chip);
tpm               385 drivers/pwm/pwm-imx-tpm.c 		clk_disable_unprepare(tpm->clk);
tpm               393 drivers/pwm/pwm-imx-tpm.c 	struct imx_tpm_pwm_chip *tpm = platform_get_drvdata(pdev);
tpm               394 drivers/pwm/pwm-imx-tpm.c 	int ret = pwmchip_remove(&tpm->chip);
tpm               396 drivers/pwm/pwm-imx-tpm.c 	clk_disable_unprepare(tpm->clk);
tpm               403 drivers/pwm/pwm-imx-tpm.c 	struct imx_tpm_pwm_chip *tpm = dev_get_drvdata(dev);
tpm               405 drivers/pwm/pwm-imx-tpm.c 	if (tpm->enable_count > 0)
tpm               408 drivers/pwm/pwm-imx-tpm.c 	clk_disable_unprepare(tpm->clk);
tpm               415 drivers/pwm/pwm-imx-tpm.c 	struct imx_tpm_pwm_chip *tpm = dev_get_drvdata(dev);
tpm               418 drivers/pwm/pwm-imx-tpm.c 	ret = clk_prepare_enable(tpm->clk);
tpm              1171 drivers/s390/block/dasd_eckd.c 	int tpm;
tpm              1179 drivers/s390/block/dasd_eckd.c 	tpm = fcx_in_css && fcx_in_gneq && fcx_in_features;
tpm              1181 drivers/s390/block/dasd_eckd.c 	if (!tpm)
tpm              2838 drivers/s390/block/dasd_eckd.c 			       int tpm, struct eckd_count *fmt_buffer, int rpt)
tpm              2845 drivers/s390/block/dasd_eckd.c 		if (tpm)
tpm              2899 drivers/s390/block/dasd_eckd.c 					 int enable_pav, int tpm,
tpm              2921 drivers/s390/block/dasd_eckd.c 	if (!tpm && fmt_buffer != NULL) {
tpm              2924 drivers/s390/block/dasd_eckd.c 	} else if (tpm && fmt_buffer != NULL) {
tpm              2943 drivers/s390/block/dasd_eckd.c 							     enable_pav, tpm,
tpm              3271 drivers/s390/block/dasd_eckd.c 					     int trk_per_cyl, int tpm)
tpm              3287 drivers/s390/block/dasd_eckd.c 		if (tpm) {
tpm              3385 drivers/s390/block/dasd_eckd.c 	int tpm = 0;
tpm              3411 drivers/s390/block/dasd_eckd.c 		tpm = 1;
tpm              3414 drivers/s390/block/dasd_eckd.c 					   tpm, fmt_buffer, rpt_max, &irb);
tpm              3423 drivers/s390/block/dasd_eckd.c 		if (tpm && scsw_cstat(&irb.scsw) == 0x40) {
tpm              3424 drivers/s390/block/dasd_eckd.c 			tpm = 0;
tpm              3426 drivers/s390/block/dasd_eckd.c 							   enable_pav, tpm,
tpm              3437 drivers/s390/block/dasd_eckd.c 					 trk_per_cyl, tpm);