/linux/scripts/ |
A D | show_delta | 61 def convert_line(line, base_time): argument 70 if base_time: 72 delta = time - base_time 105 base_time = float(base_str) 115 base_time = time 123 base_time = 0.0 126 print (convert_line(line, base_time),)
|
/linux/drivers/net/ethernet/intel/igc/ |
A D | igc_tsn.c | 39 if (adapter->base_time) in igc_tsn_new_flags() 87 ktime_t base_time, systim; in igc_tsn_enable_offload() local 91 base_time = adapter->base_time; in igc_tsn_enable_offload() 113 if (adapter->base_time) { in igc_tsn_enable_offload() 218 if (ktime_compare(systim, base_time) > 0) { in igc_tsn_enable_offload() 221 n = div64_s64(ktime_sub_ns(systim, base_time), cycle); in igc_tsn_enable_offload() 222 base_time = ktime_add_ns(base_time, (n + 1) * cycle); in igc_tsn_enable_offload() 225 baset_h = div_s64_rem(base_time, NSEC_PER_SEC, &baset_l); in igc_tsn_enable_offload()
|
A D | igc_main.c | 1003 ktime_t base_time = adapter->base_time; in igc_tx_launchtime() local 1012 div_s64_rem(ktime_sub_ns(txtime, base_time), cycle_time, &launchtime); in igc_tx_launchtime() 5769 static bool is_base_time_past(ktime_t base_time, const struct timespec64 *now) in is_base_time_past() argument 5773 b = ktime_to_timespec64(base_time); in is_base_time_past() 5795 if (!is_base_time_past(qopt->base_time, &now)) in validate_schedule() 5842 adapter->base_time = 0; in igc_tsn_clear_schedule() 5864 if (adapter->base_time) in igc_save_qbv_schedule() 5871 adapter->base_time = qopt->base_time; in igc_save_qbv_schedule()
|
A D | igc.h | 183 ktime_t base_time; member
|
/linux/drivers/net/dsa/sja1105/ |
A D | sja1105_tas.c | 41 if (latest_base_time < offload->base_time) in sja1105_tas_set_runtime_params() 42 latest_base_time = offload->base_time; in sja1105_tas_set_runtime_params() 44 earliest_base_time = offload->base_time; in sja1105_tas_set_runtime_params() 54 if (latest_base_time < gating_cfg->base_time) in sja1105_tas_set_runtime_params() 55 latest_base_time = gating_cfg->base_time; in sja1105_tas_set_runtime_params() 57 earliest_base_time = gating_cfg->base_time; in sja1105_tas_set_runtime_params() 487 dummy->base_time = gating_cfg->base_time; in sja1105_gating_check_conflicts() 618 u64 base_time) in sja1105_tas_set_base_time() argument 729 s64 base_time, now; in sja1105_tas_state_machine() local 760 base_time -= sja1105_delta_to_ns(1); in sja1105_tas_state_machine() [all …]
|
A D | sja1105_ptp.h | 24 static inline s64 future_base_time(s64 base_time, s64 cycle_time, s64 now) in future_base_time() argument 28 if (base_time >= now) in future_base_time() 29 return base_time; in future_base_time() 31 a = now - base_time; in future_base_time() 35 return base_time + n * cycle_time; in future_base_time()
|
A D | sja1105_vl.h | 23 u64 base_time, u64 cycle_time, u64 cycle_time_ext, 55 u64 base_time, u64 cycle_time, in sja1105_vl_gate() argument
|
A D | sja1105_vl.c | 110 its_base_time = rule->vl.base_time; in sja1105_compose_gating_subschedule() 120 gating_cfg->base_time = its_base_time; in sja1105_compose_gating_subschedule() 137 rbt = future_base_time(rule->vl.base_time, rule->vl.cycle_time, in sja1105_compose_gating_subschedule() 570 u64 base_time, u64 cycle_time, u64 cycle_time_ext, in sja1105_vl_gate() argument 586 div_s64_rem(base_time, sja1105_delta_to_ns(1), &rem); in sja1105_vl_gate() 621 rule->vl.base_time = base_time; in sja1105_vl_gate()
|
A D | sja1105_tas.h | 36 s64 base_time; member
|
A D | sja1105.h | 229 u64 base_time; member
|
/linux/drivers/net/ethernet/ti/ |
A D | am65-cpsw-qos.c | 371 cfg.ns_start = est_new->taprio.base_time; in am65_cpsw_timer_set() 403 if (!taprio_new->base_time && taprio_oper) in am65_cpsw_timer_act() 404 taprio_new->base_time = taprio_oper->base_time; in am65_cpsw_timer_act() 406 if (taprio_new->base_time == taprio_oper->base_time) in am65_cpsw_timer_act() 410 diff = taprio_new->base_time - taprio_oper->base_time; in am65_cpsw_timer_act() 416 if (taprio_new->base_time <= cur_time + taprio_new->cycle_time) in am65_cpsw_timer_act() 473 if (!est_new->taprio.base_time) in am65_cpsw_configure_taprio() 474 est_new->taprio.base_time = am65_cpts_ns_gettime(cpts); in am65_cpsw_configure_taprio()
|
/linux/net/sched/ |
A D | sch_taprio.c | 60 s64 base_time; member 95 return ns_to_ktime(sched->base_time); in sched_base_time() 149 time_since_sched_start = ktime_sub(time, sched->base_time); in get_cycle_time_elapsed() 170 ktime_after(admin->base_time, cycle_end) && in get_interval_end_time() 171 ktime_before(admin->base_time, cycle_ext_end)) in get_interval_end_time() 172 return admin->base_time; in get_interval_end_time() 363 if (admin && ktime_after(minimum_time, admin->base_time)) in get_packet_txtime() 367 if (!sched || ktime_before(minimum_time, sched->base_time)) { in get_packet_txtime() 392 ktime_after(txtime, admin->base_time)) { in get_packet_txtime() 1232 offload->base_time = sched->base_time; in taprio_sched_to_offload() [all …]
|
/linux/sound/drivers/ |
A D | dummy.c | 225 unsigned long base_time; member 245 delta = jiffies - dpcm->base_time; in dummy_systimer_update() 248 dpcm->base_time += delta; in dummy_systimer_update() 264 dpcm->base_time = jiffies; in dummy_systimer_start() 359 ktime_t base_time; member 389 dpcm->base_time = hrtimer_cb_get_time(&dpcm->timer); in dummy_hrtimer_start() 419 dpcm->base_time); in dummy_hrtimer_pointer()
|
/linux/drivers/net/dsa/hirschmann/ |
A D | hellcreek.c | 1550 base_time_ns = ktime_to_ns(hellcreek_port->current_schedule->base_time); in hellcreek_schedule_startable() 1558 ktime_t base_time, current_time; in hellcreek_start_schedule() local 1571 base_time = hellcreek_port->current_schedule->base_time; in hellcreek_start_schedule() 1574 if (ktime_compare(current_time, base_time) > 0) { in hellcreek_start_schedule() 1577 n = div64_s64(ktime_sub_ns(current_time, base_time), in hellcreek_start_schedule() 1579 base_time = ktime_add_ns(base_time, (n + 1) * cycle_time); in hellcreek_start_schedule() 1583 hellcreek_switch_schedule(hellcreek, base_time); in hellcreek_start_schedule()
|
/linux/drivers/media/pci/bt8xx/ |
A D | bttv-input.c | 193 gap = ktime_to_us(ktime_sub(tv, ir->base_time)); in bttv_rc5_timer_end() 250 gap = ktime_to_us(ktime_sub(tv, ir->base_time)); in bttv_rc5_irq() 276 ir->base_time = tv; in bttv_rc5_irq()
|
A D | bttvp.h | 131 ktime_t base_time; /* time of last seen code */ member
|
/linux/drivers/net/ethernet/stmicro/stmmac/ |
A D | stmmac_tc.c | 784 ktime_t base_time; in stmmac_calc_tas_basetime() local 788 base_time = ktime_add_ns(old_base_time, in stmmac_calc_tas_basetime() 791 time = ktime_to_timespec64(base_time); in stmmac_calc_tas_basetime() 903 time = stmmac_calc_tas_basetime(qopt->base_time, current_time_ns, in tc_setup_taprio() 909 qopt_time = ktime_to_timespec64(qopt->base_time); in tc_setup_taprio()
|
/linux/Documentation/networking/dsa/ |
A D | sja1105.rst | 163 base_time="$(((${sec} + 1) * ${NSEC_PER_SEC}))" 169 base-time ${base_time} \ 248 base_time="$(((sec + 2) * 1000000000))" && \ 249 echo "base time ${base_time}" 252 action gate base-time ${base_time} \ 261 base_time="$(((sec + 2) * 1000000000))" && \ 262 echo "base time ${base_time}" 267 base-time ${base_time} \
|
/linux/drivers/video/fbdev/ |
A D | pxa3xx-gcu.c | 95 struct timespec64 base_time; member 122 ts = timespec64_sub(ts, priv->base_time); \ 157 ktime_get_ts64(&priv->base_time); in pxa3xx_gcu_reset()
|
/linux/drivers/net/dsa/ocelot/ |
A D | felix_vsc9959.c | 1167 static void vsc9959_new_base_time(struct ocelot *ocelot, ktime_t base_time, in vsc9959_new_base_time() argument 1177 new_base_time = base_time; in vsc9959_new_base_time() 1179 if (base_time < current_time) { in vsc9959_new_base_time() 1180 u64 nr_of_cycles = current_time - base_time; in vsc9959_new_base_time() 1259 vsc9959_new_base_time(ocelot, taprio->base_time, in vsc9959_qos_port_tas_set()
|
/linux/include/net/ |
A D | pkt_sched.h | 174 ktime_t base_time; member
|
/linux/fs/f2fs/ |
A D | segment.h | 802 bool base_time) in get_mtime() argument 811 if (!base_time) { in get_mtime()
|
/linux/drivers/net/ethernet/freescale/enetc/ |
A D | enetc_qos.c | 95 gcl_data->btl = cpu_to_le32(lower_32_bits(admin_conf->base_time)); in enetc_setup_taprio() 96 gcl_data->bth = cpu_to_le32(upper_32_bits(admin_conf->base_time)); in enetc_setup_taprio()
|
/linux/tools/perf/ |
A D | builtin-trace.c | 143 u64 base_time; member 1520 double ts = (double)(tstamp - trace->base_time) / NSEC_PER_MSEC; in __trace__fprintf_tstamp() 2961 if (trace->base_time == 0 && !trace->full_time && 2963 trace->base_time = sample->time;
|