Lines Matching refs:hwdata
411 struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw); in vc5_pll_recalc_rate() local
412 struct vc5_driver_data *vc5 = hwdata->vc5; in vc5_pll_recalc_rate()
428 struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw); in vc5_pll_round_rate() local
447 hwdata->div_int = div_int; in vc5_pll_round_rate()
448 hwdata->div_frc = (u32)div_frc; in vc5_pll_round_rate()
456 struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw); in vc5_pll_set_rate() local
457 struct vc5_driver_data *vc5 = hwdata->vc5; in vc5_pll_set_rate()
460 fb[0] = hwdata->div_int >> 4; in vc5_pll_set_rate()
461 fb[1] = hwdata->div_int << 4; in vc5_pll_set_rate()
462 fb[2] = hwdata->div_frc >> 16; in vc5_pll_set_rate()
463 fb[3] = hwdata->div_frc >> 8; in vc5_pll_set_rate()
464 fb[4] = hwdata->div_frc; in vc5_pll_set_rate()
478 struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw); in vc5_fod_recalc_rate() local
479 struct vc5_driver_data *vc5 = hwdata->vc5; in vc5_fod_recalc_rate()
486 regmap_bulk_read(vc5->regmap, VC5_OUT_DIV_INT(hwdata->num, 0), in vc5_fod_recalc_rate()
488 regmap_bulk_read(vc5->regmap, VC5_OUT_DIV_FRAC(hwdata->num, 0), in vc5_fod_recalc_rate()
506 struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw); in vc5_fod_round_rate() local
529 hwdata->div_int = div_int; in vc5_fod_round_rate()
530 hwdata->div_frc = (u32)div_frc; in vc5_fod_round_rate()
538 struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw); in vc5_fod_set_rate() local
539 struct vc5_driver_data *vc5 = hwdata->vc5; in vc5_fod_set_rate()
541 hwdata->div_frc >> 22, hwdata->div_frc >> 14, in vc5_fod_set_rate()
542 hwdata->div_frc >> 6, hwdata->div_frc << 2, in vc5_fod_set_rate()
545 hwdata->div_int >> 4, hwdata->div_int << 4, in vc5_fod_set_rate()
549 regmap_bulk_write(vc5->regmap, VC5_OUT_DIV_FRAC(hwdata->num, 0), in vc5_fod_set_rate()
574 struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw); in vc5_clk_out_prepare() local
575 struct vc5_driver_data *vc5 = hwdata->vc5; in vc5_clk_out_prepare()
586 regmap_read(vc5->regmap, VC5_OUT_DIV_CONTROL(hwdata->num), &src); in vc5_clk_out_prepare()
590 VC5_OUT_DIV_CONTROL(hwdata->num), in vc5_clk_out_prepare()
597 regmap_update_bits(vc5->regmap, VC5_CLK_OUTPUT_CFG(hwdata->num, 1), in vc5_clk_out_prepare()
605 struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw); in vc5_clk_out_unprepare() local
606 struct vc5_driver_data *vc5 = hwdata->vc5; in vc5_clk_out_unprepare()
609 regmap_update_bits(vc5->regmap, VC5_CLK_OUTPUT_CFG(hwdata->num, 1), in vc5_clk_out_unprepare()
615 struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw); in vc5_clk_out_get_parent() local
616 struct vc5_driver_data *vc5 = hwdata->vc5; in vc5_clk_out_get_parent()
626 regmap_read(vc5->regmap, VC5_OUT_DIV_CONTROL(hwdata->num), &src); in vc5_clk_out_get_parent()
645 struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw); in vc5_clk_out_set_parent() local
646 struct vc5_driver_data *vc5 = hwdata->vc5; in vc5_clk_out_set_parent()
660 return regmap_update_bits(vc5->regmap, VC5_OUT_DIV_CONTROL(hwdata->num), in vc5_clk_out_set_parent()