/Linux-v6.1/arch/sparc/kernel/ |
D | ebus.c | 74 u32 csr = 0; in ebus_dma_irq() local 77 csr = readl(p->regs + EBDMA_CSR); in ebus_dma_irq() 78 writel(csr, p->regs + EBDMA_CSR); in ebus_dma_irq() 81 if (csr & EBDMA_CSR_ERR_PEND) { in ebus_dma_irq() 85 } else if (csr & EBDMA_CSR_INT_PEND) { in ebus_dma_irq() 87 (csr & EBDMA_CSR_TC) ? in ebus_dma_irq() 99 u32 csr; in ebus_dma_register() local 113 csr = EBDMA_CSR_BURST_SZ_16 | EBDMA_CSR_EN_CNT; in ebus_dma_register() 116 csr |= EBDMA_CSR_TCI_DIS; in ebus_dma_register() 118 writel(csr, p->regs + EBDMA_CSR); in ebus_dma_register() [all …]
|
/Linux-v6.1/arch/alpha/kernel/ |
D | core_tsunami.c | 181 volatile unsigned long *csr; in tsunami_pci_tbi() local 186 csr = &pchip->tlbia.csr; in tsunami_pci_tbi() 188 csr = &pchip->tlbiv.csr; in tsunami_pci_tbi() 194 *csr = value; in tsunami_pci_tbi() 196 *csr; in tsunami_pci_tbi() 227 TSUNAMI_cchip->misc.csr |= (1L << 28); /* clear NXM... */ in tsunami_probe_write() 231 if (TSUNAMI_cchip->misc.csr & (1L << 28)) { in tsunami_probe_write() 232 int source = (TSUNAMI_cchip->misc.csr >> 29) & 7; in tsunami_probe_write() 233 TSUNAMI_cchip->misc.csr |= (1L << 28); /* ...and unlock NXS. */ in tsunami_probe_write() 251 if (tsunami_probe_read(&pchip->pctl.csr) == 0) in tsunami_init_one_pchip() [all …]
|
D | core_wildfire.c | 121 pci->pci_window[0].wbase.csr = hose->sg_isa->dma_base | 3; in wildfire_init_hose() 122 pci->pci_window[0].wmask.csr = (hose->sg_isa->size - 1) & 0xfff00000; in wildfire_init_hose() 123 pci->pci_window[0].tbase.csr = virt_to_phys(hose->sg_isa->ptes); in wildfire_init_hose() 125 pci->pci_window[1].wbase.csr = 0x40000000 | 1; in wildfire_init_hose() 126 pci->pci_window[1].wmask.csr = (0x40000000 -1) & 0xfff00000; in wildfire_init_hose() 127 pci->pci_window[1].tbase.csr = 0; in wildfire_init_hose() 129 pci->pci_window[2].wbase.csr = 0x80000000 | 1; in wildfire_init_hose() 130 pci->pci_window[2].wmask.csr = (0x40000000 -1) & 0xfff00000; in wildfire_init_hose() 131 pci->pci_window[2].tbase.csr = 0x40000000; in wildfire_init_hose() 133 pci->pci_window[3].wbase.csr = hose->sg_pci->dma_base | 3; in wildfire_init_hose() [all …]
|
D | core_titan.c | 207 volatile unsigned long *csr; in titan_pci_tbi() local 220 csr = &port->port_specific.g.gtlbia.csr; in titan_pci_tbi() 222 csr = &port->port_specific.g.gtlbiv.csr; in titan_pci_tbi() 229 *csr = value; in titan_pci_tbi() 231 *csr; in titan_pci_tbi() 240 pctl.pctl_q_whole = port->pctl.csr; in titan_query_agp() 293 saved_config[index].wsba[0] = port->wsba[0].csr; in titan_init_one_pachip_port() 294 saved_config[index].wsm[0] = port->wsm[0].csr; in titan_init_one_pachip_port() 295 saved_config[index].tba[0] = port->tba[0].csr; in titan_init_one_pachip_port() 297 saved_config[index].wsba[1] = port->wsba[1].csr; in titan_init_one_pachip_port() [all …]
|
D | sys_marvel.c | 96 ctl = &io7->csrs->PO7_LSI_CTL[irq & 0xff].csr; /* assume LSI */ in io7_get_irq_ctl() 98 ctl = &io7->csrs->PO7_MSI_CTL[((irq - 0x80) >> 5) & 0x0f].csr; in io7_get_irq_ctl() 174 volatile unsigned long *csr, in io7_redirect_irq() argument 179 val = *csr; in io7_redirect_irq() 183 *csr = val; in io7_redirect_irq() 185 *csr; in io7_redirect_irq() 196 val = io7->csrs->PO7_LSI_CTL[which].csr; in io7_redirect_one_lsi() 200 io7->csrs->PO7_LSI_CTL[which].csr = val; in io7_redirect_one_lsi() 202 io7->csrs->PO7_LSI_CTL[which].csr; in io7_redirect_one_lsi() 213 val = io7->csrs->PO7_MSI_CTL[which].csr; in io7_redirect_one_msi() [all …]
|
D | err_ev7.c | 194 "DM CSR PH", "DM CSR PH", "DM CSR PH", 195 "DM CSR PH", "reserved", 198 "DM CSR PH", "DM CSR PH", "DM CSR PH", 199 "DM CSR PH", "reserved", 202 "DM CSR PH", "DM CSR PH", "DM CSR PH", 203 "DM CSR PH", "reserved", 206 "DM CSR PH", "DM CSR PH", "DM CSR PH", 207 "DM CSR PH", "reserved",
|
/Linux-v6.1/drivers/usb/musb/ |
D | musb_gadget.c | 229 u16 fifo_count = 0, csr; in txstate() local 248 csr = musb_readw(epio, MUSB_TXCSR); in txstate() 254 if (csr & MUSB_TXCSR_TXPKTRDY) { in txstate() 256 musb_ep->end_point.name, csr); in txstate() 260 if (csr & MUSB_TXCSR_P_SENDSTALL) { in txstate() 262 musb_ep->end_point.name, csr); in txstate() 268 csr); in txstate() 275 /* setup DMA, then program endpoint CSR */ in txstate() 301 csr &= ~(MUSB_TXCSR_AUTOSET in txstate() 303 musb_writew(epio, MUSB_TXCSR, csr in txstate() [all …]
|
D | musb_gadget_ep0.c | 243 u16 csr; in service_zero_data_request() local 266 csr = musb_readw(regs, MUSB_TXCSR); in service_zero_data_request() 267 csr |= MUSB_TXCSR_CLRDATATOG | in service_zero_data_request() 269 csr &= ~(MUSB_TXCSR_P_SENDSTALL | in service_zero_data_request() 272 musb_writew(regs, MUSB_TXCSR, csr); in service_zero_data_request() 274 csr = musb_readw(regs, MUSB_RXCSR); in service_zero_data_request() 275 csr |= MUSB_RXCSR_CLRDATATOG | in service_zero_data_request() 277 csr &= ~(MUSB_RXCSR_P_SENDSTALL | in service_zero_data_request() 279 musb_writew(regs, MUSB_RXCSR, csr); in service_zero_data_request() 403 u16 csr; in service_zero_data_request() local [all …]
|
D | musb_cppi41.c | 56 u16 csr; in save_rx_toggle() local 64 csr = musb_readw(cppi41_channel->hw_ep->regs, MUSB_RXCSR); in save_rx_toggle() 65 toggle = csr & MUSB_RXCSR_H_DATATOGGLE ? 1 : 0; in save_rx_toggle() 74 u16 csr; in update_rx_toggle() local 83 csr = musb_readw(hw_ep->regs, MUSB_RXCSR); in update_rx_toggle() 84 toggle = csr & MUSB_RXCSR_H_DATATOGGLE ? 1 : 0; in update_rx_toggle() 92 csr |= MUSB_RXCSR_H_DATATOGGLE | MUSB_RXCSR_H_WR_DATATOGGLE; in update_rx_toggle() 93 musb_writew(cppi41_channel->hw_ep->regs, MUSB_RXCSR, csr); in update_rx_toggle() 105 u16 csr; in musb_is_tx_fifo_empty() local 108 csr = musb_readw(epio, MUSB_TXCSR); in musb_is_tx_fifo_empty() [all …]
|
D | musb_host.c | 90 u16 csr; in musb_h_tx_flush_fifo() local 93 csr = musb_readw(epio, MUSB_TXCSR); in musb_h_tx_flush_fifo() 94 while (csr & MUSB_TXCSR_FIFONOTEMPTY) { in musb_h_tx_flush_fifo() 95 csr |= MUSB_TXCSR_FLUSHFIFO | MUSB_TXCSR_TXPKTRDY; in musb_h_tx_flush_fifo() 96 musb_writew(epio, MUSB_TXCSR, csr); in musb_h_tx_flush_fifo() 97 csr = musb_readw(epio, MUSB_TXCSR); in musb_h_tx_flush_fifo() 114 "Could not flush host TX%d fifo: csr: %04x\n", in musb_h_tx_flush_fifo() 115 ep->epnum, csr)) in musb_h_tx_flush_fifo() 124 u16 csr; in musb_h_ep0_flush_fifo() local 129 csr = musb_readw(epio, MUSB_TXCSR); in musb_h_ep0_flush_fifo() [all …]
|
D | musbhsdma.c | 152 u16 csr = 0; in configure_channel() local 158 csr |= 1 << MUSB_HSDMA_MODE1_SHIFT; in configure_channel() 161 csr |= MUSB_HSDMA_BURSTMODE_INCR16 in configure_channel() 164 csr |= (musb_channel->epnum << MUSB_HSDMA_ENDPOINT_SHIFT) in configure_channel() 178 csr); in configure_channel() 228 u16 csr; in dma_channel_abort() local 239 csr = musb_readw(mbase, offset); in dma_channel_abort() 240 csr &= ~(MUSB_TXCSR_AUTOSET | MUSB_TXCSR_DMAENAB); in dma_channel_abort() 241 musb_writew(mbase, offset, csr); in dma_channel_abort() 242 csr &= ~MUSB_TXCSR_DMAMODE; in dma_channel_abort() [all …]
|
/Linux-v6.1/drivers/scsi/ |
D | sun3_scsi.c | 73 unsigned short csr; /* control/status reg */ member 117 /* bits in csr reg */ 190 // safe bits for the CSR 196 unsigned short csr = dregs->csr; in scsi_sun3_intr() local 200 dregs->csr &= ~CSR_DMA_ENABLE; in scsi_sun3_intr() 203 if(csr & ~CSR_GOOD) { in scsi_sun3_intr() 204 if (csr & CSR_DMA_BUSERR) in scsi_sun3_intr() 206 if (csr & CSR_DMA_CONFLICT) in scsi_sun3_intr() 211 if(csr & (CSR_SDB_INT | CSR_DMA_INT)) { in scsi_sun3_intr() 242 dregs->csr &= ~CSR_FIFO; in sun3scsi_dma_setup() [all …]
|
/Linux-v6.1/drivers/usb/gadget/udc/ |
D | at91_udc.c | 111 u32 csr; in proc_ep_show() local 118 csr = __raw_readl(ep->creg); in proc_ep_show() 131 seq_printf(s, "csr %08x rxbytes=%d %s %s %s" EIGHTBITS "\n", in proc_ep_show() 132 csr, in proc_ep_show() 133 (csr & 0x07ff0000) >> 16, in proc_ep_show() 134 (csr & (1 << 15)) ? "enabled" : "disabled", in proc_ep_show() 135 (csr & (1 << 11)) ? "DATA1" : "DATA0", in proc_ep_show() 136 types[(csr & 0x700) >> 8], in proc_ep_show() 139 (!(csr & 0x700)) in proc_ep_show() 140 ? ((csr & (1 << 7)) ? " IN" : " OUT") in proc_ep_show() [all …]
|
/Linux-v6.1/arch/sh/kernel/cpu/ |
D | adc.c | 16 unsigned char csr; in adc_single() local 22 csr = __raw_readb(ADCSR); in adc_single() 23 csr = channel | ADCSR_ADST | ADCSR_CKS; in adc_single() 24 __raw_writeb(csr, ADCSR); in adc_single() 27 csr = __raw_readb(ADCSR); in adc_single() 28 } while ((csr & ADCSR_ADF) == 0); in adc_single() 30 csr &= ~(ADCSR_ADF | ADCSR_ADST); in adc_single() 31 __raw_writeb(csr, ADCSR); in adc_single()
|
/Linux-v6.1/arch/alpha/include/asm/ |
D | core_t2.h | 214 unsigned long elcmc_bcc; /* CSR 0 */ 215 unsigned long elcmc_bcce; /* CSR 1 */ 216 unsigned long elcmc_bccea; /* CSR 2 */ 217 unsigned long elcmc_bcue; /* CSR 3 */ 218 unsigned long elcmc_bcuea; /* CSR 4 */ 219 unsigned long elcmc_dter; /* CSR 5 */ 220 unsigned long elcmc_cbctl; /* CSR 6 */ 221 unsigned long elcmc_cbe; /* CSR 7 */ 222 unsigned long elcmc_cbeal; /* CSR 8 */ 223 unsigned long elcmc_cbeah; /* CSR 9 */ [all …]
|
/Linux-v6.1/drivers/watchdog/ |
D | shwdt.c | 85 u8 csr; in sh_wdt_start() local 95 csr = sh_wdt_read_csr(); in sh_wdt_start() 96 csr |= WTCSR_WT | clock_division_ratio; in sh_wdt_start() 97 sh_wdt_write_csr(csr); in sh_wdt_start() 109 csr = sh_wdt_read_csr(); in sh_wdt_start() 110 csr |= WTCSR_TME; in sh_wdt_start() 111 csr &= ~WTCSR_RSTS; in sh_wdt_start() 112 sh_wdt_write_csr(csr); in sh_wdt_start() 115 csr = sh_wdt_read_rstcsr(); in sh_wdt_start() 116 csr &= ~RSTCSR_RSTS; in sh_wdt_start() [all …]
|
/Linux-v6.1/Documentation/devicetree/bindings/clock/ |
D | xgene.txt | 36 - reg : shall be a list of address and length pairs describing the CSR 40 may include "csr-reg" and/or "div-reg". If this property 42 only "csr-reg". 49 - csr-offset : Offset to the CSR reset register from the reset address base. 51 - csr-mask : CSR reset mask bit. Default is 0xF. 54 - enable-mask : CSR enable mask bit. Default is 0xF. 55 - divider-offset : Offset to the divider CSR register from the divider base. 96 reg-name = "csr-reg"; 120 reg-names = "csr-reg", "div-reg"; 121 csr-offset = <0x0>; [all …]
|
/Linux-v6.1/include/linux/ |
D | rio_regs.h | 103 #define RIO_MBOX_CSR 0x40 /* [II, <= 1.2] Mailbox CSR */ 129 #define RIO_WRITE_PORT_CSR 0x44 /* [I, <= 1.2] Write Port CSR */ 130 #define RIO_DOORBELL_CSR 0x44 /* [II, <= 1.2] Doorbell CSR */ 146 #define RIO_PELL_CTRL_CSR 0x4c /* [I] PE Logical Layer Control CSR */ 156 #define RIO_DID_CSR 0x60 /* [III] Base Device ID CSR */ 160 #define RIO_HOST_DID_LOCK_CSR 0x68 /* [III] Host Base Device ID Lock CSR */ 161 #define RIO_COMPONENT_TAG_CSR 0x6c /* [III] Component Tag CSR */ 301 #define RIO_EM_LTL_ERR_DETECT 0x008 /* Logical/Transport Layer Error Detect CSR */ 302 #define RIO_EM_LTL_ERR_EN 0x00c /* Logical/Transport Layer Error Enable CSR */ 307 #define RIO_EM_LTL_HIADDR_CAP 0x010 /* Logical/Transport Layer High Address Capture CSR */ [all …]
|
/Linux-v6.1/sound/soc/intel/atom/sst/ |
D | sst_loader.c | 57 union config_status_reg_mrfld csr; in intel_sst_reset_dsp_mrfld() local 60 csr.full = sst_shim_read64(sst_drv_ctx->shim, SST_CSR); in intel_sst_reset_dsp_mrfld() 62 dev_dbg(sst_drv_ctx->dev, "value:0x%llx\n", csr.full); in intel_sst_reset_dsp_mrfld() 64 csr.full |= 0x7; in intel_sst_reset_dsp_mrfld() 65 sst_shim_write64(sst_drv_ctx->shim, SST_CSR, csr.full); in intel_sst_reset_dsp_mrfld() 66 csr.full = sst_shim_read64(sst_drv_ctx->shim, SST_CSR); in intel_sst_reset_dsp_mrfld() 68 dev_dbg(sst_drv_ctx->dev, "value:0x%llx\n", csr.full); in intel_sst_reset_dsp_mrfld() 70 csr.full &= ~(0x1); in intel_sst_reset_dsp_mrfld() 71 sst_shim_write64(sst_drv_ctx->shim, SST_CSR, csr.full); in intel_sst_reset_dsp_mrfld() 73 csr.full = sst_shim_read64(sst_drv_ctx->shim, SST_CSR); in intel_sst_reset_dsp_mrfld() [all …]
|
/Linux-v6.1/arch/riscv/kvm/ |
D | vcpu.c | 21 #include <asm/csr.h> 111 struct kvm_vcpu_csr *csr = &vcpu->arch.guest_csr; in kvm_riscv_reset_vcpu() local 129 memcpy(csr, reset_csr, sizeof(*csr)); in kvm_riscv_reset_vcpu() 410 struct kvm_vcpu_csr *csr = &vcpu->arch.guest_csr; in kvm_riscv_vcpu_get_reg_csr() local 425 reg_val = (csr->hvip >> VSIP_TO_HVIP_SHIFT) & VSIP_VALID_MASK; in kvm_riscv_vcpu_get_reg_csr() 427 reg_val = ((unsigned long *)csr)[reg_num]; in kvm_riscv_vcpu_get_reg_csr() 438 struct kvm_vcpu_csr *csr = &vcpu->arch.guest_csr; in kvm_riscv_vcpu_set_reg_csr() local 459 ((unsigned long *)csr)[reg_num] = reg_val; in kvm_riscv_vcpu_set_reg_csr() 677 struct kvm_vcpu_csr *csr = &vcpu->arch.guest_csr; in kvm_riscv_vcpu_flush_interrupts() local 684 csr->hvip &= ~mask; in kvm_riscv_vcpu_flush_interrupts() [all …]
|
/Linux-v6.1/drivers/crypto/qat/qat_common/ |
D | icp_qat_hal.h | 125 #define SET_CAP_CSR(handle, csr, val) \ argument 126 ADF_CSR_WR((handle)->hal_cap_g_ctl_csr_addr_v, csr, val) 127 #define GET_CAP_CSR(handle, csr) \ argument 128 ADF_CSR_RD((handle)->hal_cap_g_ctl_csr_addr_v, csr) 131 #define AE_CSR_ADDR(handle, ae, csr) (AE_CSR(handle, ae) + (0x3ff & (csr))) argument 132 #define SET_AE_CSR(handle, ae, csr, val) \ argument 133 ADF_CSR_WR(AE_CSR_ADDR(handle, ae, csr), 0, val) 134 #define GET_AE_CSR(handle, ae, csr) ADF_CSR_RD(AE_CSR_ADDR(handle, ae, csr), 0) argument
|
D | adf_hw_arbiter.c | 21 void __iomem *csr = accel_dev->transport->banks[0].csr_addr; in adf_init_arb() local 36 WRITE_CSR_ARB_SARCONFIG(csr, arb_off, arb, arb_cfg); in adf_init_arb() 42 WRITE_CSR_ARB_WT2SAM(csr, arb_off, wt_off, i, thd_2_arb_cfg[i]); in adf_init_arb() 60 * matches the RX part. This results in writes to CSR on both TX and in adf_update_ring_arb() 79 void __iomem *csr; in adf_exit_arb() local 89 csr = accel_dev->transport->banks[0].csr_addr; in adf_exit_arb() 95 WRITE_CSR_ARB_SARCONFIG(csr, arb_off, i, 0); in adf_exit_arb() 99 WRITE_CSR_ARB_WT2SAM(csr, arb_off, wt_off, i, 0); in adf_exit_arb() 103 csr_ops->write_csr_ring_srv_arb_en(csr, i, 0); in adf_exit_arb()
|
/Linux-v6.1/drivers/dma/ |
D | tegra186-gpc-dma.c | 24 /* CSR register */ 186 u32 csr; member 286 dev_dbg(tdc2dev(tdc), "CSR %x STA %x CSRE %x SRC %x DST %x\n", in tegra_dma_dump_chan_regs() 448 u32 csr, status; in tegra_dma_disable() local 450 csr = tdc_read(tdc, TEGRA_GPCDMA_CHAN_CSR); in tegra_dma_disable() 453 csr &= ~TEGRA_GPCDMA_CSR_IE_EOC; in tegra_dma_disable() 456 csr &= ~TEGRA_GPCDMA_CSR_ENB; in tegra_dma_disable() 457 tdc_write(tdc, TEGRA_GPCDMA_CHAN_CSR, csr); in tegra_dma_disable() 498 ch_regs->csr | TEGRA_GPCDMA_CSR_ENB); in tegra_dma_configure_next_sg() 530 tdc_write(tdc, TEGRA_GPCDMA_CHAN_CSR, ch_regs->csr); in tegra_dma_start() [all …]
|
/Linux-v6.1/drivers/misc/eeprom/ |
D | idt_89hpesx.c | 27 * <CSR address>:<CSR value> 28 * So reading the content of the file gives current CSR address and it value. 29 * If User-space application wishes to change current CSR address, 31 * $ echo "<CSR address>" > /sys/kernel/debug/idt_csr/<bus>-<devaddr>/<devname> 32 * If it wants to change the CSR value as well, the format of the write 34 * $ echo "<CSR address>:<CSR value>" > \ 36 * CSR address and value can be any of hexadecimal, decimal or octal format. 64 * csr_dbgdir - CSR read/write operations Debugfs directory 75 * @inicsrcmd: Initial cmd value for CSR read/write operations 78 * @csr: CSR address to perform read operation [all …]
|
/Linux-v6.1/arch/mips/dec/ |
D | kn02-irq.c | 30 volatile u32 *csr = (volatile u32 *)CKSEG1ADDR(KN02_SLOT_BASE + in unmask_kn02_irq() local 34 *csr = cached_kn02_csr; in unmask_kn02_irq() 39 volatile u32 *csr = (volatile u32 *)CKSEG1ADDR(KN02_SLOT_BASE + in mask_kn02_irq() local 43 *csr = cached_kn02_csr; in mask_kn02_irq() 53 .name = "KN02-CSR", 62 volatile u32 *csr = (volatile u32 *)CKSEG1ADDR(KN02_SLOT_BASE + in init_kn02_irqs() local 68 *csr = cached_kn02_csr; in init_kn02_irqs()
|