Symbol: nct3018y
drivers/rtc/rtc-nct3018y.c
123
struct nct3018y *nct3018y = i2c_get_clientdata(dev_id);
drivers/rtc/rtc-nct3018y.c
124
struct i2c_client *client = nct3018y->client;
drivers/rtc/rtc-nct3018y.c
130
err = nct3018y_get_alarm_mode(nct3018y->client, &alarm_enable, &alarm_flag);
drivers/rtc/rtc-nct3018y.c
137
rtc_update_irq(nct3018y->rtc, 1, RTC_IRQF | RTC_AF);
drivers/rtc/rtc-nct3018y.c
138
nct3018y_set_alarm_mode(nct3018y->client, 0);
drivers/rtc/rtc-nct3018y.c
183
struct nct3018y *nct3018y = dev_get_drvdata(dev);
drivers/rtc/rtc-nct3018y.c
195
if (nct3018y->part_num == NCT3018Y_REG_PART_NCT3018Y && !(flags & NCT3018Y_BIT_TWO)) {
drivers/rtc/rtc-nct3018y.c
239
if (nct3018y->part_num == NCT3018Y_REG_PART_NCT3018Y)
drivers/rtc/rtc-nct3018y.c
346
#define clkout_hw_to_nct3018y(_hw) container_of(_hw, struct nct3018y, clkout_hw)
drivers/rtc/rtc-nct3018y.c
358
struct nct3018y *nct3018y = clkout_hw_to_nct3018y(hw);
drivers/rtc/rtc-nct3018y.c
359
struct i2c_client *client = nct3018y->client;
drivers/rtc/rtc-nct3018y.c
390
struct nct3018y *nct3018y = clkout_hw_to_nct3018y(hw);
drivers/rtc/rtc-nct3018y.c
391
struct i2c_client *client = nct3018y->client;
drivers/rtc/rtc-nct3018y.c
410
struct nct3018y *nct3018y = clkout_hw_to_nct3018y(hw);
drivers/rtc/rtc-nct3018y.c
411
struct i2c_client *client = nct3018y->client;
drivers/rtc/rtc-nct3018y.c
438
struct nct3018y *nct3018y = clkout_hw_to_nct3018y(hw);
drivers/rtc/rtc-nct3018y.c
439
struct i2c_client *client = nct3018y->client;
drivers/rtc/rtc-nct3018y.c
458
static struct clk *nct3018y_clkout_register_clk(struct nct3018y *nct3018y)
drivers/rtc/rtc-nct3018y.c
460
struct i2c_client *client = nct3018y->client;
drivers/rtc/rtc-nct3018y.c
470
nct3018y->clkout_hw.init = &init;
drivers/rtc/rtc-nct3018y.c
476
clk = devm_clk_register(&client->dev, &nct3018y->clkout_hw);
drivers/rtc/rtc-nct3018y.c
496
struct nct3018y *nct3018y;
drivers/rtc/rtc-nct3018y.c
504
nct3018y = devm_kzalloc(&client->dev, sizeof(struct nct3018y),
drivers/rtc/rtc-nct3018y.c
506
if (!nct3018y)
drivers/rtc/rtc-nct3018y.c
509
i2c_set_clientdata(client, nct3018y);
drivers/rtc/rtc-nct3018y.c
510
nct3018y->client = client;
drivers/rtc/rtc-nct3018y.c
521
nct3018y->part_num = i2c_smbus_read_byte_data(client, NCT3018Y_REG_PART);
drivers/rtc/rtc-nct3018y.c
522
if (nct3018y->part_num < 0) {
drivers/rtc/rtc-nct3018y.c
524
return nct3018y->part_num;
drivers/rtc/rtc-nct3018y.c
526
nct3018y->part_num &= 0x03; /* Part number is corresponding to bit 0 and 1 */
drivers/rtc/rtc-nct3018y.c
527
if (nct3018y->part_num == NCT3018Y_REG_PART_NCT3018Y) {
drivers/rtc/rtc-nct3018y.c
544
nct3018y->rtc = devm_rtc_allocate_device(&client->dev);
drivers/rtc/rtc-nct3018y.c
545
if (IS_ERR(nct3018y->rtc))
drivers/rtc/rtc-nct3018y.c
546
return PTR_ERR(nct3018y->rtc);
drivers/rtc/rtc-nct3018y.c
548
nct3018y->rtc->ops = &nct3018y_rtc_ops;
drivers/rtc/rtc-nct3018y.c
549
nct3018y->rtc->range_min = RTC_TIMESTAMP_BEGIN_2000;
drivers/rtc/rtc-nct3018y.c
550
nct3018y->rtc->range_max = RTC_TIMESTAMP_END_2099;
drivers/rtc/rtc-nct3018y.c
562
clear_bit(RTC_FEATURE_UPDATE_INTERRUPT, nct3018y->rtc->features);
drivers/rtc/rtc-nct3018y.c
563
clear_bit(RTC_FEATURE_ALARM, nct3018y->rtc->features);
drivers/rtc/rtc-nct3018y.c
568
nct3018y_clkout_register_clk(nct3018y);
drivers/rtc/rtc-nct3018y.c
571
return devm_rtc_register_device(nct3018y->rtc);