Lines Matching refs:hym8563
78 struct hym8563 { struct
283 #define clkout_hw_to_hym8563(_hw) container_of(_hw, struct hym8563, clkout_hw)
295 struct hym8563 *hym8563 = clkout_hw_to_hym8563(hw); in hym8563_clkout_recalc_rate() local
296 struct i2c_client *client = hym8563->client; in hym8563_clkout_recalc_rate()
321 struct hym8563 *hym8563 = clkout_hw_to_hym8563(hw); in hym8563_clkout_set_rate() local
322 struct i2c_client *client = hym8563->client; in hym8563_clkout_set_rate()
342 struct hym8563 *hym8563 = clkout_hw_to_hym8563(hw); in hym8563_clkout_control() local
343 struct i2c_client *client = hym8563->client; in hym8563_clkout_control()
369 struct hym8563 *hym8563 = clkout_hw_to_hym8563(hw); in hym8563_clkout_is_prepared() local
370 struct i2c_client *client = hym8563->client; in hym8563_clkout_is_prepared()
388 static struct clk *hym8563_clkout_register_clk(struct hym8563 *hym8563) in hym8563_clkout_register_clk() argument
390 struct i2c_client *client = hym8563->client; in hym8563_clkout_register_clk()
406 hym8563->clkout_hw.init = &init; in hym8563_clkout_register_clk()
412 clk = clk_register(&client->dev, &hym8563->clkout_hw); in hym8563_clkout_register_clk()
429 struct hym8563 *hym8563 = (struct hym8563 *)dev_id; in hym8563_irq() local
430 struct i2c_client *client = hym8563->client; in hym8563_irq()
433 rtc_lock(hym8563->rtc); in hym8563_irq()
453 rtc_unlock(hym8563->rtc); in hym8563_irq()
519 struct hym8563 *hym8563; in hym8563_probe() local
522 hym8563 = devm_kzalloc(&client->dev, sizeof(*hym8563), GFP_KERNEL); in hym8563_probe()
523 if (!hym8563) in hym8563_probe()
526 hym8563->client = client; in hym8563_probe()
527 i2c_set_clientdata(client, hym8563); in hym8563_probe()
539 client->name, hym8563); in hym8563_probe()
560 hym8563->rtc = devm_rtc_device_register(&client->dev, client->name, in hym8563_probe()
562 if (IS_ERR(hym8563->rtc)) in hym8563_probe()
563 return PTR_ERR(hym8563->rtc); in hym8563_probe()
566 hym8563->rtc->uie_unsupported = 1; in hym8563_probe()
569 hym8563_clkout_register_clk(hym8563); in hym8563_probe()