Home
last modified time | relevance | path

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

12

/Linux-v4.19/drivers/rtc/
Drtc-rx8025.c110 int ctrl2; in rx8025_check_validity() local
112 ctrl2 = rx8025_read_reg(rx8025->client, RX8025_REG_CTRL2); in rx8025_check_validity()
113 if (ctrl2 < 0) in rx8025_check_validity()
114 return ctrl2; in rx8025_check_validity()
116 if (ctrl2 & RX8025_BIT_CTRL2_VDET) in rx8025_check_validity()
119 if (ctrl2 & RX8025_BIT_CTRL2_PON) { in rx8025_check_validity()
124 if (!(ctrl2 & RX8025_BIT_CTRL2_XST)) { in rx8025_check_validity()
134 int ctrl2 = rx8025_read_reg(client, RX8025_REG_CTRL2); in rx8025_reset_validity() local
136 if (ctrl2 < 0) in rx8025_reset_validity()
137 return ctrl2; in rx8025_reset_validity()
[all …]
/Linux-v4.19/drivers/net/phy/
Dphy-c45.c16 int ctrl1, ctrl2, ret; in genphy_c45_pma_setup_forced() local
26 ctrl2 = phy_read_mmd(phydev, MDIO_MMD_PMAPMD, MDIO_CTRL2); in genphy_c45_pma_setup_forced()
27 if (ctrl2 < 0) in genphy_c45_pma_setup_forced()
28 return ctrl2; in genphy_c45_pma_setup_forced()
35 ctrl2 &= ~(MDIO_PMA_CTRL2_TYPE | 0x30); in genphy_c45_pma_setup_forced()
39 ctrl2 |= MDIO_PMA_CTRL2_10BT; in genphy_c45_pma_setup_forced()
43 ctrl2 |= MDIO_PMA_CTRL2_100BTX; in genphy_c45_pma_setup_forced()
48 ctrl2 |= MDIO_PMA_CTRL2_1000BT; in genphy_c45_pma_setup_forced()
53 ctrl2 |= MDIO_PMA_CTRL2_10GBT; in genphy_c45_pma_setup_forced()
63 return phy_write_mmd(phydev, MDIO_MMD_PMAPMD, MDIO_CTRL2, ctrl2); in genphy_c45_pma_setup_forced()
/Linux-v4.19/drivers/staging/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-v4.19/sound/soc/codecs/
Dssm2518.c409 unsigned int ctrl1 = 0, ctrl2 = 0; in ssm2518_set_dai_fmt() local
425 ctrl2 |= SSM2518_SAI_CTRL2_BCLK_INVERT; in ssm2518_set_dai_fmt()
432 ctrl2 |= SSM2518_SAI_CTRL2_BCLK_INVERT; in ssm2518_set_dai_fmt()
454 ctrl2 |= SSM2518_SAI_CTRL2_LRCLK_PULSE; in ssm2518_set_dai_fmt()
459 ctrl2 |= SSM2518_SAI_CTRL2_LRCLK_PULSE; in ssm2518_set_dai_fmt()
468 ctrl2 |= SSM2518_SAI_CTRL2_LRCLK_INVERT; in ssm2518_set_dai_fmt()
474 return regmap_write(ssm2518->regmap, SSM2518_REG_SAI_CTRL2, ctrl2); in ssm2518_set_dai_fmt()
528 unsigned int ctrl1, ctrl2; in ssm2518_set_tdm_slot() local
562 ctrl2 = SSM2518_SAI_CTRL2_SLOT_WIDTH_16; in ssm2518_set_tdm_slot()
565 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-v4.19/drivers/pci/
Dvc.c104 u32 ctrl, header, cap1, ctrl2; in pci_vc_enable() local
137 pci_read_config_dword(dev->bus->self, ctrl_pos2, &ctrl2); in pci_vc_enable()
138 if ((ctrl2 & PCI_VC_RES_CTRL_ID) == id) { in pci_vc_enable()
148 if (ctrl2 & PCI_VC_RES_CTRL_ENABLE) { in pci_vc_enable()
149 ctrl2 &= ~PCI_VC_RES_CTRL_ENABLE; in pci_vc_enable()
150 pci_write_config_dword(link, ctrl_pos2, ctrl2); in pci_vc_enable()
154 ctrl2 |= PCI_VC_RES_CTRL_ENABLE; in pci_vc_enable()
155 pci_write_config_dword(link, ctrl_pos2, ctrl2); in pci_vc_enable()
/Linux-v4.19/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),
300 vsp1_sru_write(sru, dlb, VI6_SRU_CTRL2, param->ctrl2); in sru_configure_stream()
/Linux-v4.19/drivers/crypto/bcm/
Dspu2.c456 static void spu2_dump_fmd_ctrl2(u64 ctrl2) in spu2_dump_fmd_ctrl2() argument
458 packet_log(" FMD CTRL2 %#16llx\n", ctrl2); in spu2_dump_fmd_ctrl2()
461 ctrl2 & SPU2_AAD1_OFFSET, in spu2_dump_fmd_ctrl2()
462 (ctrl2 & SPU2_AAD1_LEN) >> SPU2_AAD1_LEN_SHIFT); in spu2_dump_fmd_ctrl2()
464 (ctrl2 & SPU2_AAD2_OFFSET) >> SPU2_AAD2_OFFSET_SHIFT); in spu2_dump_fmd_ctrl2()
466 (ctrl2 & SPU2_PL_OFFSET) >> SPU2_PL_OFFSET_SHIFT); in spu2_dump_fmd_ctrl2()
483 spu2_dump_fmd_ctrl2(le64_to_cpu(fmd->ctrl2)); in spu2_dump_fmd()
571 u64 ctrl2; in spu2_fmd_init() local
592 ctrl2 = aad1_offset | in spu2_fmd_init()
601 fmd->ctrl2 = cpu_to_le64(ctrl2); in spu2_fmd_init()
[all …]
Dspu2.h89 u64 ctrl2; member
/Linux-v4.19/drivers/leds/
Dleds-is31fl319x.c120 u8 ctrl1 = 0, ctrl2 = 0; in is31fl319x_brightness_set() local
151 ctrl2 |= on << (i - 6); /* 6..8 => bit 0..2 */ in is31fl319x_brightness_set()
154 if (ctrl1 > 0 || ctrl2 > 0) { in is31fl319x_brightness_set()
156 ctrl1, ctrl2); in is31fl319x_brightness_set()
158 regmap_write(is31->regmap, IS31FL319X_CTRL2, ctrl2); in is31fl319x_brightness_set()
/Linux-v4.19/drivers/extcon/
Dextcon-max14577.c207 u8 ctrl1, ctrl2 = 0; in max14577_muic_set_path() local
233 ctrl2 |= CTRL2_CPEN_MASK; /* LowPwr=0, CPEn=1 */ in max14577_muic_set_path()
235 ctrl2 |= CTRL2_LOWPWR_MASK; /* LowPwr=1, CPEn=0 */ in max14577_muic_set_path()
239 CTRL2_LOWPWR_MASK | CTRL2_CPEN_MASK, ctrl2); in max14577_muic_set_path()
247 ctrl1, ctrl2, attached ? "attached" : "detached"); in max14577_muic_set_path()
Dextcon-max8997.c208 u8 ctrl1, ctrl2 = 0; in max8997_muic_set_path() local
223 ctrl2 |= CONTROL2_CPEN_MASK; /* LowPwr=0, CPEn=1 */ in max8997_muic_set_path()
225 ctrl2 |= CONTROL2_LOWPWR_MASK; /* LowPwr=1, CPEn=0 */ in max8997_muic_set_path()
228 MAX8997_MUIC_REG_CONTROL2, ctrl2, in max8997_muic_set_path()
237 ctrl1, ctrl2, attached ? "attached" : "detached"); in max8997_muic_set_path()
Dextcon-max77843.c209 unsigned int ctrl1, ctrl2; in max77843_muic_set_path() local
231 ctrl2 = MAX77843_MUIC_CONTROL2_CPEN_MASK; in max77843_muic_set_path()
233 ctrl2 = MAX77843_MUIC_CONTROL2_LOWPWR_MASK; in max77843_muic_set_path()
238 MAX77843_MUIC_CONTROL2_CPEN_MASK, ctrl2); in max77843_muic_set_path()
246 ctrl1, ctrl2, attached ? "attached" : "detached"); in max77843_muic_set_path()
Dextcon-max77693.c270 unsigned int ctrl1, ctrl2 = 0; in max77693_muic_set_path() local
285 ctrl2 |= MAX77693_CONTROL2_CPEN_MASK; /* LowPwr=0, CPEn=1 */ in max77693_muic_set_path()
287 ctrl2 |= MAX77693_CONTROL2_LOWPWR_MASK; /* LowPwr=1, CPEn=0 */ in max77693_muic_set_path()
292 ctrl2); in max77693_muic_set_path()
300 ctrl1, ctrl2, attached ? "attached" : "detached"); in max77693_muic_set_path()
/Linux-v4.19/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-v4.19/drivers/tty/serial/
Dmxs-auart.c981 u32 bm, ctrl, ctrl2, div; in mxs_auart_settermios() local
987 ctrl2 = mxs_read(s, REG_CTRL2); in mxs_auart_settermios()
1045 ctrl2 |= AUART_CTRL2_RXE; in mxs_auart_settermios()
1047 ctrl2 &= ~AUART_CTRL2_RXE; in mxs_auart_settermios()
1054 ctrl2 &= ~(AUART_CTRL2_CTSEN | AUART_CTRL2_RTSEN); in mxs_auart_settermios()
1066 ctrl2 |= AUART_CTRL2_TXDMAE | AUART_CTRL2_RXDMAE in mxs_auart_settermios()
1071 ctrl2 |= AUART_CTRL2_RTSEN; in mxs_auart_settermios()
1073 ctrl2 |= AUART_CTRL2_CTSEN; in mxs_auart_settermios()
1094 mxs_write(ctrl2, s, REG_CTRL2); in mxs_auart_settermios()
/Linux-v4.19/arch/mips/include/asm/sgi/
Dioc.h30 volatile u8 ctrl2; member
/Linux-v4.19/drivers/usb/host/
Dsl811.h147 u8 ctrl1, ctrl2, irq_enable; member
/Linux-v4.19/drivers/net/can/
Dflexcan.c218 u32 ctrl2; /* MX6, VF610 */ member
980 reg_ctrl2 = priv->read(&regs->ctrl2); in flexcan_chip_start()
982 priv->write(reg_ctrl2, &regs->ctrl2); in flexcan_chip_start()
1028 reg_ctrl2 = priv->read(&regs->ctrl2); in flexcan_chip_start()
1030 priv->write(reg_ctrl2, &regs->ctrl2); in flexcan_chip_start()
/Linux-v4.19/sound/pci/oxygen/
Dxonar_wm87x6.c902 u16 ctrl1, ctrl2; in wm8776_level_control_put() local
912 ctrl2 = data->wm8776_regs[WM8776_ALCCTRL2]; in wm8776_level_control_put()
916 ctrl2 & ~WM8776_LCEN); in wm8776_level_control_put()
923 ctrl2 | WM8776_LCEN); in wm8776_level_control_put()
931 ctrl2 | WM8776_LCEN); in wm8776_level_control_put()
/Linux-v4.19/drivers/misc/lis3lv02d/
Dlis3lv02d.c898 int ctrl2 = p->hipass_ctrl; in lis3lv02d_8b_configure() local
923 ctrl2 ^= HP_FF_WU1; /* Xor to keep compatible with old pdata*/ in lis3lv02d_8b_configure()
931 ctrl2 ^= HP_FF_WU2; /* Xor to keep compatible with old pdata*/ in lis3lv02d_8b_configure()
934 lis3->write(lis3, CTRL_REG2, ctrl2); in lis3lv02d_8b_configure()
/Linux-v4.19/drivers/media/i2c/
Dov2659.c206 u8 ctrl2; member
940 ov2659->pll.ctrl2 = ctrl2_reg; in ov2659_pll_calc_params()
953 {REG_SC_PLL_CTRL2, ov2659->pll.ctrl2}, in ov2659_set_pixel_clock()
/Linux-v4.19/drivers/gpu/drm/bridge/
Danalogix-anx78xx.c198 u8 ctrl2 = SP_AUX_EN; in anx78xx_aux_transfer() local
208 ctrl2 |= SP_ADDR_ONLY; in anx78xx_aux_transfer()
234 SP_AUX_EN, ctrl2); in anx78xx_aux_transfer()
/Linux-v4.19/drivers/mailbox/
Dbcm-pdc-mailbox.c179 u32 ctrl2; /* buffer count and address extension */ member
547 rxd->ctrl2 = cpu_to_le32(buf_len); in pdc_build_rxd()
575 txd->ctrl2 = cpu_to_le32(buf_len); in pdc_build_txd()
/Linux-v4.19/arch/mips/include/asm/txx9/
Dtx4939.h172 __u32 ctrl2; member

12