cmt 87 drivers/clocksource/sh_cmt.c struct sh_cmt_device *cmt; cmt 237 drivers/clocksource/sh_cmt.c return ch->cmt->info->read_control(ch->iostart, 0); cmt 239 drivers/clocksource/sh_cmt.c return ch->cmt->info->read_control(ch->cmt->mapbase, 0); cmt 245 drivers/clocksource/sh_cmt.c ch->cmt->info->write_control(ch->iostart, 0, value); cmt 247 drivers/clocksource/sh_cmt.c ch->cmt->info->write_control(ch->cmt->mapbase, 0, value); cmt 252 drivers/clocksource/sh_cmt.c return ch->cmt->info->read_control(ch->ioctrl, CMCSR); cmt 257 drivers/clocksource/sh_cmt.c ch->cmt->info->write_control(ch->ioctrl, CMCSR, value); cmt 262 drivers/clocksource/sh_cmt.c return ch->cmt->info->read_count(ch->ioctrl, CMCNT); cmt 267 drivers/clocksource/sh_cmt.c ch->cmt->info->write_count(ch->ioctrl, CMCNT, value); cmt 272 drivers/clocksource/sh_cmt.c ch->cmt->info->write_count(ch->ioctrl, CMCOR, value); cmt 280 drivers/clocksource/sh_cmt.c o1 = sh_cmt_read_cmcsr(ch) & ch->cmt->info->overflow_bit; cmt 288 drivers/clocksource/sh_cmt.c o1 = sh_cmt_read_cmcsr(ch) & ch->cmt->info->overflow_bit; cmt 302 drivers/clocksource/sh_cmt.c raw_spin_lock_irqsave(&ch->cmt->lock, flags); cmt 311 drivers/clocksource/sh_cmt.c raw_spin_unlock_irqrestore(&ch->cmt->lock, flags); cmt 318 drivers/clocksource/sh_cmt.c pm_runtime_get_sync(&ch->cmt->pdev->dev); cmt 319 drivers/clocksource/sh_cmt.c dev_pm_syscore_device(&ch->cmt->pdev->dev, true); cmt 322 drivers/clocksource/sh_cmt.c ret = clk_enable(ch->cmt->clk); cmt 324 drivers/clocksource/sh_cmt.c dev_err(&ch->cmt->pdev->dev, "ch%u: cannot enable clock\n", cmt 333 drivers/clocksource/sh_cmt.c if (ch->cmt->info->width == 16) { cmt 364 drivers/clocksource/sh_cmt.c dev_err(&ch->cmt->pdev->dev, "ch%u: cannot clear CMCNT\n", cmt 375 drivers/clocksource/sh_cmt.c clk_disable(ch->cmt->clk); cmt 390 drivers/clocksource/sh_cmt.c clk_disable(ch->cmt->clk); cmt 392 drivers/clocksource/sh_cmt.c dev_pm_syscore_device(&ch->cmt->pdev->dev, false); cmt 393 drivers/clocksource/sh_cmt.c pm_runtime_put(&ch->cmt->pdev->dev); cmt 483 drivers/clocksource/sh_cmt.c dev_warn(&ch->cmt->pdev->dev, "ch%u: too long delay\n", cmt 492 drivers/clocksource/sh_cmt.c dev_warn(&ch->cmt->pdev->dev, "ch%u: delta out of range\n", cmt 514 drivers/clocksource/sh_cmt.c ch->cmt->info->clear_bits); cmt 657 drivers/clocksource/sh_cmt.c pm_genpd_syscore_poweroff(&ch->cmt->pdev->dev); cmt 667 drivers/clocksource/sh_cmt.c pm_genpd_syscore_poweron(&ch->cmt->pdev->dev); cmt 686 drivers/clocksource/sh_cmt.c dev_info(&ch->cmt->pdev->dev, "ch%u: used as clock source\n", cmt 689 drivers/clocksource/sh_cmt.c clocksource_register_hz(cs, ch->cmt->rate); cmt 703 drivers/clocksource/sh_cmt.c sh_cmt_set_next(ch, ((ch->cmt->rate + HZ/2) / HZ) - 1); cmt 725 drivers/clocksource/sh_cmt.c dev_info(&ch->cmt->pdev->dev, "ch%u: used for %s clock events\n", cmt 759 drivers/clocksource/sh_cmt.c pm_genpd_syscore_poweroff(&ch->cmt->pdev->dev); cmt 760 drivers/clocksource/sh_cmt.c clk_unprepare(ch->cmt->clk); cmt 767 drivers/clocksource/sh_cmt.c clk_prepare(ch->cmt->clk); cmt 768 drivers/clocksource/sh_cmt.c pm_genpd_syscore_poweron(&ch->cmt->pdev->dev); cmt 778 drivers/clocksource/sh_cmt.c irq = platform_get_irq(ch->cmt->pdev, ch->index); cmt 784 drivers/clocksource/sh_cmt.c dev_name(&ch->cmt->pdev->dev), ch); cmt 786 drivers/clocksource/sh_cmt.c dev_err(&ch->cmt->pdev->dev, "ch%u: failed to request irq %d\n", cmt 805 drivers/clocksource/sh_cmt.c ced->mult = div_sc(ch->cmt->rate, NSEC_PER_SEC, ced->shift); cmt 811 drivers/clocksource/sh_cmt.c dev_info(&ch->cmt->pdev->dev, "ch%u: used for clock events\n", cmt 824 drivers/clocksource/sh_cmt.c ch->cmt->has_clockevent = true; cmt 831 drivers/clocksource/sh_cmt.c ch->cmt->has_clocksource = true; cmt 840 drivers/clocksource/sh_cmt.c bool clocksource, struct sh_cmt_device *cmt) cmt 848 drivers/clocksource/sh_cmt.c ch->cmt = cmt; cmt 858 drivers/clocksource/sh_cmt.c switch (cmt->info->model) { cmt 860 drivers/clocksource/sh_cmt.c ch->ioctrl = cmt->mapbase + 2 + ch->hwidx * 6; cmt 864 drivers/clocksource/sh_cmt.c ch->ioctrl = cmt->mapbase + 0x10 + ch->hwidx * 0x10; cmt 868 drivers/clocksource/sh_cmt.c ch->iostart = cmt->mapbase + ch->hwidx * 0x100; cmt 874 drivers/clocksource/sh_cmt.c if (cmt->info->width == (sizeof(ch->max_match_value) * 8)) cmt 877 drivers/clocksource/sh_cmt.c ch->max_match_value = (1 << cmt->info->width) - 1; cmt 882 drivers/clocksource/sh_cmt.c ret = sh_cmt_register(ch, dev_name(&cmt->pdev->dev), cmt 885 drivers/clocksource/sh_cmt.c dev_err(&cmt->pdev->dev, "ch%u: registration failed\n", cmt 894 drivers/clocksource/sh_cmt.c static int sh_cmt_map_memory(struct sh_cmt_device *cmt) cmt 898 drivers/clocksource/sh_cmt.c mem = platform_get_resource(cmt->pdev, IORESOURCE_MEM, 0); cmt 900 drivers/clocksource/sh_cmt.c dev_err(&cmt->pdev->dev, "failed to get I/O memory\n"); cmt 904 drivers/clocksource/sh_cmt.c cmt->mapbase = ioremap_nocache(mem->start, resource_size(mem)); cmt 905 drivers/clocksource/sh_cmt.c if (cmt->mapbase == NULL) { cmt 906 drivers/clocksource/sh_cmt.c dev_err(&cmt->pdev->dev, "failed to remap I/O memory\n"); cmt 959 drivers/clocksource/sh_cmt.c static int sh_cmt_setup(struct sh_cmt_device *cmt, struct platform_device *pdev) cmt 965 drivers/clocksource/sh_cmt.c cmt->pdev = pdev; cmt 966 drivers/clocksource/sh_cmt.c raw_spin_lock_init(&cmt->lock); cmt 969 drivers/clocksource/sh_cmt.c cmt->info = of_device_get_match_data(&pdev->dev); cmt 970 drivers/clocksource/sh_cmt.c cmt->hw_channels = cmt->info->channels_mask; cmt 975 drivers/clocksource/sh_cmt.c cmt->info = (const struct sh_cmt_info *)id->driver_data; cmt 976 drivers/clocksource/sh_cmt.c cmt->hw_channels = cfg->channels_mask; cmt 978 drivers/clocksource/sh_cmt.c dev_err(&cmt->pdev->dev, "missing platform data\n"); cmt 983 drivers/clocksource/sh_cmt.c cmt->clk = clk_get(&cmt->pdev->dev, "fck"); cmt 984 drivers/clocksource/sh_cmt.c if (IS_ERR(cmt->clk)) { cmt 985 drivers/clocksource/sh_cmt.c dev_err(&cmt->pdev->dev, "cannot get clock\n"); cmt 986 drivers/clocksource/sh_cmt.c return PTR_ERR(cmt->clk); cmt 989 drivers/clocksource/sh_cmt.c ret = clk_prepare(cmt->clk); cmt 994 drivers/clocksource/sh_cmt.c ret = clk_enable(cmt->clk); cmt 998 drivers/clocksource/sh_cmt.c if (cmt->info->width == 16) cmt 999 drivers/clocksource/sh_cmt.c cmt->rate = clk_get_rate(cmt->clk) / 512; cmt 1001 drivers/clocksource/sh_cmt.c cmt->rate = clk_get_rate(cmt->clk) / 8; cmt 1003 drivers/clocksource/sh_cmt.c clk_disable(cmt->clk); cmt 1006 drivers/clocksource/sh_cmt.c ret = sh_cmt_map_memory(cmt); cmt 1011 drivers/clocksource/sh_cmt.c cmt->num_channels = hweight8(cmt->hw_channels); cmt 1012 drivers/clocksource/sh_cmt.c cmt->channels = kcalloc(cmt->num_channels, sizeof(*cmt->channels), cmt 1014 drivers/clocksource/sh_cmt.c if (cmt->channels == NULL) { cmt 1023 drivers/clocksource/sh_cmt.c for (i = 0, mask = cmt->hw_channels; i < cmt->num_channels; ++i) { cmt 1025 drivers/clocksource/sh_cmt.c bool clocksource = i == 1 || cmt->num_channels == 1; cmt 1028 drivers/clocksource/sh_cmt.c ret = sh_cmt_setup_channel(&cmt->channels[i], i, hwidx, cmt 1029 drivers/clocksource/sh_cmt.c clockevent, clocksource, cmt); cmt 1036 drivers/clocksource/sh_cmt.c platform_set_drvdata(pdev, cmt); cmt 1041 drivers/clocksource/sh_cmt.c kfree(cmt->channels); cmt 1042 drivers/clocksource/sh_cmt.c iounmap(cmt->mapbase); cmt 1044 drivers/clocksource/sh_cmt.c clk_unprepare(cmt->clk); cmt 1046 drivers/clocksource/sh_cmt.c clk_put(cmt->clk); cmt 1052 drivers/clocksource/sh_cmt.c struct sh_cmt_device *cmt = platform_get_drvdata(pdev); cmt 1060 drivers/clocksource/sh_cmt.c if (cmt) { cmt 1065 drivers/clocksource/sh_cmt.c cmt = kzalloc(sizeof(*cmt), GFP_KERNEL); cmt 1066 drivers/clocksource/sh_cmt.c if (cmt == NULL) cmt 1069 drivers/clocksource/sh_cmt.c ret = sh_cmt_setup(cmt, pdev); cmt 1071 drivers/clocksource/sh_cmt.c kfree(cmt); cmt 1079 drivers/clocksource/sh_cmt.c if (cmt->has_clockevent || cmt->has_clocksource) cmt 12114 drivers/net/ethernet/qlogic/qed/qed_hsi.h struct couple_mode_teaming cmt; cmt 790 fs/ubifs/debug.c c->ltab[i].tgc, c->ltab[i].cmt); cmt 646 fs/ubifs/lpt.c ltab[i].cmt = 0; cmt 1063 fs/ubifs/lpt.c c->ltab[i].cmt = 0; cmt 155 fs/ubifs/lpt_commit.c if (c->ltab[i].tgc || c->ltab[i].cmt) cmt 158 fs/ubifs/lpt_commit.c c->ltab[i].cmt = 1; cmt 165 fs/ubifs/lpt_commit.c if (c->ltab[i].tgc || c->ltab[i].cmt) cmt 168 fs/ubifs/lpt_commit.c c->ltab[i].cmt = 1; cmt 339 fs/ubifs/lpt_commit.c if (c->ltab[i].cmt) { cmt 340 fs/ubifs/lpt_commit.c c->ltab[i].cmt = 0; cmt 346 fs/ubifs/lpt_commit.c if (c->ltab[i].cmt) { cmt 347 fs/ubifs/lpt_commit.c c->ltab[i].cmt = 0; cmt 1712 fs/ubifs/lpt_commit.c if (c->ltab[i].tgc || c->ltab[i].cmt) cmt 136 fs/ubifs/orphan.c if (orph->cmt) { cmt 239 fs/ubifs/orphan.c ubifs_assert(c, !orphan->cmt); cmt 241 fs/ubifs/orphan.c orphan->cmt = 1; cmt 368 fs/ubifs/orphan.c ubifs_assert(c, orphan->cmt); cmt 370 fs/ubifs/orphan.c orphan->cmt = 0; cmt 448 fs/ubifs/orphan.c orphan->cmt = 1; cmt 498 fs/ubifs/ubifs.h unsigned cmt:1; cmt 933 fs/ubifs/ubifs.h unsigned cmt:1;