Lines Matching refs:hwdata

432 	struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw);  in vc5_pll_recalc_rate()  local
433 struct vc5_driver_data *vc5 = hwdata->vc5; in vc5_pll_recalc_rate()
449 struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw); in vc5_pll_round_rate() local
468 hwdata->div_int = div_int; in vc5_pll_round_rate()
469 hwdata->div_frc = (u32)div_frc; in vc5_pll_round_rate()
477 struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw); in vc5_pll_set_rate() local
478 struct vc5_driver_data *vc5 = hwdata->vc5; in vc5_pll_set_rate()
481 fb[0] = hwdata->div_int >> 4; in vc5_pll_set_rate()
482 fb[1] = hwdata->div_int << 4; in vc5_pll_set_rate()
483 fb[2] = hwdata->div_frc >> 16; in vc5_pll_set_rate()
484 fb[3] = hwdata->div_frc >> 8; in vc5_pll_set_rate()
485 fb[4] = hwdata->div_frc; in vc5_pll_set_rate()
499 struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw); in vc5_fod_recalc_rate() local
500 struct vc5_driver_data *vc5 = hwdata->vc5; in vc5_fod_recalc_rate()
507 regmap_bulk_read(vc5->regmap, VC5_OUT_DIV_INT(hwdata->num, 0), in vc5_fod_recalc_rate()
509 regmap_bulk_read(vc5->regmap, VC5_OUT_DIV_FRAC(hwdata->num, 0), in vc5_fod_recalc_rate()
527 struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw); in vc5_fod_round_rate() local
550 hwdata->div_int = div_int; in vc5_fod_round_rate()
551 hwdata->div_frc = (u32)div_frc; in vc5_fod_round_rate()
559 struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw); in vc5_fod_set_rate() local
560 struct vc5_driver_data *vc5 = hwdata->vc5; in vc5_fod_set_rate()
562 hwdata->div_frc >> 22, hwdata->div_frc >> 14, in vc5_fod_set_rate()
563 hwdata->div_frc >> 6, hwdata->div_frc << 2, in vc5_fod_set_rate()
566 hwdata->div_int >> 4, hwdata->div_int << 4, in vc5_fod_set_rate()
571 ret = regmap_bulk_write(vc5->regmap, VC5_OUT_DIV_FRAC(hwdata->num, 0), in vc5_fod_set_rate()
599 struct vc5_out_data *hwdata = container_of(hw, struct vc5_out_data, hw); in vc5_clk_out_prepare() local
600 struct vc5_driver_data *vc5 = hwdata->vc5; in vc5_clk_out_prepare()
617 VC5_RESERVED_X0(hwdata->num), in vc5_clk_out_prepare()
627 ret = regmap_read(vc5->regmap, VC5_OUT_DIV_CONTROL(hwdata->num), &src); in vc5_clk_out_prepare()
634 VC5_OUT_DIV_CONTROL(hwdata->num), in vc5_clk_out_prepare()
641 ret = regmap_set_bits(vc5->regmap, VC5_CLK_OUTPUT_CFG(hwdata->num, 1), in vc5_clk_out_prepare()
646 if (hwdata->clk_output_cfg0_mask) { in vc5_clk_out_prepare()
648 hwdata->num, hwdata->clk_output_cfg0_mask, in vc5_clk_out_prepare()
649 hwdata->clk_output_cfg0); in vc5_clk_out_prepare()
652 VC5_CLK_OUTPUT_CFG(hwdata->num, 0), in vc5_clk_out_prepare()
653 hwdata->clk_output_cfg0_mask, in vc5_clk_out_prepare()
654 hwdata->clk_output_cfg0); in vc5_clk_out_prepare()
664 struct vc5_out_data *hwdata = container_of(hw, struct vc5_out_data, hw); in vc5_clk_out_unprepare() local
665 struct vc5_driver_data *vc5 = hwdata->vc5; in vc5_clk_out_unprepare()
668 regmap_clear_bits(vc5->regmap, VC5_CLK_OUTPUT_CFG(hwdata->num, 1), in vc5_clk_out_unprepare()
674 struct vc5_out_data *hwdata = container_of(hw, struct vc5_out_data, hw); in vc5_clk_out_get_parent() local
675 struct vc5_driver_data *vc5 = hwdata->vc5; in vc5_clk_out_get_parent()
686 ret = regmap_read(vc5->regmap, VC5_OUT_DIV_CONTROL(hwdata->num), &src); in vc5_clk_out_get_parent()
708 struct vc5_out_data *hwdata = container_of(hw, struct vc5_out_data, hw); in vc5_clk_out_set_parent() local
709 struct vc5_driver_data *vc5 = hwdata->vc5; in vc5_clk_out_set_parent()
723 return regmap_update_bits(vc5->regmap, VC5_OUT_DIV_CONTROL(hwdata->num), in vc5_clk_out_set_parent()