Home
last modified time | relevance | path

Searched refs:hwdata (Results 1 – 3 of 3) sorted by relevance

/drivers/clk/
Dclk-si5351.c312 struct si5351_hw_data *hwdata = in si5351_vxco_prepare() local
315 dev_warn(&hwdata->drvdata->client->dev, "VXCO currently unsupported\n"); in si5351_vxco_prepare()
391 struct si5351_hw_data *hwdata = in si5351_pll_get_parent() local
393 u8 mask = (hwdata->num == 0) ? SI5351_PLLA_SOURCE : SI5351_PLLB_SOURCE; in si5351_pll_get_parent()
396 val = si5351_reg_read(hwdata->drvdata, SI5351_PLL_INPUT_SOURCE); in si5351_pll_get_parent()
403 struct si5351_hw_data *hwdata = in si5351_pll_set_parent() local
406 if (hwdata->drvdata->variant != SI5351_VARIANT_C && in si5351_pll_set_parent()
413 return _si5351_pll_reparent(hwdata->drvdata, hwdata->num, in si5351_pll_set_parent()
421 struct si5351_hw_data *hwdata = in si5351_pll_recalc_rate() local
423 u8 reg = (hwdata->num == 0) ? SI5351_PLLA_PARAMETERS : in si5351_pll_recalc_rate()
[all …]
/drivers/i2c/busses/
Di2c-imx.c183 const struct imx_i2c_hwdata *hwdata; member
239 return i2c_imx->hwdata->devtype == IMX1_I2C; in is_imx1_i2c()
245 writeb(val, i2c_imx->base + (reg << i2c_imx->hwdata->regshift)); in imx_i2c_write_reg()
251 return readb(i2c_imx->base + (reg << i2c_imx->hwdata->regshift)); in imx_i2c_read_reg()
315 struct imx_i2c_clk_pair *i2c_clk_div = i2c_imx->hwdata->clk_div; in i2c_imx_set_clk()
330 else if (div > i2c_clk_div[i2c_imx->hwdata->ndivs - 1].div) in i2c_imx_set_clk()
331 i = i2c_imx->hwdata->ndivs - 1; in i2c_imx_set_clk()
369 imx_i2c_write_reg(i2c_imx->hwdata->i2sr_clr_opcode, i2c_imx, IMX_I2C_I2SR); in i2c_imx_start()
370 imx_i2c_write_reg(i2c_imx->hwdata->i2cr_ien_opcode, i2c_imx, IMX_I2C_I2CR); in i2c_imx_start()
414 temp = i2c_imx->hwdata->i2cr_ien_opcode ^ I2CR_IEN, in i2c_imx_stop()
[all …]
/drivers/block/mtip32xx/
Dmtip32xx.c2800 u32 hwdata; in hba_setup() local
2801 hwdata = readl(dd->mmio + HOST_HSORG); in hba_setup()
2804 writel(hwdata | in hba_setup()
2827 u32 hwdata; in mtip_detect_product() local
2837 hwdata = readl(dd->mmio + HOST_HSORG); in mtip_detect_product()
2842 if (hwdata & 0x8) { in mtip_detect_product()
2844 rev = (hwdata & HSORG_HWREV) >> 8; in mtip_detect_product()
2845 slotgroups = (hwdata & HSORG_SLOTGROUPS) + 1; in mtip_detect_product()