Symbol: ds1374
drivers/rtc/rtc-ds1374.c
188
struct ds1374 *ds1374 = i2c_get_clientdata(client);
drivers/rtc/rtc-ds1374.c
196
mutex_lock(&ds1374->mutex);
drivers/rtc/rtc-ds1374.c
219
mutex_unlock(&ds1374->mutex);
drivers/rtc/rtc-ds1374.c
226
struct ds1374 *ds1374 = i2c_get_clientdata(client);
drivers/rtc/rtc-ds1374.c
253
mutex_lock(&ds1374->mutex);
drivers/rtc/rtc-ds1374.c
279
mutex_unlock(&ds1374->mutex);
drivers/rtc/rtc-ds1374.c
287
struct ds1374 *ds1374 = i2c_get_clientdata(client);
drivers/rtc/rtc-ds1374.c
290
schedule_work(&ds1374->work);
drivers/rtc/rtc-ds1374.c
296
struct ds1374 *ds1374 = container_of(work, struct ds1374, work);
drivers/rtc/rtc-ds1374.c
297
struct i2c_client *client = ds1374->client;
drivers/rtc/rtc-ds1374.c
300
mutex_lock(&ds1374->mutex);
drivers/rtc/rtc-ds1374.c
317
rtc_update_irq(ds1374->rtc, 1, RTC_AF | RTC_IRQF);
drivers/rtc/rtc-ds1374.c
321
if (!ds1374->exiting)
drivers/rtc/rtc-ds1374.c
324
mutex_unlock(&ds1374->mutex);
drivers/rtc/rtc-ds1374.c
331
struct ds1374 *ds1374 = i2c_get_clientdata(client);
drivers/rtc/rtc-ds1374.c
334
mutex_lock(&ds1374->mutex);
drivers/rtc/rtc-ds1374.c
349
mutex_unlock(&ds1374->mutex);
drivers/rtc/rtc-ds1374.c
394
struct ds1374 *ds1374 = watchdog_get_drvdata(wdt);
drivers/rtc/rtc-ds1374.c
395
struct i2c_client *client = ds1374->client;
drivers/rtc/rtc-ds1374.c
434
struct ds1374 *ds1374 = watchdog_get_drvdata(wdt);
drivers/rtc/rtc-ds1374.c
437
return ds1374_read_rtc(ds1374->client, &val, DS1374_REG_WDALM0, 3);
drivers/rtc/rtc-ds1374.c
442
struct ds1374 *ds1374 = watchdog_get_drvdata(wdt);
drivers/rtc/rtc-ds1374.c
443
struct i2c_client *client = ds1374->client;
drivers/rtc/rtc-ds1374.c
472
struct ds1374 *ds1374;
drivers/rtc/rtc-ds1374.c
475
ds1374 = devm_kzalloc(&client->dev, sizeof(struct ds1374), GFP_KERNEL);
drivers/rtc/rtc-ds1374.c
476
if (!ds1374)
drivers/rtc/rtc-ds1374.c
479
ds1374->rtc = devm_rtc_allocate_device(&client->dev);
drivers/rtc/rtc-ds1374.c
480
if (IS_ERR(ds1374->rtc))
drivers/rtc/rtc-ds1374.c
481
return PTR_ERR(ds1374->rtc);
drivers/rtc/rtc-ds1374.c
483
ds1374->client = client;
drivers/rtc/rtc-ds1374.c
484
i2c_set_clientdata(client, ds1374);
drivers/rtc/rtc-ds1374.c
486
INIT_WORK(&ds1374->work, ds1374_work);
drivers/rtc/rtc-ds1374.c
487
mutex_init(&ds1374->mutex);
drivers/rtc/rtc-ds1374.c
504
ds1374->rtc->ops = &ds1374_rtc_ops;
drivers/rtc/rtc-ds1374.c
505
ds1374->rtc->range_max = U32_MAX;
drivers/rtc/rtc-ds1374.c
507
ret = devm_rtc_register_device(ds1374->rtc);
drivers/rtc/rtc-ds1374.c
512
ds1374->wdt.info = &ds1374_wdt_info;
drivers/rtc/rtc-ds1374.c
513
ds1374->wdt.ops = &ds1374_wdt_ops;
drivers/rtc/rtc-ds1374.c
514
ds1374->wdt.timeout = TIMER_MARGIN_DEFAULT;
drivers/rtc/rtc-ds1374.c
515
ds1374->wdt.min_timeout = TIMER_MARGIN_MIN;
drivers/rtc/rtc-ds1374.c
516
ds1374->wdt.max_timeout = TIMER_MARGIN_MAX;
drivers/rtc/rtc-ds1374.c
518
watchdog_init_timeout(&ds1374->wdt, wdt_margin, &client->dev);
drivers/rtc/rtc-ds1374.c
519
watchdog_set_nowayout(&ds1374->wdt, nowayout);
drivers/rtc/rtc-ds1374.c
520
watchdog_stop_on_reboot(&ds1374->wdt);
drivers/rtc/rtc-ds1374.c
521
watchdog_stop_on_unregister(&ds1374->wdt);
drivers/rtc/rtc-ds1374.c
522
watchdog_set_drvdata(&ds1374->wdt, ds1374);
drivers/rtc/rtc-ds1374.c
523
ds1374_wdt_settimeout(&ds1374->wdt, ds1374->wdt.timeout);
drivers/rtc/rtc-ds1374.c
525
ret = devm_watchdog_register_device(&client->dev, &ds1374->wdt);
drivers/rtc/rtc-ds1374.c
535
struct ds1374 *ds1374 = i2c_get_clientdata(client);
drivers/rtc/rtc-ds1374.c
538
mutex_lock(&ds1374->mutex);
drivers/rtc/rtc-ds1374.c
539
ds1374->exiting = 1;
drivers/rtc/rtc-ds1374.c
540
mutex_unlock(&ds1374->mutex);
drivers/rtc/rtc-ds1374.c
543
cancel_work_sync(&ds1374->work);