/linux-master/tools/testing/selftests/timers/ |
H A D | leap-a-day.c | 18 * time by 24 hours every ~16 seconds, it may cause application 44 #include <time.h> 45 #include <sys/time.h> 138 if (tx.time.tv_sec < next_leap) { 142 tx.time.tv_sec, 143 tx.time.tv_usec, 151 tx.time.tv_sec, 152 tx.time.tv_usec, 192 printf("Only setting leap-flag, not changing time. It could take up to a day for leap to trigger.\n"); 204 printf(" (default sets time t [all...] |
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/timer/ |
H A D | base.c | 30 u64 time = nvkm_timer_read(wait->tmr); local 33 wait->time0 = time; 34 wait->time1 = time; 37 if (wait->time1 == time) { 39 nvkm_fatal(subdev, "stalled at %016llx\n", time); 43 wait->time1 = time; 165 tmr->func->time(tmr, ktime_to_ns(ktime_get()));
|
/linux-master/drivers/xen/ |
H A D | time.c | 27 /* return an consistent snapshot of 64-bit time/counter value */ 82 res->time[i] += per_cpu(old_runstate_time, cpu)[i]; 92 case -1: /* backup runstate time before suspend */ 108 memcpy(runstate_delta[cpu].time, state.time, 109 sizeof(runstate_delta[cpu].time)); 114 case 0: /* backup runstate time after resume */ 116 pr_warn("%s: cannot accumulate runstate time as runstate_delta is NULL\n", 124 runstate_delta[cpu].time[i]; 129 default: /* do not accumulate runstate time fo [all...] |
/linux-master/drivers/rtc/ |
H A D | rtc-ds3232.c | 74 "time unreliable\n"); 97 static int ds3232_read_time(struct device *dev, struct rtc_time *time) argument 126 time->tm_sec = bcd2bin(second); 127 time->tm_min = bcd2bin(minute); 131 time->tm_hour = bcd2bin(hour & 0x1F) + 12; 133 time->tm_hour = bcd2bin(hour & 0x1F); 135 time->tm_hour = bcd2bin(hour); 139 time->tm_wday = bcd2bin(week) - 1; 140 time->tm_mday = bcd2bin(day); 142 time 151 ds3232_set_time(struct device *dev, struct rtc_time *time) argument [all...] |
H A D | rtc-bd70528.c | 34 struct bd70528_rtc_day time; member in struct:bd70528_rtc_data 75 r->time.hour &= ~(BD70528_MASK_RTC_HOUR_PM | BD70528_MASK_RTC_HOUR_24H); 77 tmday2rtc(t, &r->time); 79 * We do always set time in 24H mode. 81 r->time.hour |= BD70528_MASK_RTC_HOUR_24H; 90 t->tm_sec = bcd2bin(r->time.sec & BD70528_MASK_RTC_SEC); 91 t->tm_min = bcd2bin(r->time.min & BD70528_MASK_RTC_MINUTE); 92 t->tm_hour = bcd2bin(r->time.hour & BD70528_MASK_RTC_HOUR); 97 if (!(r->time.hour & BD70528_MASK_RTC_HOUR_24H)) { 99 if (r->time [all...] |
H A D | rtc-s35390a.c | 114 * this information in the hardware to know later that the time isn't 282 "mon=%d, year=%d, wday=%d\n", __func__, alm->time.tm_sec, 283 alm->time.tm_min, alm->time.tm_hour, alm->time.tm_mday, 284 alm->time.tm_mon, alm->time.tm_year, alm->time.tm_wday); 306 if (alm->time.tm_wday != -1) 307 buf[S35390A_ALRM_BYTE_WDAY] = bin2bcd(alm->time [all...] |
H A D | rtc-rc5t619.c | 5 * Real time clock driver for RICOH RC5T619 power management chip. 206 dev_err(dev, "failed to program new time: %d\n", err); 239 dev_err(dev, "failed to read time: %d\n", err); 255 alrm->time.tm_sec = bcd2bin(buff[0]); 256 alrm->time.tm_min = bcd2bin(buff[1]); 259 alrm->time.tm_hour = bcd2bin(buff[2]); 261 alrm->time.tm_hour = rtc5t619_12hour_bcd2bin(buff[2]); 263 alrm->time.tm_mday = bcd2bin(buff[3]); 264 alrm->time.tm_mon = bcd2bin(buff[4]) - 1; 265 alrm->time [all...] |
H A D | rtc-asm9260.c | 52 /* Consolidated time registers */ 174 * make sure SEC counter will not flip other counter on write time, 195 alrm->time.tm_year = ioread32(priv->iobase + HW_ALYEAR); 196 alrm->time.tm_mon = ioread32(priv->iobase + HW_ALMON); 197 alrm->time.tm_mday = ioread32(priv->iobase + HW_ALDOM); 198 alrm->time.tm_wday = ioread32(priv->iobase + HW_ALDOW); 199 alrm->time.tm_yday = ioread32(priv->iobase + HW_ALDOY); 200 alrm->time.tm_hour = ioread32(priv->iobase + HW_ALHOUR); 201 alrm->time.tm_min = ioread32(priv->iobase + HW_ALMIN); 202 alrm->time [all...] |
H A D | rtc-ds1307.c | 31 * setting the date and time), Linux can ignore the non-clock features. 77 * basic RTC date and time functionality; be careful using them. 225 dev_warn_once(dev, "oscillator failed, set time!\n"); 230 /* read the RTC date and time registers all at once */ 243 dev_warn_once(dev, "oscillator failed, set time!\n"); 381 * these bits were cleared when preparing the date/time 432 * report alarm time (ALARM1); assume 24 hour and day-of-month modes, 435 t->time.tm_sec = bcd2bin(regs[0] & 0x7f); 436 t->time.tm_min = bcd2bin(regs[1] & 0x7f); 437 t->time [all...] |
H A D | rtc-cpcap.c | 54 unsigned long int time; local 57 time = tod + ((cpcap->day & DAY_MASK) * SECS_PER_DAY); 59 rtc_time64_to_tm(time, rtc); 64 unsigned long time; local 66 time = rtc_tm_to_time64(rtc); 68 cpcap->day = time / SECS_PER_DAY; 69 time %= SECS_PER_DAY; 70 cpcap->tod2 = (time >> 8) & TOD2_MASK; 71 cpcap->tod1 = time & TOD1_MASK; 109 dev_err(dev, "Failed to read time\ [all...] |
H A D | rtc-palmas.c | 32 /* Total number of RTC registers needed to set time*/ 79 /* Stop RTC while updating the RTC time registers */ 127 alm->time.tm_sec = bcd2bin(alarm_data[0]); 128 alm->time.tm_min = bcd2bin(alarm_data[1]); 129 alm->time.tm_hour = bcd2bin(alarm_data[2]); 130 alm->time.tm_mday = bcd2bin(alarm_data[3]); 131 alm->time.tm_mon = bcd2bin(alarm_data[4]) - 1; 132 alm->time.tm_year = bcd2bin(alarm_data[5]) + 100; 158 alarm_data[0] = bin2bcd(alm->time.tm_sec); 159 alarm_data[1] = bin2bcd(alm->time [all...] |
H A D | rtc-tps6594.c | 25 // Total number of RTC registers needed to set time 63 * Set GET_TIME to 0. Next time we set GET_TIME to 1 we will be sure to store 128 // Stop RTC while updating the RTC time registers. 134 // Update all the time registers in one shot. 157 alm->time.tm_sec = bcd2bin(alarm_data[0]); 158 alm->time.tm_min = bcd2bin(alarm_data[1]); 159 alm->time.tm_hour = bcd2bin(alarm_data[2]); 160 alm->time.tm_mday = bcd2bin(alarm_data[3]); 161 alm->time.tm_mon = bcd2bin(alarm_data[4]) - 1; 162 alm->time [all...] |
H A D | rtc-generic.c | 9 #include <linux/time.h>
|
/linux-master/fs/bcachefs/ |
H A D | lru.c | 21 "lru entry at time=0"); 44 u64 dev_bucket, u64 time, bool set) 46 return time 48 lru_pos(lru_id, dev_bucket, time), set) 52 int bch2_lru_del(struct btree_trans *trans, u16 lru_id, u64 dev_bucket, u64 time) argument 54 return __bch2_lru_set(trans, lru_id, dev_bucket, time, KEY_TYPE_deleted); 57 int bch2_lru_set(struct btree_trans *trans, u16 lru_id, u64 dev_bucket, u64 time) argument 59 return __bch2_lru_set(trans, lru_id, dev_bucket, time, KEY_TYPE_set); 129 "incorrect lru entry: lru %s time %llu\n" 43 __bch2_lru_set(struct btree_trans *trans, u16 lru_id, u64 dev_bucket, u64 time, bool set) argument
|
/linux-master/drivers/power/supply/ |
H A D | apm_power.c | 195 int time; local 197 time = do_calculate_time(status, SOURCE_ENERGY); 198 if (time != -1) 199 return time; 201 time = do_calculate_time(status, SOURCE_CHARGE); 202 if (time != -1) 203 return time; 205 time = do_calculate_time(status, SOURCE_VOLTAGE); 206 if (time != -1) 207 return time; [all...] |
/linux-master/tools/perf/scripts/python/ |
H A D | netdev-times.py | 1 # Display a process of packets and processed time. 27 net_rx_dic = {}; # key is cpu and value include time of NET_RX softirq-entry 59 # Calculate a time interval(msec) from src(nsec) to dst(nsec) 116 (diff_msec(base_t, irq_event['time']), 179 # order all events in time 308 (name, context, cpu, time, pid, comm, irq, irq_name) = event_info 311 irq_record = {'irq':irq, 'name':irq_name, 'cpu':cpu, 'irq_ent_t':time} 315 (name, context, cpu, time, pid, comm, irq, ret) = event_info 321 irq_record.update({'irq_ext_t':time}) 327 (name, context, cpu, time, pi [all...] |
/linux-master/kernel/ |
H A D | latencytop.c | 145 latency_record[i].time += lat->time; 146 if (lat->time > latency_record[i].max) 147 latency_record[i].max = lat->time; 173 * Negative latencies (caused by time going backwards) are also explicitly 187 /* Negative sleeps are time going backwards */ 188 /* Zero-time sleeps are non-interesting */ 194 lat.time = usecs; 222 mylat->time += lat.time; [all...] |
/linux-master/tools/testing/selftests/kvm/x86_64/ |
H A D | xen_shinfo_test.c | 11 #include <time.h> 121 uint64_t time[5]; /* Extra field for overrun check */ member in struct:vcpu_runstate_info 127 uint64_t time[5]; member in struct:compat_vcpu_runstate_info 140 struct pvclock_vcpu_time_info time; member in struct:vcpu_info 205 GUEST_ASSERT(rs->time[RUNSTATE_runnable] != 0); 209 GUEST_ASSERT(rs->time[RUNSTATE_blocked] != 0); 213 GUEST_ASSERT(rs->time[RUNSTATE_offline] != 0); 216 /* Test runstate time adjust */ 218 GUEST_ASSERT(rs->time[RUNSTATE_blocked] == 0x5a); 219 GUEST_ASSERT(rs->time[RUNSTATE_offlin [all...] |
/linux-master/drivers/gpu/drm/nouveau/dispnv50/ |
H A D | core507d.c | 65 s64 time = nvif_msec(device, 2000ULL, local 70 return time < 0 ? time : 0; 108 s64 time; local 118 time = nvif_msec(core->chan.base.device, 2000ULL, 124 if (time < 0)
|
/linux-master/drivers/input/tests/ |
H A D | input_test.c | 71 ktime_t *timestamp, time; local 74 time = timestamp[INPUT_CLK_MONO]; 77 KUNIT_ASSERT_EQ(test, ktime_compare(time, invalid_timestamp), 1); 79 time = ktime_get(); 80 input_set_timestamp(input_dev, time); 84 KUNIT_ASSERT_EQ(test, ktime_compare(timestamp[INPUT_CLK_MONO], time), 0);
|
/linux-master/drivers/net/wireless/intel/iwlwifi/ |
H A D | iwl-devtrace-iwlwifi.h | 113 TP_PROTO(const struct device *dev, u32 time, u32 data, u32 ev), 114 TP_ARGS(dev, time, data, ev), 118 __field(u32, time) 124 __entry->time = time; 129 __get_str(dev), __entry->time, __entry->data, __entry->ev)
|
/linux-master/include/uapi/linux/ |
H A D | timex.h | 51 * Reworked time interpolation logic 56 #include <linux/time.h> 67 __kernel_long_t offset; /* time offset (usec) */ 72 __kernel_long_t constant;/* pll time constant */ 77 struct timeval time; /* (read only, except for ADJ_SETOFFSET) */ member in struct:timex 105 long long offset; /* time offset (usec) */ 111 long long constant;/* pll time constant */ 116 struct __kernel_timex_timeval time; /* (read only, except for ADJ_SETOFFSET) */ member in struct:__kernel_timex 139 #define ADJ_OFFSET 0x0001 /* time offset */ 141 #define ADJ_MAXERROR 0x0004 /* maximum time erro [all...] |
/linux-master/drivers/iio/common/ssp_sensors/ |
H A D | ssp_iio.c | 73 __le32 time; local 86 memcpy(&time, &((char *)buf)[len], SSP_TIME_SIZE); 88 timestamp + (int64_t)le32_to_cpu(time) * 1000000;
|
/linux-master/arch/s390/include/uapi/asm/ |
H A D | hypfs.h | 43 char time[8]; /* HH:MM:SS in EBCDIC */ member in struct:hypfs_diag0c_entry 44 __u64 virtcpu; /* Virtual time consumed by the virt CPU (us) */ 45 __u64 totalproc; /* Total of virtual and simulation time (us) */
|
/linux-master/fs/isofs/ |
H A D | util.c | 6 #include <linux/time.h> 13 * take into account daylight savings time, but it shouldn't matter. 14 * The time stored should be localtime (with or without DST in effect), 30 if (flag == 0) tz = p[6]; /* High sierra has no time zone */ 46 * The time is always stored in localtime with the 49 * to get to true GMT, which is what we store the time
|