Lines Matching refs:hwdata

417 	struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw);  in vc5_pll_recalc_rate()  local
418 struct vc5_driver_data *vc5 = hwdata->vc5; in vc5_pll_recalc_rate()
434 struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw); in vc5_pll_round_rate() local
453 hwdata->div_int = div_int; in vc5_pll_round_rate()
454 hwdata->div_frc = (u32)div_frc; in vc5_pll_round_rate()
462 struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw); in vc5_pll_set_rate() local
463 struct vc5_driver_data *vc5 = hwdata->vc5; in vc5_pll_set_rate()
466 fb[0] = hwdata->div_int >> 4; in vc5_pll_set_rate()
467 fb[1] = hwdata->div_int << 4; in vc5_pll_set_rate()
468 fb[2] = hwdata->div_frc >> 16; in vc5_pll_set_rate()
469 fb[3] = hwdata->div_frc >> 8; in vc5_pll_set_rate()
470 fb[4] = hwdata->div_frc; in vc5_pll_set_rate()
484 struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw); in vc5_fod_recalc_rate() local
485 struct vc5_driver_data *vc5 = hwdata->vc5; in vc5_fod_recalc_rate()
492 regmap_bulk_read(vc5->regmap, VC5_OUT_DIV_INT(hwdata->num, 0), in vc5_fod_recalc_rate()
494 regmap_bulk_read(vc5->regmap, VC5_OUT_DIV_FRAC(hwdata->num, 0), in vc5_fod_recalc_rate()
512 struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw); in vc5_fod_round_rate() local
535 hwdata->div_int = div_int; in vc5_fod_round_rate()
536 hwdata->div_frc = (u32)div_frc; in vc5_fod_round_rate()
544 struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw); in vc5_fod_set_rate() local
545 struct vc5_driver_data *vc5 = hwdata->vc5; in vc5_fod_set_rate()
547 hwdata->div_frc >> 22, hwdata->div_frc >> 14, in vc5_fod_set_rate()
548 hwdata->div_frc >> 6, hwdata->div_frc << 2, in vc5_fod_set_rate()
551 hwdata->div_int >> 4, hwdata->div_int << 4, in vc5_fod_set_rate()
555 regmap_bulk_write(vc5->regmap, VC5_OUT_DIV_FRAC(hwdata->num, 0), in vc5_fod_set_rate()
580 struct vc5_out_data *hwdata = container_of(hw, struct vc5_out_data, hw); in vc5_clk_out_prepare() local
581 struct vc5_driver_data *vc5 = hwdata->vc5; in vc5_clk_out_prepare()
598 VC5_RESERVED_X0(hwdata->num), in vc5_clk_out_prepare()
609 regmap_read(vc5->regmap, VC5_OUT_DIV_CONTROL(hwdata->num), &src); in vc5_clk_out_prepare()
613 VC5_OUT_DIV_CONTROL(hwdata->num), in vc5_clk_out_prepare()
620 regmap_update_bits(vc5->regmap, VC5_CLK_OUTPUT_CFG(hwdata->num, 1), in vc5_clk_out_prepare()
623 if (hwdata->clk_output_cfg0_mask) { in vc5_clk_out_prepare()
625 hwdata->num, hwdata->clk_output_cfg0_mask, in vc5_clk_out_prepare()
626 hwdata->clk_output_cfg0); in vc5_clk_out_prepare()
629 VC5_CLK_OUTPUT_CFG(hwdata->num, 0), in vc5_clk_out_prepare()
630 hwdata->clk_output_cfg0_mask, in vc5_clk_out_prepare()
631 hwdata->clk_output_cfg0); in vc5_clk_out_prepare()
639 struct vc5_out_data *hwdata = container_of(hw, struct vc5_out_data, hw); in vc5_clk_out_unprepare() local
640 struct vc5_driver_data *vc5 = hwdata->vc5; in vc5_clk_out_unprepare()
643 regmap_update_bits(vc5->regmap, VC5_CLK_OUTPUT_CFG(hwdata->num, 1), in vc5_clk_out_unprepare()
649 struct vc5_out_data *hwdata = container_of(hw, struct vc5_out_data, hw); in vc5_clk_out_get_parent() local
650 struct vc5_driver_data *vc5 = hwdata->vc5; in vc5_clk_out_get_parent()
660 regmap_read(vc5->regmap, VC5_OUT_DIV_CONTROL(hwdata->num), &src); in vc5_clk_out_get_parent()
679 struct vc5_out_data *hwdata = container_of(hw, struct vc5_out_data, hw); in vc5_clk_out_set_parent() local
680 struct vc5_driver_data *vc5 = hwdata->vc5; in vc5_clk_out_set_parent()
694 return regmap_update_bits(vc5->regmap, VC5_OUT_DIV_CONTROL(hwdata->num), in vc5_clk_out_set_parent()