Home
last modified time | relevance | path

Searched refs:control_reg (Results 1 – 19 of 19) sorted by relevance

/drivers/scsi/pcmcia/
Dnsp_message.c15 unsigned char data_reg, control_reg; in nsp_message_in() local
33 control_reg = nsp_index_read(base, SCSIBUSCTRL); in nsp_message_in()
34 control_reg |= SCSI_ACK; in nsp_message_in()
35 nsp_index_write(base, SCSIBUSCTRL, control_reg); in nsp_message_in()
41 control_reg = nsp_index_read(base, SCSIBUSCTRL); in nsp_message_in()
42 control_reg &= ~SCSI_ACK; in nsp_message_in()
43 nsp_index_write(base, SCSIBUSCTRL, control_reg); in nsp_message_in()
/drivers/clk/
Dclk-palmas.c35 unsigned int control_reg; member
67 cinfo->clk_desc->control_reg, in palmas_clks_prepare()
72 cinfo->clk_desc->control_reg, ret); in palmas_clks_prepare()
92 cinfo->clk_desc->control_reg, in palmas_clks_unprepare()
96 cinfo->clk_desc->control_reg, ret); in palmas_clks_unprepare()
109 cinfo->clk_desc->control_reg, &val); in palmas_clks_is_prepared()
112 cinfo->clk_desc->control_reg, ret); in palmas_clks_is_prepared()
138 .control_reg = PALMAS_CLK32KG_CTRL,
154 .control_reg = PALMAS_CLK32KGAUDIO_CTRL,
211 cinfo->clk_desc->control_reg, in palmas_clks_init_configure()
[all …]
/drivers/clk/ti/
Dapll.c63 v = ti_clk_ll_ops->clk_readl(&ad->control_reg); in dra7_apll_enable()
66 ti_clk_ll_ops->clk_writel(v, &ad->control_reg); in dra7_apll_enable()
102 v = ti_clk_ll_ops->clk_readl(&ad->control_reg); in dra7_apll_disable()
105 ti_clk_ll_ops->clk_writel(v, &ad->control_reg); in dra7_apll_disable()
116 v = ti_clk_ll_ops->clk_readl(&ad->control_reg); in dra7_apll_is_enabled()
218 ret = ti_clk_get_reg_addr(node, 0, &ad->control_reg); in of_dra7_apll_setup()
247 v = ti_clk_ll_ops->clk_readl(&ad->control_reg); in omap2_apll_is_enabled()
273 v = ti_clk_ll_ops->clk_readl(&ad->control_reg); in omap2_apll_enable()
276 ti_clk_ll_ops->clk_writel(v, &ad->control_reg); in omap2_apll_enable()
303 v = ti_clk_ll_ops->clk_readl(&ad->control_reg); in omap2_apll_disable()
[all …]
Ddpll3xxx.c54 v = ti_clk_ll_ops->clk_readl(&dd->control_reg); in _omap3_dpll_write_clken()
57 ti_clk_ll_ops->clk_writel(v, &dd->control_reg); in _omap3_dpll_write_clken()
317 v = ti_clk_ll_ops->clk_readl(&dd->control_reg); in omap3_noncore_dpll_program()
320 ti_clk_ll_ops->clk_writel(v, &dd->control_reg); in omap3_noncore_dpll_program()
374 v = ti_clk_ll_ops->clk_readl(&dd->control_reg); in omap3_noncore_dpll_program()
390 ti_clk_ll_ops->clk_writel(v, &dd->control_reg); in omap3_noncore_dpll_program()
773 v = ti_clk_ll_ops->clk_readl(&dd->control_reg) & dd->enable_mask; in omap3_clkoutx2_recalc()
797 v = ti_clk_ll_ops->clk_readl(&dd->control_reg); in omap3_core_dpll_save_context()
858 v = ti_clk_ll_ops->clk_readl(&dd->control_reg); in omap3_noncore_dpll_save_context()
887 ctrl = ti_clk_ll_ops->clk_readl(&dd->control_reg); in omap3_noncore_dpll_restore_context()
Dclkt_dpll.c213 v = ti_clk_ll_ops->clk_readl(&dd->control_reg); in omap2_init_dpll_parent()
249 v = ti_clk_ll_ops->clk_readl(&dd->control_reg); in omap2_get_dpll_rate()
Ddpll44xx.c128 v = ti_clk_ll_ops->clk_readl(&dd->control_reg); in omap4_dpll_regm4xen_recalc()
Ddpll.c322 if (ti_clk_get_reg_addr(node, 0, &dd->control_reg)) in of_ti_dpll_setup()
/drivers/watchdog/
Dts72xx_wdt.c45 void __iomem *control_reg; member
56 writeb(priv->regval, priv->control_reg); in ts72xx_wdt_start()
66 writeb(TS72XX_WDT_CTRL_DISABLE, priv->control_reg); in ts72xx_wdt_stop()
134 priv->control_reg = devm_platform_ioremap_resource(pdev, 0); in ts72xx_wdt_probe()
135 if (IS_ERR(priv->control_reg)) in ts72xx_wdt_probe()
136 return PTR_ERR(priv->control_reg); in ts72xx_wdt_probe()
/drivers/tty/serial/
Dpmac_zilog.h55 volatile u8 __iomem *control_reg; member
88 writeb(reg, port->control_reg); in read_zsreg()
89 return readb(port->control_reg); in read_zsreg()
95 writeb(reg, port->control_reg); in write_zsreg()
96 writeb(value, port->control_reg); in write_zsreg()
111 (void)readb(port->control_reg); in zssync()
Dpmac_zilog.c1416 uap->control_reg = uap->port.membase; in pmz_init_port()
1417 uap->data_reg = uap->control_reg + 0x10; in pmz_init_port()
1535 iounmap(uap->control_reg); in pmz_dispose_port()
1721 uap->control_reg = uap->port.membase; in pmz_init_port()
1722 uap->data_reg = uap->control_reg + 4; in pmz_init_port()
/drivers/power/supply/
Dds2780_battery.c357 u8 *control_reg) in ds2780_get_control_register() argument
359 return ds2780_read8(dev_info, control_reg, DS2780_CONTROL_REG); in ds2780_get_control_register()
363 u8 control_reg) in ds2780_set_control_register() argument
367 ret = ds2780_write(dev_info, &control_reg, in ds2780_set_control_register()
448 u8 control_reg; in ds2780_get_pmod_enabled() local
453 ret = ds2780_get_control_register(dev_info, &control_reg); in ds2780_get_pmod_enabled()
458 !!(control_reg & DS2780_CONTROL_REG_PMOD)); in ds2780_get_pmod_enabled()
467 u8 control_reg, new_setting; in ds2780_set_pmod_enabled() local
472 ret = ds2780_get_control_register(dev_info, &control_reg); in ds2780_set_pmod_enabled()
486 control_reg |= DS2780_CONTROL_REG_PMOD; in ds2780_set_pmod_enabled()
[all …]
Dds2781_battery.c359 u8 *control_reg) in ds2781_get_control_register() argument
361 return ds2781_read8(dev_info, control_reg, DS2781_CONTROL); in ds2781_get_control_register()
365 u8 control_reg) in ds2781_set_control_register() argument
369 ret = ds2781_write(dev_info, &control_reg, in ds2781_set_control_register()
450 u8 control_reg; in ds2781_get_pmod_enabled() local
455 ret = ds2781_get_control_register(dev_info, &control_reg); in ds2781_get_pmod_enabled()
460 !!(control_reg & DS2781_CONTROL_PMOD)); in ds2781_get_pmod_enabled()
469 u8 control_reg, new_setting; in ds2781_set_pmod_enabled() local
474 ret = ds2781_get_control_register(dev_info, &control_reg); in ds2781_set_pmod_enabled()
488 control_reg |= DS2781_CONTROL_PMOD; in ds2781_set_pmod_enabled()
[all …]
/drivers/regulator/
Das3722-regulator.c55 u32 control_reg; member
85 .control_reg = AS3722_SD0_CONTROL_REG,
97 .control_reg = AS3722_SD1_CONTROL_REG,
110 .control_reg = AS3722_SD23_CONTROL_REG,
124 .control_reg = AS3722_SD23_CONTROL_REG,
138 .control_reg = AS3722_SD4_CONTROL_REG,
152 .control_reg = AS3722_SD5_CONTROL_REG,
165 .control_reg = AS3722_SD6_CONTROL_REG,
427 if (!as3722_reg_lookup[id].control_reg) in as3722_sd_get_mode()
430 ret = as3722_read(as3722, as3722_reg_lookup[id].control_reg, &val); in as3722_sd_get_mode()
[all …]
Danatop-regulator.c166 u32 control_reg; in anatop_regulator_probe() local
203 ret = of_property_read_u32(np, "anatop-reg-offset", &control_reg); in anatop_regulator_probe()
247 rdesc->vsel_reg = control_reg; in anatop_regulator_probe()
258 if (control_reg && sreg->delay_bit_width) { in anatop_regulator_probe()
300 rdesc->enable_reg = control_reg; in anatop_regulator_probe()
Dti-abb-regulator.c105 void __iomem *control_reg; member
270 ti_abb_rmw(regs->opp_sel_mask, info->opp_sel, abb->control_reg); in ti_abb_set_opp()
281 ti_abb_rmw(regs->opp_change_mask, 1, abb->control_reg); in ti_abb_set_opp()
725 abb->control_reg = abb->base + abb->regs->control_off; in ti_abb_probe()
730 abb->control_reg = devm_ioremap_resource(dev, res); in ti_abb_probe()
731 if (IS_ERR(abb->control_reg)) in ti_abb_probe()
732 return PTR_ERR(abb->control_reg); in ti_abb_probe()
/drivers/soc/fsl/qe/
Dqe_ic.c437 u32 temp, control_reg = QEIC_CICNR, shift = 0; in qe_ic_set_high_priority() local
460 control_reg = QEIC_CRICR; in qe_ic_set_high_priority()
464 control_reg = QEIC_CRICR; in qe_ic_set_high_priority()
471 temp = qe_ic_read(qe_ic->regs, control_reg); in qe_ic_set_high_priority()
474 qe_ic_write(qe_ic->regs, control_reg, temp); in qe_ic_set_high_priority()
/drivers/i2c/busses/
Di2c-mt65xx.c390 u16 control_reg; in mtk_i2c_init_hw() local
415 control_reg = I2C_CONTROL_ACKERR_DET_EN | in mtk_i2c_init_hw()
418 control_reg |= I2C_CONTROL_DMAACK_EN | I2C_CONTROL_ASYNC_MODE; in mtk_i2c_init_hw()
420 mtk_i2c_writew(i2c, control_reg, OFFSET_CONTROL); in mtk_i2c_init_hw()
566 u16 control_reg; in mtk_i2c_do_transfer() local
582 control_reg = mtk_i2c_readw(i2c, OFFSET_CONTROL) & in mtk_i2c_do_transfer()
585 control_reg |= I2C_CONTROL_RS; in mtk_i2c_do_transfer()
588 control_reg |= I2C_CONTROL_DIR_CHANGE | I2C_CONTROL_RS; in mtk_i2c_do_transfer()
590 mtk_i2c_writew(i2c, control_reg, OFFSET_CONTROL); in mtk_i2c_do_transfer()
/drivers/staging/fieldbus/anybuss/
Darcx-anybus.c45 u8 control_reg; member
58 cd->control_reg &= ~rst_bit; in do_reset()
60 cd->control_reg |= rst_bit; in do_reset()
61 writeb(cd->control_reg, cd->cpld_base + CPLD_CONTROL); in do_reset()
/drivers/net/ethernet/ti/
Dcpsw.c1318 u32 control_reg; in cpsw_init_host_port() local
1328 control_reg = readl(&cpsw->regs->control); in cpsw_init_host_port()
1329 control_reg |= CPSW_VLAN_AWARE | CPSW_RX_VLAN_ENCAP; in cpsw_init_host_port()
1330 writel(control_reg, &cpsw->regs->control); in cpsw_init_host_port()