Lines Matching refs:clkout
59 struct s3c24xx_clkout *clkout = to_s3c24xx_clkout(hw); in s3c24xx_clkout_get_parent() local
63 val = clkout->modify_misccr(0, 0) >> clkout->shift; in s3c24xx_clkout_get_parent()
64 val >>= clkout->shift; in s3c24xx_clkout_get_parent()
65 val &= clkout->mask; in s3c24xx_clkout_get_parent()
75 struct s3c24xx_clkout *clkout = to_s3c24xx_clkout(hw); in s3c24xx_clkout_set_parent() local
77 clkout->modify_misccr((clkout->mask << clkout->shift), in s3c24xx_clkout_set_parent()
78 (index << clkout->shift)); in s3c24xx_clkout_set_parent()
94 struct s3c24xx_clkout *clkout; in s3c24xx_register_clkout() local
102 clkout = kzalloc(sizeof(*clkout), GFP_KERNEL); in s3c24xx_register_clkout()
103 if (!clkout) in s3c24xx_register_clkout()
112 clkout->shift = shift; in s3c24xx_register_clkout()
113 clkout->mask = mask; in s3c24xx_register_clkout()
114 clkout->hw.init = &init; in s3c24xx_register_clkout()
115 clkout->modify_misccr = pdata->modify_misccr; in s3c24xx_register_clkout()
117 ret = clk_hw_register(dev, &clkout->hw); in s3c24xx_register_clkout()
121 return &clkout->hw; in s3c24xx_register_clkout()