/linux/drivers/crypto/ccp/ |
H A D | psp-dev.c | 55 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 D | ccp-dev-v3.c | 101 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 D | platform-access.c | 75 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 D | ccp-dev-v5.c | 791 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 D | tee-dev.c | 178 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 D | sev-dev.h | 41 void __iomem *io_regs; member
|
H A D | tee-dev.h | 56 void __iomem *io_regs; member
|
H A D | sp-pci.c | 49 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 D | psp-dev.h | 61 void __iomem *io_regs; member
|
H A D | sev-dev.c | 135 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 D | ccp-dev.c | 515 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 D | ccp-debugfs.c | 63 regval = ioread32(ccp->io_regs + CMD5_PSP_CCP_VERSION); in ccp5_debugfs_info_read()
|
H A D | ccp-dev.h | 365 void __iomem *io_regs; member
|
/linux/drivers/dma/ptdma/ |
H A D | ptdma-dev.c | 195 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 D | ptdma-pci.c | 166 pt->io_regs = iomap_table[pt->dev_vdata->bar]; in pt_pci_probe() 167 if (!pt->io_regs) { in pt_pci_probe()
|
H A D | ptdma-debugfs.c | 32 regval = ioread32(pt->io_regs + CMD_PT_VERSION); in pt_debugfs_info_show()
|
H A D | ptdma.h | 241 void __iomem *io_regs; member
|
/linux/drivers/mtd/nand/raw/ |
H A D | pl35x-nand-controller.c | 139 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 D | mlxreg-lc.c | 83 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 D | nvsw-sn2201.c | 145 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 D | isst-core-mbox.c | 78 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()
|