Lines Matching refs:hym8563
78 struct hym8563 { struct
304 #define clkout_hw_to_hym8563(_hw) container_of(_hw, struct hym8563, clkout_hw)
316 struct hym8563 *hym8563 = clkout_hw_to_hym8563(hw); in hym8563_clkout_recalc_rate() local
317 struct i2c_client *client = hym8563->client; in hym8563_clkout_recalc_rate()
342 struct hym8563 *hym8563 = clkout_hw_to_hym8563(hw); in hym8563_clkout_set_rate() local
343 struct i2c_client *client = hym8563->client; in hym8563_clkout_set_rate()
363 struct hym8563 *hym8563 = clkout_hw_to_hym8563(hw); in hym8563_clkout_control() local
364 struct i2c_client *client = hym8563->client; in hym8563_clkout_control()
390 struct hym8563 *hym8563 = clkout_hw_to_hym8563(hw); in hym8563_clkout_is_prepared() local
391 struct i2c_client *client = hym8563->client; in hym8563_clkout_is_prepared()
409 static struct clk *hym8563_clkout_register_clk(struct hym8563 *hym8563) in hym8563_clkout_register_clk() argument
411 struct i2c_client *client = hym8563->client; in hym8563_clkout_register_clk()
421 hym8563->clkout_hw.init = &init; in hym8563_clkout_register_clk()
427 clk = clk_register(&client->dev, &hym8563->clkout_hw); in hym8563_clkout_register_clk()
444 struct hym8563 *hym8563 = (struct hym8563 *)dev_id; in hym8563_irq() local
445 struct i2c_client *client = hym8563->client; in hym8563_irq()
446 struct mutex *lock = &hym8563->rtc->ops_lock; in hym8563_irq()
535 struct hym8563 *hym8563; in hym8563_probe() local
551 hym8563 = devm_kzalloc(&client->dev, sizeof(*hym8563), GFP_KERNEL); in hym8563_probe()
552 if (!hym8563) in hym8563_probe()
555 hym8563->client = client; in hym8563_probe()
556 i2c_set_clientdata(client, hym8563); in hym8563_probe()
568 client->name, hym8563); in hym8563_probe()
594 hym8563->rtc = devm_rtc_device_register(&client->dev, client->name, in hym8563_probe()
596 if (IS_ERR(hym8563->rtc)) in hym8563_probe()
597 return PTR_ERR(hym8563->rtc); in hym8563_probe()
600 hym8563->rtc->uie_unsupported = 1; in hym8563_probe()
603 hym8563_clkout_register_clk(hym8563); in hym8563_probe()