Home
last modified time | relevance | path

Searched refs:cycle_time (Results 1 – 25 of 35) sorted by relevance

12

/linux-6.1.9/drivers/net/ethernet/engleder/
Dtsnep_tc.c14 u64 cycle_time; in tsnep_validate_gcl() local
16 if (!qopt->cycle_time) in tsnep_validate_gcl()
20 cycle_time = 0; in tsnep_validate_gcl()
28 cycle_time += qopt->entries[i].interval; in tsnep_validate_gcl()
30 if (qopt->cycle_time != cycle_time) in tsnep_validate_gcl()
32 if (qopt->cycle_time_extension >= qopt->cycle_time) in tsnep_validate_gcl()
96 gcl->cycle_time = qopt->cycle_time; in tsnep_write_gcl()
139 n = div64_u64(limit - start, gcl->cycle_time); in tsnep_gcl_start_after()
140 start += (n + 1) * gcl->cycle_time; in tsnep_gcl_start_after()
151 n = div64_u64(limit - start, gcl->cycle_time); in tsnep_gcl_start_before()
[all …]
Dtsnep_selftests.c164 n = div64_u64(system_time - base_time, qopt->cycle_time); in delay_base_time()
167 (n + 1) * qopt->cycle_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()
254 prev->cycle_time); in check_gate()
255 start_before += n * prev->cycle_time; in check_gate()
257 start_before -= prev->cycle_time; in check_gate()
365 qopt->cycle_time = 1500000; in tsnep_test_taprio()
387 qopt->cycle_time = 411854; in tsnep_test_taprio()
412 qopt->cycle_time = 125000; in tsnep_test_taprio()
[all …]
Dtsnep.h28 u64 cycle_time; member
/linux-6.1.9/drivers/net/dsa/sja1105/
Dsja1105_tas.c39 if (max_cycle_time < offload->cycle_time) in sja1105_tas_set_runtime_params()
40 max_cycle_time = offload->cycle_time; in sja1105_tas_set_runtime_params()
45 its_cycle_time = offload->cycle_time; in sja1105_tas_set_runtime_params()
52 if (max_cycle_time < gating_cfg->cycle_time) in sja1105_tas_set_runtime_params()
53 max_cycle_time = gating_cfg->cycle_time; in sja1105_tas_set_runtime_params()
58 its_cycle_time = gating_cfg->cycle_time; in sja1105_tas_set_runtime_params()
289 offload->cycle_time, in sja1105_init_scheduling()
331 gating_cfg->cycle_time, in sja1105_init_scheduling()
403 max_cycle_time = max(offload->cycle_time, admin->cycle_time); in sja1105_tas_check_conflicts()
404 min_cycle_time = min(offload->cycle_time, admin->cycle_time); in sja1105_tas_check_conflicts()
[all …]
Dsja1105_vl.c59 u64 cycle_time) in sja1105_gating_cfg_time_to_interval() argument
78 last_e->interval = cycle_time - last_e->interval; in sja1105_gating_cfg_time_to_interval()
108 if (max_cycle_time < rule->vl.cycle_time) { in sja1105_compose_gating_subschedule()
109 max_cycle_time = rule->vl.cycle_time; in sja1105_compose_gating_subschedule()
121 gating_cfg->cycle_time = max_cycle_time; in sja1105_compose_gating_subschedule()
137 rbt = future_base_time(rule->vl.base_time, rule->vl.cycle_time, in sja1105_compose_gating_subschedule()
155 entry_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
607 div_s64_rem(cycle_time, sja1105_delta_to_ns(1), &rem); in sja1105_vl_gate()
636 rule->vl.cycle_time = cycle_time; in sja1105_vl_gate()
Dsja1105_ptp.h39 static inline s64 future_base_time(s64 base_time, s64 cycle_time, s64 now) in future_base_time() argument
47 b = cycle_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_tas.h35 u64 cycle_time; member
/linux-6.1.9/drivers/net/ethernet/microchip/lan966x/
Dlan966x_taprio.c235 if (qopt->cycle_time < LAN966X_TAPRIO_MIN_CYCLE_TIME_NS || in lan966x_taprio_check()
236 qopt->cycle_time > LAN966X_TAPRIO_MAX_CYCLE_TIME_NS) in lan966x_taprio_check()
262 if (qopt->cycle_time < total_time) in lan966x_taprio_check()
373 const u32 cycle_time, in lan966x_taprio_new_base_time() argument
383 threshold_time = current_time + (2 * cycle_time); in lan966x_taprio_new_base_time()
398 if (tmp > cycle_time) in lan966x_taprio_new_base_time()
399 div_u64_rem(tmp, cycle_time, &rem); in lan966x_taprio_new_base_time()
400 rem = cycle_time - rem; in lan966x_taprio_new_base_time()
409 *new_base_time = org_base_time + 2 * cycle_time; in lan966x_taprio_new_base_time()
461 lan966x_taprio_new_base_time(lan966x, qopt->cycle_time, in lan966x_taprio_add()
[all …]
/linux-6.1.9/drivers/ata/
Dpata_bk3710.c205 unsigned int cycle_time = 0; in pata_bk3710_set_piomode() local
211 cycle_time = id[ATA_ID_EIDE_PIO_IORDY]; in pata_bk3710_set_piomode()
213 cycle_time = id[ATA_ID_EIDE_PIO]; in pata_bk3710_set_piomode()
216 if (pio < 3 && cycle_time < t->cycle) in pata_bk3710_set_piomode()
217 cycle_time = 0; /* use standard timing */ in pata_bk3710_set_piomode()
220 if (!cycle_time) in pata_bk3710_set_piomode()
221 cycle_time = t->cycle; in pata_bk3710_set_piomode()
223 pata_bk3710_setpiomode(base, pair, is_slave, cycle_time, pio); in pata_bk3710_set_piomode()
Dpata_samsung_cf.c107 int cycle_time; in pata_s3c_set_piomode() local
117 cycle_time = (int)(1000000000UL / clk_get_rate(info->clk)); in pata_s3c_set_piomode()
120 cycle_time * 1000, 0); in pata_s3c_set_piomode()
/linux-6.1.9/tools/testing/selftests/net/forwarding/
Dtsn_lib.sh183 local cycle_time=$1; shift
232 --cycle-time ${cycle_time} \
/linux-6.1.9/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_ptp.c97 u64 cycle_time; in stmmac_adjust_time() local
105 cycle_time = (u64)priv->plat->est->ctr[1] * NSEC_PER_SEC + in stmmac_adjust_time()
109 cycle_time); in stmmac_adjust_time()
Dstmmac_tc.c897 u64 cycle_time) in stmmac_calc_tas_basetime() argument
908 cycle_time); in stmmac_calc_tas_basetime()
910 (n + 1) * cycle_time); in stmmac_calc_tas_basetime()
970 if (!qopt->cycle_time) in tc_setup_taprio()
1025 qopt->cycle_time); in tc_setup_taprio()
1034 ctr = qopt->cycle_time; in tc_setup_taprio()
Dstmmac.h379 u64 cycle_time);
/linux-6.1.9/net/sched/
Dsch_taprio.c58 s64 cycle_time; member
151 div_s64_rem(time_since_sched_start, sched->cycle_time, &time_elapsed); in get_cycle_time_elapsed()
164 cycle_end = ktime_add_ns(intv_start, sched->cycle_time - cycle_elapsed); in get_interval_end_time()
214 cycle = sched->cycle_time; in find_entry_to_transmit()
406 entry->next_txtime = ktime_add(interval_start, sched->cycle_time); in get_packet_txtime()
728 oper->cycle_time); in advance_sched()
896 new->cycle_time = nla_get_s64(tb[TCA_TAPRIO_ATTR_SCHED_CYCLE_TIME]); in parse_taprio_schedule()
904 if (!new->cycle_time) { in parse_taprio_schedule()
916 new->cycle_time = cycle; in parse_taprio_schedule()
1004 cycle = sched->cycle_time; in taprio_get_start_time()
[all …]
/linux-6.1.9/drivers/net/ethernet/ti/
Dam65-cpsw-qos.c371 cfg.ns_period = est_new->taprio.cycle_time; in am65_cpsw_timer_set()
400 if (taprio_new->cycle_time != taprio_oper->cycle_time) in am65_cpsw_timer_act()
413 if (diff % taprio_new->cycle_time) in am65_cpsw_timer_act()
417 if (taprio_new->base_time <= cur_time + taprio_new->cycle_time) in am65_cpsw_timer_act()
/linux-6.1.9/drivers/net/ethernet/marvell/octeontx2/af/
Dptp.c152 u32 ptp_clock_nsec, cycle_time; in ptp_calc_adjusted_comp() local
167 cycle_time = NSEC_PER_SEC * CYCLE_MULT / ptp_clock_freq; in ptp_calc_adjusted_comp()
193 adj = comp * cycle_time; in ptp_calc_adjusted_comp()
/linux-6.1.9/drivers/net/dsa/hirschmann/
Dhellcreek.c1639 u32 cycle_time = schedule->cycle_time; in hellcreek_set_cycle_time() local
1641 hellcreek_write(hellcreek, cycle_time & 0x0000ffff, TR_CTWRL); in hellcreek_set_cycle_time()
1642 hellcreek_write(hellcreek, (cycle_time & 0xffff0000) >> 16, TR_CTWRH); in hellcreek_set_cycle_time()
1688 u32 cycle_time; in hellcreek_start_schedule() local
1700 cycle_time = hellcreek_port->current_schedule->cycle_time; in hellcreek_start_schedule()
1706 cycle_time); in hellcreek_start_schedule()
1707 base_time = ktime_add_ns(base_time, (n + 1) * cycle_time); in hellcreek_start_schedule()
1852 if (schedule->cycle_time > (u32)-1) in hellcreek_validate_schedule()
/linux-6.1.9/drivers/pcmcia/
Di82092.c278 static int cycle_time = 120; variable
282 if (cycle_time != 0) in to_cycles()
283 return ns/cycle_time; in to_cycles()
Dtcic.c86 static int cycle_time = 70; variable
96 module_param(cycle_time, int, 0444);
195 return 2*(ns-14)/cycle_time; in to_cycles()
/linux-6.1.9/drivers/net/ethernet/intel/igc/
Digc_tsn.c90 cycle = adapter->cycle_time; in igc_tsn_enable_offload()
/linux-6.1.9/include/net/
Dpkt_sched.h178 u64 cycle_time; member
/linux-6.1.9/drivers/firewire/
Dcore-card.c725 int fw_card_read_cycle_time(struct fw_card *card, u32 *cycle_time) in fw_card_read_cycle_time() argument
732 *cycle_time = card->driver->read_csr(card, CSR_CYCLE_TIME); in fw_card_read_cycle_time()
/linux-6.1.9/drivers/net/dsa/ocelot/
Dfelix_vsc9959.c1370 u64 cycle_time, in vsc9959_new_base_time() argument
1384 do_div(nr_of_cycles, cycle_time); in vsc9959_new_base_time()
1385 new_base_time += cycle_time * (nr_of_cycles + 1); in vsc9959_new_base_time()
1429 if (taprio->cycle_time > NSEC_PER_SEC || in vsc9959_qos_port_tas_set()
1474 taprio->cycle_time, &base_ts); in vsc9959_qos_port_tas_set()
1482 ocelot_write(ocelot, taprio->cycle_time, QSYS_PARAM_CFG_REG_4); in vsc9959_qos_port_tas_set()
1533 taprio->cycle_time, &base_ts); in vsc9959_tas_clock_adjust()

12