Lines Matching refs:hwdata
404 struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw); in vc5_pll_recalc_rate() local
405 struct vc5_driver_data *vc5 = hwdata->vc5; in vc5_pll_recalc_rate()
421 struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw); in vc5_pll_round_rate() local
440 hwdata->div_int = div_int; in vc5_pll_round_rate()
441 hwdata->div_frc = (u32)div_frc; in vc5_pll_round_rate()
449 struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw); in vc5_pll_set_rate() local
450 struct vc5_driver_data *vc5 = hwdata->vc5; in vc5_pll_set_rate()
453 fb[0] = hwdata->div_int >> 4; in vc5_pll_set_rate()
454 fb[1] = hwdata->div_int << 4; in vc5_pll_set_rate()
455 fb[2] = hwdata->div_frc >> 16; in vc5_pll_set_rate()
456 fb[3] = hwdata->div_frc >> 8; in vc5_pll_set_rate()
457 fb[4] = hwdata->div_frc; in vc5_pll_set_rate()
471 struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw); in vc5_fod_recalc_rate() local
472 struct vc5_driver_data *vc5 = hwdata->vc5; in vc5_fod_recalc_rate()
479 regmap_bulk_read(vc5->regmap, VC5_OUT_DIV_INT(hwdata->num, 0), in vc5_fod_recalc_rate()
481 regmap_bulk_read(vc5->regmap, VC5_OUT_DIV_FRAC(hwdata->num, 0), in vc5_fod_recalc_rate()
499 struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw); in vc5_fod_round_rate() local
522 hwdata->div_int = div_int; in vc5_fod_round_rate()
523 hwdata->div_frc = (u32)div_frc; in vc5_fod_round_rate()
531 struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw); in vc5_fod_set_rate() local
532 struct vc5_driver_data *vc5 = hwdata->vc5; in vc5_fod_set_rate()
534 hwdata->div_frc >> 22, hwdata->div_frc >> 14, in vc5_fod_set_rate()
535 hwdata->div_frc >> 6, hwdata->div_frc << 2, in vc5_fod_set_rate()
538 hwdata->div_int >> 4, hwdata->div_int << 4, in vc5_fod_set_rate()
542 regmap_bulk_write(vc5->regmap, VC5_OUT_DIV_FRAC(hwdata->num, 0), in vc5_fod_set_rate()
567 struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw); in vc5_clk_out_prepare() local
568 struct vc5_driver_data *vc5 = hwdata->vc5; in vc5_clk_out_prepare()
579 regmap_read(vc5->regmap, VC5_OUT_DIV_CONTROL(hwdata->num), &src); in vc5_clk_out_prepare()
583 VC5_OUT_DIV_CONTROL(hwdata->num), in vc5_clk_out_prepare()
590 regmap_update_bits(vc5->regmap, VC5_CLK_OUTPUT_CFG(hwdata->num, 1), in vc5_clk_out_prepare()
598 struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw); in vc5_clk_out_unprepare() local
599 struct vc5_driver_data *vc5 = hwdata->vc5; in vc5_clk_out_unprepare()
602 regmap_update_bits(vc5->regmap, VC5_CLK_OUTPUT_CFG(hwdata->num, 1), in vc5_clk_out_unprepare()
608 struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw); in vc5_clk_out_get_parent() local
609 struct vc5_driver_data *vc5 = hwdata->vc5; in vc5_clk_out_get_parent()
619 regmap_read(vc5->regmap, VC5_OUT_DIV_CONTROL(hwdata->num), &src); in vc5_clk_out_get_parent()
638 struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw); in vc5_clk_out_set_parent() local
639 struct vc5_driver_data *vc5 = hwdata->vc5; in vc5_clk_out_set_parent()
653 return regmap_update_bits(vc5->regmap, VC5_OUT_DIV_CONTROL(hwdata->num), in vc5_clk_out_set_parent()