Home
last modified time | relevance | path

Searched refs:ctl2 (Results 1 – 23 of 23) sorted by relevance

/openbmc/u-boot/drivers/rtc/
H A Drx8025.c81 uchar sec, min, hour, mday, wday, mon, year, ctl2; in rtc_get() local
100 ctl2 = rtc_read(RTC_CTL2_REG_ADDR); in rtc_get()
101 if (ctl2 & RTC_CTL2_BIT_PON) { in rtc_get()
106 if (ctl2 & RTC_CTL2_BIT_VDET) { in rtc_get()
111 if (!(ctl2 & RTC_CTL2_BIT_XST)) { in rtc_get()
168 uchar ctl2; in rtc_reset() local
173 ctl2 = rtc_read(RTC_CTL2_REG_ADDR); in rtc_reset()
174 ctl2 &= ~(RTC_CTL2_BIT_PON | RTC_CTL2_BIT_VDET); in rtc_reset()
175 ctl2 |= RTC_CTL2_BIT_XST | RTC_CTL2_BIT_VDSL; in rtc_reset()
176 rtc_write (RTC_CTL2_REG_ADDR, ctl2); in rtc_reset()
/openbmc/linux/tools/testing/selftests/kvm/x86_64/
H A Ducna_injection_test.c82 uint64_t ctl2; in ucna_injection_guest_code() local
88 ctl2 = rdmsr(MSR_IA32_MCx_CTL2(UCNA_BANK)); in ucna_injection_guest_code()
89 wrmsr(MSR_IA32_MCx_CTL2(UCNA_BANK), ctl2 | MCI_CTL2_CMCI_EN); in ucna_injection_guest_code()
100 ctl2 = rdmsr(MSR_IA32_MCx_CTL2(UCNA_BANK)); in ucna_injection_guest_code()
101 wrmsr(MSR_IA32_MCx_CTL2(UCNA_BANK), ctl2 & ~MCI_CTL2_CMCI_EN); in ucna_injection_guest_code()
112 uint64_t ctl2 = rdmsr(MSR_IA32_MCx_CTL2(UCNA_BANK)); in cmci_disabled_guest_code() local
113 wrmsr(MSR_IA32_MCx_CTL2(UCNA_BANK), ctl2 | MCI_CTL2_CMCI_EN); in cmci_disabled_guest_code()
120 uint64_t ctl2 = rdmsr(MSR_IA32_MCx_CTL2(UCNA_BANK)); in cmci_enabled_guest_code() local
121 wrmsr(MSR_IA32_MCx_CTL2(UCNA_BANK), ctl2 | MCI_CTL2_RESERVED_BIT); in cmci_enabled_guest_code()
/openbmc/linux/drivers/gpu/drm/i915/display/
H A Dintel_backlight.c603 u32 ctl, ctl2, freq; in i965_enable_backlight() local
605 ctl2 = intel_de_read(i915, BLC_PWM_CTL2); in i965_enable_backlight()
606 if (ctl2 & BLM_PWM_ENABLE) { in i965_enable_backlight()
609 ctl2 &= ~BLM_PWM_ENABLE; in i965_enable_backlight()
610 intel_de_write(i915, BLC_PWM_CTL2, ctl2); in i965_enable_backlight()
620 ctl2 = BLM_PIPE(pipe); in i965_enable_backlight()
622 ctl2 |= BLM_COMBINATION_MODE; in i965_enable_backlight()
624 ctl2 |= BLM_POLARITY_I965; in i965_enable_backlight()
625 intel_de_write(i915, BLC_PWM_CTL2, ctl2); in i965_enable_backlight()
627 intel_de_write(i915, BLC_PWM_CTL2, ctl2 | BLM_PWM_ENABLE); in i965_enable_backlight()
[all …]
H A Ddvo_tfp410.c207 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 Dintel_ddi.c592 u32 ctl2 = 0; in intel_ddi_enable_transcoder_func() local
598 ctl2 |= PORT_SYNC_MODE_ENABLE | in intel_ddi_enable_transcoder_func()
603 TRANS_DDI_FUNC_CTL2(cpu_transcoder), ctl2); in intel_ddi_enable_transcoder_func()
3599 u32 ctl2 = intel_de_read(dev_priv, TRANS_DDI_FUNC_CTL2(cpu_transcoder)); in bdw_transcoder_master_readout() local
3601 if ((ctl2 & PORT_SYNC_MODE_ENABLE) == 0) in bdw_transcoder_master_readout()
3604 master_select = REG_FIELD_GET(PORT_SYNC_MODE_MASTER_SELECT_MASK, ctl2); in bdw_transcoder_master_readout()
/openbmc/linux/drivers/mtd/nand/raw/
H A Dcafe_nand.c66 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 …]
/openbmc/qemu/tests/qtest/
H A Dnpcm7xx_smbus-test.c197 uint8_t ctl2 = qtest_readb(qts, base_addr + OFFSET_CTL2); in enable_bus() local
199 ctl2 |= CTL2_ENABLE; in enable_bus()
200 qtest_writeb(qts, base_addr + OFFSET_CTL2, ctl2); in enable_bus()
206 uint8_t ctl2 = qtest_readb(qts, base_addr + OFFSET_CTL2); in disable_bus() local
208 ctl2 &= ~CTL2_ENABLE; in disable_bus()
209 qtest_writeb(qts, base_addr + OFFSET_CTL2, ctl2); in disable_bus()
/openbmc/linux/drivers/hwmon/
H A Dlm93.c1752 u8 ctl2, ctl4; in pwm_show() local
1755 ctl2 = data->block9[nr][LM93_PWM_CTL2]; in pwm_show()
1757 if (ctl2 & 0x01) /* show user commanded value if enabled */ in pwm_show()
1760 rc = LM93_PWM_FROM_REG(ctl2 >> 4, (ctl4 & 0x07) ? in pwm_show()
1771 u8 ctl2, ctl4; in pwm_store() local
1780 ctl2 = lm93_read_byte(client, LM93_REG_PWM_CTL(nr, LM93_PWM_CTL2)); in pwm_store()
1782 ctl2 = (ctl2 & 0x0f) | LM93_PWM_TO_REG(val, (ctl4 & 0x07) ? in pwm_store()
1785 data->pwm_override[nr] = LM93_PWM_FROM_REG(ctl2 >> 4, in pwm_store()
1788 lm93_write_byte(client, LM93_REG_PWM_CTL(nr, LM93_PWM_CTL2), ctl2); in pwm_store()
1801 u8 ctl2; in pwm_enable_show() local
[all …]
/openbmc/linux/drivers/video/fbdev/
H A Darcfb.c427 unsigned char ctl2; in arcfb_ioctl() local
429 ctl2 = ks108_readb_ctl2(info->par); in arcfb_ioctl()
430 if (copy_to_user(argp, &ctl2, sizeof(ctl2))) in arcfb_ioctl()
/openbmc/qemu/include/hw/i2c/
H A Dnpcm7xx_smbus.h85 uint8_t ctl2; member
/openbmc/linux/drivers/pci/pcie/
H A Daspm.c444 u32 ctl1 = 0, ctl2 = 0; in aspm_calc_l12_info() local
461 ctl2 |= scale1 | (val1 << 3); in aspm_calc_l12_info()
464 ctl2 |= scale2 | (val2 << 3); in aspm_calc_l12_info()
489 ctl2 == pctl2 && ctl2 == cctl2) in aspm_calc_l12_info()
504 pci_write_config_dword(parent, parent->l1ss + PCI_L1SS_CTL2, ctl2); in aspm_calc_l12_info()
505 pci_write_config_dword(child, child->l1ss + PCI_L1SS_CTL2, ctl2); in aspm_calc_l12_info()
/openbmc/linux/drivers/rtc/
H A Drtc-rzn1.c274 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()
/openbmc/qemu/hw/i2c/
H A Dnpcm7xx_smbus.c164 #define NPCM7XX_SMBUS_ENABLED(s) ((s)->ctl2 & NPCM7XX_SMBCTL2_ENABLE)
571 s->ctl2 = value; in npcm7xx_smbus_write_ctl2()
685 value = s->ctl2; in npcm7xx_smbus_read()
1000 s->ctl2 = NPCM7XX_SMB_CTL2_INIT_VAL; in npcm7xx_smbus_enter_reset()
1056 VMSTATE_UINT8(ctl2, NPCM7xxSMBusState),
/openbmc/linux/drivers/net/
H A Dsungem_phy.c795 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()
/openbmc/linux/drivers/net/ethernet/aquantia/atlantic/hw_atl/
H A Dhw_atl_a0.c455 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 Dhw_atl_b0.c679 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 Dhw_atl_utils.h21 u32 ctl2; /* 63..46 - payload length, 45 - ctx enable, 44 - ctx index */ member
/openbmc/linux/drivers/net/wireless/mediatek/mt76/
H A Dmt76x02_mac.h145 u8 ctl2; member
H A Dmt76x02_mac.c395 txwi->ctl2 = FIELD_PREP(MT_TX_PWR_ADJ, txpwr_adj); in mt76x02_mac_write_txwi()
/openbmc/linux/drivers/net/wireless/ath/ath9k/
H A Dmac.h283 u32 ctl2; member
321 #define ds_ctl2 u.tx.ctl2
/openbmc/linux/drivers/infiniband/hw/bnxt_re/
H A Dqplib_res.c949 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()
/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/af/
H A Drvu_cpt.c892 u64 ctl, ctl2; in rvu_mbox_handler_cpt_lf_reset() local
905 ctl2 = rvu_read64(rvu, blkaddr, CPT_AF_LFX_CTL2(cptlf)); in rvu_mbox_handler_cpt_lf_reset()
913 rvu_write64(rvu, blkaddr, CPT_AF_LFX_CTL2(cptlf), ctl2); in rvu_mbox_handler_cpt_lf_reset()
/openbmc/linux/drivers/pci/
H A Dpci.c3888 u32 cap, ctl2; in pci_enable_atomic_ops_to_root() local
3940 &ctl2); in pci_enable_atomic_ops_to_root()
3941 if (ctl2 & PCI_EXP_DEVCTL2_ATOMIC_EGRESS_BLOCK) in pci_enable_atomic_ops_to_root()