time_state 53 drivers/rtc/rtc-hid-sensor-time.c struct hid_time_state *time_state = platform_get_drvdata(priv); time_state 55 drivers/rtc/rtc-hid-sensor-time.c spin_lock_irqsave(&time_state->lock_last_time, flags); time_state 56 drivers/rtc/rtc-hid-sensor-time.c time_state->last_time = time_state->time_buf; time_state 57 drivers/rtc/rtc-hid-sensor-time.c spin_unlock_irqrestore(&time_state->lock_last_time, flags); time_state 58 drivers/rtc/rtc-hid-sensor-time.c complete(&time_state->comp_last_time); time_state 80 drivers/rtc/rtc-hid-sensor-time.c struct hid_time_state *time_state = platform_get_drvdata(priv); time_state 81 drivers/rtc/rtc-hid-sensor-time.c struct rtc_time *time_buf = &time_state->time_buf; time_state 137 drivers/rtc/rtc-hid-sensor-time.c struct hid_time_state *time_state) time_state 145 drivers/rtc/rtc-hid-sensor-time.c &time_state->info[i]) < 0) time_state 148 drivers/rtc/rtc-hid-sensor-time.c report_id = time_state->info[0].report_id; time_state 154 drivers/rtc/rtc-hid-sensor-time.c if (time_state->info[i].report_id != report_id) { time_state 159 drivers/rtc/rtc-hid-sensor-time.c if (time_state->info[i].size == 3 || time_state 160 drivers/rtc/rtc-hid-sensor-time.c time_state->info[i].size > 4) { time_state 164 drivers/rtc/rtc-hid-sensor-time.c time_state->info[i].attrib_id)); time_state 167 drivers/rtc/rtc-hid-sensor-time.c if (time_state->info[i].units != time_state 170 drivers/rtc/rtc-hid-sensor-time.c !(time_state->info[i].attrib_id == time_state 172 drivers/rtc/rtc-hid-sensor-time.c time_state->info[i].units == time_state 177 drivers/rtc/rtc-hid-sensor-time.c time_state->info[i].attrib_id)); time_state 180 drivers/rtc/rtc-hid-sensor-time.c if (time_state->info[i].unit_expo) { time_state 184 drivers/rtc/rtc-hid-sensor-time.c time_state->info[i].attrib_id)); time_state 195 drivers/rtc/rtc-hid-sensor-time.c struct hid_time_state *time_state = dev_get_drvdata(dev); time_state 198 drivers/rtc/rtc-hid-sensor-time.c reinit_completion(&time_state->comp_last_time); time_state 200 drivers/rtc/rtc-hid-sensor-time.c sensor_hub_input_attr_get_raw_value(time_state->common_attributes.hsdev, time_state 202 drivers/rtc/rtc-hid-sensor-time.c time_state->info[0].report_id, SENSOR_HUB_SYNC, false); time_state 205 drivers/rtc/rtc-hid-sensor-time.c &time_state->comp_last_time, HZ*6); time_state 208 drivers/rtc/rtc-hid-sensor-time.c spin_lock_irqsave(&time_state->lock_last_time, flags); time_state 209 drivers/rtc/rtc-hid-sensor-time.c *tm = time_state->last_time; time_state 210 drivers/rtc/rtc-hid-sensor-time.c spin_unlock_irqrestore(&time_state->lock_last_time, flags); time_state 226 drivers/rtc/rtc-hid-sensor-time.c struct hid_time_state *time_state = devm_kzalloc(&pdev->dev, time_state 229 drivers/rtc/rtc-hid-sensor-time.c if (time_state == NULL) time_state 232 drivers/rtc/rtc-hid-sensor-time.c platform_set_drvdata(pdev, time_state); time_state 234 drivers/rtc/rtc-hid-sensor-time.c spin_lock_init(&time_state->lock_last_time); time_state 235 drivers/rtc/rtc-hid-sensor-time.c init_completion(&time_state->comp_last_time); time_state 236 drivers/rtc/rtc-hid-sensor-time.c time_state->common_attributes.hsdev = hsdev; time_state 237 drivers/rtc/rtc-hid-sensor-time.c time_state->common_attributes.pdev = pdev; time_state 241 drivers/rtc/rtc-hid-sensor-time.c &time_state->common_attributes); time_state 248 drivers/rtc/rtc-hid-sensor-time.c time_state); time_state 254 drivers/rtc/rtc-hid-sensor-time.c time_state->callbacks.send_event = hid_time_proc_event; time_state 255 drivers/rtc/rtc-hid-sensor-time.c time_state->callbacks.capture_sample = hid_time_capture_sample; time_state 256 drivers/rtc/rtc-hid-sensor-time.c time_state->callbacks.pdev = pdev; time_state 258 drivers/rtc/rtc-hid-sensor-time.c &time_state->callbacks); time_state 276 drivers/rtc/rtc-hid-sensor-time.c time_state->rtc = devm_rtc_device_register(&pdev->dev, time_state 280 drivers/rtc/rtc-hid-sensor-time.c if (IS_ERR(time_state->rtc)) { time_state 282 drivers/rtc/rtc-hid-sensor-time.c ret = PTR_ERR(time_state->rtc); time_state 283 drivers/rtc/rtc-hid-sensor-time.c time_state->rtc = NULL; time_state 57 kernel/time/ntp.c static int time_state = TIME_OK; time_state 384 kernel/time/ntp.c if ((time_state == TIME_INS) && (time_status & STA_INS)) time_state 411 kernel/time/ntp.c switch (time_state) { time_state 414 kernel/time/ntp.c time_state = TIME_INS; time_state 418 kernel/time/ntp.c time_state = TIME_DEL; time_state 426 kernel/time/ntp.c time_state = TIME_OK; time_state 429 kernel/time/ntp.c time_state = TIME_OOP; time_state 437 kernel/time/ntp.c time_state = TIME_OK; time_state 441 kernel/time/ntp.c time_state = TIME_WAIT; time_state 448 kernel/time/ntp.c time_state = TIME_WAIT; time_state 452 kernel/time/ntp.c time_state = TIME_OK; time_state 641 kernel/time/ntp.c time_state = TIME_OK; time_state 755 kernel/time/ntp.c result = time_state; /* mostly `TIME_OK' */ time_state 781 kernel/time/ntp.c if ((time_state == TIME_INS) && (time_status & STA_INS)) { time_state 786 kernel/time/ntp.c if ((time_state == TIME_DEL) && (time_status & STA_DEL)) { time_state 791 kernel/time/ntp.c if ((time_state == TIME_OOP) &&