Lines Matching refs:hym8563
78 struct hym8563 { struct
265 #define clkout_hw_to_hym8563(_hw) container_of(_hw, struct hym8563, clkout_hw)
277 struct hym8563 *hym8563 = clkout_hw_to_hym8563(hw); in hym8563_clkout_recalc_rate() local
278 struct i2c_client *client = hym8563->client; in hym8563_clkout_recalc_rate()
308 struct hym8563 *hym8563 = clkout_hw_to_hym8563(hw); in hym8563_clkout_set_rate() local
309 struct i2c_client *client = hym8563->client; in hym8563_clkout_set_rate()
329 struct hym8563 *hym8563 = clkout_hw_to_hym8563(hw); in hym8563_clkout_control() local
330 struct i2c_client *client = hym8563->client; in hym8563_clkout_control()
356 struct hym8563 *hym8563 = clkout_hw_to_hym8563(hw); in hym8563_clkout_is_prepared() local
357 struct i2c_client *client = hym8563->client; in hym8563_clkout_is_prepared()
375 static struct clk *hym8563_clkout_register_clk(struct hym8563 *hym8563) in hym8563_clkout_register_clk() argument
377 struct i2c_client *client = hym8563->client; in hym8563_clkout_register_clk()
393 hym8563->clkout_hw.init = &init; in hym8563_clkout_register_clk()
399 clk = clk_register(&client->dev, &hym8563->clkout_hw); in hym8563_clkout_register_clk()
416 struct hym8563 *hym8563 = (struct hym8563 *)dev_id; in hym8563_irq() local
417 struct i2c_client *client = hym8563->client; in hym8563_irq()
420 rtc_lock(hym8563->rtc); in hym8563_irq()
440 rtc_unlock(hym8563->rtc); in hym8563_irq()
505 struct hym8563 *hym8563; in hym8563_probe() local
508 hym8563 = devm_kzalloc(&client->dev, sizeof(*hym8563), GFP_KERNEL); in hym8563_probe()
509 if (!hym8563) in hym8563_probe()
512 hym8563->rtc = devm_rtc_allocate_device(&client->dev); in hym8563_probe()
513 if (IS_ERR(hym8563->rtc)) in hym8563_probe()
514 return PTR_ERR(hym8563->rtc); in hym8563_probe()
516 hym8563->client = client; in hym8563_probe()
517 i2c_set_clientdata(client, hym8563); in hym8563_probe()
534 client->name, hym8563); in hym8563_probe()
555 hym8563->rtc->ops = &hym8563_rtc_ops; in hym8563_probe()
556 set_bit(RTC_FEATURE_ALARM_RES_MINUTE, hym8563->rtc->features); in hym8563_probe()
557 clear_bit(RTC_FEATURE_UPDATE_INTERRUPT, hym8563->rtc->features); in hym8563_probe()
560 hym8563_clkout_register_clk(hym8563); in hym8563_probe()
563 return devm_rtc_register_device(hym8563->rtc); in hym8563_probe()