Lines Matching refs:hwdata
433 struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw); in vc5_pll_recalc_rate() local
434 struct vc5_driver_data *vc5 = hwdata->vc5; in vc5_pll_recalc_rate()
450 struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw); in vc5_pll_round_rate() local
451 struct vc5_driver_data *vc5 = hwdata->vc5; in vc5_pll_round_rate()
467 hwdata->div_int = div_int; in vc5_pll_round_rate()
468 hwdata->div_frc = (u32)div_frc; in vc5_pll_round_rate()
476 struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw); in vc5_pll_set_rate() local
477 struct vc5_driver_data *vc5 = hwdata->vc5; in vc5_pll_set_rate()
480 fb[0] = hwdata->div_int >> 4; in vc5_pll_set_rate()
481 fb[1] = hwdata->div_int << 4; in vc5_pll_set_rate()
482 fb[2] = hwdata->div_frc >> 16; in vc5_pll_set_rate()
483 fb[3] = hwdata->div_frc >> 8; in vc5_pll_set_rate()
484 fb[4] = hwdata->div_frc; in vc5_pll_set_rate()
498 struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw); in vc5_fod_recalc_rate() local
499 struct vc5_driver_data *vc5 = hwdata->vc5; in vc5_fod_recalc_rate()
506 regmap_bulk_read(vc5->regmap, VC5_OUT_DIV_INT(hwdata->num, 0), in vc5_fod_recalc_rate()
508 regmap_bulk_read(vc5->regmap, VC5_OUT_DIV_FRAC(hwdata->num, 0), in vc5_fod_recalc_rate()
526 struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw); in vc5_fod_round_rate() local
549 hwdata->div_int = div_int; in vc5_fod_round_rate()
550 hwdata->div_frc = (u32)div_frc; in vc5_fod_round_rate()
558 struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw); in vc5_fod_set_rate() local
559 struct vc5_driver_data *vc5 = hwdata->vc5; in vc5_fod_set_rate()
561 hwdata->div_frc >> 22, hwdata->div_frc >> 14, in vc5_fod_set_rate()
562 hwdata->div_frc >> 6, hwdata->div_frc << 2, in vc5_fod_set_rate()
565 hwdata->div_int >> 4, hwdata->div_int << 4, in vc5_fod_set_rate()
570 ret = regmap_bulk_write(vc5->regmap, VC5_OUT_DIV_FRAC(hwdata->num, 0), in vc5_fod_set_rate()
598 struct vc5_out_data *hwdata = container_of(hw, struct vc5_out_data, hw); in vc5_clk_out_prepare() local
599 struct vc5_driver_data *vc5 = hwdata->vc5; in vc5_clk_out_prepare()
616 VC5_RESERVED_X0(hwdata->num), in vc5_clk_out_prepare()
626 ret = regmap_read(vc5->regmap, VC5_OUT_DIV_CONTROL(hwdata->num), &src); in vc5_clk_out_prepare()
633 VC5_OUT_DIV_CONTROL(hwdata->num), in vc5_clk_out_prepare()
640 ret = regmap_set_bits(vc5->regmap, VC5_CLK_OUTPUT_CFG(hwdata->num, 1), in vc5_clk_out_prepare()
645 if (hwdata->clk_output_cfg0_mask) { in vc5_clk_out_prepare()
647 hwdata->num, hwdata->clk_output_cfg0_mask, in vc5_clk_out_prepare()
648 hwdata->clk_output_cfg0); in vc5_clk_out_prepare()
651 VC5_CLK_OUTPUT_CFG(hwdata->num, 0), in vc5_clk_out_prepare()
652 hwdata->clk_output_cfg0_mask, in vc5_clk_out_prepare()
653 hwdata->clk_output_cfg0); in vc5_clk_out_prepare()
663 struct vc5_out_data *hwdata = container_of(hw, struct vc5_out_data, hw); in vc5_clk_out_unprepare() local
664 struct vc5_driver_data *vc5 = hwdata->vc5; in vc5_clk_out_unprepare()
667 regmap_clear_bits(vc5->regmap, VC5_CLK_OUTPUT_CFG(hwdata->num, 1), in vc5_clk_out_unprepare()
673 struct vc5_out_data *hwdata = container_of(hw, struct vc5_out_data, hw); in vc5_clk_out_get_parent() local
674 struct vc5_driver_data *vc5 = hwdata->vc5; in vc5_clk_out_get_parent()
685 ret = regmap_read(vc5->regmap, VC5_OUT_DIV_CONTROL(hwdata->num), &src); in vc5_clk_out_get_parent()
707 struct vc5_out_data *hwdata = container_of(hw, struct vc5_out_data, hw); in vc5_clk_out_set_parent() local
708 struct vc5_driver_data *vc5 = hwdata->vc5; in vc5_clk_out_set_parent()
722 return regmap_update_bits(vc5->regmap, VC5_OUT_DIV_CONTROL(hwdata->num), in vc5_clk_out_set_parent()