/openbmc/linux/drivers/clk/qcom/ |
H A D | clk-pll.c | 31 ret = regmap_read(pll->clkr.regmap, pll->mode_reg, &val); in clk_pll_enable() 40 ret = regmap_update_bits(pll->clkr.regmap, pll->mode_reg, PLL_BYPASSNL, in clk_pll_enable() 52 ret = regmap_update_bits(pll->clkr.regmap, pll->mode_reg, PLL_RESET_N, in clk_pll_enable() 61 return regmap_update_bits(pll->clkr.regmap, pll->mode_reg, PLL_OUTCTRL, in clk_pll_enable() 71 regmap_read(pll->clkr.regmap, pll->mode_reg, &val); in clk_pll_disable() 76 regmap_update_bits(pll->clkr.regmap, pll->mode_reg, mask, 0); in clk_pll_disable() 153 regmap_read(pll->clkr.regmap, pll->mode_reg, &mode); in clk_pll_set_rate() 250 qcom_pll_set_fsm_mode(regmap, pll->mode_reg, 1, 8); in clk_pll_configure_sr() 259 qcom_pll_set_fsm_mode(regmap, pll->mode_reg, 1, 0); in clk_pll_configure_sr_hpm_lp() 269 ret = regmap_read(pll->clkr.regmap, pll->mode_reg, &mode); in clk_pll_sr2_enable() [all …]
|
H A D | clk-hfpll.c | 63 regmap_update_bits(regmap, hd->mode_reg, PLL_BYPASSNL, PLL_BYPASSNL); in __clk_hfpll_enable() 72 regmap_update_bits(regmap, hd->mode_reg, PLL_RESET_N, PLL_RESET_N); in __clk_hfpll_enable() 87 regmap_update_bits(regmap, hd->mode_reg, PLL_OUTCTRL, PLL_OUTCTRL); in __clk_hfpll_enable() 100 regmap_read(regmap, hd->mode_reg, &mode); in clk_hfpll_enable() 117 regmap_update_bits(regmap, hd->mode_reg, in __clk_hfpll_disable() 209 regmap_read(regmap, hd->mode_reg, &mode); in clk_hfpll_init() 235 regmap_read(regmap, hd->mode_reg, &mode); in hfpll_is_enabled()
|
H A D | clk-hfpll.h | 11 u32 mode_reg; member
|
H A D | clk-pll.h | 44 u32 mode_reg; member
|
H A D | hfpll.c | 17 .mode_reg = 0x00,
|
/openbmc/linux/drivers/regulator/ |
H A D | sy8824x.c | 22 unsigned int mode_reg; member 45 regmap_update_bits(rdev->regmap, cfg->mode_reg, in sy8824_set_mode() 49 regmap_update_bits(rdev->regmap, cfg->mode_reg, in sy8824_set_mode() 65 ret = regmap_read(rdev->regmap, cfg->mode_reg, &val); in sy8824_get_mode() 168 .mode_reg = 0x00, 178 .mode_reg = 0x00, 188 .mode_reg = 0x01, 198 .mode_reg = 0x01,
|
H A D | fan53555.c | 141 unsigned int mode_reg; member 196 regmap_update_bits(rdev->regmap, di->mode_reg, in fan53555_set_mode() 214 ret = regmap_read(rdev->regmap, di->mode_reg, &val); in fan53555_get_mode() 502 di->mode_reg = FAN53555_CONTROL; in fan53555_device_setup() 516 di->mode_reg = di->vol_reg; in fan53555_device_setup() 524 di->mode_reg = FAN53555_VSEL1; in fan53555_device_setup() 527 di->mode_reg = FAN53555_VSEL0; in fan53555_device_setup() 532 di->mode_reg = TCS4525_COMMAND; in fan53555_device_setup()
|
H A D | rtq2134-regulator.c | 66 unsigned int mode_reg; member 91 return regmap_update_bits(rdev->regmap, desc->mode_reg, desc->mode_mask, in rtq2134_buck_set_mode() 102 ret = regmap_read(rdev->regmap, desc->mode_reg, &mode); in rtq2134_buck_get_mode() 296 .mode_reg = RTQ2134_REG_BUCK##_id##_DVS0CFG0, \
|
H A D | mt6360-regulator.c | 37 unsigned int mode_reg; member 243 ret = regmap_update_bits(regmap, rdesc->mode_reg, rdesc->mode_mask, val << shift); in mt6360_regulator_set_mode() 260 ret = regmap_read(regmap, rdesc->mode_reg, &val); in mt6360_regulator_get_mode() 345 .mode_reg = mreg, \
|
H A D | pv88080-regulator.c | 38 unsigned int mode_reg; member 215 ret = regmap_read(rdev->regmap, info->mode_reg, &data); in pv88080_buck_get_mode() 256 return regmap_update_bits(rdev->regmap, info->mode_reg, in pv88080_buck_set_mode() 477 pv88080_regulator_info[i].mode_reg in pv88080_i2c_probe()
|
H A D | rtq2208-regulator.c | 78 unsigned int mode_reg; member 110 return regmap_update_bits(rdev->regmap, rdesc->mode_reg, in rtq2208_set_mode() 121 ret = regmap_read(rdev->regmap, rdesc->mode_reg, &mode_val); in rtq2208_get_mode() 424 rdesc->mode_reg = BUCK_RG_SHIFT(curr_info->base, 2); in rtq2208_init_regulator_desc()
|
/openbmc/linux/drivers/net/can/ctucanfd/ |
H A D | ctucanfd_base.c | 331 (mode_reg | REG_MODE_ILBP) : in ctucan_set_mode() 332 (mode_reg & ~REG_MODE_ILBP); in ctucan_set_mode() 335 (mode_reg | REG_MODE_BMM) : in ctucan_set_mode() 336 (mode_reg & ~REG_MODE_BMM); in ctucan_set_mode() 339 (mode_reg | REG_MODE_FDE) : in ctucan_set_mode() 340 (mode_reg & ~REG_MODE_FDE); in ctucan_set_mode() 343 (mode_reg | REG_MODE_ACF) : in ctucan_set_mode() 344 (mode_reg & ~REG_MODE_ACF); in ctucan_set_mode() 359 mode_reg &= ~REG_MODE_TSTM; in ctucan_set_mode() 379 u32 mode_reg; in ctucan_chip_start() local [all …]
|
/openbmc/linux/drivers/clk/spear/ |
H A D | clk-vco-pll.c | 199 mode = (readl_relaxed(vco->mode_reg) >> PLL_MODE_SHIFT) & PLL_MODE_MASK; in clk_vco_recalc_rate() 241 val = readl_relaxed(vco->mode_reg); in clk_vco_set_rate() 244 writel_relaxed(val, vco->mode_reg); in clk_vco_set_rate() 274 unsigned long flags, void __iomem *mode_reg, void __iomem in clk_register_vco_pll() argument 285 if (!vco_name || !pll_name || !parent_name || !mode_reg || !cfg_reg || in clk_register_vco_pll() 300 vco->mode_reg = mode_reg; in clk_register_vco_pll() 312 parent_name, 0, mode_reg, PLL_ENABLE, 0, lock); in clk_register_vco_pll()
|
H A D | clk.h | 92 void __iomem *mode_reg; member 122 unsigned long flags, void __iomem *mode_reg, void __iomem
|
/openbmc/linux/drivers/media/i2c/ |
H A D | lm3646.c | 74 u8 mode_reg; member 87 REG_ENABLE, flash->mode_reg | MODE_SHDN); in lm3646_mode_ctrl() 90 REG_ENABLE, flash->mode_reg | MODE_TORCH); in lm3646_mode_ctrl() 93 REG_ENABLE, flash->mode_reg | MODE_FLASH); in lm3646_mode_ctrl() 303 flash->mode_reg = reg_val & 0xfc; in lm3646_init_device()
|
/openbmc/linux/drivers/gpu/drm/nouveau/dispnv04/ |
H A D | dfp.c | 95 struct nv04_crtc_reg *crtcstate = nv04_display(dev)->mode_reg.crtc_reg; in nv04_dfp_disable() 122 fpc = &nv04_display(dev)->mode_reg.crtc_reg[nv_crtc->index].fp_control; in nv04_dfp_update_fp_control() 137 fpc = &nv04_display(dev)->mode_reg.crtc_reg[nv_crtc->index].fp_control; in nv04_dfp_update_fp_control() 207 struct nv04_mode_state *state = &nv04_display(dev)->mode_reg; in nv04_dfp_prepare_sel_clk() 251 struct nv04_crtc_reg *crtcstate = nv04_display(dev)->mode_reg.crtc_reg; in nv04_dfp_prepare() 288 struct nv04_crtc_reg *regp = &nv04_display(dev)->mode_reg.crtc_reg[nv_crtc->index]; in nv04_dfp_mode_set() 464 nv04_display(dev)->mode_reg.crtc_reg[head].fp_control = in nv04_dfp_commit() 556 nv04_display(dev)->mode_reg.sel_clk = NVReadRAMDAC(dev, 0, NV_PRAMDAC_SEL_CLK); in nv04_lvds_dpms() 557 nv04_display(dev)->mode_reg.sel_clk &= ~0xf0; in nv04_lvds_dpms() 559 NVWriteRAMDAC(dev, 0, NV_PRAMDAC_SEL_CLK, nv04_display(dev)->mode_reg.sel_clk); in nv04_lvds_dpms()
|
H A D | tvnv04.c | 79 struct nv04_mode_state *state = &nv04_display(dev)->mode_reg; in nv04_tv_dpms() 107 struct nv04_crtc_reg *state = &nv04_display(dev)->mode_reg.crtc_reg[head]; in nv04_tv_bind() 146 struct nv04_crtc_reg *regp = &nv04_display(dev)->mode_reg.crtc_reg[nv_crtc->index]; in nv04_tv_mode_set()
|
H A D | crtc.c | 67 struct nv04_crtc_reg *regp = &nv04_display(dev)->mode_reg.crtc_reg[nv_crtc->index]; in nv_crtc_set_digital_vibrance() 82 struct nv04_crtc_reg *regp = &nv04_display(dev)->mode_reg.crtc_reg[nv_crtc->index]; in nv_crtc_set_image_sharpening() 124 struct nv04_mode_state *state = &nv04_display(dev)->mode_reg; in nv_crtc_calc_state_ext() 241 struct nv04_crtc_reg *regp = &nv04_display(dev)->mode_reg.crtc_reg[nv_crtc->index]; in nv_crtc_mode_set_vga() 466 struct nv04_crtc_reg *regp = &nv04_display(dev)->mode_reg.crtc_reg[nv_crtc->index]; in nv_crtc_mode_set_regs() 659 NVWriteRAMDAC(dev, 0, NV_PRAMDAC_SEL_CLK, nv04_display(dev)->mode_reg.sel_clk); in nv_crtc_mode_set() 669 struct nv04_mode_state *state = &nv04_display(dev)->mode_reg; in nv_crtc_save() 731 nouveau_hw_load_state(dev, nv_crtc->index, &nv04_display(dev)->mode_reg); in nv_crtc_commit() 778 rgbs = (struct rgb *)nv04_display(dev)->mode_reg.crtc_reg[nv_crtc->index].DAC; in nv_crtc_gamma_load() 789 nouveau_hw_load_state_palette(dev, nv_crtc->index, &nv04_display(dev)->mode_reg); in nv_crtc_gamma_load() [all …]
|
/openbmc/linux/drivers/net/ethernet/ |
H A D | dnet.c | 175 u32 mode_reg, ctl_reg; in dnet_handle_link_change() local 181 mode_reg = dnet_readw_mac(bp, DNET_INTERNAL_MODE_REG); in dnet_handle_link_change() 201 mode_reg |= DNET_INTERNAL_MODE_GBITEN; in dnet_handle_link_change() 205 mode_reg &= ~DNET_INTERNAL_MODE_GBITEN; in dnet_handle_link_change() 220 mode_reg |= in dnet_handle_link_change() 223 mode_reg &= in dnet_handle_link_change() 236 dnet_writew_mac(bp, DNET_INTERNAL_MODE_REG, mode_reg); in dnet_handle_link_change()
|
/openbmc/linux/drivers/mfd/ |
H A D | menelaus.c | 441 u8 mode_reg; member 470 ret = menelaus_write_reg(vtg->mode_reg, mode); in menelaus_set_voltage() 564 .mode_reg = MENELAUS_LDO_CTRL3, 593 .mode_reg = MENELAUS_LDO_CTRL4, 633 .mode_reg = MENELAUS_DCDC_CTRL2, 641 .mode_reg = MENELAUS_DCDC_CTRL3, 678 .mode_reg = MENELAUS_LDO_CTRL7, 708 .mode_reg = MENELAUS_LDO_CTRL6,
|
/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/ |
H A D | dwmac-stm32.c | 92 u32 mode_reg; /* MAC glue-logic mode register */ member 171 u32 reg = dwmac->mode_reg, clk_rate; in stm32mp1_set_mode() 232 u32 reg = dwmac->mode_reg; in stm32mcu_set_mode() 294 err = of_property_read_u32_index(np, "st,syscon", 1, &dwmac->mode_reg); in stm32_dwmac_parse_data()
|
/openbmc/linux/sound/soc/sh/rcar/ |
H A D | ssiu.c | 274 enum rsnd_reg adinr_reg, mode_reg, dalign_reg; in rsnd_ssiu_init_gen2() local 278 mode_reg = SSI9_BUSIF_MODE(busif); in rsnd_ssiu_init_gen2() 282 mode_reg = SSI_BUSIF_MODE(busif); in rsnd_ssiu_init_gen2() 291 rsnd_mod_write(mod, mode_reg, in rsnd_ssiu_init_gen2()
|
/openbmc/linux/drivers/tty/serial/ |
H A D | xilinx_uartps.c | 684 unsigned int ctrl_reg, mode_reg; in cdns_uart_set_termios() local 747 mode_reg = readl(port->membase + CDNS_UART_MR); in cdns_uart_set_termios() 787 cval |= mode_reg & 1; in cdns_uart_set_termios() 1022 u32 mode_reg; in cdns_uart_set_mctrl() local 1029 mode_reg = readl(port->membase + CDNS_UART_MR); in cdns_uart_set_mctrl() 1032 mode_reg &= ~CDNS_UART_MR_CHMODE_MASK; in cdns_uart_set_mctrl() 1039 mode_reg |= CDNS_UART_MR_CHMODE_L_LOOP; in cdns_uart_set_mctrl() 1041 mode_reg |= CDNS_UART_MR_CHMODE_NORM; in cdns_uart_set_mctrl() 1044 writel(mode_reg, port->membase + CDNS_UART_MR); in cdns_uart_set_mctrl()
|
/openbmc/linux/arch/powerpc/platforms/powermac/ |
H A D | low_i2c.c | 400 u8 mode_reg = host->speed; in kw_i2c_xfer() local 408 mode_reg |= KW_I2C_MODE_STANDARD; in kw_i2c_xfer() 413 mode_reg |= KW_I2C_MODE_STANDARDSUB; in kw_i2c_xfer() 418 mode_reg |= KW_I2C_MODE_COMBINED; in kw_i2c_xfer() 426 kw_write_reg(reg_mode, mode_reg | (bus->channel << 4)); in kw_i2c_xfer() 435 if ((mode_reg & KW_I2C_MODE_MODE_MASK) == KW_I2C_MODE_STANDARDSUB in kw_i2c_xfer() 436 || (mode_reg & KW_I2C_MODE_MODE_MASK) == KW_I2C_MODE_COMBINED) in kw_i2c_xfer()
|
/openbmc/linux/drivers/mmc/host/ |
H A D | atmel-mci.c | 374 u32 mode_reg; member 1301 atmci_writel(host, ATMCI_MR, host->mode_reg); in atmci_start_request() 1445 if (!host->mode_reg) { in atmci_set_ios() 1477 host->mode_reg = ATMCI_MR_CLKDIV(clkdiv >> 1) in atmci_set_ios() 1487 host->mode_reg = ATMCI_MR_CLKDIV(clkdiv); in atmci_set_ios() 1496 host->mode_reg |= (ATMCI_MR_WRPROOF | ATMCI_MR_RDPROOF); in atmci_set_ios() 1507 atmci_writel(host, ATMCI_MR, host->mode_reg); in atmci_set_ios() 1528 if (host->mode_reg) { in atmci_set_ios() 1531 host->mode_reg = 0; in atmci_set_ios() 1616 atmci_writel(host, ATMCI_MR, host->mode_reg); in atmci_request_end() [all …]
|