Lines Matching refs:hwdata

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