/linux/tools/testing/selftests/kvm/x86_64/ |
H A D | ucna_injection_test.c | 79 uint64_t ctl2; in ucna_injection_guest_code() local 85 ctl2 = rdmsr(MSR_IA32_MCx_CTL2(UCNA_BANK)); in ucna_injection_guest_code() 86 wrmsr(MSR_IA32_MCx_CTL2(UCNA_BANK), ctl2 | MCI_CTL2_CMCI_EN); in ucna_injection_guest_code() 97 ctl2 = rdmsr(MSR_IA32_MCx_CTL2(UCNA_BANK)); in ucna_injection_guest_code() 98 wrmsr(MSR_IA32_MCx_CTL2(UCNA_BANK), ctl2 & ~MCI_CTL2_CMCI_EN); in ucna_injection_guest_code() 109 uint64_t ctl2 = rdmsr(MSR_IA32_MCx_CTL2(UCNA_BANK)); in cmci_disabled_guest_code() local 110 wrmsr(MSR_IA32_MCx_CTL2(UCNA_BANK), ctl2 | MCI_CTL2_CMCI_EN); in cmci_disabled_guest_code() 117 uint64_t ctl2 = rdmsr(MSR_IA32_MCx_CTL2(UCNA_BANK)); in cmci_enabled_guest_code() local 118 wrmsr(MSR_IA32_MCx_CTL2(UCNA_BANK), ctl2 | MCI_CTL2_RESERVED_BIT); in cmci_enabled_guest_code()
|
/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_backlight.c | 604 u32 ctl, ctl2, freq; in i965_enable_backlight() local 607 if (ctl2 & BLM_PWM_ENABLE) { in i965_enable_backlight() 610 ctl2 &= ~BLM_PWM_ENABLE; in i965_enable_backlight() 621 ctl2 = BLM_PIPE(pipe); in i965_enable_backlight() 625 ctl2 |= BLM_POLARITY_I965; in i965_enable_backlight() 640 u32 ctl, ctl2; in vlv_enable_backlight() local 646 ctl2 &= ~BLM_PWM_ENABLE; in vlv_enable_backlight() 656 ctl2 = 0; in vlv_enable_backlight() 658 ctl2 |= BLM_POLARITY_I965; in vlv_enable_backlight() 1348 u32 ctl, ctl2; in i965_setup_backlight() local [all …]
|
H A D | dvo_tfp410.c | 207 u8 ctl2; in tfp410_detect() local 209 if (tfp410_readb(dvo, TFP410_CTL_2, &ctl2)) { in tfp410_detect() 210 if (ctl2 & TFP410_CTL_2_RSEN) in tfp410_detect()
|
H A D | intel_ddi.c | 597 u32 ctl2 = 0; in intel_ddi_enable_transcoder_func() local 603 ctl2 |= PORT_SYNC_MODE_ENABLE | in intel_ddi_enable_transcoder_func() 609 ctl2); in intel_ddi_enable_transcoder_func() 3768 u32 ctl2 = intel_de_read(dev_priv, in bdw_transcoder_master_readout() local 3771 if ((ctl2 & PORT_SYNC_MODE_ENABLE) == 0) in bdw_transcoder_master_readout() 3774 master_select = REG_FIELD_GET(PORT_SYNC_MODE_MASTER_SELECT_MASK, ctl2); in bdw_transcoder_master_readout()
|
/linux/drivers/mtd/nand/raw/ |
H A D | cafe_nand.c | 66 uint32_t ctl2; member 174 cafe_writel(cafe, cafe->ctl2 | 0x100 | command, NAND_CTRL2); in cafe_nand_cmdfunc() 176 cafe->ctl2 &= ~(1<<30); in cafe_nand_cmdfunc() 243 cafe_writel(cafe, cafe->ctl2 | 0x100 | NAND_CMD_RNDOUTSTART, NAND_CTRL2); in cafe_nand_cmdfunc() 245 cafe_writel(cafe, cafe->ctl2 | 0x100 | NAND_CMD_READSTART, NAND_CTRL2); in cafe_nand_cmdfunc() 298 WARN_ON(cafe->ctl2 & (1<<30)); in cafe_nand_cmdfunc() 310 cafe_writel(cafe, cafe->ctl2, NAND_CTRL2); in cafe_nand_cmdfunc() 314 cafe_writel(cafe, cafe->ctl2, NAND_CTRL2); in cafe_nand_cmdfunc() 544 cafe->ctl2 |= (1<<30); in cafe_nand_write_page_lowlevel() 612 cafe->ctl2 = BIT(27); /* Reed-Solomon ECC */ in cafe_nand_attach_chip() [all …]
|
/linux/drivers/hwmon/ |
H A D | lm93.c | 1752 u8 ctl2, ctl4; in pwm_show() local 1755 ctl2 = data->block9[nr][LM93_PWM_CTL2]; in pwm_show() 1771 u8 ctl2, ctl4; in pwm_store() local 1782 ctl2 = (ctl2 & 0x0f) | LM93_PWM_TO_REG(val, (ctl4 & 0x07) ? in pwm_store() 1801 u8 ctl2; in pwm_enable_show() local 1804 ctl2 = data->block9[nr][LM93_PWM_CTL2]; in pwm_enable_show() 1805 if (ctl2 & 0x01) /* manual override enabled ? */ in pwm_enable_show() 1806 rc = ((ctl2 & 0xF0) == 0xF0) ? 0 : 1; in pwm_enable_show() 1819 u8 ctl2; in pwm_enable_store() local 1835 ctl2 |= 0x01; /* enable manual override */ in pwm_enable_store() [all …]
|
/linux/drivers/video/fbdev/ |
H A D | arcfb.c | 394 unsigned char ctl2; in arcfb_ioctl() local 396 ctl2 = ks108_readb_ctl2(info->par); in arcfb_ioctl() 397 if (copy_to_user(argp, &ctl2, sizeof(ctl2))) in arcfb_ioctl()
|
/linux/drivers/rtc/ |
H A D | rtc-rzn1.c | 274 u32 subu = 0, ctl2; in rzn1_rtc_set_offset() local 308 ret = readl_poll_timeout(rtc->base + RZN1_RTC_CTL2, ctl2, in rzn1_rtc_set_offset() 309 !(ctl2 & RZN1_RTC_CTL2_WUST), 100, 2000000); in rzn1_rtc_set_offset()
|
/linux/drivers/net/ |
H A D | sungem_phy.c | 795 u16 ctl, ctl2; in marvell_setup_forced() local 825 ctl2 = sungem_phy_read(phy, MII_M1011_PHY_SPEC_CONTROL); in marvell_setup_forced() 826 ctl2 &= ~(MII_M1011_PHY_SPEC_CONTROL_MANUAL_MDIX | in marvell_setup_forced() 831 ctl2 |= (fd == DUPLEX_FULL) ? in marvell_setup_forced() 834 sungem_phy_write(phy, MII_1000BASETCONTROL, ctl2); in marvell_setup_forced()
|
/linux/drivers/pci/pcie/ |
H A D | aspm.c | 621 u32 ctl1 = 0, ctl2 = 0; in aspm_calc_l12_info() local 638 ctl2 |= FIELD_PREP(PCI_L1SS_CTL2_T_PWR_ON_SCALE, scale1) | in aspm_calc_l12_info() 642 ctl2 |= FIELD_PREP(PCI_L1SS_CTL2_T_PWR_ON_SCALE, scale2) | in aspm_calc_l12_info() 670 ctl2 == pctl2 && ctl2 == cctl2) in aspm_calc_l12_info() 687 pci_write_config_dword(parent, parent->l1ss + PCI_L1SS_CTL2, ctl2); in aspm_calc_l12_info() 688 pci_write_config_dword(child, child->l1ss + PCI_L1SS_CTL2, ctl2); in aspm_calc_l12_info()
|
/linux/drivers/net/ethernet/aquantia/atlantic/hw_atl/ |
H A D | hw_atl_a0.c | 455 txd->ctl2 = 0; in hw_atl_a0_hw_ring_tx_xmit() 465 txd->ctl2 |= (buff->mss << 16) | in hw_atl_a0_hw_ring_tx_xmit() 484 txd->ctl2 |= HW_ATL_A0_TXD_CTL2_LEN & (pkt_len << 14); in hw_atl_a0_hw_ring_tx_xmit() 488 txd->ctl2 |= HW_ATL_A0_TXD_CTL2_CTX_EN; in hw_atl_a0_hw_ring_tx_xmit()
|
H A D | hw_atl_b0.c | 679 txd->ctl2 = 0; in hw_atl_b0_hw_ring_tx_xmit() 690 txd->ctl2 |= (buff->mss << 16); in hw_atl_b0_hw_ring_tx_xmit() 698 txd->ctl2 |= (buff->len_l4 << 8) | in hw_atl_b0_hw_ring_tx_xmit() 715 txd->ctl2 |= HW_ATL_B0_TXD_CTL2_LEN & (pkt_len << 14); in hw_atl_b0_hw_ring_tx_xmit() 719 txd->ctl2 |= HW_ATL_B0_TXD_CTL2_CTX_EN; in hw_atl_b0_hw_ring_tx_xmit()
|
H A D | hw_atl_utils.h | 21 u32 ctl2; /* 63..46 - payload length, 45 - ctx enable, 44 - ctx index */ member
|
/linux/drivers/net/wireless/mediatek/mt76/ |
H A D | mt76x02_mac.h | 145 u8 ctl2; member
|
H A D | mt76x02_mac.c | 395 txwi->ctl2 = FIELD_PREP(MT_TX_PWR_ADJ, txpwr_adj); in mt76x02_mac_write_txwi()
|
/linux/drivers/net/wireless/ath/ath9k/ |
H A D | mac.h | 283 u32 ctl2; member 321 #define ds_ctl2 u.tx.ctl2
|
/linux/drivers/infiniband/hw/bnxt_re/ |
H A D | qplib_res.c | 949 u16 ctl2; in bnxt_qplib_determine_atomics() local 959 pcie_capability_read_word(dev, PCI_EXP_DEVCTL2, &ctl2); in bnxt_qplib_determine_atomics() 960 return !(ctl2 & PCI_EXP_DEVCTL2_ATOMIC_REQ); in bnxt_qplib_determine_atomics()
|
/linux/drivers/net/ethernet/marvell/octeontx2/af/ |
H A D | rvu_cpt.c | 957 u64 ctl, ctl2; in rvu_mbox_handler_cpt_lf_reset() local 970 ctl2 = rvu_read64(rvu, blkaddr, CPT_AF_LFX_CTL2(cptlf)); in rvu_mbox_handler_cpt_lf_reset() 978 rvu_write64(rvu, blkaddr, CPT_AF_LFX_CTL2(cptlf), ctl2); in rvu_mbox_handler_cpt_lf_reset()
|
/linux/Documentation/devicetree/bindings/arm/tegra/ |
H A D | nvidia,tegra186-pmc.yaml | 117 hdmi-dp0, hdmi-dp1, pex-cntrl, pex-ctl2, pex-l0-rst,
|
/linux/drivers/pci/ |
H A D | pci.c | 3839 u32 cap, ctl2; in pci_enable_atomic_ops_to_root() local 3891 &ctl2); in pci_enable_atomic_ops_to_root() 3892 if (ctl2 & PCI_EXP_DEVCTL2_ATOMIC_EGRESS_BLOCK) in pci_enable_atomic_ops_to_root()
|