/openbmc/qemu/hw/cxl/ |
H A D | cxl-component-utils.c | 378 uint8_t *wmask = pdev->wmask; in cxl_component_create_dvsec() local 398 wmask[offset + offsetof(CXLDVSECDevice, ctrl)] = 0xFD; in cxl_component_create_dvsec() 399 wmask[offset + offsetof(CXLDVSECDevice, ctrl) + 1] = 0x4F; in cxl_component_create_dvsec() 401 wmask[offset + offsetof(CXLDVSECDevice, ctrl2)] = 0x0F; in cxl_component_create_dvsec() 403 wmask[offset + offsetof(CXLDVSECDevice, lock)] = 0x01; in cxl_component_create_dvsec() 405 wmask[offset + offsetof(CXLDVSECDevice, range1_base_hi)] = 0xFF; in cxl_component_create_dvsec() 406 wmask[offset + offsetof(CXLDVSECDevice, range1_base_hi) + 1] = 0xFF; in cxl_component_create_dvsec() 407 wmask[offset + offsetof(CXLDVSECDevice, range1_base_hi) + 2] = 0xFF; in cxl_component_create_dvsec() 408 wmask[offset + offsetof(CXLDVSECDevice, range1_base_hi) + 3] = 0xFF; in cxl_component_create_dvsec() 409 wmask[offset + offsetof(CXLDVSECDevice, range1_base_lo) + 3] = 0xF0; in cxl_component_create_dvsec() [all …]
|
/openbmc/qemu/hw/pci/ |
H A D | pcie_sriov.c | 33 uint8_t *wmask; in pcie_sriov_pf_init() local 65 wmask = dev->wmask + offset; in pcie_sriov_pf_init() 66 pci_set_word(wmask + PCI_SRIOV_CTRL, in pcie_sriov_pf_init() 68 pci_set_word(wmask + PCI_SRIOV_NUM_VF, 0xffff); in pcie_sriov_pf_init() 69 pci_set_word(wmask + PCI_SRIOV_SYS_PGSIZE, 0x553); in pcie_sriov_pf_init() 85 uint64_t wmask; in pcie_sriov_pf_init_vf_bar() local 93 wmask = ~(size - 1); in pcie_sriov_pf_init_vf_bar() 99 pci_set_quad(dev->wmask + addr, wmask); in pcie_sriov_pf_init_vf_bar() 102 pci_set_long(dev->wmask + addr, wmask & 0xffffffff); in pcie_sriov_pf_init_vf_bar() 280 uint8_t *wmask = dev->wmask + dev->exp.sriov_cap; in pcie_sriov_pf_add_sup_pgsize() local [all …]
|
H A D | shpc.c | 454 uint8_t wmask = shpc->wmask[a]; in shpc_write() local 456 assert(!(wmask & w1cmask)); in shpc_write() 457 shpc->config[a] = (shpc->config[a] & ~wmask) | (val & wmask); in shpc_write() 516 pci_set_byte(d->wmask + config_offset + SHPC_CAP_DWORD_SELECT, 0xff); in shpc_cap_add_config() 517 pci_set_long(d->wmask + config_offset + SHPC_CAP_DWORD_DATA, 0xffffffff); in shpc_cap_add_config() 670 shpc->wmask = g_malloc0(SHPC_SIZEOF(d)); in shpc_init() 677 pci_set_byte(shpc->wmask + SHPC_CMD_CODE, 0xff); in shpc_init() 678 pci_set_byte(shpc->wmask + SHPC_CMD_TRGT, SHPC_CMD_TRGT_MAX); in shpc_init() 679 pci_set_byte(shpc->wmask + SHPC_CMD_TRGT, SHPC_CMD_TRGT_MAX); in shpc_init() 680 pci_set_long(shpc->wmask + SHPC_SERR_INT, in shpc_init() [all …]
|
H A D | pci.c | 415 pci_get_word(dev->wmask + PCI_COMMAND) | in pci_do_device_reset() 418 pci_get_word(dev->wmask + PCI_STATUS) | in pci_do_device_reset() 422 pci_get_word(dev->wmask + PCI_INTERRUPT_LINE) | in pci_do_device_reset() 662 s->cmask[i] & ~s->wmask[i] & ~s->w1cmask[i]) { in get_pci_config_device() 666 s->cmask[i], s->wmask[i], s->w1cmask[i]); in get_pci_config_device() 884 dev->wmask[PCI_CACHE_LINE_SIZE] = 0xff; in pci_init_wmask() 885 dev->wmask[PCI_INTERRUPT_LINE] = 0xff; in pci_init_wmask() 886 pci_set_word(dev->wmask + PCI_COMMAND, in pci_init_wmask() 889 pci_word_test_and_set_mask(dev->wmask + PCI_COMMAND, PCI_COMMAND_SERR); in pci_init_wmask() 891 memset(dev->wmask + PCI_CONFIG_HEADER_SIZE, 0xff, in pci_init_wmask() [all …]
|
H A D | pcie.c | 246 pci_set_word(dev->wmask + pos + PCI_EXP_DEVCTL2, PCI_EXP_DEVCTL2_EETLPPB); in pcie_cap_init() 250 pci_set_long(dev->wmask + PCI_CONFIG_SPACE_SIZE, 0); in pcie_cap_init() 366 pci_long_test_and_set_mask(dev->wmask + pos + PCI_EXP_DEVCTL, in pcie_cap_deverr_init() 385 pci_long_test_and_set_mask(dev->wmask + pos + PCI_EXP_LNKCTL, in pcie_cap_lnkctl_init() 700 pci_word_test_and_set_mask(dev->wmask + pos + PCI_EXP_SLTCTL, in pcie_cap_slot_init() 710 pci_word_test_and_set_mask(dev->wmask + pos + PCI_EXP_SLTCTL, in pcie_cap_slot_init() 722 pci_word_test_and_set_mask(dev->wmask + pos + PCI_EXP_SLTCTL, in pcie_cap_slot_init() 931 pci_set_word(dev->wmask + dev->exp.exp_cap + PCI_EXP_RTCTL, in pcie_cap_root_init() 952 pci_word_test_and_set_mask(dev->wmask + dev->exp.exp_cap + PCI_EXP_DEVCTL, in pcie_cap_flr_init() 976 pci_long_test_and_set_mask(dev->wmask + pos + PCI_EXP_DEVCTL2, in pcie_cap_arifwd_init() [all …]
|
H A D | msi.c | 237 pci_set_word(dev->wmask + msi_flags_off(dev), in msi_init() 239 pci_set_long(dev->wmask + msi_address_lo_off(dev), in msi_init() 242 pci_set_long(dev->wmask + msi_address_hi_off(dev), 0xffffffff); in msi_init() 244 pci_set_word(dev->wmask + msi_data_off(dev, msi64bit), 0xffff); in msi_init() 248 pci_set_long(dev->wmask + msi_mask_off(dev, msi64bit), in msi_init()
|
H A D | pcie_aer.c | 119 pci_set_long(dev->wmask + offset + PCI_ERR_UNCOR_MASK, in pcie_aer_init() 125 pci_set_long(dev->wmask + offset + PCI_ERR_UNCOR_SEVER, in pcie_aer_init() 133 pci_set_long(dev->wmask + offset + PCI_ERR_COR_MASK, in pcie_aer_init() 141 pci_set_long(dev->wmask + offset + PCI_ERR_CAP, in pcie_aer_init() 147 pci_set_long(dev->wmask + offset + PCI_ERR_CAP, in pcie_aer_init() 157 pci_word_test_and_set_mask(dev->wmask + PCI_BRIDGE_CONTROL, in pcie_aer_init() 748 pci_set_long(dev->wmask + pos + PCI_ERR_ROOT_COMMAND, in pcie_aer_root_init()
|
H A D | slotid_cap.c | 40 d->wmask[cap + PCI_SID_CHASSIS_NR] = 0xff; in slotid_cap_init()
|
/openbmc/linux/arch/x86/platform/intel-quark/ |
H A D | imr.c | 70 u32 wmask; member 95 imr->wmask == IMR_WRITE_ACCESS_ALL && in imr_is_enabled() 127 return iosf_mbi_read(QRK_MBI_UNIT_MM, MBI_REG_READ, reg++, &imr->wmask); in imr_read() 161 ret = iosf_mbi_write(QRK_MBI_UNIT_MM, MBI_REG_WRITE, reg++, imr->wmask); in imr_write() 221 &base, &end, size, imr.rmask, imr.wmask, in imr_dbgfs_state_show() 299 unsigned int rmask, unsigned int wmask) in imr_add_range() argument 327 imr.wmask = wmask; in imr_add_range() 364 reg, &base, &end, raw_size, rmask, wmask); in imr_add_range() 370 imr.wmask = wmask; in imr_add_range() 382 imr.wmask = IMR_WRITE_ACCESS_ALL; in imr_add_range() [all …]
|
/openbmc/qemu/hw/audio/ |
H A D | intel-hda.c | 212 uint32_t wmask; /* write mask */ member 638 .wmask = 0x0103, 645 .wmask = 0x7fff, 652 .wmask = 0x7fff, 662 .wmask = 0xc00000ff, 669 .wmask = 0xc00000ff, 686 .wmask = 0xffffff80, 692 .wmask = 0xffffffff, 698 .wmask = 0xff, 705 .wmask = 0x80ff, [all …]
|
/openbmc/linux/arch/powerpc/platforms/powernv/ |
H A D | smp.c | 166 unsigned long srr1, unexpected_mask, wmask; in pnv_cpu_offline_self() local 178 wmask = SRR1_WAKEMASK; in pnv_cpu_offline_self() 180 wmask = SRR1_WAKEMASK_P8; in pnv_cpu_offline_self() 242 if (((srr1 & wmask) == SRR1_WAKEEE) || in pnv_cpu_offline_self() 243 ((srr1 & wmask) == SRR1_WAKEHVI)) { in pnv_cpu_offline_self() 245 } else if ((srr1 & wmask) == SRR1_WAKEHDBELL) { in pnv_cpu_offline_self() 248 } else if ((srr1 & wmask) == SRR1_WAKERESET) { in pnv_cpu_offline_self()
|
/openbmc/qemu/hw/pci-bridge/ |
H A D | gen_pcie_root_port.c | 107 pci_word_test_and_clear_mask(d->wmask + PCI_COMMAND, in gen_rp_realize() 109 d->wmask[PCI_IO_BASE] = 0; in gen_rp_realize() 110 d->wmask[PCI_IO_LIMIT] = 0; in gen_rp_realize()
|
H A D | simba.c | 63 pci_set_word(dev->wmask + PCI_IO_BASE_UPPER16, 0xffff); in simba_pci_bridge_realize() 64 pci_set_word(dev->wmask + PCI_IO_LIMIT_UPPER16, 0xffff); in simba_pci_bridge_realize()
|
H A D | cxl_root_port.c | 171 pci_word_test_and_clear_mask(pci_dev->wmask + PCI_COMMAND, in cxl_rp_realize() 173 pci_dev->wmask[PCI_IO_BASE] = 0; in cxl_rp_realize() 174 pci_dev->wmask[PCI_IO_LIMIT] = 0; in cxl_rp_realize()
|
/openbmc/qemu/hw/pci-host/ |
H A D | q35.c | 352 pd->wmask[MCH_HOST_BRIDGE_SMRAM] = MCH_HOST_BRIDGE_SMRAM_WMASK_LCK; in mch_update_smram() 353 pd->wmask[MCH_HOST_BRIDGE_ESMRAMC] = MCH_HOST_BRIDGE_ESMRAMC_WMASK_LCK; in mch_update_smram() 436 pd->wmask[MCH_HOST_BRIDGE_F_SMBASE] = in mch_update_smbase_smram() 446 if (pd->wmask[MCH_HOST_BRIDGE_F_SMBASE] == 0xff) { in mch_update_smbase_smram() 453 pd->wmask[MCH_HOST_BRIDGE_F_SMBASE] &= in mch_update_smbase_smram() 554 d->wmask[MCH_HOST_BRIDGE_SMRAM] = MCH_HOST_BRIDGE_SMRAM_WMASK; in mch_reset() 555 d->wmask[MCH_HOST_BRIDGE_ESMRAMC] = MCH_HOST_BRIDGE_ESMRAMC_WMASK; in mch_reset() 563 d->wmask[MCH_HOST_BRIDGE_F_SMBASE] = 0xff; in mch_reset()
|
/openbmc/linux/arch/xtensa/kernel/ |
H A D | signal.c | 68 if (regs->wmask == 1) in flush_window_regs_user() 74 base = (XCHAL_NUM_AREGS / 4) - (regs->wmask >> 4); in flush_window_regs_user() 78 if ((regs->wmask & 2) == 0) in flush_window_regs_user() 119 regs->wmask = 1; in flush_window_regs_user() 199 regs->wmask = 1; in restore_sigcontext()
|
H A D | ptrace.c | 98 u32 rotws, wmask; in gpr_set() local 104 wmask = ((rotws ? WSBITS + 1 - ffs(rotws) : 0) << 4) | in gpr_set() 108 regs->wmask = wmask; in gpr_set()
|
H A D | process.c | 319 int len = childregs->wmask & ~0xf; in copy_thread() 326 childregs->wmask = 1; in copy_thread()
|
/openbmc/linux/arch/alpha/kernel/ |
H A D | core_t2.c | 88 unsigned long wmask; member 392 t2_saved_config.window[0].wmask = *(vulp)T2_WMASK1; in t2_save_configuration() 395 t2_saved_config.window[1].wmask = *(vulp)T2_WMASK2; in t2_save_configuration() 489 *(vulp)T2_WMASK1 = t2_saved_config.window[0].wmask; in t2_kill_arch() 492 *(vulp)T2_WMASK2 = t2_saved_config.window[1].wmask; in t2_kill_arch()
|
H A D | core_wildfire.c | 122 pci->pci_window[0].wmask.csr = (hose->sg_isa->size - 1) & 0xfff00000; in wildfire_init_hose() 126 pci->pci_window[1].wmask.csr = (0x40000000 -1) & 0xfff00000; in wildfire_init_hose() 130 pci->pci_window[2].wmask.csr = (0x40000000 -1) & 0xfff00000; in wildfire_init_hose() 134 pci->pci_window[3].wmask.csr = (hose->sg_pci->size - 1) & 0xfff00000; in wildfire_init_hose() 468 pci->pci_window[i].wmask.csr, in wildfire_dump_pci_regs()
|
/openbmc/qemu/hw/isa/ |
H A D | lpc_ich9.c | 533 uint16_t wmask; in ich9_lpc_pmcon_update() local 545 wmask = pci_get_word(lpc->d.wmask + ICH9_LPC_GEN_PMCON_1); in ich9_lpc_pmcon_update() 546 wmask &= ~ICH9_LPC_GEN_PMCON_1_SMI_LOCK; in ich9_lpc_pmcon_update() 547 pci_set_word(lpc->d.wmask + ICH9_LPC_GEN_PMCON_1, wmask); in ich9_lpc_pmcon_update() 728 pci_set_long(d->wmask + ICH9_LPC_PMBASE, in ich9_lpc_realize() 730 pci_set_byte(d->wmask + ICH9_LPC_PMBASE, in ich9_lpc_realize()
|
/openbmc/qemu/hw/ide/ |
H A D | cmd646.c | 266 dev->wmask[CFR] = 0x0; in pci_cmd646_ide_realize() 268 dev->wmask[ARTTIM23] = 0x0; in pci_cmd646_ide_realize() 270 dev->wmask[MRDMODE] = 0x0; in pci_cmd646_ide_realize()
|
/openbmc/linux/arch/x86/include/asm/ |
H A D | imr.h | 52 unsigned int rmask, unsigned int wmask);
|
/openbmc/qemu/linux-user/xtensa/ |
H A D | target_syscall.h | 22 xtensa_reg_t wmask; /* 28 */ member
|
/openbmc/linux/sound/soc/codecs/ |
H A D | cx2072x.c | 1152 #define CX2072X_DAPM_SUPPLY_S(wname, wsubseq, wreg, wshift, wmask, won_val, \ argument 1155 .num_kcontrols = 0, .reg = wreg, .shift = wshift, .mask = wmask, \ 1159 #define CX2072X_DAPM_SWITCH(wname, wreg, wshift, wmask, won_val, woff_val, \ argument 1162 .num_kcontrols = 0, .reg = wreg, .shift = wshift, .mask = wmask, \ 1166 #define CX2072X_DAPM_SWITCH(wname, wreg, wshift, wmask, won_val, woff_val, \ argument 1169 .num_kcontrols = 0, .reg = wreg, .shift = wshift, .mask = wmask, \ 1173 #define CX2072X_DAPM_REG_E(wid, wname, wreg, wshift, wmask, won_val, woff_val, \ argument 1176 .reg = wreg, .shift = wshift, .mask = wmask, \
|