Home
last modified time | relevance | path

Searched full:ctl2 (Results 1 – 25 of 55) sorted by relevance

123

/kernel/linux/linux-4.19/drivers/gpu/drm/i915/
Dintel_panel.c943 u32 ctl, ctl2, freq; in i965_enable_backlight() local
945 ctl2 = I915_READ(BLC_PWM_CTL2); in i965_enable_backlight()
946 if (ctl2 & BLM_PWM_ENABLE) { in i965_enable_backlight()
948 ctl2 &= ~BLM_PWM_ENABLE; in i965_enable_backlight()
949 I915_WRITE(BLC_PWM_CTL2, ctl2); in i965_enable_backlight()
959 ctl2 = BLM_PIPE(pipe); in i965_enable_backlight()
961 ctl2 |= BLM_COMBINATION_MODE; in i965_enable_backlight()
963 ctl2 |= BLM_POLARITY_I965; in i965_enable_backlight()
964 I915_WRITE(BLC_PWM_CTL2, ctl2); in i965_enable_backlight()
966 I915_WRITE(BLC_PWM_CTL2, ctl2 | BLM_PWM_ENABLE); in i965_enable_backlight()
[all …]
Ddvo_tfp410.c206 u8 ctl2; in tfp410_detect() local
208 if (tfp410_readb(dvo, TFP410_CTL_2, &ctl2)) { in tfp410_detect()
209 if (ctl2 & TFP410_CTL_2_RSEN) in tfp410_detect()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/
Dintel_panel.c1022 u32 ctl, ctl2, freq; in i965_enable_backlight() local
1024 ctl2 = intel_de_read(dev_priv, BLC_PWM_CTL2); in i965_enable_backlight()
1025 if (ctl2 & BLM_PWM_ENABLE) { in i965_enable_backlight()
1027 ctl2 &= ~BLM_PWM_ENABLE; in i965_enable_backlight()
1028 intel_de_write(dev_priv, BLC_PWM_CTL2, ctl2); in i965_enable_backlight()
1038 ctl2 = BLM_PIPE(pipe); in i965_enable_backlight()
1040 ctl2 |= BLM_COMBINATION_MODE; in i965_enable_backlight()
1042 ctl2 |= BLM_POLARITY_I965; in i965_enable_backlight()
1043 intel_de_write(dev_priv, BLC_PWM_CTL2, ctl2); in i965_enable_backlight()
1045 intel_de_write(dev_priv, BLC_PWM_CTL2, ctl2 | BLM_PWM_ENABLE); in i965_enable_backlight()
[all …]
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()
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/
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()
248 cafe_dev_dbg(&cafe->pdev->dev, "dlen %x, ctl1 %x, ctl2 %x\n", 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()
[all …]
/kernel/linux/linux-4.19/drivers/mtd/nand/raw/
Dcafe_nand.c65 uint32_t ctl2; member
177 cafe_writel(cafe, cafe->ctl2 | 0x100 | command, NAND_CTRL2); in cafe_nand_cmdfunc()
179 cafe->ctl2 &= ~(1<<30); in cafe_nand_cmdfunc()
246 cafe_writel(cafe, cafe->ctl2 | 0x100 | NAND_CMD_RNDOUTSTART, NAND_CTRL2); in cafe_nand_cmdfunc()
248 cafe_writel(cafe, cafe->ctl2 | 0x100 | NAND_CMD_READSTART, NAND_CTRL2); in cafe_nand_cmdfunc()
251 cafe_dev_dbg(&cafe->pdev->dev, "dlen %x, ctl1 %x, ctl2 %x\n", in cafe_nand_cmdfunc()
301 WARN_ON(cafe->ctl2 & (1<<30)); in cafe_nand_cmdfunc()
313 cafe_writel(cafe, cafe->ctl2, NAND_CTRL2); in cafe_nand_cmdfunc()
317 cafe_writel(cafe, cafe->ctl2, NAND_CTRL2); in cafe_nand_cmdfunc()
545 cafe->ctl2 |= (1<<30); in cafe_nand_write_page_lowlevel()
[all …]
/kernel/linux/linux-5.10/drivers/rtc/
Drtc-rs5c348.c79 txbuf[0] = RS5C348_CMD_R(RS5C348_REG_CTL2); /* cmd, ctl2 */ in rs5c348_rtc_set_time()
81 txbuf[2] = RS5C348_CMD_R(RS5C348_REG_CTL2); /* cmd, ctl2 */ in rs5c348_rtc_set_time()
124 txbuf[0] = RS5C348_CMD_R(RS5C348_REG_CTL2); /* cmd, ctl2 */ in rs5c348_rtc_read_time()
126 txbuf[2] = RS5C348_CMD_R(RS5C348_REG_CTL2); /* cmd, ctl2 */ in rs5c348_rtc_read_time()
/kernel/linux/linux-4.19/drivers/rtc/
Drtc-rs5c348.c71 txbuf[0] = RS5C348_CMD_R(RS5C348_REG_CTL2); /* cmd, ctl2 */ in rs5c348_rtc_set_time()
73 txbuf[2] = RS5C348_CMD_R(RS5C348_REG_CTL2); /* cmd, ctl2 */ in rs5c348_rtc_set_time()
106 txbuf[0] = RS5C348_CMD_R(RS5C348_REG_CTL2); /* cmd, ctl2 */ in rs5c348_rtc_read_time()
108 txbuf[2] = RS5C348_CMD_R(RS5C348_REG_CTL2); /* cmd, ctl2 */ in rs5c348_rtc_read_time()
/kernel/linux/linux-5.10/drivers/hwmon/
Dlm93.c291 * The two PWM CTL2 registers can read something other than what was
1752 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()
[all …]
/kernel/linux/linux-4.19/drivers/hwmon/
Dlm93.c304 * The two PWM CTL2 registers can read something other than what was
1866 u8 ctl2, ctl4; in show_pwm() local
1869 ctl2 = data->block9[nr][LM93_PWM_CTL2]; in show_pwm()
1871 if (ctl2 & 0x01) /* show user commanded value if enabled */ in show_pwm()
1874 rc = LM93_PWM_FROM_REG(ctl2 >> 4, (ctl4 & 0x07) ? in show_pwm()
1885 u8 ctl2, ctl4; in store_pwm() local
1894 ctl2 = lm93_read_byte(client, LM93_REG_PWM_CTL(nr, LM93_PWM_CTL2)); in store_pwm()
1896 ctl2 = (ctl2 & 0x0f) | LM93_PWM_TO_REG(val, (ctl4 & 0x07) ? in store_pwm()
1899 data->pwm_override[nr] = LM93_PWM_FROM_REG(ctl2 >> 4, in store_pwm()
1902 lm93_write_byte(client, LM93_REG_PWM_CTL(nr, LM93_PWM_CTL2), ctl2); in store_pwm()
[all …]
/kernel/linux/linux-4.19/drivers/video/fbdev/
Darcfb.c424 unsigned char ctl2; in arcfb_ioctl() local
426 ctl2 = ks108_readb_ctl2(info->par); in arcfb_ioctl()
427 if (copy_to_user(argp, &ctl2, sizeof(ctl2))) in arcfb_ioctl()
/kernel/linux/linux-5.10/drivers/video/fbdev/
Darcfb.c426 unsigned char ctl2; in arcfb_ioctl() local
428 ctl2 = ks108_readb_ctl2(info->par); in arcfb_ioctl()
429 if (copy_to_user(argp, &ctl2, sizeof(ctl2))) in arcfb_ioctl()
/kernel/linux/linux-5.10/drivers/pci/pcie/
Daspm.c458 u32 ctl1 = 0, ctl2 = 0; in aspm_calc_l1ss_info() local
478 ctl2 |= scale1 | (val1 << 3); in aspm_calc_l1ss_info()
481 ctl2 |= scale2 | (val2 << 3); in aspm_calc_l1ss_info()
505 ctl2 == pctl2 && ctl2 == cctl2) in aspm_calc_l1ss_info()
520 pci_write_config_dword(parent, parent->l1ss + PCI_L1SS_CTL2, ctl2); in aspm_calc_l1ss_info()
521 pci_write_config_dword(child, child->l1ss + PCI_L1SS_CTL2, ctl2); in aspm_calc_l1ss_info()
/kernel/linux/linux-4.19/drivers/pci/pcie/
Daspm.c86 u32 ctl2; /* value to be programmed in ctl2 */ member
511 link->l1ss.ctl1 = link->l1ss.ctl2 = 0; in aspm_calc_l1ss_info()
529 link->l1ss.ctl2 |= scale1 | (val1 << 3); in aspm_calc_l1ss_info()
532 link->l1ss.ctl2 |= scale2 | (val2 << 3); in aspm_calc_l1ss_info()
713 link->l1ss.ctl2); in pcie_config_aspm_l1ss()
715 link->l1ss.ctl2); in pcie_config_aspm_l1ss()
/kernel/linux/linux-5.10/drivers/net/
Dsungem_phy.c798 u16 ctl, ctl2; in marvell_setup_forced() local
828 ctl2 = sungem_phy_read(phy, MII_M1011_PHY_SPEC_CONTROL); in marvell_setup_forced()
829 ctl2 &= ~(MII_M1011_PHY_SPEC_CONTROL_MANUAL_MDIX | in marvell_setup_forced()
834 ctl2 |= (fd == DUPLEX_FULL) ? in marvell_setup_forced()
837 sungem_phy_write(phy, MII_1000BASETCONTROL, ctl2); in marvell_setup_forced()
/kernel/linux/linux-4.19/drivers/net/
Dsungem_phy.c797 u16 ctl, ctl2; in marvell_setup_forced() local
827 ctl2 = sungem_phy_read(phy, MII_M1011_PHY_SPEC_CONTROL); in marvell_setup_forced()
828 ctl2 &= ~(MII_M1011_PHY_SPEC_CONTROL_MANUAL_MDIX | in marvell_setup_forced()
833 ctl2 |= (fd == DUPLEX_FULL) ? in marvell_setup_forced()
836 sungem_phy_write(phy, MII_1000BASETCONTROL, ctl2); in marvell_setup_forced()
/kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/hw_atl/
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()
/kernel/linux/linux-4.19/drivers/net/ethernet/aquantia/atlantic/hw_atl/
Dhw_atl_a0.c443 txd->ctl2 = 0; in hw_atl_a0_hw_ring_tx_xmit()
453 txd->ctl2 |= (buff->mss << 16) | in hw_atl_a0_hw_ring_tx_xmit()
472 txd->ctl2 |= HW_ATL_A0_TXD_CTL2_LEN & (pkt_len << 14); in hw_atl_a0_hw_ring_tx_xmit()
476 txd->ctl2 |= HW_ATL_A0_TXD_CTL2_CTX_EN; in hw_atl_a0_hw_ring_tx_xmit()
Dhw_atl_b0.c481 txd->ctl2 = 0; in hw_atl_b0_hw_ring_tx_xmit()
491 txd->ctl2 |= (buff->mss << 16) | in hw_atl_b0_hw_ring_tx_xmit()
510 txd->ctl2 |= HW_ATL_B0_TXD_CTL2_LEN & (pkt_len << 14); in hw_atl_b0_hw_ring_tx_xmit()
514 txd->ctl2 |= HW_ATL_B0_TXD_CTL2_CTX_EN; in hw_atl_b0_hw_ring_tx_xmit()
/kernel/linux/linux-4.19/drivers/dma/
Dpch_dma.c196 val = dma_readl(pd, CTL2); in pdc_enable_irq()
203 dma_writel(pd, CTL2, val); in pdc_enable_irq()
755 pd->regs.dma_ctl2 = dma_readl(pd, CTL2); in pch_dma_save_regs()
778 dma_writel(pd, CTL2, pd->regs.dma_ctl2); in pch_dma_restore_regs()
/kernel/linux/linux-5.10/drivers/dma/
Dpch_dma.c188 val = dma_readl(pd, CTL2); in pdc_enable_irq()
195 dma_writel(pd, CTL2, val); in pdc_enable_irq()
746 pd->regs.dma_ctl2 = dma_readl(pd, CTL2); in pch_dma_save_regs()
769 dma_writel(pd, CTL2, pd->regs.dma_ctl2); in pch_dma_restore_regs()
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/display/panel/
Dlvds.yaml90 CTL2: Data Enable
/kernel/liteos_m/targets/riscv_nuclei_gd32vf103_soc_gcc/SoC/gd32vf103/Common/Include/
Dgd32vf103_usart.h136 #define USART_CTL2_REG_OFFSET (0x00000014U) /*!< CTL2 register offse…
166 /* interrupt flags in CTL2 register */
184 /* interrupt in CTL2 register */
/kernel/linux/linux-4.19/Documentation/devicetree/bindings/display/panel/
Dpanel-lvds.txt88 CTL2: Data Enable
/kernel/linux/linux-4.19/drivers/net/wireless/mediatek/mt76/mt76x0/
Dmac.h105 u8 ctl2; member

123