Home
last modified time | relevance | path

Searched refs:gcl (Results 1 – 6 of 6) sorted by relevance

/linux/drivers/net/ethernet/engleder/
H A Dtsnep_tc.c38 static void tsnep_write_gcl_operation(struct tsnep_gcl *gcl, int index, in tsnep_write_gcl_operation() argument
41 void __iomem *addr = gcl->addr + in tsnep_write_gcl_operation()
44 gcl->operation[index].properties = properties; in tsnep_write_gcl_operation()
45 gcl->operation[index].interval = interval; in tsnep_write_gcl_operation()
56 static u64 tsnep_change_duration(struct tsnep_gcl *gcl, int index) in tsnep_change_duration() argument
75 duration += gcl->operation[index].interval; in tsnep_change_duration()
79 index = gcl->count - 1; in tsnep_change_duration()
87 static void tsnep_write_gcl(struct tsnep_gcl *gcl, in tsnep_write_gcl() argument
95 gcl->base_time = ktime_to_ns(qopt->base_time); in tsnep_write_gcl()
96 gcl->cycle_time = qopt->cycle_time; in tsnep_write_gcl()
[all …]
H A Dtsnep_selftests.c194 static int get_operation(struct tsnep_gcl *gcl, u64 system_time, u64 *next) in get_operation() argument
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()
201 for (i = 0; i < gcl->count; i++) { in get_operation()
202 *next += gcl->operation[i].interval; in get_operation()
224 curr = &adapter->gcl[0]; in check_gate()
225 prev = &adapter->gcl[1]; in check_gate()
227 curr = &adapter->gcl[1]; in check_gate()
228 prev = &adapter->gcl[0]; in check_gate()
H A Dtsnep.h176 struct tsnep_gcl gcl[2]; member
/linux/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_est.c11 static int est_write(void __iomem *est_addr, u32 reg, u32 val, bool gcl) in est_write() argument
18 ctrl |= gcl ? 0 : EST_GCRR; in est_write()
45 ret = est_write(est_addr, i, cfg->gcl[i], true); in est_configure()
H A Dstmmac.h259 u32 gcl[EST_GCL]; member
H A Dstmmac_tc.c1033 priv->est->gcl[i] = delta_ns | (gates << wid); in tc_taprio_configure()