hwdata           2463 drivers/block/mtip32xx/mtip32xx.c 	u32 hwdata;
hwdata           2464 drivers/block/mtip32xx/mtip32xx.c 	hwdata = readl(dd->mmio + HOST_HSORG);
hwdata           2467 drivers/block/mtip32xx/mtip32xx.c 	writel(hwdata |
hwdata           2490 drivers/block/mtip32xx/mtip32xx.c 	u32 hwdata;
hwdata           2500 drivers/block/mtip32xx/mtip32xx.c 	hwdata = readl(dd->mmio + HOST_HSORG);
hwdata           2505 drivers/block/mtip32xx/mtip32xx.c 	if (hwdata & 0x8) {
hwdata           2507 drivers/block/mtip32xx/mtip32xx.c 		rev = (hwdata & HSORG_HWREV) >> 8;
hwdata           2508 drivers/block/mtip32xx/mtip32xx.c 		slotgroups = (hwdata & HSORG_SLOTGROUPS) + 1;
hwdata            308 drivers/clk/clk-si5351.c 	struct si5351_hw_data *hwdata =
hwdata            311 drivers/clk/clk-si5351.c 	dev_warn(&hwdata->drvdata->client->dev, "VXCO currently unsupported\n");
hwdata            387 drivers/clk/clk-si5351.c 	struct si5351_hw_data *hwdata =
hwdata            389 drivers/clk/clk-si5351.c 	u8 mask = (hwdata->num == 0) ? SI5351_PLLA_SOURCE : SI5351_PLLB_SOURCE;
hwdata            392 drivers/clk/clk-si5351.c 	val = si5351_reg_read(hwdata->drvdata, SI5351_PLL_INPUT_SOURCE);
hwdata            399 drivers/clk/clk-si5351.c 	struct si5351_hw_data *hwdata =
hwdata            402 drivers/clk/clk-si5351.c 	if (hwdata->drvdata->variant != SI5351_VARIANT_C &&
hwdata            409 drivers/clk/clk-si5351.c 	return _si5351_pll_reparent(hwdata->drvdata, hwdata->num,
hwdata            417 drivers/clk/clk-si5351.c 	struct si5351_hw_data *hwdata =
hwdata            419 drivers/clk/clk-si5351.c 	u8 reg = (hwdata->num == 0) ? SI5351_PLLA_PARAMETERS :
hwdata            423 drivers/clk/clk-si5351.c 	if (!hwdata->params.valid)
hwdata            424 drivers/clk/clk-si5351.c 		si5351_read_parameters(hwdata->drvdata, reg, &hwdata->params);
hwdata            426 drivers/clk/clk-si5351.c 	if (hwdata->params.p3 == 0)
hwdata            430 drivers/clk/clk-si5351.c 	rate  = hwdata->params.p1 * hwdata->params.p3;
hwdata            431 drivers/clk/clk-si5351.c 	rate += 512 * hwdata->params.p3;
hwdata            432 drivers/clk/clk-si5351.c 	rate += hwdata->params.p2;
hwdata            434 drivers/clk/clk-si5351.c 	do_div(rate, 128 * hwdata->params.p3);
hwdata            436 drivers/clk/clk-si5351.c 	dev_dbg(&hwdata->drvdata->client->dev,
hwdata            439 drivers/clk/clk-si5351.c 		hwdata->params.p1, hwdata->params.p2, hwdata->params.p3,
hwdata            448 drivers/clk/clk-si5351.c 	struct si5351_hw_data *hwdata =
hwdata            480 drivers/clk/clk-si5351.c 	hwdata->params.p3  = c;
hwdata            481 drivers/clk/clk-si5351.c 	hwdata->params.p2  = (128 * b) % c;
hwdata            482 drivers/clk/clk-si5351.c 	hwdata->params.p1  = 128 * a;
hwdata            483 drivers/clk/clk-si5351.c 	hwdata->params.p1 += (128 * b / c);
hwdata            484 drivers/clk/clk-si5351.c 	hwdata->params.p1 -= 512;
hwdata            494 drivers/clk/clk-si5351.c 	dev_dbg(&hwdata->drvdata->client->dev,
hwdata            505 drivers/clk/clk-si5351.c 	struct si5351_hw_data *hwdata =
hwdata            507 drivers/clk/clk-si5351.c 	u8 reg = (hwdata->num == 0) ? SI5351_PLLA_PARAMETERS :
hwdata            511 drivers/clk/clk-si5351.c 	si5351_write_parameters(hwdata->drvdata, reg, &hwdata->params);
hwdata            514 drivers/clk/clk-si5351.c 	si5351_set_bits(hwdata->drvdata, SI5351_CLK6_CTRL + hwdata->num,
hwdata            516 drivers/clk/clk-si5351.c 		(hwdata->params.p2 == 0) ? SI5351_CLK_INTEGER_MODE : 0);
hwdata            519 drivers/clk/clk-si5351.c 	si5351_reg_write(hwdata->drvdata, SI5351_PLL_RESET,
hwdata            520 drivers/clk/clk-si5351.c 			 hwdata->num == 0 ? SI5351_PLL_RESET_A :
hwdata            523 drivers/clk/clk-si5351.c 	dev_dbg(&hwdata->drvdata->client->dev,
hwdata            526 drivers/clk/clk-si5351.c 		hwdata->params.p1, hwdata->params.p2, hwdata->params.p3,
hwdata            580 drivers/clk/clk-si5351.c 	struct si5351_hw_data *hwdata =
hwdata            584 drivers/clk/clk-si5351.c 	val = si5351_reg_read(hwdata->drvdata, SI5351_CLK0_CTRL + hwdata->num);
hwdata            591 drivers/clk/clk-si5351.c 	struct si5351_hw_data *hwdata =
hwdata            594 drivers/clk/clk-si5351.c 	return _si5351_msynth_reparent(hwdata->drvdata, hwdata->num,
hwdata            602 drivers/clk/clk-si5351.c 	struct si5351_hw_data *hwdata =
hwdata            604 drivers/clk/clk-si5351.c 	u8 reg = si5351_msynth_params_address(hwdata->num);
hwdata            608 drivers/clk/clk-si5351.c 	if (!hwdata->params.valid)
hwdata            609 drivers/clk/clk-si5351.c 		si5351_read_parameters(hwdata->drvdata, reg, &hwdata->params);
hwdata            616 drivers/clk/clk-si5351.c 	if (hwdata->num > 5) {
hwdata            617 drivers/clk/clk-si5351.c 		m = hwdata->params.p1;
hwdata            618 drivers/clk/clk-si5351.c 	} else if (hwdata->params.p3 == 0) {
hwdata            620 drivers/clk/clk-si5351.c 	} else if ((si5351_reg_read(hwdata->drvdata, reg + 2) &
hwdata            624 drivers/clk/clk-si5351.c 		rate *= 128 * hwdata->params.p3;
hwdata            625 drivers/clk/clk-si5351.c 		m = hwdata->params.p1 * hwdata->params.p3;
hwdata            626 drivers/clk/clk-si5351.c 		m += hwdata->params.p2;
hwdata            627 drivers/clk/clk-si5351.c 		m += 512 * hwdata->params.p3;
hwdata            634 drivers/clk/clk-si5351.c 	dev_dbg(&hwdata->drvdata->client->dev,
hwdata            637 drivers/clk/clk-si5351.c 		hwdata->params.p1, hwdata->params.p2, hwdata->params.p3,
hwdata            646 drivers/clk/clk-si5351.c 	struct si5351_hw_data *hwdata =
hwdata            653 drivers/clk/clk-si5351.c 	if (hwdata->num >= 6 && rate > SI5351_MULTISYNTH67_MAX_FREQ)
hwdata            683 drivers/clk/clk-si5351.c 	} else if (hwdata->num >= 6) {
hwdata            732 drivers/clk/clk-si5351.c 		hwdata->params.p3 = 1;
hwdata            733 drivers/clk/clk-si5351.c 		hwdata->params.p2 = 0;
hwdata            734 drivers/clk/clk-si5351.c 		hwdata->params.p1 = 0;
hwdata            735 drivers/clk/clk-si5351.c 	} else if (hwdata->num >= 6) {
hwdata            736 drivers/clk/clk-si5351.c 		hwdata->params.p3 = 0;
hwdata            737 drivers/clk/clk-si5351.c 		hwdata->params.p2 = 0;
hwdata            738 drivers/clk/clk-si5351.c 		hwdata->params.p1 = a;
hwdata            740 drivers/clk/clk-si5351.c 		hwdata->params.p3  = c;
hwdata            741 drivers/clk/clk-si5351.c 		hwdata->params.p2  = (128 * b) % c;
hwdata            742 drivers/clk/clk-si5351.c 		hwdata->params.p1  = 128 * a;
hwdata            743 drivers/clk/clk-si5351.c 		hwdata->params.p1 += (128 * b / c);
hwdata            744 drivers/clk/clk-si5351.c 		hwdata->params.p1 -= 512;
hwdata            747 drivers/clk/clk-si5351.c 	dev_dbg(&hwdata->drvdata->client->dev,
hwdata            758 drivers/clk/clk-si5351.c 	struct si5351_hw_data *hwdata =
hwdata            760 drivers/clk/clk-si5351.c 	u8 reg = si5351_msynth_params_address(hwdata->num);
hwdata            764 drivers/clk/clk-si5351.c 	si5351_write_parameters(hwdata->drvdata, reg, &hwdata->params);
hwdata            770 drivers/clk/clk-si5351.c 	if (hwdata->num < 6) {
hwdata            771 drivers/clk/clk-si5351.c 		si5351_set_bits(hwdata->drvdata, reg + 2,
hwdata            774 drivers/clk/clk-si5351.c 		si5351_set_bits(hwdata->drvdata, SI5351_CLK0_CTRL + hwdata->num,
hwdata            776 drivers/clk/clk-si5351.c 			(hwdata->params.p2 == 0) ? SI5351_CLK_INTEGER_MODE : 0);
hwdata            779 drivers/clk/clk-si5351.c 	dev_dbg(&hwdata->drvdata->client->dev,
hwdata            782 drivers/clk/clk-si5351.c 		hwdata->params.p1, hwdata->params.p2, hwdata->params.p3,
hwdata            923 drivers/clk/clk-si5351.c 	struct si5351_hw_data *hwdata =
hwdata            926 drivers/clk/clk-si5351.c 		hwdata->drvdata->client->dev.platform_data;
hwdata            928 drivers/clk/clk-si5351.c 	si5351_set_bits(hwdata->drvdata, SI5351_CLK0_CTRL + hwdata->num,
hwdata            935 drivers/clk/clk-si5351.c 	if (pdata->clkout[hwdata->num].pll_reset)
hwdata            936 drivers/clk/clk-si5351.c 		_si5351_clkout_reset_pll(hwdata->drvdata, hwdata->num);
hwdata            938 drivers/clk/clk-si5351.c 	si5351_set_bits(hwdata->drvdata, SI5351_OUTPUT_ENABLE_CTRL,
hwdata            939 drivers/clk/clk-si5351.c 			(1 << hwdata->num), 0);
hwdata            945 drivers/clk/clk-si5351.c 	struct si5351_hw_data *hwdata =
hwdata            948 drivers/clk/clk-si5351.c 	si5351_set_bits(hwdata->drvdata, SI5351_CLK0_CTRL + hwdata->num,
hwdata            950 drivers/clk/clk-si5351.c 	si5351_set_bits(hwdata->drvdata, SI5351_OUTPUT_ENABLE_CTRL,
hwdata            951 drivers/clk/clk-si5351.c 			(1 << hwdata->num), (1 << hwdata->num));
hwdata            956 drivers/clk/clk-si5351.c 	struct si5351_hw_data *hwdata =
hwdata            961 drivers/clk/clk-si5351.c 	val = si5351_reg_read(hwdata->drvdata, SI5351_CLK0_CTRL + hwdata->num);
hwdata            982 drivers/clk/clk-si5351.c 	struct si5351_hw_data *hwdata =
hwdata           1001 drivers/clk/clk-si5351.c 	return _si5351_clkout_reparent(hwdata->drvdata, hwdata->num, parent);
hwdata           1007 drivers/clk/clk-si5351.c 	struct si5351_hw_data *hwdata =
hwdata           1012 drivers/clk/clk-si5351.c 	if (hwdata->num <= 5)
hwdata           1013 drivers/clk/clk-si5351.c 		reg = si5351_msynth_params_address(hwdata->num) + 2;
hwdata           1017 drivers/clk/clk-si5351.c 	rdiv = si5351_reg_read(hwdata->drvdata, reg);
hwdata           1018 drivers/clk/clk-si5351.c 	if (hwdata->num == 6) {
hwdata           1031 drivers/clk/clk-si5351.c 	struct si5351_hw_data *hwdata =
hwdata           1036 drivers/clk/clk-si5351.c 	if (hwdata->num >= 6 && rate > SI5351_CLKOUT67_MAX_FREQ)
hwdata           1073 drivers/clk/clk-si5351.c 	dev_dbg(&hwdata->drvdata->client->dev,
hwdata           1084 drivers/clk/clk-si5351.c 	struct si5351_hw_data *hwdata =
hwdata           1103 drivers/clk/clk-si5351.c 	switch (hwdata->num) {
hwdata           1105 drivers/clk/clk-si5351.c 		si5351_set_bits(hwdata->drvdata, SI5351_CLK6_7_OUTPUT_DIVIDER,
hwdata           1109 drivers/clk/clk-si5351.c 		si5351_set_bits(hwdata->drvdata, SI5351_CLK6_7_OUTPUT_DIVIDER,
hwdata           1114 drivers/clk/clk-si5351.c 		si5351_set_bits(hwdata->drvdata,
hwdata           1115 drivers/clk/clk-si5351.c 				si5351_msynth_params_address(hwdata->num) + 2,
hwdata           1121 drivers/clk/clk-si5351.c 	si5351_set_bits(hwdata->drvdata, SI5351_CLK0_CTRL + hwdata->num,
hwdata           1124 drivers/clk/clk-si5351.c 	dev_dbg(&hwdata->drvdata->client->dev,
hwdata            404 drivers/clk/clk-versaclock5.c 	struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw);
hwdata            405 drivers/clk/clk-versaclock5.c 	struct vc5_driver_data *vc5 = hwdata->vc5;
hwdata            421 drivers/clk/clk-versaclock5.c 	struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw);
hwdata            440 drivers/clk/clk-versaclock5.c 	hwdata->div_int = div_int;
hwdata            441 drivers/clk/clk-versaclock5.c 	hwdata->div_frc = (u32)div_frc;
hwdata            449 drivers/clk/clk-versaclock5.c 	struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw);
hwdata            450 drivers/clk/clk-versaclock5.c 	struct vc5_driver_data *vc5 = hwdata->vc5;
hwdata            453 drivers/clk/clk-versaclock5.c 	fb[0] = hwdata->div_int >> 4;
hwdata            454 drivers/clk/clk-versaclock5.c 	fb[1] = hwdata->div_int << 4;
hwdata            455 drivers/clk/clk-versaclock5.c 	fb[2] = hwdata->div_frc >> 16;
hwdata            456 drivers/clk/clk-versaclock5.c 	fb[3] = hwdata->div_frc >> 8;
hwdata            457 drivers/clk/clk-versaclock5.c 	fb[4] = hwdata->div_frc;
hwdata            471 drivers/clk/clk-versaclock5.c 	struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw);
hwdata            472 drivers/clk/clk-versaclock5.c 	struct vc5_driver_data *vc5 = hwdata->vc5;
hwdata            479 drivers/clk/clk-versaclock5.c 	regmap_bulk_read(vc5->regmap, VC5_OUT_DIV_INT(hwdata->num, 0),
hwdata            481 drivers/clk/clk-versaclock5.c 	regmap_bulk_read(vc5->regmap, VC5_OUT_DIV_FRAC(hwdata->num, 0),
hwdata            499 drivers/clk/clk-versaclock5.c 	struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw);
hwdata            522 drivers/clk/clk-versaclock5.c 	hwdata->div_int = div_int;
hwdata            523 drivers/clk/clk-versaclock5.c 	hwdata->div_frc = (u32)div_frc;
hwdata            531 drivers/clk/clk-versaclock5.c 	struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw);
hwdata            532 drivers/clk/clk-versaclock5.c 	struct vc5_driver_data *vc5 = hwdata->vc5;
hwdata            534 drivers/clk/clk-versaclock5.c 		hwdata->div_frc >> 22, hwdata->div_frc >> 14,
hwdata            535 drivers/clk/clk-versaclock5.c 		hwdata->div_frc >> 6, hwdata->div_frc << 2,
hwdata            538 drivers/clk/clk-versaclock5.c 		hwdata->div_int >> 4, hwdata->div_int << 4,
hwdata            542 drivers/clk/clk-versaclock5.c 	regmap_bulk_write(vc5->regmap, VC5_OUT_DIV_FRAC(hwdata->num, 0),
hwdata            567 drivers/clk/clk-versaclock5.c 	struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw);
hwdata            568 drivers/clk/clk-versaclock5.c 	struct vc5_driver_data *vc5 = hwdata->vc5;
hwdata            579 drivers/clk/clk-versaclock5.c 	regmap_read(vc5->regmap, VC5_OUT_DIV_CONTROL(hwdata->num), &src);
hwdata            583 drivers/clk/clk-versaclock5.c 					 VC5_OUT_DIV_CONTROL(hwdata->num),
hwdata            590 drivers/clk/clk-versaclock5.c 	regmap_update_bits(vc5->regmap, VC5_CLK_OUTPUT_CFG(hwdata->num, 1),
hwdata            598 drivers/clk/clk-versaclock5.c 	struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw);
hwdata            599 drivers/clk/clk-versaclock5.c 	struct vc5_driver_data *vc5 = hwdata->vc5;
hwdata            602 drivers/clk/clk-versaclock5.c 	regmap_update_bits(vc5->regmap, VC5_CLK_OUTPUT_CFG(hwdata->num, 1),
hwdata            608 drivers/clk/clk-versaclock5.c 	struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw);
hwdata            609 drivers/clk/clk-versaclock5.c 	struct vc5_driver_data *vc5 = hwdata->vc5;
hwdata            619 drivers/clk/clk-versaclock5.c 	regmap_read(vc5->regmap, VC5_OUT_DIV_CONTROL(hwdata->num), &src);
hwdata            638 drivers/clk/clk-versaclock5.c 	struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw);
hwdata            639 drivers/clk/clk-versaclock5.c 	struct vc5_driver_data *vc5 = hwdata->vc5;
hwdata            653 drivers/clk/clk-versaclock5.c 	return regmap_update_bits(vc5->regmap, VC5_OUT_DIV_CONTROL(hwdata->num),
hwdata            198 drivers/i2c/busses/i2c-imx.c 	const struct imx_i2c_hwdata	*hwdata;
hwdata            267 drivers/i2c/busses/i2c-imx.c 	return i2c_imx->hwdata->devtype == IMX1_I2C;
hwdata            273 drivers/i2c/busses/i2c-imx.c 	writeb(val, i2c_imx->base + (reg << i2c_imx->hwdata->regshift));
hwdata            279 drivers/i2c/busses/i2c-imx.c 	return readb(i2c_imx->base + (reg << i2c_imx->hwdata->regshift));
hwdata            304 drivers/i2c/busses/i2c-imx.c 				(IMX_I2C_I2DR << i2c_imx->hwdata->regshift);
hwdata            323 drivers/i2c/busses/i2c-imx.c 				(IMX_I2C_I2DR << i2c_imx->hwdata->regshift);
hwdata            480 drivers/i2c/busses/i2c-imx.c 	struct imx_i2c_clk_pair *i2c_clk_div = i2c_imx->hwdata->clk_div;
hwdata            493 drivers/i2c/busses/i2c-imx.c 	else if (div > i2c_clk_div[i2c_imx->hwdata->ndivs - 1].div)
hwdata            494 drivers/i2c/busses/i2c-imx.c 		i = i2c_imx->hwdata->ndivs - 1;
hwdata            542 drivers/i2c/busses/i2c-imx.c 	imx_i2c_write_reg(i2c_imx->hwdata->i2sr_clr_opcode, i2c_imx, IMX_I2C_I2SR);
hwdata            543 drivers/i2c/busses/i2c-imx.c 	imx_i2c_write_reg(i2c_imx->hwdata->i2cr_ien_opcode, i2c_imx, IMX_I2C_I2CR);
hwdata            587 drivers/i2c/busses/i2c-imx.c 	temp = i2c_imx->hwdata->i2cr_ien_opcode ^ I2CR_IEN,
hwdata            601 drivers/i2c/busses/i2c-imx.c 		temp |= (i2c_imx->hwdata->i2sr_clr_opcode & I2SR_IIF);
hwdata           1086 drivers/i2c/busses/i2c-imx.c 		i2c_imx->hwdata = match;
hwdata           1088 drivers/i2c/busses/i2c-imx.c 		i2c_imx->hwdata = (struct imx_i2c_hwdata *)
hwdata           1152 drivers/i2c/busses/i2c-imx.c 	imx_i2c_write_reg(i2c_imx->hwdata->i2cr_ien_opcode ^ I2CR_IEN,
hwdata           1154 drivers/i2c/busses/i2c-imx.c 	imx_i2c_write_reg(i2c_imx->hwdata->i2sr_clr_opcode, i2c_imx, IMX_I2C_I2SR);