/linux-6.3-rc2/drivers/rtc/ |
A D | rtc-rx8025.c | 134 int ctrl2; in rx8025_check_validity() local 138 if (ctrl2 < 0) in rx8025_check_validity() 139 return ctrl2; in rx8025_check_validity() 163 if (ctrl2 < 0) in rx8025_reset_validity() 164 return ctrl2; in rx8025_reset_validity() 174 ctrl2); in rx8025_reset_validity() 284 u8 ctrl[2], ctrl2; in rx8025_init_client() local 305 ctrl2 = ctrl[1]; in rx8025_init_client() 331 int ctrl2, err; in rx8025_read_alarm() local 338 if (ctrl2 < 0) in rx8025_read_alarm() [all …]
|
A D | rtc-rs5c372.c | 231 if (ctrl2 & RS5C_CTRL2_XSTP) { in rs5c372_rtc_read_time() 264 unsigned char ctrl2; in rs5c372_rtc_set_time() local 289 ctrl2 = i2c_smbus_read_byte_data(client, addr); in rs5c372_rtc_set_time() 295 ctrl2 &= ~(R2x2x_CTRL2_VDET | R2x2x_CTRL2_PON); in rs5c372_rtc_set_time() 297 ctrl2 |= R2x2x_CTRL2_XSTP; in rs5c372_rtc_set_time() 299 ctrl2 &= ~R2x2x_CTRL2_XSTP; in rs5c372_rtc_set_time() 302 ctrl2 &= ~RS5C_CTRL2_XSTP; in rs5c372_rtc_set_time() 498 unsigned char ctrl2; in rs5c372_ioctl() local 518 if (ctrl2 & R2x2x_CTRL2_VDET) in rs5c372_ioctl() 522 if (ctrl2 & RS5C_CTRL2_XSTP) in rs5c372_ioctl() [all …]
|
A 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()
|
A D | rtc-pcf2127.c | 378 unsigned int ctrl2; in pcf2127_rtc_read_alarm() local 381 ret = regmap_read(pcf2127->regmap, PCF2127_REG_CTRL2, &ctrl2); in pcf2127_rtc_read_alarm() 394 alrm->enabled = ctrl2 & PCF2127_BIT_CTRL2_AIE; in pcf2127_rtc_read_alarm() 395 alrm->pending = ctrl2 & PCF2127_BIT_CTRL2_AF; in pcf2127_rtc_read_alarm() 511 unsigned int ctrl1, ctrl2; in pcf2127_rtc_irq() local 518 ret = regmap_read(pcf2127->regmap, PCF2127_REG_CTRL2, &ctrl2); in pcf2127_rtc_irq() 532 if (ctrl2 & PCF2127_CTRL2_IRQ_MASK) in pcf2127_rtc_irq() 534 ctrl2 & ~PCF2127_CTRL2_IRQ_MASK); in pcf2127_rtc_irq() 536 if (ctrl2 & PCF2127_BIT_CTRL2_AF) in pcf2127_rtc_irq() 591 unsigned int ctrl1, ctrl2; in timestamp0_show() local [all …]
|
/linux-6.3-rc2/drivers/comedi/drivers/ |
A D | me_daq.c | 168 devpriv->ctrl2 |= ME_CTRL2_PORT_A_ENA; in me_dio_insn_config() 170 devpriv->ctrl2 &= ~ME_CTRL2_PORT_A_ENA; in me_dio_insn_config() 172 devpriv->ctrl2 |= ME_CTRL2_PORT_B_ENA; in me_dio_insn_config() 174 devpriv->ctrl2 &= ~ME_CTRL2_PORT_B_ENA; in me_dio_insn_config() 176 writew(devpriv->ctrl2, dev->mmio + ME_CTRL2_REG); in me_dio_insn_config() 251 writew(devpriv->ctrl2, dev->mmio + ME_CTRL2_REG); in me_ai_insn_read() 257 writew(devpriv->ctrl2, dev->mmio + ME_CTRL2_REG); in me_ai_insn_read() 306 devpriv->ctrl2 |= ME_CTRL2_DAC_ENA; in me_ao_insn_write() 307 writew(devpriv->ctrl2, dev->mmio + ME_CTRL2_REG); in me_ao_insn_write() 310 devpriv->ctrl2 |= ME_CTRL2_BUFFERED_DAC; in me_ao_insn_write() [all …]
|
/linux-6.3-rc2/sound/soc/codecs/ |
A D | ssm2518.c | 407 unsigned int ctrl1 = 0, ctrl2 = 0; in ssm2518_set_dai_fmt() local 423 ctrl2 |= SSM2518_SAI_CTRL2_BCLK_INVERT; in ssm2518_set_dai_fmt() 430 ctrl2 |= SSM2518_SAI_CTRL2_BCLK_INVERT; in ssm2518_set_dai_fmt() 452 ctrl2 |= SSM2518_SAI_CTRL2_LRCLK_PULSE; in ssm2518_set_dai_fmt() 457 ctrl2 |= SSM2518_SAI_CTRL2_LRCLK_PULSE; in ssm2518_set_dai_fmt() 466 ctrl2 |= SSM2518_SAI_CTRL2_LRCLK_INVERT; in ssm2518_set_dai_fmt() 526 unsigned int ctrl1, ctrl2; in ssm2518_set_tdm_slot() local 560 ctrl2 = SSM2518_SAI_CTRL2_SLOT_WIDTH_16; in ssm2518_set_tdm_slot() 563 ctrl2 = SSM2518_SAI_CTRL2_SLOT_WIDTH_24; in ssm2518_set_tdm_slot() 566 ctrl2 = SSM2518_SAI_CTRL2_SLOT_WIDTH_32; in ssm2518_set_tdm_slot() [all …]
|
A D | ak4613.c | 572 u8 ctrl2; in ak4613_dai_hw_params() local 579 ctrl2 = DFS_NORMAL_SPEED; in ak4613_dai_hw_params() 584 ctrl2 = DFS_DOUBLE_SPEED; in ak4613_dai_hw_params() 588 ctrl2 = DFS_QUAD_SPEED; in ak4613_dai_hw_params() 643 snd_soc_component_update_bits(component, CTRL2, DFS_MASK, ctrl2); in ak4613_dai_hw_params()
|
/linux-6.3-rc2/drivers/pci/ |
A 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()
|
/linux-6.3-rc2/drivers/media/platform/renesas/vsp1/ |
A 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), 303 vsp1_sru_write(sru, dlb, VI6_SRU_CTRL2, param->ctrl2); in sru_configure_stream()
|
/linux-6.3-rc2/drivers/crypto/bcm/ |
A 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() 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() 736 u64 ctrl2; in spu2_fmd_ctrl2_write() local 747 ctrl2 = aad1_offset | in spu2_fmd_ctrl2_write() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/bridge/analogix/ |
A 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()
|
/linux-6.3-rc2/drivers/net/phy/ |
A D | phy-c45.c | 111 int ctrl1, ctrl2, ret; in genphy_c45_pma_setup_forced() local 122 if (ctrl2 < 0) in genphy_c45_pma_setup_forced() 123 return ctrl2; in genphy_c45_pma_setup_forced() 130 ctrl2 &= ~(MDIO_PMA_CTRL2_TYPE | 0x30); in genphy_c45_pma_setup_forced() 135 ctrl2 |= MDIO_PMA_CTRL2_BASET1; in genphy_c45_pma_setup_forced() 137 ctrl2 |= MDIO_PMA_CTRL2_10BT; in genphy_c45_pma_setup_forced() 141 ctrl2 |= MDIO_PMA_CTRL2_100BTX; in genphy_c45_pma_setup_forced() 146 ctrl2 |= MDIO_PMA_CTRL2_1000BT; in genphy_c45_pma_setup_forced() 151 ctrl2 |= MDIO_PMA_CTRL2_2_5GBT; in genphy_c45_pma_setup_forced() 156 ctrl2 |= MDIO_PMA_CTRL2_5GBT; in genphy_c45_pma_setup_forced() [all …]
|
A D | dp83822.c | 338 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()
|
A D | icplus.c | 351 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-6.3-rc2/drivers/gpu/drm/aspeed/ |
A 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()
|
/linux-6.3-rc2/drivers/net/ethernet/aquantia/atlantic/hw_atl/ |
A 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()
|
/linux-6.3-rc2/drivers/leds/ |
A D | leds-is31fl319x.c | 254 u8 ctrl1 = 0, ctrl2 = 0; in is31fl3196_brightness_set() local 283 ctrl2 |= on << (i - 6); /* 6..8 => bit 0..2 */ in is31fl3196_brightness_set() 286 if (ctrl1 > 0 || ctrl2 > 0) { in is31fl3196_brightness_set() 288 ctrl1, ctrl2); in is31fl3196_brightness_set() 290 regmap_write(is31->regmap, IS31FL3196_CTRL2, ctrl2); in is31fl3196_brightness_set()
|
/linux-6.3-rc2/drivers/extcon/ |
A D | extcon-max14577.c | 198 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()
|
A D | extcon-max8997.c | 201 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()
|
A D | extcon-max77843.c | 203 unsigned int ctrl1, ctrl2; in max77843_muic_set_path() local 225 ctrl2 = MAX77843_MUIC_CONTROL2_CPEN_MASK; in max77843_muic_set_path() 227 ctrl2 = MAX77843_MUIC_CONTROL2_LOWPWR_MASK; in max77843_muic_set_path() 232 MAX77843_MUIC_CONTROL2_CPEN_MASK, ctrl2); in max77843_muic_set_path() 240 ctrl1, ctrl2, attached ? "attached" : "detached"); in max77843_muic_set_path()
|
A D | extcon-max77693.c | 261 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-6.3-rc2/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
A 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()
|
/linux-6.3-rc2/drivers/tty/serial/ |
A D | mxs-auart.c | 949 u32 ctrl, ctrl2, div; in mxs_auart_settermios() local 955 ctrl2 = mxs_read(s, REG_CTRL2); in mxs_auart_settermios() 995 ctrl2 |= AUART_CTRL2_RXE; in mxs_auart_settermios() 997 ctrl2 &= ~AUART_CTRL2_RXE; in mxs_auart_settermios() 1004 ctrl2 &= ~(AUART_CTRL2_CTSEN | AUART_CTRL2_RTSEN); in mxs_auart_settermios() 1016 ctrl2 |= AUART_CTRL2_TXDMAE | AUART_CTRL2_RXDMAE in mxs_auart_settermios() 1021 ctrl2 |= AUART_CTRL2_RTSEN; in mxs_auart_settermios() 1023 ctrl2 |= AUART_CTRL2_CTSEN; in mxs_auart_settermios() 1044 mxs_write(ctrl2, s, REG_CTRL2); in mxs_auart_settermios()
|
/linux-6.3-rc2/drivers/mmc/host/ |
A D | sdhci-pci-gli.c | 197 u16 ctrl2; in gli_set_9750() local 256 ctrl2 = sdhci_readw(host, SDHCI_HOST_CONTROL2); in gli_set_9750() 257 ctrl2 &= ~SDHCI_CTRL_TUNED_CLK; in gli_set_9750() 258 sdhci_writew(host, ctrl2, SDHCI_HOST_CONTROL2); in gli_set_9750() 276 ctrl2 = sdhci_readw(host, SDHCI_HOST_CONTROL2); in gli_set_9750() 277 ctrl2 &= ~SDHCI_CTRL_TUNED_CLK; in gli_set_9750() 278 sdhci_writew(host, ctrl2, SDHCI_HOST_CONTROL2); in gli_set_9750()
|
/linux-6.3-rc2/drivers/net/can/flexcan/ |
A D | flexcan-core.c | 233 u32 ctrl2; /* MX6, VF610 - Not affected by Soft Reset */ member 1269 reg_ctrl2 = priv->read(®s->ctrl2); in flexcan_set_bittiming_cbt() 1275 priv->write(reg_ctrl2, ®s->ctrl2); in flexcan_set_bittiming_cbt() 1348 reg_ctrl2 = priv->read(®s->ctrl2); in flexcan_ram_init() 1350 priv->write(reg_ctrl2, ®s->ctrl2); in flexcan_ram_init() 1358 priv->write(reg_ctrl2, ®s->ctrl2); in flexcan_ram_init() 1548 reg_ctrl2 = priv->read(®s->ctrl2); in flexcan_chip_start() 1550 priv->write(reg_ctrl2, ®s->ctrl2); in flexcan_chip_start() 1629 reg_ctrl2 = priv->read(®s->ctrl2); in flexcan_chip_start() 1631 priv->write(reg_ctrl2, ®s->ctrl2); in flexcan_chip_start() [all …]
|