Home
last modified time | relevance | path

Searched refs:tcr (Results 1 – 25 of 62) sorted by relevance

123

/linux-6.6.21/Documentation/misc-devices/
Doxsemi-tornado.rst45 (tcr), the clock prescaler (cpr) and the divisor (div) produced by the
50 r: 15625000, a: 15625000.00, d: 0.0000%, tcr: 4, cpr: 1.000, div: 1
51 r: 12500000, a: 12500000.00, d: 0.0000%, tcr: 5, cpr: 1.000, div: 1
52 r: 10416666, a: 10416666.67, d: 0.0000%, tcr: 6, cpr: 1.000, div: 1
53 r: 8928571, a: 8928571.43, d: 0.0000%, tcr: 7, cpr: 1.000, div: 1
54 r: 7812500, a: 7812500.00, d: 0.0000%, tcr: 8, cpr: 1.000, div: 1
55 r: 4000000, a: 4000000.00, d: 0.0000%, tcr: 5, cpr: 3.125, div: 1
56 r: 3686400, a: 3676470.59, d: -0.2694%, tcr: 8, cpr: 2.125, div: 1
57 r: 3500000, a: 3496503.50, d: -0.0999%, tcr: 13, cpr: 1.375, div: 1
58 r: 3000000, a: 2976190.48, d: -0.7937%, tcr: 14, cpr: 1.500, div: 1
[all …]
/linux-6.6.21/drivers/clocksource/
Dtimer-davinci.c87 unsigned int tcr; in davinci_tim12_shutdown() local
89 tcr = DAVINCI_TIMER_ENAMODE_DISABLED << in davinci_tim12_shutdown()
96 tcr |= DAVINCI_TIMER_ENAMODE_PERIODIC << in davinci_tim12_shutdown()
99 writel_relaxed(tcr, base + DAVINCI_TIMER_REG_TCR); in davinci_tim12_shutdown()
104 unsigned int tcr; in davinci_tim12_set_oneshot() local
106 tcr = DAVINCI_TIMER_ENAMODE_ONESHOT << in davinci_tim12_set_oneshot()
109 tcr |= DAVINCI_TIMER_ENAMODE_PERIODIC << in davinci_tim12_set_oneshot()
112 writel_relaxed(tcr, base + DAVINCI_TIMER_REG_TCR); in davinci_tim12_set_oneshot()
198 int tcr; in davinci_clocksource_init_tim34() local
200 tcr = DAVINCI_TIMER_ENAMODE_PERIODIC << in davinci_clocksource_init_tim34()
[all …]
Dtimer-keystone.c76 u32 tcr; in keystone_timer_config() local
79 tcr = keystone_timer_readl(TCR); in keystone_timer_config()
80 off = tcr & ~(TCR_ENAMODE_MASK); in keystone_timer_config()
83 tcr |= mask; in keystone_timer_config()
102 keystone_timer_writel(tcr, TCR); in keystone_timer_config()
108 u32 tcr; in keystone_timer_disable() local
110 tcr = keystone_timer_readl(TCR); in keystone_timer_disable()
113 tcr &= ~(TCR_ENAMODE_MASK); in keystone_timer_disable()
114 keystone_timer_writel(tcr, TCR); in keystone_timer_disable()
/linux-6.6.21/include/linux/fsl/bestcomm/
Dbestcomm_priv.h264 reg = in_be16(&bcom_eng->regs->tcr[task]); in bcom_enable_task()
265 out_be16(&bcom_eng->regs->tcr[task], reg | TASK_ENABLE); in bcom_enable_task()
271 u16 reg = in_be16(&bcom_eng->regs->tcr[task]); in bcom_disable_task()
272 out_be16(&bcom_eng->regs->tcr[task], reg & ~TASK_ENABLE); in bcom_disable_task()
337 u16 __iomem *tcr = &bcom_eng->regs->tcr[task]; in bcom_set_task_auto_start() local
338 out_be16(tcr, (in_be16(tcr) & ~0xff) | 0x00c0 | next_task); in bcom_set_task_auto_start()
344 u16 __iomem *tcr = &bcom_eng->regs->tcr[task]; in bcom_set_tcr_initiator() local
345 out_be16(tcr, (in_be16(tcr) & ~0x1f00) | ((initiator & 0x1f) << 8)); in bcom_set_tcr_initiator()
/linux-6.6.21/drivers/tty/serial/8250/
D8250_dwlib.c183 u32 tcr; in dw8250_rs485_config() local
185 tcr = dw8250_readl_ext(p, DW_UART_TCR); in dw8250_rs485_config()
186 tcr &= ~DW_UART_TCR_XFER_MODE; in dw8250_rs485_config()
189 tcr |= DW_UART_TCR_RS485_EN; in dw8250_rs485_config()
192 tcr |= DW_UART_TCR_XFER_MODE_DE_DURING_RE; in dw8250_rs485_config()
194 tcr |= DW_UART_TCR_XFER_MODE_DE_OR_RE; in dw8250_rs485_config()
201 tcr &= ~DW_UART_TCR_RS485_EN; in dw8250_rs485_config()
205 tcr |= DW_UART_TCR_DE_POL; in dw8250_rs485_config()
206 tcr &= ~DW_UART_TCR_RE_POL; in dw8250_rs485_config()
209 tcr &= ~DW_UART_TCR_DE_POL; in dw8250_rs485_config()
[all …]
/linux-6.6.21/arch/arm/mach-rpc/
Ddma.c207 int tcr, speed; in iomd_set_dma_speed() local
218 tcr = iomd_readb(IOMD_DMATCR); in iomd_set_dma_speed()
223 tcr = (tcr & ~0x03) | speed; in iomd_set_dma_speed()
227 tcr = (tcr & ~0x0c) | (speed << 2); in iomd_set_dma_speed()
231 tcr = (tcr & ~0x30) | (speed << 4); in iomd_set_dma_speed()
235 tcr = (tcr & ~0xc0) | (speed << 6); in iomd_set_dma_speed()
242 iomd_writeb(tcr, IOMD_DMATCR); in iomd_set_dma_speed()
/linux-6.6.21/drivers/iommu/arm/arm-smmu/
Darm-smmu.h355 u32 tcr[2]; member
386 u32 tcr = FIELD_PREP(ARM_SMMU_TCR_TG0, cfg->arm_lpae_s1_cfg.tcr.tg) | in arm_smmu_lpae_tcr() local
387 FIELD_PREP(ARM_SMMU_TCR_SH0, cfg->arm_lpae_s1_cfg.tcr.sh) | in arm_smmu_lpae_tcr()
388 FIELD_PREP(ARM_SMMU_TCR_ORGN0, cfg->arm_lpae_s1_cfg.tcr.orgn) | in arm_smmu_lpae_tcr()
389 FIELD_PREP(ARM_SMMU_TCR_IRGN0, cfg->arm_lpae_s1_cfg.tcr.irgn) | in arm_smmu_lpae_tcr()
390 FIELD_PREP(ARM_SMMU_TCR_T0SZ, cfg->arm_lpae_s1_cfg.tcr.tsz); in arm_smmu_lpae_tcr()
397 tcr = (tcr << 16) & ~ARM_SMMU_TCR_A1; in arm_smmu_lpae_tcr()
398 tcr |= ARM_SMMU_TCR_EPD0; in arm_smmu_lpae_tcr()
400 tcr |= ARM_SMMU_TCR_EPD1; in arm_smmu_lpae_tcr()
402 return tcr; in arm_smmu_lpae_tcr()
[all …]
Darm-smmu-qcom.c145 if (cb->tcr[0] & ARM_SMMU_TCR_EPD1) in qcom_adreno_smmu_set_ttbr0_cfg()
151 if ((cb->tcr[0] & ARM_SMMU_TCR_EPD0)) in qcom_adreno_smmu_set_ttbr0_cfg()
155 cb->tcr[0] = arm_smmu_lpae_tcr(&pgtable->cfg); in qcom_adreno_smmu_set_ttbr0_cfg()
158 u32 tcr = cb->tcr[0]; in qcom_adreno_smmu_set_ttbr0_cfg() local
161 if (!(cb->tcr[0] & ARM_SMMU_TCR_EPD0)) in qcom_adreno_smmu_set_ttbr0_cfg()
164 tcr |= arm_smmu_lpae_tcr(pgtbl_cfg); in qcom_adreno_smmu_set_ttbr0_cfg()
165 tcr &= ~(ARM_SMMU_TCR_EPD0 | ARM_SMMU_TCR_EPD1); in qcom_adreno_smmu_set_ttbr0_cfg()
167 cb->tcr[0] = tcr; in qcom_adreno_smmu_set_ttbr0_cfg()
/linux-6.6.21/arch/mips/kernel/
Dcevt-txx9.c63 __raw_writel(TCR_BASE, &tmrptr->tcr); in txx9_clocksource_init()
68 __raw_writel(TCR_BASE | TXx9_TMTCR_TCE, &tmrptr->tcr); in txx9_clocksource_init()
83 __raw_writel(TCR_BASE, &tmrptr->tcr); in txx9tmr_stop_and_clear()
100 __raw_writel(TCR_BASE | TXx9_TMTCR_TCE, &tmrptr->tcr); in txx9tmr_set_state_periodic()
148 __raw_writel(TCR_BASE | TXx9_TMTCR_TCE, &tmrptr->tcr); in txx9tmr_set_next_event()
211 __raw_writel(TXx9_TMTCR_CRE | TXx9_TMTCR_TCE, &tmrptr->tcr); in txx9_tmr_init()
213 __raw_writel(TXx9_TMTCR_CRE, &tmrptr->tcr); in txx9_tmr_init()
/linux-6.6.21/arch/arm64/include/asm/
Dmmu_context.h75 unsigned long tcr = read_sysreg(tcr_el1); in __cpu_set_tcr_t0sz() local
77 if ((tcr & TCR_T0SZ_MASK) >> TCR_T0SZ_OFFSET == t0sz) in __cpu_set_tcr_t0sz()
80 tcr &= ~TCR_T0SZ_MASK; in __cpu_set_tcr_t0sz()
81 tcr |= t0sz << TCR_T0SZ_OFFSET; in __cpu_set_tcr_t0sz()
82 write_sysreg(tcr, tcr_el1); in __cpu_set_tcr_t0sz()
Dassembler.h370 .macro tcr_compute_pa_size, tcr, pos, tmp0, tmp1
377 bfi \tcr, \tmp0, \pos, #3
648 .macro tcr_clear_errata_bits, tcr, tmp1, tmp2
659 bic \tcr, \tcr, \tmp2
/linux-6.6.21/arch/arm64/mm/
Dproc.S422 tcr .req x16
424 mov_q tcr, TCR_TxSZ(VA_BITS) | TCR_CACHE_FLAGS | TCR_SMP_FLAGS | \
428 tcr_clear_errata_bits tcr, x9, x5
433 tcr_set_t1sz tcr, x9
437 tcr_set_t0sz tcr, x9
442 tcr_compute_pa_size tcr, #TCR_IPS_SHIFT, x5, x6
452 orr tcr, tcr, #TCR_HA // hardware Access flag update
456 msr tcr_el1, tcr
479 .unreq tcr
/linux-6.6.21/drivers/iommu/
Dio-pgtable-arm.c802 typeof(&cfg->arm_lpae_s1_cfg.tcr) tcr = &cfg->arm_lpae_s1_cfg.tcr; in arm_64_lpae_alloc_pgtable_s1() local
816 tcr->sh = ARM_LPAE_TCR_SH_IS; in arm_64_lpae_alloc_pgtable_s1()
817 tcr->irgn = ARM_LPAE_TCR_RGN_WBWA; in arm_64_lpae_alloc_pgtable_s1()
818 tcr->orgn = ARM_LPAE_TCR_RGN_WBWA; in arm_64_lpae_alloc_pgtable_s1()
822 tcr->sh = ARM_LPAE_TCR_SH_OS; in arm_64_lpae_alloc_pgtable_s1()
823 tcr->irgn = ARM_LPAE_TCR_RGN_NC; in arm_64_lpae_alloc_pgtable_s1()
825 tcr->orgn = ARM_LPAE_TCR_RGN_NC; in arm_64_lpae_alloc_pgtable_s1()
827 tcr->orgn = ARM_LPAE_TCR_RGN_WBWA; in arm_64_lpae_alloc_pgtable_s1()
833 tcr->tg = tg1 ? ARM_LPAE_TCR_TG1_4K : ARM_LPAE_TCR_TG0_4K; in arm_64_lpae_alloc_pgtable_s1()
836 tcr->tg = tg1 ? ARM_LPAE_TCR_TG1_16K : ARM_LPAE_TCR_TG0_16K; in arm_64_lpae_alloc_pgtable_s1()
[all …]
/linux-6.6.21/drivers/iommu/arm/arm-smmu-v3/
Darm-smmu-v3-sva.c96 u64 tcr, par, reg; in arm_smmu_alloc_shared_cd() local
130 tcr = FIELD_PREP(CTXDESC_CD_0_TCR_T0SZ, 64ULL - vabits_actual) | in arm_smmu_alloc_shared_cd()
138 tcr |= FIELD_PREP(CTXDESC_CD_0_TCR_TG0, ARM_LPAE_TCR_TG0_4K); in arm_smmu_alloc_shared_cd()
141 tcr |= FIELD_PREP(CTXDESC_CD_0_TCR_TG0, ARM_LPAE_TCR_TG0_16K); in arm_smmu_alloc_shared_cd()
144 tcr |= FIELD_PREP(CTXDESC_CD_0_TCR_TG0, ARM_LPAE_TCR_TG0_64K); in arm_smmu_alloc_shared_cd()
154 tcr |= FIELD_PREP(CTXDESC_CD_0_TCR_IPS, par); in arm_smmu_alloc_shared_cd()
157 cd->tcr = tcr; in arm_smmu_alloc_shared_cd()
/linux-6.6.21/arch/arm64/kvm/hyp/nvhe/
Dtlb.c14 u64 tcr; member
53 val = cxt->tcr = read_sysreg_el1(SYS_TCR); in __tlb_switch_to_guest()
77 write_sysreg_el1(cxt->tcr, SYS_TCR); in __tlb_switch_to_host()
/linux-6.6.21/arch/arm64/kvm/hyp/vhe/
Dtlb.c15 u64 tcr; member
36 val = cxt->tcr = read_sysreg_el1(SYS_TCR); in __tlb_switch_to_guest()
75 write_sysreg_el1(cxt->tcr, SYS_TCR); in __tlb_switch_to_host()
/linux-6.6.21/drivers/watchdog/
Dtxx9wdt.c58 &txx9wdt_reg->tcr); in txx9wdt_start()
68 __raw_writel(__raw_readl(&txx9wdt_reg->tcr) & ~TXx9_TMTCR_TCE, in txx9wdt_stop()
69 &txx9wdt_reg->tcr); in txx9wdt_stop()
/linux-6.6.21/arch/powerpc/platforms/4xx/
Dgpio.c28 __be32 tcr; member
106 clrbits32(&regs->tcr, GPIO_MASK(gpio)); in ppc4xx_gpio_dir_in()
139 setbits32(&regs->tcr, GPIO_MASK(gpio)); in ppc4xx_gpio_dir_out()
/linux-6.6.21/arch/powerpc/sysdev/
Dmpic_timer.c141 u32 tcr; in set_cascade_timer() local
150 tcr = casc_priv->tcr_value | in set_cascade_timer()
152 setbits32(priv->group_tcr, tcr); in set_cascade_timer()
335 u32 tcr; in mpic_free_timer() local
336 tcr = casc_priv->tcr_value | (casc_priv->tcr_value << in mpic_free_timer()
338 clrbits32(priv->group_tcr, tcr); in mpic_free_timer()
/linux-6.6.21/drivers/tty/serial/
Dsunsab.h18 u8 tcr; /* Termination Character Register */ member
49 u8 tcr; member
85 u8 tcr; member
Ddz.c811 unsigned short csr, tcr, trdy, mask; in dz_console_putchar() local
817 tcr = dz_in(dport, DZ_TCR); in dz_console_putchar()
818 tcr |= 1 << dport->port.line; in dz_console_putchar()
819 mask = tcr; in dz_console_putchar()
840 dz_out(dport, DZ_TCR, tcr); in dz_console_putchar()
/linux-6.6.21/arch/powerpc/include/asm/
Dreg_booke.h549 #define TCR_GET_WP(tcr) ((((tcr) & 0xC0000000) >> 30) | \ argument
550 (((tcr) & 0x1E0000) >> 15))
552 #define TCR_GET_WP(tcr) (((tcr) & 0xC0000000) >> 30) argument
/linux-6.6.21/include/linux/
Dio-pgtable.h114 } tcr; member
133 u32 tcr; member
/linux-6.6.21/arch/powerpc/kernel/
Dtime.c677 unsigned int tcr; in start_cpu_decrementer() local
682 tcr = mfspr(SPRN_TCR); in start_cpu_decrementer()
687 tcr &= TCR_WP_MASK; /* Clear all bits except for TCR[WP] */ in start_cpu_decrementer()
688 tcr |= TCR_DIE; /* Enable decrementer */ in start_cpu_decrementer()
689 mtspr(SPRN_TCR, tcr); in start_cpu_decrementer()
/linux-6.6.21/drivers/dma/sh/
Dshdmac.c218 sh_dmae_writel(sh_chan, hw->tcr >> sh_chan->xmit_shift, TCR); in dmae_set_reg()
290 sh_desc->hw.tcr, sh_desc->hw.sar, sh_desc->hw.dar); in sh_dmae_start_xfer()
388 sh_desc->hw.tcr = *len; in sh_dmae_desc_setup()
421 return sh_desc->hw.tcr - in sh_dmae_get_partial()
463 (sh_desc->hw.dar + sh_desc->hw.tcr) == dar_buf) || in sh_dmae_desc_completed()
465 (sh_desc->hw.sar + sh_desc->hw.tcr) == sar_buf); in sh_dmae_desc_completed()

123