Home
last modified time | relevance | path

Searched refs:ctrl2 (Results 1 – 25 of 41) sorted by relevance

12

/Linux-v5.15/drivers/rtc/
Drtc-rx8025.c112 static int rx8025_is_osc_stopped(enum rx_model model, int ctrl2) in rx8025_is_osc_stopped() argument
114 int xstp = ctrl2 & RX8025_BIT_CTRL2_XST; in rx8025_is_osc_stopped()
130 int ctrl2; in rx8025_check_validity() local
133 ctrl2 = rx8025_read_reg(client, RX8025_REG_CTRL2); in rx8025_check_validity()
134 if (ctrl2 < 0) in rx8025_check_validity()
135 return ctrl2; in rx8025_check_validity()
137 if (ctrl2 & RX8025_BIT_CTRL2_VDET) in rx8025_check_validity()
140 if (ctrl2 & RX8025_BIT_CTRL2_PON) { in rx8025_check_validity()
145 xstp = rx8025_is_osc_stopped(drvdata->model, ctrl2); in rx8025_check_validity()
157 int ctrl2 = rx8025_read_reg(client, RX8025_REG_CTRL2); in rx8025_reset_validity() local
[all …]
Drtc-rc5t619.c123 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()
Drtc-rs5c372.c214 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 …]
Drtc-pcf2127.c377 unsigned int buf[5], ctrl2; in pcf2127_rtc_read_alarm() local
380 ret = regmap_read(pcf2127->regmap, PCF2127_REG_CTRL2, &ctrl2); in pcf2127_rtc_read_alarm()
393 alrm->enabled = ctrl2 & PCF2127_BIT_CTRL2_AIE; in pcf2127_rtc_read_alarm()
394 alrm->pending = ctrl2 & PCF2127_BIT_CTRL2_AF; in pcf2127_rtc_read_alarm()
510 unsigned int ctrl1, ctrl2; in pcf2127_rtc_irq() local
517 ret = regmap_read(pcf2127->regmap, PCF2127_REG_CTRL2, &ctrl2); in pcf2127_rtc_irq()
521 if (!(ctrl1 & PCF2127_CTRL1_IRQ_MASK || ctrl2 & PCF2127_CTRL2_IRQ_MASK)) in pcf2127_rtc_irq()
524 if (ctrl1 & PCF2127_BIT_CTRL1_TSF1 || ctrl2 & PCF2127_BIT_CTRL2_TSF2) in pcf2127_rtc_irq()
531 if (ctrl2 & PCF2127_CTRL2_IRQ_MASK) in pcf2127_rtc_irq()
533 ctrl2 & ~PCF2127_CTRL2_IRQ_MASK); in pcf2127_rtc_irq()
[all …]
/Linux-v5.15/drivers/comedi/drivers/
Dme_daq.c140 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 …]
/Linux-v5.15/drivers/net/phy/
Dphy-c45.c60 int ctrl1, ctrl2, ret; in genphy_c45_pma_setup_forced() local
70 ctrl2 = phy_read_mmd(phydev, MDIO_MMD_PMAPMD, MDIO_CTRL2); in genphy_c45_pma_setup_forced()
71 if (ctrl2 < 0) in genphy_c45_pma_setup_forced()
72 return ctrl2; in genphy_c45_pma_setup_forced()
79 ctrl2 &= ~(MDIO_PMA_CTRL2_TYPE | 0x30); in genphy_c45_pma_setup_forced()
83 ctrl2 |= MDIO_PMA_CTRL2_10BT; in genphy_c45_pma_setup_forced()
87 ctrl2 |= MDIO_PMA_CTRL2_100BTX; in genphy_c45_pma_setup_forced()
92 ctrl2 |= MDIO_PMA_CTRL2_1000BT; in genphy_c45_pma_setup_forced()
97 ctrl2 |= MDIO_PMA_CTRL2_2_5GBT; in genphy_c45_pma_setup_forced()
102 ctrl2 |= MDIO_PMA_CTRL2_5GBT; in genphy_c45_pma_setup_forced()
[all …]
Ddp83822.c338 int ctrl2; in dp83822_read_status() local
346 ctrl2 = phy_read(phydev, MII_DP83822_CTRL_2); in dp83822_read_status()
347 if (ctrl2 < 0) in dp83822_read_status()
348 return ctrl2; in dp83822_read_status()
350 if (!(ctrl2 & DP83822_FX_ENABLE)) { in dp83822_read_status()
352 DP83822_FX_ENABLE | ctrl2); in dp83822_read_status()
Dicplus.c351 u16 ctrl = 0, ctrl2 = 0; in ip101a_g_config_mdix() local
361 ctrl2 = IP101A_G_FORCE_MDIX; in ip101a_g_config_mdix()
379 IP101A_G_FORCE_MDIX, ctrl2); in ip101a_g_config_mdix()
/Linux-v5.15/sound/soc/codecs/
Dssm2518.c408 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 …]
Dak4613.c374 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()
/Linux-v5.15/drivers/pci/
Dvc.c106 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()
/Linux-v5.15/drivers/media/platform/vsp1/
Dvsp1_sru.c41 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),
303 vsp1_sru_write(sru, dlb, VI6_SRU_CTRL2, param->ctrl2); in sru_configure_stream()
/Linux-v5.15/drivers/crypto/bcm/
Dspu2.c445 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()
561 u64 ctrl2; in spu2_fmd_init() local
582 ctrl2 = aad1_offset | in spu2_fmd_init()
591 fmd->ctrl2 = cpu_to_le64(ctrl2); in spu2_fmd_init()
[all …]
/Linux-v5.15/drivers/gpu/drm/bridge/analogix/
Danalogix-i2c-dptx.c105 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()
/Linux-v5.15/drivers/gpu/drm/aspeed/
Daspeed_gfx_crtc.c60 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()
/Linux-v5.15/drivers/leds/
Dleds-is31fl319x.c119 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()
/Linux-v5.15/drivers/net/ethernet/aquantia/atlantic/hw_atl/
Dhw_atl_utils_fw2x.c421 u32 ctrl2, orig_ctrl2; in aq_fw2x_send_fw_request() local
435 ctrl2 = aq_hw_read_reg(self, HW_ATL_FW2X_MPI_CONTROL2_ADDR); in aq_fw2x_send_fw_request()
436 orig_ctrl2 = ctrl2 & BIT(CAPS_HI_FW_REQUEST); in aq_fw2x_send_fw_request()
437 ctrl2 = ctrl2 ^ BIT(CAPS_HI_FW_REQUEST); in aq_fw2x_send_fw_request()
438 aq_hw_write_reg(self, HW_ATL_FW2X_MPI_CONTROL2_ADDR, ctrl2); in aq_fw2x_send_fw_request()
/Linux-v5.15/drivers/extcon/
Dextcon-max14577.c198 u8 ctrl1, ctrl2 = 0; in max14577_muic_set_path() local
224 ctrl2 |= CTRL2_CPEN_MASK; /* LowPwr=0, CPEn=1 */ in max14577_muic_set_path()
226 ctrl2 |= CTRL2_LOWPWR_MASK; /* LowPwr=1, CPEn=0 */ in max14577_muic_set_path()
230 CTRL2_LOWPWR_MASK | CTRL2_CPEN_MASK, ctrl2); in max14577_muic_set_path()
238 ctrl1, ctrl2, attached ? "attached" : "detached"); in max14577_muic_set_path()
Dextcon-max8997.c201 u8 ctrl1, ctrl2 = 0; in max8997_muic_set_path() local
216 ctrl2 |= CONTROL2_CPEN_MASK; /* LowPwr=0, CPEn=1 */ in max8997_muic_set_path()
218 ctrl2 |= CONTROL2_LOWPWR_MASK; /* LowPwr=1, CPEn=0 */ in max8997_muic_set_path()
221 MAX8997_MUIC_REG_CONTROL2, ctrl2, in max8997_muic_set_path()
230 ctrl1, ctrl2, attached ? "attached" : "detached"); in max8997_muic_set_path()
Dextcon-max77843.c204 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()
Dextcon-max77693.c261 unsigned int ctrl1, ctrl2 = 0; in max77693_muic_set_path() local
276 ctrl2 |= MAX77693_CONTROL2_CPEN_MASK; /* LowPwr=0, CPEn=1 */ in max77693_muic_set_path()
278 ctrl2 |= MAX77693_CONTROL2_LOWPWR_MASK; /* LowPwr=1, CPEn=0 */ in max77693_muic_set_path()
283 ctrl2); in max77693_muic_set_path()
291 ctrl1, ctrl2, attached ? "attached" : "detached"); in max77693_muic_set_path()
/Linux-v5.15/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
Ddma.c202 __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()
/Linux-v5.15/drivers/mmc/host/
Dsdhci-pci-gli.c182 u16 ctrl2; in gli_set_9750() local
241 ctrl2 = sdhci_readw(host, SDHCI_HOST_CONTROL2); in gli_set_9750()
242 ctrl2 &= ~SDHCI_CTRL_TUNED_CLK; in gli_set_9750()
243 sdhci_writew(host, ctrl2, SDHCI_HOST_CONTROL2); in gli_set_9750()
261 ctrl2 = sdhci_readw(host, SDHCI_HOST_CONTROL2); in gli_set_9750()
262 ctrl2 &= ~SDHCI_CTRL_TUNED_CLK; in gli_set_9750()
263 sdhci_writew(host, ctrl2, SDHCI_HOST_CONTROL2); in gli_set_9750()
/Linux-v5.15/drivers/pci/controller/dwc/
Dpcie-designware.c554 u32 cap, ctrl2, link_speed; in dw_pcie_link_set_max_speed() local
558 ctrl2 = dw_pcie_readl_dbi(pci, offset + PCI_EXP_LNKCTL2); in dw_pcie_link_set_max_speed()
559 ctrl2 &= ~PCI_EXP_LNKCTL2_TLS; in dw_pcie_link_set_max_speed()
577 ctrl2 &= ~PCI_EXP_LNKCTL2_HASD; in dw_pcie_link_set_max_speed()
581 dw_pcie_writel_dbi(pci, offset + PCI_EXP_LNKCTL2, ctrl2 | link_speed); in dw_pcie_link_set_max_speed()
/Linux-v5.15/drivers/tty/serial/
Dmxs-auart.c965 u32 ctrl, ctrl2, div; in mxs_auart_settermios() local
971 ctrl2 = mxs_read(s, REG_CTRL2); in mxs_auart_settermios()
1011 ctrl2 |= AUART_CTRL2_RXE; in mxs_auart_settermios()
1013 ctrl2 &= ~AUART_CTRL2_RXE; in mxs_auart_settermios()
1020 ctrl2 &= ~(AUART_CTRL2_CTSEN | AUART_CTRL2_RTSEN); in mxs_auart_settermios()
1032 ctrl2 |= AUART_CTRL2_TXDMAE | AUART_CTRL2_RXDMAE in mxs_auart_settermios()
1037 ctrl2 |= AUART_CTRL2_RTSEN; in mxs_auart_settermios()
1039 ctrl2 |= AUART_CTRL2_CTSEN; in mxs_auart_settermios()
1060 mxs_write(ctrl2, s, REG_CTRL2); in mxs_auart_settermios()

12