/linux-6.3-rc2/arch/alpha/kernel/ |
A 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() 345 pchip->tba[2].csr = 0; in tsunami_init_one_pchip() 347 pchip->wsba[3].csr = 0; in tsunami_init_one_pchip() 350 pchip->pctl.csr |= pctl_m_mwin; in tsunami_init_one_pchip() 455 pchip->perror.csr; in tsunami_pci_clr_err_1() 456 pchip->perror.csr = 0x040; in tsunami_pci_clr_err_1() [all …]
|
A D | core_wildfire.c | 127 pci->pci_window[1].tbase.csr = 0; in wildfire_init_hose() 193 temp = fast->qsd_whami.csr; in wildfire_hardware_probe() 220 temp = qsa->qsa_qbb_id.csr; in wildfire_hardware_probe() 254 temp = qsd->qsd_whami.csr; in wildfire_hardware_probe() 263 temp = qsa->qsa_qbb_pop[0].csr; in wildfire_hardware_probe() 270 temp = qsa->qsa_qbb_pop[1].csr; in wildfire_hardware_probe() 277 temp = qsa->qsa_qbb_id.csr; in wildfire_hardware_probe() 538 qsd->qsd_fault_ena.csr); in wildfire_dump_qsd_regs() 542 qsd->qsd_mem_config.csr); in wildfire_dump_qsd_regs() 544 qsd->qsd_err_sum.csr); in wildfire_dump_qsd_regs() [all …]
|
A 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() 332 port->tba[1].csr = 0; in titan_init_one_pachip_port() 338 port->wsba[3].csr = 0; in titan_init_one_pachip_port() 341 port->pctl.csr |= pctl_m_mwin; in titan_init_one_pachip_port() 645 pctl.pctl_q_whole = port->pctl.csr; in titan_agp_configure() [all …]
|
A D | sys_marvel.c | 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() 219 io7->csrs->PO7_MSI_CTL[which].csr; in io7_redirect_one_msi() 230 io7->csrs->PO7_LSI_CTL[which].csr; in init_one_io7_lsi() [all …]
|
A D | err_marvel.c | 818 err_sum |= io7->csrs->PO7_ERROR_SUM.csr; in marvel_find_io7_with_error() 822 err_sum |= io7->ports[i].csrs->POx_ERR_SUM.csr; in marvel_find_io7_with_error() 843 io->io_asic_rev = io7->csrs->IO_ASIC_REV.csr; in marvel_find_io7_with_error() 844 io->io_sys_rev = io7->csrs->IO_SYS_REV.csr; in marvel_find_io7_with_error() 845 io->io7_uph = io7->csrs->IO7_UPH.csr; in marvel_find_io7_with_error() 846 io->hpi_ctl = io7->csrs->HPI_CTL.csr; in marvel_find_io7_with_error() 847 io->crd_ctl = io7->csrs->CRD_CTL.csr; in marvel_find_io7_with_error() 848 io->hei_ctl = io7->csrs->HEI_CTL.csr; in marvel_find_io7_with_error() 849 io->po7_error_sum = io7->csrs->PO7_ERROR_SUM.csr; in marvel_find_io7_with_error() 884 csrs->POx_ERR_SUM.csr; in marvel_find_io7_with_error() [all …]
|
A D | core_marvel.c | 61 q = ev7csr->csr; in read_ev7_csr() 73 ev7csr->csr = q; in write_ev7_csr() 184 csrs->POx_ERR_SUM.csr = -1UL; in io7_clear_errors() 185 csrs->POx_TLB_ERR.csr = -1UL; in io7_clear_errors() 187 csrs->POx_TRANS_SUM.csr = -1UL; in io7_clear_errors() 292 csrs->POx_WBASE[0].csr = in io7_init_hose() 302 csrs->POx_TBASE[1].csr = 0; in io7_init_hose() 309 csrs->POx_WBASE[2].csr = in io7_init_hose() 317 csrs->POx_WBASE[3].csr = 0; in io7_init_hose() 612 csrs->POx_SG_TBIA.csr = 0; in marvel_pci_tbi() [all …]
|
/linux-6.3-rc2/drivers/crypto/qat/qat_common/ |
A D | icp_qat_hw_20_comp.h | 27 QAT_FIELD_SET(val32, csr.algo, in ICP_QAT_FW_COMP_20_BUILD_CONFIG_LOWER() 30 QAT_FIELD_SET(val32, csr.sd, in ICP_QAT_FW_COMP_20_BUILD_CONFIG_LOWER() 33 QAT_FIELD_SET(val32, csr.edmm, in ICP_QAT_FW_COMP_20_BUILD_CONFIG_LOWER() 36 QAT_FIELD_SET(val32, csr.hbs, in ICP_QAT_FW_COMP_20_BUILD_CONFIG_LOWER() 39 QAT_FIELD_SET(val32, csr.lllbd, in ICP_QAT_FW_COMP_20_BUILD_CONFIG_LOWER() 42 QAT_FIELD_SET(val32, csr.mmctrl, in ICP_QAT_FW_COMP_20_BUILD_CONFIG_LOWER() 96 QAT_FIELD_SET(val32, csr.lbms, in ICP_QAT_FW_COMP_20_BUILD_CONFIG_UPPER() 125 QAT_FIELD_SET(val32, csr.hbs, in ICP_QAT_FW_DECOMP_20_BUILD_CONFIG_LOWER() 137 QAT_FIELD_SET(val32, csr.lbc, in ICP_QAT_FW_DECOMP_20_BUILD_CONFIG_LOWER() 154 QAT_FIELD_SET(val32, csr.sdc, in ICP_QAT_FW_DECOMP_20_BUILD_CONFIG_UPPER() [all …]
|
A 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
|
A 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() 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-6.3-rc2/arch/sparc/kernel/ |
A D | ebus.c | 74 u32 csr = 0; in ebus_dma_irq() local 99 u32 csr; in ebus_dma_register() local 116 csr |= EBDMA_CSR_TCI_DIS; in ebus_dma_register() 127 u32 csr; in ebus_dma_irq_enable() local 137 csr |= EBDMA_CSR_INT_EN; in ebus_dma_irq_enable() 159 u32 csr; in ebus_dma_unregister() local 179 u32 csr; in ebus_dma_request() local 208 u32 csr; in ebus_dma_prepare() local 213 csr = (EBDMA_CSR_INT_EN | in ebus_dma_prepare() 219 csr |= EBDMA_CSR_WRITE; in ebus_dma_prepare() [all …]
|
/linux-6.3-rc2/drivers/usb/musb/ |
A D | musb_gadget.c | 229 u16 fifo_count = 0, csr; in txstate() local 268 csr); in txstate() 388 csr |= MUSB_TXCSR_TXPKTRDY; in txstate() 408 u16 csr; in musb_g_tx() local 792 u16 csr; in musb_g_rx() local 918 u16 csr; in musb_gadget_enable() local 1002 csr |= MUSB_TXCSR_P_ISO; in musb_gadget_enable() 1042 csr |= MUSB_RXCSR_P_ISO; in musb_gadget_enable() 1044 csr |= MUSB_RXCSR_DISNYET; in musb_gadget_enable() 1336 u16 csr; in musb_gadget_set_halt() local [all …]
|
A D | musb_gadget_ep0.c | 243 u16 csr; in service_zero_data_request() local 403 u16 csr; in service_zero_data_request() local 465 u16 count, csr; in ep0_rxstate() local 490 csr |= MUSB_CSR0_P_DATAEND; in ep0_rxstate() 501 musb->ackpend = csr; in ep0_rxstate() 546 csr |= MUSB_CSR0_P_DATAEND; in ep0_txstate() 556 musb->ackpend = csr; in ep0_txstate() 643 u16 csr; in musb_g_ep0_irq() local 843 handled, csr, in musb_g_ep0_irq() 997 u16 csr; in musb_g_ep0_halt() local [all …]
|
A D | musb_host.c | 90 u16 csr; in musb_h_tx_flush_fifo() local 124 u16 csr; in musb_h_ep0_flush_fifo() local 411 u16 csr; in musb_host_packet_rx() local 511 u16 csr; in musb_rx_reinit() local 573 u16 csr; in musb_tx_dma_set_mode_mentor() local 646 u16 csr; in musb_tx_dma_program() local 676 u16 csr; in musb_ep_program() local 715 u16 csr; in musb_ep_program() local 834 u16 csr = 0; in musb_ep_program() local 1051 u16 csr, len; in musb_h_ep0_irq() local [all …]
|
A D | musb_cppi41.c | 56 u16 csr; in save_rx_toggle() local 74 u16 csr; in update_rx_toggle() local 105 u16 csr; in musb_is_tx_fifo_empty() local 108 csr = musb_readw(epio, MUSB_TXCSR); in musb_is_tx_fifo_empty() 109 if (csr & MUSB_TXCSR_TXPKTRDY) in musb_is_tx_fifo_empty() 122 u16 csr; in cppi41_trans_done() local 179 csr |= MUSB_RXCSR_H_REQPKT; in cppi41_trans_done() 582 u16 csr; in cppi41_dma_channel_abort() local 593 csr &= ~MUSB_TXCSR_DMAENAB; in cppi41_dma_channel_abort() 610 csr |= MUSB_RXCSR_FLUSHFIFO; in cppi41_dma_channel_abort() [all …]
|
/linux-6.3-rc2/drivers/watchdog/ |
A D | shwdt.c | 85 u8 csr; in sh_wdt_start() local 97 sh_wdt_write_csr(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() 116 csr &= ~RSTCSR_RSTS; in sh_wdt_start() 128 u8 csr; in sh_wdt_stop() local 135 csr &= ~WTCSR_TME; in sh_wdt_stop() 136 sh_wdt_write_csr(csr); in sh_wdt_stop() 181 u8 csr; in sh_wdt_ping() local [all …]
|
/linux-6.3-rc2/drivers/scsi/ |
A D | sun3_scsi.c | 196 unsigned short csr = dregs->csr; in scsi_sun3_intr() local 203 if(csr & ~CSR_GOOD) { in scsi_sun3_intr() 243 dregs->csr |= CSR_FIFO; in sun3scsi_dma_setup() 270 dregs->csr |= CSR_FIFO; in sun3scsi_dma_setup() 348 unsigned short csr; in sun3scsi_dma_start() local 350 csr = dregs->csr; in sun3scsi_dma_start() 474 dregs->csr |= CSR_FIFO; in sun3scsi_dma_finish() 549 oldcsr = dregs->csr; in sun3_scsi_probe() 550 dregs->csr = 0; in sun3_scsi_probe() 555 dregs->csr = oldcsr; in sun3_scsi_probe() [all …]
|
A D | sun3x_esp.c | 86 u32 csr; in sun3x_esp_dma_drain() local 89 csr = dma_read32(DMA_CSR); in sun3x_esp_dma_drain() 90 if (!(csr & DMA_FIFO_ISDRAIN)) in sun3x_esp_dma_drain() 131 u32 csr; in sun3x_esp_send_dma_cmd() local 137 csr = dma_read32(DMA_CSR); in sun3x_esp_send_dma_cmd() 138 csr |= DMA_ENABLE; in sun3x_esp_send_dma_cmd() 140 csr |= DMA_ST_WRITE; in sun3x_esp_send_dma_cmd() 142 csr &= ~DMA_ST_WRITE; in sun3x_esp_send_dma_cmd() 143 dma_write32(csr, DMA_CSR); in sun3x_esp_send_dma_cmd() 151 u32 csr = dma_read32(DMA_CSR); in sun3x_esp_dma_error() local [all …]
|
/linux-6.3-rc2/arch/sh/kernel/cpu/ |
A 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-6.3-rc2/drivers/usb/gadget/udc/ |
A D | at91_udc.c | 111 u32 csr; in proc_ep_show() local 132 csr, in proc_ep_show() 139 (!(csr & 0x700)) in proc_ep_show() 314 u32 csr; in read_fifo() local 341 csr |= CLR_FX; in read_fifo() 407 csr |= CLR_FX; in write_fifo() 441 csr &= ~SET_FX; in write_fifo() 741 u32 csr; in at91_ep_set_halt() local 761 csr |= CLR_FX; in at91_ep_set_halt() 1073 csr |= CLR_FX; in handle_setup() [all …]
|
/linux-6.3-rc2/sound/soc/intel/atom/sst/ |
A D | sst_loader.c | 57 union config_status_reg_mrfld csr; in intel_sst_reset_dsp_mrfld() local 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() 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() 74 dev_dbg(sst_drv_ctx->dev, "value:0x%llx\n", csr.full); in intel_sst_reset_dsp_mrfld() 86 union config_status_reg_mrfld csr; in sst_start_mrfld() local 92 csr.full |= 0x7; in sst_start_mrfld() 98 csr.part.xt_snoop = 1; in sst_start_mrfld() 99 csr.full &= ~(0x5); in sst_start_mrfld() [all …]
|
/linux-6.3-rc2/arch/riscv/kvm/ |
A D | vcpu.c | 130 memcpy(csr, reset_csr, sizeof(*csr)); in kvm_riscv_reset_vcpu() 735 csr->hvip &= ~mask; in kvm_riscv_vcpu_flush_interrupts() 736 csr->hvip |= val; in kvm_riscv_vcpu_flush_interrupts() 747 csr->vsie = csr_read(CSR_VSIE); in kvm_riscv_vcpu_sync_interrupts() 879 csr_write(CSR_VSIE, csr->vsie); in kvm_arch_vcpu_load() 882 csr_write(CSR_VSEPC, csr->vsepc); in kvm_arch_vcpu_load() 885 csr_write(CSR_HVIP, csr->hvip); in kvm_arch_vcpu_load() 886 csr_write(CSR_VSATP, csr->vsatp); in kvm_arch_vcpu_load() 914 csr->vsie = csr_read(CSR_VSIE); in kvm_arch_vcpu_put() 920 csr->hvip = csr_read(CSR_HVIP); in kvm_arch_vcpu_put() [all …]
|
/linux-6.3-rc2/arch/mips/dec/ |
A 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() 62 volatile u32 *csr = (volatile u32 *)CKSEG1ADDR(KN02_SLOT_BASE + in init_kn02_irqs() local 68 *csr = cached_kn02_csr; in init_kn02_irqs()
|
/linux-6.3-rc2/drivers/dma/ |
A D | tegra186-gpc-dma.c | 189 u32 csr; member 452 u32 csr, status; in tegra_dma_disable() local 460 csr &= ~TEGRA_GPCDMA_CSR_ENB; in tegra_dma_disable() 663 u32 status, csr; in tegra_dma_stop_client() local 829 u32 *csr, in get_transfer_param() argument 863 u32 csr, mc_seq; in tegra_dma_prep_dma_memset() local 913 sg_req[0].ch_regs.csr = csr; in tegra_dma_prep_dma_memset() 930 u32 csr, mc_seq; in tegra_dma_prep_dma_memcpy() local 983 sg_req[0].ch_regs.csr = csr; in tegra_dma_prep_dma_memcpy() 1102 sg_req[i].ch_regs.csr = csr; in tegra_dma_prep_slave_sg() [all …]
|
/linux-6.3-rc2/arch/riscv/include/asm/ |
A D | csr.h | 346 #define csr_swap(csr, val) \ argument 355 #define csr_read(csr) \ argument 358 __asm__ __volatile__ ("csrr %0, " __ASM_STR(csr) \ 364 #define csr_write(csr, val) \ argument 367 __asm__ __volatile__ ("csrw " __ASM_STR(csr) ", %0" \ 372 #define csr_read_set(csr, val) \ argument 381 #define csr_set(csr, val) \ argument 384 __asm__ __volatile__ ("csrs " __ASM_STR(csr) ", %0" \ 389 #define csr_read_clear(csr, val) \ argument 398 #define csr_clear(csr, val) \ argument [all …]
|
/linux-6.3-rc2/drivers/pcmcia/ |
A D | pxa2xx_sharpsl.c | 57 unsigned short cpr, csr; in sharpsl_pcmcia_socket_state() local 65 csr = read_scoop_reg(scoop, SCOOP_CSR); in sharpsl_pcmcia_socket_state() 66 if (csr & 0x0004) { in sharpsl_pcmcia_socket_state() 74 csr |= SCOOP_DEV[skt->nr].keep_vs; in sharpsl_pcmcia_socket_state() 90 state->detect = (csr & 0x0004) ? 0 : 1; in sharpsl_pcmcia_socket_state() 91 state->ready = (csr & 0x0002) ? 1 : 0; in sharpsl_pcmcia_socket_state() 92 state->bvd1 = (csr & 0x0010) ? 1 : 0; in sharpsl_pcmcia_socket_state() 93 state->bvd2 = (csr & 0x0020) ? 1 : 0; in sharpsl_pcmcia_socket_state() 94 state->wrprot = (csr & 0x0008) ? 1 : 0; in sharpsl_pcmcia_socket_state() 95 state->vs_3v = (csr & 0x0040) ? 0 : 1; in sharpsl_pcmcia_socket_state() [all …]
|