Home
last modified time | relevance | path

Searched refs:io_regs (Results 1 – 21 of 21) sorted by relevance

/linux/drivers/crypto/ccp/
H A Dpsp-dev.c55 cmdresp_reg = psp->io_regs + psp->vdata->cmdresp_reg; in psp_mailbox_command()
56 cmdbuff_lo_reg = psp->io_regs + psp->vdata->cmdbuff_addr_lo_reg; in psp_mailbox_command()
57 cmdbuff_hi_reg = psp->io_regs + psp->vdata->cmdbuff_addr_hi_reg; in psp_mailbox_command()
129 status = ioread32(psp->io_regs + psp->vdata->intsts_reg); in psp_irq_handler()
132 iowrite32(status, psp->io_regs + psp->vdata->intsts_reg); in psp_irq_handler()
145 unsigned int val = ioread32(psp->io_regs + psp->vdata->feature_reg); in psp_get_capability()
243 psp->io_regs = sp->io_map; in psp_dev_init()
251 iowrite32(0, psp->io_regs + psp->vdata->inten_reg); in psp_dev_init()
252 iowrite32(-1, psp->io_regs + psp->vdata->intsts_reg); in psp_dev_init()
270 iowrite32(-1, psp->io_regs + psp->vdata->inten_reg); in psp_dev_init()
H A Dccp-dev-v3.c101 cr_addr = ccp->io_regs + CMD_REQ0 + CMD_REQ_INCR; in ccp_do_cmd()
111 iowrite32(cr0, ccp->io_regs + CMD_REQ0); in ccp_do_cmd()
127 iowrite32(cmd, ccp->io_regs + DEL_CMD_Q_JOB); in ccp_do_cmd()
137 iowrite32(cmd, ccp->io_regs + DEL_CMD_Q_JOB); in ccp_do_cmd()
316 iowrite32(0x00, ccp->io_regs + IRQ_MASK_REG); in ccp_disable_queue_interrupts()
321 iowrite32(ccp->qim, ccp->io_regs + IRQ_MASK_REG); in ccp_enable_queue_interrupts()
331 status = ioread32(ccp->io_regs + IRQ_STATUS_REG); in ccp_irq_bh()
349 iowrite32(q_int, ccp->io_regs + IRQ_STATUS_REG); in ccp_irq_bh()
380 qmr = ioread32(ccp->io_regs + Q_MASK_REG); in ccp_init()
412 cmd_q->reg_status = ccp->io_regs + CMD_Q_STATUS_BASE + in ccp_init()
[all …]
H A Dplatform-access.c75 cmd = psp->io_regs + pa_dev->vdata->cmdresp_reg; in psp_send_platform_access_msg()
76 lo = psp->io_regs + pa_dev->vdata->cmdbuff_addr_lo_reg; in psp_send_platform_access_msg()
77 hi = psp->io_regs + pa_dev->vdata->cmdbuff_addr_hi_reg; in psp_send_platform_access_msg()
159 button = psp->io_regs + pa_dev->vdata->doorbell_button_reg; in psp_ring_platform_doorbell()
160 cmd = psp->io_regs + pa_dev->vdata->doorbell_cmd_reg; in psp_ring_platform_doorbell()
H A Dccp-dev-v5.c791 qmr = ioread32(ccp->io_regs + Q_MASK_REG); in ccp5_init()
844 cmd_q->reg_control = ccp->io_regs + in ccp5_init()
902 status_lo = ioread32(ccp->io_regs + LSB_PRIVATE_MASK_LO_OFFSET); in ccp5_init()
903 status_hi = ioread32(ccp->io_regs + LSB_PRIVATE_MASK_HI_OFFSET); in ccp5_init()
904 iowrite32(status_lo, ccp->io_regs + LSB_PUBLIC_MASK_LO_OFFSET); in ccp5_init()
905 iowrite32(status_hi, ccp->io_regs + LSB_PUBLIC_MASK_HI_OFFSET); in ccp5_init()
1068 iowrite32(0x0, ccp->io_regs + CMD5_REQID_CONFIG_OFFSET); in ccp5_config()
1078 iowrite32(0x00012D57, ccp->io_regs + CMD5_TRNG_CTL_OFFSET); in ccp5other_config()
1079 iowrite32(0x00000003, ccp->io_regs + CMD5_CONFIG_0_OFFSET); in ccp5other_config()
1081 rnd = ioread32(ccp->io_regs + TRNG_OUT_REG); in ccp5other_config()
[all …]
H A Dtee-dev.c178 tee->io_regs = psp->io_regs; in tee_dev_init()
232 rptr = ioread32(tee->io_regs + tee->vdata->ring_rptr_reg); in tee_submit_cmd()
283 iowrite32(tee->rb_mgr.wptr, tee->io_regs + tee->vdata->ring_wptr_reg); in tee_submit_cmd()
H A Dsev-dev.h41 void __iomem *io_regs; member
H A Dtee-dev.h56 void __iomem *io_regs; member
H A Dsp-pci.c49 unsigned int val = ioread32(psp->io_regs + _offset); \
80 val = ioread32(psp->io_regs + psp->vdata->bootloader_info_reg); in psp_firmware_is_visible()
84 val = ioread32(psp->io_regs + psp->vdata->tee->info_reg); in psp_firmware_is_visible()
H A Dpsp-dev.h61 void __iomem *io_regs; member
H A Dsev-dev.c135 reg = ioread32(sev->io_regs + sev->vdata->cmdresp_reg); in sev_irq_handler()
157 *reg = ioread32(sev->io_regs + sev->vdata->cmdresp_reg); in sev_wait_cmd_ioc()
171 *reg = ioread32(sev->io_regs + sev->vdata->cmdresp_reg); in sev_wait_cmd_ioc()
908 iowrite32(phys_lsb, sev->io_regs + sev->vdata->cmdbuff_addr_lo_reg); in __sev_do_cmd_locked()
909 iowrite32(phys_msb, sev->io_regs + sev->vdata->cmdbuff_addr_hi_reg); in __sev_do_cmd_locked()
925 iowrite32(reg, sev->io_regs + sev->vdata->cmdresp_reg); in __sev_do_cmd_locked()
953 cmdbuff_hi = ioread32(sev->io_regs + sev->vdata->cmdbuff_addr_hi_reg); in __sev_do_cmd_locked()
954 cmdbuff_lo = ioread32(sev->io_regs + sev->vdata->cmdbuff_addr_lo_reg); in __sev_do_cmd_locked()
2262 sev->io_regs = psp->io_regs; in sev_dev_init()
H A Dccp-dev.c515 trng_value = ioread32(ccp->io_regs + TRNG_OUT_REG); in ccp_trng_read()
633 ccp->io_regs = sp->io_map + ccp->vdata->offset; in ccp_dev_init()
H A Dccp-debugfs.c63 regval = ioread32(ccp->io_regs + CMD5_PSP_CCP_VERSION); in ccp5_debugfs_info_read()
H A Dccp-dev.h365 void __iomem *io_regs; member
/linux/drivers/dma/ptdma/
H A Dptdma-dev.c195 iowrite32(CMD_CONFIG_VHB_EN, pt->io_regs + CMD_CONFIG_OFFSET); in pt_core_init()
196 iowrite32(CMD_QUEUE_PRIO, pt->io_regs + CMD_QUEUE_PRIO_OFFSET); in pt_core_init()
197 iowrite32(CMD_TIMEOUT_DISABLE, pt->io_regs + CMD_TIMEOUT_OFFSET); in pt_core_init()
198 iowrite32(CMD_CLK_GATE_CONFIG, pt->io_regs + CMD_CLK_GATE_CTL_OFFSET); in pt_core_init()
199 iowrite32(CMD_CONFIG_REQID, pt->io_regs + CMD_REQID_CONFIG_OFFSET); in pt_core_init()
219 cmd_q->reg_control = pt->io_regs + CMD_Q_STATUS_INCR; in pt_core_init()
H A Dptdma-pci.c166 pt->io_regs = iomap_table[pt->dev_vdata->bar]; in pt_pci_probe()
167 if (!pt->io_regs) { in pt_pci_probe()
H A Dptdma-debugfs.c32 regval = ioread32(pt->io_regs + CMD_PT_VERSION); in pt_debugfs_info_show()
H A Dptdma.h241 void __iomem *io_regs; member
/linux/drivers/mtd/nand/raw/
H A Dpl35x-nand-controller.c139 void __iomem *io_regs; member
351 buf32[i] = readl(nfc->io_regs + data_phase_addr); in pl35x_nand_read_data_op()
356 buf8[i] = readb(nfc->io_regs + PL35X_SMC_DATA_PHASE); in pl35x_nand_read_data_op()
383 writel(buf32[i], nfc->io_regs + data_phase_addr); in pl35x_nand_write_data_op()
388 writeb(buf8[i], nfc->io_regs + PL35X_SMC_DATA_PHASE); in pl35x_nand_write_data_op()
534 writel(addr1, nfc->io_regs + cmd_addr); in pl35x_nand_write_page_hwecc()
536 writel(addr2, nfc->io_regs + cmd_addr); in pl35x_nand_write_page_hwecc()
626 writel(addr1, nfc->io_regs + cmd_addr); in pl35x_nand_read_page_hwecc()
628 writel(addr2, nfc->io_regs + cmd_addr); in pl35x_nand_read_page_hwecc()
722 writel(addr1, nfc->io_regs + cmd_addr); in pl35x_nand_exec_op()
[all …]
/linux/drivers/platform/mellanox/
H A Dmlxreg-lc.c83 struct platform_device *io_regs; member
757 mlxreg_lc->io_regs = in mlxreg_lc_config_init()
760 if (IS_ERR(mlxreg_lc->io_regs)) { in mlxreg_lc_config_init()
764 err = PTR_ERR(mlxreg_lc->io_regs); in mlxreg_lc_config_init()
788 if (mlxreg_lc->io_regs) in mlxreg_lc_config_init()
789 platform_device_unregister(mlxreg_lc->io_regs); in mlxreg_lc_config_init()
803 if (mlxreg_lc->io_regs) in mlxreg_lc_config_exit()
804 platform_device_unregister(mlxreg_lc->io_regs); in mlxreg_lc_config_exit()
H A Dnvsw-sn2201.c145 struct platform_device *io_regs; member
989 nvsw_sn2201->io_regs = in nvsw_sn2201_config_init()
993 if (IS_ERR(nvsw_sn2201->io_regs)) { in nvsw_sn2201_config_init()
994 err = PTR_ERR(nvsw_sn2201->io_regs); in nvsw_sn2201_config_init()
1049 if (nvsw_sn2201->io_regs) in nvsw_sn2201_config_init()
1050 platform_device_unregister(nvsw_sn2201->io_regs); in nvsw_sn2201_config_init()
1068 if (nvsw_sn2201->io_regs) in nvsw_sn2201_config_exit()
1069 platform_device_unregister(nvsw_sn2201->io_regs); in nvsw_sn2201_config_exit()
/linux/tools/power/x86/intel-speed-select/
H A Disst-core-mbox.c78 struct isst_if_io_regs io_regs; in _send_mmio_command() local
90 io_regs.req_count = 1; in _send_mmio_command()
91 io_regs.io_reg[0].logical_cpu = cpu; in _send_mmio_command()
92 io_regs.io_reg[0].reg = reg; in _send_mmio_command()
95 io_regs.io_reg[0].read_write = 1; in _send_mmio_command()
96 io_regs.io_reg[0].value = *value; in _send_mmio_command()
98 io_regs.io_reg[0].read_write = 0; in _send_mmio_command()
101 if (ioctl(fd, cmd, &io_regs) == -1) { in _send_mmio_command()
111 *value = io_regs.io_reg[0].value; in _send_mmio_command()