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
450 struct vc5_driver_data *vc5 = hwdata->vc5; in vc5_pll_round_rate()
466 hwdata->div_int = div_int; in vc5_pll_round_rate()
467 hwdata->div_frc = (u32)div_frc; in vc5_pll_round_rate()
475 struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw); in vc5_pll_set_rate() local
476 struct vc5_driver_data *vc5 = hwdata->vc5; in vc5_pll_set_rate()
479 fb[0] = hwdata->div_int >> 4; in vc5_pll_set_rate()
480 fb[1] = hwdata->div_int << 4; in vc5_pll_set_rate()
481 fb[2] = hwdata->div_frc >> 16; in vc5_pll_set_rate()
482 fb[3] = hwdata->div_frc >> 8; in vc5_pll_set_rate()
483 fb[4] = hwdata->div_frc; in vc5_pll_set_rate()
497 struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw); in vc5_fod_recalc_rate() local
498 struct vc5_driver_data *vc5 = hwdata->vc5; in vc5_fod_recalc_rate()
505 regmap_bulk_read(vc5->regmap, VC5_OUT_DIV_INT(hwdata->num, 0), in vc5_fod_recalc_rate()
507 regmap_bulk_read(vc5->regmap, VC5_OUT_DIV_FRAC(hwdata->num, 0), in vc5_fod_recalc_rate()
525 struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw); in vc5_fod_round_rate() local
548 hwdata->div_int = div_int; in vc5_fod_round_rate()
549 hwdata->div_frc = (u32)div_frc; in vc5_fod_round_rate()
557 struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw); in vc5_fod_set_rate() local
558 struct vc5_driver_data *vc5 = hwdata->vc5; in vc5_fod_set_rate()
560 hwdata->div_frc >> 22, hwdata->div_frc >> 14, in vc5_fod_set_rate()
561 hwdata->div_frc >> 6, hwdata->div_frc << 2, in vc5_fod_set_rate()
564 hwdata->div_int >> 4, hwdata->div_int << 4, in vc5_fod_set_rate()
569 ret = regmap_bulk_write(vc5->regmap, VC5_OUT_DIV_FRAC(hwdata->num, 0), in vc5_fod_set_rate()
597 struct vc5_out_data *hwdata = container_of(hw, struct vc5_out_data, hw); in vc5_clk_out_prepare() local
598 struct vc5_driver_data *vc5 = hwdata->vc5; in vc5_clk_out_prepare()
615 VC5_RESERVED_X0(hwdata->num), in vc5_clk_out_prepare()
625 ret = regmap_read(vc5->regmap, VC5_OUT_DIV_CONTROL(hwdata->num), &src); in vc5_clk_out_prepare()
632 VC5_OUT_DIV_CONTROL(hwdata->num), in vc5_clk_out_prepare()
639 ret = regmap_set_bits(vc5->regmap, VC5_CLK_OUTPUT_CFG(hwdata->num, 1), in vc5_clk_out_prepare()
644 if (hwdata->clk_output_cfg0_mask) { in vc5_clk_out_prepare()
646 hwdata->num, hwdata->clk_output_cfg0_mask, in vc5_clk_out_prepare()
647 hwdata->clk_output_cfg0); in vc5_clk_out_prepare()
650 VC5_CLK_OUTPUT_CFG(hwdata->num, 0), in vc5_clk_out_prepare()
651 hwdata->clk_output_cfg0_mask, in vc5_clk_out_prepare()
652 hwdata->clk_output_cfg0); in vc5_clk_out_prepare()
662 struct vc5_out_data *hwdata = container_of(hw, struct vc5_out_data, hw); in vc5_clk_out_unprepare() local
663 struct vc5_driver_data *vc5 = hwdata->vc5; in vc5_clk_out_unprepare()
666 regmap_clear_bits(vc5->regmap, VC5_CLK_OUTPUT_CFG(hwdata->num, 1), in vc5_clk_out_unprepare()
672 struct vc5_out_data *hwdata = container_of(hw, struct vc5_out_data, hw); in vc5_clk_out_get_parent() local
673 struct vc5_driver_data *vc5 = hwdata->vc5; in vc5_clk_out_get_parent()
684 ret = regmap_read(vc5->regmap, VC5_OUT_DIV_CONTROL(hwdata->num), &src); in vc5_clk_out_get_parent()
706 struct vc5_out_data *hwdata = container_of(hw, struct vc5_out_data, hw); in vc5_clk_out_set_parent() local
707 struct vc5_driver_data *vc5 = hwdata->vc5; in vc5_clk_out_set_parent()
721 return regmap_update_bits(vc5->regmap, VC5_OUT_DIV_CONTROL(hwdata->num), in vc5_clk_out_set_parent()