Home
last modified time | relevance | path

Searched full:ptcr (Results 1 – 25 of 43) sorted by relevance

12

/openbmc/linux/sound/soc/fsl/
H A Dimx-audmux.c63 u32 pdcr, ptcr; in audmux_read_file() local
69 ptcr = readl(audmux_base + IMX_AUDMUX_V2_PTCR(port)); in audmux_read_file()
78 ret = sysfs_emit(buf, "PDCR: %08x\nPTCR: %08x\n", pdcr, ptcr); in audmux_read_file()
80 if (ptcr & IMX_AUDMUX_V2_PTCR_TFSDIR) in audmux_read_file()
83 audmux_port_string((ptcr >> 27) & 0x7)); in audmux_read_file()
88 if (ptcr & IMX_AUDMUX_V2_PTCR_TCLKDIR) in audmux_read_file()
91 audmux_port_string((ptcr >> 22) & 0x7)); in audmux_read_file()
98 if (ptcr & IMX_AUDMUX_V2_PTCR_SYN) { in audmux_read_file()
102 if (ptcr & IMX_AUDMUX_V2_PTCR_RFSDIR) in audmux_read_file()
105 audmux_port_string((ptcr >> 17) & 0x7)); in audmux_read_file()
[all …]
H A Dimx-audmux.h9 int imx_audmux_v2_configure_port(unsigned int port, unsigned int ptcr,
/openbmc/linux/arch/powerpc/include/asm/
H A Dpowernv.h10 extern void powernv_set_nmmu_ptcr(unsigned long ptcr);
16 static inline void powernv_set_nmmu_ptcr(unsigned long ptcr) { } in powernv_set_nmmu_ptcr() argument
H A Dultravisor.h19 * In ultravisor enabled systems, PTCR becomes ultravisor privileged only for
/openbmc/linux/arch/sh/kernel/cpu/sh3/
H A Dserial-sh7720.c15 /* Clear PTCR bit 9-2; enable all scif pins but sck */ in sh7720_sci_init_pins()
25 /* Clear PTCR bit 5-2; enable only tx and rx */ in sh7720_sci_init_pins()
/openbmc/linux/sound/atmel/
H A Dac97c.c353 unsigned long camr, ptcr = 0; in atmel_ac97c_playback_trigger() local
361 ptcr = ATMEL_PDC_TXTEN; in atmel_ac97c_playback_trigger()
367 ptcr |= ATMEL_PDC_TXTDIS; in atmel_ac97c_playback_trigger()
376 writel(ptcr, chip->regs + ATMEL_PDC_PTCR); in atmel_ac97c_playback_trigger()
384 unsigned long camr, ptcr = 0; in atmel_ac97c_capture_trigger() local
387 ptcr = readl(chip->regs + ATMEL_PDC_PTSR); in atmel_ac97c_capture_trigger()
393 ptcr = ATMEL_PDC_RXTEN; in atmel_ac97c_capture_trigger()
399 ptcr |= ATMEL_PDC_RXTDIS; in atmel_ac97c_capture_trigger()
408 writel(ptcr, chip->regs + ATMEL_PDC_PTCR); in atmel_ac97c_capture_trigger()
/openbmc/u-boot/arch/arm/mach-at91/include/mach/
H A Dat91_pdc.h18 u32 ptcr; /* 0x120 Transfer Control Register */ member
/openbmc/linux/arch/powerpc/mm/book3s64/
H A Dpgtable.c297 unsigned long ptcr; in mmu_partition_table_init() local
305 ptcr = __pa(partition_tb) | (PATB_SIZE_SHIFT - 12); in mmu_partition_table_init()
306 set_ptcr_when_no_uv(ptcr); in mmu_partition_table_init()
307 powernv_set_nmmu_ptcr(ptcr); in mmu_partition_table_init()
/openbmc/linux/arch/powerpc/kvm/
H A Dbook3s_hv_nested.c440 unsigned long ptcr; in kvmhv_nested_init() local
460 ptcr = __pa(pseries_partition_tb) | (ptb_order - 12); in kvmhv_nested_init()
461 rc = plpar_hcall_norets(H_SET_PARTITION_TABLE, ptcr); in kvmhv_nested_init()
534 * (formatted as for the PTCR).
539 unsigned long ptcr = kvmppc_get_gpr(vcpu, 4); in kvmhv_set_partition_table() local
545 if ((ptcr & PRTS_MASK) + 12 - 4 > KVM_MAX_NESTED_GUESTS_SHIFT || in kvmhv_set_partition_table()
546 !kvm_is_visible_gfn(vcpu->kvm, (ptcr & PRTB_MASK) >> PAGE_SHIFT)) in kvmhv_set_partition_table()
550 kvm->arch.l1_ptcr = ptcr; in kvmhv_set_partition_table()
/openbmc/linux/Documentation/devicetree/bindings/sound/
H A Dimx-audmux.yaml55 For imx31-audmux and above, it is a list of tuples ptcr pdcr.
/openbmc/linux/sound/soc/atmel/
H A Datmel-pcm.h36 unsigned int ptcr; /* PDC transfer control */ member
/openbmc/u-boot/board/renesas/ap325rxa/
H A Dap325rxa.c113 outw(PTCR_D, PTCR); in board_init()
/openbmc/u-boot/arch/sh/include/asm/
H A Dcpu_sh7723.h138 #define PTCR 0xA4050140 macro
H A Dcpu_sh7752.h120 unsigned short ptcr; member
H A Dcpu_sh7753.h120 unsigned short ptcr; member
H A Dcpu_sh7724.h159 #define PTCR 0xA4050140 macro
H A Dcpu_sh7720.h175 #define PTCR (PFC_BASE + 0x1E) macro
/openbmc/qemu/hw/ppc/
H A Dspapr_nested.c42 patb = spapr->nested.ptcr & PTCR_PATB; in spapr_get_pate_nested_hv()
43 pats = spapr->nested.ptcr & PTCR_PATS; in spapr_get_pate_nested_hv()
95 target_ulong ptcr = args[0]; in h_set_ptbl() local
101 if ((ptcr & PRTS_MASK) + 12 - 4 > 12) { in h_set_ptbl()
105 spapr->nested.ptcr = ptcr; /* Save new partition table */ in h_set_ptbl()
343 if (spapr->nested.ptcr == 0) { in h_enter_nested()
/openbmc/qemu/target/ppc/
H A Dmisc_helper.c186 error_report("Invalid bits 0x"TARGET_FMT_lx" set in PTCR", in helper_store_ptcr()
193 " stored in PTCR", patbsize); in helper_store_ptcr()
/openbmc/u-boot/drivers/serial/
H A Datmel_usart.h209 /* Bitfields in PTCR */
/openbmc/linux/drivers/spi/
H A Dspi-atmel.c173 /* Bitfields in PTCR */
935 spi_writel(as, PTCR, SPI_BIT(RXTDIS) | SPI_BIT(TXTDIS)); in atmel_spi_pdc_next_xfer()
986 spi_writel(as, PTCR, SPI_BIT(TXTEN) | SPI_BIT(RXTEN)); in atmel_spi_pdc_next_xfer()
1041 spi_writel(as, PTCR, SPI_BIT(RXTDIS) | SPI_BIT(TXTDIS)); in atmel_spi_disable_pdc_transfer()
1515 spi_writel(as, PTCR, SPI_BIT(RXTDIS) | SPI_BIT(TXTDIS)); in atmel_spi_init()
/openbmc/linux/arch/powerpc/platforms/powernv/
H A Dopal.c1224 void powernv_set_nmmu_ptcr(unsigned long ptcr) in powernv_set_nmmu_ptcr() argument
1229 rc = opal_nmmu_set_ptcr(-1UL, ptcr); in powernv_set_nmmu_ptcr()
1231 pr_warn("%s: Unable to set nest mmu ptcr\n", __func__); in powernv_set_nmmu_ptcr()
H A Didle.c581 u64 ptcr; member
678 sprs.ptcr = mfspr(SPRN_PTCR); in power9_idle_stop()
759 mtspr(SPRN_PTCR, sprs.ptcr); in power9_idle_stop()
/openbmc/u-boot/board/mpr2/
H A Dmpr2.c126 __raw_writew(0x0001, PTCR); /* 00 00 00 00 00 00 00 01 */ in board_init()
/openbmc/u-boot/board/renesas/sh7753evb/
H A Dsh7753evb.c46 writew(0x0000, &gpio->ptcr); /* STATUS */ in init_gpio()

12