/kernel/linux/linux-5.10/drivers/rtc/ |
D | rtc-rx8025.c | 106 int ctrl2; in rx8025_check_validity() local 108 ctrl2 = rx8025_read_reg(client, RX8025_REG_CTRL2); in rx8025_check_validity() 109 if (ctrl2 < 0) in rx8025_check_validity() 110 return ctrl2; in rx8025_check_validity() 112 if (ctrl2 & RX8025_BIT_CTRL2_VDET) in rx8025_check_validity() 115 if (ctrl2 & RX8025_BIT_CTRL2_PON) { in rx8025_check_validity() 120 if (!(ctrl2 & RX8025_BIT_CTRL2_XST)) { in rx8025_check_validity() 130 int ctrl2 = rx8025_read_reg(client, RX8025_REG_CTRL2); in rx8025_reset_validity() local 132 if (ctrl2 < 0) in rx8025_reset_validity() 133 return ctrl2; in rx8025_reset_validity() [all …]
|
D | rtc-rc5t619.c | 123 unsigned int ctrl2; in rc5t619_rtc_read_time() local 125 err = regmap_read(rtc->rn5t618->regmap, RN5T618_RTC_CTRL2, &ctrl2); in rc5t619_rtc_read_time() 129 if (ctrl2 & CTRL2_PON) in rc5t619_rtc_read_time() 169 unsigned int ctrl2; in rc5t619_rtc_set_time() local 171 err = regmap_read(rtc->rn5t618->regmap, RN5T618_RTC_CTRL2, &ctrl2); in rc5t619_rtc_set_time() 175 if (ctrl2 & CTRL2_PON) in rc5t619_rtc_set_time() 355 unsigned int ctrl2; in rc5t619_rtc_probe() local 374 err = regmap_read(rtc->rn5t618->regmap, RN5T618_RTC_CTRL2, &ctrl2); in rc5t619_rtc_probe() 383 if (ctrl2 & CTRL2_PON) { in rc5t619_rtc_probe()
|
D | rtc-rs5c372.c | 214 unsigned char ctrl2 = rs5c->regs[RS5C_REG_CTRL2]; in rs5c372_rtc_read_time() local 222 if ((rs5c->type == rtc_r2025sd && !(ctrl2 & R2x2x_CTRL2_XSTP)) || in rs5c372_rtc_read_time() 223 (rs5c->type == rtc_r2221tl && (ctrl2 & R2x2x_CTRL2_XSTP))) { in rs5c372_rtc_read_time() 229 if (ctrl2 & RS5C_CTRL2_XSTP) { in rs5c372_rtc_read_time() 262 unsigned char ctrl2; in rs5c372_rtc_set_time() local 287 ctrl2 = i2c_smbus_read_byte_data(client, addr); in rs5c372_rtc_set_time() 293 ctrl2 &= ~(R2x2x_CTRL2_VDET | R2x2x_CTRL2_PON); in rs5c372_rtc_set_time() 295 ctrl2 |= R2x2x_CTRL2_XSTP; in rs5c372_rtc_set_time() 297 ctrl2 &= ~R2x2x_CTRL2_XSTP; in rs5c372_rtc_set_time() 300 ctrl2 &= ~RS5C_CTRL2_XSTP; in rs5c372_rtc_set_time() [all …]
|
D | rtc-pcf2127.c | 370 unsigned int ctrl2; in pcf2127_rtc_read_alarm() local 373 ret = regmap_read(pcf2127->regmap, PCF2127_REG_CTRL2, &ctrl2); in pcf2127_rtc_read_alarm() 386 alrm->enabled = ctrl2 & PCF2127_BIT_CTRL2_AIE; in pcf2127_rtc_read_alarm() 387 alrm->pending = ctrl2 & PCF2127_BIT_CTRL2_AF; in pcf2127_rtc_read_alarm() 443 unsigned int ctrl2 = 0; in pcf2127_rtc_irq() local 446 ret = regmap_read(pcf2127->regmap, PCF2127_REG_CTRL2, &ctrl2); in pcf2127_rtc_irq() 450 if (!(ctrl2 & PCF2127_BIT_CTRL2_AF)) in pcf2127_rtc_irq() 454 ctrl2 & ~(PCF2127_BIT_CTRL2_AF | PCF2127_BIT_CTRL2_WDTF)); in pcf2127_rtc_irq()
|
/kernel/linux/linux-5.10/drivers/staging/comedi/drivers/ |
D | me_daq.c | 140 unsigned short ctrl2; /* Mirror of CONTROL_2 register */ member 169 devpriv->ctrl2 |= ME_CTRL2_PORT_A_ENA; in me_dio_insn_config() 171 devpriv->ctrl2 &= ~ME_CTRL2_PORT_A_ENA; in me_dio_insn_config() 173 devpriv->ctrl2 |= ME_CTRL2_PORT_B_ENA; in me_dio_insn_config() 175 devpriv->ctrl2 &= ~ME_CTRL2_PORT_B_ENA; in me_dio_insn_config() 177 writew(devpriv->ctrl2, dev->mmio + ME_CTRL2_REG); in me_dio_insn_config() 251 devpriv->ctrl2 &= ~(ME_CTRL2_ADFIFO_ENA | ME_CTRL2_CHANLIST_ENA); in me_ai_insn_read() 252 writew(devpriv->ctrl2, dev->mmio + ME_CTRL2_REG); in me_ai_insn_read() 257 devpriv->ctrl2 |= (ME_CTRL2_ADFIFO_ENA | ME_CTRL2_CHANLIST_ENA); in me_ai_insn_read() 258 writew(devpriv->ctrl2, dev->mmio + ME_CTRL2_REG); in me_ai_insn_read() [all …]
|
/kernel/linux/linux-5.10/drivers/net/phy/ |
D | phy-c45.c | 17 int ctrl1, ctrl2, ret; in genphy_c45_pma_setup_forced() local 27 ctrl2 = phy_read_mmd(phydev, MDIO_MMD_PMAPMD, MDIO_CTRL2); in genphy_c45_pma_setup_forced() 28 if (ctrl2 < 0) in genphy_c45_pma_setup_forced() 29 return ctrl2; in genphy_c45_pma_setup_forced() 36 ctrl2 &= ~(MDIO_PMA_CTRL2_TYPE | 0x30); in genphy_c45_pma_setup_forced() 40 ctrl2 |= MDIO_PMA_CTRL2_10BT; in genphy_c45_pma_setup_forced() 44 ctrl2 |= MDIO_PMA_CTRL2_100BTX; in genphy_c45_pma_setup_forced() 49 ctrl2 |= MDIO_PMA_CTRL2_1000BT; in genphy_c45_pma_setup_forced() 54 ctrl2 |= MDIO_PMA_CTRL2_2_5GBT; in genphy_c45_pma_setup_forced() 59 ctrl2 |= MDIO_PMA_CTRL2_5GBT; in genphy_c45_pma_setup_forced() [all …]
|
D | dp83822.c | 314 int ctrl2; in dp83822_read_status() local 322 ctrl2 = phy_read(phydev, MII_DP83822_CTRL_2); in dp83822_read_status() 323 if (ctrl2 < 0) in dp83822_read_status() 324 return ctrl2; in dp83822_read_status() 326 if (!(ctrl2 & DP83822_FX_ENABLE)) { in dp83822_read_status() 328 DP83822_FX_ENABLE | ctrl2); in dp83822_read_status()
|
/kernel/linux/linux-5.10/sound/soc/codecs/ |
D | ssm2518.c | 408 unsigned int ctrl1 = 0, ctrl2 = 0; in ssm2518_set_dai_fmt() local 424 ctrl2 |= SSM2518_SAI_CTRL2_BCLK_INVERT; in ssm2518_set_dai_fmt() 431 ctrl2 |= SSM2518_SAI_CTRL2_BCLK_INVERT; in ssm2518_set_dai_fmt() 453 ctrl2 |= SSM2518_SAI_CTRL2_LRCLK_PULSE; in ssm2518_set_dai_fmt() 458 ctrl2 |= SSM2518_SAI_CTRL2_LRCLK_PULSE; in ssm2518_set_dai_fmt() 467 ctrl2 |= SSM2518_SAI_CTRL2_LRCLK_INVERT; in ssm2518_set_dai_fmt() 473 return regmap_write(ssm2518->regmap, SSM2518_REG_SAI_CTRL2, ctrl2); in ssm2518_set_dai_fmt() 527 unsigned int ctrl1, ctrl2; in ssm2518_set_tdm_slot() local 561 ctrl2 = SSM2518_SAI_CTRL2_SLOT_WIDTH_16; in ssm2518_set_tdm_slot() 564 ctrl2 = SSM2518_SAI_CTRL2_SLOT_WIDTH_24; in ssm2518_set_tdm_slot() [all …]
|
D | ak4613.c | 374 u8 fmt_ctrl, ctrl2; in ak4613_dai_hw_params() local 381 ctrl2 = DFS_NORMAL_SPEED; in ak4613_dai_hw_params() 386 ctrl2 = DFS_DOUBLE_SPEED; in ak4613_dai_hw_params() 390 ctrl2 = DFS_QUAD_SPEED; in ak4613_dai_hw_params() 434 snd_soc_component_update_bits(component, CTRL2, DFS_MASK, ctrl2); in ak4613_dai_hw_params()
|
/kernel/linux/linux-5.10/drivers/pci/ |
D | vc.c | 106 u32 ctrl, header, cap1, ctrl2; in pci_vc_enable() local 139 pci_read_config_dword(dev->bus->self, ctrl_pos2, &ctrl2); in pci_vc_enable() 140 if ((ctrl2 & PCI_VC_RES_CTRL_ID) == id) { in pci_vc_enable() 150 if (ctrl2 & PCI_VC_RES_CTRL_ENABLE) { in pci_vc_enable() 151 ctrl2 &= ~PCI_VC_RES_CTRL_ENABLE; in pci_vc_enable() 152 pci_write_config_dword(link, ctrl_pos2, ctrl2); in pci_vc_enable() 156 ctrl2 |= PCI_VC_RES_CTRL_ENABLE; in pci_vc_enable() 157 pci_write_config_dword(link, ctrl_pos2, ctrl2); in pci_vc_enable()
|
/kernel/linux/linux-5.10/drivers/media/platform/vsp1/ |
D | vsp1_sru.c | 41 u32 ctrl2; member 56 .ctrl2 = VI6_SRU_CTRL2_PARAMS(24, 40, 255), 59 .ctrl2 = VI6_SRU_CTRL2_PARAMS(8, 16, 255), 62 .ctrl2 = VI6_SRU_CTRL2_PARAMS(36, 60, 255), 65 .ctrl2 = VI6_SRU_CTRL2_PARAMS(12, 27, 255), 68 .ctrl2 = VI6_SRU_CTRL2_PARAMS(48, 80, 255), 71 .ctrl2 = VI6_SRU_CTRL2_PARAMS(16, 36, 255), 301 vsp1_sru_write(sru, dlb, VI6_SRU_CTRL2, param->ctrl2); in sru_configure_stream()
|
/kernel/linux/linux-5.10/drivers/crypto/bcm/ |
D | spu2.c | 445 static void spu2_dump_fmd_ctrl2(u64 ctrl2) in spu2_dump_fmd_ctrl2() argument 447 packet_log(" FMD CTRL2 %#16llx\n", ctrl2); in spu2_dump_fmd_ctrl2() 450 ctrl2 & SPU2_AAD1_OFFSET, in spu2_dump_fmd_ctrl2() 451 (ctrl2 & SPU2_AAD1_LEN) >> SPU2_AAD1_LEN_SHIFT); in spu2_dump_fmd_ctrl2() 453 (ctrl2 & SPU2_AAD2_OFFSET) >> SPU2_AAD2_OFFSET_SHIFT); in spu2_dump_fmd_ctrl2() 455 (ctrl2 & SPU2_PL_OFFSET) >> SPU2_PL_OFFSET_SHIFT); in spu2_dump_fmd_ctrl2() 472 spu2_dump_fmd_ctrl2(le64_to_cpu(fmd->ctrl2)); in spu2_dump_fmd() 560 u64 ctrl2; in spu2_fmd_init() local 581 ctrl2 = aad1_offset | in spu2_fmd_init() 590 fmd->ctrl2 = cpu_to_le64(ctrl2); in spu2_fmd_init() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/bridge/analogix/ |
D | analogix-i2c-dptx.c | 105 u8 ctrl2 = SP_AUX_EN; in anx_dp_aux_transfer() local 115 ctrl2 |= SP_ADDR_ONLY; in anx_dp_aux_transfer() 139 SP_ADDR_ONLY | SP_AUX_EN, ctrl2); in anx_dp_aux_transfer()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/aspeed/ |
D | aspeed_gfx_crtc.c | 60 u32 ctrl2 = readl(priv->base + CRT_CTRL2); in aspeed_gfx_enable_controller() local 66 writel(ctrl2 | CRT_CTRL_DAC_EN, priv->base + CRT_CTRL2); in aspeed_gfx_enable_controller() 72 u32 ctrl2 = readl(priv->base + CRT_CTRL2); in aspeed_gfx_disable_controller() local 75 writel(ctrl2 & ~CRT_CTRL_DAC_EN, priv->base + CRT_CTRL2); in aspeed_gfx_disable_controller()
|
/kernel/linux/linux-5.10/drivers/leds/ |
D | leds-is31fl319x.c | 119 u8 ctrl1 = 0, ctrl2 = 0; in is31fl319x_brightness_set() local 150 ctrl2 |= on << (i - 6); /* 6..8 => bit 0..2 */ in is31fl319x_brightness_set() 153 if (ctrl1 > 0 || ctrl2 > 0) { in is31fl319x_brightness_set() 155 ctrl1, ctrl2); in is31fl319x_brightness_set() 157 regmap_write(is31->regmap, IS31FL319X_CTRL2, ctrl2); in is31fl319x_brightness_set()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/hw_atl/ |
D | hw_atl_utils_fw2x.c | 418 u32 ctrl2, orig_ctrl2; in aq_fw2x_send_fw_request() local 432 ctrl2 = aq_hw_read_reg(self, HW_ATL_FW2X_MPI_CONTROL2_ADDR); in aq_fw2x_send_fw_request() 433 orig_ctrl2 = ctrl2 & BIT(CAPS_HI_FW_REQUEST); in aq_fw2x_send_fw_request() 434 ctrl2 = ctrl2 ^ BIT(CAPS_HI_FW_REQUEST); in aq_fw2x_send_fw_request() 435 aq_hw_write_reg(self, HW_ATL_FW2X_MPI_CONTROL2_ADDR, ctrl2); in aq_fw2x_send_fw_request()
|
/kernel/linux/linux-5.10/drivers/extcon/ |
D | extcon-max14577.c | 197 u8 ctrl1, ctrl2 = 0; in max14577_muic_set_path() local 223 ctrl2 |= CTRL2_CPEN_MASK; /* LowPwr=0, CPEn=1 */ in max14577_muic_set_path() 225 ctrl2 |= CTRL2_LOWPWR_MASK; /* LowPwr=1, CPEn=0 */ in max14577_muic_set_path() 229 CTRL2_LOWPWR_MASK | CTRL2_CPEN_MASK, ctrl2); in max14577_muic_set_path() 237 ctrl1, ctrl2, attached ? "attached" : "detached"); in max14577_muic_set_path()
|
D | extcon-max8997.c | 198 u8 ctrl1, ctrl2 = 0; in max8997_muic_set_path() local 213 ctrl2 |= CONTROL2_CPEN_MASK; /* LowPwr=0, CPEn=1 */ in max8997_muic_set_path() 215 ctrl2 |= CONTROL2_LOWPWR_MASK; /* LowPwr=1, CPEn=0 */ in max8997_muic_set_path() 218 MAX8997_MUIC_REG_CONTROL2, ctrl2, in max8997_muic_set_path() 227 ctrl1, ctrl2, attached ? "attached" : "detached"); in max8997_muic_set_path()
|
D | extcon-max77843.c | 204 unsigned int ctrl1, ctrl2; in max77843_muic_set_path() local 226 ctrl2 = MAX77843_MUIC_CONTROL2_CPEN_MASK; in max77843_muic_set_path() 228 ctrl2 = MAX77843_MUIC_CONTROL2_LOWPWR_MASK; in max77843_muic_set_path() 233 MAX77843_MUIC_CONTROL2_CPEN_MASK, ctrl2); in max77843_muic_set_path() 241 ctrl1, ctrl2, attached ? "attached" : "detached"); in max77843_muic_set_path()
|
D | extcon-max77693.c | 260 unsigned int ctrl1, ctrl2 = 0; in max77693_muic_set_path() local 275 ctrl2 |= MAX77693_CONTROL2_CPEN_MASK; /* LowPwr=0, CPEn=1 */ in max77693_muic_set_path() 277 ctrl2 |= MAX77693_CONTROL2_LOWPWR_MASK; /* LowPwr=1, CPEn=0 */ in max77693_muic_set_path() 282 ctrl2); in max77693_muic_set_path() 290 ctrl1, ctrl2, attached ? "attached" : "detached"); in max77693_muic_set_path()
|
/kernel/linux/linux-5.10/drivers/mmc/host/ |
D | sdhci-pci-gli.c | 155 u16 ctrl2; in gli_set_9750() local 214 ctrl2 = sdhci_readw(host, SDHCI_HOST_CONTROL2); in gli_set_9750() 215 ctrl2 &= ~SDHCI_CTRL_TUNED_CLK; in gli_set_9750() 216 sdhci_writew(host, ctrl2, SDHCI_HOST_CONTROL2); in gli_set_9750() 234 ctrl2 = sdhci_readw(host, SDHCI_HOST_CONTROL2); in gli_set_9750() 235 ctrl2 &= ~SDHCI_CTRL_TUNED_CLK; in gli_set_9750() 236 sdhci_writew(host, ctrl2, SDHCI_HOST_CONTROL2); in gli_set_9750()
|
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
D | dma.c | 202 __le32 ctrl2; /* buffer count and address extension */ member 303 return parity32(dd->addrlow ^ dd->addrhigh ^ dd->ctrl1 ^ dd->ctrl2); in dma64_dd_parity() 718 u32 ctrl2 = bufcount & D64_CTRL2_BC_MASK; in dma64_dd_upd() local 725 ddring[outidx].ctrl2 = cpu_to_le32(ctrl2); in dma64_dd_upd() 733 ctrl2 |= (ae << D64_CTRL2_AE_SHIFT) & D64_CTRL2_AE; in dma64_dd_upd() 737 ddring[outidx].ctrl2 = cpu_to_le32(ctrl2); in dma64_dd_upd() 741 ddring[outidx].ctrl2 = in dma64_dd_upd() 742 cpu_to_le32(ctrl2 | D64_CTRL2_PARITY); in dma64_dd_upd() 1518 (le32_to_cpu(di->txd64[i].ctrl2) & in dma_getnexttxp()
|
/kernel/linux/linux-5.10/drivers/pci/controller/dwc/ |
D | pcie-designware.c | 512 u32 cap, ctrl2, link_speed; in dw_pcie_link_set_max_speed() local 516 ctrl2 = dw_pcie_readl_dbi(pci, offset + PCI_EXP_LNKCTL2); in dw_pcie_link_set_max_speed() 517 ctrl2 &= ~PCI_EXP_LNKCTL2_TLS; in dw_pcie_link_set_max_speed() 535 ctrl2 &= ~PCI_EXP_LNKCTL2_HASD; in dw_pcie_link_set_max_speed() 539 dw_pcie_writel_dbi(pci, offset + PCI_EXP_LNKCTL2, ctrl2 | link_speed); in dw_pcie_link_set_max_speed()
|
/kernel/linux/linux-5.10/drivers/tty/serial/ |
D | mxs-auart.c | 975 u32 bm, ctrl, ctrl2, div; in mxs_auart_settermios() local 981 ctrl2 = mxs_read(s, REG_CTRL2); in mxs_auart_settermios() 1039 ctrl2 |= AUART_CTRL2_RXE; in mxs_auart_settermios() 1041 ctrl2 &= ~AUART_CTRL2_RXE; in mxs_auart_settermios() 1048 ctrl2 &= ~(AUART_CTRL2_CTSEN | AUART_CTRL2_RTSEN); in mxs_auart_settermios() 1060 ctrl2 |= AUART_CTRL2_TXDMAE | AUART_CTRL2_RXDMAE in mxs_auart_settermios() 1065 ctrl2 |= AUART_CTRL2_RTSEN; in mxs_auart_settermios() 1067 ctrl2 |= AUART_CTRL2_CTSEN; in mxs_auart_settermios() 1088 mxs_write(ctrl2, s, REG_CTRL2); in mxs_auart_settermios()
|
/kernel/linux/linux-5.10/drivers/net/can/ |
D | flexcan.c | 270 u32 ctrl2; /* MX6, VF610 - Not affected by Soft Reset */ member 1259 reg_ctrl2 = priv->read(®s->ctrl2); in flexcan_set_bittiming_cbt() 1265 priv->write(reg_ctrl2, ®s->ctrl2); in flexcan_set_bittiming_cbt() 1294 priv->read(®s->ctrl2), priv->read(®s->fdctrl), in flexcan_set_bittiming_cbt() 1338 reg_ctrl2 = priv->read(®s->ctrl2); in flexcan_ram_init() 1340 priv->write(reg_ctrl2, ®s->ctrl2); in flexcan_ram_init() 1352 priv->write(reg_ctrl2, ®s->ctrl2); in flexcan_ram_init() 1473 reg_ctrl2 = priv->read(®s->ctrl2); in flexcan_chip_start() 1475 priv->write(reg_ctrl2, ®s->ctrl2); in flexcan_chip_start() 1554 reg_ctrl2 = priv->read(®s->ctrl2); in flexcan_chip_start() [all …]
|