Home
last modified time | relevance | path

Searched refs:base_time (Results 1 – 25 of 30) sorted by relevance

12

/linux-6.1.9/scripts/
Dshow_delta61 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-6.1.9/drivers/net/ethernet/engleder/
Dtsnep_selftests.c159 u64 base_time = ktime_to_ns(qopt->base_time); in delay_base_time() local
164 n = div64_u64(system_time - base_time, qopt->cycle_time); in delay_base_time()
166 qopt->base_time = ktime_add_ns(qopt->base_time, in delay_base_time()
196 u64 n = div64_u64(system_time - gcl->base_time, gcl->cycle_time); in get_operation()
197 u64 cycle_start = gcl->base_time + gcl->cycle_time * n; in get_operation()
252 start_before = prev->base_time; in check_gate()
364 qopt->base_time = ktime_set(0, 0); in tsnep_test_taprio()
386 qopt->base_time = ktime_set(0, 0); in tsnep_test_taprio()
410 qopt->base_time = ktime_set(0, 0); in tsnep_test_taprio()
461 qopt->base_time = ktime_set(0, 0); in tsnep_test_taprio_change()
[all …]
Dtsnep_tc.c95 gcl->base_time = ktime_to_ns(qopt->base_time); in tsnep_write_gcl()
135 u64 start = gcl->base_time; in tsnep_gcl_start_after()
148 u64 start = gcl->base_time; in tsnep_gcl_start_before()
Dtsnep.h27 u64 base_time; member
/linux-6.1.9/drivers/net/ethernet/intel/igc/
Digc_tsn.c87 ktime_t base_time, systim; in igc_tsn_enable_offload() local
91 base_time = adapter->base_time; in igc_tsn_enable_offload()
211 if (ktime_compare(systim, base_time) > 0) { in igc_tsn_enable_offload()
214 n = div64_s64(ktime_sub_ns(systim, base_time), cycle); in igc_tsn_enable_offload()
215 base_time = ktime_add_ns(base_time, (n + 1) * cycle); in igc_tsn_enable_offload()
218 baset_h = div_s64_rem(base_time, NSEC_PER_SEC, &baset_l); in igc_tsn_enable_offload()
/linux-6.1.9/drivers/net/dsa/sja1105/
Dsja1105_tas.c41 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()
43 if (earliest_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()
56 if (earliest_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()
288 rbt = future_base_time(offload->base_time, in sja1105_init_scheduling()
330 rbt = future_base_time(gating_cfg->base_time, in sja1105_init_scheduling()
[all …]
Dsja1105_ptp.h39 static inline s64 future_base_time(s64 base_time, s64 cycle_time, s64 now) in future_base_time() argument
43 if (base_time >= now) in future_base_time()
44 return base_time; in future_base_time()
46 a = now - base_time; in future_base_time()
50 return base_time + n * cycle_time; in future_base_time()
Dsja1105_vl.h23 u64 base_time, u64 cycle_time, u64 cycle_time_ext,
55 u64 base_time, u64 cycle_time, in sja1105_vl_gate() argument
Dsja1105_vl.c110 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()
584 u64 base_time, u64 cycle_time, u64 cycle_time_ext, in sja1105_vl_gate() argument
600 div_s64_rem(base_time, sja1105_delta_to_ns(1), &rem); in sja1105_vl_gate()
635 rule->vl.base_time = base_time; in sja1105_vl_gate()
Dsja1105_tas.h36 s64 base_time; member
Dsja1105.h229 u64 base_time; member
/linux-6.1.9/drivers/net/ethernet/ti/
Dam65-cpsw-qos.c372 cfg.ns_start = est_new->taprio.base_time; in am65_cpsw_timer_set()
404 if (!taprio_new->base_time && taprio_oper) in am65_cpsw_timer_act()
405 taprio_new->base_time = taprio_oper->base_time; in am65_cpsw_timer_act()
407 if (taprio_new->base_time == taprio_oper->base_time) in am65_cpsw_timer_act()
411 diff = taprio_new->base_time - taprio_oper->base_time; in am65_cpsw_timer_act()
417 if (taprio_new->base_time <= cur_time + taprio_new->cycle_time) in am65_cpsw_timer_act()
471 if (!est_new->taprio.base_time) in am65_cpsw_configure_taprio()
472 est_new->taprio.base_time = am65_cpts_ns_gettime(cpts); in am65_cpsw_configure_taprio()
/linux-6.1.9/drivers/net/ethernet/microchip/lan966x/
Dlan966x_taprio.c447 ktime_t base_time; in lan966x_taprio_add() local
462 qopt->base_time, &base_time); in lan966x_taprio_add()
464 ts = ktime_to_timespec64(base_time); in lan966x_taprio_add()
/linux-6.1.9/tools/testing/selftests/net/forwarding/
Dtsn_lib.sh182 local base_time=$1; shift
231 --base-time ${base_time} \
/linux-6.1.9/net/sched/
Dsch_taprio.c60 s64 base_time; member
96 return ns_to_ktime(sched->base_time); in sched_base_time()
150 time_since_sched_start = ktime_sub(time, sched->base_time); in get_cycle_time_elapsed()
171 ktime_after(admin->base_time, cycle_end) && in get_interval_end_time()
172 ktime_before(admin->base_time, cycle_ext_end)) in get_interval_end_time()
173 return admin->base_time; in get_interval_end_time()
364 if (admin && ktime_after(minimum_time, admin->base_time)) in get_packet_txtime()
368 if (!sched || ktime_before(minimum_time, sched->base_time)) { in get_packet_txtime()
393 ktime_after(txtime, admin->base_time)) { in get_packet_txtime()
717 if (unlikely(!entry || entry->close_time == oper->base_time)) { in advance_sched()
[all …]
/linux-6.1.9/sound/drivers/
Ddummy.c233 unsigned long base_time; member
253 delta = jiffies - dpcm->base_time; in dummy_systimer_update()
256 dpcm->base_time += delta; in dummy_systimer_update()
272 dpcm->base_time = jiffies; in dummy_systimer_start()
367 ktime_t base_time; member
397 dpcm->base_time = hrtimer_cb_get_time(&dpcm->timer); in dummy_hrtimer_start()
427 dpcm->base_time); in dummy_hrtimer_pointer()
/linux-6.1.9/tools/testing/selftests/drivers/net/ocelot/
Dpsfp.sh253 local base_time=$1
266 "${base_time}" \
/linux-6.1.9/drivers/media/pci/bt8xx/
Dbttv-input.c193 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()
Dbttvp.h131 ktime_t base_time; /* time of last seen code */ member
/linux-6.1.9/drivers/net/dsa/hirschmann/
Dhellcreek.c1678 base_time_ns = ktime_to_ns(hellcreek_port->current_schedule->base_time); in hellcreek_schedule_startable()
1686 ktime_t base_time, current_time; in hellcreek_start_schedule() local
1699 base_time = hellcreek_port->current_schedule->base_time; in hellcreek_start_schedule()
1702 if (ktime_compare(current_time, base_time) > 0) { in hellcreek_start_schedule()
1705 n = div64_s64(ktime_sub_ns(current_time, base_time), in hellcreek_start_schedule()
1707 base_time = ktime_add_ns(base_time, (n + 1) * cycle_time); in hellcreek_start_schedule()
1711 hellcreek_switch_schedule(hellcreek, base_time); in hellcreek_start_schedule()
/linux-6.1.9/Documentation/networking/dsa/
Dsja1105.rst163 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-6.1.9/drivers/video/fbdev/
Dpxa3xx-gcu.c95 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-6.1.9/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_tc.c905 ktime_t base_time; in stmmac_calc_tas_basetime() local
909 base_time = ktime_add_ns(old_base_time, in stmmac_calc_tas_basetime()
912 time = ktime_to_timespec64(base_time); in stmmac_calc_tas_basetime()
1024 time = stmmac_calc_tas_basetime(qopt->base_time, current_time_ns, in tc_setup_taprio()
1030 qopt_time = ktime_to_timespec64(qopt->base_time); in tc_setup_taprio()
/linux-6.1.9/include/net/
Dpkt_sched.h177 ktime_t base_time; member
/linux-6.1.9/drivers/net/dsa/ocelot/
Dfelix_vsc9959.c1369 static void vsc9959_new_base_time(struct ocelot *ocelot, ktime_t base_time, in vsc9959_new_base_time() argument
1379 new_base_time = base_time; in vsc9959_new_base_time()
1381 if (base_time < current_time) { in vsc9959_new_base_time()
1382 u64 nr_of_cycles = current_time - base_time; in vsc9959_new_base_time()
1473 vsc9959_new_base_time(ocelot, taprio->base_time, in vsc9959_qos_port_tas_set()
1532 vsc9959_new_base_time(ocelot, taprio->base_time, in vsc9959_tas_clock_adjust()

12