Home
last modified time | relevance | path

Searched refs:ccr (Results 1 – 25 of 112) sorted by relevance

12345

/kernel/linux/linux-5.10/drivers/usb/host/
Dohci-tmio.c65 void __iomem *ccr; member
85 tmio_iowrite16(pm, tmio->ccr + CCR_PM); in tmio_write_pm()
110 tmio_iowrite8(0, tmio->ccr + CCR_INTC); in tmio_stop_hc()
111 tmio_iowrite8(0, tmio->ccr + CCR_ILME); in tmio_stop_hc()
112 tmio_iowrite16(0, tmio->ccr + CCR_BASE); in tmio_stop_hc()
113 tmio_iowrite16(0, tmio->ccr + CCR_BASE + 2); in tmio_stop_hc()
114 tmio_iowrite16(pm, tmio->ccr + CCR_PM); in tmio_stop_hc()
124 tmio_iowrite16(base, tmio->ccr + CCR_BASE); in tmio_start_hc()
125 tmio_iowrite16(base >> 16, tmio->ccr + CCR_BASE + 2); in tmio_start_hc()
126 tmio_iowrite8(1, tmio->ccr + CCR_ILME); in tmio_start_hc()
[all …]
/kernel/linux/linux-5.10/drivers/net/can/sja1000/
Dpeak_pcmcia.c141 u8 ccr; member
224 if (card->ccr == v) in pcan_write_reg()
226 card->ccr = v; in pcan_write_reg()
344 u8 ccr = card->ccr; in pcan_set_leds() local
350 ccr &= ~PCC_CCR_LED_MASK_CHAN(i); in pcan_set_leds()
352 ccr |= PCC_CCR_LED_CHAN(state, i); in pcan_set_leds()
356 pcan_write_reg(card, PCC_CCR, ccr); in pcan_set_leds()
381 u8 ccr; in pcan_led_timer() local
383 ccr = card->ccr; in pcan_led_timer()
386 ccr &= ~PCC_CCR_LED_MASK_CHAN(i); in pcan_led_timer()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/math-emu/
Dmcrfs.c10 mcrfs(u32 *ccr, u32 crfD, u32 crfS) in mcrfs() argument
15 printk("%s: %p (%08x) %d %d\n", __func__, ccr, *ccr, crfD, crfS); in mcrfs()
25 *ccr &= ~(15 << ((7 - crfD) << 2)); in mcrfs()
26 *ccr |= (value << ((7 - crfD) << 2)); in mcrfs()
29 printk("CR: %08x\n", __func__, *ccr); in mcrfs()
Dfcmpu.c11 fcmpu(u32 *ccr, int crfD, void *frA, void *frB) in fcmpu() argument
20 printk("%s: %p (%08x) %d %p %p\n", __func__, ccr, *ccr, crfD, frA, frB); in fcmpu()
37 *ccr &= ~(15 << ((7 - crfD) << 2)); in fcmpu()
38 *ccr |= (cmp << ((7 - crfD) << 2)); in fcmpu()
41 printk("CR: %08x\n", *ccr); in fcmpu()
Dfcmpo.c11 fcmpo(u32 *ccr, int crfD, void *frA, void *frB) in fcmpo() argument
20 printk("%s: %p (%08x) %d %p %p\n", __func__, ccr, *ccr, crfD, frA, frB); in fcmpo()
40 *ccr &= ~(15 << ((7 - crfD) << 2)); in fcmpo()
41 *ccr |= (cmp << ((7 - crfD) << 2)); in fcmpo()
44 printk("CR: %08x\n", *ccr); in fcmpo()
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/
Dndfc.c44 uint32_t ccr; in ndfc_select_chip() local
47 ccr = in_be32(ndfc->ndfcbase + NDFC_CCR); in ndfc_select_chip()
49 ccr &= ~NDFC_CCR_BS_MASK; in ndfc_select_chip()
50 ccr |= NDFC_CCR_BS(chip + ndfc->chip_select); in ndfc_select_chip()
52 ccr |= NDFC_CCR_RESET_CE; in ndfc_select_chip()
53 out_be32(ndfc->ndfcbase + NDFC_CCR, ccr); in ndfc_select_chip()
78 uint32_t ccr; in ndfc_enable_hwecc() local
81 ccr = in_be32(ndfc->ndfcbase + NDFC_CCR); in ndfc_enable_hwecc()
82 ccr |= NDFC_CCR_RESET_ECC; in ndfc_enable_hwecc()
83 out_be32(ndfc->ndfcbase + NDFC_CCR, ccr); in ndfc_enable_hwecc()
[all …]
Dtmio_nand.c112 void __iomem *ccr; member
318 tmio_iowrite8(0x81, tmio->ccr + CCR_ICC); in tmio_hw_init()
321 tmio_iowrite16(tmio->fcr_base, tmio->ccr + CCR_BASE); in tmio_hw_init()
322 tmio_iowrite16(tmio->fcr_base >> 16, tmio->ccr + CCR_BASE + 2); in tmio_hw_init()
325 tmio_iowrite8(0x02, tmio->ccr + CCR_COMMAND); in tmio_hw_init()
329 tmio_iowrite8(0x02, tmio->ccr + CCR_NFPSC); in tmio_hw_init()
332 tmio_iowrite8(0x02, tmio->ccr + CCR_NFDC); in tmio_hw_init()
383 struct resource *ccr = platform_get_resource(dev, in tmio_probe() local
412 tmio->ccr = devm_ioremap(&dev->dev, ccr->start, resource_size(ccr)); in tmio_probe()
413 if (!tmio->ccr) in tmio_probe()
/kernel/linux/linux-5.10/arch/sh/mm/
Dcache-shx3.c20 unsigned int ccr; in shx3_cache_init() local
22 ccr = __raw_readl(SH_CCR); in shx3_cache_init()
28 ccr |= CCR_CACHE_SNM; in shx3_cache_init()
40 ccr |= CCR_CACHE_IBE; in shx3_cache_init()
43 writel_uncached(ccr, SH_CCR); in shx3_cache_init()
Dcache-sh2.c60 unsigned long ccr; in sh2__flush_invalidate_region() local
65 ccr = __raw_readl(SH_CCR); in sh2__flush_invalidate_region()
66 ccr |= CCR_CACHE_INVALIDATE; in sh2__flush_invalidate_region()
67 __raw_writel(ccr, SH_CCR); in sh2__flush_invalidate_region()
Dcache-debugfs.c30 unsigned long ccr; in cache_seq_show() local
39 ccr = __raw_readl(SH_CCR); in cache_seq_show()
40 if ((ccr & CCR_CACHE_ENABLE) == 0) { in cache_seq_show()
61 if ((ccr & CCR_CACHE_ORA) && cache_type == CACHE_TYPE_DCACHE) in cache_seq_show()
/kernel/linux/linux-5.10/drivers/dma/
Dtxx9dmac.h167 u32 ccr; member
239 return (dc->ccr & TXX9_DMA_CCR_INTENT) != 0; in txx9dmac_chan_INTENT()
244 dc->ccr |= TXX9_DMA_CCR_INTENT; in txx9dmac_chan_set_INTENT()
254 dc->ccr |= TXX9_DMA_CCR_SMPCHN; in txx9dmac_chan_set_SMPCHN()
259 u32 sair, u32 dair, u32 ccr) in txx9dmac_desc_set_nosimple() argument
289 u32 sai, u32 dai, u32 ccr) in txx9dmac_desc_set_nosimple() argument
294 desc->hwdesc.CCR = ccr; in txx9dmac_desc_set_nosimple()
298 desc->hwdesc32.CCR = ccr; in txx9dmac_desc_set_nosimple()
Dstm32-mdma.c252 u32 ccr; member
429 u32 ccr, cisr, id, reg; in stm32_mdma_disable_chan() local
438 ccr = stm32_mdma_read(dmadev, reg); in stm32_mdma_disable_chan()
439 if (ccr & STM32_MDMA_CCR_EN) { in stm32_mdma_disable_chan()
506 u32 ccr, ctcr, ctbr, tlen; in stm32_mdma_set_xfer_param() local
513 ccr = stm32_mdma_read(dmadev, STM32_MDMA_CCR(chan->id)); in stm32_mdma_set_xfer_param()
556 ccr &= ~(STM32_MDMA_CCR_SWRQ | STM32_MDMA_CCR_WEX | STM32_MDMA_CCR_HEX | in stm32_mdma_set_xfer_param()
558 ccr |= STM32_MDMA_CCR_PL(chan_config->priority_level); in stm32_mdma_set_xfer_param()
666 *mdma_ccr = ccr; in stm32_mdma_set_xfer_param()
734 u32 ccr, ctcr, ctbr; in stm32_mdma_setup_xfer() local
[all …]
/kernel/linux/linux-5.10/drivers/rtc/
Drtc-isl12026.c207 u8 ccr[8]; in isl12026_rtc_read_time() local
244 msgs[1].len = sizeof(ccr); in isl12026_rtc_read_time()
245 msgs[1].buf = ccr; in isl12026_rtc_read_time()
254 tm->tm_sec = bcd2bin(ccr[0] & 0x7F); in isl12026_rtc_read_time()
255 tm->tm_min = bcd2bin(ccr[1] & 0x7F); in isl12026_rtc_read_time()
256 if (ccr[2] & ISL12026_REG_HR_MIL) in isl12026_rtc_read_time()
257 tm->tm_hour = bcd2bin(ccr[2] & 0x3F); in isl12026_rtc_read_time()
259 tm->tm_hour = bcd2bin(ccr[2] & 0x1F) + in isl12026_rtc_read_time()
260 ((ccr[2] & 0x20) ? 12 : 0); in isl12026_rtc_read_time()
261 tm->tm_mday = bcd2bin(ccr[3] & 0x3F); in isl12026_rtc_read_time()
[all …]
Drtc-xgene.c79 u32 ccr; in xgene_rtc_alarm_irq_enable() local
81 ccr = readl(pdata->csr_base + RTC_CCR); in xgene_rtc_alarm_irq_enable()
83 ccr &= ~RTC_CCR_MASK; in xgene_rtc_alarm_irq_enable()
84 ccr |= RTC_CCR_IE; in xgene_rtc_alarm_irq_enable()
86 ccr &= ~RTC_CCR_IE; in xgene_rtc_alarm_irq_enable()
87 ccr |= RTC_CCR_MASK; in xgene_rtc_alarm_irq_enable()
89 writel(ccr, pdata->csr_base + RTC_CCR); in xgene_rtc_alarm_irq_enable()
/kernel/linux/linux-5.10/drivers/spi/
Dspi-mpc512x-psc.c97 u32 ccr; in mpc512x_psc_spi_activate_cs() local
120 ccr = in_be32(psc_addr(mps, ccr)); in mpc512x_psc_spi_activate_cs()
121 ccr &= 0xFF000000; in mpc512x_psc_spi_activate_cs()
127 ccr |= (((bclkdiv & 0xff) << 16) | (((bclkdiv >> 8) & 0xff) << 8)); in mpc512x_psc_spi_activate_cs()
128 out_be32(psc_addr(mps, ccr), ccr); in mpc512x_psc_spi_activate_cs()
409 u32 ccr; in mpc512x_psc_spi_port_config() local
437 ccr = in_be32(psc_addr(mps, ccr)); in mpc512x_psc_spi_port_config()
438 ccr &= 0xFF000000; in mpc512x_psc_spi_port_config()
441 ccr |= (((bclkdiv & 0xff) << 16) | (((bclkdiv >> 8) & 0xff) << 8)); in mpc512x_psc_spi_port_config()
442 out_be32(psc_addr(mps, ccr), ccr); in mpc512x_psc_spi_port_config()
/kernel/linux/linux-5.10/arch/h8300/kernel/
Dsignal.c77 unsigned int ccr; in restore_sigcontext() local
91 ccr = regs->ccr & 0x10; in restore_sigcontext()
92 COPY(ccr); in restore_sigcontext()
94 regs->ccr &= 0xef; in restore_sigcontext()
95 regs->ccr |= ccr; in restore_sigcontext()
146 err |= __put_user(regs->ccr, &sc->sc_ccr); in setup_sigcontext()
Dentry.S86 stc ccr,r0l /* check kernel mode */
93 orc #0x10,ccr /* switch kernel stack */
134 orc #0xc0,ccr
149 andc #0xef,ccr /* switch to user mode */
244 andc #0xbf,ccr
250 andc #0x3f,ccr
279 orc #0xc0,ccr
293 orc #0xc0,ccr
300 andc #0xbf,ccr
362 stc ccr,r3l
[all …]
/kernel/linux/linux-5.10/drivers/mfd/
Dtc6393xb.c99 u16 ccr; member
222 u16 ccr; in tc6393xb_ohci_enable() local
227 ccr = tmio_ioread16(tc6393xb->scr + SCR_CCR); in tc6393xb_ohci_enable()
228 ccr |= SCR_CCR_USBCK; in tc6393xb_ohci_enable()
229 tmio_iowrite16(ccr, tc6393xb->scr + SCR_CCR); in tc6393xb_ohci_enable()
244 u16 ccr; in tc6393xb_ohci_disable() local
253 ccr = tmio_ioread16(tc6393xb->scr + SCR_CCR); in tc6393xb_ohci_disable()
254 ccr &= ~SCR_CCR_USBCK; in tc6393xb_ohci_disable()
255 tmio_iowrite16(ccr, tc6393xb->scr + SCR_CCR); in tc6393xb_ohci_disable()
277 u16 ccr; in tc6393xb_fb_enable() local
[all …]
/kernel/linux/linux-5.10/drivers/video/fbdev/
Dtmiofb.c196 void __iomem *ccr; member
249 tmio_iowrite16(0, par->ccr + CCR_UGCC); in tmiofb_hw_stop()
274 tmio_iowrite16(0x003a, par->ccr + CCR_UGCC); in tmiofb_hw_init()
275 tmio_iowrite16(0x003a, par->ccr + CCR_GCC); in tmiofb_hw_init()
276 tmio_iowrite16(0x3f00, par->ccr + CCR_USC); in tmiofb_hw_init()
280 tmio_iowrite16(0x0000, par->ccr + CCR_USC); in tmiofb_hw_init()
281 tmio_iowrite16(base >> 16, par->ccr + CCR_BASEH); in tmiofb_hw_init()
282 tmio_iowrite16(base, par->ccr + CCR_BASEL); in tmiofb_hw_init()
283 tmio_iowrite16(0x0002, par->ccr + CCR_CMD); /* base address enable */ in tmiofb_hw_init()
284 tmio_iowrite16(0x40a8, par->ccr + CCR_VRAMRTC); /* VRAMRC, VRAMTC */ in tmiofb_hw_init()
[all …]
/kernel/linux/linux-5.10/arch/h8300/include/asm/
Dprocessor.h54 unsigned long ccr; /* saved status register */ member
65 .ccr = PS_S, \
83 (_regs)->ccr = 0x00; /* clear all flags */ \
92 (_regs)->ccr = 0x00; /* clear kernel flag */ \
/kernel/linux/linux-5.10/drivers/dma/ti/
Domap-dma.c67 uint32_t ccr; member
121 uint32_t ccr; /* CCR value */ member
457 omap_dma_chan_write(c, CCR, d->ccr | CCR_ENABLE); in omap_dma_start()
508 if (!(c->ccr & CCR_BUFFERING_DISABLE)) in omap_dma_stop()
519 if (!(c->ccr & CCR_BUFFERING_DISABLE)) in omap_dma_stop()
587 omap_dma_chan_write(c, CCR, d->ccr); in omap_dma_start_desc()
589 omap_dma_chan_write(c, CCR2, d->ccr >> 16); in omap_dma_start_desc()
739 c->ccr = CCR_OMAP31_DISABLE; in omap_dma_alloc_chan_resources()
741 c->ccr |= c->dma_ch + 1; in omap_dma_alloc_chan_resources()
743 c->ccr = c->dma_sig & 0x1f; in omap_dma_alloc_chan_resources()
[all …]
/kernel/linux/linux-5.10/arch/sparc/include/asm/
Dbackoff.h57 88: rd %ccr, %g0; \
58 rd %ccr, %g0; \
59 rd %ccr, %g0; \
/kernel/linux/linux-5.10/arch/powerpc/kvm/
Dbook3s_hv_tm.c144 vcpu->arch.regs.ccr = (vcpu->arch.regs.ccr & 0x0fffffff) | in kvmhv_p9_tm_emulation()
189 vcpu->arch.regs.ccr = (vcpu->arch.regs.ccr & 0x0fffffff) | in kvmhv_p9_tm_emulation()
220 vcpu->arch.regs.ccr = (vcpu->arch.regs.ccr & 0x0fffffff) | in kvmhv_p9_tm_emulation()
/kernel/linux/linux-5.10/arch/sh/kernel/cpu/
Dinit.c109 unsigned long ccr, flags; in cache_init() local
112 ccr = __raw_readl(SH_CCR); in cache_init()
125 if (ccr & CCR_CACHE_ENABLE) { in cache_init()
135 if (ccr & CCR_CACHE_ORA) in cache_init()
143 if (!(ccr & CCR_CACHE_EMODE)) in cache_init()
/kernel/linux/linux-5.10/arch/arm/plat-omap/
Ddma.c158 u32 ccr; in omap_set_dma_priority() local
160 ccr = p->dma_read(CCR, lch); in omap_set_dma_priority()
162 ccr |= (1 << 6); in omap_set_dma_priority()
164 ccr &= ~(1 << 6); in omap_set_dma_priority()
165 p->dma_write(ccr, CCR, lch); in omap_set_dma_priority()
182 u16 ccr; in omap_set_dma_transfer_params() local
184 ccr = p->dma_read(CCR, lch); in omap_set_dma_transfer_params()
185 ccr &= ~(1 << 5); in omap_set_dma_transfer_params()
187 ccr |= 1 << 5; in omap_set_dma_transfer_params()
188 p->dma_write(ccr, CCR, lch); in omap_set_dma_transfer_params()
[all …]

12345