ts 237 arch/arc/include/asm/arcregs.h unsigned int pad:6, fbe:2, tqe:2, ts:4, ft:1, rse:2, pte:3, bce:3, ver:8; ts 239 arch/arc/include/asm/arcregs.h unsigned int ver:8, bce:3, pte:3, rse:2, ft:1, ts:4, tqe:2, fbe:2, pad:6; ts 76 arch/arm/kernel/time.c static void dummy_clock_access(struct timespec64 *ts) ts 78 arch/arm/kernel/time.c ts->tv_sec = 0; ts 79 arch/arm/kernel/time.c ts->tv_nsec = 0; ts 84 arch/arm/kernel/time.c void read_persistent_clock64(struct timespec64 *ts) ts 86 arch/arm/kernel/time.c __read_persistent_clock(ts); ts 54 arch/arm/plat-omap/counter_32k.c static void omap_read_persistent_clock64(struct timespec64 *ts) ts 67 arch/arm/plat-omap/counter_32k.c *ts = persistent_ts; ts 53 arch/arm/vdso/vgettimeofday.c register struct timespec *ts asm("r1") = _ts; ts 61 arch/arm/vdso/vgettimeofday.c : "r" (clkid), "r" (ts), "r" (nr) ts 67 arch/arm/vdso/vgettimeofday.c static notrace int do_realtime_coarse(struct timespec *ts, ts 75 arch/arm/vdso/vgettimeofday.c ts->tv_sec = vdata->xtime_coarse_sec; ts 76 arch/arm/vdso/vgettimeofday.c ts->tv_nsec = vdata->xtime_coarse_nsec; ts 83 arch/arm/vdso/vgettimeofday.c static notrace int do_monotonic_coarse(struct timespec *ts, ts 92 arch/arm/vdso/vgettimeofday.c ts->tv_sec = vdata->xtime_coarse_sec; ts 93 arch/arm/vdso/vgettimeofday.c ts->tv_nsec = vdata->xtime_coarse_nsec; ts 100 arch/arm/vdso/vgettimeofday.c ts->tv_sec += tomono.tv_sec; ts 101 arch/arm/vdso/vgettimeofday.c timespec_add_ns(ts, tomono.tv_nsec); ts 125 arch/arm/vdso/vgettimeofday.c static notrace int do_realtime(struct timespec *ts, struct vdso_data *vdata) ts 136 arch/arm/vdso/vgettimeofday.c ts->tv_sec = vdata->xtime_clock_sec; ts 141 arch/arm/vdso/vgettimeofday.c ts->tv_nsec = 0; ts 142 arch/arm/vdso/vgettimeofday.c timespec_add_ns(ts, nsecs); ts 147 arch/arm/vdso/vgettimeofday.c static notrace int do_monotonic(struct timespec *ts, struct vdso_data *vdata) ts 159 arch/arm/vdso/vgettimeofday.c ts->tv_sec = vdata->xtime_clock_sec; ts 167 arch/arm/vdso/vgettimeofday.c ts->tv_sec += tomono.tv_sec; ts 168 arch/arm/vdso/vgettimeofday.c ts->tv_nsec = 0; ts 169 arch/arm/vdso/vgettimeofday.c timespec_add_ns(ts, nsecs + tomono.tv_nsec); ts 176 arch/arm/vdso/vgettimeofday.c static notrace int do_realtime(struct timespec *ts, struct vdso_data *vdata) ts 181 arch/arm/vdso/vgettimeofday.c static notrace int do_monotonic(struct timespec *ts, struct vdso_data *vdata) ts 188 arch/arm/vdso/vgettimeofday.c notrace int __vdso_clock_gettime(clockid_t clkid, struct timespec *ts) ts 197 arch/arm/vdso/vgettimeofday.c ret = do_realtime_coarse(ts, vdata); ts 200 arch/arm/vdso/vgettimeofday.c ret = do_monotonic_coarse(ts, vdata); ts 203 arch/arm/vdso/vgettimeofday.c ret = do_realtime(ts, vdata); ts 206 arch/arm/vdso/vgettimeofday.c ret = do_monotonic(ts, vdata); ts 213 arch/arm/vdso/vgettimeofday.c ret = clock_gettime_fallback(clkid, ts); ts 237 arch/arm/vdso/vgettimeofday.c struct timespec ts; ts 243 arch/arm/vdso/vgettimeofday.c ret = do_realtime(&ts, vdata); ts 248 arch/arm/vdso/vgettimeofday.c tv->tv_sec = ts.tv_sec; ts 249 arch/arm/vdso/vgettimeofday.c tv->tv_usec = ts.tv_nsec / 1000; ts 72 arch/arm/xen/enlighten.c static void xen_read_wallclock(struct timespec64 *ts) ts 90 arch/arm/xen/enlighten.c *ts = timespec64_add(now, ts_monotonic); ts 410 arch/arm/xen/enlighten.c struct timespec64 ts; ts 411 arch/arm/xen/enlighten.c xen_read_wallclock(&ts); ts 412 arch/arm/xen/enlighten.c do_settimeofday64(&ts); ts 42 arch/arm64/include/asm/vdso/compat_gettimeofday.h register struct __kernel_timespec *ts asm("r1") = _ts; ts 50 arch/arm64/include/asm/vdso/compat_gettimeofday.h : "r" (clkid), "r" (ts), "r" (nr) ts 59 arch/arm64/include/asm/vdso/compat_gettimeofday.h register struct old_timespec32 *ts asm("r1") = _ts; ts 67 arch/arm64/include/asm/vdso/compat_gettimeofday.h : "r" (clkid), "r" (ts), "r" (nr) ts 76 arch/arm64/include/asm/vdso/compat_gettimeofday.h register struct __kernel_timespec *ts asm("r1") = _ts; ts 88 arch/arm64/include/asm/vdso/compat_gettimeofday.h : "r" (clkid), "r" (ts), "r" (nr) ts 97 arch/arm64/include/asm/vdso/compat_gettimeofday.h register struct old_timespec32 *ts asm("r1") = _ts; ts 109 arch/arm64/include/asm/vdso/compat_gettimeofday.h : "r" (clkid), "r" (ts), "r" (nr) ts 38 arch/arm64/include/asm/vdso/gettimeofday.h register struct __kernel_timespec *ts asm("x1") = _ts; ts 46 arch/arm64/include/asm/vdso/gettimeofday.h : "r" (clkid), "r" (ts), "r" (nr) ts 55 arch/arm64/include/asm/vdso/gettimeofday.h register struct __kernel_timespec *ts asm("x1") = _ts; ts 63 arch/arm64/include/asm/vdso/gettimeofday.h : "r" (clkid), "r" (ts), "r" (nr) ts 12 arch/arm64/kernel/vdso/vgettimeofday.c struct __kernel_timespec *ts) ts 14 arch/arm64/kernel/vdso/vgettimeofday.c return __cvdso_clock_gettime(clock, ts); ts 12 arch/arm64/kernel/vdso32/vgettimeofday.c struct old_timespec32 *ts) ts 15 arch/arm64/kernel/vdso32/vgettimeofday.c if ((u32)ts >= TASK_SIZE_32) ts 18 arch/arm64/kernel/vdso32/vgettimeofday.c return __cvdso_clock_gettime32(clock, ts); ts 22 arch/arm64/kernel/vdso32/vgettimeofday.c struct __kernel_timespec *ts) ts 25 arch/arm64/kernel/vdso32/vgettimeofday.c if ((u32)ts >= TASK_SIZE_32) ts 28 arch/arm64/kernel/vdso32/vgettimeofday.c return __cvdso_clock_gettime(clock, ts); ts 243 arch/ia64/kernel/efi.c efi_gettimeofday (struct timespec64 *ts) ts 248 arch/ia64/kernel/efi.c memset(ts, 0, sizeof(*ts)); ts 252 arch/ia64/kernel/efi.c ts->tv_sec = mktime64(tm.year, tm.month, tm.day, ts 254 arch/ia64/kernel/efi.c ts->tv_nsec = tm.nanosecond; ts 390 arch/ia64/kernel/time.c void read_persistent_clock64(struct timespec64 *ts) ts 392 arch/ia64/kernel/time.c efi_gettimeofday(ts); ts 77 arch/m68k/kernel/time.c void read_persistent_clock64(struct timespec64 *ts) ts 81 arch/m68k/kernel/time.c ts->tv_sec = 0; ts 82 arch/m68k/kernel/time.c ts->tv_nsec = 0; ts 89 arch/m68k/kernel/time.c ts->tv_sec = mktime64(time.tm_year + 1900, time.tm_mon + 1, time.tm_mday, ts 22 arch/mips/dec/time.c void read_persistent_clock64(struct timespec64 *ts) ts 57 arch/mips/dec/time.c ts->tv_sec = mktime64(year, mon, day, hour, min, sec); ts 58 arch/mips/dec/time.c ts->tv_nsec = 0; ts 263 arch/mips/include/asm/octeon/cvmx-mixx-defs.h uint64_t ts:1; ts 279 arch/mips/include/asm/octeon/cvmx-mixx-defs.h uint64_t ts:1; ts 53 arch/mips/include/asm/vdso/gettimeofday.h register struct __kernel_timespec *ts asm("a1") = _ts; ts 66 arch/mips/include/asm/vdso/gettimeofday.h : "r" (clkid), "r" (ts), "r" (nr) ts 77 arch/mips/include/asm/vdso/gettimeofday.h register struct __kernel_timespec *ts asm("a1") = _ts; ts 90 arch/mips/include/asm/vdso/gettimeofday.h : "r" (clkid), "r" (ts), "r" (nr) ts 105 arch/mips/include/asm/vdso/gettimeofday.h register struct old_timespec32 *ts asm("a1") = _ts; ts 114 arch/mips/include/asm/vdso/gettimeofday.h : "r" (clkid), "r" (ts), "r" (nr) ts 125 arch/mips/include/asm/vdso/gettimeofday.h register struct old_timespec32 *ts asm("a1") = _ts; ts 134 arch/mips/include/asm/vdso/gettimeofday.h : "r" (clkid), "r" (ts), "r" (nr) ts 139 arch/mips/lasat/ds1603.c void read_persistent_clock64(struct timespec64 *ts) ts 151 arch/mips/lasat/ds1603.c ts->tv_sec = word; ts 152 arch/mips/lasat/ds1603.c ts->tv_nsec = 0; ts 50 arch/mips/lasat/sysctl.c struct timespec64 ts; ts 54 arch/mips/lasat/sysctl.c read_persistent_clock64(&ts); ts 55 arch/mips/lasat/sysctl.c rtctmp = ts.tv_sec; ts 69 arch/mips/lasat/sysctl.c ts.tv_sec = rtctmp; ts 70 arch/mips/lasat/sysctl.c ts.tv_nsec = 0; ts 72 arch/mips/lasat/sysctl.c update_persistent_clock64(ts); ts 28 arch/mips/loongson64/common/time.c void read_persistent_clock64(struct timespec64 *ts) ts 30 arch/mips/loongson64/common/time.c ts->tv_sec = mc146818_get_cmos_time(); ts 31 arch/mips/loongson64/common/time.c ts->tv_nsec = 0; ts 125 arch/mips/mti-malta/malta-time.c void read_persistent_clock64(struct timespec64 *ts) ts 127 arch/mips/mti-malta/malta-time.c ts->tv_sec = mc146818_get_cmos_time(); ts 128 arch/mips/mti-malta/malta-time.c ts->tv_nsec = 0; ts 662 arch/mips/net/ebpf_jit.c int src, dst, r, td, ts, mem_off, b_off; ts 928 arch/mips/net/ebpf_jit.c ts = get_reg_val_type(ctx, this_idx, insn->src_reg); ts 929 arch/mips/net/ebpf_jit.c if (ts == REG_64BIT) { ts 1030 arch/mips/net/ebpf_jit.c ts = get_reg_val_type(ctx, this_idx, insn->src_reg); ts 1031 arch/mips/net/ebpf_jit.c if (td == REG_32BIT && ts != REG_32BIT) { ts 1034 arch/mips/net/ebpf_jit.c } else if (ts == REG_32BIT && td != REG_32BIT) { ts 77 arch/mips/sibyte/swarm/setup.c void read_persistent_clock64(struct timespec64 *ts) ts 95 arch/mips/sibyte/swarm/setup.c ts->tv_sec = sec; ts 96 arch/mips/sibyte/swarm/setup.c ts->tv_nsec = 0; ts 15 arch/mips/vdso/vgettimeofday.c struct old_timespec32 *ts) ts 17 arch/mips/vdso/vgettimeofday.c return __cvdso_clock_gettime32(clock, ts); ts 43 arch/mips/vdso/vgettimeofday.c struct __kernel_timespec *ts) ts 45 arch/mips/vdso/vgettimeofday.c return __cvdso_clock_gettime(clock, ts); ts 51 arch/mips/vdso/vgettimeofday.c struct __kernel_timespec *ts) ts 53 arch/mips/vdso/vgettimeofday.c return __cvdso_clock_gettime(clock, ts); ts 53 arch/nds32/kernel/vdso/gettimeofday.c register struct timespec *ts asm("$r1") = _ts; ts 60 arch/nds32/kernel/vdso/gettimeofday.c :"r"(clkid), "r"(ts), "i"(__NR_clock_gettime) ts 66 arch/nds32/kernel/vdso/gettimeofday.c static notrace int do_realtime_coarse(struct timespec *ts, ts 74 arch/nds32/kernel/vdso/gettimeofday.c ts->tv_sec = vdata->xtime_coarse_sec; ts 75 arch/nds32/kernel/vdso/gettimeofday.c ts->tv_nsec = vdata->xtime_coarse_nsec; ts 81 arch/nds32/kernel/vdso/gettimeofday.c static notrace int do_monotonic_coarse(struct timespec *ts, ts 90 arch/nds32/kernel/vdso/gettimeofday.c ts->tv_sec = vdata->xtime_coarse_sec; ts 91 arch/nds32/kernel/vdso/gettimeofday.c ts->tv_nsec = vdata->xtime_coarse_nsec; ts 98 arch/nds32/kernel/vdso/gettimeofday.c ts->tv_sec += tomono.tv_sec; ts 99 arch/nds32/kernel/vdso/gettimeofday.c timespec_add_ns(ts, tomono.tv_nsec); ts 118 arch/nds32/kernel/vdso/gettimeofday.c static notrace int do_realtime(struct timespec *ts, struct vdso_data *vdata) ts 124 arch/nds32/kernel/vdso/gettimeofday.c ts->tv_sec = vdata->xtime_clock_sec; ts 130 arch/nds32/kernel/vdso/gettimeofday.c ts->tv_sec += __iter_div_u64_rem(ns, NSEC_PER_SEC, &ns); ts 131 arch/nds32/kernel/vdso/gettimeofday.c ts->tv_nsec = ns; ts 136 arch/nds32/kernel/vdso/gettimeofday.c static notrace int do_monotonic(struct timespec *ts, struct vdso_data *vdata) ts 145 arch/nds32/kernel/vdso/gettimeofday.c ts->tv_sec = vdata->xtime_clock_sec; ts 155 arch/nds32/kernel/vdso/gettimeofday.c ts->tv_sec += tomono.tv_sec; ts 156 arch/nds32/kernel/vdso/gettimeofday.c ts->tv_nsec = 0; ts 157 arch/nds32/kernel/vdso/gettimeofday.c timespec_add_ns(ts, nsecs + tomono.tv_nsec); ts 161 arch/nds32/kernel/vdso/gettimeofday.c notrace int __vdso_clock_gettime(clockid_t clkid, struct timespec *ts) ts 168 arch/nds32/kernel/vdso/gettimeofday.c return clock_gettime_fallback(clkid, ts); ts 172 arch/nds32/kernel/vdso/gettimeofday.c ret = do_realtime_coarse(ts, vdata); ts 175 arch/nds32/kernel/vdso/gettimeofday.c ret = do_monotonic_coarse(ts, vdata); ts 178 arch/nds32/kernel/vdso/gettimeofday.c ret = do_realtime(ts, vdata); ts 181 arch/nds32/kernel/vdso/gettimeofday.c ret = do_monotonic(ts, vdata); ts 188 arch/nds32/kernel/vdso/gettimeofday.c ret = clock_gettime_fallback(clkid, ts); ts 251 arch/nds32/kernel/vdso/gettimeofday.c struct timespec ts; ts 260 arch/nds32/kernel/vdso/gettimeofday.c ret = do_realtime(&ts, vdata); ts 263 arch/nds32/kernel/vdso/gettimeofday.c tv->tv_sec = ts.tv_sec; ts 264 arch/nds32/kernel/vdso/gettimeofday.c tv->tv_usec = ts.tv_nsec / 1000; ts 339 arch/nios2/kernel/time.c void read_persistent_clock64(struct timespec64 *ts) ts 341 arch/nios2/kernel/time.c ts->tv_sec = mktime64(2007, 1, 1, 0, 0, 0); ts 342 arch/nios2/kernel/time.c ts->tv_nsec = 0; ts 208 arch/parisc/kernel/time.c void read_persistent_clock64(struct timespec64 *ts) ts 212 arch/parisc/kernel/time.c ts->tv_sec = tod_data.tod_sec; ts 213 arch/parisc/kernel/time.c ts->tv_nsec = tod_data.tod_usec * 1000; ts 216 arch/parisc/kernel/time.c ts->tv_sec = 0; ts 217 arch/parisc/kernel/time.c ts->tv_nsec = 0; ts 817 arch/powerpc/kernel/time.c static void __read_persistent_clock(struct timespec64 *ts) ts 822 arch/powerpc/kernel/time.c ts->tv_nsec = 0; ts 831 arch/powerpc/kernel/time.c ts->tv_sec = ppc_md.get_boot_time() - timezone_offset; ts 836 arch/powerpc/kernel/time.c ts->tv_sec = 0; ts 841 arch/powerpc/kernel/time.c ts->tv_sec = rtc_tm_to_time64(&tm); ts 844 arch/powerpc/kernel/time.c void read_persistent_clock64(struct timespec64 *ts) ts 846 arch/powerpc/kernel/time.c __read_persistent_clock(ts); ts 849 arch/powerpc/kernel/time.c if (ts->tv_sec < 0) { ts 850 arch/powerpc/kernel/time.c ts->tv_sec = 0; ts 851 arch/powerpc/kernel/time.c ts->tv_nsec = 0; ts 236 arch/powerpc/kvm/e500.c unsigned int pr, tid, ts; ts 241 arch/powerpc/kvm/e500.c ts = get_tlb_ts(gtlbe); ts 257 arch/powerpc/kvm/e500.c pid = local_sid_lookup(&idt->id[ts][tid][pr]); ts 259 arch/powerpc/kvm/e500.c kvmppc_e500_id_table_reset_one(vcpu_e500, ts, tid, pr); ts 58 arch/powerpc/kvm/e500mc.c unsigned int tid, ts; ts 63 arch/powerpc/kvm/e500mc.c ts = get_tlb_ts(gtlbe); ts 67 arch/powerpc/kvm/e500mc.c val = (tid << 16) | ts; ts 227 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c u32 ts; ts 232 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c ts = get_tbl(); ts 310 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c req->irq_ticks += get_tbl() - ts; ts 330 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c u32 ts; ts 333 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c ts = get_tbl(); ts 364 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c req->irq_ticks += get_tbl() - ts; ts 92 arch/s390/include/asm/timex.h unsigned int ts : 2; ts 211 arch/s390/kernel/time.c void read_persistent_clock64(struct timespec64 *ts) ts 221 arch/s390/kernel/time.c ext_to_timespec64(clk, ts); ts 66 arch/sparc/vdso/vclock_gettime.c notrace static long vdso_fallback_gettime(long clock, struct timespec *ts) ts 70 arch/sparc/vdso/vclock_gettime.c register long o1 __asm__("o1") = (long) ts; ts 147 arch/sparc/vdso/vclock_gettime.c struct timespec *ts) ts 154 arch/sparc/vdso/vclock_gettime.c ts->tv_sec = vvar->wall_time_sec; ts 160 arch/sparc/vdso/vclock_gettime.c ts->tv_sec += __iter_div_u64_rem(ns, NSEC_PER_SEC, &ns); ts 161 arch/sparc/vdso/vclock_gettime.c ts->tv_nsec = ns; ts 167 arch/sparc/vdso/vclock_gettime.c struct timespec *ts) ts 174 arch/sparc/vdso/vclock_gettime.c ts->tv_sec = vvar->wall_time_sec; ts 180 arch/sparc/vdso/vclock_gettime.c ts->tv_sec += __iter_div_u64_rem(ns, NSEC_PER_SEC, &ns); ts 181 arch/sparc/vdso/vclock_gettime.c ts->tv_nsec = ns; ts 187 arch/sparc/vdso/vclock_gettime.c struct timespec *ts) ts 194 arch/sparc/vdso/vclock_gettime.c ts->tv_sec = vvar->monotonic_time_sec; ts 200 arch/sparc/vdso/vclock_gettime.c ts->tv_sec += __iter_div_u64_rem(ns, NSEC_PER_SEC, &ns); ts 201 arch/sparc/vdso/vclock_gettime.c ts->tv_nsec = ns; ts 207 arch/sparc/vdso/vclock_gettime.c struct timespec *ts) ts 214 arch/sparc/vdso/vclock_gettime.c ts->tv_sec = vvar->monotonic_time_sec; ts 220 arch/sparc/vdso/vclock_gettime.c ts->tv_sec += __iter_div_u64_rem(ns, NSEC_PER_SEC, &ns); ts 221 arch/sparc/vdso/vclock_gettime.c ts->tv_nsec = ns; ts 227 arch/sparc/vdso/vclock_gettime.c struct timespec *ts) ts 233 arch/sparc/vdso/vclock_gettime.c ts->tv_sec = vvar->wall_time_coarse_sec; ts 234 arch/sparc/vdso/vclock_gettime.c ts->tv_nsec = vvar->wall_time_coarse_nsec; ts 240 arch/sparc/vdso/vclock_gettime.c struct timespec *ts) ts 246 arch/sparc/vdso/vclock_gettime.c ts->tv_sec = vvar->monotonic_time_coarse_sec; ts 247 arch/sparc/vdso/vclock_gettime.c ts->tv_nsec = vvar->monotonic_time_coarse_nsec; ts 254 arch/sparc/vdso/vclock_gettime.c __vdso_clock_gettime(clockid_t clock, struct timespec *ts) ts 262 arch/sparc/vdso/vclock_gettime.c return do_realtime(vvd, ts); ts 266 arch/sparc/vdso/vclock_gettime.c return do_monotonic(vvd, ts); ts 268 arch/sparc/vdso/vclock_gettime.c return do_realtime_coarse(vvd, ts); ts 270 arch/sparc/vdso/vclock_gettime.c return do_monotonic_coarse(vvd, ts); ts 275 arch/sparc/vdso/vclock_gettime.c return vdso_fallback_gettime(clock, ts); ts 282 arch/sparc/vdso/vclock_gettime.c __vdso_clock_gettime_stick(clockid_t clock, struct timespec *ts) ts 290 arch/sparc/vdso/vclock_gettime.c return do_realtime_stick(vvd, ts); ts 294 arch/sparc/vdso/vclock_gettime.c return do_monotonic_stick(vvd, ts); ts 296 arch/sparc/vdso/vclock_gettime.c return do_realtime_coarse(vvd, ts); ts 298 arch/sparc/vdso/vclock_gettime.c return do_monotonic_coarse(vvd, ts); ts 303 arch/sparc/vdso/vclock_gettime.c return vdso_fallback_gettime(clock, ts); ts 314 arch/sparc/vdso/vclock_gettime.c struct timespec ts; ts 317 arch/sparc/vdso/vclock_gettime.c do_realtime(vvd, &tstv->ts); ts 326 arch/sparc/vdso/vclock_gettime.c tstv->tv.tv_usec = tstv->ts.tv_nsec; ts 350 arch/sparc/vdso/vclock_gettime.c struct timespec ts; ts 353 arch/sparc/vdso/vclock_gettime.c do_realtime_stick(vvd, &tstv->ts); ts 362 arch/sparc/vdso/vclock_gettime.c tstv->tv.tv_usec = tstv->ts.tv_nsec; ts 185 arch/um/kernel/time.c void read_persistent_clock64(struct timespec64 *ts) ts 194 arch/um/kernel/time.c set_normalized_timespec64(ts, nsecs / NSEC_PER_SEC, ts 27 arch/um/os-Linux/time.c static inline long long timespec_to_ns(const struct timespec *ts) ts 29 arch/um/os-Linux/time.c return ((long long) ts->tv_sec * UM_NSEC_PER_SEC) + ts->tv_nsec; ts 96 arch/um/os-Linux/time.c struct timespec ts; ts 98 arch/um/os-Linux/time.c clock_gettime(CLOCK_MONOTONIC,&ts); ts 99 arch/um/os-Linux/time.c return timespec_to_ns(&ts); ts 108 arch/um/os-Linux/time.c struct timespec ts = { ts 116 arch/um/os-Linux/time.c if (clock_nanosleep(CLOCK_MONOTONIC, 0, &ts, NULL)) ts 38 arch/x86/entry/vdso/vclock_gettime.c extern int __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts); ts 41 arch/x86/entry/vdso/vclock_gettime.c int __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts) ts 43 arch/x86/entry/vdso/vclock_gettime.c return __cvdso_clock_gettime(clock, ts); ts 59 arch/x86/entry/vdso/vclock_gettime.c extern int __vdso_clock_gettime(clockid_t clock, struct old_timespec32 *ts); ts 62 arch/x86/entry/vdso/vclock_gettime.c int __vdso_clock_gettime(clockid_t clock, struct old_timespec32 *ts) ts 64 arch/x86/entry/vdso/vclock_gettime.c return __cvdso_clock_gettime32(clock, ts); ts 70 arch/x86/entry/vdso/vclock_gettime.c int __vdso_clock_gettime64(clockid_t clock, struct __kernel_timespec *ts) ts 72 arch/x86/entry/vdso/vclock_gettime.c return __cvdso_clock_gettime(clock, ts); ts 15 arch/x86/include/asm/pvclock.h struct timespec64 *ts); ts 271 arch/x86/include/asm/x86_init.h void (*get_wallclock)(struct timespec64 *ts); ts 272 arch/x86/include/asm/x86_init.h int (*set_wallclock)(const struct timespec64 *ts); ts 216 arch/x86/kernel/cpu/mce/intel.c unsigned long ts = __this_cpu_read(cmci_time_stamp); ts 223 arch/x86/kernel/cpu/mce/intel.c if (time_before_eq(now, ts + CMCI_STORM_INTERVAL)) { ts 115 arch/x86/kernel/pvclock.c struct timespec64 *ts) ts 143 arch/x86/kernel/pvclock.c set_normalized_timespec64(ts, now.tv_sec, now.tv_nsec); ts 154 arch/x86/kernel/rtc.c void read_persistent_clock64(struct timespec64 *ts) ts 156 arch/x86/kernel/rtc.c x86_platform.get_wallclock(ts); ts 1699 arch/x86/kvm/x86.c struct timespec64 ts = ns_to_timespec64(kvm->arch.kvmclock_offset); ts 1700 arch/x86/kvm/x86.c boot = timespec64_sub(boot, ts); ts 2136 arch/x86/kvm/x86.c static int do_realtime(struct timespec64 *ts, u64 *tsc_timestamp) ts 2145 arch/x86/kvm/x86.c ts->tv_sec = gtod->wall_time_sec; ts 2151 arch/x86/kvm/x86.c ts->tv_sec += __iter_div_u64_rem(ns, NSEC_PER_SEC, &ns); ts 2152 arch/x86/kvm/x86.c ts->tv_nsec = ns; ts 2169 arch/x86/kvm/x86.c static bool kvm_get_walltime_and_clockread(struct timespec64 *ts, ts 2176 arch/x86/kvm/x86.c return gtod_is_based_on_tsc(do_realtime(ts, tsc_timestamp)); ts 7376 arch/x86/kvm/x86.c struct timespec64 ts; ts 7383 arch/x86/kvm/x86.c if (kvm_get_walltime_and_clockread(&ts, &cycle) == false) ts 7386 arch/x86/kvm/x86.c clock_pairing.sec = ts.tv_sec; ts 7387 arch/x86/kvm/x86.c clock_pairing.nsec = ts.tv_nsec; ts 16 arch/x86/um/vdso/um_vdso.c int __vdso_clock_gettime(clockid_t clock, struct timespec *ts) ts 21 arch/x86/um/vdso/um_vdso.c "0" (__NR_clock_gettime), "D" (clock), "S" (ts) : "memory"); ts 67 arch/x86/xen/time.c static void xen_read_wallclock(struct timespec64 *ts) ts 74 arch/x86/xen/time.c pvclock_read_wallclock(wall_clock, vcpu_time, ts); ts 196 arch/xtensa/kernel/smp.c static int boot_secondary(unsigned int cpu, struct task_struct *ts) ts 869 drivers/block/zram/zram_drv.c struct timespec64 ts; ts 889 drivers/block/zram/zram_drv.c ts = ktime_to_timespec64(zram->table[index].ac_time); ts 892 drivers/block/zram/zram_drv.c index, (s64)ts.tv_sec, ts 893 drivers/block/zram/zram_drv.c ts.tv_nsec / NSEC_PER_USEC, ts 132 drivers/bus/imx-weim.c struct cs_timing_state *ts) ts 169 drivers/bus/imx-weim.c cst = &ts->cs[cs_idx]; ts 197 drivers/bus/imx-weim.c struct cs_timing_state ts = {}; ts 218 drivers/bus/imx-weim.c ret = weim_timing_setup(&pdev->dev, child, base, devtype, &ts); ts 942 drivers/char/ipmi/ipmi_si_intf.c static inline void ipmi_si_set_not_busy(struct timespec *ts) ts 944 drivers/char/ipmi/ipmi_si_intf.c ts->tv_nsec = -1; ts 946 drivers/char/ipmi/ipmi_si_intf.c static inline int ipmi_si_is_busy(struct timespec *ts) ts 948 drivers/char/ipmi/ipmi_si_intf.c return ts->tv_nsec != -1; ts 522 drivers/char/ppdev.c struct timespec64 ts; ts 640 drivers/char/ppdev.c jiffies_to_timespec64(pp->pdev->timeout, &ts); ts 641 drivers/char/ppdev.c time32[0] = ts.tv_sec; ts 642 drivers/char/ppdev.c time32[1] = ts.tv_nsec / NSEC_PER_USEC; ts 650 drivers/char/ppdev.c jiffies_to_timespec64(pp->pdev->timeout, &ts); ts 651 drivers/char/ppdev.c time64[0] = ts.tv_sec; ts 652 drivers/char/ppdev.c time64[1] = ts.tv_nsec / NSEC_PER_USEC; ts 1195 drivers/firewire/core-cdev.c struct timespec64 ts = {0, 0}; ts 1204 drivers/firewire/core-cdev.c case CLOCK_REALTIME: ktime_get_real_ts64(&ts); break; ts 1205 drivers/firewire/core-cdev.c case CLOCK_MONOTONIC: ktime_get_ts64(&ts); break; ts 1206 drivers/firewire/core-cdev.c case CLOCK_MONOTONIC_RAW: ktime_get_raw_ts64(&ts); break; ts 1213 drivers/firewire/core-cdev.c a->tv_sec = ts.tv_sec; ts 1214 drivers/firewire/core-cdev.c a->tv_nsec = ts.tv_nsec; ts 34 drivers/gpio/gpio-max7300.c struct max7301 *ts; ts 40 drivers/gpio/gpio-max7300.c ts = devm_kzalloc(&client->dev, sizeof(struct max7301), GFP_KERNEL); ts 41 drivers/gpio/gpio-max7300.c if (!ts) ts 44 drivers/gpio/gpio-max7300.c ts->read = max7300_i2c_read; ts 45 drivers/gpio/gpio-max7300.c ts->write = max7300_i2c_write; ts 46 drivers/gpio/gpio-max7300.c ts->dev = &client->dev; ts 48 drivers/gpio/gpio-max7300.c return __max730x_probe(ts); ts 46 drivers/gpio/gpio-max7301.c struct max7301 *ts; ts 55 drivers/gpio/gpio-max7301.c ts = devm_kzalloc(&spi->dev, sizeof(struct max7301), GFP_KERNEL); ts 56 drivers/gpio/gpio-max7301.c if (!ts) ts 59 drivers/gpio/gpio-max7301.c ts->read = max7301_spi_read; ts 60 drivers/gpio/gpio-max7301.c ts->write = max7301_spi_write; ts 61 drivers/gpio/gpio-max7301.c ts->dev = &spi->dev; ts 63 drivers/gpio/gpio-max7301.c ret = __max730x_probe(ts); ts 50 drivers/gpio/gpio-max730x.c struct max7301 *ts = gpiochip_get_data(chip); ts 59 drivers/gpio/gpio-max730x.c config = &ts->port_config[offset >> 2]; ts 61 drivers/gpio/gpio-max730x.c if (ts->input_pullup_active & BIT(offset)) ts 66 drivers/gpio/gpio-max730x.c mutex_lock(&ts->lock); ts 71 drivers/gpio/gpio-max730x.c ret = ts->write(ts->dev, 0x08 + (offset >> 2), *config); ts 73 drivers/gpio/gpio-max730x.c mutex_unlock(&ts->lock); ts 78 drivers/gpio/gpio-max730x.c static int __max7301_set(struct max7301 *ts, unsigned offset, int value) ts 81 drivers/gpio/gpio-max730x.c ts->out_level |= 1 << offset; ts 82 drivers/gpio/gpio-max730x.c return ts->write(ts->dev, 0x20 + offset, 0x01); ts 84 drivers/gpio/gpio-max730x.c ts->out_level &= ~(1 << offset); ts 85 drivers/gpio/gpio-max730x.c return ts->write(ts->dev, 0x20 + offset, 0x00); ts 92 drivers/gpio/gpio-max730x.c struct max7301 *ts = gpiochip_get_data(chip); ts 101 drivers/gpio/gpio-max730x.c config = &ts->port_config[offset >> 2]; ts 103 drivers/gpio/gpio-max730x.c mutex_lock(&ts->lock); ts 108 drivers/gpio/gpio-max730x.c ret = __max7301_set(ts, offset, value); ts 111 drivers/gpio/gpio-max730x.c ret = ts->write(ts->dev, 0x08 + (offset >> 2), *config); ts 113 drivers/gpio/gpio-max730x.c mutex_unlock(&ts->lock); ts 120 drivers/gpio/gpio-max730x.c struct max7301 *ts = gpiochip_get_data(chip); ts 126 drivers/gpio/gpio-max730x.c mutex_lock(&ts->lock); ts 128 drivers/gpio/gpio-max730x.c config = (ts->port_config[offset >> 2] >> ((offset & 3) << 1)) ts 134 drivers/gpio/gpio-max730x.c level = !!(ts->out_level & (1 << offset)); ts 139 drivers/gpio/gpio-max730x.c level = ts->read(ts->dev, 0x20 + offset) & 0x01; ts 141 drivers/gpio/gpio-max730x.c mutex_unlock(&ts->lock); ts 148 drivers/gpio/gpio-max730x.c struct max7301 *ts = gpiochip_get_data(chip); ts 153 drivers/gpio/gpio-max730x.c mutex_lock(&ts->lock); ts 155 drivers/gpio/gpio-max730x.c __max7301_set(ts, offset, value); ts 157 drivers/gpio/gpio-max730x.c mutex_unlock(&ts->lock); ts 160 drivers/gpio/gpio-max730x.c int __max730x_probe(struct max7301 *ts) ts 162 drivers/gpio/gpio-max730x.c struct device *dev = ts->dev; ts 168 drivers/gpio/gpio-max730x.c mutex_init(&ts->lock); ts 169 drivers/gpio/gpio-max730x.c dev_set_drvdata(dev, ts); ts 172 drivers/gpio/gpio-max730x.c ts->write(dev, 0x04, 0x01); ts 175 drivers/gpio/gpio-max730x.c ts->input_pullup_active = pdata->input_pullup_active; ts 176 drivers/gpio/gpio-max730x.c ts->chip.base = pdata->base; ts 178 drivers/gpio/gpio-max730x.c ts->chip.base = -1; ts 180 drivers/gpio/gpio-max730x.c ts->chip.label = dev->driver->name; ts 182 drivers/gpio/gpio-max730x.c ts->chip.direction_input = max7301_direction_input; ts 183 drivers/gpio/gpio-max730x.c ts->chip.get = max7301_get; ts 184 drivers/gpio/gpio-max730x.c ts->chip.direction_output = max7301_direction_output; ts 185 drivers/gpio/gpio-max730x.c ts->chip.set = max7301_set; ts 187 drivers/gpio/gpio-max730x.c ts->chip.ngpio = PIN_NUMBER; ts 188 drivers/gpio/gpio-max730x.c ts->chip.can_sleep = true; ts 189 drivers/gpio/gpio-max730x.c ts->chip.parent = dev; ts 190 drivers/gpio/gpio-max730x.c ts->chip.owner = THIS_MODULE; ts 192 drivers/gpio/gpio-max730x.c ret = gpiochip_add_data(&ts->chip, ts); ts 208 drivers/gpio/gpio-max730x.c ts->port_config[i] = 0xAA; ts 211 drivers/gpio/gpio-max730x.c ret = max7301_direction_input(&ts->chip, offset); ts 220 drivers/gpio/gpio-max730x.c mutex_destroy(&ts->lock); ts 227 drivers/gpio/gpio-max730x.c struct max7301 *ts = dev_get_drvdata(dev); ts 229 drivers/gpio/gpio-max730x.c if (ts == NULL) ts 233 drivers/gpio/gpio-max730x.c ts->write(dev, 0x04, 0x00); ts 234 drivers/gpio/gpio-max730x.c gpiochip_remove(&ts->chip); ts 235 drivers/gpio/gpio-max730x.c mutex_destroy(&ts->lock); ts 194 drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c tmp = cpu_to_le64(record->ts); ts 222 drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c record->ts = le64_to_cpu(tmp); ts 67 drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.h uint64_t ts; ts 1559 drivers/gpu/drm/drm_vblank.c struct timespec64 ts; ts 1567 drivers/gpu/drm/drm_vblank.c ts = ktime_to_timespec64(now); ts 1568 drivers/gpu/drm/drm_vblank.c reply->tval_sec = (u32)ts.tv_sec; ts 1569 drivers/gpu/drm/drm_vblank.c reply->tval_usec = ts.tv_nsec / 1000; ts 112 drivers/gpu/drm/etnaviv/etnaviv_drv.h struct timespec64 ts, to; ts 116 drivers/gpu/drm/etnaviv/etnaviv_drv.h ktime_get_ts64(&ts); ts 119 drivers/gpu/drm/etnaviv/etnaviv_drv.h if (timespec64_compare(&to, &ts) <= 0) ts 122 drivers/gpu/drm/etnaviv/etnaviv_drv.h ts = timespec64_sub(to, ts); ts 124 drivers/gpu/drm/etnaviv/etnaviv_drv.h return timespec64_to_jiffies(&ts); ts 660 drivers/gpu/drm/i915/i915_gpu_error.c struct timespec64 ts; ts 669 drivers/gpu/drm/i915/i915_gpu_error.c ts = ktime_to_timespec64(error->time); ts 671 drivers/gpu/drm/i915/i915_gpu_error.c (s64)ts.tv_sec, ts.tv_nsec / NSEC_PER_USEC); ts 672 drivers/gpu/drm/i915/i915_gpu_error.c ts = ktime_to_timespec64(error->boottime); ts 674 drivers/gpu/drm/i915/i915_gpu_error.c (s64)ts.tv_sec, ts.tv_nsec / NSEC_PER_USEC); ts 675 drivers/gpu/drm/i915/i915_gpu_error.c ts = ktime_to_timespec64(error->uptime); ts 677 drivers/gpu/drm/i915/i915_gpu_error.c (s64)ts.tv_sec, ts.tv_nsec / NSEC_PER_USEC); ts 309 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c ktime_to_ns(fevent->ts)); ts 337 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c crtc->base.id, ktime_to_ns(fevent->ts)); ts 390 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c fevent->ts = ktime_get(); ts 98 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.h ktime_t ts; ts 457 drivers/gpu/drm/msm/msm_drv.h struct timespec ts = ktime_to_timespec(rem); ts 458 drivers/gpu/drm/msm/msm_drv.h remaining_jiffies = timespec_to_jiffies(&ts); ts 223 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c static int rpi_touchscreen_i2c_read(struct rpi_touchscreen *ts, u8 reg) ts 225 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c return i2c_smbus_read_byte_data(ts->i2c, reg); ts 228 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c static void rpi_touchscreen_i2c_write(struct rpi_touchscreen *ts, ts 233 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c ret = i2c_smbus_write_byte_data(ts->i2c, reg, val); ts 235 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c dev_err(&ts->dsi->dev, "I2C write failed: %d\n", ret); ts 238 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c static int rpi_touchscreen_write(struct rpi_touchscreen *ts, u16 reg, u32 val) ts 249 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c mipi_dsi_generic_write(ts->dsi, msg, sizeof(msg)); ts 256 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c struct rpi_touchscreen *ts = panel_to_ts(panel); ts 258 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c rpi_touchscreen_i2c_write(ts, REG_PWM, 0); ts 260 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c rpi_touchscreen_i2c_write(ts, REG_POWERON, 0); ts 273 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c struct rpi_touchscreen *ts = panel_to_ts(panel); ts 276 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c rpi_touchscreen_i2c_write(ts, REG_POWERON, 1); ts 279 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c if (rpi_touchscreen_i2c_read(ts, REG_PORTB) & 1) ts 283 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c rpi_touchscreen_write(ts, DSI_LANEENABLE, ts 286 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c rpi_touchscreen_write(ts, PPI_D0S_CLRSIPOCOUNT, 0x05); ts 287 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c rpi_touchscreen_write(ts, PPI_D1S_CLRSIPOCOUNT, 0x05); ts 288 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c rpi_touchscreen_write(ts, PPI_D0S_ATMR, 0x00); ts 289 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c rpi_touchscreen_write(ts, PPI_D1S_ATMR, 0x00); ts 290 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c rpi_touchscreen_write(ts, PPI_LPTXTIMECNT, 0x03); ts 292 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c rpi_touchscreen_write(ts, SPICMR, 0x00); ts 293 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c rpi_touchscreen_write(ts, LCDCTRL, 0x00100150); ts 294 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c rpi_touchscreen_write(ts, SYSCTRL, 0x040f); ts 297 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c rpi_touchscreen_write(ts, PPI_STARTPPI, 0x01); ts 298 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c rpi_touchscreen_write(ts, DSI_STARTDSI, 0x01); ts 302 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c rpi_touchscreen_i2c_write(ts, REG_PWM, 255); ts 309 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c rpi_touchscreen_i2c_write(ts, REG_PORTA, BIT(2)); ts 364 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c struct rpi_touchscreen *ts; ts 374 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c ts = devm_kzalloc(dev, sizeof(*ts), GFP_KERNEL); ts 375 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c if (!ts) ts 378 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c i2c_set_clientdata(i2c, ts); ts 380 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c ts->i2c = i2c; ts 382 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c ver = rpi_touchscreen_i2c_read(ts, REG_ID); ts 398 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c rpi_touchscreen_i2c_write(ts, REG_POWERON, 0); ts 422 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c ts->dsi = mipi_dsi_device_register_full(host, &info); ts 423 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c if (IS_ERR(ts->dsi)) { ts 425 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c PTR_ERR(ts->dsi)); ts 426 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c return PTR_ERR(ts->dsi); ts 429 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c drm_panel_init(&ts->base); ts 430 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c ts->base.dev = dev; ts 431 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c ts->base.funcs = &rpi_touchscreen_funcs; ts 436 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c ret = drm_panel_add(&ts->base); ts 449 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c struct rpi_touchscreen *ts = i2c_get_clientdata(i2c); ts 451 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c mipi_dsi_detach(ts->dsi); ts 453 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c drm_panel_remove(&ts->base); ts 455 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c mipi_dsi_device_unregister(ts->dsi); ts 456 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c kfree(ts->dsi); ts 1564 drivers/gpu/drm/vmwgfx/device_include/svga3d_types.h SVGADXTimestampQueryResult ts; ts 920 drivers/gpu/drm/vmwgfx/vmwgfx_fence.c struct timespec64 ts; ts 922 drivers/gpu/drm/vmwgfx/vmwgfx_fence.c ktime_get_ts64(&ts); ts 924 drivers/gpu/drm/vmwgfx/vmwgfx_fence.c *eaction->tv_sec = ts.tv_sec; ts 925 drivers/gpu/drm/vmwgfx/vmwgfx_fence.c *eaction->tv_usec = ts.tv_nsec / NSEC_PER_USEC; ts 209 drivers/hv/hv_util.c struct timespec64 ts; ts 216 drivers/hv/hv_util.c ts = ns_to_timespec64((newtime - WLTIMEDELTA) * 100); ts 219 drivers/hv/hv_util.c return ts; ts 224 drivers/hv/hv_util.c struct timespec64 ts = hv_get_adj_host_time(); ts 226 drivers/hv/hv_util.c do_settimeofday64(&ts); ts 490 drivers/hv/hv_util.c static int hv_ptp_settime(struct ptp_clock_info *p, const struct timespec64 *ts) ts 504 drivers/hv/hv_util.c static int hv_ptp_gettime(struct ptp_clock_info *info, struct timespec64 *ts) ts 506 drivers/hv/hv_util.c *ts = hv_get_adj_host_time(); ts 341 drivers/hwtracing/stm/p_sys-t.c u64 ts = ktime_get_real_ns(); ts 343 drivers/hwtracing/stm/p_sys-t.c sz = stm_data_write(data, m, c, false, &ts, sizeof(ts)); ts 1019 drivers/iio/accel/mma8452.c s64 ts = iio_get_time_ns(indio_dev); ts 1031 drivers/iio/accel/mma8452.c ts); ts 1038 drivers/iio/accel/mma8452.c ts); ts 1045 drivers/iio/accel/mma8452.c ts); ts 1069 drivers/iio/accel/mma8452.c s64 ts = iio_get_time_ns(indio_dev); ts 1076 drivers/iio/accel/mma8452.c ts); ts 79 drivers/iio/chemical/pms7003.c s64 ts; ts 235 drivers/iio/chemical/sps30.c s64 ts; ts 87 drivers/iio/humidity/dht11.c struct {s64 ts; int value; } edges[DHT11_EDGES_PER_READ]; ts 102 drivers/iio/humidity/dht11.c dht11->edges[i].ts - dht11->edges[i - 1].ts, ts 129 drivers/iio/humidity/dht11.c t = dht11->edges[offset + 2 * i + 2].ts - ts 130 drivers/iio/humidity/dht11.c dht11->edges[offset + 2 * i + 1].ts; ts 179 drivers/iio/humidity/dht11.c dht11->edges[dht11->num_edges].ts = ktime_get_boottime_ns(); ts 84 drivers/iio/imu/inv_mpu6050/inv_mpu_ring.c s64 ts; ts 87 drivers/iio/imu/inv_mpu6050/inv_mpu_ring.c ts = st->data_timestamp; ts 90 drivers/iio/imu/inv_mpu6050/inv_mpu_ring.c return ts; ts 349 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c s64 ts = 0; ts 423 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c ts = data[1] << 16 | data[0] << 8 | data[3]; ts 430 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c if (!reset_ts && ts >= 0xff0000) ts 432 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c ts *= ST_LSM6DSX_TS_SENSITIVITY; ts 440 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c gyro_buff, gyro_sensor->ts_ref + ts); ts 444 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c acc_buff, acc_sensor->ts_ref + ts); ts 461 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c u8 *data, s64 ts) ts 503 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c ts + sensor->ts_ref); ts 524 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c s64 ts = 0; ts 566 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c ts = le32_to_cpu(*((__le32 *)iio_buff)); ts 573 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c if (!reset_ts && ts >= 0xffff0000) ts 575 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c ts *= ST_LSM6DSX_TS_SENSITIVITY; ts 578 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c ts); ts 130 drivers/infiniband/hw/cxgb4/device.c #define ts2ns(ts) div64_u64((ts) * dev->rdev.lldi.cclk_ps, 1000) ts 3869 drivers/infiniband/hw/hfi1/mad.c u64 ts; ts 3887 drivers/infiniband/hw/hfi1/mad.c ts = ktime_get_ns() / 1024; ts 3888 drivers/infiniband/hw/hfi1/mad.c cong_log->current_time_stamp = cpu_to_be32(ts); ts 3899 drivers/infiniband/hw/hfi1/mad.c if ((ts - cce->timestamp) / 2 > U32_MAX) ts 667 drivers/infiniband/hw/mthca/mthca_cmd.c int ts = 0, tc = 0; ts 701 drivers/infiniband/hw/mthca/mthca_cmd.c ts += 1 << (lg - 10); ts 720 drivers/infiniband/hw/mthca/mthca_cmd.c mthca_dbg(dev, "Mapped %d chunks/%d KB for FW.\n", tc, ts); ts 723 drivers/infiniband/hw/mthca/mthca_cmd.c mthca_dbg(dev, "Mapped %d chunks/%d KB for ICM aux.\n", tc, ts); ts 727 drivers/infiniband/hw/mthca/mthca_cmd.c tc, ts, (unsigned long long) virt - (ts << 10)); ts 146 drivers/input/evdev.c struct timespec64 ts = ktime_to_timespec64(ev_time[client->clk_type]); ts 149 drivers/input/evdev.c ev.input_event_sec = ts.tv_sec; ts 150 drivers/input/evdev.c ev.input_event_usec = ts.tv_nsec / NSEC_PER_USEC; ts 251 drivers/input/evdev.c struct timespec64 ts; ts 257 drivers/input/evdev.c ts = ktime_to_timespec64(ev_time[client->clk_type]); ts 258 drivers/input/evdev.c event.input_event_sec = ts.tv_sec; ts 259 drivers/input/evdev.c event.input_event_usec = ts.tv_nsec / NSEC_PER_USEC; ts 223 drivers/input/keyboard/qt1050.c static bool qt1050_identify(struct qt1050_priv *ts) ts 229 drivers/input/keyboard/qt1050.c regmap_read(ts->regmap, QT1050_CHIP_ID, &val); ts 231 drivers/input/keyboard/qt1050.c dev_err(&ts->client->dev, "ID %d not supported\n", val); ts 236 drivers/input/keyboard/qt1050.c err = regmap_read(ts->regmap, QT1050_FW_VERSION, &val); ts 238 drivers/input/keyboard/qt1050.c dev_err(&ts->client->dev, "could not read the firmware version\n"); ts 242 drivers/input/keyboard/qt1050.c dev_info(&ts->client->dev, "AT42QT1050 firmware version %1d.%1d\n", ts 250 drivers/input/keyboard/qt1050.c struct qt1050_priv *ts = dev_id; ts 251 drivers/input/keyboard/qt1050.c struct input_dev *input = ts->input; ts 257 drivers/input/keyboard/qt1050.c err = regmap_read(ts->regmap, QT1050_DET_STATUS, &val); ts 259 drivers/input/keyboard/qt1050.c dev_err(&ts->client->dev, "Fail to read detection status: %d\n", ts 265 drivers/input/keyboard/qt1050.c err = regmap_read(ts->regmap, QT1050_KEY_STATUS, &val); ts 267 drivers/input/keyboard/qt1050.c dev_err(&ts->client->dev, ts 272 drivers/input/keyboard/qt1050.c changed = ts->last_keys ^ new_keys; ts 274 drivers/input/keyboard/qt1050.c changed &= ts->reg_keys; ts 277 drivers/input/keyboard/qt1050.c input_report_key(input, ts->keys[i].keycode, ts 280 drivers/input/keyboard/qt1050.c ts->last_keys = new_keys; ts 301 drivers/input/keyboard/qt1050.c static int qt1050_apply_fw_data(struct qt1050_priv *ts) ts 303 drivers/input/keyboard/qt1050.c struct regmap *map = ts->regmap; ts 304 drivers/input/keyboard/qt1050.c struct qt1050_key *button = &ts->keys[0]; ts 341 drivers/input/keyboard/qt1050.c static int qt1050_parse_fw(struct qt1050_priv *ts) ts 343 drivers/input/keyboard/qt1050.c struct device *dev = &ts->client->dev; ts 374 drivers/input/keyboard/qt1050.c ts->reg_keys |= BIT(button.num); ts 418 drivers/input/keyboard/qt1050.c ts->keys[button.num] = button; ts 430 drivers/input/keyboard/qt1050.c struct qt1050_priv *ts; ts 450 drivers/input/keyboard/qt1050.c ts = devm_kzalloc(dev, sizeof(*ts), GFP_KERNEL); ts 451 drivers/input/keyboard/qt1050.c if (!ts) ts 462 drivers/input/keyboard/qt1050.c ts->client = client; ts 463 drivers/input/keyboard/qt1050.c ts->input = input; ts 464 drivers/input/keyboard/qt1050.c ts->regmap = map; ts 466 drivers/input/keyboard/qt1050.c i2c_set_clientdata(client, ts); ts 469 drivers/input/keyboard/qt1050.c if (!qt1050_identify(ts)) ts 473 drivers/input/keyboard/qt1050.c err = qt1050_parse_fw(ts); ts 484 drivers/input/keyboard/qt1050.c input->keycode = ts->keycodes; ts 485 drivers/input/keyboard/qt1050.c input->keycodesize = sizeof(ts->keycodes[0]); ts 490 drivers/input/keyboard/qt1050.c ts->keycodes[i] = ts->keys[i].keycode; ts 491 drivers/input/keyboard/qt1050.c __set_bit(ts->keycodes[i], input->keybit); ts 495 drivers/input/keyboard/qt1050.c err = regmap_update_bits(ts->regmap, QT1050_RES_CAL, 0x7f, ts 501 drivers/input/keyboard/qt1050.c err = regmap_read_poll_timeout(ts->regmap, QT1050_DET_STATUS, status, ts 509 drivers/input/keyboard/qt1050.c err = regmap_update_bits(ts->regmap, QT1050_RES_CAL, ts 518 drivers/input/keyboard/qt1050.c err = qt1050_apply_fw_data(ts); ts 526 drivers/input/keyboard/qt1050.c "qt1050", ts); ts 533 drivers/input/keyboard/qt1050.c err = regmap_read(ts->regmap, QT1050_DET_STATUS, &status); ts 540 drivers/input/keyboard/qt1050.c err = input_register_device(ts->input); ts 553 drivers/input/keyboard/qt1050.c struct qt1050_priv *ts = i2c_get_clientdata(client); ts 562 drivers/input/keyboard/qt1050.c return regmap_write(ts->regmap, QT1050_LPMODE, ts 569 drivers/input/keyboard/qt1050.c struct qt1050_priv *ts = i2c_get_clientdata(client); ts 574 drivers/input/keyboard/qt1050.c return regmap_write(ts->regmap, QT1050_LPMODE, 2); ts 75 drivers/input/misc/uinput.c struct timespec64 ts; ts 77 drivers/input/misc/uinput.c ktime_get_ts64(&ts); ts 80 drivers/input/misc/uinput.c .input_event_sec = ts.tv_sec, ts 81 drivers/input/misc/uinput.c .input_event_usec = ts.tv_nsec / NSEC_PER_USEC, ts 256 drivers/input/touchscreen/ad7877.c struct ad7877 *ts = spi_get_drvdata(spi); ts 270 drivers/input/touchscreen/ad7877.c AD7877_POL(ts->stopacq_polarity) | ts 272 drivers/input/touchscreen/ad7877.c AD7877_ACQ(ts->acquisition_time) | AD7877_FCD(0); ts 284 drivers/input/touchscreen/ad7877.c req->xfer[1].delay_usecs = ts->vref_delay_usecs; ts 289 drivers/input/touchscreen/ad7877.c req->xfer[2].delay_usecs = ts->vref_delay_usecs; ts 296 drivers/input/touchscreen/ad7877.c req->xfer[4].tx_buf = &ts->cmd_crtl2; /*REF OFF*/ ts 300 drivers/input/touchscreen/ad7877.c req->xfer[5].tx_buf = &ts->cmd_crtl1; /*DEFAULT*/ ts 317 drivers/input/touchscreen/ad7877.c static int ad7877_process_data(struct ad7877 *ts) ts 319 drivers/input/touchscreen/ad7877.c struct input_dev *input_dev = ts->input; ts 323 drivers/input/touchscreen/ad7877.c x = ts->conversion_data[AD7877_SEQ_XPOS] & MAX_12BIT; ts 324 drivers/input/touchscreen/ad7877.c y = ts->conversion_data[AD7877_SEQ_YPOS] & MAX_12BIT; ts 325 drivers/input/touchscreen/ad7877.c z1 = ts->conversion_data[AD7877_SEQ_Z1] & MAX_12BIT; ts 326 drivers/input/touchscreen/ad7877.c z2 = ts->conversion_data[AD7877_SEQ_Z2] & MAX_12BIT; ts 340 drivers/input/touchscreen/ad7877.c Rt = (z2 - z1) * x * ts->x_plate_ohms; ts 348 drivers/input/touchscreen/ad7877.c if (Rt > ts->pressure_max) ts 351 drivers/input/touchscreen/ad7877.c if (!timer_pending(&ts->timer)) ts 365 drivers/input/touchscreen/ad7877.c static inline void ad7877_ts_event_release(struct ad7877 *ts) ts 367 drivers/input/touchscreen/ad7877.c struct input_dev *input_dev = ts->input; ts 376 drivers/input/touchscreen/ad7877.c struct ad7877 *ts = from_timer(ts, t, timer); ts 379 drivers/input/touchscreen/ad7877.c spin_lock_irqsave(&ts->lock, flags); ts 380 drivers/input/touchscreen/ad7877.c ad7877_ts_event_release(ts); ts 381 drivers/input/touchscreen/ad7877.c spin_unlock_irqrestore(&ts->lock, flags); ts 386 drivers/input/touchscreen/ad7877.c struct ad7877 *ts = handle; ts 390 drivers/input/touchscreen/ad7877.c error = spi_sync(ts->spi, &ts->msg); ts 392 drivers/input/touchscreen/ad7877.c dev_err(&ts->spi->dev, "spi_sync --> %d\n", error); ts 396 drivers/input/touchscreen/ad7877.c spin_lock_irqsave(&ts->lock, flags); ts 397 drivers/input/touchscreen/ad7877.c error = ad7877_process_data(ts); ts 399 drivers/input/touchscreen/ad7877.c mod_timer(&ts->timer, jiffies + TS_PEN_UP_TIMEOUT); ts 400 drivers/input/touchscreen/ad7877.c spin_unlock_irqrestore(&ts->lock, flags); ts 408 drivers/input/touchscreen/ad7877.c struct ad7877 *ts = data; ts 410 drivers/input/touchscreen/ad7877.c mutex_lock(&ts->mutex); ts 412 drivers/input/touchscreen/ad7877.c if (!ts->disabled) { ts 413 drivers/input/touchscreen/ad7877.c ts->disabled = true; ts 414 drivers/input/touchscreen/ad7877.c disable_irq(ts->spi->irq); ts 416 drivers/input/touchscreen/ad7877.c if (del_timer_sync(&ts->timer)) ts 417 drivers/input/touchscreen/ad7877.c ad7877_ts_event_release(ts); ts 425 drivers/input/touchscreen/ad7877.c mutex_unlock(&ts->mutex); ts 428 drivers/input/touchscreen/ad7877.c static void ad7877_enable(struct ad7877 *ts) ts 430 drivers/input/touchscreen/ad7877.c mutex_lock(&ts->mutex); ts 432 drivers/input/touchscreen/ad7877.c if (ts->disabled) { ts 433 drivers/input/touchscreen/ad7877.c ts->disabled = false; ts 434 drivers/input/touchscreen/ad7877.c enable_irq(ts->spi->irq); ts 437 drivers/input/touchscreen/ad7877.c mutex_unlock(&ts->mutex); ts 443 drivers/input/touchscreen/ad7877.c struct ad7877 *ts = dev_get_drvdata(dev); \ ts 444 drivers/input/touchscreen/ad7877.c ssize_t v = ad7877_read_adc(ts->spi, \ ts 463 drivers/input/touchscreen/ad7877.c struct ad7877 *ts = dev_get_drvdata(dev); ts 465 drivers/input/touchscreen/ad7877.c return sprintf(buf, "%u\n", ts->disabled); ts 472 drivers/input/touchscreen/ad7877.c struct ad7877 *ts = dev_get_drvdata(dev); ts 481 drivers/input/touchscreen/ad7877.c ad7877_disable(ts); ts 483 drivers/input/touchscreen/ad7877.c ad7877_enable(ts); ts 493 drivers/input/touchscreen/ad7877.c struct ad7877 *ts = dev_get_drvdata(dev); ts 495 drivers/input/touchscreen/ad7877.c return sprintf(buf, "%u\n", ts->dac); ts 502 drivers/input/touchscreen/ad7877.c struct ad7877 *ts = dev_get_drvdata(dev); ts 510 drivers/input/touchscreen/ad7877.c mutex_lock(&ts->mutex); ts 511 drivers/input/touchscreen/ad7877.c ts->dac = val & 0xFF; ts 512 drivers/input/touchscreen/ad7877.c ad7877_write(ts->spi, AD7877_REG_DAC, (ts->dac << 4) | AD7877_DAC_CONF); ts 513 drivers/input/touchscreen/ad7877.c mutex_unlock(&ts->mutex); ts 523 drivers/input/touchscreen/ad7877.c struct ad7877 *ts = dev_get_drvdata(dev); ts 525 drivers/input/touchscreen/ad7877.c return sprintf(buf, "%u\n", ts->gpio3); ts 532 drivers/input/touchscreen/ad7877.c struct ad7877 *ts = dev_get_drvdata(dev); ts 540 drivers/input/touchscreen/ad7877.c mutex_lock(&ts->mutex); ts 541 drivers/input/touchscreen/ad7877.c ts->gpio3 = !!val; ts 542 drivers/input/touchscreen/ad7877.c ad7877_write(ts->spi, AD7877_REG_EXTWRITE, AD7877_EXTW_GPIO_DATA | ts 543 drivers/input/touchscreen/ad7877.c (ts->gpio4 << 4) | (ts->gpio3 << 5)); ts 544 drivers/input/touchscreen/ad7877.c mutex_unlock(&ts->mutex); ts 554 drivers/input/touchscreen/ad7877.c struct ad7877 *ts = dev_get_drvdata(dev); ts 556 drivers/input/touchscreen/ad7877.c return sprintf(buf, "%u\n", ts->gpio4); ts 563 drivers/input/touchscreen/ad7877.c struct ad7877 *ts = dev_get_drvdata(dev); ts 571 drivers/input/touchscreen/ad7877.c mutex_lock(&ts->mutex); ts 572 drivers/input/touchscreen/ad7877.c ts->gpio4 = !!val; ts 573 drivers/input/touchscreen/ad7877.c ad7877_write(ts->spi, AD7877_REG_EXTWRITE, AD7877_EXTW_GPIO_DATA | ts 574 drivers/input/touchscreen/ad7877.c (ts->gpio4 << 4) | (ts->gpio3 << 5)); ts 575 drivers/input/touchscreen/ad7877.c mutex_unlock(&ts->mutex); ts 618 drivers/input/touchscreen/ad7877.c static void ad7877_setup_ts_def_msg(struct spi_device *spi, struct ad7877 *ts) ts 623 drivers/input/touchscreen/ad7877.c ts->cmd_crtl2 = AD7877_WRITEADD(AD7877_REG_CTRL2) | ts 624 drivers/input/touchscreen/ad7877.c AD7877_POL(ts->stopacq_polarity) | ts 625 drivers/input/touchscreen/ad7877.c AD7877_AVG(ts->averaging) | AD7877_PM(1) | ts 626 drivers/input/touchscreen/ad7877.c AD7877_TMR(ts->pen_down_acc_interval) | ts 627 drivers/input/touchscreen/ad7877.c AD7877_ACQ(ts->acquisition_time) | ts 628 drivers/input/touchscreen/ad7877.c AD7877_FCD(ts->first_conversion_delay); ts 630 drivers/input/touchscreen/ad7877.c ad7877_write(spi, AD7877_REG_CTRL2, ts->cmd_crtl2); ts 632 drivers/input/touchscreen/ad7877.c ts->cmd_crtl1 = AD7877_WRITEADD(AD7877_REG_CTRL1) | ts 636 drivers/input/touchscreen/ad7877.c ad7877_write(spi, AD7877_REG_CTRL1, ts->cmd_crtl1); ts 638 drivers/input/touchscreen/ad7877.c ts->cmd_dummy = 0; ts 640 drivers/input/touchscreen/ad7877.c m = &ts->msg; ts 644 drivers/input/touchscreen/ad7877.c m->context = ts; ts 646 drivers/input/touchscreen/ad7877.c ts->xfer[0].tx_buf = &ts->cmd_crtl1; ts 647 drivers/input/touchscreen/ad7877.c ts->xfer[0].len = 2; ts 648 drivers/input/touchscreen/ad7877.c ts->xfer[0].cs_change = 1; ts 650 drivers/input/touchscreen/ad7877.c spi_message_add_tail(&ts->xfer[0], m); ts 652 drivers/input/touchscreen/ad7877.c ts->xfer[1].tx_buf = &ts->cmd_dummy; /* Send ZERO */ ts 653 drivers/input/touchscreen/ad7877.c ts->xfer[1].len = 2; ts 654 drivers/input/touchscreen/ad7877.c ts->xfer[1].cs_change = 1; ts 656 drivers/input/touchscreen/ad7877.c spi_message_add_tail(&ts->xfer[1], m); ts 659 drivers/input/touchscreen/ad7877.c ts->xfer[i + 2].rx_buf = &ts->conversion_data[AD7877_SEQ_YPOS + i]; ts 660 drivers/input/touchscreen/ad7877.c ts->xfer[i + 2].len = 2; ts 662 drivers/input/touchscreen/ad7877.c ts->xfer[i + 2].cs_change = 1; ts 663 drivers/input/touchscreen/ad7877.c spi_message_add_tail(&ts->xfer[i + 2], m); ts 669 drivers/input/touchscreen/ad7877.c struct ad7877 *ts; ts 698 drivers/input/touchscreen/ad7877.c ts = devm_kzalloc(&spi->dev, sizeof(struct ad7877), GFP_KERNEL); ts 699 drivers/input/touchscreen/ad7877.c if (!ts) ts 706 drivers/input/touchscreen/ad7877.c err = devm_add_action_or_reset(&spi->dev, ad7877_disable, ts); ts 710 drivers/input/touchscreen/ad7877.c spi_set_drvdata(spi, ts); ts 711 drivers/input/touchscreen/ad7877.c ts->spi = spi; ts 712 drivers/input/touchscreen/ad7877.c ts->input = input_dev; ts 714 drivers/input/touchscreen/ad7877.c timer_setup(&ts->timer, ad7877_timer, 0); ts 715 drivers/input/touchscreen/ad7877.c mutex_init(&ts->mutex); ts 716 drivers/input/touchscreen/ad7877.c spin_lock_init(&ts->lock); ts 718 drivers/input/touchscreen/ad7877.c ts->model = pdata->model ? : 7877; ts 719 drivers/input/touchscreen/ad7877.c ts->vref_delay_usecs = pdata->vref_delay_usecs ? : 100; ts 720 drivers/input/touchscreen/ad7877.c ts->x_plate_ohms = pdata->x_plate_ohms ? : 400; ts 721 drivers/input/touchscreen/ad7877.c ts->pressure_max = pdata->pressure_max ? : ~0; ts 723 drivers/input/touchscreen/ad7877.c ts->stopacq_polarity = pdata->stopacq_polarity; ts 724 drivers/input/touchscreen/ad7877.c ts->first_conversion_delay = pdata->first_conversion_delay; ts 725 drivers/input/touchscreen/ad7877.c ts->acquisition_time = pdata->acquisition_time; ts 726 drivers/input/touchscreen/ad7877.c ts->averaging = pdata->averaging; ts 727 drivers/input/touchscreen/ad7877.c ts->pen_down_acc_interval = pdata->pen_down_acc_interval; ts 729 drivers/input/touchscreen/ad7877.c snprintf(ts->phys, sizeof(ts->phys), "%s/input0", dev_name(&spi->dev)); ts 732 drivers/input/touchscreen/ad7877.c input_dev->phys = ts->phys; ts 766 drivers/input/touchscreen/ad7877.c ad7877_setup_ts_def_msg(spi, ts); ts 772 drivers/input/touchscreen/ad7877.c spi->dev.driver->name, ts); ts 791 drivers/input/touchscreen/ad7877.c struct ad7877 *ts = dev_get_drvdata(dev); ts 793 drivers/input/touchscreen/ad7877.c ad7877_disable(ts); ts 800 drivers/input/touchscreen/ad7877.c struct ad7877 *ts = dev_get_drvdata(dev); ts 802 drivers/input/touchscreen/ad7877.c ad7877_enable(ts); ts 135 drivers/input/touchscreen/ad7879.c static int ad7879_read(struct ad7879 *ts, u8 reg) ts 140 drivers/input/touchscreen/ad7879.c error = regmap_read(ts->regmap, reg, &val); ts 142 drivers/input/touchscreen/ad7879.c dev_err(ts->dev, "failed to read register %#02x: %d\n", ts 150 drivers/input/touchscreen/ad7879.c static int ad7879_write(struct ad7879 *ts, u8 reg, u16 val) ts 154 drivers/input/touchscreen/ad7879.c error = regmap_write(ts->regmap, reg, val); ts 156 drivers/input/touchscreen/ad7879.c dev_err(ts->dev, ts 165 drivers/input/touchscreen/ad7879.c static int ad7879_report(struct ad7879 *ts) ts 167 drivers/input/touchscreen/ad7879.c struct input_dev *input_dev = ts->input; ts 171 drivers/input/touchscreen/ad7879.c x = ts->conversion_data[AD7879_SEQ_XPOS] & MAX_12BIT; ts 172 drivers/input/touchscreen/ad7879.c y = ts->conversion_data[AD7879_SEQ_YPOS] & MAX_12BIT; ts 173 drivers/input/touchscreen/ad7879.c z1 = ts->conversion_data[AD7879_SEQ_Z1] & MAX_12BIT; ts 174 drivers/input/touchscreen/ad7879.c z2 = ts->conversion_data[AD7879_SEQ_Z2] & MAX_12BIT; ts 176 drivers/input/touchscreen/ad7879.c if (ts->swap_xy) ts 193 drivers/input/touchscreen/ad7879.c Rt = (z2 - z1) * x * ts->x_plate_ohms; ts 210 drivers/input/touchscreen/ad7879.c if (timer_pending(&ts->timer)) { ts 213 drivers/input/touchscreen/ad7879.c input_report_abs(input_dev, ABS_X, ts->x); ts 214 drivers/input/touchscreen/ad7879.c input_report_abs(input_dev, ABS_Y, ts->y); ts 215 drivers/input/touchscreen/ad7879.c input_report_abs(input_dev, ABS_PRESSURE, ts->Rt); ts 219 drivers/input/touchscreen/ad7879.c ts->x = x; ts 220 drivers/input/touchscreen/ad7879.c ts->y = y; ts 221 drivers/input/touchscreen/ad7879.c ts->Rt = Rt; ts 229 drivers/input/touchscreen/ad7879.c static void ad7879_ts_event_release(struct ad7879 *ts) ts 231 drivers/input/touchscreen/ad7879.c struct input_dev *input_dev = ts->input; ts 240 drivers/input/touchscreen/ad7879.c struct ad7879 *ts = from_timer(ts, t, timer); ts 242 drivers/input/touchscreen/ad7879.c ad7879_ts_event_release(ts); ts 247 drivers/input/touchscreen/ad7879.c struct ad7879 *ts = handle; ts 250 drivers/input/touchscreen/ad7879.c error = regmap_bulk_read(ts->regmap, AD7879_REG_XPLUS, ts 251 drivers/input/touchscreen/ad7879.c ts->conversion_data, AD7879_NR_SENSE); ts 253 drivers/input/touchscreen/ad7879.c dev_err_ratelimited(ts->dev, "failed to read %#02x: %d\n", ts 255 drivers/input/touchscreen/ad7879.c else if (!ad7879_report(ts)) ts 256 drivers/input/touchscreen/ad7879.c mod_timer(&ts->timer, jiffies + TS_PEN_UP_TIMEOUT); ts 261 drivers/input/touchscreen/ad7879.c static void __ad7879_enable(struct ad7879 *ts) ts 263 drivers/input/touchscreen/ad7879.c ad7879_write(ts, AD7879_REG_CTRL2, ts->cmd_crtl2); ts 264 drivers/input/touchscreen/ad7879.c ad7879_write(ts, AD7879_REG_CTRL3, ts->cmd_crtl3); ts 265 drivers/input/touchscreen/ad7879.c ad7879_write(ts, AD7879_REG_CTRL1, ts->cmd_crtl1); ts 267 drivers/input/touchscreen/ad7879.c enable_irq(ts->irq); ts 270 drivers/input/touchscreen/ad7879.c static void __ad7879_disable(struct ad7879 *ts) ts 272 drivers/input/touchscreen/ad7879.c u16 reg = (ts->cmd_crtl2 & ~AD7879_PM(-1)) | ts 274 drivers/input/touchscreen/ad7879.c disable_irq(ts->irq); ts 276 drivers/input/touchscreen/ad7879.c if (del_timer_sync(&ts->timer)) ts 277 drivers/input/touchscreen/ad7879.c ad7879_ts_event_release(ts); ts 279 drivers/input/touchscreen/ad7879.c ad7879_write(ts, AD7879_REG_CTRL2, reg); ts 285 drivers/input/touchscreen/ad7879.c struct ad7879 *ts = input_get_drvdata(input); ts 288 drivers/input/touchscreen/ad7879.c if (!ts->disabled && !ts->suspended) ts 289 drivers/input/touchscreen/ad7879.c __ad7879_enable(ts); ts 296 drivers/input/touchscreen/ad7879.c struct ad7879 *ts = input_get_drvdata(input); ts 299 drivers/input/touchscreen/ad7879.c if (!ts->disabled && !ts->suspended) ts 300 drivers/input/touchscreen/ad7879.c __ad7879_disable(ts); ts 305 drivers/input/touchscreen/ad7879.c struct ad7879 *ts = dev_get_drvdata(dev); ts 307 drivers/input/touchscreen/ad7879.c mutex_lock(&ts->input->mutex); ts 309 drivers/input/touchscreen/ad7879.c if (!ts->suspended && !ts->disabled && ts->input->users) ts 310 drivers/input/touchscreen/ad7879.c __ad7879_disable(ts); ts 312 drivers/input/touchscreen/ad7879.c ts->suspended = true; ts 314 drivers/input/touchscreen/ad7879.c mutex_unlock(&ts->input->mutex); ts 321 drivers/input/touchscreen/ad7879.c struct ad7879 *ts = dev_get_drvdata(dev); ts 323 drivers/input/touchscreen/ad7879.c mutex_lock(&ts->input->mutex); ts 325 drivers/input/touchscreen/ad7879.c if (ts->suspended && !ts->disabled && ts->input->users) ts 326 drivers/input/touchscreen/ad7879.c __ad7879_enable(ts); ts 328 drivers/input/touchscreen/ad7879.c ts->suspended = false; ts 330 drivers/input/touchscreen/ad7879.c mutex_unlock(&ts->input->mutex); ts 338 drivers/input/touchscreen/ad7879.c static void ad7879_toggle(struct ad7879 *ts, bool disable) ts 340 drivers/input/touchscreen/ad7879.c mutex_lock(&ts->input->mutex); ts 342 drivers/input/touchscreen/ad7879.c if (!ts->suspended && ts->input->users != 0) { ts 345 drivers/input/touchscreen/ad7879.c if (ts->disabled) ts 346 drivers/input/touchscreen/ad7879.c __ad7879_enable(ts); ts 348 drivers/input/touchscreen/ad7879.c if (!ts->disabled) ts 349 drivers/input/touchscreen/ad7879.c __ad7879_disable(ts); ts 353 drivers/input/touchscreen/ad7879.c ts->disabled = disable; ts 355 drivers/input/touchscreen/ad7879.c mutex_unlock(&ts->input->mutex); ts 361 drivers/input/touchscreen/ad7879.c struct ad7879 *ts = dev_get_drvdata(dev); ts 363 drivers/input/touchscreen/ad7879.c return sprintf(buf, "%u\n", ts->disabled); ts 370 drivers/input/touchscreen/ad7879.c struct ad7879 *ts = dev_get_drvdata(dev); ts 378 drivers/input/touchscreen/ad7879.c ad7879_toggle(ts, val); ts 398 drivers/input/touchscreen/ad7879.c struct ad7879 *ts = gpiochip_get_data(chip); ts 401 drivers/input/touchscreen/ad7879.c mutex_lock(&ts->mutex); ts 402 drivers/input/touchscreen/ad7879.c ts->cmd_crtl2 |= AD7879_GPIO_EN | AD7879_GPIODIR | AD7879_GPIOPOL; ts 403 drivers/input/touchscreen/ad7879.c err = ad7879_write(ts, AD7879_REG_CTRL2, ts->cmd_crtl2); ts 404 drivers/input/touchscreen/ad7879.c mutex_unlock(&ts->mutex); ts 412 drivers/input/touchscreen/ad7879.c struct ad7879 *ts = gpiochip_get_data(chip); ts 415 drivers/input/touchscreen/ad7879.c mutex_lock(&ts->mutex); ts 416 drivers/input/touchscreen/ad7879.c ts->cmd_crtl2 &= ~AD7879_GPIODIR; ts 417 drivers/input/touchscreen/ad7879.c ts->cmd_crtl2 |= AD7879_GPIO_EN | AD7879_GPIOPOL; ts 419 drivers/input/touchscreen/ad7879.c ts->cmd_crtl2 |= AD7879_GPIO_DATA; ts 421 drivers/input/touchscreen/ad7879.c ts->cmd_crtl2 &= ~AD7879_GPIO_DATA; ts 423 drivers/input/touchscreen/ad7879.c err = ad7879_write(ts, AD7879_REG_CTRL2, ts->cmd_crtl2); ts 424 drivers/input/touchscreen/ad7879.c mutex_unlock(&ts->mutex); ts 431 drivers/input/touchscreen/ad7879.c struct ad7879 *ts = gpiochip_get_data(chip); ts 434 drivers/input/touchscreen/ad7879.c mutex_lock(&ts->mutex); ts 435 drivers/input/touchscreen/ad7879.c val = ad7879_read(ts, AD7879_REG_CTRL2); ts 436 drivers/input/touchscreen/ad7879.c mutex_unlock(&ts->mutex); ts 444 drivers/input/touchscreen/ad7879.c struct ad7879 *ts = gpiochip_get_data(chip); ts 446 drivers/input/touchscreen/ad7879.c mutex_lock(&ts->mutex); ts 448 drivers/input/touchscreen/ad7879.c ts->cmd_crtl2 |= AD7879_GPIO_DATA; ts 450 drivers/input/touchscreen/ad7879.c ts->cmd_crtl2 &= ~AD7879_GPIO_DATA; ts 452 drivers/input/touchscreen/ad7879.c ad7879_write(ts, AD7879_REG_CTRL2, ts->cmd_crtl2); ts 453 drivers/input/touchscreen/ad7879.c mutex_unlock(&ts->mutex); ts 456 drivers/input/touchscreen/ad7879.c static int ad7879_gpio_add(struct ad7879 *ts) ts 460 drivers/input/touchscreen/ad7879.c mutex_init(&ts->mutex); ts 463 drivers/input/touchscreen/ad7879.c if (!device_property_read_bool(ts->dev, "gpio-controller")) ts 466 drivers/input/touchscreen/ad7879.c ts->gc.direction_input = ad7879_gpio_direction_input; ts 467 drivers/input/touchscreen/ad7879.c ts->gc.direction_output = ad7879_gpio_direction_output; ts 468 drivers/input/touchscreen/ad7879.c ts->gc.get = ad7879_gpio_get_value; ts 469 drivers/input/touchscreen/ad7879.c ts->gc.set = ad7879_gpio_set_value; ts 470 drivers/input/touchscreen/ad7879.c ts->gc.can_sleep = 1; ts 471 drivers/input/touchscreen/ad7879.c ts->gc.base = -1; ts 472 drivers/input/touchscreen/ad7879.c ts->gc.ngpio = 1; ts 473 drivers/input/touchscreen/ad7879.c ts->gc.label = "AD7879-GPIO"; ts 474 drivers/input/touchscreen/ad7879.c ts->gc.owner = THIS_MODULE; ts 475 drivers/input/touchscreen/ad7879.c ts->gc.parent = ts->dev; ts 477 drivers/input/touchscreen/ad7879.c ret = devm_gpiochip_add_data(ts->dev, &ts->gc, ts); ts 479 drivers/input/touchscreen/ad7879.c dev_err(ts->dev, "failed to register gpio %d\n", ts 480 drivers/input/touchscreen/ad7879.c ts->gc.base); ts 485 drivers/input/touchscreen/ad7879.c static int ad7879_gpio_add(struct ad7879 *ts) ts 491 drivers/input/touchscreen/ad7879.c static int ad7879_parse_dt(struct device *dev, struct ad7879 *ts) ts 501 drivers/input/touchscreen/ad7879.c ts->x_plate_ohms = (u16)tmp; ts 504 drivers/input/touchscreen/ad7879.c &ts->first_conversion_delay); ts 506 drivers/input/touchscreen/ad7879.c &ts->acquisition_time); ts 507 drivers/input/touchscreen/ad7879.c device_property_read_u8(dev, "adi,median-filter-size", &ts->median); ts 508 drivers/input/touchscreen/ad7879.c device_property_read_u8(dev, "adi,averaging", &ts->averaging); ts 510 drivers/input/touchscreen/ad7879.c &ts->pen_down_acc_interval); ts 512 drivers/input/touchscreen/ad7879.c ts->swap_xy = device_property_read_bool(dev, "touchscreen-swapped-x-y"); ts 520 drivers/input/touchscreen/ad7879.c struct ad7879 *ts; ts 530 drivers/input/touchscreen/ad7879.c ts = devm_kzalloc(dev, sizeof(*ts), GFP_KERNEL); ts 531 drivers/input/touchscreen/ad7879.c if (!ts) ts 534 drivers/input/touchscreen/ad7879.c err = ad7879_parse_dt(dev, ts); ts 544 drivers/input/touchscreen/ad7879.c ts->dev = dev; ts 545 drivers/input/touchscreen/ad7879.c ts->input = input_dev; ts 546 drivers/input/touchscreen/ad7879.c ts->irq = irq; ts 547 drivers/input/touchscreen/ad7879.c ts->regmap = regmap; ts 549 drivers/input/touchscreen/ad7879.c timer_setup(&ts->timer, ad7879_timer, 0); ts 550 drivers/input/touchscreen/ad7879.c snprintf(ts->phys, sizeof(ts->phys), "%s/input0", dev_name(dev)); ts 553 drivers/input/touchscreen/ad7879.c input_dev->phys = ts->phys; ts 560 drivers/input/touchscreen/ad7879.c input_set_drvdata(input_dev, ts); ts 573 drivers/input/touchscreen/ad7879.c err = ad7879_write(ts, AD7879_REG_CTRL2, AD7879_RESET); ts 579 drivers/input/touchscreen/ad7879.c revid = ad7879_read(ts, AD7879_REG_REVID); ts 588 drivers/input/touchscreen/ad7879.c ts->cmd_crtl3 = AD7879_YPLUS_BIT | ts 596 drivers/input/touchscreen/ad7879.c ts->cmd_crtl2 = AD7879_PM(AD7879_PM_DYN) | AD7879_DFR | ts 597 drivers/input/touchscreen/ad7879.c AD7879_AVG(ts->averaging) | ts 598 drivers/input/touchscreen/ad7879.c AD7879_MFS(ts->median) | ts 599 drivers/input/touchscreen/ad7879.c AD7879_FCD(ts->first_conversion_delay); ts 601 drivers/input/touchscreen/ad7879.c ts->cmd_crtl1 = AD7879_MODE_INT | AD7879_MODE_SEQ1 | ts 602 drivers/input/touchscreen/ad7879.c AD7879_ACQ(ts->acquisition_time) | ts 603 drivers/input/touchscreen/ad7879.c AD7879_TMR(ts->pen_down_acc_interval); ts 605 drivers/input/touchscreen/ad7879.c err = devm_request_threaded_irq(dev, ts->irq, NULL, ad7879_irq, ts 607 drivers/input/touchscreen/ad7879.c dev_name(dev), ts); ts 613 drivers/input/touchscreen/ad7879.c __ad7879_disable(ts); ts 619 drivers/input/touchscreen/ad7879.c err = ad7879_gpio_add(ts); ts 627 drivers/input/touchscreen/ad7879.c dev_set_drvdata(dev, ts); ts 203 drivers/input/touchscreen/ads7846.c static void ads7846_stop(struct ads7846 *ts) ts 205 drivers/input/touchscreen/ads7846.c if (!ts->disabled && !ts->suspended) { ts 207 drivers/input/touchscreen/ads7846.c ts->stopped = true; ts 209 drivers/input/touchscreen/ads7846.c wake_up(&ts->wait); ts 210 drivers/input/touchscreen/ads7846.c disable_irq(ts->spi->irq); ts 215 drivers/input/touchscreen/ads7846.c static void ads7846_restart(struct ads7846 *ts) ts 217 drivers/input/touchscreen/ads7846.c if (!ts->disabled && !ts->suspended) { ts 219 drivers/input/touchscreen/ads7846.c ts->stopped = false; ts 221 drivers/input/touchscreen/ads7846.c enable_irq(ts->spi->irq); ts 226 drivers/input/touchscreen/ads7846.c static void __ads7846_disable(struct ads7846 *ts) ts 228 drivers/input/touchscreen/ads7846.c ads7846_stop(ts); ts 229 drivers/input/touchscreen/ads7846.c regulator_disable(ts->reg); ts 238 drivers/input/touchscreen/ads7846.c static void __ads7846_enable(struct ads7846 *ts) ts 242 drivers/input/touchscreen/ads7846.c error = regulator_enable(ts->reg); ts 244 drivers/input/touchscreen/ads7846.c dev_err(&ts->spi->dev, "Failed to enable supply: %d\n", error); ts 246 drivers/input/touchscreen/ads7846.c ads7846_restart(ts); ts 249 drivers/input/touchscreen/ads7846.c static void ads7846_disable(struct ads7846 *ts) ts 251 drivers/input/touchscreen/ads7846.c mutex_lock(&ts->lock); ts 253 drivers/input/touchscreen/ads7846.c if (!ts->disabled) { ts 255 drivers/input/touchscreen/ads7846.c if (!ts->suspended) ts 256 drivers/input/touchscreen/ads7846.c __ads7846_disable(ts); ts 258 drivers/input/touchscreen/ads7846.c ts->disabled = true; ts 261 drivers/input/touchscreen/ads7846.c mutex_unlock(&ts->lock); ts 264 drivers/input/touchscreen/ads7846.c static void ads7846_enable(struct ads7846 *ts) ts 266 drivers/input/touchscreen/ads7846.c mutex_lock(&ts->lock); ts 268 drivers/input/touchscreen/ads7846.c if (ts->disabled) { ts 270 drivers/input/touchscreen/ads7846.c ts->disabled = false; ts 272 drivers/input/touchscreen/ads7846.c if (!ts->suspended) ts 273 drivers/input/touchscreen/ads7846.c __ads7846_enable(ts); ts 276 drivers/input/touchscreen/ads7846.c mutex_unlock(&ts->lock); ts 315 drivers/input/touchscreen/ads7846.c struct ads7846 *ts = dev_get_drvdata(dev); ts 326 drivers/input/touchscreen/ads7846.c if (ts->use_internal) { ts 336 drivers/input/touchscreen/ads7846.c req->xfer[1].delay_usecs = ts->vref_delay_usecs; ts 369 drivers/input/touchscreen/ads7846.c mutex_lock(&ts->lock); ts 370 drivers/input/touchscreen/ads7846.c ads7846_stop(ts); ts 372 drivers/input/touchscreen/ads7846.c ads7846_restart(ts); ts 373 drivers/input/touchscreen/ads7846.c mutex_unlock(&ts->lock); ts 389 drivers/input/touchscreen/ads7846.c struct ads7846 *ts = dev_get_drvdata(dev); ts 405 drivers/input/touchscreen/ads7846.c mutex_lock(&ts->lock); ts 406 drivers/input/touchscreen/ads7846.c ads7846_stop(ts); ts 408 drivers/input/touchscreen/ads7846.c ads7846_restart(ts); ts 409 drivers/input/touchscreen/ads7846.c mutex_unlock(&ts->lock); ts 427 drivers/input/touchscreen/ads7846.c struct ads7846 *ts = dev_get_drvdata(dev); \ ts 428 drivers/input/touchscreen/ads7846.c ssize_t v = ads7846_read12_ser(&ts->spi->dev, \ ts 432 drivers/input/touchscreen/ads7846.c return sprintf(buf, "%u\n", adjust(ts, v)); \ ts 442 drivers/input/touchscreen/ads7846.c static inline unsigned null_adjust(struct ads7846 *ts, ssize_t v) ts 455 drivers/input/touchscreen/ads7846.c static inline unsigned vaux_adjust(struct ads7846 *ts, ssize_t v) ts 460 drivers/input/touchscreen/ads7846.c retval *= ts->vref_mv; ts 466 drivers/input/touchscreen/ads7846.c static inline unsigned vbatt_adjust(struct ads7846 *ts, ssize_t v) ts 468 drivers/input/touchscreen/ads7846.c unsigned retval = vaux_adjust(ts, v); ts 471 drivers/input/touchscreen/ads7846.c if (ts->model == 7846) ts 484 drivers/input/touchscreen/ads7846.c struct ads7846 *ts = dev_get_drvdata(dev); ts 486 drivers/input/touchscreen/ads7846.c if (ts->model == 7843 && index < 2) /* in0, in1 */ ts 488 drivers/input/touchscreen/ads7846.c if (ts->model == 7845 && index != 2) /* in0 */ ts 508 drivers/input/touchscreen/ads7846.c static int ads784x_hwmon_register(struct spi_device *spi, struct ads7846 *ts) ts 511 drivers/input/touchscreen/ads7846.c switch (ts->model) { ts 513 drivers/input/touchscreen/ads7846.c if (!ts->vref_mv) { ts 515 drivers/input/touchscreen/ads7846.c ts->vref_mv = 2500; ts 516 drivers/input/touchscreen/ads7846.c ts->use_internal = true; ts 521 drivers/input/touchscreen/ads7846.c if (!ts->vref_mv) { ts 524 drivers/input/touchscreen/ads7846.c ts->model); ts 530 drivers/input/touchscreen/ads7846.c ts->hwmon = hwmon_device_register_with_groups(&spi->dev, spi->modalias, ts 531 drivers/input/touchscreen/ads7846.c ts, ads7846_attr_groups); ts 533 drivers/input/touchscreen/ads7846.c return PTR_ERR_OR_ZERO(ts->hwmon); ts 537 drivers/input/touchscreen/ads7846.c struct ads7846 *ts) ts 539 drivers/input/touchscreen/ads7846.c if (ts->hwmon) ts 540 drivers/input/touchscreen/ads7846.c hwmon_device_unregister(ts->hwmon); ts 545 drivers/input/touchscreen/ads7846.c struct ads7846 *ts) ts 551 drivers/input/touchscreen/ads7846.c struct ads7846 *ts) ts 559 drivers/input/touchscreen/ads7846.c struct ads7846 *ts = dev_get_drvdata(dev); ts 561 drivers/input/touchscreen/ads7846.c return sprintf(buf, "%u\n", ts->pendown); ts 569 drivers/input/touchscreen/ads7846.c struct ads7846 *ts = dev_get_drvdata(dev); ts 571 drivers/input/touchscreen/ads7846.c return sprintf(buf, "%u\n", ts->disabled); ts 578 drivers/input/touchscreen/ads7846.c struct ads7846 *ts = dev_get_drvdata(dev); ts 587 drivers/input/touchscreen/ads7846.c ads7846_disable(ts); ts 589 drivers/input/touchscreen/ads7846.c ads7846_enable(ts); ts 608 drivers/input/touchscreen/ads7846.c static int get_pendown_state(struct ads7846 *ts) ts 610 drivers/input/touchscreen/ads7846.c if (ts->get_pendown_state) ts 611 drivers/input/touchscreen/ads7846.c return ts->get_pendown_state(); ts 613 drivers/input/touchscreen/ads7846.c return !gpio_get_value(ts->gpio_pendown); ts 622 drivers/input/touchscreen/ads7846.c struct ads7846 *ts = ads; ts 624 drivers/input/touchscreen/ads7846.c if (!ts->read_cnt || (abs(ts->last_read - *val) > ts->debounce_tol)) { ts 626 drivers/input/touchscreen/ads7846.c ts->read_rep = 0; ts 631 drivers/input/touchscreen/ads7846.c if (ts->read_cnt < ts->debounce_max) { ts 632 drivers/input/touchscreen/ads7846.c ts->last_read = *val; ts 633 drivers/input/touchscreen/ads7846.c ts->read_cnt++; ts 642 drivers/input/touchscreen/ads7846.c ts->read_cnt = 0; ts 646 drivers/input/touchscreen/ads7846.c if (++ts->read_rep > ts->debounce_rep) { ts 651 drivers/input/touchscreen/ads7846.c ts->read_cnt = 0; ts 652 drivers/input/touchscreen/ads7846.c ts->read_rep = 0; ts 656 drivers/input/touchscreen/ads7846.c ts->read_cnt++; ts 667 drivers/input/touchscreen/ads7846.c static int ads7846_get_value(struct ads7846 *ts, struct spi_message *m) ts 673 drivers/input/touchscreen/ads7846.c if (ts->model == 7845) { ts 695 drivers/input/touchscreen/ads7846.c static void ads7846_read_state(struct ads7846 *ts) ts 697 drivers/input/touchscreen/ads7846.c struct ads7846_packet *packet = ts->packet; ts 704 drivers/input/touchscreen/ads7846.c while (msg_idx < ts->msg_count) { ts 706 drivers/input/touchscreen/ads7846.c ts->wait_for_sync(); ts 708 drivers/input/touchscreen/ads7846.c m = &ts->msg[msg_idx]; ts 709 drivers/input/touchscreen/ads7846.c error = spi_sync(ts->spi, m); ts 711 drivers/input/touchscreen/ads7846.c dev_err(&ts->spi->dev, "spi_sync --> %d\n", error); ts 720 drivers/input/touchscreen/ads7846.c if (msg_idx < ts->msg_count - 1) { ts 722 drivers/input/touchscreen/ads7846.c val = ads7846_get_value(ts, m); ts 724 drivers/input/touchscreen/ads7846.c action = ts->filter(ts->filter_data, msg_idx, &val); ts 731 drivers/input/touchscreen/ads7846.c msg_idx = ts->msg_count - 1; ts 749 drivers/input/touchscreen/ads7846.c static void ads7846_report_state(struct ads7846 *ts) ts 751 drivers/input/touchscreen/ads7846.c struct ads7846_packet *packet = ts->packet; ts 760 drivers/input/touchscreen/ads7846.c if (ts->model == 7845) { ts 776 drivers/input/touchscreen/ads7846.c if (ts->model == 7843) { ts 777 drivers/input/touchscreen/ads7846.c Rt = ts->pressure_max / 2; ts 778 drivers/input/touchscreen/ads7846.c } else if (ts->model == 7845) { ts 779 drivers/input/touchscreen/ads7846.c if (get_pendown_state(ts)) ts 780 drivers/input/touchscreen/ads7846.c Rt = ts->pressure_max / 2; ts 783 drivers/input/touchscreen/ads7846.c dev_vdbg(&ts->spi->dev, "x/y: %d/%d, PD %d\n", x, y, Rt); ts 789 drivers/input/touchscreen/ads7846.c Rt *= ts->x_plate_ohms; ts 801 drivers/input/touchscreen/ads7846.c if (packet->tc.ignore || Rt > ts->pressure_max) { ts 802 drivers/input/touchscreen/ads7846.c dev_vdbg(&ts->spi->dev, "ignored %d pressure %d\n", ts 811 drivers/input/touchscreen/ads7846.c if (ts->penirq_recheck_delay_usecs) { ts 812 drivers/input/touchscreen/ads7846.c udelay(ts->penirq_recheck_delay_usecs); ts 813 drivers/input/touchscreen/ads7846.c if (!get_pendown_state(ts)) ts 827 drivers/input/touchscreen/ads7846.c struct input_dev *input = ts->input; ts 829 drivers/input/touchscreen/ads7846.c if (!ts->pendown) { ts 831 drivers/input/touchscreen/ads7846.c ts->pendown = true; ts 832 drivers/input/touchscreen/ads7846.c dev_vdbg(&ts->spi->dev, "DOWN\n"); ts 835 drivers/input/touchscreen/ads7846.c touchscreen_report_pos(input, &ts->core_prop, x, y, false); ts 836 drivers/input/touchscreen/ads7846.c input_report_abs(input, ABS_PRESSURE, ts->pressure_max - Rt); ts 839 drivers/input/touchscreen/ads7846.c dev_vdbg(&ts->spi->dev, "%4d/%4d/%4d\n", x, y, Rt); ts 845 drivers/input/touchscreen/ads7846.c struct ads7846 *ts = handle; ts 847 drivers/input/touchscreen/ads7846.c return get_pendown_state(ts) ? IRQ_WAKE_THREAD : IRQ_HANDLED; ts 853 drivers/input/touchscreen/ads7846.c struct ads7846 *ts = handle; ts 858 drivers/input/touchscreen/ads7846.c while (!ts->stopped && get_pendown_state(ts)) { ts 861 drivers/input/touchscreen/ads7846.c ads7846_read_state(ts); ts 863 drivers/input/touchscreen/ads7846.c if (!ts->stopped) ts 864 drivers/input/touchscreen/ads7846.c ads7846_report_state(ts); ts 866 drivers/input/touchscreen/ads7846.c wait_event_timeout(ts->wait, ts->stopped, ts 870 drivers/input/touchscreen/ads7846.c if (ts->pendown && !ts->stopped) { ts 871 drivers/input/touchscreen/ads7846.c struct input_dev *input = ts->input; ts 877 drivers/input/touchscreen/ads7846.c ts->pendown = false; ts 878 drivers/input/touchscreen/ads7846.c dev_vdbg(&ts->spi->dev, "UP\n"); ts 886 drivers/input/touchscreen/ads7846.c struct ads7846 *ts = dev_get_drvdata(dev); ts 888 drivers/input/touchscreen/ads7846.c mutex_lock(&ts->lock); ts 890 drivers/input/touchscreen/ads7846.c if (!ts->suspended) { ts 892 drivers/input/touchscreen/ads7846.c if (!ts->disabled) ts 893 drivers/input/touchscreen/ads7846.c __ads7846_disable(ts); ts 895 drivers/input/touchscreen/ads7846.c if (device_may_wakeup(&ts->spi->dev)) ts 896 drivers/input/touchscreen/ads7846.c enable_irq_wake(ts->spi->irq); ts 898 drivers/input/touchscreen/ads7846.c ts->suspended = true; ts 901 drivers/input/touchscreen/ads7846.c mutex_unlock(&ts->lock); ts 908 drivers/input/touchscreen/ads7846.c struct ads7846 *ts = dev_get_drvdata(dev); ts 910 drivers/input/touchscreen/ads7846.c mutex_lock(&ts->lock); ts 912 drivers/input/touchscreen/ads7846.c if (ts->suspended) { ts 914 drivers/input/touchscreen/ads7846.c ts->suspended = false; ts 916 drivers/input/touchscreen/ads7846.c if (device_may_wakeup(&ts->spi->dev)) ts 917 drivers/input/touchscreen/ads7846.c disable_irq_wake(ts->spi->irq); ts 919 drivers/input/touchscreen/ads7846.c if (!ts->disabled) ts 920 drivers/input/touchscreen/ads7846.c __ads7846_enable(ts); ts 923 drivers/input/touchscreen/ads7846.c mutex_unlock(&ts->lock); ts 931 drivers/input/touchscreen/ads7846.c struct ads7846 *ts, ts 943 drivers/input/touchscreen/ads7846.c ts->get_pendown_state = pdata->get_pendown_state; ts 955 drivers/input/touchscreen/ads7846.c ts->gpio_pendown = pdata->gpio_pendown; ts 972 drivers/input/touchscreen/ads7846.c static void ads7846_setup_spi_msg(struct ads7846 *ts, ts 975 drivers/input/touchscreen/ads7846.c struct spi_message *m = &ts->msg[0]; ts 976 drivers/input/touchscreen/ads7846.c struct spi_transfer *x = ts->xfer; ts 977 drivers/input/touchscreen/ads7846.c struct ads7846_packet *packet = ts->packet; ts 980 drivers/input/touchscreen/ads7846.c if (ts->model == 7873) { ts 986 drivers/input/touchscreen/ads7846.c ts->model = 7846; ts 990 drivers/input/touchscreen/ads7846.c ts->msg_count = 1; ts 992 drivers/input/touchscreen/ads7846.c m->context = ts; ts 994 drivers/input/touchscreen/ads7846.c if (ts->model == 7845) { ts 1034 drivers/input/touchscreen/ads7846.c ts->msg_count++; ts 1037 drivers/input/touchscreen/ads7846.c m->context = ts; ts 1039 drivers/input/touchscreen/ads7846.c if (ts->model == 7845) { ts 1078 drivers/input/touchscreen/ads7846.c if (ts->model == 7846) { ts 1079 drivers/input/touchscreen/ads7846.c ts->msg_count++; ts 1082 drivers/input/touchscreen/ads7846.c m->context = ts; ts 1110 drivers/input/touchscreen/ads7846.c ts->msg_count++; ts 1113 drivers/input/touchscreen/ads7846.c m->context = ts; ts 1143 drivers/input/touchscreen/ads7846.c ts->msg_count++; ts 1146 drivers/input/touchscreen/ads7846.c m->context = ts; ts 1148 drivers/input/touchscreen/ads7846.c if (ts->model == 7845) { ts 1262 drivers/input/touchscreen/ads7846.c struct ads7846 *ts; ts 1291 drivers/input/touchscreen/ads7846.c ts = kzalloc(sizeof(struct ads7846), GFP_KERNEL); ts 1294 drivers/input/touchscreen/ads7846.c if (!ts || !packet || !input_dev) { ts 1299 drivers/input/touchscreen/ads7846.c spi_set_drvdata(spi, ts); ts 1301 drivers/input/touchscreen/ads7846.c ts->packet = packet; ts 1302 drivers/input/touchscreen/ads7846.c ts->spi = spi; ts 1303 drivers/input/touchscreen/ads7846.c ts->input = input_dev; ts 1305 drivers/input/touchscreen/ads7846.c mutex_init(&ts->lock); ts 1306 drivers/input/touchscreen/ads7846.c init_waitqueue_head(&ts->wait); ts 1317 drivers/input/touchscreen/ads7846.c ts->model = pdata->model ? : 7846; ts 1318 drivers/input/touchscreen/ads7846.c ts->vref_delay_usecs = pdata->vref_delay_usecs ? : 100; ts 1319 drivers/input/touchscreen/ads7846.c ts->x_plate_ohms = pdata->x_plate_ohms ? : 400; ts 1320 drivers/input/touchscreen/ads7846.c ts->vref_mv = pdata->vref_mv; ts 1324 drivers/input/touchscreen/ads7846.c err = pdata->filter_init(pdata, &ts->filter_data); ts 1328 drivers/input/touchscreen/ads7846.c ts->filter = pdata->filter; ts 1329 drivers/input/touchscreen/ads7846.c ts->filter_cleanup = pdata->filter_cleanup; ts 1331 drivers/input/touchscreen/ads7846.c ts->debounce_max = pdata->debounce_max; ts 1332 drivers/input/touchscreen/ads7846.c if (ts->debounce_max < 2) ts 1333 drivers/input/touchscreen/ads7846.c ts->debounce_max = 2; ts 1334 drivers/input/touchscreen/ads7846.c ts->debounce_tol = pdata->debounce_tol; ts 1335 drivers/input/touchscreen/ads7846.c ts->debounce_rep = pdata->debounce_rep; ts 1336 drivers/input/touchscreen/ads7846.c ts->filter = ads7846_debounce_filter; ts 1337 drivers/input/touchscreen/ads7846.c ts->filter_data = ts; ts 1339 drivers/input/touchscreen/ads7846.c ts->filter = ads7846_no_filter; ts 1342 drivers/input/touchscreen/ads7846.c err = ads7846_setup_pendown(spi, ts, pdata); ts 1347 drivers/input/touchscreen/ads7846.c ts->penirq_recheck_delay_usecs = ts 1350 drivers/input/touchscreen/ads7846.c ts->wait_for_sync = pdata->wait_for_sync ? : null_wait_for_sync; ts 1352 drivers/input/touchscreen/ads7846.c snprintf(ts->phys, sizeof(ts->phys), "%s/input0", dev_name(&spi->dev)); ts 1353 drivers/input/touchscreen/ads7846.c snprintf(ts->name, sizeof(ts->name), "ADS%d Touchscreen", ts->model); ts 1355 drivers/input/touchscreen/ads7846.c input_dev->name = ts->name; ts 1356 drivers/input/touchscreen/ads7846.c input_dev->phys = ts->phys; ts 1377 drivers/input/touchscreen/ads7846.c touchscreen_parse_properties(ts->input, false, &ts->core_prop); ts 1378 drivers/input/touchscreen/ads7846.c ts->pressure_max = input_abs_get_max(input_dev, ABS_PRESSURE) ? : ~0; ts 1384 drivers/input/touchscreen/ads7846.c if (!ts->core_prop.swap_x_y && pdata->swap_xy) { ts 1386 drivers/input/touchscreen/ads7846.c ts->core_prop.swap_x_y = true; ts 1389 drivers/input/touchscreen/ads7846.c ads7846_setup_spi_msg(ts, pdata); ts 1391 drivers/input/touchscreen/ads7846.c ts->reg = regulator_get(&spi->dev, "vcc"); ts 1392 drivers/input/touchscreen/ads7846.c if (IS_ERR(ts->reg)) { ts 1393 drivers/input/touchscreen/ads7846.c err = PTR_ERR(ts->reg); ts 1398 drivers/input/touchscreen/ads7846.c err = regulator_enable(ts->reg); ts 1408 drivers/input/touchscreen/ads7846.c irq_flags, spi->dev.driver->name, ts); ts 1415 drivers/input/touchscreen/ads7846.c irq_flags, spi->dev.driver->name, ts); ts 1423 drivers/input/touchscreen/ads7846.c err = ads784x_hwmon_register(spi, ts); ts 1433 drivers/input/touchscreen/ads7846.c if (ts->model == 7845) ts 1460 drivers/input/touchscreen/ads7846.c ads784x_hwmon_unregister(spi, ts); ts 1462 drivers/input/touchscreen/ads7846.c free_irq(spi->irq, ts); ts 1464 drivers/input/touchscreen/ads7846.c regulator_disable(ts->reg); ts 1466 drivers/input/touchscreen/ads7846.c regulator_put(ts->reg); ts 1468 drivers/input/touchscreen/ads7846.c if (!ts->get_pendown_state) ts 1469 drivers/input/touchscreen/ads7846.c gpio_free(ts->gpio_pendown); ts 1471 drivers/input/touchscreen/ads7846.c if (ts->filter_cleanup) ts 1472 drivers/input/touchscreen/ads7846.c ts->filter_cleanup(ts->filter_data); ts 1476 drivers/input/touchscreen/ads7846.c kfree(ts); ts 1482 drivers/input/touchscreen/ads7846.c struct ads7846 *ts = spi_get_drvdata(spi); ts 1486 drivers/input/touchscreen/ads7846.c ads7846_disable(ts); ts 1487 drivers/input/touchscreen/ads7846.c free_irq(ts->spi->irq, ts); ts 1489 drivers/input/touchscreen/ads7846.c input_unregister_device(ts->input); ts 1491 drivers/input/touchscreen/ads7846.c ads784x_hwmon_unregister(spi, ts); ts 1493 drivers/input/touchscreen/ads7846.c regulator_put(ts->reg); ts 1495 drivers/input/touchscreen/ads7846.c if (!ts->get_pendown_state) { ts 1500 drivers/input/touchscreen/ads7846.c gpio_free(ts->gpio_pendown); ts 1503 drivers/input/touchscreen/ads7846.c if (ts->filter_cleanup) ts 1504 drivers/input/touchscreen/ads7846.c ts->filter_cleanup(ts->filter_data); ts 1506 drivers/input/touchscreen/ads7846.c kfree(ts->packet); ts 1507 drivers/input/touchscreen/ads7846.c kfree(ts); ts 124 drivers/input/touchscreen/auo-pixcir-ts.c static int auo_pixcir_collect_data(struct auo_pixcir_ts *ts, ts 127 drivers/input/touchscreen/auo-pixcir-ts.c struct i2c_client *client = ts->client; ts 128 drivers/input/touchscreen/auo-pixcir-ts.c const struct auo_pixcir_ts_platdata *pdata = ts->pdata; ts 173 drivers/input/touchscreen/auo-pixcir-ts.c struct auo_pixcir_ts *ts = dev_id; ts 174 drivers/input/touchscreen/auo-pixcir-ts.c const struct auo_pixcir_ts_platdata *pdata = ts->pdata; ts 181 drivers/input/touchscreen/auo-pixcir-ts.c while (!ts->stopped) { ts 184 drivers/input/touchscreen/auo-pixcir-ts.c if (ts->touch_ind_mode) { ts 186 drivers/input/touchscreen/auo-pixcir-ts.c input_mt_sync(ts->input); ts 187 drivers/input/touchscreen/auo-pixcir-ts.c input_report_key(ts->input, BTN_TOUCH, 0); ts 188 drivers/input/touchscreen/auo-pixcir-ts.c input_sync(ts->input); ts 193 drivers/input/touchscreen/auo-pixcir-ts.c ret = auo_pixcir_collect_data(ts, point); ts 196 drivers/input/touchscreen/auo-pixcir-ts.c if (!ts->touch_ind_mode) ts 199 drivers/input/touchscreen/auo-pixcir-ts.c wait_event_timeout(ts->wait, ts->stopped, ts 206 drivers/input/touchscreen/auo-pixcir-ts.c input_report_abs(ts->input, ABS_MT_POSITION_X, ts 208 drivers/input/touchscreen/auo-pixcir-ts.c input_report_abs(ts->input, ABS_MT_POSITION_Y, ts 210 drivers/input/touchscreen/auo-pixcir-ts.c input_report_abs(ts->input, ABS_MT_TOUCH_MAJOR, ts 212 drivers/input/touchscreen/auo-pixcir-ts.c input_report_abs(ts->input, ABS_MT_TOUCH_MINOR, ts 214 drivers/input/touchscreen/auo-pixcir-ts.c input_report_abs(ts->input, ABS_MT_ORIENTATION, ts 216 drivers/input/touchscreen/auo-pixcir-ts.c input_mt_sync(ts->input); ts 229 drivers/input/touchscreen/auo-pixcir-ts.c input_report_key(ts->input, BTN_TOUCH, fingers > 0); ts 232 drivers/input/touchscreen/auo-pixcir-ts.c input_report_abs(ts->input, ABS_X, point[abs].coord_x); ts 233 drivers/input/touchscreen/auo-pixcir-ts.c input_report_abs(ts->input, ABS_Y, point[abs].coord_y); ts 236 drivers/input/touchscreen/auo-pixcir-ts.c input_sync(ts->input); ts 239 drivers/input/touchscreen/auo-pixcir-ts.c if (!ts->touch_ind_mode) ts 242 drivers/input/touchscreen/auo-pixcir-ts.c wait_event_timeout(ts->wait, ts->stopped, ts 256 drivers/input/touchscreen/auo-pixcir-ts.c static int auo_pixcir_power_mode(struct auo_pixcir_ts *ts, int mode) ts 258 drivers/input/touchscreen/auo-pixcir-ts.c struct i2c_client *client = ts->client; ts 281 drivers/input/touchscreen/auo-pixcir-ts.c static int auo_pixcir_int_config(struct auo_pixcir_ts *ts, ts 284 drivers/input/touchscreen/auo-pixcir-ts.c struct i2c_client *client = ts->client; ts 285 drivers/input/touchscreen/auo-pixcir-ts.c const struct auo_pixcir_ts_platdata *pdata = ts->pdata; ts 307 drivers/input/touchscreen/auo-pixcir-ts.c ts->touch_ind_mode = pdata->int_setting == AUO_PIXCIR_INT_TOUCH_IND; ts 313 drivers/input/touchscreen/auo-pixcir-ts.c static int auo_pixcir_int_toggle(struct auo_pixcir_ts *ts, bool enable) ts 315 drivers/input/touchscreen/auo-pixcir-ts.c struct i2c_client *client = ts->client; ts 341 drivers/input/touchscreen/auo-pixcir-ts.c static int auo_pixcir_start(struct auo_pixcir_ts *ts) ts 343 drivers/input/touchscreen/auo-pixcir-ts.c struct i2c_client *client = ts->client; ts 346 drivers/input/touchscreen/auo-pixcir-ts.c ret = auo_pixcir_power_mode(ts, AUO_PIXCIR_POWER_ACTIVE); ts 353 drivers/input/touchscreen/auo-pixcir-ts.c ts->stopped = false; ts 357 drivers/input/touchscreen/auo-pixcir-ts.c ret = auo_pixcir_int_toggle(ts, 1); ts 368 drivers/input/touchscreen/auo-pixcir-ts.c static int auo_pixcir_stop(struct auo_pixcir_ts *ts) ts 370 drivers/input/touchscreen/auo-pixcir-ts.c struct i2c_client *client = ts->client; ts 373 drivers/input/touchscreen/auo-pixcir-ts.c ret = auo_pixcir_int_toggle(ts, 0); ts 382 drivers/input/touchscreen/auo-pixcir-ts.c ts->stopped = true; ts 384 drivers/input/touchscreen/auo-pixcir-ts.c wake_up(&ts->wait); ts 386 drivers/input/touchscreen/auo-pixcir-ts.c return auo_pixcir_power_mode(ts, AUO_PIXCIR_POWER_DEEP_SLEEP); ts 391 drivers/input/touchscreen/auo-pixcir-ts.c struct auo_pixcir_ts *ts = input_get_drvdata(dev); ts 393 drivers/input/touchscreen/auo-pixcir-ts.c return auo_pixcir_start(ts); ts 398 drivers/input/touchscreen/auo-pixcir-ts.c struct auo_pixcir_ts *ts = input_get_drvdata(dev); ts 400 drivers/input/touchscreen/auo-pixcir-ts.c auo_pixcir_stop(ts); ts 406 drivers/input/touchscreen/auo-pixcir-ts.c struct auo_pixcir_ts *ts = i2c_get_clientdata(client); ts 407 drivers/input/touchscreen/auo-pixcir-ts.c struct input_dev *input = ts->input; ts 418 drivers/input/touchscreen/auo-pixcir-ts.c ret = auo_pixcir_start(ts); ts 424 drivers/input/touchscreen/auo-pixcir-ts.c ret = auo_pixcir_power_mode(ts, AUO_PIXCIR_POWER_SLEEP); ts 426 drivers/input/touchscreen/auo-pixcir-ts.c ret = auo_pixcir_stop(ts); ts 438 drivers/input/touchscreen/auo-pixcir-ts.c struct auo_pixcir_ts *ts = i2c_get_clientdata(client); ts 439 drivers/input/touchscreen/auo-pixcir-ts.c struct input_dev *input = ts->input; ts 449 drivers/input/touchscreen/auo-pixcir-ts.c ret = auo_pixcir_stop(ts); ts 456 drivers/input/touchscreen/auo-pixcir-ts.c ret = auo_pixcir_start(ts); ts 517 drivers/input/touchscreen/auo-pixcir-ts.c struct auo_pixcir_ts *ts = data; ts 519 drivers/input/touchscreen/auo-pixcir-ts.c gpio_set_value(ts->pdata->gpio_rst, 0); ts 526 drivers/input/touchscreen/auo-pixcir-ts.c struct auo_pixcir_ts *ts; ts 538 drivers/input/touchscreen/auo-pixcir-ts.c ts = devm_kzalloc(&client->dev, ts 540 drivers/input/touchscreen/auo-pixcir-ts.c if (!ts) ts 549 drivers/input/touchscreen/auo-pixcir-ts.c ts->pdata = pdata; ts 550 drivers/input/touchscreen/auo-pixcir-ts.c ts->client = client; ts 551 drivers/input/touchscreen/auo-pixcir-ts.c ts->input = input_dev; ts 552 drivers/input/touchscreen/auo-pixcir-ts.c ts->touch_ind_mode = 0; ts 553 drivers/input/touchscreen/auo-pixcir-ts.c ts->stopped = true; ts 554 drivers/input/touchscreen/auo-pixcir-ts.c init_waitqueue_head(&ts->wait); ts 556 drivers/input/touchscreen/auo-pixcir-ts.c snprintf(ts->phys, sizeof(ts->phys), ts 560 drivers/input/touchscreen/auo-pixcir-ts.c input_dev->phys = ts->phys; ts 586 drivers/input/touchscreen/auo-pixcir-ts.c input_set_drvdata(ts->input, ts); ts 605 drivers/input/touchscreen/auo-pixcir-ts.c error = devm_add_action_or_reset(&client->dev, auo_pixcir_reset, ts); ts 622 drivers/input/touchscreen/auo-pixcir-ts.c error = auo_pixcir_int_config(ts, pdata->int_setting); ts 629 drivers/input/touchscreen/auo-pixcir-ts.c input_dev->name, ts); ts 637 drivers/input/touchscreen/auo-pixcir-ts.c error = auo_pixcir_stop(ts); ts 648 drivers/input/touchscreen/auo-pixcir-ts.c i2c_set_clientdata(client, ts); ts 171 drivers/input/touchscreen/bu21013_ts.c static int bu21013_read_block_data(struct bu21013_ts *ts, u8 *buf) ts 176 drivers/input/touchscreen/bu21013_ts.c ret = i2c_smbus_read_i2c_block_data(ts->client, ts 186 drivers/input/touchscreen/bu21013_ts.c static int bu21013_do_touch_report(struct bu21013_ts *ts) ts 188 drivers/input/touchscreen/bu21013_ts.c struct input_dev *input = ts->in_dev; ts 196 drivers/input/touchscreen/bu21013_ts.c if (bu21013_read_block_data(ts, buf) < 0) ts 213 drivers/input/touchscreen/bu21013_ts.c &ts->props, x, y); ts 238 drivers/input/touchscreen/bu21013_ts.c struct bu21013_ts *ts = device_data; ts 243 drivers/input/touchscreen/bu21013_ts.c error = bu21013_do_touch_report(ts); ts 245 drivers/input/touchscreen/bu21013_ts.c dev_err(&ts->client->dev, "%s failed\n", __func__); ts 249 drivers/input/touchscreen/bu21013_ts.c if (unlikely(ts->touch_stopped)) ts 252 drivers/input/touchscreen/bu21013_ts.c keep_polling = ts->int_gpiod ? ts 253 drivers/input/touchscreen/bu21013_ts.c gpiod_get_value(ts->int_gpiod) : false; ts 261 drivers/input/touchscreen/bu21013_ts.c static int bu21013_init_chip(struct bu21013_ts *ts) ts 263 drivers/input/touchscreen/bu21013_ts.c struct i2c_client *client = ts->client; ts 395 drivers/input/touchscreen/bu21013_ts.c struct bu21013_ts *ts = _ts; ts 397 drivers/input/touchscreen/bu21013_ts.c regulator_disable(ts->regulator); ts 402 drivers/input/touchscreen/bu21013_ts.c struct bu21013_ts *ts = _ts; ts 404 drivers/input/touchscreen/bu21013_ts.c gpiod_set_value(ts->cs_gpiod, 0); ts 410 drivers/input/touchscreen/bu21013_ts.c struct bu21013_ts *ts; ts 427 drivers/input/touchscreen/bu21013_ts.c ts = devm_kzalloc(&client->dev, sizeof(*ts), GFP_KERNEL); ts 428 drivers/input/touchscreen/bu21013_ts.c if (!ts) ts 431 drivers/input/touchscreen/bu21013_ts.c ts->client = client; ts 433 drivers/input/touchscreen/bu21013_ts.c ts->x_flip = device_property_read_bool(&client->dev, "rohm,flip-x"); ts 434 drivers/input/touchscreen/bu21013_ts.c ts->y_flip = device_property_read_bool(&client->dev, "rohm,flip-y"); ts 441 drivers/input/touchscreen/bu21013_ts.c ts->in_dev = in_dev; ts 442 drivers/input/touchscreen/bu21013_ts.c input_set_drvdata(in_dev, ts); ts 454 drivers/input/touchscreen/bu21013_ts.c touchscreen_parse_properties(in_dev, true, &ts->props); ts 457 drivers/input/touchscreen/bu21013_ts.c if (!ts->props.invert_x && ts 464 drivers/input/touchscreen/bu21013_ts.c if (!ts->props.invert_y && ts 479 drivers/input/touchscreen/bu21013_ts.c ts->regulator = devm_regulator_get(&client->dev, "avdd"); ts 480 drivers/input/touchscreen/bu21013_ts.c if (IS_ERR(ts->regulator)) { ts 482 drivers/input/touchscreen/bu21013_ts.c return PTR_ERR(ts->regulator); ts 485 drivers/input/touchscreen/bu21013_ts.c error = regulator_enable(ts->regulator); ts 491 drivers/input/touchscreen/bu21013_ts.c error = devm_add_action_or_reset(&client->dev, bu21013_power_off, ts); ts 498 drivers/input/touchscreen/bu21013_ts.c ts->cs_gpiod = devm_gpiod_get(&client->dev, "reset", GPIOD_OUT_HIGH); ts 499 drivers/input/touchscreen/bu21013_ts.c error = PTR_ERR_OR_ZERO(ts->cs_gpiod); ts 505 drivers/input/touchscreen/bu21013_ts.c gpiod_set_consumer_name(ts->cs_gpiod, "BU21013 CS"); ts 508 drivers/input/touchscreen/bu21013_ts.c bu21013_disable_chip, ts); ts 516 drivers/input/touchscreen/bu21013_ts.c ts->int_gpiod = devm_gpiod_get_optional(&client->dev, ts 518 drivers/input/touchscreen/bu21013_ts.c error = PTR_ERR_OR_ZERO(ts->int_gpiod); ts 525 drivers/input/touchscreen/bu21013_ts.c if (ts->int_gpiod) ts 526 drivers/input/touchscreen/bu21013_ts.c gpiod_set_consumer_name(ts->int_gpiod, "BU21013 INT"); ts 529 drivers/input/touchscreen/bu21013_ts.c error = bu21013_init_chip(ts); ts 537 drivers/input/touchscreen/bu21013_ts.c IRQF_ONESHOT, DRIVER_TP, ts); ts 550 drivers/input/touchscreen/bu21013_ts.c i2c_set_clientdata(client, ts); ts 557 drivers/input/touchscreen/bu21013_ts.c struct bu21013_ts *ts = i2c_get_clientdata(client); ts 560 drivers/input/touchscreen/bu21013_ts.c ts->touch_stopped = true; ts 569 drivers/input/touchscreen/bu21013_ts.c struct bu21013_ts *ts = i2c_get_clientdata(client); ts 571 drivers/input/touchscreen/bu21013_ts.c ts->touch_stopped = true; ts 576 drivers/input/touchscreen/bu21013_ts.c regulator_disable(ts->regulator); ts 584 drivers/input/touchscreen/bu21013_ts.c struct bu21013_ts *ts = i2c_get_clientdata(client); ts 588 drivers/input/touchscreen/bu21013_ts.c error = regulator_enable(ts->regulator); ts 595 drivers/input/touchscreen/bu21013_ts.c error = bu21013_init_chip(ts); ts 603 drivers/input/touchscreen/bu21013_ts.c ts->touch_stopped = false; ts 56 drivers/input/touchscreen/cy8ctmg110_ts.c static void cy8ctmg110_power(struct cy8ctmg110 *ts, bool poweron) ts 58 drivers/input/touchscreen/cy8ctmg110_ts.c if (ts->reset_pin) ts 59 drivers/input/touchscreen/cy8ctmg110_ts.c gpio_direction_output(ts->reset_pin, 1 - poweron); ts 140 drivers/input/touchscreen/cy8ctmg110_ts.c static int cy8ctmg110_set_sleepmode(struct cy8ctmg110 *ts, bool sleep) ts 154 drivers/input/touchscreen/cy8ctmg110_ts.c return cy8ctmg110_write_regs(ts, CY8CTMG110_TOUCH_WAKEUP_TIME, 3, reg_p); ts 170 drivers/input/touchscreen/cy8ctmg110_ts.c struct cy8ctmg110 *ts; ts 184 drivers/input/touchscreen/cy8ctmg110_ts.c ts = kzalloc(sizeof(struct cy8ctmg110), GFP_KERNEL); ts 186 drivers/input/touchscreen/cy8ctmg110_ts.c if (!ts || !input_dev) { ts 191 drivers/input/touchscreen/cy8ctmg110_ts.c ts->client = client; ts 192 drivers/input/touchscreen/cy8ctmg110_ts.c ts->input = input_dev; ts 193 drivers/input/touchscreen/cy8ctmg110_ts.c ts->reset_pin = pdata->reset_pin; ts 194 drivers/input/touchscreen/cy8ctmg110_ts.c ts->irq_pin = pdata->irq_pin; ts 196 drivers/input/touchscreen/cy8ctmg110_ts.c snprintf(ts->phys, sizeof(ts->phys), ts 200 drivers/input/touchscreen/cy8ctmg110_ts.c input_dev->phys = ts->phys; ts 212 drivers/input/touchscreen/cy8ctmg110_ts.c if (ts->reset_pin) { ts 213 drivers/input/touchscreen/cy8ctmg110_ts.c err = gpio_request(ts->reset_pin, NULL); ts 217 drivers/input/touchscreen/cy8ctmg110_ts.c ts->reset_pin); ts 222 drivers/input/touchscreen/cy8ctmg110_ts.c cy8ctmg110_power(ts, true); ts 223 drivers/input/touchscreen/cy8ctmg110_ts.c cy8ctmg110_set_sleepmode(ts, false); ts 225 drivers/input/touchscreen/cy8ctmg110_ts.c err = gpio_request(ts->irq_pin, "touch_irq_key"); ts 229 drivers/input/touchscreen/cy8ctmg110_ts.c ts->irq_pin, err); ts 233 drivers/input/touchscreen/cy8ctmg110_ts.c err = gpio_direction_input(ts->irq_pin); ts 237 drivers/input/touchscreen/cy8ctmg110_ts.c ts->irq_pin, err); ts 241 drivers/input/touchscreen/cy8ctmg110_ts.c client->irq = gpio_to_irq(ts->irq_pin); ts 246 drivers/input/touchscreen/cy8ctmg110_ts.c ts->irq_pin, err); ts 252 drivers/input/touchscreen/cy8ctmg110_ts.c "touch_reset_key", ts); ts 263 drivers/input/touchscreen/cy8ctmg110_ts.c i2c_set_clientdata(client, ts); ts 268 drivers/input/touchscreen/cy8ctmg110_ts.c free_irq(client->irq, ts); ts 270 drivers/input/touchscreen/cy8ctmg110_ts.c gpio_free(ts->irq_pin); ts 272 drivers/input/touchscreen/cy8ctmg110_ts.c cy8ctmg110_set_sleepmode(ts, true); ts 273 drivers/input/touchscreen/cy8ctmg110_ts.c cy8ctmg110_power(ts, false); ts 274 drivers/input/touchscreen/cy8ctmg110_ts.c if (ts->reset_pin) ts 275 drivers/input/touchscreen/cy8ctmg110_ts.c gpio_free(ts->reset_pin); ts 278 drivers/input/touchscreen/cy8ctmg110_ts.c kfree(ts); ts 285 drivers/input/touchscreen/cy8ctmg110_ts.c struct cy8ctmg110 *ts = i2c_get_clientdata(client); ts 290 drivers/input/touchscreen/cy8ctmg110_ts.c cy8ctmg110_set_sleepmode(ts, true); ts 291 drivers/input/touchscreen/cy8ctmg110_ts.c cy8ctmg110_power(ts, false); ts 299 drivers/input/touchscreen/cy8ctmg110_ts.c struct cy8ctmg110 *ts = i2c_get_clientdata(client); ts 304 drivers/input/touchscreen/cy8ctmg110_ts.c cy8ctmg110_power(ts, true); ts 305 drivers/input/touchscreen/cy8ctmg110_ts.c cy8ctmg110_set_sleepmode(ts, false); ts 314 drivers/input/touchscreen/cy8ctmg110_ts.c struct cy8ctmg110 *ts = i2c_get_clientdata(client); ts 316 drivers/input/touchscreen/cy8ctmg110_ts.c cy8ctmg110_set_sleepmode(ts, true); ts 317 drivers/input/touchscreen/cy8ctmg110_ts.c cy8ctmg110_power(ts, false); ts 319 drivers/input/touchscreen/cy8ctmg110_ts.c free_irq(client->irq, ts); ts 320 drivers/input/touchscreen/cy8ctmg110_ts.c input_unregister_device(ts->input); ts 321 drivers/input/touchscreen/cy8ctmg110_ts.c gpio_free(ts->irq_pin); ts 322 drivers/input/touchscreen/cy8ctmg110_ts.c if (ts->reset_pin) ts 323 drivers/input/touchscreen/cy8ctmg110_ts.c gpio_free(ts->reset_pin); ts 324 drivers/input/touchscreen/cy8ctmg110_ts.c kfree(ts); ts 441 drivers/input/touchscreen/cyttsp4_core.h static inline int cyttsp4_adap_read(struct cyttsp4 *ts, u16 addr, int size, ts 444 drivers/input/touchscreen/cyttsp4_core.h return ts->bus_ops->read(ts->dev, ts->xfer_buf, addr, size, buf); ts 447 drivers/input/touchscreen/cyttsp4_core.h static inline int cyttsp4_adap_write(struct cyttsp4 *ts, u16 addr, int size, ts 450 drivers/input/touchscreen/cyttsp4_core.h return ts->bus_ops->write(ts->dev, ts->xfer_buf, addr, size, buf); ts 455 drivers/input/touchscreen/cyttsp4_core.h extern int cyttsp4_remove(struct cyttsp4 *ts); ts 33 drivers/input/touchscreen/cyttsp4_i2c.c struct cyttsp4 *ts; ts 40 drivers/input/touchscreen/cyttsp4_i2c.c ts = cyttsp4_probe(&cyttsp4_i2c_bus_ops, &client->dev, client->irq, ts 43 drivers/input/touchscreen/cyttsp4_i2c.c return PTR_ERR_OR_ZERO(ts); ts 48 drivers/input/touchscreen/cyttsp4_i2c.c struct cyttsp4 *ts = i2c_get_clientdata(client); ts 50 drivers/input/touchscreen/cyttsp4_i2c.c cyttsp4_remove(ts); ts 148 drivers/input/touchscreen/cyttsp4_spi.c struct cyttsp4 *ts; ts 161 drivers/input/touchscreen/cyttsp4_spi.c ts = cyttsp4_probe(&cyttsp_spi_bus_ops, &spi->dev, spi->irq, ts 164 drivers/input/touchscreen/cyttsp4_spi.c return PTR_ERR_OR_ZERO(ts); ts 169 drivers/input/touchscreen/cyttsp4_spi.c struct cyttsp4 *ts = spi_get_drvdata(spi); ts 170 drivers/input/touchscreen/cyttsp4_spi.c cyttsp4_remove(ts); ts 70 drivers/input/touchscreen/cyttsp_core.c static int ttsp_read_block_data(struct cyttsp *ts, u8 command, ts 77 drivers/input/touchscreen/cyttsp_core.c error = ts->bus_ops->read(ts->dev, ts->xfer_buf, command, ts 88 drivers/input/touchscreen/cyttsp_core.c static int ttsp_write_block_data(struct cyttsp *ts, u8 command, ts 95 drivers/input/touchscreen/cyttsp_core.c error = ts->bus_ops->write(ts->dev, ts->xfer_buf, command, ts 106 drivers/input/touchscreen/cyttsp_core.c static int ttsp_send_command(struct cyttsp *ts, u8 cmd) ts 108 drivers/input/touchscreen/cyttsp_core.c return ttsp_write_block_data(ts, CY_REG_BASE, sizeof(cmd), &cmd); ts 111 drivers/input/touchscreen/cyttsp_core.c static int cyttsp_handshake(struct cyttsp *ts) ts 113 drivers/input/touchscreen/cyttsp_core.c if (ts->use_hndshk) ts 114 drivers/input/touchscreen/cyttsp_core.c return ttsp_send_command(ts, ts 115 drivers/input/touchscreen/cyttsp_core.c ts->xy_data.hst_mode ^ CY_HNDSHK_BIT); ts 120 drivers/input/touchscreen/cyttsp_core.c static int cyttsp_load_bl_regs(struct cyttsp *ts) ts 122 drivers/input/touchscreen/cyttsp_core.c memset(&ts->bl_data, 0, sizeof(ts->bl_data)); ts 123 drivers/input/touchscreen/cyttsp_core.c ts->bl_data.bl_status = 0x10; ts 125 drivers/input/touchscreen/cyttsp_core.c return ttsp_read_block_data(ts, CY_REG_BASE, ts 126 drivers/input/touchscreen/cyttsp_core.c sizeof(ts->bl_data), &ts->bl_data); ts 129 drivers/input/touchscreen/cyttsp_core.c static int cyttsp_exit_bl_mode(struct cyttsp *ts) ts 135 drivers/input/touchscreen/cyttsp_core.c if (ts->bl_keys) ts 137 drivers/input/touchscreen/cyttsp_core.c ts->bl_keys, CY_NUM_BL_KEYS); ts 139 drivers/input/touchscreen/cyttsp_core.c error = ttsp_write_block_data(ts, CY_REG_BASE, ts 147 drivers/input/touchscreen/cyttsp_core.c error = cyttsp_load_bl_regs(ts); ts 151 drivers/input/touchscreen/cyttsp_core.c if (GET_BOOTLOADERMODE(ts->bl_data.bl_status)) ts 157 drivers/input/touchscreen/cyttsp_core.c static int cyttsp_set_operational_mode(struct cyttsp *ts) ts 161 drivers/input/touchscreen/cyttsp_core.c error = ttsp_send_command(ts, CY_OPERATE_MODE); ts 166 drivers/input/touchscreen/cyttsp_core.c error = ttsp_read_block_data(ts, CY_REG_BASE, ts 167 drivers/input/touchscreen/cyttsp_core.c sizeof(ts->xy_data), &ts->xy_data); ts 171 drivers/input/touchscreen/cyttsp_core.c error = cyttsp_handshake(ts); ts 175 drivers/input/touchscreen/cyttsp_core.c return ts->xy_data.act_dist == CY_ACT_DIST_DFLT ? -EIO : 0; ts 178 drivers/input/touchscreen/cyttsp_core.c static int cyttsp_set_sysinfo_mode(struct cyttsp *ts) ts 182 drivers/input/touchscreen/cyttsp_core.c memset(&ts->sysinfo_data, 0, sizeof(ts->sysinfo_data)); ts 185 drivers/input/touchscreen/cyttsp_core.c error = ttsp_send_command(ts, CY_SYSINFO_MODE); ts 191 drivers/input/touchscreen/cyttsp_core.c error = ttsp_read_block_data(ts, CY_REG_BASE, sizeof(ts->sysinfo_data), ts 192 drivers/input/touchscreen/cyttsp_core.c &ts->sysinfo_data); ts 196 drivers/input/touchscreen/cyttsp_core.c error = cyttsp_handshake(ts); ts 200 drivers/input/touchscreen/cyttsp_core.c if (!ts->sysinfo_data.tts_verh && !ts->sysinfo_data.tts_verl) ts 206 drivers/input/touchscreen/cyttsp_core.c static int cyttsp_set_sysinfo_regs(struct cyttsp *ts) ts 210 drivers/input/touchscreen/cyttsp_core.c if (ts->act_intrvl != CY_ACT_INTRVL_DFLT || ts 211 drivers/input/touchscreen/cyttsp_core.c ts->tch_tmout != CY_TCH_TMOUT_DFLT || ts 212 drivers/input/touchscreen/cyttsp_core.c ts->lp_intrvl != CY_LP_INTRVL_DFLT) { ts 215 drivers/input/touchscreen/cyttsp_core.c ts->act_intrvl, ts 216 drivers/input/touchscreen/cyttsp_core.c ts->tch_tmout, ts 217 drivers/input/touchscreen/cyttsp_core.c ts->lp_intrvl ts 221 drivers/input/touchscreen/cyttsp_core.c retval = ttsp_write_block_data(ts, CY_REG_ACT_INTRVL, ts 229 drivers/input/touchscreen/cyttsp_core.c static void cyttsp_hard_reset(struct cyttsp *ts) ts 231 drivers/input/touchscreen/cyttsp_core.c if (ts->reset_gpio) { ts 232 drivers/input/touchscreen/cyttsp_core.c gpiod_set_value_cansleep(ts->reset_gpio, 1); ts 234 drivers/input/touchscreen/cyttsp_core.c gpiod_set_value_cansleep(ts->reset_gpio, 0); ts 239 drivers/input/touchscreen/cyttsp_core.c static int cyttsp_soft_reset(struct cyttsp *ts) ts 245 drivers/input/touchscreen/cyttsp_core.c reinit_completion(&ts->bl_ready); ts 246 drivers/input/touchscreen/cyttsp_core.c ts->state = CY_BL_STATE; ts 248 drivers/input/touchscreen/cyttsp_core.c enable_irq(ts->irq); ts 250 drivers/input/touchscreen/cyttsp_core.c retval = ttsp_send_command(ts, CY_SOFT_RESET_MODE); ts 254 drivers/input/touchscreen/cyttsp_core.c timeout = wait_for_completion_timeout(&ts->bl_ready, ts 259 drivers/input/touchscreen/cyttsp_core.c ts->state = CY_IDLE_STATE; ts 260 drivers/input/touchscreen/cyttsp_core.c disable_irq(ts->irq); ts 264 drivers/input/touchscreen/cyttsp_core.c static int cyttsp_act_dist_setup(struct cyttsp *ts) ts 266 drivers/input/touchscreen/cyttsp_core.c u8 act_dist_setup = ts->act_dist; ts 269 drivers/input/touchscreen/cyttsp_core.c return ttsp_write_block_data(ts, CY_REG_ACT_DIST, ts 298 drivers/input/touchscreen/cyttsp_core.c static void cyttsp_report_tchdata(struct cyttsp *ts) ts 300 drivers/input/touchscreen/cyttsp_core.c struct cyttsp_xydata *xy_data = &ts->xy_data; ts 301 drivers/input/touchscreen/cyttsp_core.c struct input_dev *input = ts->input; ts 311 drivers/input/touchscreen/cyttsp_core.c dev_dbg(ts->dev, "%s: Large area detected\n", __func__); ts 315 drivers/input/touchscreen/cyttsp_core.c dev_dbg(ts->dev, "%s: Num touch error detected\n", __func__); ts 319 drivers/input/touchscreen/cyttsp_core.c dev_dbg(ts->dev, "%s: Invalid buffer detected\n", __func__); ts 351 drivers/input/touchscreen/cyttsp_core.c struct cyttsp *ts = handle; ts 354 drivers/input/touchscreen/cyttsp_core.c if (unlikely(ts->state == CY_BL_STATE)) { ts 355 drivers/input/touchscreen/cyttsp_core.c complete(&ts->bl_ready); ts 360 drivers/input/touchscreen/cyttsp_core.c error = ttsp_read_block_data(ts, CY_REG_BASE, ts 361 drivers/input/touchscreen/cyttsp_core.c sizeof(struct cyttsp_xydata), &ts->xy_data); ts 366 drivers/input/touchscreen/cyttsp_core.c error = cyttsp_handshake(ts); ts 370 drivers/input/touchscreen/cyttsp_core.c if (unlikely(ts->state == CY_IDLE_STATE)) ts 373 drivers/input/touchscreen/cyttsp_core.c if (GET_BOOTLOADERMODE(ts->xy_data.tt_mode)) { ts 378 drivers/input/touchscreen/cyttsp_core.c error = cyttsp_exit_bl_mode(ts); ts 380 drivers/input/touchscreen/cyttsp_core.c dev_err(ts->dev, ts 383 drivers/input/touchscreen/cyttsp_core.c ts->state = CY_IDLE_STATE; ts 386 drivers/input/touchscreen/cyttsp_core.c cyttsp_report_tchdata(ts); ts 393 drivers/input/touchscreen/cyttsp_core.c static int cyttsp_power_on(struct cyttsp *ts) ts 397 drivers/input/touchscreen/cyttsp_core.c error = cyttsp_soft_reset(ts); ts 401 drivers/input/touchscreen/cyttsp_core.c error = cyttsp_load_bl_regs(ts); ts 405 drivers/input/touchscreen/cyttsp_core.c if (GET_BOOTLOADERMODE(ts->bl_data.bl_status) && ts 406 drivers/input/touchscreen/cyttsp_core.c IS_VALID_APP(ts->bl_data.bl_status)) { ts 407 drivers/input/touchscreen/cyttsp_core.c error = cyttsp_exit_bl_mode(ts); ts 412 drivers/input/touchscreen/cyttsp_core.c if (GET_HSTMODE(ts->bl_data.bl_file) != CY_OPERATE_MODE || ts 413 drivers/input/touchscreen/cyttsp_core.c IS_OPERATIONAL_ERR(ts->bl_data.bl_status)) { ts 417 drivers/input/touchscreen/cyttsp_core.c error = cyttsp_set_sysinfo_mode(ts); ts 421 drivers/input/touchscreen/cyttsp_core.c error = cyttsp_set_sysinfo_regs(ts); ts 425 drivers/input/touchscreen/cyttsp_core.c error = cyttsp_set_operational_mode(ts); ts 430 drivers/input/touchscreen/cyttsp_core.c error = cyttsp_act_dist_setup(ts); ts 434 drivers/input/touchscreen/cyttsp_core.c ts->state = CY_ACTIVE_STATE; ts 439 drivers/input/touchscreen/cyttsp_core.c static int cyttsp_enable(struct cyttsp *ts) ts 449 drivers/input/touchscreen/cyttsp_core.c error = ttsp_read_block_data(ts, CY_REG_BASE, ts 450 drivers/input/touchscreen/cyttsp_core.c sizeof(ts->xy_data), &ts->xy_data); ts 454 drivers/input/touchscreen/cyttsp_core.c if (GET_HSTMODE(ts->xy_data.hst_mode)) ts 457 drivers/input/touchscreen/cyttsp_core.c enable_irq(ts->irq); ts 462 drivers/input/touchscreen/cyttsp_core.c static int cyttsp_disable(struct cyttsp *ts) ts 466 drivers/input/touchscreen/cyttsp_core.c error = ttsp_send_command(ts, CY_LOW_POWER_MODE); ts 470 drivers/input/touchscreen/cyttsp_core.c disable_irq(ts->irq); ts 477 drivers/input/touchscreen/cyttsp_core.c struct cyttsp *ts = dev_get_drvdata(dev); ts 480 drivers/input/touchscreen/cyttsp_core.c mutex_lock(&ts->input->mutex); ts 482 drivers/input/touchscreen/cyttsp_core.c if (ts->input->users) { ts 483 drivers/input/touchscreen/cyttsp_core.c retval = cyttsp_disable(ts); ts 485 drivers/input/touchscreen/cyttsp_core.c ts->suspended = true; ts 488 drivers/input/touchscreen/cyttsp_core.c mutex_unlock(&ts->input->mutex); ts 495 drivers/input/touchscreen/cyttsp_core.c struct cyttsp *ts = dev_get_drvdata(dev); ts 497 drivers/input/touchscreen/cyttsp_core.c mutex_lock(&ts->input->mutex); ts 499 drivers/input/touchscreen/cyttsp_core.c if (ts->input->users) ts 500 drivers/input/touchscreen/cyttsp_core.c cyttsp_enable(ts); ts 502 drivers/input/touchscreen/cyttsp_core.c ts->suspended = false; ts 504 drivers/input/touchscreen/cyttsp_core.c mutex_unlock(&ts->input->mutex); ts 514 drivers/input/touchscreen/cyttsp_core.c struct cyttsp *ts = input_get_drvdata(dev); ts 517 drivers/input/touchscreen/cyttsp_core.c if (!ts->suspended) ts 518 drivers/input/touchscreen/cyttsp_core.c retval = cyttsp_enable(ts); ts 525 drivers/input/touchscreen/cyttsp_core.c struct cyttsp *ts = input_get_drvdata(dev); ts 527 drivers/input/touchscreen/cyttsp_core.c if (!ts->suspended) ts 528 drivers/input/touchscreen/cyttsp_core.c cyttsp_disable(ts); ts 531 drivers/input/touchscreen/cyttsp_core.c static int cyttsp_parse_properties(struct cyttsp *ts) ts 533 drivers/input/touchscreen/cyttsp_core.c struct device *dev = ts->dev; ts 537 drivers/input/touchscreen/cyttsp_core.c ts->bl_keys = devm_kzalloc(dev, CY_NUM_BL_KEYS, GFP_KERNEL); ts 538 drivers/input/touchscreen/cyttsp_core.c if (!ts->bl_keys) ts 542 drivers/input/touchscreen/cyttsp_core.c ts->use_hndshk = false; ts 543 drivers/input/touchscreen/cyttsp_core.c ts->act_dist = CY_ACT_DIST_DFLT; ts 544 drivers/input/touchscreen/cyttsp_core.c ts->act_intrvl = CY_ACT_INTRVL_DFLT; ts 545 drivers/input/touchscreen/cyttsp_core.c ts->tch_tmout = CY_TCH_TMOUT_DFLT; ts 546 drivers/input/touchscreen/cyttsp_core.c ts->lp_intrvl = CY_LP_INTRVL_DFLT; ts 549 drivers/input/touchscreen/cyttsp_core.c ts->bl_keys, CY_NUM_BL_KEYS); ts 556 drivers/input/touchscreen/cyttsp_core.c ts->use_hndshk = device_property_present(dev, "use-handshake"); ts 564 drivers/input/touchscreen/cyttsp_core.c ts->act_dist &= ~CY_ACT_DIST_MASK; ts 565 drivers/input/touchscreen/cyttsp_core.c ts->act_dist |= dt_value; ts 574 drivers/input/touchscreen/cyttsp_core.c ts->act_intrvl = dt_value; ts 584 drivers/input/touchscreen/cyttsp_core.c ts->lp_intrvl = dt_value / 10; ts 594 drivers/input/touchscreen/cyttsp_core.c ts->tch_tmout = dt_value / 10; ts 603 drivers/input/touchscreen/cyttsp_core.c struct cyttsp *ts; ts 607 drivers/input/touchscreen/cyttsp_core.c ts = devm_kzalloc(dev, sizeof(*ts) + xfer_buf_size, GFP_KERNEL); ts 608 drivers/input/touchscreen/cyttsp_core.c if (!ts) ts 615 drivers/input/touchscreen/cyttsp_core.c ts->dev = dev; ts 616 drivers/input/touchscreen/cyttsp_core.c ts->input = input_dev; ts 617 drivers/input/touchscreen/cyttsp_core.c ts->bus_ops = bus_ops; ts 618 drivers/input/touchscreen/cyttsp_core.c ts->irq = irq; ts 620 drivers/input/touchscreen/cyttsp_core.c ts->reset_gpio = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_LOW); ts 621 drivers/input/touchscreen/cyttsp_core.c if (IS_ERR(ts->reset_gpio)) { ts 622 drivers/input/touchscreen/cyttsp_core.c error = PTR_ERR(ts->reset_gpio); ts 627 drivers/input/touchscreen/cyttsp_core.c error = cyttsp_parse_properties(ts); ts 631 drivers/input/touchscreen/cyttsp_core.c init_completion(&ts->bl_ready); ts 632 drivers/input/touchscreen/cyttsp_core.c snprintf(ts->phys, sizeof(ts->phys), "%s/input0", dev_name(dev)); ts 635 drivers/input/touchscreen/cyttsp_core.c input_dev->phys = ts->phys; ts 637 drivers/input/touchscreen/cyttsp_core.c input_dev->dev.parent = ts->dev; ts 642 drivers/input/touchscreen/cyttsp_core.c input_set_drvdata(input_dev, ts); ts 654 drivers/input/touchscreen/cyttsp_core.c error = devm_request_threaded_irq(dev, ts->irq, NULL, cyttsp_irq, ts 656 drivers/input/touchscreen/cyttsp_core.c "cyttsp", ts); ts 658 drivers/input/touchscreen/cyttsp_core.c dev_err(ts->dev, "failed to request IRQ %d, err: %d\n", ts 659 drivers/input/touchscreen/cyttsp_core.c ts->irq, error); ts 663 drivers/input/touchscreen/cyttsp_core.c disable_irq(ts->irq); ts 665 drivers/input/touchscreen/cyttsp_core.c cyttsp_hard_reset(ts); ts 667 drivers/input/touchscreen/cyttsp_core.c error = cyttsp_power_on(ts); ts 673 drivers/input/touchscreen/cyttsp_core.c dev_err(ts->dev, "failed to register input device: %d\n", ts 678 drivers/input/touchscreen/cyttsp_core.c return ts; ts 32 drivers/input/touchscreen/cyttsp_i2c.c struct cyttsp *ts; ts 39 drivers/input/touchscreen/cyttsp_i2c.c ts = cyttsp_probe(&cyttsp_i2c_bus_ops, &client->dev, client->irq, ts 42 drivers/input/touchscreen/cyttsp_i2c.c if (IS_ERR(ts)) ts 43 drivers/input/touchscreen/cyttsp_i2c.c return PTR_ERR(ts); ts 45 drivers/input/touchscreen/cyttsp_i2c.c i2c_set_clientdata(client, ts); ts 140 drivers/input/touchscreen/cyttsp_spi.c struct cyttsp *ts; ts 153 drivers/input/touchscreen/cyttsp_spi.c ts = cyttsp_probe(&cyttsp_spi_bus_ops, &spi->dev, spi->irq, ts 155 drivers/input/touchscreen/cyttsp_spi.c if (IS_ERR(ts)) ts 156 drivers/input/touchscreen/cyttsp_spi.c return PTR_ERR(ts); ts 158 drivers/input/touchscreen/cyttsp_spi.c spi_set_drvdata(spi, ts); ts 66 drivers/input/touchscreen/egalax_ts.c struct egalax_ts *ts = dev_id; ts 67 drivers/input/touchscreen/egalax_ts.c struct input_dev *input_dev = ts->input_dev; ts 68 drivers/input/touchscreen/egalax_ts.c struct i2c_client *client = ts->client; ts 167 drivers/input/touchscreen/egalax_ts.c struct egalax_ts *ts; ts 171 drivers/input/touchscreen/egalax_ts.c ts = devm_kzalloc(&client->dev, sizeof(struct egalax_ts), GFP_KERNEL); ts 172 drivers/input/touchscreen/egalax_ts.c if (!ts) { ts 183 drivers/input/touchscreen/egalax_ts.c ts->client = client; ts 184 drivers/input/touchscreen/egalax_ts.c ts->input_dev = input_dev; ts 217 drivers/input/touchscreen/egalax_ts.c "egalax_ts", ts); ts 223 drivers/input/touchscreen/egalax_ts.c error = input_register_device(ts->input_dev); ts 69 drivers/input/touchscreen/ektf2127.c static void ektf2127_report_event(struct ektf2127_ts *ts, const u8 *buf) ts 77 drivers/input/touchscreen/ektf2127.c dev_err(&ts->client->dev, ts 84 drivers/input/touchscreen/ektf2127.c input_mt_assign_slots(ts->input, slots, touches, ts 88 drivers/input/touchscreen/ektf2127.c input_mt_slot(ts->input, slots[i]); ts 89 drivers/input/touchscreen/ektf2127.c input_mt_report_slot_state(ts->input, MT_TOOL_FINGER, true); ts 90 drivers/input/touchscreen/ektf2127.c touchscreen_report_pos(ts->input, &ts->prop, ts 94 drivers/input/touchscreen/ektf2127.c input_mt_sync_frame(ts->input); ts 95 drivers/input/touchscreen/ektf2127.c input_sync(ts->input); ts 100 drivers/input/touchscreen/ektf2127.c struct ektf2127_ts *ts = dev_id; ts 101 drivers/input/touchscreen/ektf2127.c struct device *dev = &ts->client->dev; ts 105 drivers/input/touchscreen/ektf2127.c ret = i2c_master_recv(ts->client, buf, EKTF2127_TOUCH_REPORT_SIZE); ts 113 drivers/input/touchscreen/ektf2127.c ektf2127_report_event(ts, buf); ts 136 drivers/input/touchscreen/ektf2127.c struct ektf2127_ts *ts = input_get_drvdata(dev); ts 138 drivers/input/touchscreen/ektf2127.c enable_irq(ts->client->irq); ts 139 drivers/input/touchscreen/ektf2127.c gpiod_set_value_cansleep(ts->power_gpios, 1); ts 146 drivers/input/touchscreen/ektf2127.c struct ektf2127_ts *ts = input_get_drvdata(dev); ts 148 drivers/input/touchscreen/ektf2127.c disable_irq(ts->client->irq); ts 149 drivers/input/touchscreen/ektf2127.c gpiod_set_value_cansleep(ts->power_gpios, 0); ts 154 drivers/input/touchscreen/ektf2127.c struct ektf2127_ts *ts = i2c_get_clientdata(to_i2c_client(dev)); ts 156 drivers/input/touchscreen/ektf2127.c mutex_lock(&ts->input->mutex); ts 157 drivers/input/touchscreen/ektf2127.c if (ts->input->users) ts 158 drivers/input/touchscreen/ektf2127.c ektf2127_stop(ts->input); ts 159 drivers/input/touchscreen/ektf2127.c mutex_unlock(&ts->input->mutex); ts 166 drivers/input/touchscreen/ektf2127.c struct ektf2127_ts *ts = i2c_get_clientdata(to_i2c_client(dev)); ts 168 drivers/input/touchscreen/ektf2127.c mutex_lock(&ts->input->mutex); ts 169 drivers/input/touchscreen/ektf2127.c if (ts->input->users) ts 170 drivers/input/touchscreen/ektf2127.c ektf2127_start(ts->input); ts 171 drivers/input/touchscreen/ektf2127.c mutex_unlock(&ts->input->mutex); ts 223 drivers/input/touchscreen/ektf2127.c struct ektf2127_ts *ts; ts 234 drivers/input/touchscreen/ektf2127.c ts = devm_kzalloc(dev, sizeof(*ts), GFP_KERNEL); ts 235 drivers/input/touchscreen/ektf2127.c if (!ts) ts 239 drivers/input/touchscreen/ektf2127.c ts->power_gpios = devm_gpiod_get(dev, "power", GPIOD_OUT_HIGH); ts 240 drivers/input/touchscreen/ektf2127.c if (IS_ERR(ts->power_gpios)) { ts 241 drivers/input/touchscreen/ektf2127.c error = PTR_ERR(ts->power_gpios); ts 256 drivers/input/touchscreen/ektf2127.c ts->client = client; ts 260 drivers/input/touchscreen/ektf2127.c i2c_master_recv(ts->client, buf, sizeof(buf)); ts 273 drivers/input/touchscreen/ektf2127.c touchscreen_parse_properties(input, true, &ts->prop); ts 282 drivers/input/touchscreen/ektf2127.c ts->input = input; ts 283 drivers/input/touchscreen/ektf2127.c input_set_drvdata(input, ts); ts 287 drivers/input/touchscreen/ektf2127.c IRQF_ONESHOT, client->name, ts); ts 294 drivers/input/touchscreen/ektf2127.c ektf2127_stop(ts->input); ts 300 drivers/input/touchscreen/ektf2127.c i2c_set_clientdata(client, ts); ts 230 drivers/input/touchscreen/elants_i2c.c static int elants_i2c_calibrate(struct elants_data *ts) ts 232 drivers/input/touchscreen/elants_i2c.c struct i2c_client *client = ts->client; ts 240 drivers/input/touchscreen/elants_i2c.c ts->state = ELAN_WAIT_RECALIBRATION; ts 241 drivers/input/touchscreen/elants_i2c.c reinit_completion(&ts->cmd_done); ts 248 drivers/input/touchscreen/elants_i2c.c ret = wait_for_completion_interruptible_timeout(&ts->cmd_done, ts 251 drivers/input/touchscreen/elants_i2c.c ts->state = ELAN_STATE_NORMAL; ts 261 drivers/input/touchscreen/elants_i2c.c if (memcmp(rek_resp, ts->cmd_resp, sizeof(rek_resp))) { ts 264 drivers/input/touchscreen/elants_i2c.c (int)sizeof(ts->cmd_resp), ts->cmd_resp); ts 297 drivers/input/touchscreen/elants_i2c.c static int elants_i2c_query_hw_version(struct elants_data *ts) ts 299 drivers/input/touchscreen/elants_i2c.c struct i2c_client *client = ts->client; ts 308 drivers/input/touchscreen/elants_i2c.c ts->hw_version = elants_i2c_parse_version(resp); ts 309 drivers/input/touchscreen/elants_i2c.c if (ts->hw_version != 0xffff) ts 323 drivers/input/touchscreen/elants_i2c.c dev_err(&client->dev, "Invalid fw id: %#04x\n", ts->hw_version); ts 328 drivers/input/touchscreen/elants_i2c.c static int elants_i2c_query_fw_version(struct elants_data *ts) ts 330 drivers/input/touchscreen/elants_i2c.c struct i2c_client *client = ts->client; ts 339 drivers/input/touchscreen/elants_i2c.c ts->fw_version = elants_i2c_parse_version(resp); ts 340 drivers/input/touchscreen/elants_i2c.c if (ts->fw_version != 0x0000 && ts 341 drivers/input/touchscreen/elants_i2c.c ts->fw_version != 0xffff) ts 355 drivers/input/touchscreen/elants_i2c.c static int elants_i2c_query_test_version(struct elants_data *ts) ts 357 drivers/input/touchscreen/elants_i2c.c struct i2c_client *client = ts->client; ts 368 drivers/input/touchscreen/elants_i2c.c ts->test_version = version >> 8; ts 369 drivers/input/touchscreen/elants_i2c.c ts->solution_version = version & 0xff; ts 384 drivers/input/touchscreen/elants_i2c.c static int elants_i2c_query_bc_version(struct elants_data *ts) ts 386 drivers/input/touchscreen/elants_i2c.c struct i2c_client *client = ts->client; ts 402 drivers/input/touchscreen/elants_i2c.c ts->bc_version = version >> 8; ts 403 drivers/input/touchscreen/elants_i2c.c ts->iap_version = version & 0xff; ts 408 drivers/input/touchscreen/elants_i2c.c static int elants_i2c_query_ts_info(struct elants_data *ts) ts 410 drivers/input/touchscreen/elants_i2c.c struct i2c_client *client = ts->client; ts 485 drivers/input/touchscreen/elants_i2c.c ts->x_max = ELAN_TS_RESOLUTION(rows, osr); ts 486 drivers/input/touchscreen/elants_i2c.c ts->x_res = DIV_ROUND_CLOSEST(ts->x_max, phy_x); ts 487 drivers/input/touchscreen/elants_i2c.c ts->y_max = ELAN_TS_RESOLUTION(cols, osr); ts 488 drivers/input/touchscreen/elants_i2c.c ts->y_res = DIV_ROUND_CLOSEST(ts->y_max, phy_y); ts 509 drivers/input/touchscreen/elants_i2c.c static int elants_i2c_initialize(struct elants_data *ts) ts 511 drivers/input/touchscreen/elants_i2c.c struct i2c_client *client = ts->client; ts 540 drivers/input/touchscreen/elants_i2c.c ts->iap_mode = ELAN_IAP_OPERATIONAL; ts 558 drivers/input/touchscreen/elants_i2c.c error2 = elants_i2c_query_hw_version(ts); ts 563 drivers/input/touchscreen/elants_i2c.c error = elants_i2c_query_fw_version(ts); ts 565 drivers/input/touchscreen/elants_i2c.c error = elants_i2c_query_test_version(ts); ts 567 drivers/input/touchscreen/elants_i2c.c error = elants_i2c_query_bc_version(ts); ts 569 drivers/input/touchscreen/elants_i2c.c error = elants_i2c_query_ts_info(ts); ts 572 drivers/input/touchscreen/elants_i2c.c ts->iap_mode = ELAN_IAP_RECOVERY; ts 716 drivers/input/touchscreen/elants_i2c.c static int elants_i2c_fw_update(struct elants_data *ts) ts 718 drivers/input/touchscreen/elants_i2c.c struct i2c_client *client = ts->client; ts 723 drivers/input/touchscreen/elants_i2c.c fw_name = kasprintf(GFP_KERNEL, "elants_i2c_%04x.bin", ts->hw_version); ts 746 drivers/input/touchscreen/elants_i2c.c ts->iap_mode == ELAN_IAP_RECOVERY); ts 749 drivers/input/touchscreen/elants_i2c.c ts->iap_mode = ELAN_IAP_RECOVERY; ts 753 drivers/input/touchscreen/elants_i2c.c error = elants_i2c_initialize(ts); ts 758 drivers/input/touchscreen/elants_i2c.c ts->iap_mode = ELAN_IAP_RECOVERY; ts 762 drivers/input/touchscreen/elants_i2c.c ts->iap_mode = ELAN_IAP_OPERATIONAL; ts 765 drivers/input/touchscreen/elants_i2c.c ts->state = ELAN_STATE_NORMAL; ts 770 drivers/input/touchscreen/elants_i2c.c elants_i2c_calibrate(ts); ts 780 drivers/input/touchscreen/elants_i2c.c static void elants_i2c_mt_event(struct elants_data *ts, u8 *buf) ts 782 drivers/input/touchscreen/elants_i2c.c struct input_dev *input = ts->input; ts 791 drivers/input/touchscreen/elants_i2c.c dev_dbg(&ts->client->dev, ts 805 drivers/input/touchscreen/elants_i2c.c dev_dbg(&ts->client->dev, "i=%d x=%d y=%d p=%d w=%d\n", ts 836 drivers/input/touchscreen/elants_i2c.c static void elants_i2c_event(struct elants_data *ts, u8 *buf) ts 841 drivers/input/touchscreen/elants_i2c.c dev_warn(&ts->client->dev, ts 846 drivers/input/touchscreen/elants_i2c.c dev_warn(&ts->client->dev, ts 850 drivers/input/touchscreen/elants_i2c.c elants_i2c_mt_event(ts, buf); ts 856 drivers/input/touchscreen/elants_i2c.c struct elants_data *ts = _dev; ts 857 drivers/input/touchscreen/elants_i2c.c struct i2c_client *client = ts->client; ts 862 drivers/input/touchscreen/elants_i2c.c len = i2c_master_recv_dmasafe(client, ts->buf, sizeof(ts->buf)); ts 870 drivers/input/touchscreen/elants_i2c.c __func__, HEADER_SIZE, ts->buf); ts 872 drivers/input/touchscreen/elants_i2c.c switch (ts->state) { ts 874 drivers/input/touchscreen/elants_i2c.c if (ts->buf[FW_HDR_TYPE] == CMD_HEADER_REK) { ts 875 drivers/input/touchscreen/elants_i2c.c memcpy(ts->cmd_resp, ts->buf, sizeof(ts->cmd_resp)); ts 876 drivers/input/touchscreen/elants_i2c.c complete(&ts->cmd_done); ts 877 drivers/input/touchscreen/elants_i2c.c ts->state = ELAN_STATE_NORMAL; ts 882 drivers/input/touchscreen/elants_i2c.c if (ts->buf[FW_HDR_TYPE] != QUEUE_HEADER_NORMAL) ts 885 drivers/input/touchscreen/elants_i2c.c ts->state = ELAN_STATE_NORMAL; ts 890 drivers/input/touchscreen/elants_i2c.c switch (ts->buf[FW_HDR_TYPE]) { ts 897 drivers/input/touchscreen/elants_i2c.c if (memcmp(ts->buf, wait_packet, sizeof(wait_packet))) { ts 900 drivers/input/touchscreen/elants_i2c.c HEADER_SIZE, ts->buf); ts 902 drivers/input/touchscreen/elants_i2c.c ts->state = ELAN_WAIT_QUEUE_HEADER; ts 908 drivers/input/touchscreen/elants_i2c.c elants_i2c_event(ts, &ts->buf[HEADER_SIZE]); ts 912 drivers/input/touchscreen/elants_i2c.c report_count = ts->buf[FW_HDR_COUNT]; ts 916 drivers/input/touchscreen/elants_i2c.c HEADER_SIZE, ts->buf); ts 920 drivers/input/touchscreen/elants_i2c.c report_len = ts->buf[FW_HDR_LENGTH] / report_count; ts 924 drivers/input/touchscreen/elants_i2c.c HEADER_SIZE, ts->buf); ts 929 drivers/input/touchscreen/elants_i2c.c u8 *buf = ts->buf + HEADER_SIZE + ts 931 drivers/input/touchscreen/elants_i2c.c elants_i2c_event(ts, buf); ts 937 drivers/input/touchscreen/elants_i2c.c HEADER_SIZE, ts->buf); ts 955 drivers/input/touchscreen/elants_i2c.c struct elants_data *ts = i2c_get_clientdata(client); ts 958 drivers/input/touchscreen/elants_i2c.c error = mutex_lock_interruptible(&ts->sysfs_mutex); ts 962 drivers/input/touchscreen/elants_i2c.c error = elants_i2c_calibrate(ts); ts 964 drivers/input/touchscreen/elants_i2c.c mutex_unlock(&ts->sysfs_mutex); ts 973 drivers/input/touchscreen/elants_i2c.c struct elants_data *ts = i2c_get_clientdata(client); ts 976 drivers/input/touchscreen/elants_i2c.c error = mutex_lock_interruptible(&ts->sysfs_mutex); ts 980 drivers/input/touchscreen/elants_i2c.c error = elants_i2c_fw_update(ts); ts 983 drivers/input/touchscreen/elants_i2c.c mutex_unlock(&ts->sysfs_mutex); ts 991 drivers/input/touchscreen/elants_i2c.c struct elants_data *ts = i2c_get_clientdata(client); ts 994 drivers/input/touchscreen/elants_i2c.c ts->iap_mode == ELAN_IAP_OPERATIONAL ? ts 1026 drivers/input/touchscreen/elants_i2c.c struct elants_data *ts = i2c_get_clientdata(client); ts 1029 drivers/input/touchscreen/elants_i2c.c u8 *field = (u8 *)((char *)ts + attr->field_offset); ts 1069 drivers/input/touchscreen/elants_i2c.c static int elants_i2c_power_on(struct elants_data *ts) ts 1077 drivers/input/touchscreen/elants_i2c.c if (IS_ERR_OR_NULL(ts->reset_gpio)) ts 1080 drivers/input/touchscreen/elants_i2c.c gpiod_set_value_cansleep(ts->reset_gpio, 1); ts 1082 drivers/input/touchscreen/elants_i2c.c error = regulator_enable(ts->vcc33); ts 1084 drivers/input/touchscreen/elants_i2c.c dev_err(&ts->client->dev, ts 1090 drivers/input/touchscreen/elants_i2c.c error = regulator_enable(ts->vccio); ts 1092 drivers/input/touchscreen/elants_i2c.c dev_err(&ts->client->dev, ts 1095 drivers/input/touchscreen/elants_i2c.c regulator_disable(ts->vcc33); ts 1106 drivers/input/touchscreen/elants_i2c.c gpiod_set_value_cansleep(ts->reset_gpio, 0); ts 1117 drivers/input/touchscreen/elants_i2c.c struct elants_data *ts = _data; ts 1119 drivers/input/touchscreen/elants_i2c.c if (!IS_ERR_OR_NULL(ts->reset_gpio)) { ts 1124 drivers/input/touchscreen/elants_i2c.c gpiod_set_value_cansleep(ts->reset_gpio, 1); ts 1125 drivers/input/touchscreen/elants_i2c.c regulator_disable(ts->vccio); ts 1126 drivers/input/touchscreen/elants_i2c.c regulator_disable(ts->vcc33); ts 1134 drivers/input/touchscreen/elants_i2c.c struct elants_data *ts; ts 1144 drivers/input/touchscreen/elants_i2c.c ts = devm_kzalloc(&client->dev, sizeof(struct elants_data), GFP_KERNEL); ts 1145 drivers/input/touchscreen/elants_i2c.c if (!ts) ts 1148 drivers/input/touchscreen/elants_i2c.c mutex_init(&ts->sysfs_mutex); ts 1149 drivers/input/touchscreen/elants_i2c.c init_completion(&ts->cmd_done); ts 1151 drivers/input/touchscreen/elants_i2c.c ts->client = client; ts 1152 drivers/input/touchscreen/elants_i2c.c i2c_set_clientdata(client, ts); ts 1154 drivers/input/touchscreen/elants_i2c.c ts->vcc33 = devm_regulator_get(&client->dev, "vcc33"); ts 1155 drivers/input/touchscreen/elants_i2c.c if (IS_ERR(ts->vcc33)) { ts 1156 drivers/input/touchscreen/elants_i2c.c error = PTR_ERR(ts->vcc33); ts 1164 drivers/input/touchscreen/elants_i2c.c ts->vccio = devm_regulator_get(&client->dev, "vccio"); ts 1165 drivers/input/touchscreen/elants_i2c.c if (IS_ERR(ts->vccio)) { ts 1166 drivers/input/touchscreen/elants_i2c.c error = PTR_ERR(ts->vccio); ts 1174 drivers/input/touchscreen/elants_i2c.c ts->reset_gpio = devm_gpiod_get(&client->dev, "reset", GPIOD_OUT_LOW); ts 1175 drivers/input/touchscreen/elants_i2c.c if (IS_ERR(ts->reset_gpio)) { ts 1176 drivers/input/touchscreen/elants_i2c.c error = PTR_ERR(ts->reset_gpio); ts 1188 drivers/input/touchscreen/elants_i2c.c ts->keep_power_in_suspend = true; ts 1191 drivers/input/touchscreen/elants_i2c.c error = elants_i2c_power_on(ts); ts 1195 drivers/input/touchscreen/elants_i2c.c error = devm_add_action(&client->dev, elants_i2c_power_off, ts); ts 1199 drivers/input/touchscreen/elants_i2c.c elants_i2c_power_off(ts); ts 1210 drivers/input/touchscreen/elants_i2c.c error = elants_i2c_initialize(ts); ts 1216 drivers/input/touchscreen/elants_i2c.c ts->input = devm_input_allocate_device(&client->dev); ts 1217 drivers/input/touchscreen/elants_i2c.c if (!ts->input) { ts 1222 drivers/input/touchscreen/elants_i2c.c ts->input->name = "Elan Touchscreen"; ts 1223 drivers/input/touchscreen/elants_i2c.c ts->input->id.bustype = BUS_I2C; ts 1225 drivers/input/touchscreen/elants_i2c.c __set_bit(BTN_TOUCH, ts->input->keybit); ts 1226 drivers/input/touchscreen/elants_i2c.c __set_bit(EV_ABS, ts->input->evbit); ts 1227 drivers/input/touchscreen/elants_i2c.c __set_bit(EV_KEY, ts->input->evbit); ts 1230 drivers/input/touchscreen/elants_i2c.c input_set_abs_params(ts->input, ABS_X, 0, ts->x_max, 0, 0); ts 1231 drivers/input/touchscreen/elants_i2c.c input_set_abs_params(ts->input, ABS_Y, 0, ts->y_max, 0, 0); ts 1232 drivers/input/touchscreen/elants_i2c.c input_set_abs_params(ts->input, ABS_PRESSURE, 0, 255, 0, 0); ts 1233 drivers/input/touchscreen/elants_i2c.c input_abs_set_res(ts->input, ABS_X, ts->x_res); ts 1234 drivers/input/touchscreen/elants_i2c.c input_abs_set_res(ts->input, ABS_Y, ts->y_res); ts 1237 drivers/input/touchscreen/elants_i2c.c error = input_mt_init_slots(ts->input, MAX_CONTACT_NUM, ts 1245 drivers/input/touchscreen/elants_i2c.c input_set_abs_params(ts->input, ABS_MT_POSITION_X, 0, ts->x_max, 0, 0); ts 1246 drivers/input/touchscreen/elants_i2c.c input_set_abs_params(ts->input, ABS_MT_POSITION_Y, 0, ts->y_max, 0, 0); ts 1247 drivers/input/touchscreen/elants_i2c.c input_set_abs_params(ts->input, ABS_MT_TOUCH_MAJOR, 0, 255, 0, 0); ts 1248 drivers/input/touchscreen/elants_i2c.c input_set_abs_params(ts->input, ABS_MT_PRESSURE, 0, 255, 0, 0); ts 1249 drivers/input/touchscreen/elants_i2c.c input_abs_set_res(ts->input, ABS_MT_POSITION_X, ts->x_res); ts 1250 drivers/input/touchscreen/elants_i2c.c input_abs_set_res(ts->input, ABS_MT_POSITION_Y, ts->y_res); ts 1252 drivers/input/touchscreen/elants_i2c.c error = input_register_device(ts->input); ts 1271 drivers/input/touchscreen/elants_i2c.c client->name, ts); ts 1297 drivers/input/touchscreen/elants_i2c.c struct elants_data *ts = i2c_get_clientdata(client); ts 1303 drivers/input/touchscreen/elants_i2c.c if (ts->iap_mode != ELAN_IAP_OPERATIONAL) ts 1313 drivers/input/touchscreen/elants_i2c.c ts->wake_irq_enabled = (enable_irq_wake(client->irq) == 0); ts 1314 drivers/input/touchscreen/elants_i2c.c } else if (ts->keep_power_in_suspend) { ts 1325 drivers/input/touchscreen/elants_i2c.c elants_i2c_power_off(ts); ts 1334 drivers/input/touchscreen/elants_i2c.c struct elants_data *ts = i2c_get_clientdata(client); ts 1340 drivers/input/touchscreen/elants_i2c.c if (ts->wake_irq_enabled) ts 1343 drivers/input/touchscreen/elants_i2c.c } else if (ts->keep_power_in_suspend) { ts 1354 drivers/input/touchscreen/elants_i2c.c elants_i2c_power_on(ts); ts 1355 drivers/input/touchscreen/elants_i2c.c elants_i2c_initialize(ts); ts 1358 drivers/input/touchscreen/elants_i2c.c ts->state = ELAN_STATE_NORMAL; ts 89 drivers/input/touchscreen/goodix.c static int goodix_check_cfg_8(struct goodix_ts_data *ts, ts 91 drivers/input/touchscreen/goodix.c static int goodix_check_cfg_16(struct goodix_ts_data *ts, ts 262 drivers/input/touchscreen/goodix.c static int goodix_ts_read_input_report(struct goodix_ts_data *ts, u8 *data) ts 275 drivers/input/touchscreen/goodix.c error = goodix_i2c_read(ts->client, GOODIX_READ_COOR_ADDR, ts 276 drivers/input/touchscreen/goodix.c data, ts->contact_size + 1); ts 278 drivers/input/touchscreen/goodix.c dev_err(&ts->client->dev, "I2C transfer error: %d\n", ts 285 drivers/input/touchscreen/goodix.c if (touch_num > ts->max_touch_num) ts 289 drivers/input/touchscreen/goodix.c data += 1 + ts->contact_size; ts 290 drivers/input/touchscreen/goodix.c error = goodix_i2c_read(ts->client, ts 292 drivers/input/touchscreen/goodix.c 1 + ts->contact_size, ts 294 drivers/input/touchscreen/goodix.c ts->contact_size * ts 313 drivers/input/touchscreen/goodix.c static void goodix_ts_report_touch_8b(struct goodix_ts_data *ts, u8 *coor_data) ts 320 drivers/input/touchscreen/goodix.c input_mt_slot(ts->input_dev, id); ts 321 drivers/input/touchscreen/goodix.c input_mt_report_slot_state(ts->input_dev, MT_TOOL_FINGER, true); ts 322 drivers/input/touchscreen/goodix.c touchscreen_report_pos(ts->input_dev, &ts->prop, ts 324 drivers/input/touchscreen/goodix.c input_report_abs(ts->input_dev, ABS_MT_TOUCH_MAJOR, input_w); ts 325 drivers/input/touchscreen/goodix.c input_report_abs(ts->input_dev, ABS_MT_WIDTH_MAJOR, input_w); ts 328 drivers/input/touchscreen/goodix.c static void goodix_ts_report_touch_9b(struct goodix_ts_data *ts, u8 *coor_data) ts 335 drivers/input/touchscreen/goodix.c input_mt_slot(ts->input_dev, id); ts 336 drivers/input/touchscreen/goodix.c input_mt_report_slot_state(ts->input_dev, MT_TOOL_FINGER, true); ts 337 drivers/input/touchscreen/goodix.c touchscreen_report_pos(ts->input_dev, &ts->prop, ts 339 drivers/input/touchscreen/goodix.c input_report_abs(ts->input_dev, ABS_MT_TOUCH_MAJOR, input_w); ts 340 drivers/input/touchscreen/goodix.c input_report_abs(ts->input_dev, ABS_MT_WIDTH_MAJOR, input_w); ts 351 drivers/input/touchscreen/goodix.c static void goodix_process_events(struct goodix_ts_data *ts) ts 357 drivers/input/touchscreen/goodix.c touch_num = goodix_ts_read_input_report(ts, point_data); ts 365 drivers/input/touchscreen/goodix.c input_report_key(ts->input_dev, KEY_LEFTMETA, point_data[0] & BIT(4)); ts 368 drivers/input/touchscreen/goodix.c if (ts->contact_size == 9) ts 369 drivers/input/touchscreen/goodix.c goodix_ts_report_touch_9b(ts, ts 370 drivers/input/touchscreen/goodix.c &point_data[1 + ts->contact_size * i]); ts 372 drivers/input/touchscreen/goodix.c goodix_ts_report_touch_8b(ts, ts 373 drivers/input/touchscreen/goodix.c &point_data[1 + ts->contact_size * i]); ts 375 drivers/input/touchscreen/goodix.c input_mt_sync_frame(ts->input_dev); ts 376 drivers/input/touchscreen/goodix.c input_sync(ts->input_dev); ts 387 drivers/input/touchscreen/goodix.c struct goodix_ts_data *ts = dev_id; ts 389 drivers/input/touchscreen/goodix.c goodix_process_events(ts); ts 391 drivers/input/touchscreen/goodix.c if (goodix_i2c_write_u8(ts->client, GOODIX_READ_COOR_ADDR, 0) < 0) ts 392 drivers/input/touchscreen/goodix.c dev_err(&ts->client->dev, "I2C write end_cmd error\n"); ts 397 drivers/input/touchscreen/goodix.c static void goodix_free_irq(struct goodix_ts_data *ts) ts 399 drivers/input/touchscreen/goodix.c devm_free_irq(&ts->client->dev, ts->client->irq, ts); ts 402 drivers/input/touchscreen/goodix.c static int goodix_request_irq(struct goodix_ts_data *ts) ts 404 drivers/input/touchscreen/goodix.c return devm_request_threaded_irq(&ts->client->dev, ts->client->irq, ts 406 drivers/input/touchscreen/goodix.c ts->irq_flags, ts->client->name, ts); ts 409 drivers/input/touchscreen/goodix.c static int goodix_check_cfg_8(struct goodix_ts_data *ts, ts 419 drivers/input/touchscreen/goodix.c dev_err(&ts->client->dev, ts 425 drivers/input/touchscreen/goodix.c dev_err(&ts->client->dev, ts 433 drivers/input/touchscreen/goodix.c static int goodix_check_cfg_16(struct goodix_ts_data *ts, ts 443 drivers/input/touchscreen/goodix.c dev_err(&ts->client->dev, ts 449 drivers/input/touchscreen/goodix.c dev_err(&ts->client->dev, ts 463 drivers/input/touchscreen/goodix.c static int goodix_check_cfg(struct goodix_ts_data *ts, ts 467 drivers/input/touchscreen/goodix.c dev_err(&ts->client->dev, ts 472 drivers/input/touchscreen/goodix.c return ts->chip->check_config(ts, cfg); ts 481 drivers/input/touchscreen/goodix.c static int goodix_send_cfg(struct goodix_ts_data *ts, ts 486 drivers/input/touchscreen/goodix.c error = goodix_check_cfg(ts, cfg); ts 490 drivers/input/touchscreen/goodix.c error = goodix_i2c_write(ts->client, ts->chip->config_addr, cfg->data, ts 493 drivers/input/touchscreen/goodix.c dev_err(&ts->client->dev, "Failed to write config data: %d", ts 497 drivers/input/touchscreen/goodix.c dev_dbg(&ts->client->dev, "Config sent successfully."); ts 505 drivers/input/touchscreen/goodix.c static int goodix_int_sync(struct goodix_ts_data *ts) ts 509 drivers/input/touchscreen/goodix.c error = gpiod_direction_output(ts->gpiod_int, 0); ts 515 drivers/input/touchscreen/goodix.c error = gpiod_direction_input(ts->gpiod_int); ts 527 drivers/input/touchscreen/goodix.c static int goodix_reset(struct goodix_ts_data *ts) ts 532 drivers/input/touchscreen/goodix.c error = gpiod_direction_output(ts->gpiod_rst, 0); ts 539 drivers/input/touchscreen/goodix.c error = gpiod_direction_output(ts->gpiod_int, ts->client->addr == 0x14); ts 545 drivers/input/touchscreen/goodix.c error = gpiod_direction_output(ts->gpiod_rst, 1); ts 552 drivers/input/touchscreen/goodix.c error = gpiod_direction_input(ts->gpiod_rst); ts 556 drivers/input/touchscreen/goodix.c error = goodix_int_sync(ts); ts 568 drivers/input/touchscreen/goodix.c static int goodix_get_gpio_config(struct goodix_ts_data *ts) ts 574 drivers/input/touchscreen/goodix.c if (!ts->client) ts 576 drivers/input/touchscreen/goodix.c dev = &ts->client->dev; ts 578 drivers/input/touchscreen/goodix.c ts->avdd28 = devm_regulator_get(dev, "AVDD28"); ts 579 drivers/input/touchscreen/goodix.c if (IS_ERR(ts->avdd28)) { ts 580 drivers/input/touchscreen/goodix.c error = PTR_ERR(ts->avdd28); ts 587 drivers/input/touchscreen/goodix.c ts->vddio = devm_regulator_get(dev, "VDDIO"); ts 588 drivers/input/touchscreen/goodix.c if (IS_ERR(ts->vddio)) { ts 589 drivers/input/touchscreen/goodix.c error = PTR_ERR(ts->vddio); ts 606 drivers/input/touchscreen/goodix.c ts->gpiod_int = gpiod; ts 618 drivers/input/touchscreen/goodix.c ts->gpiod_rst = gpiod; ts 630 drivers/input/touchscreen/goodix.c static void goodix_read_config(struct goodix_ts_data *ts) ts 636 drivers/input/touchscreen/goodix.c error = goodix_i2c_read(ts->client, ts->chip->config_addr, ts 637 drivers/input/touchscreen/goodix.c config, ts->chip->config_len); ts 639 drivers/input/touchscreen/goodix.c dev_warn(&ts->client->dev, "Error reading config: %d\n", ts 641 drivers/input/touchscreen/goodix.c ts->int_trigger_type = GOODIX_INT_TRIGGER; ts 642 drivers/input/touchscreen/goodix.c ts->max_touch_num = GOODIX_MAX_CONTACTS; ts 646 drivers/input/touchscreen/goodix.c ts->int_trigger_type = config[TRIGGER_LOC] & 0x03; ts 647 drivers/input/touchscreen/goodix.c ts->max_touch_num = config[MAX_CONTACTS_LOC] & 0x0f; ts 652 drivers/input/touchscreen/goodix.c input_abs_set_max(ts->input_dev, ABS_MT_POSITION_X, x_max - 1); ts 653 drivers/input/touchscreen/goodix.c input_abs_set_max(ts->input_dev, ABS_MT_POSITION_Y, y_max - 1); ts 662 drivers/input/touchscreen/goodix.c static int goodix_read_version(struct goodix_ts_data *ts) ts 668 drivers/input/touchscreen/goodix.c error = goodix_i2c_read(ts->client, GOODIX_REG_ID, buf, sizeof(buf)); ts 670 drivers/input/touchscreen/goodix.c dev_err(&ts->client->dev, "read version failed: %d\n", error); ts 676 drivers/input/touchscreen/goodix.c if (kstrtou16(id_str, 10, &ts->id)) ts 677 drivers/input/touchscreen/goodix.c ts->id = 0x1001; ts 679 drivers/input/touchscreen/goodix.c ts->version = get_unaligned_le16(&buf[4]); ts 681 drivers/input/touchscreen/goodix.c dev_info(&ts->client->dev, "ID %d, version: %04x\n", ts->id, ts 682 drivers/input/touchscreen/goodix.c ts->version); ts 722 drivers/input/touchscreen/goodix.c static int goodix_configure_dev(struct goodix_ts_data *ts) ts 726 drivers/input/touchscreen/goodix.c ts->int_trigger_type = GOODIX_INT_TRIGGER; ts 727 drivers/input/touchscreen/goodix.c ts->max_touch_num = GOODIX_MAX_CONTACTS; ts 729 drivers/input/touchscreen/goodix.c ts->input_dev = devm_input_allocate_device(&ts->client->dev); ts 730 drivers/input/touchscreen/goodix.c if (!ts->input_dev) { ts 731 drivers/input/touchscreen/goodix.c dev_err(&ts->client->dev, "Failed to allocate input device."); ts 735 drivers/input/touchscreen/goodix.c ts->input_dev->name = "Goodix Capacitive TouchScreen"; ts 736 drivers/input/touchscreen/goodix.c ts->input_dev->phys = "input/ts"; ts 737 drivers/input/touchscreen/goodix.c ts->input_dev->id.bustype = BUS_I2C; ts 738 drivers/input/touchscreen/goodix.c ts->input_dev->id.vendor = 0x0416; ts 739 drivers/input/touchscreen/goodix.c ts->input_dev->id.product = ts->id; ts 740 drivers/input/touchscreen/goodix.c ts->input_dev->id.version = ts->version; ts 743 drivers/input/touchscreen/goodix.c input_set_capability(ts->input_dev, EV_KEY, KEY_LEFTMETA); ts 745 drivers/input/touchscreen/goodix.c input_set_capability(ts->input_dev, EV_ABS, ABS_MT_POSITION_X); ts 746 drivers/input/touchscreen/goodix.c input_set_capability(ts->input_dev, EV_ABS, ABS_MT_POSITION_Y); ts 747 drivers/input/touchscreen/goodix.c input_set_abs_params(ts->input_dev, ABS_MT_WIDTH_MAJOR, 0, 255, 0, 0); ts 748 drivers/input/touchscreen/goodix.c input_set_abs_params(ts->input_dev, ABS_MT_TOUCH_MAJOR, 0, 255, 0, 0); ts 751 drivers/input/touchscreen/goodix.c goodix_read_config(ts); ts 754 drivers/input/touchscreen/goodix.c touchscreen_parse_properties(ts->input_dev, true, &ts->prop); ts 756 drivers/input/touchscreen/goodix.c if (!ts->prop.max_x || !ts->prop.max_y || !ts->max_touch_num) { ts 757 drivers/input/touchscreen/goodix.c dev_err(&ts->client->dev, ts 759 drivers/input/touchscreen/goodix.c ts->prop.max_x, ts->prop.max_y, ts->max_touch_num); ts 760 drivers/input/touchscreen/goodix.c ts->prop.max_x = GOODIX_MAX_WIDTH - 1; ts 761 drivers/input/touchscreen/goodix.c ts->prop.max_y = GOODIX_MAX_HEIGHT - 1; ts 762 drivers/input/touchscreen/goodix.c ts->max_touch_num = GOODIX_MAX_CONTACTS; ts 763 drivers/input/touchscreen/goodix.c input_abs_set_max(ts->input_dev, ts 764 drivers/input/touchscreen/goodix.c ABS_MT_POSITION_X, ts->prop.max_x); ts 765 drivers/input/touchscreen/goodix.c input_abs_set_max(ts->input_dev, ts 766 drivers/input/touchscreen/goodix.c ABS_MT_POSITION_Y, ts->prop.max_y); ts 770 drivers/input/touchscreen/goodix.c ts->prop.invert_x = true; ts 771 drivers/input/touchscreen/goodix.c ts->prop.invert_y = true; ts 772 drivers/input/touchscreen/goodix.c dev_dbg(&ts->client->dev, ts 777 drivers/input/touchscreen/goodix.c ts->contact_size = 9; ts 779 drivers/input/touchscreen/goodix.c dev_dbg(&ts->client->dev, ts 783 drivers/input/touchscreen/goodix.c error = input_mt_init_slots(ts->input_dev, ts->max_touch_num, ts 786 drivers/input/touchscreen/goodix.c dev_err(&ts->client->dev, ts 791 drivers/input/touchscreen/goodix.c error = input_register_device(ts->input_dev); ts 793 drivers/input/touchscreen/goodix.c dev_err(&ts->client->dev, ts 798 drivers/input/touchscreen/goodix.c ts->irq_flags = goodix_irq_flags[ts->int_trigger_type] | IRQF_ONESHOT; ts 799 drivers/input/touchscreen/goodix.c error = goodix_request_irq(ts); ts 801 drivers/input/touchscreen/goodix.c dev_err(&ts->client->dev, "request IRQ failed: %d\n", error); ts 818 drivers/input/touchscreen/goodix.c struct goodix_ts_data *ts = ctx; ts 823 drivers/input/touchscreen/goodix.c error = goodix_send_cfg(ts, cfg); ts 828 drivers/input/touchscreen/goodix.c goodix_configure_dev(ts); ts 832 drivers/input/touchscreen/goodix.c complete_all(&ts->firmware_loading_complete); ts 837 drivers/input/touchscreen/goodix.c struct goodix_ts_data *ts = arg; ts 839 drivers/input/touchscreen/goodix.c regulator_disable(ts->vddio); ts 840 drivers/input/touchscreen/goodix.c regulator_disable(ts->avdd28); ts 846 drivers/input/touchscreen/goodix.c struct goodix_ts_data *ts; ts 856 drivers/input/touchscreen/goodix.c ts = devm_kzalloc(&client->dev, sizeof(*ts), GFP_KERNEL); ts 857 drivers/input/touchscreen/goodix.c if (!ts) ts 860 drivers/input/touchscreen/goodix.c ts->client = client; ts 861 drivers/input/touchscreen/goodix.c i2c_set_clientdata(client, ts); ts 862 drivers/input/touchscreen/goodix.c init_completion(&ts->firmware_loading_complete); ts 863 drivers/input/touchscreen/goodix.c ts->contact_size = GOODIX_CONTACT_SIZE; ts 865 drivers/input/touchscreen/goodix.c error = goodix_get_gpio_config(ts); ts 870 drivers/input/touchscreen/goodix.c error = regulator_enable(ts->avdd28); ts 878 drivers/input/touchscreen/goodix.c error = regulator_enable(ts->vddio); ts 883 drivers/input/touchscreen/goodix.c regulator_disable(ts->avdd28); ts 888 drivers/input/touchscreen/goodix.c goodix_disable_regulators, ts); ts 892 drivers/input/touchscreen/goodix.c if (ts->gpiod_int && ts->gpiod_rst) { ts 894 drivers/input/touchscreen/goodix.c error = goodix_reset(ts); ts 907 drivers/input/touchscreen/goodix.c error = goodix_read_version(ts); ts 913 drivers/input/touchscreen/goodix.c ts->chip = goodix_get_chip_data(ts->id); ts 915 drivers/input/touchscreen/goodix.c if (ts->gpiod_int && ts->gpiod_rst) { ts 917 drivers/input/touchscreen/goodix.c ts->cfg_name = devm_kasprintf(&client->dev, GFP_KERNEL, ts 918 drivers/input/touchscreen/goodix.c "goodix_%d_cfg.bin", ts->id); ts 919 drivers/input/touchscreen/goodix.c if (!ts->cfg_name) ts 922 drivers/input/touchscreen/goodix.c error = request_firmware_nowait(THIS_MODULE, true, ts->cfg_name, ts 923 drivers/input/touchscreen/goodix.c &client->dev, GFP_KERNEL, ts, ts 934 drivers/input/touchscreen/goodix.c error = goodix_configure_dev(ts); ts 944 drivers/input/touchscreen/goodix.c struct goodix_ts_data *ts = i2c_get_clientdata(client); ts 946 drivers/input/touchscreen/goodix.c if (ts->gpiod_int && ts->gpiod_rst) ts 947 drivers/input/touchscreen/goodix.c wait_for_completion(&ts->firmware_loading_complete); ts 955 drivers/input/touchscreen/goodix.c struct goodix_ts_data *ts = i2c_get_clientdata(client); ts 959 drivers/input/touchscreen/goodix.c if (!ts->gpiod_int || !ts->gpiod_rst) { ts 964 drivers/input/touchscreen/goodix.c wait_for_completion(&ts->firmware_loading_complete); ts 967 drivers/input/touchscreen/goodix.c goodix_free_irq(ts); ts 970 drivers/input/touchscreen/goodix.c error = gpiod_direction_output(ts->gpiod_int, 0); ts 972 drivers/input/touchscreen/goodix.c goodix_request_irq(ts); ts 978 drivers/input/touchscreen/goodix.c error = goodix_i2c_write_u8(ts->client, GOODIX_REG_COMMAND, ts 981 drivers/input/touchscreen/goodix.c dev_err(&ts->client->dev, "Screen off command failed\n"); ts 982 drivers/input/touchscreen/goodix.c gpiod_direction_input(ts->gpiod_int); ts 983 drivers/input/touchscreen/goodix.c goodix_request_irq(ts); ts 999 drivers/input/touchscreen/goodix.c struct goodix_ts_data *ts = i2c_get_clientdata(client); ts 1002 drivers/input/touchscreen/goodix.c if (!ts->gpiod_int || !ts->gpiod_rst) { ts 1011 drivers/input/touchscreen/goodix.c error = gpiod_direction_output(ts->gpiod_int, 1); ts 1017 drivers/input/touchscreen/goodix.c error = goodix_int_sync(ts); ts 1021 drivers/input/touchscreen/goodix.c error = goodix_request_irq(ts); ts 178 drivers/input/touchscreen/hideep.c static int hideep_pgm_w_mem(struct hideep_ts *ts, u32 addr, ts 181 drivers/input/touchscreen/hideep.c struct pgm_packet *packet = (void *)ts->xfer_buf; ts 184 drivers/input/touchscreen/hideep.c .addr = ts->client->addr, ts 198 drivers/input/touchscreen/hideep.c ret = i2c_transfer(ts->client->adapter, &msg, 1); ts 205 drivers/input/touchscreen/hideep.c static int hideep_pgm_r_mem(struct hideep_ts *ts, u32 addr, ts 208 drivers/input/touchscreen/hideep.c struct pgm_packet *packet = (void *)ts->xfer_buf; ts 212 drivers/input/touchscreen/hideep.c .addr = ts->client->addr, ts 218 drivers/input/touchscreen/hideep.c .addr = ts->client->addr, ts 232 drivers/input/touchscreen/hideep.c ret = i2c_transfer(ts->client->adapter, msg, ARRAY_SIZE(msg)); ts 239 drivers/input/touchscreen/hideep.c static int hideep_pgm_r_reg(struct hideep_ts *ts, u32 addr, u32 *val) ts 244 drivers/input/touchscreen/hideep.c error = hideep_pgm_r_mem(ts, addr, &data, 1); ts 246 drivers/input/touchscreen/hideep.c dev_err(&ts->client->dev, ts 256 drivers/input/touchscreen/hideep.c static int hideep_pgm_w_reg(struct hideep_ts *ts, u32 addr, u32 val) ts 261 drivers/input/touchscreen/hideep.c error = hideep_pgm_w_mem(ts, addr, &data, 1); ts 263 drivers/input/touchscreen/hideep.c dev_err(&ts->client->dev, ts 274 drivers/input/touchscreen/hideep.c hideep_pgm_w_reg(ts, HIDEEP_SYSCON_WDT_CNT, (clk)); \ ts 275 drivers/input/touchscreen/hideep.c hideep_pgm_w_reg(ts, HIDEEP_SYSCON_WDT_CON, 0x03); \ ts 276 drivers/input/touchscreen/hideep.c hideep_pgm_w_reg(ts, HIDEEP_SYSCON_WDT_CON, 0x01); \ ts 280 drivers/input/touchscreen/hideep.c hideep_pgm_w_reg(ts, HIDEEP_FLASH_CON, \ ts 284 drivers/input/touchscreen/hideep.c hideep_pgm_w_reg(ts, HIDEEP_FLASH_PIO_SIG + (x), (y)) ts 287 drivers/input/touchscreen/hideep.c hideep_pgm_w_reg(ts, HIDEEP_FLASH_CON, 0x00) ts 296 drivers/input/touchscreen/hideep.c static void hideep_pgm_set(struct hideep_ts *ts) ts 298 drivers/input/touchscreen/hideep.c hideep_pgm_w_reg(ts, HIDEEP_SYSCON_WDT_CON, 0x00); ts 299 drivers/input/touchscreen/hideep.c hideep_pgm_w_reg(ts, HIDEEP_SYSCON_SPC_CON, 0x00); ts 300 drivers/input/touchscreen/hideep.c hideep_pgm_w_reg(ts, HIDEEP_SYSCON_CLK_ENA, 0xFF); ts 301 drivers/input/touchscreen/hideep.c hideep_pgm_w_reg(ts, HIDEEP_SYSCON_CLK_CON, 0x01); ts 302 drivers/input/touchscreen/hideep.c hideep_pgm_w_reg(ts, HIDEEP_SYSCON_PWR_CON, 0x01); ts 303 drivers/input/touchscreen/hideep.c hideep_pgm_w_reg(ts, HIDEEP_FLASH_TIM, 0x03); ts 304 drivers/input/touchscreen/hideep.c hideep_pgm_w_reg(ts, HIDEEP_FLASH_CACHE_CFG, 0x00); ts 307 drivers/input/touchscreen/hideep.c static int hideep_pgm_get_pattern(struct hideep_ts *ts, u32 *pattern) ts 313 drivers/input/touchscreen/hideep.c error = regmap_bulk_write(ts->reg, p1, &p2, 1); ts 315 drivers/input/touchscreen/hideep.c dev_err(&ts->client->dev, ts 324 drivers/input/touchscreen/hideep.c error = hideep_pgm_w_reg(ts, HIDEEP_ESI_TX_INVALID, 0x01); ts 328 drivers/input/touchscreen/hideep.c error = hideep_pgm_r_reg(ts, HIDEEP_SYSCON_PGM_ID, pattern); ts 335 drivers/input/touchscreen/hideep.c static int hideep_enter_pgm(struct hideep_ts *ts) ts 342 drivers/input/touchscreen/hideep.c error = hideep_pgm_get_pattern(ts, &pattern); ts 344 drivers/input/touchscreen/hideep.c dev_err(&ts->client->dev, ts 347 drivers/input/touchscreen/hideep.c dev_err(&ts->client->dev, "%s: bad pattern: %#08x\n", ts 350 drivers/input/touchscreen/hideep.c dev_dbg(&ts->client->dev, "found magic code"); ts 352 drivers/input/touchscreen/hideep.c hideep_pgm_set(ts); ts 359 drivers/input/touchscreen/hideep.c dev_err(&ts->client->dev, "failed to enter pgm mode\n"); ts 364 drivers/input/touchscreen/hideep.c static void hideep_nvm_unlock(struct hideep_ts *ts) ts 368 drivers/input/touchscreen/hideep.c hideep_pgm_w_reg(ts, HIDEEP_FLASH_CFG, HIDEEP_NVM_SFR_RPAGE); ts 369 drivers/input/touchscreen/hideep.c hideep_pgm_r_reg(ts, 0x0000000C, &unmask_code); ts 370 drivers/input/touchscreen/hideep.c hideep_pgm_w_reg(ts, HIDEEP_FLASH_CFG, HIDEEP_NVM_DEFAULT_PAGE); ts 376 drivers/input/touchscreen/hideep.c if (unmask_code != ts->nvm_mask) ts 377 drivers/input/touchscreen/hideep.c dev_warn(&ts->client->dev, ts 379 drivers/input/touchscreen/hideep.c unmask_code, ts->nvm_mask); ts 381 drivers/input/touchscreen/hideep.c hideep_pgm_w_reg(ts, HIDEEP_FLASH_CFG, HIDEEP_NVM_SFR_WPAGE); ts 384 drivers/input/touchscreen/hideep.c NVM_W_SFR(HIDEEP_NVM_MASK_OFS, ts->nvm_mask); ts 386 drivers/input/touchscreen/hideep.c hideep_pgm_w_reg(ts, HIDEEP_FLASH_CFG, HIDEEP_NVM_DEFAULT_PAGE); ts 389 drivers/input/touchscreen/hideep.c static int hideep_check_status(struct hideep_ts *ts) ts 396 drivers/input/touchscreen/hideep.c error = hideep_pgm_r_reg(ts, HIDEEP_FLASH_STA, &status); ts 406 drivers/input/touchscreen/hideep.c static int hideep_program_page(struct hideep_ts *ts, u32 addr, ts 412 drivers/input/touchscreen/hideep.c error = hideep_check_status(ts); ts 426 drivers/input/touchscreen/hideep.c error = hideep_check_status(ts); ts 436 drivers/input/touchscreen/hideep.c hideep_pgm_w_mem(ts, HIDEEP_FLASH_PIO_SIG | HIDEEP_WRONLY, ts 446 drivers/input/touchscreen/hideep.c error = hideep_check_status(ts); ts 455 drivers/input/touchscreen/hideep.c static int hideep_program_nvm(struct hideep_ts *ts, ts 458 drivers/input/touchscreen/hideep.c struct pgm_packet *packet_r = (void *)ts->xfer_buf; ts 465 drivers/input/touchscreen/hideep.c hideep_nvm_unlock(ts); ts 471 drivers/input/touchscreen/hideep.c error = hideep_pgm_r_mem(ts, 0x00000000 + addr, ts 474 drivers/input/touchscreen/hideep.c dev_err(&ts->client->dev, ts 482 drivers/input/touchscreen/hideep.c error = hideep_program_page(ts, addr, ts 485 drivers/input/touchscreen/hideep.c dev_err(&ts->client->dev, ts 502 drivers/input/touchscreen/hideep.c static int hideep_verify_nvm(struct hideep_ts *ts, ts 505 drivers/input/touchscreen/hideep.c struct pgm_packet *packet_r = (void *)ts->xfer_buf; ts 517 drivers/input/touchscreen/hideep.c error = hideep_pgm_r_mem(ts, 0x00000000 + addr, ts 520 drivers/input/touchscreen/hideep.c dev_err(&ts->client->dev, ts 532 drivers/input/touchscreen/hideep.c dev_err(&ts->client->dev, ts 549 drivers/input/touchscreen/hideep.c static int hideep_load_dwz(struct hideep_ts *ts) ts 554 drivers/input/touchscreen/hideep.c error = hideep_enter_pgm(ts); ts 560 drivers/input/touchscreen/hideep.c error = hideep_pgm_r_mem(ts, HIDEEP_DWZ_INFO, ts 561 drivers/input/touchscreen/hideep.c (void *)&ts->dwz_info, ts 562 drivers/input/touchscreen/hideep.c sizeof(ts->dwz_info) / sizeof(__be32)); ts 568 drivers/input/touchscreen/hideep.c dev_err(&ts->client->dev, ts 573 drivers/input/touchscreen/hideep.c product_code = be16_to_cpu(ts->dwz_info.product_code); ts 577 drivers/input/touchscreen/hideep.c dev_dbg(&ts->client->dev, "used crimson IC"); ts 578 drivers/input/touchscreen/hideep.c ts->fw_size = 1024 * 48; ts 579 drivers/input/touchscreen/hideep.c ts->nvm_mask = 0x00310000; ts 582 drivers/input/touchscreen/hideep.c dev_dbg(&ts->client->dev, "used lime IC"); ts 583 drivers/input/touchscreen/hideep.c ts->fw_size = 1024 * 64; ts 584 drivers/input/touchscreen/hideep.c ts->nvm_mask = 0x0030027B; ts 587 drivers/input/touchscreen/hideep.c dev_err(&ts->client->dev, "product code is wrong: %#04x", ts 592 drivers/input/touchscreen/hideep.c dev_dbg(&ts->client->dev, "firmware release version: %#04x", ts 593 drivers/input/touchscreen/hideep.c be16_to_cpu(ts->dwz_info.release_ver)); ts 598 drivers/input/touchscreen/hideep.c static int hideep_flash_firmware(struct hideep_ts *ts, ts 605 drivers/input/touchscreen/hideep.c error = hideep_program_nvm(ts, ucode, ucode_len); ts 607 drivers/input/touchscreen/hideep.c error = hideep_verify_nvm(ts, ucode, ucode_len); ts 616 drivers/input/touchscreen/hideep.c static int hideep_update_firmware(struct hideep_ts *ts, ts 621 drivers/input/touchscreen/hideep.c dev_dbg(&ts->client->dev, "starting firmware update"); ts 624 drivers/input/touchscreen/hideep.c error = hideep_enter_pgm(ts); ts 628 drivers/input/touchscreen/hideep.c error = hideep_flash_firmware(ts, ucode, ucode_len); ts 630 drivers/input/touchscreen/hideep.c dev_err(&ts->client->dev, ts 633 drivers/input/touchscreen/hideep.c dev_dbg(&ts->client->dev, "firmware updated successfully\n"); ts 637 drivers/input/touchscreen/hideep.c error2 = hideep_load_dwz(ts); ts 639 drivers/input/touchscreen/hideep.c dev_err(&ts->client->dev, ts 646 drivers/input/touchscreen/hideep.c static int hideep_power_on(struct hideep_ts *ts) ts 650 drivers/input/touchscreen/hideep.c error = regulator_enable(ts->vcc_vdd); ts 652 drivers/input/touchscreen/hideep.c dev_err(&ts->client->dev, ts 657 drivers/input/touchscreen/hideep.c error = regulator_enable(ts->vcc_vid); ts 659 drivers/input/touchscreen/hideep.c dev_err(&ts->client->dev, ts 665 drivers/input/touchscreen/hideep.c if (ts->reset_gpio) { ts 666 drivers/input/touchscreen/hideep.c gpiod_set_value_cansleep(ts->reset_gpio, 0); ts 668 drivers/input/touchscreen/hideep.c error = regmap_write(ts->reg, HIDEEP_RESET_CMD, 0x01); ts 670 drivers/input/touchscreen/hideep.c dev_err(&ts->client->dev, ts 681 drivers/input/touchscreen/hideep.c struct hideep_ts *ts = data; ts 683 drivers/input/touchscreen/hideep.c if (ts->reset_gpio) ts 684 drivers/input/touchscreen/hideep.c gpiod_set_value(ts->reset_gpio, 1); ts 686 drivers/input/touchscreen/hideep.c regulator_disable(ts->vcc_vid); ts 687 drivers/input/touchscreen/hideep.c regulator_disable(ts->vcc_vdd); ts 710 drivers/input/touchscreen/hideep.c static void hideep_parse_and_report(struct hideep_ts *ts) ts 713 drivers/input/touchscreen/hideep.c (void *)&ts->xfer_buf[HIDEEP_TOUCH_EVENT_INDEX]; ts 714 drivers/input/touchscreen/hideep.c const u8 *keys = &ts->xfer_buf[HIDEEP_KEY_EVENT_INDEX]; ts 715 drivers/input/touchscreen/hideep.c int touch_count = ts->xfer_buf[0]; ts 716 drivers/input/touchscreen/hideep.c int key_count = ts->xfer_buf[1] & 0x0f; ts 717 drivers/input/touchscreen/hideep.c int lpm_count = ts->xfer_buf[1] & 0xf0; ts 721 drivers/input/touchscreen/hideep.c dev_dbg(&ts->client->dev, "mt = %d, key = %d, lpm = %02x", ts 726 drivers/input/touchscreen/hideep.c hideep_report_slot(ts->input_dev, events + i); ts 732 drivers/input/touchscreen/hideep.c input_report_key(ts->input_dev, ts 733 drivers/input/touchscreen/hideep.c ts->key_codes[key_data & HIDEEP_KEY_IDX_MASK], ts 737 drivers/input/touchscreen/hideep.c input_mt_sync_frame(ts->input_dev); ts 738 drivers/input/touchscreen/hideep.c input_sync(ts->input_dev); ts 743 drivers/input/touchscreen/hideep.c struct hideep_ts *ts = handle; ts 748 drivers/input/touchscreen/hideep.c error = regmap_bulk_read(ts->reg, HIDEEP_EVENT_ADDR, ts 749 drivers/input/touchscreen/hideep.c ts->xfer_buf, HIDEEP_MAX_EVENT / 2); ts 751 drivers/input/touchscreen/hideep.c dev_err(&ts->client->dev, "failed to read events: %d\n", error); ts 755 drivers/input/touchscreen/hideep.c hideep_parse_and_report(ts); ts 761 drivers/input/touchscreen/hideep.c static int hideep_get_axis_info(struct hideep_ts *ts) ts 766 drivers/input/touchscreen/hideep.c error = regmap_bulk_read(ts->reg, 0x28, val, ARRAY_SIZE(val)); ts 770 drivers/input/touchscreen/hideep.c ts->prop.max_x = le16_to_cpup(val); ts 771 drivers/input/touchscreen/hideep.c ts->prop.max_y = le16_to_cpup(val + 1); ts 773 drivers/input/touchscreen/hideep.c dev_dbg(&ts->client->dev, "X: %d, Y: %d", ts 774 drivers/input/touchscreen/hideep.c ts->prop.max_x, ts->prop.max_y); ts 779 drivers/input/touchscreen/hideep.c static int hideep_init_input(struct hideep_ts *ts) ts 781 drivers/input/touchscreen/hideep.c struct device *dev = &ts->client->dev; ts 785 drivers/input/touchscreen/hideep.c ts->input_dev = devm_input_allocate_device(dev); ts 786 drivers/input/touchscreen/hideep.c if (!ts->input_dev) { ts 791 drivers/input/touchscreen/hideep.c ts->input_dev->name = HIDEEP_TS_NAME; ts 792 drivers/input/touchscreen/hideep.c ts->input_dev->id.bustype = BUS_I2C; ts 793 drivers/input/touchscreen/hideep.c input_set_drvdata(ts->input_dev, ts); ts 795 drivers/input/touchscreen/hideep.c input_set_capability(ts->input_dev, EV_ABS, ABS_MT_POSITION_X); ts 796 drivers/input/touchscreen/hideep.c input_set_capability(ts->input_dev, EV_ABS, ABS_MT_POSITION_Y); ts 797 drivers/input/touchscreen/hideep.c input_set_abs_params(ts->input_dev, ABS_MT_PRESSURE, 0, 65535, 0, 0); ts 798 drivers/input/touchscreen/hideep.c input_set_abs_params(ts->input_dev, ABS_MT_TOUCH_MAJOR, 0, 255, 0, 0); ts 799 drivers/input/touchscreen/hideep.c input_set_abs_params(ts->input_dev, ABS_MT_TOOL_TYPE, ts 801 drivers/input/touchscreen/hideep.c touchscreen_parse_properties(ts->input_dev, true, &ts->prop); ts 803 drivers/input/touchscreen/hideep.c if (ts->prop.max_x == 0 || ts->prop.max_y == 0) { ts 804 drivers/input/touchscreen/hideep.c error = hideep_get_axis_info(ts); ts 809 drivers/input/touchscreen/hideep.c error = input_mt_init_slots(ts->input_dev, HIDEEP_MT_MAX, ts 814 drivers/input/touchscreen/hideep.c ts->key_num = device_property_count_u32(dev, "linux,keycodes"); ts 815 drivers/input/touchscreen/hideep.c if (ts->key_num > HIDEEP_KEY_MAX) { ts 817 drivers/input/touchscreen/hideep.c ts->key_num); ts 821 drivers/input/touchscreen/hideep.c if (ts->key_num <= 0) { ts 826 drivers/input/touchscreen/hideep.c ts->key_codes, ts 827 drivers/input/touchscreen/hideep.c ts->key_num); ts 833 drivers/input/touchscreen/hideep.c if (ts->key_num) { ts 834 drivers/input/touchscreen/hideep.c ts->input_dev->keycode = ts->key_codes; ts 835 drivers/input/touchscreen/hideep.c ts->input_dev->keycodesize = sizeof(ts->key_codes[0]); ts 836 drivers/input/touchscreen/hideep.c ts->input_dev->keycodemax = ts->key_num; ts 838 drivers/input/touchscreen/hideep.c for (i = 0; i < ts->key_num; i++) ts 839 drivers/input/touchscreen/hideep.c input_set_capability(ts->input_dev, EV_KEY, ts 840 drivers/input/touchscreen/hideep.c ts->key_codes[i]); ts 844 drivers/input/touchscreen/hideep.c error = input_register_device(ts->input_dev); ts 858 drivers/input/touchscreen/hideep.c struct hideep_ts *ts = i2c_get_clientdata(client); ts 869 drivers/input/touchscreen/hideep.c be16_to_cpu(ts->dwz_info.product_id)); ts 886 drivers/input/touchscreen/hideep.c if (fw_entry->size > ts->fw_size) { ts 888 drivers/input/touchscreen/hideep.c fw_entry->size, ts->fw_size); ts 893 drivers/input/touchscreen/hideep.c mutex_lock(&ts->dev_mutex); ts 896 drivers/input/touchscreen/hideep.c error = hideep_update_firmware(ts, (const __be32 *)fw_entry->data, ts 900 drivers/input/touchscreen/hideep.c mutex_unlock(&ts->dev_mutex); ts 914 drivers/input/touchscreen/hideep.c struct hideep_ts *ts = i2c_get_clientdata(client); ts 917 drivers/input/touchscreen/hideep.c mutex_lock(&ts->dev_mutex); ts 919 drivers/input/touchscreen/hideep.c be16_to_cpu(ts->dwz_info.release_ver)); ts 920 drivers/input/touchscreen/hideep.c mutex_unlock(&ts->dev_mutex); ts 929 drivers/input/touchscreen/hideep.c struct hideep_ts *ts = i2c_get_clientdata(client); ts 932 drivers/input/touchscreen/hideep.c mutex_lock(&ts->dev_mutex); ts 934 drivers/input/touchscreen/hideep.c be16_to_cpu(ts->dwz_info.product_id)); ts 935 drivers/input/touchscreen/hideep.c mutex_unlock(&ts->dev_mutex); ts 958 drivers/input/touchscreen/hideep.c struct hideep_ts *ts = i2c_get_clientdata(client); ts 961 drivers/input/touchscreen/hideep.c hideep_power_off(ts); ts 969 drivers/input/touchscreen/hideep.c struct hideep_ts *ts = i2c_get_clientdata(client); ts 972 drivers/input/touchscreen/hideep.c error = hideep_power_on(ts); ts 996 drivers/input/touchscreen/hideep.c struct hideep_ts *ts; ts 1010 drivers/input/touchscreen/hideep.c ts = devm_kzalloc(&client->dev, sizeof(*ts), GFP_KERNEL); ts 1011 drivers/input/touchscreen/hideep.c if (!ts) ts 1014 drivers/input/touchscreen/hideep.c ts->client = client; ts 1015 drivers/input/touchscreen/hideep.c i2c_set_clientdata(client, ts); ts 1016 drivers/input/touchscreen/hideep.c mutex_init(&ts->dev_mutex); ts 1018 drivers/input/touchscreen/hideep.c ts->reg = devm_regmap_init_i2c(client, &hideep_regmap_config); ts 1019 drivers/input/touchscreen/hideep.c if (IS_ERR(ts->reg)) { ts 1020 drivers/input/touchscreen/hideep.c error = PTR_ERR(ts->reg); ts 1026 drivers/input/touchscreen/hideep.c ts->vcc_vdd = devm_regulator_get(&client->dev, "vdd"); ts 1027 drivers/input/touchscreen/hideep.c if (IS_ERR(ts->vcc_vdd)) ts 1028 drivers/input/touchscreen/hideep.c return PTR_ERR(ts->vcc_vdd); ts 1030 drivers/input/touchscreen/hideep.c ts->vcc_vid = devm_regulator_get(&client->dev, "vid"); ts 1031 drivers/input/touchscreen/hideep.c if (IS_ERR(ts->vcc_vid)) ts 1032 drivers/input/touchscreen/hideep.c return PTR_ERR(ts->vcc_vid); ts 1034 drivers/input/touchscreen/hideep.c ts->reset_gpio = devm_gpiod_get_optional(&client->dev, ts 1036 drivers/input/touchscreen/hideep.c if (IS_ERR(ts->reset_gpio)) ts 1037 drivers/input/touchscreen/hideep.c return PTR_ERR(ts->reset_gpio); ts 1039 drivers/input/touchscreen/hideep.c error = hideep_power_on(ts); ts 1045 drivers/input/touchscreen/hideep.c error = devm_add_action_or_reset(&client->dev, hideep_power_off, ts); ts 1049 drivers/input/touchscreen/hideep.c error = hideep_load_dwz(ts); ts 1055 drivers/input/touchscreen/hideep.c error = hideep_init_input(ts); ts 1061 drivers/input/touchscreen/hideep.c client->name, ts); ts 29 drivers/input/touchscreen/ipaq-micro-ts.c struct touchscreen_data *ts = data; ts 32 drivers/input/touchscreen/ipaq-micro-ts.c input_report_abs(ts->input, ABS_X, ts 34 drivers/input/touchscreen/ipaq-micro-ts.c input_report_abs(ts->input, ABS_Y, ts 36 drivers/input/touchscreen/ipaq-micro-ts.c input_report_key(ts->input, BTN_TOUCH, 1); ts 37 drivers/input/touchscreen/ipaq-micro-ts.c input_sync(ts->input); ts 39 drivers/input/touchscreen/ipaq-micro-ts.c input_report_abs(ts->input, ABS_X, 0); ts 40 drivers/input/touchscreen/ipaq-micro-ts.c input_report_abs(ts->input, ABS_Y, 0); ts 41 drivers/input/touchscreen/ipaq-micro-ts.c input_report_key(ts->input, BTN_TOUCH, 0); ts 42 drivers/input/touchscreen/ipaq-micro-ts.c input_sync(ts->input); ts 46 drivers/input/touchscreen/ipaq-micro-ts.c static void micro_ts_toggle_receive(struct touchscreen_data *ts, bool enable) ts 48 drivers/input/touchscreen/ipaq-micro-ts.c struct ipaq_micro *micro = ts->micro; ts 53 drivers/input/touchscreen/ipaq-micro-ts.c micro->ts = micro_ts_receive; ts 54 drivers/input/touchscreen/ipaq-micro-ts.c micro->ts_data = ts; ts 56 drivers/input/touchscreen/ipaq-micro-ts.c micro->ts = NULL; ts 60 drivers/input/touchscreen/ipaq-micro-ts.c spin_unlock_irq(&ts->micro->lock); ts 65 drivers/input/touchscreen/ipaq-micro-ts.c struct touchscreen_data *ts = input_get_drvdata(input); ts 67 drivers/input/touchscreen/ipaq-micro-ts.c micro_ts_toggle_receive(ts, true); ts 74 drivers/input/touchscreen/ipaq-micro-ts.c struct touchscreen_data *ts = input_get_drvdata(input); ts 76 drivers/input/touchscreen/ipaq-micro-ts.c micro_ts_toggle_receive(ts, false); ts 82 drivers/input/touchscreen/ipaq-micro-ts.c struct touchscreen_data *ts; ts 85 drivers/input/touchscreen/ipaq-micro-ts.c ts = devm_kzalloc(&pdev->dev, sizeof(*ts), GFP_KERNEL); ts 86 drivers/input/touchscreen/ipaq-micro-ts.c if (!ts) ts 89 drivers/input/touchscreen/ipaq-micro-ts.c ts->micro = micro; ts 91 drivers/input/touchscreen/ipaq-micro-ts.c ts->input = devm_input_allocate_device(&pdev->dev); ts 92 drivers/input/touchscreen/ipaq-micro-ts.c if (!ts->input) { ts 97 drivers/input/touchscreen/ipaq-micro-ts.c ts->input->name = "ipaq micro ts"; ts 98 drivers/input/touchscreen/ipaq-micro-ts.c ts->input->open = micro_ts_open; ts 99 drivers/input/touchscreen/ipaq-micro-ts.c ts->input->close = micro_ts_close; ts 101 drivers/input/touchscreen/ipaq-micro-ts.c input_set_drvdata(ts->input, ts); ts 103 drivers/input/touchscreen/ipaq-micro-ts.c input_set_capability(ts->input, EV_KEY, BTN_TOUCH); ts 104 drivers/input/touchscreen/ipaq-micro-ts.c input_set_capability(ts->input, EV_ABS, ABS_X); ts 105 drivers/input/touchscreen/ipaq-micro-ts.c input_set_capability(ts->input, EV_ABS, ABS_Y); ts 106 drivers/input/touchscreen/ipaq-micro-ts.c input_set_abs_params(ts->input, ABS_X, 0, 1023, 0, 0); ts 107 drivers/input/touchscreen/ipaq-micro-ts.c input_set_abs_params(ts->input, ABS_Y, 0, 1023, 0, 0); ts 109 drivers/input/touchscreen/ipaq-micro-ts.c error = input_register_device(ts->input); ts 115 drivers/input/touchscreen/ipaq-micro-ts.c platform_set_drvdata(pdev, ts); ts 124 drivers/input/touchscreen/ipaq-micro-ts.c struct touchscreen_data *ts = dev_get_drvdata(dev); ts 126 drivers/input/touchscreen/ipaq-micro-ts.c micro_ts_toggle_receive(ts, false); ts 133 drivers/input/touchscreen/ipaq-micro-ts.c struct touchscreen_data *ts = dev_get_drvdata(dev); ts 134 drivers/input/touchscreen/ipaq-micro-ts.c struct input_dev *input = ts->input; ts 139 drivers/input/touchscreen/ipaq-micro-ts.c micro_ts_toggle_receive(ts, true); ts 179 drivers/input/touchscreen/melfas_mip4.c static int mip4_i2c_xfer(struct mip4_ts *ts, ts 185 drivers/input/touchscreen/melfas_mip4.c .addr = ts->client->addr, ts 190 drivers/input/touchscreen/melfas_mip4.c .addr = ts->client->addr, ts 201 drivers/input/touchscreen/melfas_mip4.c res = i2c_transfer(ts->client->adapter, msg, ARRAY_SIZE(msg)); ts 206 drivers/input/touchscreen/melfas_mip4.c dev_err(&ts->client->dev, ts 225 drivers/input/touchscreen/melfas_mip4.c static int mip4_get_fw_version(struct mip4_ts *ts) ts 228 drivers/input/touchscreen/melfas_mip4.c u8 buf[sizeof(ts->fw_version)]; ts 231 drivers/input/touchscreen/melfas_mip4.c error = mip4_i2c_xfer(ts, cmd, sizeof(cmd), buf, sizeof(buf)); ts 233 drivers/input/touchscreen/melfas_mip4.c memset(&ts->fw_version, 0xff, sizeof(ts->fw_version)); ts 237 drivers/input/touchscreen/melfas_mip4.c mip4_parse_fw_version(buf, &ts->fw_version); ts 245 drivers/input/touchscreen/melfas_mip4.c static int mip4_query_device(struct mip4_ts *ts) ts 256 drivers/input/touchscreen/melfas_mip4.c if (i2c_smbus_xfer(ts->client->adapter, ts->client->addr, ts 258 drivers/input/touchscreen/melfas_mip4.c dev_err(&ts->client->dev, "nothing at this address\n"); ts 265 drivers/input/touchscreen/melfas_mip4.c error = mip4_i2c_xfer(ts, cmd, sizeof(cmd), ts 266 drivers/input/touchscreen/melfas_mip4.c ts->product_name, sizeof(ts->product_name)); ts 268 drivers/input/touchscreen/melfas_mip4.c dev_warn(&ts->client->dev, ts 271 drivers/input/touchscreen/melfas_mip4.c dev_dbg(&ts->client->dev, "product name: %.*s\n", ts 272 drivers/input/touchscreen/melfas_mip4.c (int)sizeof(ts->product_name), ts->product_name); ts 277 drivers/input/touchscreen/melfas_mip4.c error = mip4_i2c_xfer(ts, cmd, sizeof(cmd), buf, 2); ts 279 drivers/input/touchscreen/melfas_mip4.c dev_warn(&ts->client->dev, ts 282 drivers/input/touchscreen/melfas_mip4.c ts->product_id = get_unaligned_le16(&buf[0]); ts 283 drivers/input/touchscreen/melfas_mip4.c dev_dbg(&ts->client->dev, "product id: %04X\n", ts->product_id); ts 287 drivers/input/touchscreen/melfas_mip4.c snprintf(ts->fw_name, sizeof(ts->fw_name), ts 288 drivers/input/touchscreen/melfas_mip4.c "melfas_mip4_%04X.fw", ts->product_id); ts 289 drivers/input/touchscreen/melfas_mip4.c dev_dbg(&ts->client->dev, "firmware name: %s\n", ts->fw_name); ts 294 drivers/input/touchscreen/melfas_mip4.c error = mip4_i2c_xfer(ts, cmd, sizeof(cmd), ts 295 drivers/input/touchscreen/melfas_mip4.c ts->ic_name, sizeof(ts->ic_name)); ts 297 drivers/input/touchscreen/melfas_mip4.c dev_warn(&ts->client->dev, ts 300 drivers/input/touchscreen/melfas_mip4.c dev_dbg(&ts->client->dev, "IC name: %.*s\n", ts 301 drivers/input/touchscreen/melfas_mip4.c (int)sizeof(ts->ic_name), ts->ic_name); ts 304 drivers/input/touchscreen/melfas_mip4.c error = mip4_get_fw_version(ts); ts 306 drivers/input/touchscreen/melfas_mip4.c dev_warn(&ts->client->dev, ts 309 drivers/input/touchscreen/melfas_mip4.c dev_dbg(&ts->client->dev, "F/W Version: %04X %04X %04X %04X\n", ts 310 drivers/input/touchscreen/melfas_mip4.c ts->fw_version.boot, ts->fw_version.core, ts 311 drivers/input/touchscreen/melfas_mip4.c ts->fw_version.app, ts->fw_version.param); ts 316 drivers/input/touchscreen/melfas_mip4.c error = mip4_i2c_xfer(ts, cmd, sizeof(cmd), buf, 14); ts 318 drivers/input/touchscreen/melfas_mip4.c dev_warn(&ts->client->dev, ts 322 drivers/input/touchscreen/melfas_mip4.c ts->max_x = get_unaligned_le16(&buf[0]); ts 323 drivers/input/touchscreen/melfas_mip4.c ts->max_y = get_unaligned_le16(&buf[2]); ts 324 drivers/input/touchscreen/melfas_mip4.c dev_dbg(&ts->client->dev, "max_x: %d, max_y: %d\n", ts 325 drivers/input/touchscreen/melfas_mip4.c ts->max_x, ts->max_y); ts 327 drivers/input/touchscreen/melfas_mip4.c ts->node_x = buf[4]; ts 328 drivers/input/touchscreen/melfas_mip4.c ts->node_y = buf[5]; ts 329 drivers/input/touchscreen/melfas_mip4.c ts->node_key = buf[6]; ts 330 drivers/input/touchscreen/melfas_mip4.c dev_dbg(&ts->client->dev, ts 332 drivers/input/touchscreen/melfas_mip4.c ts->node_x, ts->node_y, ts->node_key); ts 334 drivers/input/touchscreen/melfas_mip4.c ts->ppm_x = buf[12]; ts 335 drivers/input/touchscreen/melfas_mip4.c ts->ppm_y = buf[13]; ts 336 drivers/input/touchscreen/melfas_mip4.c dev_dbg(&ts->client->dev, "ppm_x: %d, ppm_y: %d\n", ts 337 drivers/input/touchscreen/melfas_mip4.c ts->ppm_x, ts->ppm_y); ts 340 drivers/input/touchscreen/melfas_mip4.c if (ts->node_key > 0) ts 341 drivers/input/touchscreen/melfas_mip4.c ts->key_num = ts->node_key; ts 347 drivers/input/touchscreen/melfas_mip4.c error = mip4_i2c_xfer(ts, cmd, sizeof(cmd), buf, 7); ts 349 drivers/input/touchscreen/melfas_mip4.c dev_warn(&ts->client->dev, ts 351 drivers/input/touchscreen/melfas_mip4.c ts->event_format = 0xff; ts 353 drivers/input/touchscreen/melfas_mip4.c ts->event_format = get_unaligned_le16(&buf[4]); ts 354 drivers/input/touchscreen/melfas_mip4.c ts->event_size = buf[6]; ts 355 drivers/input/touchscreen/melfas_mip4.c dev_dbg(&ts->client->dev, "event_format: %d, event_size: %d\n", ts 356 drivers/input/touchscreen/melfas_mip4.c ts->event_format, ts->event_size); ts 358 drivers/input/touchscreen/melfas_mip4.c if (ts->event_format == 2 || ts->event_format > 3) ts 359 drivers/input/touchscreen/melfas_mip4.c dev_warn(&ts->client->dev, ts 360 drivers/input/touchscreen/melfas_mip4.c "Unknown event format %d\n", ts->event_format); ts 366 drivers/input/touchscreen/melfas_mip4.c static int mip4_power_on(struct mip4_ts *ts) ts 368 drivers/input/touchscreen/melfas_mip4.c if (ts->gpio_ce) { ts 369 drivers/input/touchscreen/melfas_mip4.c gpiod_set_value_cansleep(ts->gpio_ce, 1); ts 378 drivers/input/touchscreen/melfas_mip4.c static void mip4_power_off(struct mip4_ts *ts) ts 380 drivers/input/touchscreen/melfas_mip4.c if (ts->gpio_ce) ts 381 drivers/input/touchscreen/melfas_mip4.c gpiod_set_value_cansleep(ts->gpio_ce, 0); ts 387 drivers/input/touchscreen/melfas_mip4.c static void mip4_clear_input(struct mip4_ts *ts) ts 393 drivers/input/touchscreen/melfas_mip4.c input_mt_slot(ts->input, i); ts 394 drivers/input/touchscreen/melfas_mip4.c input_mt_report_slot_state(ts->input, MT_TOOL_FINGER, 0); ts 398 drivers/input/touchscreen/melfas_mip4.c for (i = 0; i < ts->key_num; i++) ts 399 drivers/input/touchscreen/melfas_mip4.c input_report_key(ts->input, ts->key_code[i], 0); ts 401 drivers/input/touchscreen/melfas_mip4.c input_sync(ts->input); ts 404 drivers/input/touchscreen/melfas_mip4.c static int mip4_enable(struct mip4_ts *ts) ts 408 drivers/input/touchscreen/melfas_mip4.c error = mip4_power_on(ts); ts 412 drivers/input/touchscreen/melfas_mip4.c enable_irq(ts->client->irq); ts 417 drivers/input/touchscreen/melfas_mip4.c static void mip4_disable(struct mip4_ts *ts) ts 419 drivers/input/touchscreen/melfas_mip4.c disable_irq(ts->client->irq); ts 421 drivers/input/touchscreen/melfas_mip4.c mip4_power_off(ts); ts 423 drivers/input/touchscreen/melfas_mip4.c mip4_clear_input(ts); ts 430 drivers/input/touchscreen/melfas_mip4.c static void mip4_report_keys(struct mip4_ts *ts, u8 *packet) ts 435 drivers/input/touchscreen/melfas_mip4.c switch (ts->event_format) { ts 450 drivers/input/touchscreen/melfas_mip4.c if (key >= 1 && key <= ts->key_num) { ts 451 drivers/input/touchscreen/melfas_mip4.c unsigned short keycode = ts->key_code[key - 1]; ts 453 drivers/input/touchscreen/melfas_mip4.c dev_dbg(&ts->client->dev, ts 457 drivers/input/touchscreen/melfas_mip4.c input_event(ts->input, EV_MSC, MSC_SCAN, keycode); ts 458 drivers/input/touchscreen/melfas_mip4.c input_report_key(ts->input, keycode, down); ts 461 drivers/input/touchscreen/melfas_mip4.c dev_err(&ts->client->dev, "Unknown key: %d\n", key); ts 465 drivers/input/touchscreen/melfas_mip4.c static void mip4_report_touch(struct mip4_ts *ts, u8 *packet) ts 478 drivers/input/touchscreen/melfas_mip4.c switch (ts->event_format) { ts 491 drivers/input/touchscreen/melfas_mip4.c if (ts->event_format == 0) { ts 519 drivers/input/touchscreen/melfas_mip4.c dev_dbg(&ts->client->dev, ts 524 drivers/input/touchscreen/melfas_mip4.c dev_err(&ts->client->dev, "Screen - invalid slot ID: %d\n", id); ts 527 drivers/input/touchscreen/melfas_mip4.c input_mt_slot(ts->input, id); ts 528 drivers/input/touchscreen/melfas_mip4.c input_mt_report_slot_state(ts->input, MT_TOOL_FINGER, true); ts 529 drivers/input/touchscreen/melfas_mip4.c input_report_abs(ts->input, ABS_MT_POSITION_X, x); ts 530 drivers/input/touchscreen/melfas_mip4.c input_report_abs(ts->input, ABS_MT_POSITION_Y, y); ts 531 drivers/input/touchscreen/melfas_mip4.c input_report_abs(ts->input, ABS_MT_PRESSURE, pressure); ts 532 drivers/input/touchscreen/melfas_mip4.c input_report_abs(ts->input, ABS_MT_TOUCH_MAJOR, touch_major); ts 533 drivers/input/touchscreen/melfas_mip4.c input_report_abs(ts->input, ABS_MT_TOUCH_MINOR, touch_minor); ts 536 drivers/input/touchscreen/melfas_mip4.c input_mt_slot(ts->input, id); ts 537 drivers/input/touchscreen/melfas_mip4.c input_mt_report_slot_state(ts->input, MT_TOOL_FINGER, 0); ts 540 drivers/input/touchscreen/melfas_mip4.c input_mt_sync_frame(ts->input); ts 543 drivers/input/touchscreen/melfas_mip4.c static int mip4_handle_packet(struct mip4_ts *ts, u8 *packet) ts 547 drivers/input/touchscreen/melfas_mip4.c switch (ts->event_format) { ts 562 drivers/input/touchscreen/melfas_mip4.c dev_dbg(&ts->client->dev, "Type: %d\n", type); ts 567 drivers/input/touchscreen/melfas_mip4.c mip4_report_keys(ts, packet); ts 571 drivers/input/touchscreen/melfas_mip4.c mip4_report_touch(ts, packet); ts 575 drivers/input/touchscreen/melfas_mip4.c dev_err(&ts->client->dev, "Unknown event type: %d\n", type); ts 584 drivers/input/touchscreen/melfas_mip4.c struct mip4_ts *ts = dev_id; ts 585 drivers/input/touchscreen/melfas_mip4.c struct i2c_client *client = ts->client; ts 595 drivers/input/touchscreen/melfas_mip4.c error = mip4_i2c_xfer(ts, cmd, sizeof(cmd), ts->buf, 1); ts 602 drivers/input/touchscreen/melfas_mip4.c size = ts->buf[0] & 0x7F; ts 603 drivers/input/touchscreen/melfas_mip4.c alert = ts->buf[0] & BIT(7); ts 615 drivers/input/touchscreen/melfas_mip4.c error = mip4_i2c_xfer(ts, cmd, sizeof(cmd), ts->buf, size); ts 623 drivers/input/touchscreen/melfas_mip4.c dev_dbg(&client->dev, "Alert: %d\n", ts->buf[0]); ts 625 drivers/input/touchscreen/melfas_mip4.c for (i = 0; i < size; i += ts->event_size) { ts 626 drivers/input/touchscreen/melfas_mip4.c error = mip4_handle_packet(ts, &ts->buf[i]); ts 631 drivers/input/touchscreen/melfas_mip4.c input_sync(ts->input); ts 640 drivers/input/touchscreen/melfas_mip4.c struct mip4_ts *ts = input_get_drvdata(dev); ts 642 drivers/input/touchscreen/melfas_mip4.c return mip4_enable(ts); ts 647 drivers/input/touchscreen/melfas_mip4.c struct mip4_ts *ts = input_get_drvdata(dev); ts 649 drivers/input/touchscreen/melfas_mip4.c mip4_disable(ts); ts 706 drivers/input/touchscreen/melfas_mip4.c static int mip4_bl_read_status(struct mip4_ts *ts) ts 712 drivers/input/touchscreen/melfas_mip4.c .addr = ts->client->addr, ts 717 drivers/input/touchscreen/melfas_mip4.c .addr = ts->client->addr, ts 728 drivers/input/touchscreen/melfas_mip4.c ret = i2c_transfer(ts->client->adapter, msg, ARRAY_SIZE(msg)); ts 731 drivers/input/touchscreen/melfas_mip4.c dev_err(&ts->client->dev, ts 739 drivers/input/touchscreen/melfas_mip4.c dev_dbg(&ts->client->dev, "%s - done\n", __func__); ts 743 drivers/input/touchscreen/melfas_mip4.c dev_err(&ts->client->dev, "Bootloader failure\n"); ts 747 drivers/input/touchscreen/melfas_mip4.c dev_dbg(&ts->client->dev, "%s - Busy\n", __func__); ts 752 drivers/input/touchscreen/melfas_mip4.c dev_err(&ts->client->dev, ts 768 drivers/input/touchscreen/melfas_mip4.c static int mip4_bl_change_mode(struct mip4_ts *ts, u8 mode) ts 775 drivers/input/touchscreen/melfas_mip4.c .addr = ts->client->addr, ts 780 drivers/input/touchscreen/melfas_mip4.c .addr = ts->client->addr, ts 792 drivers/input/touchscreen/melfas_mip4.c ret = i2c_master_send(ts->client, ts 796 drivers/input/touchscreen/melfas_mip4.c dev_err(&ts->client->dev, ts 802 drivers/input/touchscreen/melfas_mip4.c dev_dbg(&ts->client->dev, ts 809 drivers/input/touchscreen/melfas_mip4.c ret = i2c_transfer(ts->client->adapter, msg, ARRAY_SIZE(msg)); ts 812 drivers/input/touchscreen/melfas_mip4.c dev_err(&ts->client->dev, ts 817 drivers/input/touchscreen/melfas_mip4.c dev_dbg(&ts->client->dev, ts 831 drivers/input/touchscreen/melfas_mip4.c static int mip4_bl_enter(struct mip4_ts *ts) ts 833 drivers/input/touchscreen/melfas_mip4.c return mip4_bl_change_mode(ts, MIP4_BOOT_MODE_BOOT); ts 839 drivers/input/touchscreen/melfas_mip4.c static int mip4_bl_exit(struct mip4_ts *ts) ts 841 drivers/input/touchscreen/melfas_mip4.c return mip4_bl_change_mode(ts, MIP4_BOOT_MODE_APP); ts 844 drivers/input/touchscreen/melfas_mip4.c static int mip4_bl_get_address(struct mip4_ts *ts, u16 *buf_addr) ts 850 drivers/input/touchscreen/melfas_mip4.c .addr = ts->client->addr, ts 855 drivers/input/touchscreen/melfas_mip4.c .addr = ts->client->addr, ts 864 drivers/input/touchscreen/melfas_mip4.c ret = i2c_transfer(ts->client->adapter, msg, ARRAY_SIZE(msg)); ts 867 drivers/input/touchscreen/melfas_mip4.c dev_err(&ts->client->dev, ts 874 drivers/input/touchscreen/melfas_mip4.c dev_dbg(&ts->client->dev, ts 880 drivers/input/touchscreen/melfas_mip4.c static int mip4_bl_program_page(struct mip4_ts *ts, int offset, ts 889 drivers/input/touchscreen/melfas_mip4.c dev_dbg(&ts->client->dev, "Writing page @%#06x (%d)\n", ts 893 drivers/input/touchscreen/melfas_mip4.c dev_err(&ts->client->dev, ts 906 drivers/input/touchscreen/melfas_mip4.c ret = i2c_master_send(ts->client, cmd, 6); ts 909 drivers/input/touchscreen/melfas_mip4.c dev_err(&ts->client->dev, ts 918 drivers/input/touchscreen/melfas_mip4.c ret = i2c_master_send(ts->client, cmd, 6); ts 921 drivers/input/touchscreen/melfas_mip4.c dev_err(&ts->client->dev, ts 930 drivers/input/touchscreen/melfas_mip4.c dev_dbg(&ts->client->dev, ts 935 drivers/input/touchscreen/melfas_mip4.c ret = i2c_master_send(ts->client, ts 939 drivers/input/touchscreen/melfas_mip4.c dev_err(&ts->client->dev, ts 950 drivers/input/touchscreen/melfas_mip4.c ret = i2c_master_send(ts->client, cmd, 3); ts 953 drivers/input/touchscreen/melfas_mip4.c dev_err(&ts->client->dev, ts 959 drivers/input/touchscreen/melfas_mip4.c error = mip4_bl_read_status(ts); ts 966 drivers/input/touchscreen/melfas_mip4.c static int mip4_bl_verify_page(struct mip4_ts *ts, int offset, ts 974 drivers/input/touchscreen/melfas_mip4.c .addr = ts->client->addr, ts 979 drivers/input/touchscreen/melfas_mip4.c .addr = ts->client->addr, ts 987 drivers/input/touchscreen/melfas_mip4.c dev_dbg(&ts->client->dev, "Validating page @%#06x (%d)\n", ts 994 drivers/input/touchscreen/melfas_mip4.c ret = i2c_master_send(ts->client, cmd, 6); ts 997 drivers/input/touchscreen/melfas_mip4.c dev_err(&ts->client->dev, ts 1006 drivers/input/touchscreen/melfas_mip4.c ret = i2c_master_send(ts->client, cmd, 6); ts 1009 drivers/input/touchscreen/melfas_mip4.c dev_err(&ts->client->dev, ts 1018 drivers/input/touchscreen/melfas_mip4.c ret = i2c_master_send(ts->client, cmd, 3); ts 1021 drivers/input/touchscreen/melfas_mip4.c dev_err(&ts->client->dev, ts 1027 drivers/input/touchscreen/melfas_mip4.c error = mip4_bl_read_status(ts); ts 1039 drivers/input/touchscreen/melfas_mip4.c dev_dbg(&ts->client->dev, ts 1043 drivers/input/touchscreen/melfas_mip4.c ret = i2c_transfer(ts->client->adapter, msg, ARRAY_SIZE(msg)); ts 1046 drivers/input/touchscreen/melfas_mip4.c dev_err(&ts->client->dev, ts 1053 drivers/input/touchscreen/melfas_mip4.c dev_err(&ts->client->dev, ts 1079 drivers/input/touchscreen/melfas_mip4.c static int mip4_flash_fw(struct mip4_ts *ts, ts 1082 drivers/input/touchscreen/melfas_mip4.c struct i2c_client *client = ts->client; ts 1090 drivers/input/touchscreen/melfas_mip4.c error = mip4_bl_enter(ts); ts 1099 drivers/input/touchscreen/melfas_mip4.c error = mip4_bl_get_address(ts, &buf_addr); ts 1112 drivers/input/touchscreen/melfas_mip4.c error = mip4_bl_program_page(ts, offset, fw_data + offset, ts 1118 drivers/input/touchscreen/melfas_mip4.c error = mip4_bl_verify_page(ts, offset, fw_data + offset, ts 1128 drivers/input/touchscreen/melfas_mip4.c error2 = mip4_bl_exit(ts); ts 1137 drivers/input/touchscreen/melfas_mip4.c mip4_power_off(ts); ts 1138 drivers/input/touchscreen/melfas_mip4.c mip4_power_on(ts); ts 1140 drivers/input/touchscreen/melfas_mip4.c mip4_query_device(ts); ts 1143 drivers/input/touchscreen/melfas_mip4.c input_set_abs_params(ts->input, ABS_MT_POSITION_X, 0, ts->max_x, 0, 0); ts 1144 drivers/input/touchscreen/melfas_mip4.c input_set_abs_params(ts->input, ABS_MT_POSITION_Y, 0, ts->max_y, 0, 0); ts 1145 drivers/input/touchscreen/melfas_mip4.c input_set_abs_params(ts->input, ABS_X, 0, ts->max_x, 0, 0); ts 1146 drivers/input/touchscreen/melfas_mip4.c input_set_abs_params(ts->input, ABS_Y, 0, ts->max_y, 0, 0); ts 1147 drivers/input/touchscreen/melfas_mip4.c input_abs_set_res(ts->input, ABS_MT_POSITION_X, ts->ppm_x); ts 1148 drivers/input/touchscreen/melfas_mip4.c input_abs_set_res(ts->input, ABS_MT_POSITION_Y, ts->ppm_y); ts 1149 drivers/input/touchscreen/melfas_mip4.c input_abs_set_res(ts->input, ABS_X, ts->ppm_x); ts 1150 drivers/input/touchscreen/melfas_mip4.c input_abs_set_res(ts->input, ABS_Y, ts->ppm_y); ts 1155 drivers/input/touchscreen/melfas_mip4.c static int mip4_parse_firmware(struct mip4_ts *ts, const struct firmware *fw, ts 1164 drivers/input/touchscreen/melfas_mip4.c dev_err(&ts->client->dev, ts 1179 drivers/input/touchscreen/melfas_mip4.c dev_err(&ts->client->dev, ts 1188 drivers/input/touchscreen/melfas_mip4.c dev_err(&ts->client->dev, ts 1198 drivers/input/touchscreen/melfas_mip4.c dev_dbg(&ts->client->dev, ts 1203 drivers/input/touchscreen/melfas_mip4.c dev_err(&ts->client->dev, ts 1210 drivers/input/touchscreen/melfas_mip4.c dev_err(&ts->client->dev, ts 1218 drivers/input/touchscreen/melfas_mip4.c dev_dbg(&ts->client->dev, ts 1223 drivers/input/touchscreen/melfas_mip4.c dev_dbg(&ts->client->dev, "F/W chip version: %04X %04X %04X %04X\n", ts 1224 drivers/input/touchscreen/melfas_mip4.c ts->fw_version.boot, ts->fw_version.core, ts 1225 drivers/input/touchscreen/melfas_mip4.c ts->fw_version.app, ts->fw_version.param); ts 1232 drivers/input/touchscreen/melfas_mip4.c dev_dbg(&ts->client->dev, "F/W type: Bootloader\n"); ts 1237 drivers/input/touchscreen/melfas_mip4.c dev_dbg(&ts->client->dev, "F/W type: Main\n"); ts 1239 drivers/input/touchscreen/melfas_mip4.c dev_err(&ts->client->dev, "Wrong firmware type\n"); ts 1246 drivers/input/touchscreen/melfas_mip4.c static int mip4_execute_fw_update(struct mip4_ts *ts, const struct firmware *fw) ts 1254 drivers/input/touchscreen/melfas_mip4.c error = mip4_parse_firmware(ts, fw, ts 1259 drivers/input/touchscreen/melfas_mip4.c if (ts->input->users) { ts 1260 drivers/input/touchscreen/melfas_mip4.c disable_irq(ts->client->irq); ts 1262 drivers/input/touchscreen/melfas_mip4.c error = mip4_power_on(ts); ts 1269 drivers/input/touchscreen/melfas_mip4.c error = mip4_flash_fw(ts, fw->data, fw_size, fw_start_offset); ts 1275 drivers/input/touchscreen/melfas_mip4.c dev_err(&ts->client->dev, ts 1279 drivers/input/touchscreen/melfas_mip4.c if (ts->input->users) ts 1280 drivers/input/touchscreen/melfas_mip4.c enable_irq(ts->client->irq); ts 1282 drivers/input/touchscreen/melfas_mip4.c mip4_power_off(ts); ts 1292 drivers/input/touchscreen/melfas_mip4.c struct mip4_ts *ts = i2c_get_clientdata(client); ts 1296 drivers/input/touchscreen/melfas_mip4.c error = request_firmware(&fw, ts->fw_name, dev); ts 1298 drivers/input/touchscreen/melfas_mip4.c dev_err(&ts->client->dev, ts 1300 drivers/input/touchscreen/melfas_mip4.c ts->fw_name, error); ts 1309 drivers/input/touchscreen/melfas_mip4.c mutex_lock(&ts->input->mutex); ts 1311 drivers/input/touchscreen/melfas_mip4.c error = mip4_execute_fw_update(ts, fw); ts 1313 drivers/input/touchscreen/melfas_mip4.c mutex_unlock(&ts->input->mutex); ts 1318 drivers/input/touchscreen/melfas_mip4.c dev_err(&ts->client->dev, ts 1333 drivers/input/touchscreen/melfas_mip4.c struct mip4_ts *ts = i2c_get_clientdata(client); ts 1337 drivers/input/touchscreen/melfas_mip4.c mutex_lock(&ts->input->mutex); ts 1340 drivers/input/touchscreen/melfas_mip4.c ts->fw_version.boot, ts->fw_version.core, ts 1341 drivers/input/touchscreen/melfas_mip4.c ts->fw_version.app, ts->fw_version.param); ts 1343 drivers/input/touchscreen/melfas_mip4.c mutex_unlock(&ts->input->mutex); ts 1355 drivers/input/touchscreen/melfas_mip4.c struct mip4_ts *ts = i2c_get_clientdata(client); ts 1359 drivers/input/touchscreen/melfas_mip4.c mutex_lock(&ts->input->mutex); ts 1366 drivers/input/touchscreen/melfas_mip4.c (int)sizeof(ts->product_name), ts->product_name); ts 1368 drivers/input/touchscreen/melfas_mip4.c mutex_unlock(&ts->input->mutex); ts 1380 drivers/input/touchscreen/melfas_mip4.c struct mip4_ts *ts = i2c_get_clientdata(client); ts 1383 drivers/input/touchscreen/melfas_mip4.c mutex_lock(&ts->input->mutex); ts 1385 drivers/input/touchscreen/melfas_mip4.c count = snprintf(buf, PAGE_SIZE, "%04X\n", ts->product_id); ts 1387 drivers/input/touchscreen/melfas_mip4.c mutex_unlock(&ts->input->mutex); ts 1399 drivers/input/touchscreen/melfas_mip4.c struct mip4_ts *ts = i2c_get_clientdata(client); ts 1402 drivers/input/touchscreen/melfas_mip4.c mutex_lock(&ts->input->mutex); ts 1405 drivers/input/touchscreen/melfas_mip4.c (int)sizeof(ts->ic_name), ts->ic_name); ts 1407 drivers/input/touchscreen/melfas_mip4.c mutex_unlock(&ts->input->mutex); ts 1429 drivers/input/touchscreen/melfas_mip4.c struct mip4_ts *ts; ts 1438 drivers/input/touchscreen/melfas_mip4.c ts = devm_kzalloc(&client->dev, sizeof(*ts), GFP_KERNEL); ts 1439 drivers/input/touchscreen/melfas_mip4.c if (!ts) ts 1446 drivers/input/touchscreen/melfas_mip4.c ts->client = client; ts 1447 drivers/input/touchscreen/melfas_mip4.c ts->input = input; ts 1449 drivers/input/touchscreen/melfas_mip4.c snprintf(ts->phys, sizeof(ts->phys), ts 1452 drivers/input/touchscreen/melfas_mip4.c ts->gpio_ce = devm_gpiod_get_optional(&client->dev, ts 1454 drivers/input/touchscreen/melfas_mip4.c if (IS_ERR(ts->gpio_ce)) { ts 1455 drivers/input/touchscreen/melfas_mip4.c error = PTR_ERR(ts->gpio_ce); ts 1462 drivers/input/touchscreen/melfas_mip4.c error = mip4_power_on(ts); ts 1465 drivers/input/touchscreen/melfas_mip4.c error = mip4_query_device(ts); ts 1466 drivers/input/touchscreen/melfas_mip4.c mip4_power_off(ts); ts 1471 drivers/input/touchscreen/melfas_mip4.c input->phys = ts->phys; ts 1475 drivers/input/touchscreen/melfas_mip4.c input->id.product = ts->product_id; ts 1480 drivers/input/touchscreen/melfas_mip4.c input_set_drvdata(input, ts); ts 1482 drivers/input/touchscreen/melfas_mip4.c input->keycode = ts->key_code; ts 1483 drivers/input/touchscreen/melfas_mip4.c input->keycodesize = sizeof(*ts->key_code); ts 1484 drivers/input/touchscreen/melfas_mip4.c input->keycodemax = ts->key_num; ts 1486 drivers/input/touchscreen/melfas_mip4.c input_set_abs_params(input, ABS_MT_POSITION_X, 0, ts->max_x, 0, 0); ts 1487 drivers/input/touchscreen/melfas_mip4.c input_set_abs_params(input, ABS_MT_POSITION_Y, 0, ts->max_y, 0, 0); ts 1494 drivers/input/touchscreen/melfas_mip4.c input_abs_set_res(ts->input, ABS_MT_POSITION_X, ts->ppm_x); ts 1495 drivers/input/touchscreen/melfas_mip4.c input_abs_set_res(ts->input, ABS_MT_POSITION_Y, ts->ppm_y); ts 1501 drivers/input/touchscreen/melfas_mip4.c i2c_set_clientdata(client, ts); ts 1505 drivers/input/touchscreen/melfas_mip4.c IRQF_ONESHOT, MIP4_DEVICE_NAME, ts); ts 1535 drivers/input/touchscreen/melfas_mip4.c struct mip4_ts *ts = i2c_get_clientdata(client); ts 1536 drivers/input/touchscreen/melfas_mip4.c struct input_dev *input = ts->input; ts 1541 drivers/input/touchscreen/melfas_mip4.c ts->wake_irq_enabled = enable_irq_wake(client->irq) == 0; ts 1543 drivers/input/touchscreen/melfas_mip4.c mip4_disable(ts); ts 1553 drivers/input/touchscreen/melfas_mip4.c struct mip4_ts *ts = i2c_get_clientdata(client); ts 1554 drivers/input/touchscreen/melfas_mip4.c struct input_dev *input = ts->input; ts 1558 drivers/input/touchscreen/melfas_mip4.c if (ts->wake_irq_enabled) ts 1561 drivers/input/touchscreen/melfas_mip4.c mip4_enable(ts); ts 91 drivers/input/touchscreen/mxs-lradc-ts.c static bool mxs_lradc_check_touch_event(struct mxs_lradc_ts *ts) ts 93 drivers/input/touchscreen/mxs-lradc-ts.c return !!(readl(ts->base + LRADC_STATUS) & ts 97 drivers/input/touchscreen/mxs-lradc-ts.c static void mxs_lradc_map_ts_channel(struct mxs_lradc_ts *ts, unsigned int vch, ts 101 drivers/input/touchscreen/mxs-lradc-ts.c ts->base + LRADC_CTRL4 + STMP_OFFSET_REG_CLR); ts 103 drivers/input/touchscreen/mxs-lradc-ts.c ts->base + LRADC_CTRL4 + STMP_OFFSET_REG_SET); ts 106 drivers/input/touchscreen/mxs-lradc-ts.c static void mxs_lradc_setup_ts_channel(struct mxs_lradc_ts *ts, unsigned int ch) ts 117 drivers/input/touchscreen/mxs-lradc-ts.c LRADC_CH_NUM_SAMPLES(ts->over_sample_cnt - 1), ts 118 drivers/input/touchscreen/mxs-lradc-ts.c ts->base + LRADC_CH(ch)); ts 125 drivers/input/touchscreen/mxs-lradc-ts.c ts->base + LRADC_CH(ch) + STMP_OFFSET_REG_CLR); ts 136 drivers/input/touchscreen/mxs-lradc-ts.c LRADC_DELAY_LOOP(ts->over_sample_cnt - 1) | ts 137 drivers/input/touchscreen/mxs-lradc-ts.c LRADC_DELAY_DELAY(ts->over_sample_delay - 1), ts 138 drivers/input/touchscreen/mxs-lradc-ts.c ts->base + LRADC_DELAY(3)); ts 141 drivers/input/touchscreen/mxs-lradc-ts.c ts->base + LRADC_CTRL1 + STMP_OFFSET_REG_CLR); ts 150 drivers/input/touchscreen/mxs-lradc-ts.c LRADC_DELAY_KICK | LRADC_DELAY_DELAY(ts->settling_delay), ts 151 drivers/input/touchscreen/mxs-lradc-ts.c ts->base + LRADC_DELAY(2)); ts 160 drivers/input/touchscreen/mxs-lradc-ts.c static void mxs_lradc_setup_ts_pressure(struct mxs_lradc_ts *ts, ts 174 drivers/input/touchscreen/mxs-lradc-ts.c LRADC_CH_NUM_SAMPLES(ts->over_sample_cnt - 1); ts 175 drivers/input/touchscreen/mxs-lradc-ts.c writel(reg, ts->base + LRADC_CH(ch1)); ts 176 drivers/input/touchscreen/mxs-lradc-ts.c writel(reg, ts->base + LRADC_CH(ch2)); ts 183 drivers/input/touchscreen/mxs-lradc-ts.c ts->base + LRADC_CH(ch1) + STMP_OFFSET_REG_CLR); ts 185 drivers/input/touchscreen/mxs-lradc-ts.c ts->base + LRADC_CH(ch2) + STMP_OFFSET_REG_CLR); ts 190 drivers/input/touchscreen/mxs-lradc-ts.c LRADC_DELAY_LOOP(ts->over_sample_cnt - 1) | ts 191 drivers/input/touchscreen/mxs-lradc-ts.c LRADC_DELAY_DELAY(ts->over_sample_delay - 1), ts 192 drivers/input/touchscreen/mxs-lradc-ts.c ts->base + LRADC_DELAY(3)); ts 195 drivers/input/touchscreen/mxs-lradc-ts.c ts->base + LRADC_CTRL1 + STMP_OFFSET_REG_CLR); ts 204 drivers/input/touchscreen/mxs-lradc-ts.c LRADC_DELAY_KICK | LRADC_DELAY_DELAY(ts->settling_delay), ts 205 drivers/input/touchscreen/mxs-lradc-ts.c ts->base + LRADC_DELAY(2)); ts 208 drivers/input/touchscreen/mxs-lradc-ts.c static unsigned int mxs_lradc_ts_read_raw_channel(struct mxs_lradc_ts *ts, ts 214 drivers/input/touchscreen/mxs-lradc-ts.c reg = readl(ts->base + LRADC_CH(channel)); ts 216 drivers/input/touchscreen/mxs-lradc-ts.c num_samples = ts->over_sample_cnt; ts 224 drivers/input/touchscreen/mxs-lradc-ts.c static unsigned int mxs_lradc_read_ts_pressure(struct mxs_lradc_ts *ts, ts 231 drivers/input/touchscreen/mxs-lradc-ts.c reg = readl(ts->base + LRADC_CTRL1) & mask; ts 234 drivers/input/touchscreen/mxs-lradc-ts.c reg = readl(ts->base + LRADC_CTRL1) & mask; ts 235 drivers/input/touchscreen/mxs-lradc-ts.c dev_dbg(ts->dev, "One channel is still busy: %X\n", reg); ts 238 drivers/input/touchscreen/mxs-lradc-ts.c m1 = mxs_lradc_ts_read_raw_channel(ts, ch1); ts 239 drivers/input/touchscreen/mxs-lradc-ts.c m2 = mxs_lradc_ts_read_raw_channel(ts, ch2); ts 242 drivers/input/touchscreen/mxs-lradc-ts.c dev_warn(ts->dev, "Cannot calculate pressure\n"); ts 251 drivers/input/touchscreen/mxs-lradc-ts.c dev_dbg(ts->dev, "Pressure = %u\n", pressure); ts 272 drivers/input/touchscreen/mxs-lradc-ts.c static void mxs_lradc_setup_touch_detection(struct mxs_lradc_ts *ts) ts 274 drivers/input/touchscreen/mxs-lradc-ts.c struct mxs_lradc *lradc = ts->lradc; ts 283 drivers/input/touchscreen/mxs-lradc-ts.c ts->base + LRADC_CTRL0 + STMP_OFFSET_REG_CLR); ts 285 drivers/input/touchscreen/mxs-lradc-ts.c ts->base + LRADC_CTRL0 + STMP_OFFSET_REG_SET); ts 300 drivers/input/touchscreen/mxs-lradc-ts.c static void mxs_lradc_prepare_x_pos(struct mxs_lradc_ts *ts) ts 302 drivers/input/touchscreen/mxs-lradc-ts.c struct mxs_lradc *lradc = ts->lradc; ts 305 drivers/input/touchscreen/mxs-lradc-ts.c ts->base + LRADC_CTRL0 + STMP_OFFSET_REG_CLR); ts 307 drivers/input/touchscreen/mxs-lradc-ts.c ts->base + LRADC_CTRL0 + STMP_OFFSET_REG_SET); ts 309 drivers/input/touchscreen/mxs-lradc-ts.c ts->cur_plate = LRADC_SAMPLE_X; ts 310 drivers/input/touchscreen/mxs-lradc-ts.c mxs_lradc_map_ts_channel(ts, TOUCHSCREEN_VCHANNEL1, TS_CH_YP); ts 311 drivers/input/touchscreen/mxs-lradc-ts.c mxs_lradc_setup_ts_channel(ts, TOUCHSCREEN_VCHANNEL1); ts 326 drivers/input/touchscreen/mxs-lradc-ts.c static void mxs_lradc_prepare_y_pos(struct mxs_lradc_ts *ts) ts 328 drivers/input/touchscreen/mxs-lradc-ts.c struct mxs_lradc *lradc = ts->lradc; ts 331 drivers/input/touchscreen/mxs-lradc-ts.c ts->base + LRADC_CTRL0 + STMP_OFFSET_REG_CLR); ts 333 drivers/input/touchscreen/mxs-lradc-ts.c ts->base + LRADC_CTRL0 + STMP_OFFSET_REG_SET); ts 335 drivers/input/touchscreen/mxs-lradc-ts.c ts->cur_plate = LRADC_SAMPLE_Y; ts 336 drivers/input/touchscreen/mxs-lradc-ts.c mxs_lradc_map_ts_channel(ts, TOUCHSCREEN_VCHANNEL1, TS_CH_XM); ts 337 drivers/input/touchscreen/mxs-lradc-ts.c mxs_lradc_setup_ts_channel(ts, TOUCHSCREEN_VCHANNEL1); ts 352 drivers/input/touchscreen/mxs-lradc-ts.c static void mxs_lradc_prepare_pressure(struct mxs_lradc_ts *ts) ts 354 drivers/input/touchscreen/mxs-lradc-ts.c struct mxs_lradc *lradc = ts->lradc; ts 357 drivers/input/touchscreen/mxs-lradc-ts.c ts->base + LRADC_CTRL0 + STMP_OFFSET_REG_CLR); ts 359 drivers/input/touchscreen/mxs-lradc-ts.c ts->base + LRADC_CTRL0 + STMP_OFFSET_REG_SET); ts 361 drivers/input/touchscreen/mxs-lradc-ts.c ts->cur_plate = LRADC_SAMPLE_PRESSURE; ts 362 drivers/input/touchscreen/mxs-lradc-ts.c mxs_lradc_map_ts_channel(ts, TOUCHSCREEN_VCHANNEL1, TS_CH_YM); ts 363 drivers/input/touchscreen/mxs-lradc-ts.c mxs_lradc_map_ts_channel(ts, TOUCHSCREEN_VCHANNEL2, TS_CH_XP); ts 364 drivers/input/touchscreen/mxs-lradc-ts.c mxs_lradc_setup_ts_pressure(ts, TOUCHSCREEN_VCHANNEL2, ts 368 drivers/input/touchscreen/mxs-lradc-ts.c static void mxs_lradc_enable_touch_detection(struct mxs_lradc_ts *ts) ts 370 drivers/input/touchscreen/mxs-lradc-ts.c mxs_lradc_setup_touch_detection(ts); ts 372 drivers/input/touchscreen/mxs-lradc-ts.c ts->cur_plate = LRADC_TOUCH; ts 374 drivers/input/touchscreen/mxs-lradc-ts.c ts->base + LRADC_CTRL1 + STMP_OFFSET_REG_CLR); ts 376 drivers/input/touchscreen/mxs-lradc-ts.c ts->base + LRADC_CTRL1 + STMP_OFFSET_REG_SET); ts 379 drivers/input/touchscreen/mxs-lradc-ts.c static void mxs_lradc_start_touch_event(struct mxs_lradc_ts *ts) ts 382 drivers/input/touchscreen/mxs-lradc-ts.c ts->base + LRADC_CTRL1 + STMP_OFFSET_REG_CLR); ts 384 drivers/input/touchscreen/mxs-lradc-ts.c ts->base + LRADC_CTRL1 + STMP_OFFSET_REG_SET); ts 389 drivers/input/touchscreen/mxs-lradc-ts.c mxs_lradc_prepare_y_pos(ts); ts 392 drivers/input/touchscreen/mxs-lradc-ts.c static void mxs_lradc_report_ts_event(struct mxs_lradc_ts *ts) ts 394 drivers/input/touchscreen/mxs-lradc-ts.c input_report_abs(ts->ts_input, ABS_X, ts->ts_x_pos); ts 395 drivers/input/touchscreen/mxs-lradc-ts.c input_report_abs(ts->ts_input, ABS_Y, ts->ts_y_pos); ts 396 drivers/input/touchscreen/mxs-lradc-ts.c input_report_abs(ts->ts_input, ABS_PRESSURE, ts->ts_pressure); ts 397 drivers/input/touchscreen/mxs-lradc-ts.c input_report_key(ts->ts_input, BTN_TOUCH, 1); ts 398 drivers/input/touchscreen/mxs-lradc-ts.c input_sync(ts->ts_input); ts 401 drivers/input/touchscreen/mxs-lradc-ts.c static void mxs_lradc_complete_touch_event(struct mxs_lradc_ts *ts) ts 403 drivers/input/touchscreen/mxs-lradc-ts.c mxs_lradc_setup_touch_detection(ts); ts 404 drivers/input/touchscreen/mxs-lradc-ts.c ts->cur_plate = LRADC_SAMPLE_VALID; ts 409 drivers/input/touchscreen/mxs-lradc-ts.c writel(0, ts->base + LRADC_CH(TOUCHSCREEN_VCHANNEL1)); ts 412 drivers/input/touchscreen/mxs-lradc-ts.c ts->base + LRADC_CTRL1 + STMP_OFFSET_REG_CLR); ts 415 drivers/input/touchscreen/mxs-lradc-ts.c ts->base + LRADC_DELAY(2)); ts 422 drivers/input/touchscreen/mxs-lradc-ts.c static void mxs_lradc_finish_touch_event(struct mxs_lradc_ts *ts, bool valid) ts 425 drivers/input/touchscreen/mxs-lradc-ts.c if (valid && mxs_lradc_check_touch_event(ts)) { ts 426 drivers/input/touchscreen/mxs-lradc-ts.c ts->ts_valid = true; ts 427 drivers/input/touchscreen/mxs-lradc-ts.c mxs_lradc_report_ts_event(ts); ts 431 drivers/input/touchscreen/mxs-lradc-ts.c if (mxs_lradc_check_touch_event(ts)) { ts 432 drivers/input/touchscreen/mxs-lradc-ts.c mxs_lradc_prepare_y_pos(ts); ts 436 drivers/input/touchscreen/mxs-lradc-ts.c if (ts->ts_valid) { ts 438 drivers/input/touchscreen/mxs-lradc-ts.c ts->ts_valid = false; ts 439 drivers/input/touchscreen/mxs-lradc-ts.c input_report_key(ts->ts_input, BTN_TOUCH, 0); ts 440 drivers/input/touchscreen/mxs-lradc-ts.c input_sync(ts->ts_input); ts 444 drivers/input/touchscreen/mxs-lradc-ts.c ts->cur_plate = LRADC_TOUCH; ts 445 drivers/input/touchscreen/mxs-lradc-ts.c writel(0, ts->base + LRADC_DELAY(2)); ts 446 drivers/input/touchscreen/mxs-lradc-ts.c writel(0, ts->base + LRADC_DELAY(3)); ts 450 drivers/input/touchscreen/mxs-lradc-ts.c ts->base + LRADC_CTRL1 + STMP_OFFSET_REG_CLR); ts 452 drivers/input/touchscreen/mxs-lradc-ts.c ts->base + LRADC_CTRL1 + STMP_OFFSET_REG_SET); ts 456 drivers/input/touchscreen/mxs-lradc-ts.c static void mxs_lradc_handle_touch(struct mxs_lradc_ts *ts) ts 458 drivers/input/touchscreen/mxs-lradc-ts.c switch (ts->cur_plate) { ts 460 drivers/input/touchscreen/mxs-lradc-ts.c if (mxs_lradc_check_touch_event(ts)) ts 461 drivers/input/touchscreen/mxs-lradc-ts.c mxs_lradc_start_touch_event(ts); ts 463 drivers/input/touchscreen/mxs-lradc-ts.c ts->base + LRADC_CTRL1 + STMP_OFFSET_REG_CLR); ts 467 drivers/input/touchscreen/mxs-lradc-ts.c ts->ts_y_pos = ts 468 drivers/input/touchscreen/mxs-lradc-ts.c mxs_lradc_ts_read_raw_channel(ts, TOUCHSCREEN_VCHANNEL1); ts 469 drivers/input/touchscreen/mxs-lradc-ts.c mxs_lradc_prepare_x_pos(ts); ts 473 drivers/input/touchscreen/mxs-lradc-ts.c ts->ts_x_pos = ts 474 drivers/input/touchscreen/mxs-lradc-ts.c mxs_lradc_ts_read_raw_channel(ts, TOUCHSCREEN_VCHANNEL1); ts 475 drivers/input/touchscreen/mxs-lradc-ts.c mxs_lradc_prepare_pressure(ts); ts 479 drivers/input/touchscreen/mxs-lradc-ts.c ts->ts_pressure = ts 480 drivers/input/touchscreen/mxs-lradc-ts.c mxs_lradc_read_ts_pressure(ts, ts 483 drivers/input/touchscreen/mxs-lradc-ts.c mxs_lradc_complete_touch_event(ts); ts 487 drivers/input/touchscreen/mxs-lradc-ts.c mxs_lradc_finish_touch_event(ts, 1); ts 495 drivers/input/touchscreen/mxs-lradc-ts.c struct mxs_lradc_ts *ts = data; ts 496 drivers/input/touchscreen/mxs-lradc-ts.c struct mxs_lradc *lradc = ts->lradc; ts 497 drivers/input/touchscreen/mxs-lradc-ts.c unsigned long reg = readl(ts->base + LRADC_CTRL1); ts 509 drivers/input/touchscreen/mxs-lradc-ts.c spin_lock_irqsave(&ts->lock, flags); ts 510 drivers/input/touchscreen/mxs-lradc-ts.c mxs_lradc_handle_touch(ts); ts 511 drivers/input/touchscreen/mxs-lradc-ts.c spin_unlock_irqrestore(&ts->lock, flags); ts 516 drivers/input/touchscreen/mxs-lradc-ts.c ts->base + LRADC_CTRL1 + STMP_OFFSET_REG_CLR); ts 524 drivers/input/touchscreen/mxs-lradc-ts.c struct mxs_lradc_ts *ts = input_get_drvdata(dev); ts 527 drivers/input/touchscreen/mxs-lradc-ts.c mxs_lradc_enable_touch_detection(ts); ts 532 drivers/input/touchscreen/mxs-lradc-ts.c static void mxs_lradc_ts_stop(struct mxs_lradc_ts *ts) ts 535 drivers/input/touchscreen/mxs-lradc-ts.c struct mxs_lradc *lradc = ts->lradc; ts 541 drivers/input/touchscreen/mxs-lradc-ts.c ts->base + LRADC_CTRL1 + STMP_OFFSET_REG_CLR); ts 545 drivers/input/touchscreen/mxs-lradc-ts.c ts->base + LRADC_CTRL0 + STMP_OFFSET_REG_CLR); ts 548 drivers/input/touchscreen/mxs-lradc-ts.c ts->base + LRADC_CTRL1 + STMP_OFFSET_REG_CLR); ts 551 drivers/input/touchscreen/mxs-lradc-ts.c writel(0, ts->base + LRADC_DELAY(i)); ts 556 drivers/input/touchscreen/mxs-lradc-ts.c struct mxs_lradc_ts *ts = input_get_drvdata(dev); ts 558 drivers/input/touchscreen/mxs-lradc-ts.c mxs_lradc_ts_stop(ts); ts 561 drivers/input/touchscreen/mxs-lradc-ts.c static void mxs_lradc_ts_hw_init(struct mxs_lradc_ts *ts) ts 563 drivers/input/touchscreen/mxs-lradc-ts.c struct mxs_lradc *lradc = ts->lradc; ts 568 drivers/input/touchscreen/mxs-lradc-ts.c ts->base + LRADC_CTRL0 + STMP_OFFSET_REG_CLR); ts 572 drivers/input/touchscreen/mxs-lradc-ts.c ts->base + LRADC_CTRL0 + STMP_OFFSET_REG_SET); ts 576 drivers/input/touchscreen/mxs-lradc-ts.c static int mxs_lradc_ts_register(struct mxs_lradc_ts *ts) ts 579 drivers/input/touchscreen/mxs-lradc-ts.c struct device *dev = ts->dev; ts 597 drivers/input/touchscreen/mxs-lradc-ts.c ts->ts_input = input; ts 598 drivers/input/touchscreen/mxs-lradc-ts.c input_set_drvdata(input, ts); ts 608 drivers/input/touchscreen/mxs-lradc-ts.c struct mxs_lradc_ts *ts; ts 612 drivers/input/touchscreen/mxs-lradc-ts.c ts = devm_kzalloc(dev, sizeof(*ts), GFP_KERNEL); ts 613 drivers/input/touchscreen/mxs-lradc-ts.c if (!ts) ts 616 drivers/input/touchscreen/mxs-lradc-ts.c platform_set_drvdata(pdev, ts); ts 618 drivers/input/touchscreen/mxs-lradc-ts.c ts->lradc = lradc; ts 619 drivers/input/touchscreen/mxs-lradc-ts.c ts->dev = dev; ts 620 drivers/input/touchscreen/mxs-lradc-ts.c spin_lock_init(&ts->lock); ts 622 drivers/input/touchscreen/mxs-lradc-ts.c ts->base = devm_platform_ioremap_resource(pdev, 0); ts 623 drivers/input/touchscreen/mxs-lradc-ts.c if (IS_ERR(ts->base)) ts 624 drivers/input/touchscreen/mxs-lradc-ts.c return PTR_ERR(ts->base); ts 632 drivers/input/touchscreen/mxs-lradc-ts.c ts->over_sample_cnt = 4; ts 635 drivers/input/touchscreen/mxs-lradc-ts.c ts->over_sample_cnt = adapt; ts 637 drivers/input/touchscreen/mxs-lradc-ts.c dev_err(ts->dev, "Invalid sample count (%u)\n", ts 644 drivers/input/touchscreen/mxs-lradc-ts.c ts->over_sample_delay = 2; ts 647 drivers/input/touchscreen/mxs-lradc-ts.c ts->over_sample_delay = adapt; ts 649 drivers/input/touchscreen/mxs-lradc-ts.c dev_err(ts->dev, "Invalid sample delay (%u)\n", ts 656 drivers/input/touchscreen/mxs-lradc-ts.c ts->settling_delay = 10; ts 659 drivers/input/touchscreen/mxs-lradc-ts.c ts->settling_delay = adapt; ts 661 drivers/input/touchscreen/mxs-lradc-ts.c dev_err(ts->dev, "Invalid settling delay (%u)\n", ts 667 drivers/input/touchscreen/mxs-lradc-ts.c ret = stmp_reset_block(ts->base); ts 671 drivers/input/touchscreen/mxs-lradc-ts.c mxs_lradc_ts_hw_init(ts); ts 680 drivers/input/touchscreen/mxs-lradc-ts.c mxs_lradc_ts_stop(ts); ts 684 drivers/input/touchscreen/mxs-lradc-ts.c 0, mxs_lradc_ts_irq_names[i], ts); ts 689 drivers/input/touchscreen/mxs-lradc-ts.c return mxs_lradc_ts_register(ts); ts 97 drivers/input/touchscreen/pixcir_i2c_ts.c static void pixcir_ts_report(struct pixcir_i2c_ts_data *ts, ts 102 drivers/input/touchscreen/pixcir_i2c_ts.c struct device *dev = &ts->client->dev; ts 103 drivers/input/touchscreen/pixcir_i2c_ts.c const struct pixcir_i2c_chip_data *chip = ts->chip; ts 109 drivers/input/touchscreen/pixcir_i2c_ts.c if (!ts->chip->has_hw_ids) ts 110 drivers/input/touchscreen/pixcir_i2c_ts.c input_mt_assign_slots(ts->input, slots, report->pos, n, 0); ts 114 drivers/input/touchscreen/pixcir_i2c_ts.c slot = input_mt_get_slot_by_key(ts->input, ts 125 drivers/input/touchscreen/pixcir_i2c_ts.c input_mt_slot(ts->input, slot); ts 126 drivers/input/touchscreen/pixcir_i2c_ts.c input_mt_report_slot_state(ts->input, MT_TOOL_FINGER, true); ts 128 drivers/input/touchscreen/pixcir_i2c_ts.c input_report_abs(ts->input, ABS_MT_POSITION_X, ts 130 drivers/input/touchscreen/pixcir_i2c_ts.c input_report_abs(ts->input, ABS_MT_POSITION_Y, ts 137 drivers/input/touchscreen/pixcir_i2c_ts.c input_mt_sync_frame(ts->input); ts 138 drivers/input/touchscreen/pixcir_i2c_ts.c input_sync(ts->input); ts 182 drivers/input/touchscreen/pixcir_i2c_ts.c static int pixcir_set_power_mode(struct pixcir_i2c_ts_data *ts, ts 185 drivers/input/touchscreen/pixcir_i2c_ts.c struct device *dev = &ts->client->dev; ts 189 drivers/input/touchscreen/pixcir_i2c_ts.c if (ts->gpio_wake) ts 190 drivers/input/touchscreen/pixcir_i2c_ts.c gpiod_set_value_cansleep(ts->gpio_wake, 1); ts 193 drivers/input/touchscreen/pixcir_i2c_ts.c ret = i2c_smbus_read_byte_data(ts->client, PIXCIR_REG_POWER_MODE); ts 206 drivers/input/touchscreen/pixcir_i2c_ts.c ret = i2c_smbus_write_byte_data(ts->client, PIXCIR_REG_POWER_MODE, ret); ts 214 drivers/input/touchscreen/pixcir_i2c_ts.c if (ts->gpio_wake) ts 215 drivers/input/touchscreen/pixcir_i2c_ts.c gpiod_set_value_cansleep(ts->gpio_wake, 0); ts 226 drivers/input/touchscreen/pixcir_i2c_ts.c static int pixcir_set_int_mode(struct pixcir_i2c_ts_data *ts, ts 229 drivers/input/touchscreen/pixcir_i2c_ts.c struct device *dev = &ts->client->dev; ts 232 drivers/input/touchscreen/pixcir_i2c_ts.c ret = i2c_smbus_read_byte_data(ts->client, PIXCIR_REG_INT_MODE); ts 247 drivers/input/touchscreen/pixcir_i2c_ts.c ret = i2c_smbus_write_byte_data(ts->client, PIXCIR_REG_INT_MODE, ret); ts 260 drivers/input/touchscreen/pixcir_i2c_ts.c static int pixcir_int_enable(struct pixcir_i2c_ts_data *ts, bool enable) ts 262 drivers/input/touchscreen/pixcir_i2c_ts.c struct device *dev = &ts->client->dev; ts 265 drivers/input/touchscreen/pixcir_i2c_ts.c ret = i2c_smbus_read_byte_data(ts->client, PIXCIR_REG_INT_MODE); ts 277 drivers/input/touchscreen/pixcir_i2c_ts.c ret = i2c_smbus_write_byte_data(ts->client, PIXCIR_REG_INT_MODE, ret); ts 287 drivers/input/touchscreen/pixcir_i2c_ts.c static int pixcir_start(struct pixcir_i2c_ts_data *ts) ts 289 drivers/input/touchscreen/pixcir_i2c_ts.c struct device *dev = &ts->client->dev; ts 292 drivers/input/touchscreen/pixcir_i2c_ts.c if (ts->gpio_enable) { ts 293 drivers/input/touchscreen/pixcir_i2c_ts.c gpiod_set_value_cansleep(ts->gpio_enable, 1); ts 298 drivers/input/touchscreen/pixcir_i2c_ts.c error = pixcir_set_int_mode(ts, PIXCIR_INT_LEVEL_TOUCH, 0); ts 304 drivers/input/touchscreen/pixcir_i2c_ts.c ts->running = true; ts 308 drivers/input/touchscreen/pixcir_i2c_ts.c error = pixcir_int_enable(ts, true); ts 318 drivers/input/touchscreen/pixcir_i2c_ts.c static int pixcir_stop(struct pixcir_i2c_ts_data *ts) ts 323 drivers/input/touchscreen/pixcir_i2c_ts.c error = pixcir_int_enable(ts, false); ts 325 drivers/input/touchscreen/pixcir_i2c_ts.c dev_err(&ts->client->dev, ts 332 drivers/input/touchscreen/pixcir_i2c_ts.c ts->running = false; ts 336 drivers/input/touchscreen/pixcir_i2c_ts.c synchronize_irq(ts->client->irq); ts 338 drivers/input/touchscreen/pixcir_i2c_ts.c if (ts->gpio_enable) ts 339 drivers/input/touchscreen/pixcir_i2c_ts.c gpiod_set_value_cansleep(ts->gpio_enable, 0); ts 346 drivers/input/touchscreen/pixcir_i2c_ts.c struct pixcir_i2c_ts_data *ts = input_get_drvdata(dev); ts 348 drivers/input/touchscreen/pixcir_i2c_ts.c return pixcir_start(ts); ts 353 drivers/input/touchscreen/pixcir_i2c_ts.c struct pixcir_i2c_ts_data *ts = input_get_drvdata(dev); ts 355 drivers/input/touchscreen/pixcir_i2c_ts.c pixcir_stop(ts); ts 361 drivers/input/touchscreen/pixcir_i2c_ts.c struct pixcir_i2c_ts_data *ts = i2c_get_clientdata(client); ts 362 drivers/input/touchscreen/pixcir_i2c_ts.c struct input_dev *input = ts->input; ts 369 drivers/input/touchscreen/pixcir_i2c_ts.c ret = pixcir_start(ts); ts 376 drivers/input/touchscreen/pixcir_i2c_ts.c ret = pixcir_stop(ts); ts 388 drivers/input/touchscreen/pixcir_i2c_ts.c struct pixcir_i2c_ts_data *ts = i2c_get_clientdata(client); ts 389 drivers/input/touchscreen/pixcir_i2c_ts.c struct input_dev *input = ts->input; ts 396 drivers/input/touchscreen/pixcir_i2c_ts.c ret = pixcir_stop(ts); ts 403 drivers/input/touchscreen/pixcir_i2c_ts.c ret = pixcir_start(ts); ts 63 drivers/input/touchscreen/raspberrypi-ts.c struct rpi_ts *ts = dev->private; ts 72 drivers/input/touchscreen/raspberrypi-ts.c memcpy_fromio(®s, ts->fw_regs_va, sizeof(regs)); ts 80 drivers/input/touchscreen/raspberrypi-ts.c ts->fw_regs_va + offsetof(struct rpi_ts_regs, num_points)); ts 83 drivers/input/touchscreen/raspberrypi-ts.c (regs.num_points == 0 && ts->known_ids == 0)) ts 98 drivers/input/touchscreen/raspberrypi-ts.c touchscreen_report_pos(input, &ts->prop, x, y, true); ts 102 drivers/input/touchscreen/raspberrypi-ts.c released_ids = ts->known_ids & ~modified_ids; ts 108 drivers/input/touchscreen/raspberrypi-ts.c ts->known_ids = modified_ids; ts 116 drivers/input/touchscreen/raspberrypi-ts.c struct rpi_ts *ts = data; ts 117 drivers/input/touchscreen/raspberrypi-ts.c struct device *dev = &ts->pdev->dev; ts 119 drivers/input/touchscreen/raspberrypi-ts.c dma_free_coherent(dev, PAGE_SIZE, ts->fw_regs_va, ts->fw_regs_phys); ts 130 drivers/input/touchscreen/raspberrypi-ts.c struct rpi_ts *ts; ts 145 drivers/input/touchscreen/raspberrypi-ts.c ts = devm_kzalloc(dev, sizeof(*ts), GFP_KERNEL); ts 146 drivers/input/touchscreen/raspberrypi-ts.c if (!ts) ts 148 drivers/input/touchscreen/raspberrypi-ts.c ts->pdev = pdev; ts 150 drivers/input/touchscreen/raspberrypi-ts.c ts->fw_regs_va = dma_alloc_coherent(dev, PAGE_SIZE, &ts->fw_regs_phys, ts 152 drivers/input/touchscreen/raspberrypi-ts.c if (!ts->fw_regs_va) { ts 157 drivers/input/touchscreen/raspberrypi-ts.c error = devm_add_action_or_reset(dev, rpi_ts_dma_cleanup, ts); ts 164 drivers/input/touchscreen/raspberrypi-ts.c touchbuf = (u32)ts->fw_regs_phys; ts 178 drivers/input/touchscreen/raspberrypi-ts.c ts->poll_dev = poll_dev; ts 185 drivers/input/touchscreen/raspberrypi-ts.c poll_dev->private = ts; ts 191 drivers/input/touchscreen/raspberrypi-ts.c touchscreen_parse_properties(input, true, &ts->prop); ts 257 drivers/input/touchscreen/raydium_i2c_ts.c static int raydium_i2c_query_ts_info(struct raydium_data *ts) ts 259 drivers/input/touchscreen/raydium_i2c_ts.c struct i2c_client *client = ts->client; ts 276 drivers/input/touchscreen/raydium_i2c_ts.c if (ts->report_data && ts->pkg_size != data_info.pkg_size) { ts 279 drivers/input/touchscreen/raydium_i2c_ts.c ts->pkg_size, data_info.pkg_size); ts 281 drivers/input/touchscreen/raydium_i2c_ts.c ts->pkg_size = data_info.pkg_size; ts 282 drivers/input/touchscreen/raydium_i2c_ts.c ts->report_size = ts->pkg_size - RM_PACKET_CRC_SIZE; ts 285 drivers/input/touchscreen/raydium_i2c_ts.c ts->contact_size = data_info.tp_info_size; ts 286 drivers/input/touchscreen/raydium_i2c_ts.c ts->data_bank_addr = le32_to_cpu(data_info.data_bank_addr); ts 290 drivers/input/touchscreen/raydium_i2c_ts.c ts->data_bank_addr, ts->report_size, ts->contact_size); ts 300 drivers/input/touchscreen/raydium_i2c_ts.c &ts->info, sizeof(ts->info)); ts 311 drivers/input/touchscreen/raydium_i2c_ts.c static int raydium_i2c_check_fw_status(struct raydium_data *ts) ts 313 drivers/input/touchscreen/raydium_i2c_ts.c struct i2c_client *client = ts->client; ts 322 drivers/input/touchscreen/raydium_i2c_ts.c ts->boot_mode = RAYDIUM_TS_BLDR; ts 324 drivers/input/touchscreen/raydium_i2c_ts.c ts->boot_mode = RAYDIUM_TS_MAIN; ts 331 drivers/input/touchscreen/raydium_i2c_ts.c static int raydium_i2c_initialize(struct raydium_data *ts) ts 333 drivers/input/touchscreen/raydium_i2c_ts.c struct i2c_client *client = ts->client; ts 340 drivers/input/touchscreen/raydium_i2c_ts.c error = raydium_i2c_check_fw_status(ts); ts 347 drivers/input/touchscreen/raydium_i2c_ts.c if (ts->boot_mode == RAYDIUM_TS_BLDR || ts 348 drivers/input/touchscreen/raydium_i2c_ts.c ts->boot_mode == RAYDIUM_TS_MAIN) { ts 354 drivers/input/touchscreen/raydium_i2c_ts.c ts->boot_mode = RAYDIUM_TS_BLDR; ts 356 drivers/input/touchscreen/raydium_i2c_ts.c if (ts->boot_mode == RAYDIUM_TS_BLDR) { ts 357 drivers/input/touchscreen/raydium_i2c_ts.c ts->info.hw_ver = cpu_to_le32(0xffffffffUL); ts 358 drivers/input/touchscreen/raydium_i2c_ts.c ts->info.main_ver = 0xff; ts 359 drivers/input/touchscreen/raydium_i2c_ts.c ts->info.sub_ver = 0xff; ts 361 drivers/input/touchscreen/raydium_i2c_ts.c raydium_i2c_query_ts_info(ts); ts 621 drivers/input/touchscreen/raydium_i2c_ts.c static int raydium_i2c_do_update_firmware(struct raydium_data *ts, ts 624 drivers/input/touchscreen/raydium_i2c_ts.c struct i2c_client *client = ts->client; ts 638 drivers/input/touchscreen/raydium_i2c_ts.c error = raydium_i2c_check_fw_status(ts); ts 644 drivers/input/touchscreen/raydium_i2c_ts.c if (ts->boot_mode == RAYDIUM_TS_MAIN) { ts 648 drivers/input/touchscreen/raydium_i2c_ts.c error = raydium_i2c_check_fw_status(ts); ts 656 drivers/input/touchscreen/raydium_i2c_ts.c if (ts->boot_mode == RAYDIUM_TS_BLDR) ts 661 drivers/input/touchscreen/raydium_i2c_ts.c if (ts->boot_mode == RAYDIUM_TS_MAIN) { ts 712 drivers/input/touchscreen/raydium_i2c_ts.c error = raydium_i2c_check_fw_status(ts); ts 720 drivers/input/touchscreen/raydium_i2c_ts.c if (ts->boot_mode != RAYDIUM_TS_MAIN) { ts 742 drivers/input/touchscreen/raydium_i2c_ts.c static int raydium_i2c_fw_update(struct raydium_data *ts) ts 744 drivers/input/touchscreen/raydium_i2c_ts.c struct i2c_client *client = ts->client; ts 750 drivers/input/touchscreen/raydium_i2c_ts.c le32_to_cpu(ts->info.hw_ver)); ts 764 drivers/input/touchscreen/raydium_i2c_ts.c error = raydium_i2c_do_update_firmware(ts, fw); ts 767 drivers/input/touchscreen/raydium_i2c_ts.c ts->boot_mode = RAYDIUM_TS_BLDR; ts 771 drivers/input/touchscreen/raydium_i2c_ts.c error = raydium_i2c_initialize(ts); ts 776 drivers/input/touchscreen/raydium_i2c_ts.c ts->boot_mode = RAYDIUM_TS_BLDR; ts 780 drivers/input/touchscreen/raydium_i2c_ts.c ts->boot_mode = RAYDIUM_TS_MAIN; ts 794 drivers/input/touchscreen/raydium_i2c_ts.c static void raydium_mt_event(struct raydium_data *ts) ts 798 drivers/input/touchscreen/raydium_i2c_ts.c for (i = 0; i < ts->report_size / ts->contact_size; i++) { ts 799 drivers/input/touchscreen/raydium_i2c_ts.c u8 *contact = &ts->report_data[ts->contact_size * i]; ts 803 drivers/input/touchscreen/raydium_i2c_ts.c input_mt_slot(ts->input, i); ts 804 drivers/input/touchscreen/raydium_i2c_ts.c input_mt_report_slot_state(ts->input, MT_TOOL_FINGER, state); ts 809 drivers/input/touchscreen/raydium_i2c_ts.c input_report_abs(ts->input, ABS_MT_POSITION_X, ts 811 drivers/input/touchscreen/raydium_i2c_ts.c input_report_abs(ts->input, ABS_MT_POSITION_Y, ts 813 drivers/input/touchscreen/raydium_i2c_ts.c input_report_abs(ts->input, ABS_MT_PRESSURE, ts 819 drivers/input/touchscreen/raydium_i2c_ts.c input_report_abs(ts->input, ABS_MT_TOUCH_MAJOR, max(wx, wy)); ts 820 drivers/input/touchscreen/raydium_i2c_ts.c input_report_abs(ts->input, ABS_MT_TOUCH_MINOR, min(wx, wy)); ts 823 drivers/input/touchscreen/raydium_i2c_ts.c input_mt_sync_frame(ts->input); ts 824 drivers/input/touchscreen/raydium_i2c_ts.c input_sync(ts->input); ts 829 drivers/input/touchscreen/raydium_i2c_ts.c struct raydium_data *ts = _dev; ts 834 drivers/input/touchscreen/raydium_i2c_ts.c if (ts->boot_mode != RAYDIUM_TS_MAIN) ts 837 drivers/input/touchscreen/raydium_i2c_ts.c error = raydium_i2c_read_message(ts->client, ts->data_bank_addr, ts 838 drivers/input/touchscreen/raydium_i2c_ts.c ts->report_data, ts->pkg_size); ts 842 drivers/input/touchscreen/raydium_i2c_ts.c fw_crc = get_unaligned_le16(&ts->report_data[ts->report_size]); ts 843 drivers/input/touchscreen/raydium_i2c_ts.c calc_crc = raydium_calc_chksum(ts->report_data, ts->report_size); ts 845 drivers/input/touchscreen/raydium_i2c_ts.c dev_warn(&ts->client->dev, ts 851 drivers/input/touchscreen/raydium_i2c_ts.c raydium_mt_event(ts); ts 861 drivers/input/touchscreen/raydium_i2c_ts.c struct raydium_data *ts = i2c_get_clientdata(client); ts 863 drivers/input/touchscreen/raydium_i2c_ts.c return sprintf(buf, "%d.%d\n", ts->info.main_ver, ts->info.sub_ver); ts 870 drivers/input/touchscreen/raydium_i2c_ts.c struct raydium_data *ts = i2c_get_clientdata(client); ts 872 drivers/input/touchscreen/raydium_i2c_ts.c return sprintf(buf, "%#04x\n", le32_to_cpu(ts->info.hw_ver)); ts 880 drivers/input/touchscreen/raydium_i2c_ts.c struct raydium_data *ts = i2c_get_clientdata(client); ts 883 drivers/input/touchscreen/raydium_i2c_ts.c ts->boot_mode == RAYDIUM_TS_MAIN ? ts 892 drivers/input/touchscreen/raydium_i2c_ts.c struct raydium_data *ts = i2c_get_clientdata(client); ts 895 drivers/input/touchscreen/raydium_i2c_ts.c error = mutex_lock_interruptible(&ts->sysfs_mutex); ts 899 drivers/input/touchscreen/raydium_i2c_ts.c error = raydium_i2c_fw_update(ts); ts 901 drivers/input/touchscreen/raydium_i2c_ts.c mutex_unlock(&ts->sysfs_mutex); ts 911 drivers/input/touchscreen/raydium_i2c_ts.c struct raydium_data *ts = i2c_get_clientdata(client); ts 915 drivers/input/touchscreen/raydium_i2c_ts.c error = mutex_lock_interruptible(&ts->sysfs_mutex); ts 924 drivers/input/touchscreen/raydium_i2c_ts.c mutex_unlock(&ts->sysfs_mutex); ts 947 drivers/input/touchscreen/raydium_i2c_ts.c static int raydium_i2c_power_on(struct raydium_data *ts) ts 951 drivers/input/touchscreen/raydium_i2c_ts.c if (!ts->reset_gpio) ts 954 drivers/input/touchscreen/raydium_i2c_ts.c gpiod_set_value_cansleep(ts->reset_gpio, 1); ts 956 drivers/input/touchscreen/raydium_i2c_ts.c error = regulator_enable(ts->avdd); ts 958 drivers/input/touchscreen/raydium_i2c_ts.c dev_err(&ts->client->dev, ts 963 drivers/input/touchscreen/raydium_i2c_ts.c error = regulator_enable(ts->vccio); ts 965 drivers/input/touchscreen/raydium_i2c_ts.c regulator_disable(ts->avdd); ts 966 drivers/input/touchscreen/raydium_i2c_ts.c dev_err(&ts->client->dev, ts 974 drivers/input/touchscreen/raydium_i2c_ts.c gpiod_set_value_cansleep(ts->reset_gpio, 0); ts 986 drivers/input/touchscreen/raydium_i2c_ts.c struct raydium_data *ts = _data; ts 988 drivers/input/touchscreen/raydium_i2c_ts.c if (ts->reset_gpio) { ts 989 drivers/input/touchscreen/raydium_i2c_ts.c gpiod_set_value_cansleep(ts->reset_gpio, 1); ts 990 drivers/input/touchscreen/raydium_i2c_ts.c regulator_disable(ts->vccio); ts 991 drivers/input/touchscreen/raydium_i2c_ts.c regulator_disable(ts->avdd); ts 999 drivers/input/touchscreen/raydium_i2c_ts.c struct raydium_data *ts; ts 1008 drivers/input/touchscreen/raydium_i2c_ts.c ts = devm_kzalloc(&client->dev, sizeof(*ts), GFP_KERNEL); ts 1009 drivers/input/touchscreen/raydium_i2c_ts.c if (!ts) ts 1012 drivers/input/touchscreen/raydium_i2c_ts.c mutex_init(&ts->sysfs_mutex); ts 1014 drivers/input/touchscreen/raydium_i2c_ts.c ts->client = client; ts 1015 drivers/input/touchscreen/raydium_i2c_ts.c i2c_set_clientdata(client, ts); ts 1017 drivers/input/touchscreen/raydium_i2c_ts.c ts->avdd = devm_regulator_get(&client->dev, "avdd"); ts 1018 drivers/input/touchscreen/raydium_i2c_ts.c if (IS_ERR(ts->avdd)) { ts 1019 drivers/input/touchscreen/raydium_i2c_ts.c error = PTR_ERR(ts->avdd); ts 1026 drivers/input/touchscreen/raydium_i2c_ts.c ts->vccio = devm_regulator_get(&client->dev, "vccio"); ts 1027 drivers/input/touchscreen/raydium_i2c_ts.c if (IS_ERR(ts->vccio)) { ts 1028 drivers/input/touchscreen/raydium_i2c_ts.c error = PTR_ERR(ts->vccio); ts 1035 drivers/input/touchscreen/raydium_i2c_ts.c ts->reset_gpio = devm_gpiod_get_optional(&client->dev, "reset", ts 1037 drivers/input/touchscreen/raydium_i2c_ts.c if (IS_ERR(ts->reset_gpio)) { ts 1038 drivers/input/touchscreen/raydium_i2c_ts.c error = PTR_ERR(ts->reset_gpio); ts 1045 drivers/input/touchscreen/raydium_i2c_ts.c error = raydium_i2c_power_on(ts); ts 1049 drivers/input/touchscreen/raydium_i2c_ts.c error = devm_add_action(&client->dev, raydium_i2c_power_off, ts); ts 1053 drivers/input/touchscreen/raydium_i2c_ts.c raydium_i2c_power_off(ts); ts 1064 drivers/input/touchscreen/raydium_i2c_ts.c error = raydium_i2c_initialize(ts); ts 1070 drivers/input/touchscreen/raydium_i2c_ts.c ts->report_data = devm_kmalloc(&client->dev, ts 1071 drivers/input/touchscreen/raydium_i2c_ts.c ts->pkg_size, GFP_KERNEL); ts 1072 drivers/input/touchscreen/raydium_i2c_ts.c if (!ts->report_data) ts 1075 drivers/input/touchscreen/raydium_i2c_ts.c ts->input = devm_input_allocate_device(&client->dev); ts 1076 drivers/input/touchscreen/raydium_i2c_ts.c if (!ts->input) { ts 1081 drivers/input/touchscreen/raydium_i2c_ts.c ts->input->name = "Raydium Touchscreen"; ts 1082 drivers/input/touchscreen/raydium_i2c_ts.c ts->input->id.bustype = BUS_I2C; ts 1084 drivers/input/touchscreen/raydium_i2c_ts.c input_set_abs_params(ts->input, ABS_MT_POSITION_X, ts 1085 drivers/input/touchscreen/raydium_i2c_ts.c 0, le16_to_cpu(ts->info.x_max), 0, 0); ts 1086 drivers/input/touchscreen/raydium_i2c_ts.c input_set_abs_params(ts->input, ABS_MT_POSITION_Y, ts 1087 drivers/input/touchscreen/raydium_i2c_ts.c 0, le16_to_cpu(ts->info.y_max), 0, 0); ts 1088 drivers/input/touchscreen/raydium_i2c_ts.c input_abs_set_res(ts->input, ABS_MT_POSITION_X, ts->info.x_res); ts 1089 drivers/input/touchscreen/raydium_i2c_ts.c input_abs_set_res(ts->input, ABS_MT_POSITION_Y, ts->info.y_res); ts 1091 drivers/input/touchscreen/raydium_i2c_ts.c input_set_abs_params(ts->input, ABS_MT_TOUCH_MAJOR, 0, 255, 0, 0); ts 1092 drivers/input/touchscreen/raydium_i2c_ts.c input_set_abs_params(ts->input, ABS_MT_PRESSURE, 0, 255, 0, 0); ts 1094 drivers/input/touchscreen/raydium_i2c_ts.c error = input_mt_init_slots(ts->input, RM_MAX_TOUCH_NUM, ts 1102 drivers/input/touchscreen/raydium_i2c_ts.c error = input_register_device(ts->input); ts 1111 drivers/input/touchscreen/raydium_i2c_ts.c IRQF_ONESHOT, client->name, ts); ts 1143 drivers/input/touchscreen/raydium_i2c_ts.c struct raydium_data *ts = i2c_get_clientdata(client); ts 1146 drivers/input/touchscreen/raydium_i2c_ts.c if (ts->boot_mode != RAYDIUM_TS_MAIN) ts 1154 drivers/input/touchscreen/raydium_i2c_ts.c ts->wake_irq_enabled = (enable_irq_wake(client->irq) == 0); ts 1156 drivers/input/touchscreen/raydium_i2c_ts.c raydium_i2c_power_off(ts); ts 1165 drivers/input/touchscreen/raydium_i2c_ts.c struct raydium_data *ts = i2c_get_clientdata(client); ts 1168 drivers/input/touchscreen/raydium_i2c_ts.c if (ts->wake_irq_enabled) ts 1172 drivers/input/touchscreen/raydium_i2c_ts.c raydium_i2c_power_on(ts); ts 1173 drivers/input/touchscreen/raydium_i2c_ts.c raydium_i2c_initialize(ts); ts 313 drivers/input/touchscreen/rohm_bu21023.c static int rohm_ts_manual_calibration(struct rohm_ts_data *ts) ts 315 drivers/input/touchscreen/rohm_bu21023.c struct i2c_client *client = ts->client; ts 522 drivers/input/touchscreen/rohm_bu21023.c struct rohm_ts_data *ts = dev_id; ts 523 drivers/input/touchscreen/rohm_bu21023.c struct i2c_client *client = ts->client; ts 524 drivers/input/touchscreen/rohm_bu21023.c struct input_dev *input_dev = ts->input; ts 534 drivers/input/touchscreen/rohm_bu21023.c int prev_finger_count = ts->finger_count; ts 570 drivers/input/touchscreen/rohm_bu21023.c if (++ts->contact_count[0] >= threshold) ts 576 drivers/input/touchscreen/rohm_bu21023.c if (++ts->contact_count[1] >= threshold) ts 591 drivers/input/touchscreen/rohm_bu21023.c if (++ts->contact_count[2] >= threshold) ts 603 drivers/input/touchscreen/rohm_bu21023.c count = ts->contact_count[finger_count]; ts 604 drivers/input/touchscreen/rohm_bu21023.c memset(ts->contact_count, 0, sizeof(ts->contact_count)); ts 605 drivers/input/touchscreen/rohm_bu21023.c ts->contact_count[finger_count] = count; ts 625 drivers/input/touchscreen/rohm_bu21023.c ts->finger_count = finger_count; ts 629 drivers/input/touchscreen/rohm_bu21023.c error = rohm_ts_manual_calibration(ts); ts 734 drivers/input/touchscreen/rohm_bu21023.c struct rohm_ts_data *ts = i2c_get_clientdata(client); ts 736 drivers/input/touchscreen/rohm_bu21023.c return sprintf(buf, "%d\n", !!(ts->setup2 & SWAP_XY)); ts 743 drivers/input/touchscreen/rohm_bu21023.c struct rohm_ts_data *ts = i2c_get_clientdata(client); ts 751 drivers/input/touchscreen/rohm_bu21023.c error = mutex_lock_interruptible(&ts->input->mutex); ts 756 drivers/input/touchscreen/rohm_bu21023.c ts->setup2 |= SWAP_XY; ts 758 drivers/input/touchscreen/rohm_bu21023.c ts->setup2 &= ~SWAP_XY; ts 760 drivers/input/touchscreen/rohm_bu21023.c if (ts->initialized) ts 761 drivers/input/touchscreen/rohm_bu21023.c error = i2c_smbus_write_byte_data(ts->client, COMMON_SETUP2, ts 762 drivers/input/touchscreen/rohm_bu21023.c ts->setup2); ts 764 drivers/input/touchscreen/rohm_bu21023.c mutex_unlock(&ts->input->mutex); ts 773 drivers/input/touchscreen/rohm_bu21023.c struct rohm_ts_data *ts = i2c_get_clientdata(client); ts 775 drivers/input/touchscreen/rohm_bu21023.c return sprintf(buf, "%d\n", !!(ts->setup2 & INV_X)); ts 782 drivers/input/touchscreen/rohm_bu21023.c struct rohm_ts_data *ts = i2c_get_clientdata(client); ts 790 drivers/input/touchscreen/rohm_bu21023.c error = mutex_lock_interruptible(&ts->input->mutex); ts 795 drivers/input/touchscreen/rohm_bu21023.c ts->setup2 |= INV_X; ts 797 drivers/input/touchscreen/rohm_bu21023.c ts->setup2 &= ~INV_X; ts 799 drivers/input/touchscreen/rohm_bu21023.c if (ts->initialized) ts 800 drivers/input/touchscreen/rohm_bu21023.c error = i2c_smbus_write_byte_data(ts->client, COMMON_SETUP2, ts 801 drivers/input/touchscreen/rohm_bu21023.c ts->setup2); ts 803 drivers/input/touchscreen/rohm_bu21023.c mutex_unlock(&ts->input->mutex); ts 812 drivers/input/touchscreen/rohm_bu21023.c struct rohm_ts_data *ts = i2c_get_clientdata(client); ts 814 drivers/input/touchscreen/rohm_bu21023.c return sprintf(buf, "%d\n", !!(ts->setup2 & INV_Y)); ts 821 drivers/input/touchscreen/rohm_bu21023.c struct rohm_ts_data *ts = i2c_get_clientdata(client); ts 829 drivers/input/touchscreen/rohm_bu21023.c error = mutex_lock_interruptible(&ts->input->mutex); ts 834 drivers/input/touchscreen/rohm_bu21023.c ts->setup2 |= INV_Y; ts 836 drivers/input/touchscreen/rohm_bu21023.c ts->setup2 &= ~INV_Y; ts 838 drivers/input/touchscreen/rohm_bu21023.c if (ts->initialized) ts 840 drivers/input/touchscreen/rohm_bu21023.c ts->setup2); ts 842 drivers/input/touchscreen/rohm_bu21023.c mutex_unlock(&ts->input->mutex); ts 1071 drivers/input/touchscreen/rohm_bu21023.c struct rohm_ts_data *ts = input_get_drvdata(input_dev); ts 1072 drivers/input/touchscreen/rohm_bu21023.c struct i2c_client *client = ts->client; ts 1075 drivers/input/touchscreen/rohm_bu21023.c if (!ts->initialized) { ts 1076 drivers/input/touchscreen/rohm_bu21023.c error = rohm_ts_device_init(client, ts->setup2); ts 1083 drivers/input/touchscreen/rohm_bu21023.c ts->initialized = true; ts 1091 drivers/input/touchscreen/rohm_bu21023.c struct rohm_ts_data *ts = input_get_drvdata(input_dev); ts 1093 drivers/input/touchscreen/rohm_bu21023.c rohm_ts_power_off(ts->client); ts 1095 drivers/input/touchscreen/rohm_bu21023.c ts->initialized = false; ts 1102 drivers/input/touchscreen/rohm_bu21023.c struct rohm_ts_data *ts; ts 1121 drivers/input/touchscreen/rohm_bu21023.c ts = devm_kzalloc(dev, sizeof(struct rohm_ts_data), GFP_KERNEL); ts 1122 drivers/input/touchscreen/rohm_bu21023.c if (!ts) ts 1125 drivers/input/touchscreen/rohm_bu21023.c ts->client = client; ts 1126 drivers/input/touchscreen/rohm_bu21023.c ts->setup2 = MAF_1SAMPLE; ts 1127 drivers/input/touchscreen/rohm_bu21023.c i2c_set_clientdata(client, ts); ts 1138 drivers/input/touchscreen/rohm_bu21023.c ts->input = input; ts 1139 drivers/input/touchscreen/rohm_bu21023.c input_set_drvdata(input, ts); ts 1156 drivers/input/touchscreen/rohm_bu21023.c IRQF_ONESHOT, client->name, ts); ts 76 drivers/input/touchscreen/s3c2410_ts.c static struct s3c2410ts ts; ts 98 drivers/input/touchscreen/s3c2410_ts.c data0 = readl(ts.io + S3C2410_ADCDAT0); ts 99 drivers/input/touchscreen/s3c2410_ts.c data1 = readl(ts.io + S3C2410_ADCDAT1); ts 104 drivers/input/touchscreen/s3c2410_ts.c if (ts.count == (1 << ts.shift)) { ts 105 drivers/input/touchscreen/s3c2410_ts.c ts.xp >>= ts.shift; ts 106 drivers/input/touchscreen/s3c2410_ts.c ts.yp >>= ts.shift; ts 108 drivers/input/touchscreen/s3c2410_ts.c dev_dbg(ts.dev, "%s: X=%lu, Y=%lu, count=%d\n", ts 109 drivers/input/touchscreen/s3c2410_ts.c __func__, ts.xp, ts.yp, ts.count); ts 111 drivers/input/touchscreen/s3c2410_ts.c input_report_abs(ts.input, ABS_X, ts.xp); ts 112 drivers/input/touchscreen/s3c2410_ts.c input_report_abs(ts.input, ABS_Y, ts.yp); ts 114 drivers/input/touchscreen/s3c2410_ts.c input_report_key(ts.input, BTN_TOUCH, 1); ts 115 drivers/input/touchscreen/s3c2410_ts.c input_sync(ts.input); ts 117 drivers/input/touchscreen/s3c2410_ts.c ts.xp = 0; ts 118 drivers/input/touchscreen/s3c2410_ts.c ts.yp = 0; ts 119 drivers/input/touchscreen/s3c2410_ts.c ts.count = 0; ts 122 drivers/input/touchscreen/s3c2410_ts.c s3c_adc_start(ts.client, 0, 1 << ts.shift); ts 124 drivers/input/touchscreen/s3c2410_ts.c ts.xp = 0; ts 125 drivers/input/touchscreen/s3c2410_ts.c ts.yp = 0; ts 126 drivers/input/touchscreen/s3c2410_ts.c ts.count = 0; ts 128 drivers/input/touchscreen/s3c2410_ts.c input_report_key(ts.input, BTN_TOUCH, 0); ts 129 drivers/input/touchscreen/s3c2410_ts.c input_sync(ts.input); ts 131 drivers/input/touchscreen/s3c2410_ts.c writel(WAIT4INT | INT_DOWN, ts.io + S3C2410_ADCTSC); ts 150 drivers/input/touchscreen/s3c2410_ts.c data0 = readl(ts.io + S3C2410_ADCDAT0); ts 151 drivers/input/touchscreen/s3c2410_ts.c data1 = readl(ts.io + S3C2410_ADCDAT1); ts 160 drivers/input/touchscreen/s3c2410_ts.c s3c_adc_start(ts.client, 0, 1 << ts.shift); ts 162 drivers/input/touchscreen/s3c2410_ts.c dev_dbg(ts.dev, "%s: count=%d\n", __func__, ts.count); ts 164 drivers/input/touchscreen/s3c2410_ts.c if (ts.features & FEAT_PEN_IRQ) { ts 166 drivers/input/touchscreen/s3c2410_ts.c writel(0x0, ts.io + S3C64XX_ADCCLRINTPNDNUP); ts 185 drivers/input/touchscreen/s3c2410_ts.c dev_dbg(ts.dev, "%s: %d,%d\n", __func__, data0, data1); ts 187 drivers/input/touchscreen/s3c2410_ts.c ts.xp += data0; ts 188 drivers/input/touchscreen/s3c2410_ts.c ts.yp += data1; ts 190 drivers/input/touchscreen/s3c2410_ts.c ts.count++; ts 213 drivers/input/touchscreen/s3c2410_ts.c ts.io + S3C2410_ADCTSC); ts 216 drivers/input/touchscreen/s3c2410_ts.c writel(WAIT4INT | INT_UP, ts.io + S3C2410_ADCTSC); ts 236 drivers/input/touchscreen/s3c2410_ts.c memset(&ts, 0, sizeof(struct s3c2410ts)); ts 238 drivers/input/touchscreen/s3c2410_ts.c ts.dev = dev; ts 248 drivers/input/touchscreen/s3c2410_ts.c ts.clock = clk_get(dev, "adc"); ts 249 drivers/input/touchscreen/s3c2410_ts.c if (IS_ERR(ts.clock)) { ts 254 drivers/input/touchscreen/s3c2410_ts.c ret = clk_prepare_enable(ts.clock); ts 261 drivers/input/touchscreen/s3c2410_ts.c ts.irq_tc = ret = platform_get_irq(pdev, 0); ts 274 drivers/input/touchscreen/s3c2410_ts.c ts.io = ioremap(res->start, resource_size(res)); ts 275 drivers/input/touchscreen/s3c2410_ts.c if (ts.io == NULL) { ts 283 drivers/input/touchscreen/s3c2410_ts.c info->cfg_gpio(to_platform_device(ts.dev)); ts 285 drivers/input/touchscreen/s3c2410_ts.c ts.client = s3c_adc_register(pdev, s3c24xx_ts_select, ts 287 drivers/input/touchscreen/s3c2410_ts.c if (IS_ERR(ts.client)) { ts 289 drivers/input/touchscreen/s3c2410_ts.c ret = PTR_ERR(ts.client); ts 295 drivers/input/touchscreen/s3c2410_ts.c writel(info->delay & 0xffff, ts.io + S3C2410_ADCDLY); ts 297 drivers/input/touchscreen/s3c2410_ts.c writel(WAIT4INT | INT_DOWN, ts.io + S3C2410_ADCTSC); ts 306 drivers/input/touchscreen/s3c2410_ts.c ts.input = input_dev; ts 307 drivers/input/touchscreen/s3c2410_ts.c ts.input->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS); ts 308 drivers/input/touchscreen/s3c2410_ts.c ts.input->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH); ts 309 drivers/input/touchscreen/s3c2410_ts.c input_set_abs_params(ts.input, ABS_X, 0, 0x3FF, 0, 0); ts 310 drivers/input/touchscreen/s3c2410_ts.c input_set_abs_params(ts.input, ABS_Y, 0, 0x3FF, 0, 0); ts 312 drivers/input/touchscreen/s3c2410_ts.c ts.input->name = "S3C24XX TouchScreen"; ts 313 drivers/input/touchscreen/s3c2410_ts.c ts.input->id.bustype = BUS_HOST; ts 314 drivers/input/touchscreen/s3c2410_ts.c ts.input->id.vendor = 0xDEAD; ts 315 drivers/input/touchscreen/s3c2410_ts.c ts.input->id.product = 0xBEEF; ts 316 drivers/input/touchscreen/s3c2410_ts.c ts.input->id.version = 0x0102; ts 318 drivers/input/touchscreen/s3c2410_ts.c ts.shift = info->oversampling_shift; ts 319 drivers/input/touchscreen/s3c2410_ts.c ts.features = platform_get_device_id(pdev)->driver_data; ts 321 drivers/input/touchscreen/s3c2410_ts.c ret = request_irq(ts.irq_tc, stylus_irq, 0, ts 322 drivers/input/touchscreen/s3c2410_ts.c "s3c2410_ts_pen", ts.input); ts 331 drivers/input/touchscreen/s3c2410_ts.c ret = input_register_device(ts.input); ts 341 drivers/input/touchscreen/s3c2410_ts.c free_irq(ts.irq_tc, ts.input); ts 343 drivers/input/touchscreen/s3c2410_ts.c input_free_device(ts.input); ts 345 drivers/input/touchscreen/s3c2410_ts.c iounmap(ts.io); ts 347 drivers/input/touchscreen/s3c2410_ts.c clk_disable_unprepare(ts.clock); ts 350 drivers/input/touchscreen/s3c2410_ts.c clk_put(ts.clock); ts 362 drivers/input/touchscreen/s3c2410_ts.c free_irq(ts.irq_tc, ts.input); ts 365 drivers/input/touchscreen/s3c2410_ts.c clk_disable_unprepare(ts.clock); ts 366 drivers/input/touchscreen/s3c2410_ts.c clk_put(ts.clock); ts 368 drivers/input/touchscreen/s3c2410_ts.c input_unregister_device(ts.input); ts 369 drivers/input/touchscreen/s3c2410_ts.c iounmap(ts.io); ts 377 drivers/input/touchscreen/s3c2410_ts.c writel(TSC_SLEEP, ts.io + S3C2410_ADCTSC); ts 378 drivers/input/touchscreen/s3c2410_ts.c disable_irq(ts.irq_tc); ts 379 drivers/input/touchscreen/s3c2410_ts.c clk_disable(ts.clock); ts 389 drivers/input/touchscreen/s3c2410_ts.c clk_enable(ts.clock); ts 390 drivers/input/touchscreen/s3c2410_ts.c enable_irq(ts.irq_tc); ts 394 drivers/input/touchscreen/s3c2410_ts.c writel(info->delay & 0xffff, ts.io + S3C2410_ADCDLY); ts 396 drivers/input/touchscreen/s3c2410_ts.c writel(WAIT4INT | INT_DOWN, ts.io + S3C2410_ADCTSC); ts 172 drivers/input/touchscreen/sis_i2c.c static int sis_ts_report_contact(struct sis_ts_data *ts, const u8 *data, u8 id) ts 174 drivers/input/touchscreen/sis_i2c.c struct input_dev *input = ts->input; ts 182 drivers/input/touchscreen/sis_i2c.c dev_err(&ts->client->dev, "Unexpected touch status: %#02x\n", ts 223 drivers/input/touchscreen/sis_i2c.c static void sis_ts_handle_packet(struct sis_ts_data *ts) ts 234 drivers/input/touchscreen/sis_i2c.c error = sis_read_packet(ts->client, ts->packet, ts 242 drivers/input/touchscreen/sis_i2c.c dev_err(&ts->client->dev, ts 248 drivers/input/touchscreen/sis_i2c.c report_id = ts->packet[SIS_PKT_REPORT_OFFSET]; ts 249 drivers/input/touchscreen/sis_i2c.c contact = &ts->packet[SIS_PKT_CONTACT_OFFSET]; ts 253 drivers/input/touchscreen/sis_i2c.c error = sis_ts_report_contact(ts, contact, report_id); ts 272 drivers/input/touchscreen/sis_i2c.c input_mt_sync_frame(ts->input); ts 273 drivers/input/touchscreen/sis_i2c.c input_sync(ts->input); ts 278 drivers/input/touchscreen/sis_i2c.c struct sis_ts_data *ts = dev_id; ts 281 drivers/input/touchscreen/sis_i2c.c sis_ts_handle_packet(ts); ts 282 drivers/input/touchscreen/sis_i2c.c } while (ts->attn_gpio && gpiod_get_value_cansleep(ts->attn_gpio)); ts 287 drivers/input/touchscreen/sis_i2c.c static void sis_ts_reset(struct sis_ts_data *ts) ts 289 drivers/input/touchscreen/sis_i2c.c if (ts->reset_gpio) { ts 292 drivers/input/touchscreen/sis_i2c.c gpiod_set_value(ts->reset_gpio, 1); ts 294 drivers/input/touchscreen/sis_i2c.c gpiod_set_value(ts->reset_gpio, 0); ts 302 drivers/input/touchscreen/sis_i2c.c struct sis_ts_data *ts; ts 306 drivers/input/touchscreen/sis_i2c.c ts = devm_kzalloc(&client->dev, sizeof(*ts), GFP_KERNEL); ts 307 drivers/input/touchscreen/sis_i2c.c if (!ts) ts 310 drivers/input/touchscreen/sis_i2c.c ts->client = client; ts 312 drivers/input/touchscreen/sis_i2c.c ts->attn_gpio = devm_gpiod_get_optional(&client->dev, ts 314 drivers/input/touchscreen/sis_i2c.c if (IS_ERR(ts->attn_gpio)) { ts 315 drivers/input/touchscreen/sis_i2c.c error = PTR_ERR(ts->attn_gpio); ts 322 drivers/input/touchscreen/sis_i2c.c ts->reset_gpio = devm_gpiod_get_optional(&client->dev, ts 324 drivers/input/touchscreen/sis_i2c.c if (IS_ERR(ts->reset_gpio)) { ts 325 drivers/input/touchscreen/sis_i2c.c error = PTR_ERR(ts->reset_gpio); ts 332 drivers/input/touchscreen/sis_i2c.c sis_ts_reset(ts); ts 334 drivers/input/touchscreen/sis_i2c.c ts->input = input = devm_input_allocate_device(&client->dev); ts 361 drivers/input/touchscreen/sis_i2c.c client->name, ts); ts 367 drivers/input/touchscreen/sis_i2c.c error = input_register_device(ts->input); ts 56 drivers/input/touchscreen/st1232.c static int st1232_ts_read_data(struct st1232_ts_data *ts) ts 58 drivers/input/touchscreen/st1232.c struct st1232_ts_finger *finger = ts->finger; ts 59 drivers/input/touchscreen/st1232.c struct i2c_client *client = ts->client; ts 63 drivers/input/touchscreen/st1232.c u8 start_reg = ts->chip_info->start_reg; ts 64 drivers/input/touchscreen/st1232.c u8 *buf = ts->read_buf; ts 72 drivers/input/touchscreen/st1232.c msg[1].addr = ts->client->addr; ts 74 drivers/input/touchscreen/st1232.c msg[1].len = ts->read_buf_len; ts 81 drivers/input/touchscreen/st1232.c for (i = 0, y = 0; i < ts->chip_info->max_fingers; i++, y += 3) { ts 90 drivers/input/touchscreen/st1232.c if (ts->chip_info->have_z) ts 100 drivers/input/touchscreen/st1232.c struct st1232_ts_data *ts = dev_id; ts 101 drivers/input/touchscreen/st1232.c struct st1232_ts_finger *finger = ts->finger; ts 102 drivers/input/touchscreen/st1232.c struct input_dev *input_dev = ts->input_dev; ts 106 drivers/input/touchscreen/st1232.c ret = st1232_ts_read_data(ts); ts 111 drivers/input/touchscreen/st1232.c for (i = 0; i < ts->chip_info->max_fingers; i++) { ts 115 drivers/input/touchscreen/st1232.c if (ts->chip_info->have_z) ts 119 drivers/input/touchscreen/st1232.c touchscreen_report_pos(input_dev, &ts->prop, ts 128 drivers/input/touchscreen/st1232.c if (ts->low_latency_req.dev) { ts 129 drivers/input/touchscreen/st1232.c dev_pm_qos_remove_request(&ts->low_latency_req); ts 130 drivers/input/touchscreen/st1232.c ts->low_latency_req.dev = NULL; ts 132 drivers/input/touchscreen/st1232.c } else if (!ts->low_latency_req.dev) { ts 134 drivers/input/touchscreen/st1232.c dev_pm_qos_add_ancestor_request(&ts->client->dev, ts 135 drivers/input/touchscreen/st1232.c &ts->low_latency_req, ts 146 drivers/input/touchscreen/st1232.c static void st1232_ts_power(struct st1232_ts_data *ts, bool poweron) ts 148 drivers/input/touchscreen/st1232.c if (ts->reset_gpio) ts 149 drivers/input/touchscreen/st1232.c gpiod_set_value_cansleep(ts->reset_gpio, !poweron); ts 179 drivers/input/touchscreen/st1232.c struct st1232_ts_data *ts; ts 202 drivers/input/touchscreen/st1232.c ts = devm_kzalloc(&client->dev, sizeof(*ts), GFP_KERNEL); ts 203 drivers/input/touchscreen/st1232.c if (!ts) ts 206 drivers/input/touchscreen/st1232.c ts->chip_info = match; ts 207 drivers/input/touchscreen/st1232.c ts->finger = devm_kcalloc(&client->dev, ts 208 drivers/input/touchscreen/st1232.c ts->chip_info->max_fingers, sizeof(*finger), ts 210 drivers/input/touchscreen/st1232.c if (!ts->finger) ts 214 drivers/input/touchscreen/st1232.c ts->read_buf_len = ts->chip_info->max_fingers * 4; ts 215 drivers/input/touchscreen/st1232.c ts->read_buf = devm_kzalloc(&client->dev, ts->read_buf_len, GFP_KERNEL); ts 216 drivers/input/touchscreen/st1232.c if (!ts->read_buf) ts 223 drivers/input/touchscreen/st1232.c ts->client = client; ts 224 drivers/input/touchscreen/st1232.c ts->input_dev = input_dev; ts 226 drivers/input/touchscreen/st1232.c ts->reset_gpio = devm_gpiod_get_optional(&client->dev, NULL, ts 228 drivers/input/touchscreen/st1232.c if (IS_ERR(ts->reset_gpio)) { ts 229 drivers/input/touchscreen/st1232.c error = PTR_ERR(ts->reset_gpio); ts 235 drivers/input/touchscreen/st1232.c st1232_ts_power(ts, true); ts 237 drivers/input/touchscreen/st1232.c error = devm_add_action_or_reset(&client->dev, st1232_ts_power_off, ts); ts 253 drivers/input/touchscreen/st1232.c if (ts->chip_info->have_z) ts 255 drivers/input/touchscreen/st1232.c ts->chip_info->max_area, 0, 0); ts 258 drivers/input/touchscreen/st1232.c 0, ts->chip_info->max_x, 0, 0); ts 260 drivers/input/touchscreen/st1232.c 0, ts->chip_info->max_y, 0, 0); ts 262 drivers/input/touchscreen/st1232.c touchscreen_parse_properties(input_dev, true, &ts->prop); ts 267 drivers/input/touchscreen/st1232.c client->name, ts); ts 273 drivers/input/touchscreen/st1232.c error = input_register_device(ts->input_dev); ts 280 drivers/input/touchscreen/st1232.c i2c_set_clientdata(client, ts); ts 289 drivers/input/touchscreen/st1232.c struct st1232_ts_data *ts = i2c_get_clientdata(client); ts 295 drivers/input/touchscreen/st1232.c st1232_ts_power(ts, false); ts 304 drivers/input/touchscreen/st1232.c struct st1232_ts_data *ts = i2c_get_clientdata(client); ts 309 drivers/input/touchscreen/st1232.c st1232_ts_power(ts, true); ts 100 drivers/input/touchscreen/stmpe-ts.c struct stmpe_touch *ts = ts 103 drivers/input/touchscreen/stmpe-ts.c int_sta = stmpe_reg_read(ts->stmpe, STMPE_REG_INT_STA); ts 114 drivers/input/touchscreen/stmpe-ts.c int_sta = stmpe_reg_read(ts->stmpe, STMPE_REG_INT_STA); ts 119 drivers/input/touchscreen/stmpe-ts.c __stmpe_reset_fifo(ts->stmpe); ts 121 drivers/input/touchscreen/stmpe-ts.c input_report_abs(ts->idev, ABS_PRESSURE, 0); ts 122 drivers/input/touchscreen/stmpe-ts.c input_report_key(ts->idev, BTN_TOUCH, 0); ts 123 drivers/input/touchscreen/stmpe-ts.c input_sync(ts->idev); ts 130 drivers/input/touchscreen/stmpe-ts.c struct stmpe_touch *ts = data; ts 136 drivers/input/touchscreen/stmpe-ts.c cancel_delayed_work_sync(&ts->work); ts 144 drivers/input/touchscreen/stmpe-ts.c stmpe_set_bits(ts->stmpe, STMPE_REG_TSC_CTRL, ts 147 drivers/input/touchscreen/stmpe-ts.c stmpe_block_read(ts->stmpe, STMPE_REG_TSC_DATA_XYZ, 4, data_set); ts 153 drivers/input/touchscreen/stmpe-ts.c input_report_abs(ts->idev, ABS_X, x); ts 154 drivers/input/touchscreen/stmpe-ts.c input_report_abs(ts->idev, ABS_Y, y); ts 155 drivers/input/touchscreen/stmpe-ts.c input_report_abs(ts->idev, ABS_PRESSURE, z); ts 156 drivers/input/touchscreen/stmpe-ts.c input_report_key(ts->idev, BTN_TOUCH, 1); ts 157 drivers/input/touchscreen/stmpe-ts.c input_sync(ts->idev); ts 160 drivers/input/touchscreen/stmpe-ts.c __stmpe_reset_fifo(ts->stmpe); ts 163 drivers/input/touchscreen/stmpe-ts.c stmpe_set_bits(ts->stmpe, STMPE_REG_TSC_CTRL, ts 167 drivers/input/touchscreen/stmpe-ts.c schedule_delayed_work(&ts->work, msecs_to_jiffies(50)); ts 172 drivers/input/touchscreen/stmpe-ts.c static int stmpe_init_hw(struct stmpe_touch *ts) ts 176 drivers/input/touchscreen/stmpe-ts.c struct stmpe *stmpe = ts->stmpe; ts 177 drivers/input/touchscreen/stmpe-ts.c struct device *dev = ts->dev; ts 191 drivers/input/touchscreen/stmpe-ts.c tsc_cfg = STMPE_AVE_CTRL(ts->ave_ctrl) | ts 192 drivers/input/touchscreen/stmpe-ts.c STMPE_DET_DELAY(ts->touch_det_delay) | ts 193 drivers/input/touchscreen/stmpe-ts.c STMPE_SETTLING(ts->settling); ts 204 drivers/input/touchscreen/stmpe-ts.c STMPE_FRACTION_Z(0xff), STMPE_FRACTION_Z(ts->fraction_z)); ts 211 drivers/input/touchscreen/stmpe-ts.c STMPE_I_DRIVE(0xff), STMPE_I_DRIVE(ts->i_drive)); ts 236 drivers/input/touchscreen/stmpe-ts.c struct stmpe_touch *ts = input_get_drvdata(dev); ts 239 drivers/input/touchscreen/stmpe-ts.c ret = __stmpe_reset_fifo(ts->stmpe); ts 243 drivers/input/touchscreen/stmpe-ts.c return stmpe_set_bits(ts->stmpe, STMPE_REG_TSC_CTRL, ts 249 drivers/input/touchscreen/stmpe-ts.c struct stmpe_touch *ts = input_get_drvdata(dev); ts 251 drivers/input/touchscreen/stmpe-ts.c cancel_delayed_work_sync(&ts->work); ts 253 drivers/input/touchscreen/stmpe-ts.c stmpe_set_bits(ts->stmpe, STMPE_REG_TSC_CTRL, ts 258 drivers/input/touchscreen/stmpe-ts.c struct stmpe_touch *ts) ts 265 drivers/input/touchscreen/stmpe-ts.c ts->stmpe->sample_time = val; ts 267 drivers/input/touchscreen/stmpe-ts.c ts->stmpe->mod_12b = val; ts 269 drivers/input/touchscreen/stmpe-ts.c ts->stmpe->ref_sel = val; ts 271 drivers/input/touchscreen/stmpe-ts.c ts->stmpe->adc_freq = val; ts 273 drivers/input/touchscreen/stmpe-ts.c ts->ave_ctrl = val; ts 275 drivers/input/touchscreen/stmpe-ts.c ts->touch_det_delay = val; ts 277 drivers/input/touchscreen/stmpe-ts.c ts->settling = val; ts 279 drivers/input/touchscreen/stmpe-ts.c ts->fraction_z = val; ts 281 drivers/input/touchscreen/stmpe-ts.c ts->i_drive = val; ts 288 drivers/input/touchscreen/stmpe-ts.c struct stmpe_touch *ts; ts 297 drivers/input/touchscreen/stmpe-ts.c ts = devm_kzalloc(&pdev->dev, sizeof(*ts), GFP_KERNEL); ts 298 drivers/input/touchscreen/stmpe-ts.c if (!ts) ts 305 drivers/input/touchscreen/stmpe-ts.c platform_set_drvdata(pdev, ts); ts 306 drivers/input/touchscreen/stmpe-ts.c ts->stmpe = stmpe; ts 307 drivers/input/touchscreen/stmpe-ts.c ts->idev = idev; ts 308 drivers/input/touchscreen/stmpe-ts.c ts->dev = &pdev->dev; ts 310 drivers/input/touchscreen/stmpe-ts.c stmpe_ts_get_platform_info(pdev, ts); ts 312 drivers/input/touchscreen/stmpe-ts.c INIT_DELAYED_WORK(&ts->work, stmpe_work); ts 316 drivers/input/touchscreen/stmpe-ts.c IRQF_ONESHOT, STMPE_TS_NAME, ts); ts 322 drivers/input/touchscreen/stmpe-ts.c error = stmpe_init_hw(ts); ts 333 drivers/input/touchscreen/stmpe-ts.c input_set_drvdata(idev, ts); ts 351 drivers/input/touchscreen/stmpe-ts.c struct stmpe_touch *ts = platform_get_drvdata(pdev); ts 353 drivers/input/touchscreen/stmpe-ts.c stmpe_disable(ts->stmpe, STMPE_BLOCK_TOUCHSCREEN); ts 117 drivers/input/touchscreen/sun4i-ts.c static void sun4i_ts_irq_handle_input(struct sun4i_ts_data *ts, u32 reg_val) ts 122 drivers/input/touchscreen/sun4i-ts.c x = readl(ts->base + TP_DATA); ts 123 drivers/input/touchscreen/sun4i-ts.c y = readl(ts->base + TP_DATA); ts 125 drivers/input/touchscreen/sun4i-ts.c if (!ts->ignore_fifo_data) { ts 126 drivers/input/touchscreen/sun4i-ts.c input_report_abs(ts->input, ABS_X, x); ts 127 drivers/input/touchscreen/sun4i-ts.c input_report_abs(ts->input, ABS_Y, y); ts 133 drivers/input/touchscreen/sun4i-ts.c input_report_key(ts->input, BTN_TOUCH, 1); ts 134 drivers/input/touchscreen/sun4i-ts.c input_sync(ts->input); ts 136 drivers/input/touchscreen/sun4i-ts.c ts->ignore_fifo_data = false; ts 141 drivers/input/touchscreen/sun4i-ts.c ts->ignore_fifo_data = true; ts 142 drivers/input/touchscreen/sun4i-ts.c input_report_key(ts->input, BTN_TOUCH, 0); ts 143 drivers/input/touchscreen/sun4i-ts.c input_sync(ts->input); ts 149 drivers/input/touchscreen/sun4i-ts.c struct sun4i_ts_data *ts = dev_id; ts 152 drivers/input/touchscreen/sun4i-ts.c reg_val = readl(ts->base + TP_INT_FIFOS); ts 155 drivers/input/touchscreen/sun4i-ts.c ts->temp_data = readl(ts->base + TEMP_DATA); ts 157 drivers/input/touchscreen/sun4i-ts.c if (ts->input) ts 158 drivers/input/touchscreen/sun4i-ts.c sun4i_ts_irq_handle_input(ts, reg_val); ts 160 drivers/input/touchscreen/sun4i-ts.c writel(reg_val, ts->base + TP_INT_FIFOS); ts 167 drivers/input/touchscreen/sun4i-ts.c struct sun4i_ts_data *ts = input_get_drvdata(dev); ts 171 drivers/input/touchscreen/sun4i-ts.c TP_UP_IRQ_EN(1), ts->base + TP_INT_FIFOC); ts 178 drivers/input/touchscreen/sun4i-ts.c struct sun4i_ts_data *ts = input_get_drvdata(dev); ts 181 drivers/input/touchscreen/sun4i-ts.c writel(TEMP_IRQ_EN(1), ts->base + TP_INT_FIFOC); ts 184 drivers/input/touchscreen/sun4i-ts.c static int sun4i_get_temp(const struct sun4i_ts_data *ts, int *temp) ts 187 drivers/input/touchscreen/sun4i-ts.c if (ts->temp_data == -1) ts 190 drivers/input/touchscreen/sun4i-ts.c *temp = ts->temp_data * ts->temp_step - ts->temp_offset; ts 207 drivers/input/touchscreen/sun4i-ts.c struct sun4i_ts_data *ts = dev_get_drvdata(dev); ts 211 drivers/input/touchscreen/sun4i-ts.c error = sun4i_get_temp(ts, &temp); ts 236 drivers/input/touchscreen/sun4i-ts.c struct sun4i_ts_data *ts; ts 247 drivers/input/touchscreen/sun4i-ts.c ts = devm_kzalloc(dev, sizeof(struct sun4i_ts_data), GFP_KERNEL); ts 248 drivers/input/touchscreen/sun4i-ts.c if (!ts) ts 251 drivers/input/touchscreen/sun4i-ts.c ts->dev = dev; ts 252 drivers/input/touchscreen/sun4i-ts.c ts->ignore_fifo_data = true; ts 253 drivers/input/touchscreen/sun4i-ts.c ts->temp_data = -1; ts 256 drivers/input/touchscreen/sun4i-ts.c ts->temp_offset = 271000; ts 257 drivers/input/touchscreen/sun4i-ts.c ts->temp_step = 167; ts 265 drivers/input/touchscreen/sun4i-ts.c ts->temp_offset = 257000; ts 266 drivers/input/touchscreen/sun4i-ts.c ts->temp_step = 133; ts 279 drivers/input/touchscreen/sun4i-ts.c ts->temp_offset = 144700; ts 280 drivers/input/touchscreen/sun4i-ts.c ts->temp_step = 100; ts 285 drivers/input/touchscreen/sun4i-ts.c ts->input = devm_input_allocate_device(dev); ts 286 drivers/input/touchscreen/sun4i-ts.c if (!ts->input) ts 289 drivers/input/touchscreen/sun4i-ts.c ts->input->name = pdev->name; ts 290 drivers/input/touchscreen/sun4i-ts.c ts->input->phys = "sun4i_ts/input0"; ts 291 drivers/input/touchscreen/sun4i-ts.c ts->input->open = sun4i_ts_open; ts 292 drivers/input/touchscreen/sun4i-ts.c ts->input->close = sun4i_ts_close; ts 293 drivers/input/touchscreen/sun4i-ts.c ts->input->id.bustype = BUS_HOST; ts 294 drivers/input/touchscreen/sun4i-ts.c ts->input->id.vendor = 0x0001; ts 295 drivers/input/touchscreen/sun4i-ts.c ts->input->id.product = 0x0001; ts 296 drivers/input/touchscreen/sun4i-ts.c ts->input->id.version = 0x0100; ts 297 drivers/input/touchscreen/sun4i-ts.c ts->input->evbit[0] = BIT(EV_SYN) | BIT(EV_KEY) | BIT(EV_ABS); ts 298 drivers/input/touchscreen/sun4i-ts.c __set_bit(BTN_TOUCH, ts->input->keybit); ts 299 drivers/input/touchscreen/sun4i-ts.c input_set_abs_params(ts->input, ABS_X, 0, 4095, 0, 0); ts 300 drivers/input/touchscreen/sun4i-ts.c input_set_abs_params(ts->input, ABS_Y, 0, 4095, 0, 0); ts 301 drivers/input/touchscreen/sun4i-ts.c input_set_drvdata(ts->input, ts); ts 304 drivers/input/touchscreen/sun4i-ts.c ts->base = devm_platform_ioremap_resource(pdev, 0); ts 305 drivers/input/touchscreen/sun4i-ts.c if (IS_ERR(ts->base)) ts 306 drivers/input/touchscreen/sun4i-ts.c return PTR_ERR(ts->base); ts 308 drivers/input/touchscreen/sun4i-ts.c ts->irq = platform_get_irq(pdev, 0); ts 309 drivers/input/touchscreen/sun4i-ts.c error = devm_request_irq(dev, ts->irq, sun4i_ts_irq, 0, "sun4i-ts", ts); ts 318 drivers/input/touchscreen/sun4i-ts.c ts->base + TP_CTRL0); ts 327 drivers/input/touchscreen/sun4i-ts.c ts->base + TP_CTRL2); ts 334 drivers/input/touchscreen/sun4i-ts.c writel(FILTER_EN(1) | FILTER_TYPE(filter_type), ts->base + TP_CTRL3); ts 337 drivers/input/touchscreen/sun4i-ts.c writel(TEMP_ENABLE(1) | TEMP_PERIOD(1953), ts->base + TP_TPR); ts 348 drivers/input/touchscreen/sun4i-ts.c writel(reg, ts->base + TP_CTRL1); ts 354 drivers/input/touchscreen/sun4i-ts.c hwmon = devm_hwmon_device_register_with_groups(ts->dev, "sun4i_ts", ts 355 drivers/input/touchscreen/sun4i-ts.c ts, sun4i_ts_groups); ts 359 drivers/input/touchscreen/sun4i-ts.c thermal = devm_thermal_zone_of_sensor_register(ts->dev, 0, ts, ts 364 drivers/input/touchscreen/sun4i-ts.c writel(TEMP_IRQ_EN(1), ts->base + TP_INT_FIFOC); ts 367 drivers/input/touchscreen/sun4i-ts.c error = input_register_device(ts->input); ts 369 drivers/input/touchscreen/sun4i-ts.c writel(0, ts->base + TP_INT_FIFOC); ts 374 drivers/input/touchscreen/sun4i-ts.c platform_set_drvdata(pdev, ts); ts 380 drivers/input/touchscreen/sun4i-ts.c struct sun4i_ts_data *ts = platform_get_drvdata(pdev); ts 383 drivers/input/touchscreen/sun4i-ts.c if (ts->input) ts 384 drivers/input/touchscreen/sun4i-ts.c input_unregister_device(ts->input); ts 387 drivers/input/touchscreen/sun4i-ts.c writel(0, ts->base + TP_INT_FIFOC); ts 109 drivers/input/touchscreen/sx8654.c static inline void sx865x_penrelease(struct sx8654 *ts) ts 111 drivers/input/touchscreen/sx8654.c struct input_dev *input_dev = ts->input; ts 119 drivers/input/touchscreen/sx8654.c struct sx8654 *ts = from_timer(ts, t, timer); ts 122 drivers/input/touchscreen/sx8654.c spin_lock_irqsave(&ts->lock, flags); ts 123 drivers/input/touchscreen/sx8654.c sx865x_penrelease(ts); ts 124 drivers/input/touchscreen/sx8654.c spin_unlock_irqrestore(&ts->lock, flags); ts 125 drivers/input/touchscreen/sx8654.c dev_dbg(&ts->client->dev, "penrelease by timer\n"); ts 130 drivers/input/touchscreen/sx8654.c struct sx8654 *ts = handle; ts 131 drivers/input/touchscreen/sx8654.c struct device *dev = &ts->client->dev; ts 139 drivers/input/touchscreen/sx8654.c u8 nchan = hweight32(ts->data->chan_mask); ts 142 drivers/input/touchscreen/sx8654.c stat = i2c_smbus_read_byte_data(ts->client, CMD_READ_REGISTER ts 150 drivers/input/touchscreen/sx8654.c len = i2c_master_recv(ts->client, (u8 *)data, readlen); ts 156 drivers/input/touchscreen/sx8654.c spin_lock_irqsave(&ts->lock, flags); ts 181 drivers/input/touchscreen/sx8654.c touchscreen_report_pos(ts->input, &ts->props, x, y, false); ts 182 drivers/input/touchscreen/sx8654.c input_report_key(ts->input, BTN_TOUCH, 1); ts 183 drivers/input/touchscreen/sx8654.c input_sync(ts->input); ts 186 drivers/input/touchscreen/sx8654.c mod_timer(&ts->timer, jiffies + SX8650_PENIRQ_TIMEOUT); ts 187 drivers/input/touchscreen/sx8654.c spin_unlock_irqrestore(&ts->lock, flags); ts 240 drivers/input/touchscreen/sx8654.c static int sx8654_reset(struct sx8654 *ts) ts 244 drivers/input/touchscreen/sx8654.c if (ts->gpio_reset) { ts 245 drivers/input/touchscreen/sx8654.c gpiod_set_value_cansleep(ts->gpio_reset, 1); ts 247 drivers/input/touchscreen/sx8654.c gpiod_set_value_cansleep(ts->gpio_reset, 0); ts 249 drivers/input/touchscreen/sx8654.c dev_dbg(&ts->client->dev, "NRST unavailable, try softreset\n"); ts 250 drivers/input/touchscreen/sx8654.c err = i2c_smbus_write_byte_data(ts->client, I2C_REG_SOFTRESET, ts 63 drivers/input/touchscreen/ti_am335x_tsc.c static unsigned int titsc_readl(struct titsc *ts, unsigned int reg) ts 65 drivers/input/touchscreen/ti_am335x_tsc.c return readl(ts->mfd_tscadc->tscadc_base + reg); ts 51 drivers/input/touchscreen/ts4800-ts.c struct ts4800_ts *ts = dev->private; ts 54 drivers/input/touchscreen/ts4800-ts.c ts->pendown = false; ts 55 drivers/input/touchscreen/ts4800-ts.c ts->debounce = DEBOUNCE_COUNT; ts 57 drivers/input/touchscreen/ts4800-ts.c ret = regmap_update_bits(ts->regmap, ts->reg, ts->bit, ts->bit); ts 59 drivers/input/touchscreen/ts4800-ts.c dev_warn(ts->dev, "Failed to enable touchscreen\n"); ts 64 drivers/input/touchscreen/ts4800-ts.c struct ts4800_ts *ts = dev->private; ts 67 drivers/input/touchscreen/ts4800-ts.c ret = regmap_update_bits(ts->regmap, ts->reg, ts->bit, 0); ts 69 drivers/input/touchscreen/ts4800-ts.c dev_warn(ts->dev, "Failed to disable touchscreen\n"); ts 76 drivers/input/touchscreen/ts4800-ts.c struct ts4800_ts *ts = dev->private; ts 77 drivers/input/touchscreen/ts4800-ts.c u16 last_x = readw(ts->base + X_OFFSET); ts 78 drivers/input/touchscreen/ts4800-ts.c u16 last_y = readw(ts->base + Y_OFFSET); ts 82 drivers/input/touchscreen/ts4800-ts.c if (ts->debounce) { ts 83 drivers/input/touchscreen/ts4800-ts.c ts->debounce--; ts 87 drivers/input/touchscreen/ts4800-ts.c if (!ts->pendown) { ts 89 drivers/input/touchscreen/ts4800-ts.c ts->pendown = true; ts 98 drivers/input/touchscreen/ts4800-ts.c } else if (ts->pendown) { ts 99 drivers/input/touchscreen/ts4800-ts.c ts->pendown = false; ts 100 drivers/input/touchscreen/ts4800-ts.c ts->debounce = DEBOUNCE_COUNT; ts 107 drivers/input/touchscreen/ts4800-ts.c struct ts4800_ts *ts) ts 121 drivers/input/touchscreen/ts4800-ts.c ts->regmap = syscon_node_to_regmap(syscon_np); ts 123 drivers/input/touchscreen/ts4800-ts.c if (IS_ERR(ts->regmap)) { ts 125 drivers/input/touchscreen/ts4800-ts.c return PTR_ERR(ts->regmap); ts 134 drivers/input/touchscreen/ts4800-ts.c ts->reg = reg; ts 142 drivers/input/touchscreen/ts4800-ts.c ts->bit = BIT(bit); ts 150 drivers/input/touchscreen/ts4800-ts.c struct ts4800_ts *ts; ts 153 drivers/input/touchscreen/ts4800-ts.c ts = devm_kzalloc(&pdev->dev, sizeof(*ts), GFP_KERNEL); ts 154 drivers/input/touchscreen/ts4800-ts.c if (!ts) ts 157 drivers/input/touchscreen/ts4800-ts.c error = ts4800_parse_dt(pdev, ts); ts 161 drivers/input/touchscreen/ts4800-ts.c ts->base = devm_platform_ioremap_resource(pdev, 0); ts 162 drivers/input/touchscreen/ts4800-ts.c if (IS_ERR(ts->base)) ts 163 drivers/input/touchscreen/ts4800-ts.c return PTR_ERR(ts->base); ts 169 drivers/input/touchscreen/ts4800-ts.c snprintf(ts->phys, sizeof(ts->phys), "%s/input0", dev_name(&pdev->dev)); ts 170 drivers/input/touchscreen/ts4800-ts.c ts->poll_dev = poll_dev; ts 171 drivers/input/touchscreen/ts4800-ts.c ts->dev = &pdev->dev; ts 173 drivers/input/touchscreen/ts4800-ts.c poll_dev->private = ts; ts 180 drivers/input/touchscreen/ts4800-ts.c poll_dev->input->phys = ts->phys; ts 86 drivers/input/touchscreen/tsc2007.h bool tsc2007_is_pen_down(struct tsc2007 *ts); ts 90 drivers/input/touchscreen/tsc2007.h int tsc2007_iio_configure(struct tsc2007 *ts); ts 92 drivers/input/touchscreen/tsc2007.h static inline int tsc2007_iio_configure(struct tsc2007 *ts) ts 88 drivers/input/touchscreen/tsc2007_core.c bool tsc2007_is_pen_down(struct tsc2007 *ts) ts 104 drivers/input/touchscreen/tsc2007_core.c if (!ts->get_pendown_state) ts 107 drivers/input/touchscreen/tsc2007_core.c return ts->get_pendown_state(&ts->client->dev); ts 112 drivers/input/touchscreen/tsc2007_core.c struct tsc2007 *ts = handle; ts 113 drivers/input/touchscreen/tsc2007_core.c struct input_dev *input = ts->input; ts 117 drivers/input/touchscreen/tsc2007_core.c while (!ts->stopped && tsc2007_is_pen_down(ts)) { ts 121 drivers/input/touchscreen/tsc2007_core.c mutex_lock(&ts->mlock); ts 122 drivers/input/touchscreen/tsc2007_core.c tsc2007_read_values(ts, &tc); ts 123 drivers/input/touchscreen/tsc2007_core.c mutex_unlock(&ts->mlock); ts 125 drivers/input/touchscreen/tsc2007_core.c rt = tsc2007_calculate_resistance(ts, &tc); ts 127 drivers/input/touchscreen/tsc2007_core.c if (!rt && !ts->get_pendown_state) { ts 136 drivers/input/touchscreen/tsc2007_core.c if (rt <= ts->max_rt) { ts 137 drivers/input/touchscreen/tsc2007_core.c dev_dbg(&ts->client->dev, ts 141 drivers/input/touchscreen/tsc2007_core.c rt = ts->max_rt - rt; ts 156 drivers/input/touchscreen/tsc2007_core.c dev_dbg(&ts->client->dev, "ignored pressure %d\n", rt); ts 159 drivers/input/touchscreen/tsc2007_core.c wait_event_timeout(ts->wait, ts->stopped, ts->poll_period); ts 162 drivers/input/touchscreen/tsc2007_core.c dev_dbg(&ts->client->dev, "UP\n"); ts 168 drivers/input/touchscreen/tsc2007_core.c if (ts->clear_penirq) ts 169 drivers/input/touchscreen/tsc2007_core.c ts->clear_penirq(); ts 176 drivers/input/touchscreen/tsc2007_core.c struct tsc2007 *ts = handle; ts 178 drivers/input/touchscreen/tsc2007_core.c if (tsc2007_is_pen_down(ts)) ts 181 drivers/input/touchscreen/tsc2007_core.c if (ts->clear_penirq) ts 182 drivers/input/touchscreen/tsc2007_core.c ts->clear_penirq(); ts 187 drivers/input/touchscreen/tsc2007_core.c static void tsc2007_stop(struct tsc2007 *ts) ts 189 drivers/input/touchscreen/tsc2007_core.c ts->stopped = true; ts 191 drivers/input/touchscreen/tsc2007_core.c wake_up(&ts->wait); ts 193 drivers/input/touchscreen/tsc2007_core.c disable_irq(ts->irq); ts 198 drivers/input/touchscreen/tsc2007_core.c struct tsc2007 *ts = input_get_drvdata(input_dev); ts 201 drivers/input/touchscreen/tsc2007_core.c ts->stopped = false; ts 204 drivers/input/touchscreen/tsc2007_core.c enable_irq(ts->irq); ts 207 drivers/input/touchscreen/tsc2007_core.c err = tsc2007_xfer(ts, PWRDOWN); ts 209 drivers/input/touchscreen/tsc2007_core.c tsc2007_stop(ts); ts 218 drivers/input/touchscreen/tsc2007_core.c struct tsc2007 *ts = input_get_drvdata(input_dev); ts 220 drivers/input/touchscreen/tsc2007_core.c tsc2007_stop(ts); ts 227 drivers/input/touchscreen/tsc2007_core.c struct tsc2007 *ts = i2c_get_clientdata(client); ts 229 drivers/input/touchscreen/tsc2007_core.c return !gpio_get_value(ts->gpio); ts 232 drivers/input/touchscreen/tsc2007_core.c static int tsc2007_probe_dt(struct i2c_client *client, struct tsc2007 *ts) ts 244 drivers/input/touchscreen/tsc2007_core.c ts->max_rt = val32; ts 246 drivers/input/touchscreen/tsc2007_core.c ts->max_rt = MAX_12BIT; ts 249 drivers/input/touchscreen/tsc2007_core.c ts->fuzzx = val32; ts 252 drivers/input/touchscreen/tsc2007_core.c ts->fuzzy = val32; ts 255 drivers/input/touchscreen/tsc2007_core.c ts->fuzzz = val32; ts 258 drivers/input/touchscreen/tsc2007_core.c ts->poll_period = msecs_to_jiffies(val64); ts 260 drivers/input/touchscreen/tsc2007_core.c ts->poll_period = msecs_to_jiffies(1); ts 263 drivers/input/touchscreen/tsc2007_core.c ts->x_plate_ohms = val32; ts 269 drivers/input/touchscreen/tsc2007_core.c ts->gpio = of_get_gpio(np, 0); ts 270 drivers/input/touchscreen/tsc2007_core.c if (gpio_is_valid(ts->gpio)) ts 271 drivers/input/touchscreen/tsc2007_core.c ts->get_pendown_state = tsc2007_get_pendown_state_gpio; ts 275 drivers/input/touchscreen/tsc2007_core.c ts->gpio); ts 280 drivers/input/touchscreen/tsc2007_core.c static int tsc2007_probe_dt(struct i2c_client *client, struct tsc2007 *ts) ts 287 drivers/input/touchscreen/tsc2007_core.c static int tsc2007_probe_pdev(struct i2c_client *client, struct tsc2007 *ts, ts 291 drivers/input/touchscreen/tsc2007_core.c ts->model = pdata->model; ts 292 drivers/input/touchscreen/tsc2007_core.c ts->x_plate_ohms = pdata->x_plate_ohms; ts 293 drivers/input/touchscreen/tsc2007_core.c ts->max_rt = pdata->max_rt ? : MAX_12BIT; ts 294 drivers/input/touchscreen/tsc2007_core.c ts->poll_period = msecs_to_jiffies(pdata->poll_period ? : 1); ts 295 drivers/input/touchscreen/tsc2007_core.c ts->get_pendown_state = pdata->get_pendown_state; ts 296 drivers/input/touchscreen/tsc2007_core.c ts->clear_penirq = pdata->clear_penirq; ts 297 drivers/input/touchscreen/tsc2007_core.c ts->fuzzx = pdata->fuzzx; ts 298 drivers/input/touchscreen/tsc2007_core.c ts->fuzzy = pdata->fuzzy; ts 299 drivers/input/touchscreen/tsc2007_core.c ts->fuzzz = pdata->fuzzz; ts 322 drivers/input/touchscreen/tsc2007_core.c struct tsc2007 *ts; ts 330 drivers/input/touchscreen/tsc2007_core.c ts = devm_kzalloc(&client->dev, sizeof(struct tsc2007), GFP_KERNEL); ts 331 drivers/input/touchscreen/tsc2007_core.c if (!ts) ts 335 drivers/input/touchscreen/tsc2007_core.c err = tsc2007_probe_pdev(client, ts, pdata, id); ts 337 drivers/input/touchscreen/tsc2007_core.c err = tsc2007_probe_dt(client, ts); ts 345 drivers/input/touchscreen/tsc2007_core.c i2c_set_clientdata(client, ts); ts 347 drivers/input/touchscreen/tsc2007_core.c ts->client = client; ts 348 drivers/input/touchscreen/tsc2007_core.c ts->irq = client->irq; ts 349 drivers/input/touchscreen/tsc2007_core.c ts->input = input_dev; ts 351 drivers/input/touchscreen/tsc2007_core.c init_waitqueue_head(&ts->wait); ts 352 drivers/input/touchscreen/tsc2007_core.c mutex_init(&ts->mlock); ts 354 drivers/input/touchscreen/tsc2007_core.c snprintf(ts->phys, sizeof(ts->phys), ts 358 drivers/input/touchscreen/tsc2007_core.c input_dev->phys = ts->phys; ts 364 drivers/input/touchscreen/tsc2007_core.c input_set_drvdata(input_dev, ts); ts 368 drivers/input/touchscreen/tsc2007_core.c input_set_abs_params(input_dev, ABS_X, 0, MAX_12BIT, ts->fuzzx, 0); ts 369 drivers/input/touchscreen/tsc2007_core.c input_set_abs_params(input_dev, ABS_Y, 0, MAX_12BIT, ts->fuzzy, 0); ts 371 drivers/input/touchscreen/tsc2007_core.c ts->fuzzz, 0); ts 390 drivers/input/touchscreen/tsc2007_core.c err = devm_request_threaded_irq(&client->dev, ts->irq, ts 393 drivers/input/touchscreen/tsc2007_core.c client->dev.driver->name, ts); ts 396 drivers/input/touchscreen/tsc2007_core.c ts->irq, err); ts 400 drivers/input/touchscreen/tsc2007_core.c tsc2007_stop(ts); ts 403 drivers/input/touchscreen/tsc2007_core.c err = tsc2007_xfer(ts, PWRDOWN); ts 417 drivers/input/touchscreen/tsc2007_core.c err = tsc2007_iio_configure(ts); ts 12 drivers/input/touchscreen/tsc2007_iio.c struct tsc2007 *ts; ts 42 drivers/input/touchscreen/tsc2007_iio.c struct tsc2007 *tsc = iio->ts; ts 106 drivers/input/touchscreen/tsc2007_iio.c int tsc2007_iio_configure(struct tsc2007 *ts) ts 112 drivers/input/touchscreen/tsc2007_iio.c indio_dev = devm_iio_device_alloc(&ts->client->dev, sizeof(*iio)); ts 114 drivers/input/touchscreen/tsc2007_iio.c dev_err(&ts->client->dev, "iio_device_alloc failed\n"); ts 119 drivers/input/touchscreen/tsc2007_iio.c iio->ts = ts; ts 122 drivers/input/touchscreen/tsc2007_iio.c indio_dev->dev.parent = &ts->client->dev; ts 128 drivers/input/touchscreen/tsc2007_iio.c error = devm_iio_device_register(&ts->client->dev, indio_dev); ts 130 drivers/input/touchscreen/tsc2007_iio.c dev_err(&ts->client->dev, ts 112 drivers/input/touchscreen/tsc200x-core.c static void tsc200x_update_pen_state(struct tsc200x *ts, ts 116 drivers/input/touchscreen/tsc200x-core.c input_report_abs(ts->idev, ABS_X, x); ts 117 drivers/input/touchscreen/tsc200x-core.c input_report_abs(ts->idev, ABS_Y, y); ts 118 drivers/input/touchscreen/tsc200x-core.c input_report_abs(ts->idev, ABS_PRESSURE, pressure); ts 119 drivers/input/touchscreen/tsc200x-core.c if (!ts->pen_down) { ts 120 drivers/input/touchscreen/tsc200x-core.c input_report_key(ts->idev, BTN_TOUCH, !!pressure); ts 121 drivers/input/touchscreen/tsc200x-core.c ts->pen_down = true; ts 124 drivers/input/touchscreen/tsc200x-core.c input_report_abs(ts->idev, ABS_PRESSURE, 0); ts 125 drivers/input/touchscreen/tsc200x-core.c if (ts->pen_down) { ts 126 drivers/input/touchscreen/tsc200x-core.c input_report_key(ts->idev, BTN_TOUCH, 0); ts 127 drivers/input/touchscreen/tsc200x-core.c ts->pen_down = false; ts 130 drivers/input/touchscreen/tsc200x-core.c input_sync(ts->idev); ts 131 drivers/input/touchscreen/tsc200x-core.c dev_dbg(ts->dev, "point(%4d,%4d), pressure (%4d)\n", x, y, ts 137 drivers/input/touchscreen/tsc200x-core.c struct tsc200x *ts = _ts; ts 144 drivers/input/touchscreen/tsc200x-core.c error = regmap_bulk_read(ts->regmap, TSC200X_REG_X, &tsdata, ts 163 drivers/input/touchscreen/tsc200x-core.c if (!ts->pen_down && ts 164 drivers/input/touchscreen/tsc200x-core.c ts->in_x == tsdata.x && ts->in_y == tsdata.y && ts 165 drivers/input/touchscreen/tsc200x-core.c ts->in_z1 == tsdata.z1 && ts->in_z2 == tsdata.z2) { ts 173 drivers/input/touchscreen/tsc200x-core.c ts->in_x = tsdata.x; ts 174 drivers/input/touchscreen/tsc200x-core.c ts->in_y = tsdata.y; ts 175 drivers/input/touchscreen/tsc200x-core.c ts->in_z1 = tsdata.z1; ts 176 drivers/input/touchscreen/tsc200x-core.c ts->in_z2 = tsdata.z2; ts 180 drivers/input/touchscreen/tsc200x-core.c pressure = pressure * ts->x_plate_ohm / 4096; ts 184 drivers/input/touchscreen/tsc200x-core.c spin_lock_irqsave(&ts->lock, flags); ts 186 drivers/input/touchscreen/tsc200x-core.c tsc200x_update_pen_state(ts, tsdata.x, tsdata.y, pressure); ts 187 drivers/input/touchscreen/tsc200x-core.c mod_timer(&ts->penup_timer, ts 190 drivers/input/touchscreen/tsc200x-core.c spin_unlock_irqrestore(&ts->lock, flags); ts 192 drivers/input/touchscreen/tsc200x-core.c ts->last_valid_interrupt = jiffies; ts 199 drivers/input/touchscreen/tsc200x-core.c struct tsc200x *ts = from_timer(ts, t, penup_timer); ts 202 drivers/input/touchscreen/tsc200x-core.c spin_lock_irqsave(&ts->lock, flags); ts 203 drivers/input/touchscreen/tsc200x-core.c tsc200x_update_pen_state(ts, 0, 0, 0); ts 204 drivers/input/touchscreen/tsc200x-core.c spin_unlock_irqrestore(&ts->lock, flags); ts 207 drivers/input/touchscreen/tsc200x-core.c static void tsc200x_start_scan(struct tsc200x *ts) ts 209 drivers/input/touchscreen/tsc200x-core.c regmap_write(ts->regmap, TSC200X_REG_CFR0, TSC200X_CFR0_INITVALUE); ts 210 drivers/input/touchscreen/tsc200x-core.c regmap_write(ts->regmap, TSC200X_REG_CFR1, TSC200X_CFR1_INITVALUE); ts 211 drivers/input/touchscreen/tsc200x-core.c regmap_write(ts->regmap, TSC200X_REG_CFR2, TSC200X_CFR2_INITVALUE); ts 212 drivers/input/touchscreen/tsc200x-core.c ts->tsc200x_cmd(ts->dev, TSC200X_CMD_NORMAL); ts 215 drivers/input/touchscreen/tsc200x-core.c static void tsc200x_stop_scan(struct tsc200x *ts) ts 217 drivers/input/touchscreen/tsc200x-core.c ts->tsc200x_cmd(ts->dev, TSC200X_CMD_STOP); ts 220 drivers/input/touchscreen/tsc200x-core.c static void tsc200x_reset(struct tsc200x *ts) ts 222 drivers/input/touchscreen/tsc200x-core.c if (ts->reset_gpio) { ts 223 drivers/input/touchscreen/tsc200x-core.c gpiod_set_value_cansleep(ts->reset_gpio, 1); ts 225 drivers/input/touchscreen/tsc200x-core.c gpiod_set_value_cansleep(ts->reset_gpio, 0); ts 230 drivers/input/touchscreen/tsc200x-core.c static void __tsc200x_disable(struct tsc200x *ts) ts 232 drivers/input/touchscreen/tsc200x-core.c tsc200x_stop_scan(ts); ts 234 drivers/input/touchscreen/tsc200x-core.c disable_irq(ts->irq); ts 235 drivers/input/touchscreen/tsc200x-core.c del_timer_sync(&ts->penup_timer); ts 237 drivers/input/touchscreen/tsc200x-core.c cancel_delayed_work_sync(&ts->esd_work); ts 239 drivers/input/touchscreen/tsc200x-core.c enable_irq(ts->irq); ts 243 drivers/input/touchscreen/tsc200x-core.c static void __tsc200x_enable(struct tsc200x *ts) ts 245 drivers/input/touchscreen/tsc200x-core.c tsc200x_start_scan(ts); ts 247 drivers/input/touchscreen/tsc200x-core.c if (ts->esd_timeout && ts->reset_gpio) { ts 248 drivers/input/touchscreen/tsc200x-core.c ts->last_valid_interrupt = jiffies; ts 249 drivers/input/touchscreen/tsc200x-core.c schedule_delayed_work(&ts->esd_work, ts 251 drivers/input/touchscreen/tsc200x-core.c msecs_to_jiffies(ts->esd_timeout))); ts 259 drivers/input/touchscreen/tsc200x-core.c struct tsc200x *ts = dev_get_drvdata(dev); ts 266 drivers/input/touchscreen/tsc200x-core.c mutex_lock(&ts->mutex); ts 271 drivers/input/touchscreen/tsc200x-core.c __tsc200x_disable(ts); ts 273 drivers/input/touchscreen/tsc200x-core.c error = regmap_read(ts->regmap, TSC200X_REG_TEMP_HIGH, &temp_high_orig); ts 282 drivers/input/touchscreen/tsc200x-core.c error = regmap_write(ts->regmap, TSC200X_REG_TEMP_HIGH, temp_high_test); ts 289 drivers/input/touchscreen/tsc200x-core.c error = regmap_read(ts->regmap, TSC200X_REG_TEMP_HIGH, &temp_high); ts 304 drivers/input/touchscreen/tsc200x-core.c tsc200x_reset(ts); ts 310 drivers/input/touchscreen/tsc200x-core.c error = regmap_read(ts->regmap, TSC200X_REG_TEMP_HIGH, &temp_high); ts 325 drivers/input/touchscreen/tsc200x-core.c __tsc200x_enable(ts); ts 326 drivers/input/touchscreen/tsc200x-core.c mutex_unlock(&ts->mutex); ts 342 drivers/input/touchscreen/tsc200x-core.c struct tsc200x *ts = dev_get_drvdata(dev); ts 346 drivers/input/touchscreen/tsc200x-core.c if (!ts->reset_gpio) ts 360 drivers/input/touchscreen/tsc200x-core.c struct tsc200x *ts = container_of(work, struct tsc200x, esd_work.work); ts 364 drivers/input/touchscreen/tsc200x-core.c if (!mutex_trylock(&ts->mutex)) { ts 373 drivers/input/touchscreen/tsc200x-core.c if (time_is_after_jiffies(ts->last_valid_interrupt + ts 374 drivers/input/touchscreen/tsc200x-core.c msecs_to_jiffies(ts->esd_timeout))) ts 378 drivers/input/touchscreen/tsc200x-core.c error = regmap_read(ts->regmap, TSC200X_REG_CFR0, &r); ts 389 drivers/input/touchscreen/tsc200x-core.c dev_info(ts->dev, "TSC200X not responding - resetting\n"); ts 391 drivers/input/touchscreen/tsc200x-core.c disable_irq(ts->irq); ts 392 drivers/input/touchscreen/tsc200x-core.c del_timer_sync(&ts->penup_timer); ts 394 drivers/input/touchscreen/tsc200x-core.c tsc200x_update_pen_state(ts, 0, 0, 0); ts 396 drivers/input/touchscreen/tsc200x-core.c tsc200x_reset(ts); ts 398 drivers/input/touchscreen/tsc200x-core.c enable_irq(ts->irq); ts 399 drivers/input/touchscreen/tsc200x-core.c tsc200x_start_scan(ts); ts 402 drivers/input/touchscreen/tsc200x-core.c mutex_unlock(&ts->mutex); ts 405 drivers/input/touchscreen/tsc200x-core.c schedule_delayed_work(&ts->esd_work, ts 407 drivers/input/touchscreen/tsc200x-core.c msecs_to_jiffies(ts->esd_timeout))); ts 412 drivers/input/touchscreen/tsc200x-core.c struct tsc200x *ts = input_get_drvdata(input); ts 414 drivers/input/touchscreen/tsc200x-core.c mutex_lock(&ts->mutex); ts 416 drivers/input/touchscreen/tsc200x-core.c if (!ts->suspended) ts 417 drivers/input/touchscreen/tsc200x-core.c __tsc200x_enable(ts); ts 419 drivers/input/touchscreen/tsc200x-core.c ts->opened = true; ts 421 drivers/input/touchscreen/tsc200x-core.c mutex_unlock(&ts->mutex); ts 428 drivers/input/touchscreen/tsc200x-core.c struct tsc200x *ts = input_get_drvdata(input); ts 430 drivers/input/touchscreen/tsc200x-core.c mutex_lock(&ts->mutex); ts 432 drivers/input/touchscreen/tsc200x-core.c if (!ts->suspended) ts 433 drivers/input/touchscreen/tsc200x-core.c __tsc200x_disable(ts); ts 435 drivers/input/touchscreen/tsc200x-core.c ts->opened = false; ts 437 drivers/input/touchscreen/tsc200x-core.c mutex_unlock(&ts->mutex); ts 444 drivers/input/touchscreen/tsc200x-core.c struct tsc200x *ts; ts 463 drivers/input/touchscreen/tsc200x-core.c ts = devm_kzalloc(dev, sizeof(*ts), GFP_KERNEL); ts 464 drivers/input/touchscreen/tsc200x-core.c if (!ts) ts 471 drivers/input/touchscreen/tsc200x-core.c ts->irq = irq; ts 472 drivers/input/touchscreen/tsc200x-core.c ts->dev = dev; ts 473 drivers/input/touchscreen/tsc200x-core.c ts->idev = input_dev; ts 474 drivers/input/touchscreen/tsc200x-core.c ts->regmap = regmap; ts 475 drivers/input/touchscreen/tsc200x-core.c ts->tsc200x_cmd = tsc200x_cmd; ts 478 drivers/input/touchscreen/tsc200x-core.c ts->x_plate_ohm = error ? TSC200X_DEF_RESISTOR : x_plate_ohm; ts 482 drivers/input/touchscreen/tsc200x-core.c ts->esd_timeout = error ? 0 : esd_timeout; ts 484 drivers/input/touchscreen/tsc200x-core.c ts->reset_gpio = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_HIGH); ts 485 drivers/input/touchscreen/tsc200x-core.c if (IS_ERR(ts->reset_gpio)) { ts 486 drivers/input/touchscreen/tsc200x-core.c error = PTR_ERR(ts->reset_gpio); ts 491 drivers/input/touchscreen/tsc200x-core.c ts->vio = devm_regulator_get(dev, "vio"); ts 492 drivers/input/touchscreen/tsc200x-core.c if (IS_ERR(ts->vio)) { ts 493 drivers/input/touchscreen/tsc200x-core.c error = PTR_ERR(ts->vio); ts 498 drivers/input/touchscreen/tsc200x-core.c mutex_init(&ts->mutex); ts 500 drivers/input/touchscreen/tsc200x-core.c spin_lock_init(&ts->lock); ts 501 drivers/input/touchscreen/tsc200x-core.c timer_setup(&ts->penup_timer, tsc200x_penup_timer, 0); ts 503 drivers/input/touchscreen/tsc200x-core.c INIT_DELAYED_WORK(&ts->esd_work, tsc200x_esd_work); ts 505 drivers/input/touchscreen/tsc200x-core.c snprintf(ts->phys, sizeof(ts->phys), ts 518 drivers/input/touchscreen/tsc200x-core.c input_dev->phys = ts->phys; ts 524 drivers/input/touchscreen/tsc200x-core.c input_set_drvdata(input_dev, ts); ts 539 drivers/input/touchscreen/tsc200x-core.c tsc200x_stop_scan(ts); ts 544 drivers/input/touchscreen/tsc200x-core.c "tsc200x", ts); ts 550 drivers/input/touchscreen/tsc200x-core.c error = regulator_enable(ts->vio); ts 554 drivers/input/touchscreen/tsc200x-core.c dev_set_drvdata(dev, ts); ts 562 drivers/input/touchscreen/tsc200x-core.c error = input_register_device(ts->idev); ts 575 drivers/input/touchscreen/tsc200x-core.c regulator_disable(ts->vio); ts 582 drivers/input/touchscreen/tsc200x-core.c struct tsc200x *ts = dev_get_drvdata(dev); ts 586 drivers/input/touchscreen/tsc200x-core.c regulator_disable(ts->vio); ts 594 drivers/input/touchscreen/tsc200x-core.c struct tsc200x *ts = dev_get_drvdata(dev); ts 596 drivers/input/touchscreen/tsc200x-core.c mutex_lock(&ts->mutex); ts 598 drivers/input/touchscreen/tsc200x-core.c if (!ts->suspended && ts->opened) ts 599 drivers/input/touchscreen/tsc200x-core.c __tsc200x_disable(ts); ts 601 drivers/input/touchscreen/tsc200x-core.c ts->suspended = true; ts 603 drivers/input/touchscreen/tsc200x-core.c mutex_unlock(&ts->mutex); ts 610 drivers/input/touchscreen/tsc200x-core.c struct tsc200x *ts = dev_get_drvdata(dev); ts 612 drivers/input/touchscreen/tsc200x-core.c mutex_lock(&ts->mutex); ts 614 drivers/input/touchscreen/tsc200x-core.c if (ts->suspended && ts->opened) ts 615 drivers/input/touchscreen/tsc200x-core.c __tsc200x_enable(ts); ts 617 drivers/input/touchscreen/tsc200x-core.c ts->suspended = false; ts 619 drivers/input/touchscreen/tsc200x-core.c mutex_unlock(&ts->mutex); ts 39 drivers/input/touchscreen/zet6223.c struct zet6223_ts *ts = input_get_drvdata(dev); ts 41 drivers/input/touchscreen/zet6223.c enable_irq(ts->client->irq); ts 48 drivers/input/touchscreen/zet6223.c struct zet6223_ts *ts = input_get_drvdata(dev); ts 50 drivers/input/touchscreen/zet6223.c disable_irq(ts->client->irq); ts 55 drivers/input/touchscreen/zet6223.c struct zet6223_ts *ts = dev_id; ts 62 drivers/input/touchscreen/zet6223.c u8 bufsize = 3 + 4 * ts->fingernum; ts 68 drivers/input/touchscreen/zet6223.c ret = i2c_master_recv(ts->client, buf, bufsize); ts 71 drivers/input/touchscreen/zet6223.c dev_err_ratelimited(&ts->client->dev, ts 80 drivers/input/touchscreen/zet6223.c for (i = 0; i < ts->fingernum; i++) { ts 84 drivers/input/touchscreen/zet6223.c input_mt_slot(ts->input, i); ts 85 drivers/input/touchscreen/zet6223.c input_mt_report_slot_state(ts->input, MT_TOOL_FINGER, true); ts 86 drivers/input/touchscreen/zet6223.c input_event(ts->input, EV_ABS, ABS_MT_POSITION_X, ts 88 drivers/input/touchscreen/zet6223.c input_event(ts->input, EV_ABS, ABS_MT_POSITION_Y, ts 92 drivers/input/touchscreen/zet6223.c input_mt_sync_frame(ts->input); ts 93 drivers/input/touchscreen/zet6223.c input_sync(ts->input); ts 100 drivers/input/touchscreen/zet6223.c struct zet6223_ts *ts = _ts; ts 102 drivers/input/touchscreen/zet6223.c regulator_bulk_disable(ARRAY_SIZE(ts->supplies), ts->supplies); ts 105 drivers/input/touchscreen/zet6223.c static int zet6223_power_on(struct zet6223_ts *ts) ts 107 drivers/input/touchscreen/zet6223.c struct device *dev = &ts->client->dev; ts 110 drivers/input/touchscreen/zet6223.c ts->supplies[0].supply = "vio"; ts 111 drivers/input/touchscreen/zet6223.c ts->supplies[1].supply = "vcc"; ts 113 drivers/input/touchscreen/zet6223.c error = devm_regulator_bulk_get(dev, ARRAY_SIZE(ts->supplies), ts 114 drivers/input/touchscreen/zet6223.c ts->supplies); ts 118 drivers/input/touchscreen/zet6223.c error = regulator_bulk_enable(ARRAY_SIZE(ts->supplies), ts->supplies); ts 124 drivers/input/touchscreen/zet6223.c error = devm_add_action_or_reset(dev, zet6223_power_off, ts); ts 133 drivers/input/touchscreen/zet6223.c static int zet6223_query_device(struct zet6223_ts *ts) ts 140 drivers/input/touchscreen/zet6223.c ret = i2c_master_send(ts->client, &cmd, sizeof(cmd)); ts 143 drivers/input/touchscreen/zet6223.c dev_err(&ts->client->dev, ts 148 drivers/input/touchscreen/zet6223.c ret = i2c_master_recv(ts->client, buf, sizeof(buf)); ts 151 drivers/input/touchscreen/zet6223.c dev_err(&ts->client->dev, ts 156 drivers/input/touchscreen/zet6223.c ts->fingernum = buf[15] & 0x7F; ts 157 drivers/input/touchscreen/zet6223.c if (ts->fingernum > ZET6223_MAX_FINGERS) { ts 158 drivers/input/touchscreen/zet6223.c dev_warn(&ts->client->dev, ts 160 drivers/input/touchscreen/zet6223.c ts->fingernum, ZET6223_MAX_FINGERS); ts 161 drivers/input/touchscreen/zet6223.c ts->fingernum = ZET6223_MAX_FINGERS; ts 164 drivers/input/touchscreen/zet6223.c ts->max_x = get_unaligned_le16(&buf[8]); ts 165 drivers/input/touchscreen/zet6223.c ts->max_y = get_unaligned_le16(&buf[10]); ts 174 drivers/input/touchscreen/zet6223.c struct zet6223_ts *ts; ts 183 drivers/input/touchscreen/zet6223.c ts = devm_kzalloc(dev, sizeof(*ts), GFP_KERNEL); ts 184 drivers/input/touchscreen/zet6223.c if (!ts) ts 187 drivers/input/touchscreen/zet6223.c ts->client = client; ts 189 drivers/input/touchscreen/zet6223.c error = zet6223_power_on(ts); ts 193 drivers/input/touchscreen/zet6223.c error = zet6223_query_device(ts); ts 197 drivers/input/touchscreen/zet6223.c ts->input = input = devm_input_allocate_device(dev); ts 201 drivers/input/touchscreen/zet6223.c input_set_drvdata(input, ts); ts 208 drivers/input/touchscreen/zet6223.c input_set_abs_params(input, ABS_MT_POSITION_X, 0, ts->max_x, 0, 0); ts 209 drivers/input/touchscreen/zet6223.c input_set_abs_params(input, ABS_MT_POSITION_Y, 0, ts->max_y, 0, 0); ts 211 drivers/input/touchscreen/zet6223.c touchscreen_parse_properties(input, true, &ts->prop); ts 213 drivers/input/touchscreen/zet6223.c error = input_mt_init_slots(input, ts->fingernum, ts 219 drivers/input/touchscreen/zet6223.c IRQF_ONESHOT, client->name, ts); ts 135 drivers/input/touchscreen/zforce_ts.c static int zforce_command(struct zforce_ts *ts, u8 cmd) ts 137 drivers/input/touchscreen/zforce_ts.c struct i2c_client *client = ts->client; ts 147 drivers/input/touchscreen/zforce_ts.c mutex_lock(&ts->access_mutex); ts 149 drivers/input/touchscreen/zforce_ts.c mutex_unlock(&ts->access_mutex); ts 158 drivers/input/touchscreen/zforce_ts.c static void zforce_reset_assert(struct zforce_ts *ts) ts 160 drivers/input/touchscreen/zforce_ts.c gpiod_set_value_cansleep(ts->gpio_rst, 1); ts 163 drivers/input/touchscreen/zforce_ts.c static void zforce_reset_deassert(struct zforce_ts *ts) ts 165 drivers/input/touchscreen/zforce_ts.c gpiod_set_value_cansleep(ts->gpio_rst, 0); ts 168 drivers/input/touchscreen/zforce_ts.c static int zforce_send_wait(struct zforce_ts *ts, const char *buf, int len) ts 170 drivers/input/touchscreen/zforce_ts.c struct i2c_client *client = ts->client; ts 173 drivers/input/touchscreen/zforce_ts.c ret = mutex_trylock(&ts->command_mutex); ts 182 drivers/input/touchscreen/zforce_ts.c ts->command_waiting = buf[2]; ts 184 drivers/input/touchscreen/zforce_ts.c mutex_lock(&ts->access_mutex); ts 186 drivers/input/touchscreen/zforce_ts.c mutex_unlock(&ts->access_mutex); ts 194 drivers/input/touchscreen/zforce_ts.c if (wait_for_completion_timeout(&ts->command_done, WAIT_TIMEOUT) == 0) { ts 199 drivers/input/touchscreen/zforce_ts.c ret = ts->command_result; ts 202 drivers/input/touchscreen/zforce_ts.c mutex_unlock(&ts->command_mutex); ts 206 drivers/input/touchscreen/zforce_ts.c static int zforce_command_wait(struct zforce_ts *ts, u8 cmd) ts 208 drivers/input/touchscreen/zforce_ts.c struct i2c_client *client = ts->client; ts 218 drivers/input/touchscreen/zforce_ts.c ret = zforce_send_wait(ts, &buf[0], ARRAY_SIZE(buf)); ts 227 drivers/input/touchscreen/zforce_ts.c static int zforce_resolution(struct zforce_ts *ts, u16 x, u16 y) ts 229 drivers/input/touchscreen/zforce_ts.c struct i2c_client *client = ts->client; ts 236 drivers/input/touchscreen/zforce_ts.c return zforce_send_wait(ts, &buf[0], ARRAY_SIZE(buf)); ts 239 drivers/input/touchscreen/zforce_ts.c static int zforce_scan_frequency(struct zforce_ts *ts, u16 idle, u16 finger, ts 242 drivers/input/touchscreen/zforce_ts.c struct i2c_client *client = ts->client; ts 252 drivers/input/touchscreen/zforce_ts.c return zforce_send_wait(ts, &buf[0], ARRAY_SIZE(buf)); ts 255 drivers/input/touchscreen/zforce_ts.c static int zforce_setconfig(struct zforce_ts *ts, char b1) ts 257 drivers/input/touchscreen/zforce_ts.c struct i2c_client *client = ts->client; ts 263 drivers/input/touchscreen/zforce_ts.c return zforce_send_wait(ts, &buf[0], ARRAY_SIZE(buf)); ts 266 drivers/input/touchscreen/zforce_ts.c static int zforce_start(struct zforce_ts *ts) ts 268 drivers/input/touchscreen/zforce_ts.c struct i2c_client *client = ts->client; ts 269 drivers/input/touchscreen/zforce_ts.c const struct zforce_ts_platdata *pdata = ts->pdata; ts 274 drivers/input/touchscreen/zforce_ts.c ret = zforce_command_wait(ts, COMMAND_INITIALIZE); ts 280 drivers/input/touchscreen/zforce_ts.c ret = zforce_resolution(ts, pdata->x_max, pdata->y_max); ts 286 drivers/input/touchscreen/zforce_ts.c ret = zforce_scan_frequency(ts, 10, 50, 50); ts 293 drivers/input/touchscreen/zforce_ts.c ret = zforce_setconfig(ts, SETCONFIG_DUALTOUCH); ts 300 drivers/input/touchscreen/zforce_ts.c ret = zforce_command(ts, COMMAND_DATAREQUEST); ts 315 drivers/input/touchscreen/zforce_ts.c zforce_command_wait(ts, COMMAND_DEACTIVATE); ts 319 drivers/input/touchscreen/zforce_ts.c static int zforce_stop(struct zforce_ts *ts) ts 321 drivers/input/touchscreen/zforce_ts.c struct i2c_client *client = ts->client; ts 327 drivers/input/touchscreen/zforce_ts.c ret = zforce_command_wait(ts, COMMAND_DEACTIVATE); ts 337 drivers/input/touchscreen/zforce_ts.c static int zforce_touch_event(struct zforce_ts *ts, u8 *payload) ts 339 drivers/input/touchscreen/zforce_ts.c struct i2c_client *client = ts->client; ts 340 drivers/input/touchscreen/zforce_ts.c const struct zforce_ts_platdata *pdata = ts->pdata; ts 387 drivers/input/touchscreen/zforce_ts.c input_mt_slot(ts->input, point.id - 1); ts 389 drivers/input/touchscreen/zforce_ts.c input_mt_report_slot_state(ts->input, MT_TOOL_FINGER, ts 393 drivers/input/touchscreen/zforce_ts.c input_report_abs(ts->input, ABS_MT_POSITION_X, ts 395 drivers/input/touchscreen/zforce_ts.c input_report_abs(ts->input, ABS_MT_POSITION_Y, ts 397 drivers/input/touchscreen/zforce_ts.c input_report_abs(ts->input, ABS_MT_TOUCH_MAJOR, ts 399 drivers/input/touchscreen/zforce_ts.c input_report_abs(ts->input, ABS_MT_TOUCH_MINOR, ts 401 drivers/input/touchscreen/zforce_ts.c input_report_abs(ts->input, ABS_MT_ORIENTATION, ts 407 drivers/input/touchscreen/zforce_ts.c input_mt_sync_frame(ts->input); ts 409 drivers/input/touchscreen/zforce_ts.c input_mt_report_finger_count(ts->input, num); ts 411 drivers/input/touchscreen/zforce_ts.c input_sync(ts->input); ts 416 drivers/input/touchscreen/zforce_ts.c static int zforce_read_packet(struct zforce_ts *ts, u8 *buf) ts 418 drivers/input/touchscreen/zforce_ts.c struct i2c_client *client = ts->client; ts 421 drivers/input/touchscreen/zforce_ts.c mutex_lock(&ts->access_mutex); ts 454 drivers/input/touchscreen/zforce_ts.c mutex_unlock(&ts->access_mutex); ts 458 drivers/input/touchscreen/zforce_ts.c static void zforce_complete(struct zforce_ts *ts, int cmd, int result) ts 460 drivers/input/touchscreen/zforce_ts.c struct i2c_client *client = ts->client; ts 462 drivers/input/touchscreen/zforce_ts.c if (ts->command_waiting == cmd) { ts 464 drivers/input/touchscreen/zforce_ts.c ts->command_result = result; ts 465 drivers/input/touchscreen/zforce_ts.c complete(&ts->command_done); ts 473 drivers/input/touchscreen/zforce_ts.c struct zforce_ts *ts = dev_id; ts 474 drivers/input/touchscreen/zforce_ts.c struct i2c_client *client = ts->client; ts 476 drivers/input/touchscreen/zforce_ts.c if (ts->suspended && device_may_wakeup(&client->dev)) ts 484 drivers/input/touchscreen/zforce_ts.c struct zforce_ts *ts = dev_id; ts 485 drivers/input/touchscreen/zforce_ts.c struct i2c_client *client = ts->client; ts 494 drivers/input/touchscreen/zforce_ts.c if (ts->suspended) { ts 502 drivers/input/touchscreen/zforce_ts.c if (!ts->suspending && device_may_wakeup(&client->dev)) ts 515 drivers/input/touchscreen/zforce_ts.c ret = zforce_read_packet(ts, payload_buffer); ts 530 drivers/input/touchscreen/zforce_ts.c if (ts->suspending && device_may_wakeup(&client->dev)) ts 532 drivers/input/touchscreen/zforce_ts.c zforce_touch_event(ts, &payload[RESPONSE_DATA]); ts 536 drivers/input/touchscreen/zforce_ts.c ts->boot_complete = payload[RESPONSE_DATA]; ts 537 drivers/input/touchscreen/zforce_ts.c zforce_complete(ts, payload[RESPONSE_ID], 0); ts 545 drivers/input/touchscreen/zforce_ts.c zforce_complete(ts, payload[RESPONSE_ID], ts 554 drivers/input/touchscreen/zforce_ts.c ts->version_major = (payload[RESPONSE_DATA + 1] << 8) | ts 556 drivers/input/touchscreen/zforce_ts.c ts->version_minor = (payload[RESPONSE_DATA + 3] << 8) | ts 558 drivers/input/touchscreen/zforce_ts.c ts->version_build = (payload[RESPONSE_DATA + 5] << 8) | ts 560 drivers/input/touchscreen/zforce_ts.c ts->version_rev = (payload[RESPONSE_DATA + 7] << 8) | ts 562 drivers/input/touchscreen/zforce_ts.c dev_dbg(&ts->client->dev, ts 564 drivers/input/touchscreen/zforce_ts.c ts->version_major, ts->version_minor, ts 565 drivers/input/touchscreen/zforce_ts.c ts->version_build, ts->version_rev); ts 567 drivers/input/touchscreen/zforce_ts.c zforce_complete(ts, payload[RESPONSE_ID], 0); ts 571 drivers/input/touchscreen/zforce_ts.c dev_err(&ts->client->dev, "invalid command: 0x%x\n", ts 576 drivers/input/touchscreen/zforce_ts.c dev_err(&ts->client->dev, ts 581 drivers/input/touchscreen/zforce_ts.c } while (gpiod_get_value_cansleep(ts->gpio_int)); ts 583 drivers/input/touchscreen/zforce_ts.c if (!ts->suspending && device_may_wakeup(&client->dev)) ts 593 drivers/input/touchscreen/zforce_ts.c struct zforce_ts *ts = input_get_drvdata(dev); ts 595 drivers/input/touchscreen/zforce_ts.c return zforce_start(ts); ts 600 drivers/input/touchscreen/zforce_ts.c struct zforce_ts *ts = input_get_drvdata(dev); ts 601 drivers/input/touchscreen/zforce_ts.c struct i2c_client *client = ts->client; ts 604 drivers/input/touchscreen/zforce_ts.c ret = zforce_stop(ts); ts 614 drivers/input/touchscreen/zforce_ts.c struct zforce_ts *ts = i2c_get_clientdata(client); ts 615 drivers/input/touchscreen/zforce_ts.c struct input_dev *input = ts->input; ts 619 drivers/input/touchscreen/zforce_ts.c ts->suspending = true; ts 630 drivers/input/touchscreen/zforce_ts.c ret = zforce_start(ts); ts 640 drivers/input/touchscreen/zforce_ts.c ret = zforce_stop(ts); ts 647 drivers/input/touchscreen/zforce_ts.c ts->suspended = true; ts 650 drivers/input/touchscreen/zforce_ts.c ts->suspending = false; ts 659 drivers/input/touchscreen/zforce_ts.c struct zforce_ts *ts = i2c_get_clientdata(client); ts 660 drivers/input/touchscreen/zforce_ts.c struct input_dev *input = ts->input; ts 665 drivers/input/touchscreen/zforce_ts.c ts->suspended = false; ts 674 drivers/input/touchscreen/zforce_ts.c ret = zforce_stop(ts); ts 683 drivers/input/touchscreen/zforce_ts.c ret = zforce_start(ts); ts 698 drivers/input/touchscreen/zforce_ts.c struct zforce_ts *ts = data; ts 700 drivers/input/touchscreen/zforce_ts.c zforce_reset_assert(ts); ts 704 drivers/input/touchscreen/zforce_ts.c if (!IS_ERR(ts->reg_vdd)) ts 705 drivers/input/touchscreen/zforce_ts.c regulator_disable(ts->reg_vdd); ts 739 drivers/input/touchscreen/zforce_ts.c struct zforce_ts *ts; ts 749 drivers/input/touchscreen/zforce_ts.c ts = devm_kzalloc(&client->dev, sizeof(struct zforce_ts), GFP_KERNEL); ts 750 drivers/input/touchscreen/zforce_ts.c if (!ts) ts 753 drivers/input/touchscreen/zforce_ts.c ts->gpio_rst = devm_gpiod_get_optional(&client->dev, "reset", ts 755 drivers/input/touchscreen/zforce_ts.c if (IS_ERR(ts->gpio_rst)) { ts 756 drivers/input/touchscreen/zforce_ts.c ret = PTR_ERR(ts->gpio_rst); ts 762 drivers/input/touchscreen/zforce_ts.c if (ts->gpio_rst) { ts 763 drivers/input/touchscreen/zforce_ts.c ts->gpio_int = devm_gpiod_get_optional(&client->dev, "irq", ts 765 drivers/input/touchscreen/zforce_ts.c if (IS_ERR(ts->gpio_int)) { ts 766 drivers/input/touchscreen/zforce_ts.c ret = PTR_ERR(ts->gpio_int); ts 778 drivers/input/touchscreen/zforce_ts.c ts->gpio_int = devm_gpiod_get_index(&client->dev, NULL, 0, ts 780 drivers/input/touchscreen/zforce_ts.c if (IS_ERR(ts->gpio_int)) { ts 781 drivers/input/touchscreen/zforce_ts.c ret = PTR_ERR(ts->gpio_int); ts 788 drivers/input/touchscreen/zforce_ts.c ts->gpio_rst = devm_gpiod_get_index(&client->dev, NULL, 1, ts 790 drivers/input/touchscreen/zforce_ts.c if (IS_ERR(ts->gpio_rst)) { ts 791 drivers/input/touchscreen/zforce_ts.c ret = PTR_ERR(ts->gpio_rst); ts 798 drivers/input/touchscreen/zforce_ts.c ts->reg_vdd = devm_regulator_get_optional(&client->dev, "vdd"); ts 799 drivers/input/touchscreen/zforce_ts.c if (IS_ERR(ts->reg_vdd)) { ts 800 drivers/input/touchscreen/zforce_ts.c ret = PTR_ERR(ts->reg_vdd); ts 804 drivers/input/touchscreen/zforce_ts.c ret = regulator_enable(ts->reg_vdd); ts 815 drivers/input/touchscreen/zforce_ts.c ret = devm_add_action(&client->dev, zforce_reset, ts); ts 821 drivers/input/touchscreen/zforce_ts.c if (!IS_ERR(ts->reg_vdd)) ts 822 drivers/input/touchscreen/zforce_ts.c regulator_disable(ts->reg_vdd); ts 827 drivers/input/touchscreen/zforce_ts.c snprintf(ts->phys, sizeof(ts->phys), ts 836 drivers/input/touchscreen/zforce_ts.c mutex_init(&ts->access_mutex); ts 837 drivers/input/touchscreen/zforce_ts.c mutex_init(&ts->command_mutex); ts 839 drivers/input/touchscreen/zforce_ts.c ts->pdata = pdata; ts 840 drivers/input/touchscreen/zforce_ts.c ts->client = client; ts 841 drivers/input/touchscreen/zforce_ts.c ts->input = input_dev; ts 844 drivers/input/touchscreen/zforce_ts.c input_dev->phys = ts->phys; ts 867 drivers/input/touchscreen/zforce_ts.c input_set_drvdata(ts->input, ts); ts 869 drivers/input/touchscreen/zforce_ts.c init_completion(&ts->command_done); ts 881 drivers/input/touchscreen/zforce_ts.c input_dev->name, ts); ts 887 drivers/input/touchscreen/zforce_ts.c i2c_set_clientdata(client, ts); ts 890 drivers/input/touchscreen/zforce_ts.c zforce_reset_deassert(ts); ts 892 drivers/input/touchscreen/zforce_ts.c ts->command_waiting = NOTIFICATION_BOOTCOMPLETE; ts 893 drivers/input/touchscreen/zforce_ts.c if (wait_for_completion_timeout(&ts->command_done, WAIT_TIMEOUT) == 0) ts 897 drivers/input/touchscreen/zforce_ts.c ret = zforce_command_wait(ts, COMMAND_INITIALIZE); ts 904 drivers/input/touchscreen/zforce_ts.c ret = zforce_command_wait(ts, COMMAND_STATUS); ts 907 drivers/input/touchscreen/zforce_ts.c zforce_stop(ts); ts 912 drivers/input/touchscreen/zforce_ts.c ret = zforce_stop(ts); ts 100 drivers/media/cec/cec-adap.c const struct cec_event *new_ev, u64 ts) ts 111 drivers/media/cec/cec-adap.c if (ts == 0) ts 112 drivers/media/cec/cec-adap.c ts = ktime_get_ns(); ts 127 drivers/media/cec/cec-adap.c entry->ev.ts = ts; ts 161 drivers/media/cec/cec-adap.c u64 ts = ktime_get_ns(); ts 166 drivers/media/cec/cec-adap.c cec_queue_event_fh(fh, ev, ts); ts 172 drivers/media/cec/cec-adap.c bool dropped_events, ktime_t ts) ts 184 drivers/media/cec/cec-adap.c cec_queue_event_fh(fh, &ev, ktime_to_ns(ts)); ts 190 drivers/media/cec/cec-adap.c void cec_queue_pin_hpd_event(struct cec_adapter *adap, bool is_high, ktime_t ts) ts 200 drivers/media/cec/cec-adap.c cec_queue_event_fh(fh, &ev, ktime_to_ns(ts)); ts 206 drivers/media/cec/cec-adap.c void cec_queue_pin_5v_event(struct cec_adapter *adap, bool is_high, ktime_t ts) ts 216 drivers/media/cec/cec-adap.c cec_queue_event_fh(fh, &ev, ktime_to_ns(ts)); ts 593 drivers/media/cec/cec-adap.c u8 error_cnt, ktime_t ts) ts 624 drivers/media/cec/cec-adap.c msg->tx_ts = ktime_to_ns(ts); ts 689 drivers/media/cec/cec-adap.c u8 status, ktime_t ts) ts 693 drivers/media/cec/cec-adap.c cec_transmit_done_ts(adap, status, 0, 0, 0, 0, ts); ts 696 drivers/media/cec/cec-adap.c cec_transmit_done_ts(adap, status, 1, 0, 0, 0, ts); ts 699 drivers/media/cec/cec-adap.c cec_transmit_done_ts(adap, status, 0, 1, 0, 0, ts); ts 702 drivers/media/cec/cec-adap.c cec_transmit_done_ts(adap, status, 0, 0, 1, 0, ts); ts 705 drivers/media/cec/cec-adap.c cec_transmit_done_ts(adap, status, 0, 0, 0, 1, ts); ts 1037 drivers/media/cec/cec-adap.c struct cec_msg *msg, ktime_t ts) ts 1065 drivers/media/cec/cec-adap.c msg->rx_ts = ktime_to_ns(ts); ts 291 drivers/media/cec/cec-api.c u64 ts = ~0ULL; ts 312 drivers/media/cec/cec-api.c if (entry && entry->ev.ts <= ts) { ts 315 drivers/media/cec/cec-api.c ts = ev->ev.ts; ts 170 drivers/media/cec/cec-pin-priv.h ktime_t ts; ts 332 drivers/media/cec/cec-pin.c pin->ts = ns_to_ktime(0); ts 370 drivers/media/cec/cec-pin.c static void cec_pin_tx_states(struct cec_pin *pin, ktime_t ts) ts 415 drivers/media/cec/cec-pin.c pin->work_tx_ts = ts; ts 442 drivers/media/cec/cec-pin.c pin->work_tx_ts = ts; ts 456 drivers/media/cec/cec-pin.c pin->work_tx_ts = ts; ts 474 drivers/media/cec/cec-pin.c pin->work_tx_ts = ts; ts 485 drivers/media/cec/cec-pin.c pin->work_tx_ts = ts; ts 578 drivers/media/cec/cec-pin.c pin->work_tx_ts = ts; ts 587 drivers/media/cec/cec-pin.c pin->ts = ktime_sub_us(ts, CEC_TIM_DATA_BIT_SAMPLE); ts 652 drivers/media/cec/cec-pin.c static void cec_pin_rx_states(struct cec_pin *pin, ktime_t ts) ts 668 drivers/media/cec/cec-pin.c delta = ktime_us_delta(ts, pin->ts); ts 672 drivers/media/cec/cec-pin.c pin->rx_start_bit_low_too_short_ts = ktime_to_ns(pin->ts); ts 683 drivers/media/cec/cec-pin.c pin->ts = ts; ts 689 drivers/media/cec/cec-pin.c delta = ktime_us_delta(ts, pin->ts); ts 704 drivers/media/cec/cec-pin.c pin->rx_start_bit_too_short_ts = ktime_to_ns(pin->ts); ts 718 drivers/media/cec/cec-pin.c pin->ts = ts; ts 747 drivers/media/cec/cec-pin.c delta = ktime_us_delta(ts, pin->ts); ts 774 drivers/media/cec/cec-pin.c pin->rx_data_bit_too_short_ts = ktime_to_ns(pin->ts); ts 782 drivers/media/cec/cec-pin.c pin->ts = ts; ts 819 drivers/media/cec/cec-pin.c pin->work_rx_msg.rx_ts = ktime_to_ns(ts); ts 821 drivers/media/cec/cec-pin.c pin->ts = ts; ts 846 drivers/media/cec/cec-pin.c ktime_t ts; ts 850 drivers/media/cec/cec-pin.c ts = ktime_get(); ts 852 drivers/media/cec/cec-pin.c delta = ktime_us_delta(ts, pin->timer_ts); ts 874 drivers/media/cec/cec-pin.c pin->timer_ts = ktime_add_us(ts, 100); ts 880 drivers/media/cec/cec-pin.c pin->timer_ts = ktime_add_us(ts, pin->wait_usecs); ts 885 drivers/media/cec/cec-pin.c pin->timer_ts = ktime_add_us(ts, pin->wait_usecs); ts 917 drivers/media/cec/cec-pin.c cec_pin_tx_states(pin, ts); ts 930 drivers/media/cec/cec-pin.c cec_pin_rx_states(pin, ts); ts 937 drivers/media/cec/cec-pin.c pin->ts = ts; ts 952 drivers/media/cec/cec-pin.c if (ktime_to_ns(pin->ts) == 0) ts 953 drivers/media/cec/cec-pin.c pin->ts = ts; ts 959 drivers/media/cec/cec-pin.c delta = ktime_us_delta(ts, pin->ts); ts 1021 drivers/media/cec/cec-pin.c pin->timer_ts = ktime_add_us(ts, usecs); ts 1027 drivers/media/cec/cec-pin.c pin->timer_ts = ktime_add_us(ts, 100); ts 46 drivers/media/cec/cec-priv.h const struct cec_event *new_ev, u64 ts); ts 109 drivers/media/common/saa7146/saa7146_fops.c q->curr->vb.ts = ktime_get_ns(); ts 499 drivers/media/dvb-core/dmxdev.c list_for_each_entry(feed, &dmxdevfilter->feed.ts, next) ts 500 drivers/media/dvb-core/dmxdev.c feed->ts->stop_filtering(feed->ts); ts 520 drivers/media/dvb-core/dmxdev.c list_for_each_entry(feed, &filter->feed.ts, next) { ts 521 drivers/media/dvb-core/dmxdev.c ret = feed->ts->start_filtering(feed->ts); ts 580 drivers/media/dvb-core/dmxdev.c list_for_each_entry(feed, &dmxdevfilter->feed.ts, next) { ts 581 drivers/media/dvb-core/dmxdev.c demux->release_ts_feed(demux, feed->ts); ts 582 drivers/media/dvb-core/dmxdev.c feed->ts = NULL; ts 600 drivers/media/dvb-core/dmxdev.c list_for_each_entry_safe(feed, tmp, &dmxdevfilter->feed.ts, next) { ts 605 drivers/media/dvb-core/dmxdev.c BUG_ON(!list_empty(&dmxdevfilter->feed.ts)); ts 633 drivers/media/dvb-core/dmxdev.c feed->ts = NULL; ts 650 drivers/media/dvb-core/dmxdev.c ret = dmxdev->demux->allocate_ts_feed(dmxdev->demux, &feed->ts, ts 655 drivers/media/dvb-core/dmxdev.c tsfeed = feed->ts; ts 774 drivers/media/dvb-core/dmxdev.c list_for_each_entry(feed, &filter->feed.ts, next) { ts 883 drivers/media/dvb-core/dmxdev.c (!list_empty(&filter->feed.ts))) ts 891 drivers/media/dvb-core/dmxdev.c list_add(&feed->next, &filter->feed.ts); ts 908 drivers/media/dvb-core/dmxdev.c list_for_each_entry_safe(feed, tmp, &filter->feed.ts, next) { ts 909 drivers/media/dvb-core/dmxdev.c if ((feed->pid == pid) && (feed->ts != NULL)) { ts 910 drivers/media/dvb-core/dmxdev.c feed->ts->stop_filtering(feed->ts); ts 912 drivers/media/dvb-core/dmxdev.c feed->ts); ts 957 drivers/media/dvb-core/dmxdev.c INIT_LIST_HEAD(&dmxdevfilter->feed.ts); ts 140 drivers/media/dvb-core/dvb_demux.c return feed->cb.ts(&buf[p], count, NULL, 0, &feed->feed.ts, ts 383 drivers/media/dvb-core/dvb_demux.c if (!feed->feed.ts.is_filtering) ts 389 drivers/media/dvb-core/dvb_demux.c feed->cb.ts(buf, 188, NULL, 0, &feed->feed.ts, ts 412 drivers/media/dvb-core/dvb_demux.c ((f)->feed.ts.is_filtering) && \ ts 499 drivers/media/dvb-core/dvb_demux.c feed->cb.ts(buf, 188, NULL, 0, &feed->feed.ts, ts 619 drivers/media/dvb-core/dvb_demux.c demux->feed->cb.ts(buf, count, NULL, 0, &demux->feed->feed.ts, ts 816 drivers/media/dvb-core/dvb_demux.c feed->cb.ts = callback; ts 822 drivers/media/dvb-core/dvb_demux.c (*ts_feed) = &feed->feed.ts; ts 310 drivers/media/dvb-core/dvb_net.c const u8 *ts, *ts_end, *from_where; ts 322 drivers/media/dvb-core/dvb_net.c memcpy(ule_where, h->ts, TS_SZ); ts 334 drivers/media/dvb-core/dvb_net.c if ((h->ts[0] != TS_SYNC) || (h->ts[1] & TS_TEI) || ts 335 drivers/media/dvb-core/dvb_net.c ((h->ts[3] & TS_SC) != 0)) { ts 337 drivers/media/dvb-core/dvb_net.c h->priv->ts_count, h->ts[0], ts 338 drivers/media/dvb-core/dvb_net.c (h->ts[1] & TS_TEI) >> 7, ts 339 drivers/media/dvb-core/dvb_net.c (h->ts[3] & TS_SC) >> 6); ts 352 drivers/media/dvb-core/dvb_net.c h->ts += TS_SZ; ts 358 drivers/media/dvb-core/dvb_net.c h->from_where = h->ts + 4; ts 365 drivers/media/dvb-core/dvb_net.c if (h->ts[1] & TS_PUSI) { ts 368 drivers/media/dvb-core/dvb_net.c h->priv->tscc = h->ts[3] & 0x0F; ts 370 drivers/media/dvb-core/dvb_net.c if (h->ts[4] > h->ts_remain) { ts 372 drivers/media/dvb-core/dvb_net.c h->priv->ts_count, h->ts[4]); ts 373 drivers/media/dvb-core/dvb_net.c h->ts += TS_SZ; ts 378 drivers/media/dvb-core/dvb_net.c h->from_where = &h->ts[5] + h->ts[4]; ts 379 drivers/media/dvb-core/dvb_net.c h->ts_remain -= 1 + h->ts[4]; ts 383 drivers/media/dvb-core/dvb_net.c h->ts += TS_SZ; ts 394 drivers/media/dvb-core/dvb_net.c if ((h->ts[3] & 0x0F) == h->priv->tscc) ts 399 drivers/media/dvb-core/dvb_net.c h->priv->ts_count, h->ts[3] & 0x0F, ts 420 drivers/media/dvb-core/dvb_net.c if (h->ts[1] & TS_PUSI) { ts 470 drivers/media/dvb-core/dvb_net.c h->ts[4], h->ts_remain); ts 478 drivers/media/dvb-core/dvb_net.c h->from_where += h->ts[4]; ts 479 drivers/media/dvb-core/dvb_net.c h->ts_remain -= h->ts[4]; ts 500 drivers/media/dvb-core/dvb_net.c h->ts += TS_SZ; ts 524 drivers/media/dvb-core/dvb_net.c h->ts += TS_SZ; ts 552 drivers/media/dvb-core/dvb_net.c h->ts += TS_SZ; ts 768 drivers/media/dvb-core/dvb_net.c .ts = NULL, ts 781 drivers/media/dvb-core/dvb_net.c for (h.ts = h.buf, h.ts_end = h.buf + h.buf_len; ts 782 drivers/media/dvb-core/dvb_net.c h.ts < h.ts_end; /* no incr. */) { ts 862 drivers/media/dvb-core/dvb_net.c h.ts += TS_SZ; ts 648 drivers/media/dvb-frontends/dib9000.c u32 ts = data[1] << 16 | data[0]; ts 658 drivers/media/dvb-frontends/dib9000.c ts / 10000, ts % 10000, *b ? b : "<empty>"); ts 3550 drivers/media/pci/bt8xx/bttv-driver.c u64 ts = ktime_get_ns(); ts 3557 drivers/media/pci/bt8xx/bttv-driver.c wakeup->top->vb.ts = ts; ts 3567 drivers/media/pci/bt8xx/bttv-driver.c wakeup->top->vb.ts = ts; ts 3576 drivers/media/pci/bt8xx/bttv-driver.c wakeup->bottom->vb.ts = ts; ts 3591 drivers/media/pci/bt8xx/bttv-driver.c wakeup->vb.ts = ktime_get_ns(); ts 3661 drivers/media/pci/bt8xx/bttv-driver.c wakeup->vb.ts = ktime_get_ns(); ts 191 drivers/media/pci/cx18/cx18-mailbox.c vb_buf->vb.ts = ktime_get_ns(); ts 799 drivers/media/pci/meye/meye.c meye.grab_buffer[reqnr].ts = ktime_get_ns(); ts 820 drivers/media/pci/meye/meye.c meye.grab_buffer[reqnr].ts = ktime_get_ns(); ts 1269 drivers/media/pci/meye/meye.c buf->timestamp = ns_to_timeval(meye.grab_buffer[index].ts); ts 1335 drivers/media/pci/meye/meye.c buf->timestamp = ns_to_timeval(meye.grab_buffer[reqnr].ts); ts 271 drivers/media/pci/meye/meye.h u64 ts; /* timestamp */ ts 1216 drivers/media/pci/saa7134/saa7134-dvb.c dev->ts.nr_bufs = 32; ts 1217 drivers/media/pci/saa7134/saa7134-dvb.c dev->ts.nr_packets = 32*4; ts 111 drivers/media/pci/saa7134/saa7134-empress.c f->fmt.pix.sizeimage = TS_PACKET_SIZE * dev->ts.nr_packets; ts 130 drivers/media/pci/saa7134/saa7134-empress.c f->fmt.pix.sizeimage = TS_PACKET_SIZE * dev->ts.nr_packets; ts 150 drivers/media/pci/saa7134/saa7134-empress.c f->fmt.pix.sizeimage = TS_PACKET_SIZE * dev->ts.nr_packets; ts 92 drivers/media/pci/saa7134/saa7134-ts.c lines = dev->ts.nr_packets; ts 112 drivers/media/pci/saa7134/saa7134-ts.c int size = TS_PACKET_SIZE * dev->ts.nr_packets; ts 115 drivers/media/pci/saa7134/saa7134-ts.c *nbuffers = dev->ts.nr_bufs; ts 193 drivers/media/pci/saa7134/saa7134-ts.c saa_writeb(SAA7134_TS_DMA0, ((dev->ts.nr_packets-1)&0xff)); ts 194 drivers/media/pci/saa7134/saa7134-ts.c saa_writeb(SAA7134_TS_DMA1, (((dev->ts.nr_packets-1)>>8)&0xff)); ts 197 drivers/media/pci/saa7134/saa7134-ts.c ((((dev->ts.nr_packets-1)>>16)&0x3f) | 0x00)); ts 213 drivers/media/pci/saa7134/saa7134-ts.c dev->ts.nr_bufs = tsbufs; ts 214 drivers/media/pci/saa7134/saa7134-ts.c dev->ts.nr_packets = ts_nr_packets; ts 260 drivers/media/pci/saa7134/saa7134-ts.c saa_writeb(SAA7134_TS_DMA0, (dev->ts.nr_packets - 1) & 0xff); ts 262 drivers/media/pci/saa7134/saa7134-ts.c ((dev->ts.nr_packets - 1) >> 8) & 0xff); ts 265 drivers/media/pci/saa7134/saa7134-ts.c (((dev->ts.nr_packets - 1) >> 16) & 0x3f) | 0x00); ts 614 drivers/media/pci/saa7134/saa7134.h struct saa7134_ts ts; ts 41 drivers/media/pci/solo6x10/solo6x10-core.c struct timespec64 ts; ts 43 drivers/media/pci/solo6x10/solo6x10-core.c ktime_get_ts64(&ts); ts 46 drivers/media/pci/solo6x10/solo6x10-core.c solo_reg_write(solo_dev, SOLO_TIMER_SEC, (u32)ts.tv_sec); ts 47 drivers/media/pci/solo6x10/solo6x10-core.c solo_reg_write(solo_dev, SOLO_TIMER_USEC, (u32)ts.tv_nsec / NSEC_PER_USEC); ts 53 drivers/media/pci/solo6x10/solo6x10-core.c struct timespec64 ts; ts 67 drivers/media/pci/solo6x10/solo6x10-core.c ktime_get_ts64(&ts); ts 69 drivers/media/pci/solo6x10/solo6x10-core.c diff = (s32)ts.tv_sec - (s32)sec; ts 71 drivers/media/pci/solo6x10/solo6x10-core.c + ((s32)(ts.tv_nsec / NSEC_PER_USEC) - (s32)usec); ts 314 drivers/media/pci/ttpci/av7110.c return dvbdmxfilter->feed->cb.ts(buffer1, buffer1_len, ts 316 drivers/media/pci/ttpci/av7110.c &dvbdmxfilter->feed->feed.ts, ts 333 drivers/media/pci/ttpci/av7110.c struct timespec64 ts; ts 334 drivers/media/pci/ttpci/av7110.c ktime_get_real_ts64(&ts); ts 335 drivers/media/pci/ttpci/av7110.c printk("%s: %lld.%09ld\n", s, (s64)ts.tv_sec, ts.tv_nsec); ts 87 drivers/media/pci/ttpci/av7110_av.c return dvbdmxfeed->cb.ts(buf, len, NULL, 0, ts 88 drivers/media/pci/ttpci/av7110_av.c &dvbdmxfeed->feed.ts, NULL); ts 97 drivers/media/pci/ttpci/av7110_av.c dvbdmxfeed->cb.ts(data, 188, NULL, 0, ts 98 drivers/media/pci/ttpci/av7110_av.c &dvbdmxfeed->feed.ts, NULL); ts 803 drivers/media/pci/ttpci/av7110_av.c feed->cb.ts(obuf, 188, NULL, 0, &feed->feed.ts, NULL); ts 481 drivers/media/platform/davinci/vpfe_capture.c vpfe_dev->cur_frm->ts = ktime_get_ns(); ts 1083 drivers/media/platform/fsl-viu.c buf->vb.ts = ktime_get_ns(); ts 440 drivers/media/platform/omap/omap_vout.c unsigned int irqstatus, u64 ts) ts 464 drivers/media/platform/omap/omap_vout.c vout->cur_frm->vbuf.vb2_buf.timestamp = ts; ts 484 drivers/media/platform/omap/omap_vout.c u64 ts; ts 501 drivers/media/platform/omap/omap_vout.c ts = ktime_get_ns(); ts 519 drivers/media/platform/omap/omap_vout.c ts); ts 532 drivers/media/platform/omap/omap_vout.c vout->cur_frm->vbuf.vb2_buf.timestamp = ts; ts 238 drivers/media/platform/omap3isp/ispstat.c ktime_get_ts64(&stat->active_buf->ts); ts 499 drivers/media/platform/omap3isp/ispstat.c data->ts.tv_sec = buf->ts.tv_sec; ts 500 drivers/media/platform/omap3isp/ispstat.c data->ts.tv_usec = buf->ts.tv_nsec / NSEC_PER_USEC; ts 522 drivers/media/platform/omap3isp/ispstat.c data->ts.tv_sec = data64.ts.tv_sec; ts 523 drivers/media/platform/omap3isp/ispstat.c data->ts.tv_usec = data64.ts.tv_usec; ts 524 drivers/media/platform/omap3isp/ispstat.c memcpy(&data->buf, &data64.buf, sizeof(*data) - sizeof(data->ts)); ts 39 drivers/media/platform/omap3isp/ispstat.h struct timespec64 ts; ts 1013 drivers/media/platform/qcom/camss/camss-vfe.c u64 ts = ktime_get_ns(); ts 1042 drivers/media/platform/qcom/camss/camss-vfe.c ready_buf->vb.vb2_buf.timestamp = ts; ts 64 drivers/media/platform/vivid/vivid-cec.c static void vivid_cec_pin_adap_events(struct cec_adapter *adap, ktime_t ts, ts 80 drivers/media/platform/vivid/vivid-cec.c ts = ktime_sub_us(ts, CEC_TIM_START_BIT_TOTAL + ts 82 drivers/media/platform/vivid/vivid-cec.c cec_queue_pin_cec_event(adap, false, false, ts); ts 83 drivers/media/platform/vivid/vivid-cec.c ts = ktime_add_us(ts, CEC_TIM_START_BIT_LOW); ts 84 drivers/media/platform/vivid/vivid-cec.c cec_queue_pin_cec_event(adap, true, false, ts); ts 85 drivers/media/platform/vivid/vivid-cec.c ts = ktime_add_us(ts, CEC_TIM_START_BIT_HIGH); ts 99 drivers/media/platform/vivid/vivid-cec.c cec_queue_pin_cec_event(adap, false, false, ts); ts 101 drivers/media/platform/vivid/vivid-cec.c ts = ktime_add_us(ts, CEC_TIM_DATA_BIT_1_LOW); ts 103 drivers/media/platform/vivid/vivid-cec.c ts = ktime_add_us(ts, CEC_TIM_DATA_BIT_0_LOW); ts 104 drivers/media/platform/vivid/vivid-cec.c cec_queue_pin_cec_event(adap, true, false, ts); ts 106 drivers/media/platform/vivid/vivid-cec.c ts = ktime_add_us(ts, CEC_TIM_DATA_BIT_1_HIGH); ts 108 drivers/media/platform/vivid/vivid-cec.c ts = ktime_add_us(ts, CEC_TIM_DATA_BIT_0_HIGH); ts 115 drivers/media/platform/vivid/vivid-cec.c ktime_t ts = ktime_get(); ts 118 drivers/media/platform/vivid/vivid-cec.c vivid_cec_pin_adap_events(dev->cec_rx_adap, ts, msg, nacked); ts 120 drivers/media/platform/vivid/vivid-cec.c vivid_cec_pin_adap_events(dev->cec_tx_adap[i], ts, msg, nacked); ts 344 drivers/media/usb/cpia2/cpia2.h u64 ts; ts 318 drivers/media/usb/cpia2/cpia2_usb.c cam->workbuff->ts = ktime_get_ns(); ts 803 drivers/media/usb/cpia2/cpia2_v4l.c buf->timestamp = ns_to_timeval(cam->buffers[buf->index].ts); ts 859 drivers/media/usb/cpia2/cpia2_v4l.c if (cam->buffers[i].ts < cam->buffers[found].ts) ts 910 drivers/media/usb/cpia2/cpia2_v4l.c buf->timestamp = ns_to_timeval(cam->buffers[buf->index].ts); ts 1311 drivers/media/usb/cx231xx/cx231xx-417.c buf->vb.ts = ktime_get_ns(); ts 1342 drivers/media/usb/cx231xx/cx231xx-417.c buf->vb.ts = ktime_get_ns(); ts 519 drivers/media/usb/cx231xx/cx231xx-vbi.c buf->vb.ts = ktime_get_ns(); ts 172 drivers/media/usb/cx231xx/cx231xx-video.c buf->vb.ts = ktime_get_ns(); ts 3381 drivers/media/usb/em28xx/em28xx-cards.c if (dev->ts == PRIMARY_TS) ts 3406 drivers/media/usb/em28xx/em28xx-cards.c if (dev->ts == PRIMARY_TS) ts 3825 drivers/media/usb/em28xx/em28xx-cards.c dev->ts = PRIMARY_TS; ts 3918 drivers/media/usb/em28xx/em28xx-cards.c dev->dev_next->ts = SECONDARY_TS; ts 643 drivers/media/usb/em28xx/em28xx-core.c em28xx_write_reg(dev, (dev->ts == PRIMARY_TS) ? ts 649 drivers/media/usb/em28xx/em28xx-core.c em28xx_write_reg(dev, (dev->ts == PRIMARY_TS) ? ts 654 drivers/media/usb/em28xx/em28xx-core.c if (dev->ts == PRIMARY_TS) ts 1339 drivers/media/usb/em28xx/em28xx-dvb.c addr = (dev->ts == PRIMARY_TS) ? 0x64 : 0x67; ts 1354 drivers/media/usb/em28xx/em28xx-dvb.c addr = (dev->ts == PRIMARY_TS) ? 0x60 : 0x63; ts 1379 drivers/media/usb/em28xx/em28xx-dvb.c addr = (dev->ts == PRIMARY_TS) ? 0x59 : 0x0e; ts 1394 drivers/media/usb/em28xx/em28xx-dvb.c addr = (dev->ts == PRIMARY_TS) ? 0x60 : 0x62; ts 781 drivers/media/usb/em28xx/em28xx.h int ts; ts 106 drivers/media/usb/tm6000/tm6000-video.c buf->vb.ts = ktime_get_ns(); ts 883 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c dvbdmxfeed->cb.ts(data, len, 0, 0, &dvbdmxfeed->feed.ts, 0); ts 420 drivers/media/usb/ttusb-dec/ttusb_dec.c dec->audio_filter->feed->cb.ts(data, 188, NULL, 0, ts 421 drivers/media/usb/ttusb-dec/ttusb_dec.c &dec->audio_filter->feed->feed.ts, NULL); ts 430 drivers/media/usb/ttusb-dec/ttusb_dec.c dec->video_filter->feed->cb.ts(data, 188, NULL, 0, ts 431 drivers/media/usb/ttusb-dec/ttusb_dec.c &dec->video_filter->feed->feed.ts, NULL); ts 482 drivers/media/usb/ttusb-dec/ttusb_dec.c dec->video_filter->feed->cb.ts(pva, length, NULL, 0, ts 483 drivers/media/usb/ttusb-dec/ttusb_dec.c &dec->video_filter->feed->feed.ts, NULL); ts 543 drivers/media/usb/ttusb-dec/ttusb_dec.c dec->audio_filter->feed->cb.ts(pva, length, NULL, 0, ts 544 drivers/media/usb/ttusb-dec/ttusb_dec.c &dec->audio_filter->feed->feed.ts, NULL); ts 1153 drivers/media/usb/usbvision/usbvision-core.c frame->ts = ktime_get_ns(); ts 699 drivers/media/usb/usbvision/usbvision-video.c vb->timestamp = ns_to_timeval(usbvision->frame[vb->index].ts); ts 768 drivers/media/usb/usbvision/usbvision-video.c vb->timestamp = ns_to_timeval(f->ts); ts 308 drivers/media/usb/usbvision/usbvision.h u64 ts; ts 510 drivers/media/usb/zr364xx/zr364xx.c buf->vb.ts = ktime_get_ns(); ts 538 drivers/media/usb/zr364xx/zr364xx.c buf->vb.ts = ktime_get_ns(); ts 47 drivers/media/v4l2-core/v4l2-event.c event->timestamp = ns_to_timespec(kev->ts); ts 100 drivers/media/v4l2-core/v4l2-event.c const struct v4l2_event *ev, u64 ts) ts 140 drivers/media/v4l2-core/v4l2-event.c kev->ts = ts; ts 154 drivers/media/v4l2-core/v4l2-event.c u64 ts; ts 159 drivers/media/v4l2-core/v4l2-event.c ts = ktime_get_ns(); ts 164 drivers/media/v4l2-core/v4l2-event.c __v4l2_event_queue_fh(fh, ev, ts); ts 173 drivers/media/v4l2-core/v4l2-event.c u64 ts = ktime_get_ns(); ts 176 drivers/media/v4l2-core/v4l2-event.c __v4l2_event_queue_fh(fh, ev, ts); ts 367 drivers/media/v4l2-core/videobuf-core.c b->timestamp = ns_to_timeval(vb->ts); ts 581 drivers/media/v4l2-core/videobuf-core.c buf->ts = v4l2_timeval_to_ns(&b->timestamp); ts 127 drivers/mfd/ipaq-micro.c if (micro->ts) ts 128 drivers/mfd/ipaq-micro.c micro->ts(micro->ts_data, len, data); ts 54 drivers/mfd/ucb1x00-ts.c static inline void ucb1x00_ts_evt_add(struct ucb1x00_ts *ts, u16 pressure, u16 x, u16 y) ts 56 drivers/mfd/ucb1x00-ts.c struct input_dev *idev = ts->idev; ts 65 drivers/mfd/ucb1x00-ts.c static inline void ucb1x00_ts_event_release(struct ucb1x00_ts *ts) ts 67 drivers/mfd/ucb1x00-ts.c struct input_dev *idev = ts->idev; ts 77 drivers/mfd/ucb1x00-ts.c static inline void ucb1x00_ts_mode_int(struct ucb1x00_ts *ts) ts 79 drivers/mfd/ucb1x00-ts.c ucb1x00_reg_write(ts->ucb, UCB_TS_CR, ts 89 drivers/mfd/ucb1x00-ts.c static inline unsigned int ucb1x00_ts_read_pressure(struct ucb1x00_ts *ts) ts 92 drivers/mfd/ucb1x00-ts.c ucb1x00_io_write(ts->ucb, COLLIE_TC35143_GPIO_TBL_CHK, 0); ts 93 drivers/mfd/ucb1x00-ts.c ucb1x00_reg_write(ts->ucb, UCB_TS_CR, ts 99 drivers/mfd/ucb1x00-ts.c return ucb1x00_adc_read(ts->ucb, UCB_ADC_INP_AD2, ts->adcsync); ts 101 drivers/mfd/ucb1x00-ts.c ucb1x00_reg_write(ts->ucb, UCB_TS_CR, ts 106 drivers/mfd/ucb1x00-ts.c return ucb1x00_adc_read(ts->ucb, UCB_ADC_INP_TSPY, ts->adcsync); ts 116 drivers/mfd/ucb1x00-ts.c static inline unsigned int ucb1x00_ts_read_xpos(struct ucb1x00_ts *ts) ts 119 drivers/mfd/ucb1x00-ts.c ucb1x00_io_write(ts->ucb, 0, COLLIE_TC35143_GPIO_TBL_CHK); ts 121 drivers/mfd/ucb1x00-ts.c ucb1x00_reg_write(ts->ucb, UCB_TS_CR, ts 124 drivers/mfd/ucb1x00-ts.c ucb1x00_reg_write(ts->ucb, UCB_TS_CR, ts 128 drivers/mfd/ucb1x00-ts.c ucb1x00_reg_write(ts->ucb, UCB_TS_CR, ts 134 drivers/mfd/ucb1x00-ts.c return ucb1x00_adc_read(ts->ucb, UCB_ADC_INP_TSPY, ts->adcsync); ts 143 drivers/mfd/ucb1x00-ts.c static inline unsigned int ucb1x00_ts_read_ypos(struct ucb1x00_ts *ts) ts 146 drivers/mfd/ucb1x00-ts.c ucb1x00_io_write(ts->ucb, 0, COLLIE_TC35143_GPIO_TBL_CHK); ts 148 drivers/mfd/ucb1x00-ts.c ucb1x00_reg_write(ts->ucb, UCB_TS_CR, ts 151 drivers/mfd/ucb1x00-ts.c ucb1x00_reg_write(ts->ucb, UCB_TS_CR, ts 156 drivers/mfd/ucb1x00-ts.c ucb1x00_reg_write(ts->ucb, UCB_TS_CR, ts 162 drivers/mfd/ucb1x00-ts.c return ucb1x00_adc_read(ts->ucb, UCB_ADC_INP_TSPX, ts->adcsync); ts 169 drivers/mfd/ucb1x00-ts.c static inline unsigned int ucb1x00_ts_read_xres(struct ucb1x00_ts *ts) ts 171 drivers/mfd/ucb1x00-ts.c ucb1x00_reg_write(ts->ucb, UCB_TS_CR, ts 174 drivers/mfd/ucb1x00-ts.c return ucb1x00_adc_read(ts->ucb, 0, ts->adcsync); ts 181 drivers/mfd/ucb1x00-ts.c static inline unsigned int ucb1x00_ts_read_yres(struct ucb1x00_ts *ts) ts 183 drivers/mfd/ucb1x00-ts.c ucb1x00_reg_write(ts->ucb, UCB_TS_CR, ts 186 drivers/mfd/ucb1x00-ts.c return ucb1x00_adc_read(ts->ucb, 0, ts->adcsync); ts 189 drivers/mfd/ucb1x00-ts.c static inline int ucb1x00_ts_pen_down(struct ucb1x00_ts *ts) ts 191 drivers/mfd/ucb1x00-ts.c unsigned int val = ucb1x00_reg_read(ts->ucb, UCB_TS_CR); ts 206 drivers/mfd/ucb1x00-ts.c struct ucb1x00_ts *ts = _ts; ts 212 drivers/mfd/ucb1x00-ts.c add_wait_queue(&ts->irq_wait, &wait); ts 220 drivers/mfd/ucb1x00-ts.c ucb1x00_adc_enable(ts->ucb); ts 222 drivers/mfd/ucb1x00-ts.c x = ucb1x00_ts_read_xpos(ts); ts 223 drivers/mfd/ucb1x00-ts.c y = ucb1x00_ts_read_ypos(ts); ts 224 drivers/mfd/ucb1x00-ts.c p = ucb1x00_ts_read_pressure(ts); ts 229 drivers/mfd/ucb1x00-ts.c ucb1x00_ts_mode_int(ts); ts 230 drivers/mfd/ucb1x00-ts.c ucb1x00_adc_disable(ts->ucb); ts 234 drivers/mfd/ucb1x00-ts.c ucb1x00_enable(ts->ucb); ts 237 drivers/mfd/ucb1x00-ts.c if (ucb1x00_ts_pen_down(ts)) { ts 240 drivers/mfd/ucb1x00-ts.c spin_lock_irq(&ts->irq_lock); ts 241 drivers/mfd/ucb1x00-ts.c if (ts->irq_disabled) { ts 242 drivers/mfd/ucb1x00-ts.c ts->irq_disabled = 0; ts 243 drivers/mfd/ucb1x00-ts.c enable_irq(ts->ucb->irq_base + UCB_IRQ_TSPX); ts 245 drivers/mfd/ucb1x00-ts.c spin_unlock_irq(&ts->irq_lock); ts 246 drivers/mfd/ucb1x00-ts.c ucb1x00_disable(ts->ucb); ts 253 drivers/mfd/ucb1x00-ts.c ucb1x00_ts_event_release(ts); ts 259 drivers/mfd/ucb1x00-ts.c ucb1x00_disable(ts->ucb); ts 267 drivers/mfd/ucb1x00-ts.c ucb1x00_ts_evt_add(ts, p, x, y); ts 278 drivers/mfd/ucb1x00-ts.c remove_wait_queue(&ts->irq_wait, &wait); ts 280 drivers/mfd/ucb1x00-ts.c ts->rtask = NULL; ts 290 drivers/mfd/ucb1x00-ts.c struct ucb1x00_ts *ts = id; ts 292 drivers/mfd/ucb1x00-ts.c spin_lock(&ts->irq_lock); ts 293 drivers/mfd/ucb1x00-ts.c ts->irq_disabled = 1; ts 294 drivers/mfd/ucb1x00-ts.c disable_irq_nosync(ts->ucb->irq_base + UCB_IRQ_TSPX); ts 295 drivers/mfd/ucb1x00-ts.c spin_unlock(&ts->irq_lock); ts 296 drivers/mfd/ucb1x00-ts.c wake_up(&ts->irq_wait); ts 303 drivers/mfd/ucb1x00-ts.c struct ucb1x00_ts *ts = input_get_drvdata(idev); ts 307 drivers/mfd/ucb1x00-ts.c BUG_ON(ts->rtask); ts 314 drivers/mfd/ucb1x00-ts.c ts->irq_disabled = 0; ts 316 drivers/mfd/ucb1x00-ts.c init_waitqueue_head(&ts->irq_wait); ts 317 drivers/mfd/ucb1x00-ts.c ret = request_irq(ts->ucb->irq_base + UCB_IRQ_TSPX, ucb1x00_ts_irq, ts 318 drivers/mfd/ucb1x00-ts.c flags, "ucb1x00-ts", ts); ts 326 drivers/mfd/ucb1x00-ts.c ucb1x00_adc_enable(ts->ucb); ts 327 drivers/mfd/ucb1x00-ts.c ts->x_res = ucb1x00_ts_read_xres(ts); ts 328 drivers/mfd/ucb1x00-ts.c ts->y_res = ucb1x00_ts_read_yres(ts); ts 329 drivers/mfd/ucb1x00-ts.c ucb1x00_adc_disable(ts->ucb); ts 331 drivers/mfd/ucb1x00-ts.c ts->rtask = kthread_run(ucb1x00_thread, ts, "ktsd"); ts 332 drivers/mfd/ucb1x00-ts.c if (!IS_ERR(ts->rtask)) { ts 335 drivers/mfd/ucb1x00-ts.c free_irq(ts->ucb->irq_base + UCB_IRQ_TSPX, ts); ts 336 drivers/mfd/ucb1x00-ts.c ts->rtask = NULL; ts 349 drivers/mfd/ucb1x00-ts.c struct ucb1x00_ts *ts = input_get_drvdata(idev); ts 351 drivers/mfd/ucb1x00-ts.c if (ts->rtask) ts 352 drivers/mfd/ucb1x00-ts.c kthread_stop(ts->rtask); ts 354 drivers/mfd/ucb1x00-ts.c ucb1x00_enable(ts->ucb); ts 355 drivers/mfd/ucb1x00-ts.c free_irq(ts->ucb->irq_base + UCB_IRQ_TSPX, ts); ts 356 drivers/mfd/ucb1x00-ts.c ucb1x00_reg_write(ts->ucb, UCB_TS_CR, 0); ts 357 drivers/mfd/ucb1x00-ts.c ucb1x00_disable(ts->ucb); ts 366 drivers/mfd/ucb1x00-ts.c struct ucb1x00_ts *ts; ts 370 drivers/mfd/ucb1x00-ts.c ts = kzalloc(sizeof(struct ucb1x00_ts), GFP_KERNEL); ts 372 drivers/mfd/ucb1x00-ts.c if (!ts || !idev) { ts 377 drivers/mfd/ucb1x00-ts.c ts->ucb = dev->ucb; ts 378 drivers/mfd/ucb1x00-ts.c ts->idev = idev; ts 379 drivers/mfd/ucb1x00-ts.c ts->adcsync = adcsync ? UCB_SYNC : UCB_NOSYNC; ts 380 drivers/mfd/ucb1x00-ts.c spin_lock_init(&ts->irq_lock); ts 383 drivers/mfd/ucb1x00-ts.c idev->id.product = ts->ucb->id; ts 386 drivers/mfd/ucb1x00-ts.c idev->dev.parent = &ts->ucb->dev; ts 391 drivers/mfd/ucb1x00-ts.c input_set_drvdata(idev, ts); ts 393 drivers/mfd/ucb1x00-ts.c ucb1x00_adc_enable(ts->ucb); ts 394 drivers/mfd/ucb1x00-ts.c ts->x_res = ucb1x00_ts_read_xres(ts); ts 395 drivers/mfd/ucb1x00-ts.c ts->y_res = ucb1x00_ts_read_yres(ts); ts 396 drivers/mfd/ucb1x00-ts.c ucb1x00_adc_disable(ts->ucb); ts 398 drivers/mfd/ucb1x00-ts.c input_set_abs_params(idev, ABS_X, 0, ts->x_res, 0, 0); ts 399 drivers/mfd/ucb1x00-ts.c input_set_abs_params(idev, ABS_Y, 0, ts->y_res, 0, 0); ts 406 drivers/mfd/ucb1x00-ts.c dev->priv = ts; ts 412 drivers/mfd/ucb1x00-ts.c kfree(ts); ts 418 drivers/mfd/ucb1x00-ts.c struct ucb1x00_ts *ts = dev->priv; ts 420 drivers/mfd/ucb1x00-ts.c input_unregister_device(ts->idev); ts 421 drivers/mfd/ucb1x00-ts.c kfree(ts); ts 185 drivers/misc/habanalabs/command_submission.c struct hl_device_idle_busy_ts *ts; ts 187 drivers/misc/habanalabs/command_submission.c ts = &hdev->idle_busy_ts_arr[hdev->idle_busy_ts_idx++]; ts 188 drivers/misc/habanalabs/command_submission.c ts->busy_to_idle_ts = ktime_get(); ts 466 drivers/misc/habanalabs/device.c struct hl_device_idle_busy_ts *ts; ts 474 drivers/misc/habanalabs/device.c ts = &hdev->idle_busy_ts_arr[last_index]; ts 477 drivers/misc/habanalabs/device.c if (!ktime_compare(ts->busy_to_idle_ts, zero_ktime) && ts 478 drivers/misc/habanalabs/device.c !ktime_compare(ts->idle_to_busy_ts, zero_ktime)) { ts 485 drivers/misc/habanalabs/device.c ts = &hdev->idle_busy_ts_arr[last_index]; ts 494 drivers/misc/habanalabs/device.c ktime_sub(curr, ts->idle_to_busy_ts)); ts 504 drivers/misc/habanalabs/device.c if (!ktime_compare(ts->busy_to_idle_ts, zero_ktime)) { ts 506 drivers/misc/habanalabs/device.c if (ktime_compare(ts->idle_to_busy_ts, ts 519 drivers/misc/habanalabs/device.c ktime_sub(curr, ts->busy_to_idle_ts)); ts 526 drivers/misc/habanalabs/device.c ktime_sub(ts->busy_to_idle_ts, ts 527 drivers/misc/habanalabs/device.c ts->idle_to_busy_ts)); ts 534 drivers/misc/habanalabs/device.c if (ktime_compare(ts->busy_to_idle_ts, zero_ktime)) ts 536 drivers/misc/habanalabs/device.c ktime_sub(ts->busy_to_idle_ts, ts 537 drivers/misc/habanalabs/device.c ts->idle_to_busy_ts)); ts 540 drivers/misc/habanalabs/device.c ktime_sub(curr, ts->idle_to_busy_ts)); ts 549 drivers/misc/habanalabs/device.c ts = &hdev->idle_busy_ts_arr[last_index]; ts 368 drivers/misc/habanalabs/hw_queue.c struct hl_device_idle_busy_ts *ts; ts 370 drivers/misc/habanalabs/hw_queue.c ts = &hdev->idle_busy_ts_arr[hdev->idle_busy_ts_idx]; ts 371 drivers/misc/habanalabs/hw_queue.c ts->busy_to_idle_ts = ktime_set(0, 0); ts 372 drivers/misc/habanalabs/hw_queue.c ts->idle_to_busy_ts = ktime_get(); ts 177 drivers/misc/kgdbts.c static struct test_state ts; ts 358 drivers/misc/kgdbts.c ts.idx -= 2; ts 363 drivers/misc/kgdbts.c ts.idx -= 4; ts 392 drivers/misc/kgdbts.c ts.idx++; ts 397 drivers/misc/kgdbts.c ts.idx -= go_back; ts 399 drivers/misc/kgdbts.c fill_get_buf(ts.tst[ts.idx].get); ts 423 drivers/misc/kgdbts.c ts.idx--; ts 433 drivers/misc/kgdbts.c ts.idx = -1; ts 521 drivers/misc/kgdbts.c ts.idx--; ts 707 drivers/misc/kgdbts.c v2printk("get%i: %s\n", ts.idx, get_buf); ts 714 drivers/misc/kgdbts.c if (ts.tst[ts.idx].put_handler) ts 715 drivers/misc/kgdbts.c return ts.tst[ts.idx].put_handler(put_str, ts 716 drivers/misc/kgdbts.c ts.tst[ts.idx].put); ts 718 drivers/misc/kgdbts.c chk_str = ts.tst[ts.idx].put; ts 755 drivers/misc/kgdbts.c if (ts.tst[ts.idx].get_handler) ts 756 drivers/misc/kgdbts.c ts.tst[ts.idx].get_handler(ts.tst[ts.idx].get); ts 758 drivers/misc/kgdbts.c fill_get_buf(ts.tst[ts.idx].get); ts 763 drivers/misc/kgdbts.c ts.name, ts.idx); ts 775 drivers/misc/kgdbts.c if (ts.tst[ts.idx].get[0] == '\0' && ts.tst[ts.idx].put[0] == '\0' && ts 776 drivers/misc/kgdbts.c !ts.tst[ts.idx].get_handler) { ts 778 drivers/misc/kgdbts.c " '%s' line %i\n", ts.name, ts.idx); ts 784 drivers/misc/kgdbts.c " '%s' line %i\n", ts.name, ts.idx); ts 799 drivers/misc/kgdbts.c " '%s' line %i\n", ts.name, ts.idx); ts 804 drivers/misc/kgdbts.c v2printk("put%i: %s\n", ts.idx, put_buf); ts 806 drivers/misc/kgdbts.c if (ts.validate_put && ts.validate_put(put_buf)) { ts 809 drivers/misc/kgdbts.c ts.name, ts.idx, ts.tst[ts.idx].put, put_buf); ts 811 drivers/misc/kgdbts.c ts.idx++; ts 821 drivers/misc/kgdbts.c memset(&ts, 0, sizeof(ts)); ts 822 drivers/misc/kgdbts.c ts.run_test = run_simple_test; ts 823 drivers/misc/kgdbts.c ts.validate_put = validate_simple_test; ts 834 drivers/misc/kgdbts.c ts.tst = plant_and_detach_test; ts 835 drivers/misc/kgdbts.c ts.name = "plant_and_detach_test"; ts 856 drivers/misc/kgdbts.c ts.tst = hw_breakpoint_test; ts 857 drivers/misc/kgdbts.c ts.name = "hw_breakpoint_test"; ts 859 drivers/misc/kgdbts.c ts.tst = sw_breakpoint_test; ts 860 drivers/misc/kgdbts.c ts.name = "sw_breakpoint_test"; ts 871 drivers/misc/kgdbts.c eprintk("kgdbts: ERROR %s test failed\n", ts.name); ts 881 drivers/misc/kgdbts.c ts.tst = hw_write_break_test; ts 882 drivers/misc/kgdbts.c ts.name = "hw_write_break_test"; ts 884 drivers/misc/kgdbts.c ts.tst = hw_access_break_test; ts 885 drivers/misc/kgdbts.c ts.name = "hw_access_break_test"; ts 893 drivers/misc/kgdbts.c ts.name); ts 903 drivers/misc/kgdbts.c eprintk("kgdbts: ERROR %s test failed\n", ts.name); ts 912 drivers/misc/kgdbts.c ts.tst = nmi_sleep_test; ts 913 drivers/misc/kgdbts.c ts.name = "nmi_sleep_test"; ts 926 drivers/misc/kgdbts.c eprintk("kgdbts: ERROR %s test failed\n", ts.name); ts 932 drivers/misc/kgdbts.c ts.tst = bad_read_test; ts 933 drivers/misc/kgdbts.c ts.name = "bad_read_test"; ts 941 drivers/misc/kgdbts.c ts.tst = do_fork_test; ts 942 drivers/misc/kgdbts.c ts.name = "do_fork_test"; ts 950 drivers/misc/kgdbts.c ts.tst = sys_open_test; ts 951 drivers/misc/kgdbts.c ts.name = "sys_open_test"; ts 959 drivers/misc/kgdbts.c ts.tst = singlestep_break_test; ts 960 drivers/misc/kgdbts.c ts.name = "singlestep_breakpoint_test"; ts 1111 drivers/misc/kgdbts.c if (ts.run_test) ts 1112 drivers/misc/kgdbts.c val = ts.run_test(1, 0); ts 1119 drivers/misc/kgdbts.c if (ts.run_test) ts 1120 drivers/misc/kgdbts.c ts.run_test(0, chr); ts 170 drivers/misc/mic/cosm/cosm_scif_server.c struct timespec64 ts; ts 173 drivers/misc/mic/cosm/cosm_scif_server.c ktime_get_real_ts64(&ts); ts 174 drivers/misc/mic/cosm/cosm_scif_server.c msg.timespec.tv_sec = ts.tv_sec; ts 175 drivers/misc/mic/cosm/cosm_scif_server.c msg.timespec.tv_nsec = ts.tv_nsec; ts 54 drivers/misc/mic/cosm_client/cosm_scif_client.c struct timespec64 ts = { ts 58 drivers/misc/mic/cosm_client/cosm_scif_client.c int rc = do_settimeofday64(&ts); ts 164 drivers/misc/sgi-gru/gruprocfs.c struct gru_thread_state *ts; ts 172 drivers/misc/sgi-gru/gruprocfs.c ts = gru->gs_gts[i]; ts 173 drivers/misc/sgi-gru/gruprocfs.c if (!ts) ts 177 drivers/misc/sgi-gru/gruprocfs.c is_kernel_context(ts) ? 0 : ts->ts_gms->ms_asids[gid].mt_asid, ts 178 drivers/misc/sgi-gru/gruprocfs.c is_kernel_context(ts) ? 0 : ts->ts_tgid_owner, ts 179 drivers/misc/sgi-gru/gruprocfs.c ts->ts_cbr_au_count * GRU_CBR_AU_SIZE, ts 180 drivers/misc/sgi-gru/gruprocfs.c ts->ts_cbr_au_count * GRU_DSR_AU_BYTES, ts 181 drivers/misc/sgi-gru/gruprocfs.c mode[ts->ts_user_options & ts 100 drivers/mmc/core/mmc_test.c struct timespec64 ts; ts 509 drivers/mmc/core/mmc_test.c static unsigned int mmc_test_rate(uint64_t bytes, struct timespec64 *ts) ts 513 drivers/mmc/core/mmc_test.c ns = timespec64_to_ns(ts); ts 533 drivers/mmc/core/mmc_test.c unsigned int count, unsigned int sectors, struct timespec64 ts, ts 547 drivers/mmc/core/mmc_test.c tr->ts = ts; ts 561 drivers/mmc/core/mmc_test.c struct timespec64 ts; ts 563 drivers/mmc/core/mmc_test.c ts = timespec64_sub(*ts2, *ts1); ts 565 drivers/mmc/core/mmc_test.c rate = mmc_test_rate(bytes, &ts); ts 566 drivers/mmc/core/mmc_test.c iops = mmc_test_rate(100, &ts); /* I/O ops per sec x 100 */ ts 571 drivers/mmc/core/mmc_test.c (sectors & 1 ? ".5" : ""), (u64)ts.tv_sec, ts 572 drivers/mmc/core/mmc_test.c (u32)ts.tv_nsec, rate / 1000, rate / 1024, ts 575 drivers/mmc/core/mmc_test.c mmc_test_save_transfer_result(test, 1, sectors, ts, rate, iops); ts 587 drivers/mmc/core/mmc_test.c struct timespec64 ts; ts 589 drivers/mmc/core/mmc_test.c ts = timespec64_sub(*ts2, *ts1); ts 591 drivers/mmc/core/mmc_test.c rate = mmc_test_rate(tot, &ts); ts 592 drivers/mmc/core/mmc_test.c iops = mmc_test_rate(count * 100, &ts); /* I/O ops per sec x 100 */ ts 599 drivers/mmc/core/mmc_test.c (u64)ts.tv_sec, (u32)ts.tv_nsec, ts 603 drivers/mmc/core/mmc_test.c mmc_test_save_transfer_result(test, count, sectors, ts, rate, iops); ts 1903 drivers/mmc/core/mmc_test.c struct timespec64 ts1, ts2, ts; ts 1915 drivers/mmc/core/mmc_test.c ts = timespec64_sub(ts2, ts1); ts 1916 drivers/mmc/core/mmc_test.c if (ts.tv_sec >= 10) ts 3057 drivers/mmc/core/mmc_test.c (u64)tr->ts.tv_sec, (u32)tr->ts.tv_nsec, ts 1203 drivers/mmc/host/vub300.c u16 ts = 0; ts 1266 drivers/mmc/host/vub300.c ts += *data++; ts 1268 drivers/mmc/host/vub300.c ts <<= 8; ts 1269 drivers/mmc/host/vub300.c ts += *data++; ts 1271 drivers/mmc/host/vub300.c if (ts < size) { ts 1272 drivers/mmc/host/vub300.c u16 xfer_length = roundup_to_multiple_of_64(ts); ts 1276 drivers/mmc/host/vub300.c memcpy(xfer_buffer, data, ts); ts 1277 drivers/mmc/host/vub300.c memset(xfer_buffer + ts, 0, ts 1278 drivers/mmc/host/vub300.c xfer_length - ts); ts 1279 drivers/mmc/host/vub300.c size -= ts; ts 1280 drivers/mmc/host/vub300.c data += ts; ts 112 drivers/net/can/usb/esd_usb2.c __le32 ts; ts 120 drivers/net/can/usb/esd_usb2.c __le32 ts; ts 141 drivers/net/can/usb/esd_usb2.c __le32 ts; ts 128 drivers/net/can/usb/peak_usb/pcan_usb_core.c void peak_usb_get_ts_time(struct peak_time_ref *time_ref, u32 ts, ktime_t *time) ts 134 drivers/net/can/usb/peak_usb/pcan_usb_core.c delta_us = ts - time_ref->ts_dev_2; ts 135 drivers/net/can/usb/peak_usb/pcan_usb_core.c if (ts < time_ref->ts_dev_2) ts 146 drivers/net/can/usb/peak_usb/pcan_usb_core.h void peak_usb_get_ts_time(struct peak_time_ref *time_ref, u32 ts, ktime_t *tv); ts 623 drivers/net/can/usb/peak_usb/pcan_usb_fd.c struct pcan_ufd_ts_msg *ts = (struct pcan_ufd_ts_msg *)rx_msg; ts 629 drivers/net/can/usb/peak_usb/pcan_usb_fd.c peak_usb_set_ts_now(&usb_if->time_ref, le32_to_cpu(ts->ts_low)); ts 672 drivers/net/can/usb/peak_usb/pcan_usb_pro.c struct pcan_usb_pro_rxts *ts) ts 679 drivers/net/can/usb/peak_usb/pcan_usb_pro.c le32_to_cpu(ts->ts64[1])); ts 170 drivers/net/can/usb/peak_usb/pcan_usb_pro.h struct pcan_usb_pro_setts ts; ts 239 drivers/net/dsa/mv88e6xxx/ptp.c struct timespec64 *ts) ts 248 drivers/net/dsa/mv88e6xxx/ptp.c *ts = ns_to_timespec64(ns); ts 254 drivers/net/dsa/mv88e6xxx/ptp.c const struct timespec64 *ts) ts 259 drivers/net/dsa/mv88e6xxx/ptp.c ns = timespec64_to_ns(ts); ts 440 drivers/net/dsa/mv88e6xxx/ptp.c struct timespec64 ts; ts 442 drivers/net/dsa/mv88e6xxx/ptp.c mv88e6xxx_ptp_gettime(&chip->ptp_clock_info, &ts); ts 1827 drivers/net/dsa/sja1105/sja1105_main.c u64 now, ts; ts 1860 drivers/net/dsa/sja1105/sja1105_main.c rc = sja1105_ptpegr_ts_poll(priv, slot, &ts); ts 1867 drivers/net/dsa/sja1105/sja1105_main.c ts = sja1105_tstamp_reconstruct(priv, now, ts); ts 1868 drivers/net/dsa/sja1105/sja1105_main.c ts = timecounter_cyc2time(&priv->tstamp_tc, ts); ts 1870 drivers/net/dsa/sja1105/sja1105_main.c shwt.hwtstamp = ns_to_ktime(ts); ts 2017 drivers/net/dsa/sja1105/sja1105_main.c u64 ts; ts 2023 drivers/net/dsa/sja1105/sja1105_main.c ts = SJA1105_SKB_CB(skb)->meta_tstamp; ts 2024 drivers/net/dsa/sja1105/sja1105_main.c ts = sja1105_tstamp_reconstruct(priv, now, ts); ts 2025 drivers/net/dsa/sja1105/sja1105_main.c ts = timecounter_cyc2time(&priv->tstamp_tc, ts); ts 2027 drivers/net/dsa/sja1105/sja1105_main.c shwt->hwtstamp = ns_to_ktime(ts); ts 173 drivers/net/dsa/sja1105/sja1105_ptp.c int sja1105_ptpegr_ts_poll(struct sja1105_private *priv, int port, u64 *ts) ts 211 drivers/net/dsa/sja1105/sja1105_ptp.c *ts = 0; ts 213 drivers/net/dsa/sja1105/sja1105_ptp.c sja1105_unpack(packed_buf, ts, tstamp_bit_start, tstamp_bit_end, ts 240 drivers/net/dsa/sja1105/sja1105_ptp.c struct timespec64 *ts) ts 249 drivers/net/dsa/sja1105/sja1105_ptp.c *ts = ns_to_timespec64(ns); ts 255 drivers/net/dsa/sja1105/sja1105_ptp.c const struct timespec64 *ts) ts 258 drivers/net/dsa/sja1105/sja1105_ptp.c u64 ns = timespec64_to_ns(ts); ts 343 drivers/net/dsa/sja1105/sja1105_ptp.c struct timespec64 ts; ts 345 drivers/net/dsa/sja1105/sja1105_ptp.c sja1105_ptp_gettime(&priv->ptp_caps, &ts); ts 13 drivers/net/dsa/sja1105/sja1105_ptp.h int sja1105_ptpegr_ts_poll(struct sja1105_private *priv, int port, u64 *ts); ts 20 drivers/net/dsa/sja1105/sja1105_ptp.h struct ethtool_ts_info *ts); ts 40 drivers/net/dsa/sja1105/sja1105_ptp.h sja1105_ptpegr_ts_poll(struct sja1105_private *priv, int port, u64 *ts) ts 749 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->ts = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, TSSEL); ts 847 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->ts ? "yes" : "no"); ts 182 drivers/net/ethernet/amd/xgbe/xgbe-ptp.c static int xgbe_gettime(struct ptp_clock_info *info, struct timespec64 *ts) ts 196 drivers/net/ethernet/amd/xgbe/xgbe-ptp.c *ts = ns_to_timespec64(nsec); ts 202 drivers/net/ethernet/amd/xgbe/xgbe-ptp.c const struct timespec64 *ts) ts 210 drivers/net/ethernet/amd/xgbe/xgbe-ptp.c nsec = timespec64_to_ns(ts); ts 971 drivers/net/ethernet/amd/xgbe/xgbe.h unsigned int ts; /* IEEE 1588-2008 Advanced Timestamp */ ts 13873 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c static int bnx2x_ptp_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) ts 13888 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c *ts = ns_to_timespec64(ns); ts 13894 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c const struct timespec64 *ts) ts 13905 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c ns = timespec64_to_ns(ts); ts 6242 drivers/net/ethernet/broadcom/tg3.c static int tg3_ptp_gettimex(struct ptp_clock_info *ptp, struct timespec64 *ts, ts 6253 drivers/net/ethernet/broadcom/tg3.c *ts = ns_to_timespec64(ns); ts 6259 drivers/net/ethernet/broadcom/tg3.c const struct timespec64 *ts) ts 6264 drivers/net/ethernet/broadcom/tg3.c ns = timespec64_to_ns(ts); ts 41 drivers/net/ethernet/cadence/macb_ptp.c static int gem_tsu_get_time(struct ptp_clock_info *ptp, struct timespec64 *ts) ts 59 drivers/net/ethernet/cadence/macb_ptp.c ts->tv_nsec = gem_readl(bp, TN); ts 63 drivers/net/ethernet/cadence/macb_ptp.c ts->tv_nsec = first; ts 67 drivers/net/ethernet/cadence/macb_ptp.c ts->tv_sec = (((u64)sech << GEM_TSL_SIZE) | secl) ts 73 drivers/net/ethernet/cadence/macb_ptp.c const struct timespec64 *ts) ts 79 drivers/net/ethernet/cadence/macb_ptp.c secl = (u32)ts->tv_sec; ts 80 drivers/net/ethernet/cadence/macb_ptp.c sech = (ts->tv_sec >> GEM_TSL_SIZE) & ((1 << GEM_TSH_SIZE) - 1); ts 81 drivers/net/ethernet/cadence/macb_ptp.c ns = ts->tv_nsec; ts 217 drivers/net/ethernet/cadence/macb_ptp.c struct timespec64 ts; ts 220 drivers/net/ethernet/cadence/macb_ptp.c ts = ns_to_timespec64(ktime_to_ns(ktime_get_real())); ts 223 drivers/net/ethernet/cadence/macb_ptp.c gem_tsu_set_time(&bp->ptp_clock_info, &ts); ts 242 drivers/net/ethernet/cadence/macb_ptp.c u32 dma_desc_ts_2, struct timespec64 *ts) ts 246 drivers/net/ethernet/cadence/macb_ptp.c ts->tv_sec = (GEM_BFEXT(DMA_SECH, dma_desc_ts_2) << GEM_DMA_SECL_SIZE) | ts 248 drivers/net/ethernet/cadence/macb_ptp.c ts->tv_nsec = GEM_BFEXT(DMA_NSEC, dma_desc_ts_1); ts 260 drivers/net/ethernet/cadence/macb_ptp.c if ((ts->tv_sec & (GEM_DMA_SEC_TOP >> 1)) && ts 262 drivers/net/ethernet/cadence/macb_ptp.c ts->tv_sec -= GEM_DMA_SEC_TOP; ts 264 drivers/net/ethernet/cadence/macb_ptp.c ts->tv_sec += ((~GEM_DMA_SEC_MASK) & tsu.tv_sec); ts 274 drivers/net/ethernet/cadence/macb_ptp.c struct timespec64 ts; ts 278 drivers/net/ethernet/cadence/macb_ptp.c gem_hw_timestamp(bp, desc_ptp->ts_1, desc_ptp->ts_2, &ts); ts 280 drivers/net/ethernet/cadence/macb_ptp.c shhwtstamps->hwtstamp = ktime_set(ts.tv_sec, ts.tv_nsec); ts 288 drivers/net/ethernet/cadence/macb_ptp.c struct timespec64 ts; ts 290 drivers/net/ethernet/cadence/macb_ptp.c gem_hw_timestamp(bp, desc_ptp->ts_1, desc_ptp->ts_2, &ts); ts 292 drivers/net/ethernet/cadence/macb_ptp.c shhwtstamps.hwtstamp = ktime_set(ts.tv_sec, ts.tv_nsec); ts 159 drivers/net/ethernet/cavium/common/cavium_ptp.c struct timespec64 *ts) ts 170 drivers/net/ethernet/cavium/common/cavium_ptp.c *ts = ns_to_timespec64(nsec); ts 181 drivers/net/ethernet/cavium/common/cavium_ptp.c const struct timespec64 *ts) ts 188 drivers/net/ethernet/cavium/common/cavium_ptp.c nsec = timespec64_to_ns(ts); ts 647 drivers/net/ethernet/cavium/liquidio/lio_main.c struct timespec64 ts; ts 661 drivers/net/ethernet/cavium/liquidio/lio_main.c ktime_get_real_ts64(&ts); ts 662 drivers/net/ethernet/cavium/liquidio/lio_main.c lt->sec = ts.tv_sec; ts 663 drivers/net/ethernet/cavium/liquidio/lio_main.c lt->nsec = ts.tv_nsec; ts 1615 drivers/net/ethernet/cavium/liquidio/lio_main.c struct timespec64 *ts) ts 1627 drivers/net/ethernet/cavium/liquidio/lio_main.c *ts = ns_to_timespec64(ns); ts 1638 drivers/net/ethernet/cavium/liquidio/lio_main.c const struct timespec64 *ts) ts 1645 drivers/net/ethernet/cavium/liquidio/lio_main.c ns = timespec64_to_ns(ts); ts 2241 drivers/net/ethernet/cavium/liquidio/lio_main.c struct skb_shared_hwtstamps ts; ts 2247 drivers/net/ethernet/cavium/liquidio/lio_main.c ts.hwtstamp = ns_to_ktime(ns + lio->ptp_adjust); ts 2248 drivers/net/ethernet/cavium/liquidio/lio_main.c skb_tstamp_tx(skb, &ts); ts 1330 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c struct skb_shared_hwtstamps ts; ts 1336 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c ts.hwtstamp = ns_to_ktime(ns + lio->ptp_adjust); ts 1337 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c skb_tstamp_tx(skb, &ts); ts 813 drivers/net/ethernet/cavium/liquidio/octeon_console.c struct timespec64 ts; ts 905 drivers/net/ethernet/cavium/liquidio/octeon_console.c ktime_get_real_ts64(&ts); ts 908 drivers/net/ethernet/cavium/liquidio/octeon_console.c (s64)ts.tv_sec, ts.tv_nsec); ts 291 drivers/net/ethernet/cavium/octeon/octeon_mgmt.c struct skb_shared_hwtstamps ts; ts 294 drivers/net/ethernet/cavium/octeon/octeon_mgmt.c memset(&ts, 0, sizeof(ts)); ts 300 drivers/net/ethernet/cavium/octeon/octeon_mgmt.c ts.hwtstamp = ns_to_ktime(ns); ts 301 drivers/net/ethernet/cavium/octeon/octeon_mgmt.c skb_tstamp_tx(skb, &ts); ts 408 drivers/net/ethernet/cavium/octeon/octeon_mgmt.c struct skb_shared_hwtstamps *ts; ts 409 drivers/net/ethernet/cavium/octeon/octeon_mgmt.c ts = skb_hwtstamps(skb); ts 410 drivers/net/ethernet/cavium/octeon/octeon_mgmt.c ts->hwtstamp = ns_to_ktime(ns); ts 624 drivers/net/ethernet/cavium/thunder/nicvf_main.c struct skb_shared_hwtstamps ts; ts 645 drivers/net/ethernet/cavium/thunder/nicvf_main.c memset(&ts, 0, sizeof(ts)); ts 647 drivers/net/ethernet/cavium/thunder/nicvf_main.c ts.hwtstamp = ns_to_ktime(ns); ts 648 drivers/net/ethernet/cavium/thunder/nicvf_main.c skb_tstamp_tx(nic->ptp_skb, &ts); ts 216 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c c.u.ts.sc = FW_PTP_SC_ADJ_FREQ; ts 217 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c c.u.ts.sign = (ppb < 0) ? 1 : 0; ts 220 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c c.u.ts.ppb = cpu_to_be32(ppb); ts 248 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c c.u.ts.sc = FW_PTP_SC_ADJ_FTIME; ts 249 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c c.u.ts.sign = (delta < 0) ? 1 : 0; ts 252 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c c.u.ts.tm = cpu_to_be64(delta); ts 287 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c c.u.ts.sc = FW_PTP_SC_ADJ_TIME; ts 288 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c c.u.ts.sign = (delta < 0) ? 1 : 0; ts 291 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c c.u.ts.tm = cpu_to_be64(delta); ts 312 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c static int cxgb4_ptp_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) ts 323 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c *ts = ns_to_timespec64(ns); ts 336 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c const struct timespec64 *ts) ts 350 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c c.u.ts.sc = FW_PTP_SC_SET_TIME; ts 352 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c ns = timespec64_to_ns(ts); ts 353 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c c.u.ts.tm = cpu_to_be64(ns); ts 3314 drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h } ts; ts 1611 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c const struct qm_fd *fd, bool ts) ts 1653 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c if (ts && priv->tx_tstamp && ts 417 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c __le64 *ts = dpaa2_get_ts(vaddr, false); ts 422 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c ns = DPAA2_PTP_CLK_PERIOD_NS * le64_to_cpup(ts); ts 731 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c __le64 *ts = dpaa2_get_ts(buffer_start, true); ts 736 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c ns = DPAA2_PTP_CLK_PERIOD_NS * le64_to_cpup(ts); ts 232 drivers/net/ethernet/freescale/fec.h __fec32 ts; ts 1227 drivers/net/ethernet/freescale/fec_main.c fec_enet_hwtstamp(struct fec_enet_private *fep, unsigned ts, ts 1234 drivers/net/ethernet/freescale/fec_main.c ns = timecounter_cyc2time(&fep->tc, ts); ts 1310 drivers/net/ethernet/freescale/fec_main.c fec_enet_hwtstamp(fep, fec32_to_cpu(ebdp->ts), &shhwtstamps); ts 1538 drivers/net/ethernet/freescale/fec_main.c fec_enet_hwtstamp(fep, fec32_to_cpu(ebdp->ts), ts 102 drivers/net/ethernet/freescale/fec_ptp.c struct timespec64 ts; ts 151 drivers/net/ethernet/freescale/fec_ptp.c ts = ns_to_timespec64(ns); ts 156 drivers/net/ethernet/freescale/fec_ptp.c val = NSEC_PER_SEC - (u32)ts.tv_nsec + tempval; ts 378 drivers/net/ethernet/freescale/fec_ptp.c static int fec_ptp_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) ts 389 drivers/net/ethernet/freescale/fec_ptp.c *ts = ns_to_timespec64(ns); ts 403 drivers/net/ethernet/freescale/fec_ptp.c const struct timespec64 *ts) ts 419 drivers/net/ethernet/freescale/fec_ptp.c ns = timespec64_to_ns(ts); ts 174 drivers/net/ethernet/intel/e1000e/ptp.c struct timespec64 *ts, ts 190 drivers/net/ethernet/intel/e1000e/ptp.c *ts = ns_to_timespec64(ns); ts 204 drivers/net/ethernet/intel/e1000e/ptp.c const struct timespec64 *ts) ts 211 drivers/net/ethernet/intel/e1000e/ptp.c ns = timespec64_to_ns(ts); ts 242 drivers/net/ethernet/intel/e1000e/ptp.c struct timespec64 ts; ts 248 drivers/net/ethernet/intel/e1000e/ptp.c ts = ns_to_timespec64(ns); ts 250 drivers/net/ethernet/intel/e1000e/ptp.c (long long) ts.tv_sec, ts.tv_nsec); ts 37 drivers/net/ethernet/intel/i40e/i40e_ptp.c static void i40e_ptp_read(struct i40e_pf *pf, struct timespec64 *ts, ts 52 drivers/net/ethernet/intel/i40e/i40e_ptp.c *ts = ns_to_timespec64(ns); ts 64 drivers/net/ethernet/intel/i40e/i40e_ptp.c static void i40e_ptp_write(struct i40e_pf *pf, const struct timespec64 *ts) ts 67 drivers/net/ethernet/intel/i40e/i40e_ptp.c u64 ns = timespec64_to_ns(ts); ts 171 drivers/net/ethernet/intel/i40e/i40e_ptp.c static int i40e_ptp_gettimex(struct ptp_clock_info *ptp, struct timespec64 *ts, ts 177 drivers/net/ethernet/intel/i40e/i40e_ptp.c i40e_ptp_read(pf, ts, sts); ts 192 drivers/net/ethernet/intel/i40e/i40e_ptp.c const struct timespec64 *ts) ts 197 drivers/net/ethernet/intel/i40e/i40e_ptp.c i40e_ptp_write(pf, ts); ts 5656 drivers/net/ethernet/intel/igb/igb_main.c struct timespec64 ts; ts 5678 drivers/net/ethernet/intel/igb/igb_main.c ts = ktime_to_timespec64(first->skb->tstamp); ts 5680 drivers/net/ethernet/intel/igb/igb_main.c context_desc->seqnum_seed = cpu_to_le32(ts.tv_nsec / 32); ts 6452 drivers/net/ethernet/intel/igb/igb_main.c struct timespec64 ts; ts 6470 drivers/net/ethernet/intel/igb/igb_main.c ts = timespec64_add(adapter->perout[0].start, ts 6473 drivers/net/ethernet/intel/igb/igb_main.c wr32(E1000_TRGTTIML0, ts.tv_nsec); ts 6474 drivers/net/ethernet/intel/igb/igb_main.c wr32(E1000_TRGTTIMH0, (u32)ts.tv_sec); ts 6478 drivers/net/ethernet/intel/igb/igb_main.c adapter->perout[0].start = ts; ts 6485 drivers/net/ethernet/intel/igb/igb_main.c ts = timespec64_add(adapter->perout[1].start, ts 6487 drivers/net/ethernet/intel/igb/igb_main.c wr32(E1000_TRGTTIML1, ts.tv_nsec); ts 6488 drivers/net/ethernet/intel/igb/igb_main.c wr32(E1000_TRGTTIMH1, (u32)ts.tv_sec); ts 6492 drivers/net/ethernet/intel/igb/igb_main.c adapter->perout[1].start = ts; ts 114 drivers/net/ethernet/intel/igb/igb_ptp.c struct timespec64 *ts) ts 127 drivers/net/ethernet/intel/igb/igb_ptp.c ts->tv_sec = sec; ts 128 drivers/net/ethernet/intel/igb/igb_ptp.c ts->tv_nsec = nsec; ts 132 drivers/net/ethernet/intel/igb/igb_ptp.c const struct timespec64 *ts) ts 139 drivers/net/ethernet/intel/igb/igb_ptp.c wr32(E1000_SYSTIML, ts->tv_nsec); ts 140 drivers/net/ethernet/intel/igb/igb_ptp.c wr32(E1000_SYSTIMH, (u32)ts->tv_sec); ts 281 drivers/net/ethernet/intel/igb/igb_ptp.c struct timespec64 *ts, ts 302 drivers/net/ethernet/intel/igb/igb_ptp.c *ts = ns_to_timespec64(ns); ts 308 drivers/net/ethernet/intel/igb/igb_ptp.c struct timespec64 *ts, ts 330 drivers/net/ethernet/intel/igb/igb_ptp.c *ts = ns_to_timespec64(ns); ts 336 drivers/net/ethernet/intel/igb/igb_ptp.c struct timespec64 *ts, ts 349 drivers/net/ethernet/intel/igb/igb_ptp.c ts->tv_nsec = rd32(E1000_SYSTIML); ts 350 drivers/net/ethernet/intel/igb/igb_ptp.c ts->tv_sec = rd32(E1000_SYSTIMH); ts 358 drivers/net/ethernet/intel/igb/igb_ptp.c const struct timespec64 *ts) ts 365 drivers/net/ethernet/intel/igb/igb_ptp.c ns = timespec64_to_ns(ts); ts 377 drivers/net/ethernet/intel/igb/igb_ptp.c const struct timespec64 *ts) ts 385 drivers/net/ethernet/intel/igb/igb_ptp.c igb_ptp_write_i210(igb, ts); ts 518 drivers/net/ethernet/intel/igb/igb_ptp.c struct timespec64 ts; ts 577 drivers/net/ethernet/intel/igb/igb_ptp.c ts.tv_sec = rq->perout.period.sec; ts 578 drivers/net/ethernet/intel/igb/igb_ptp.c ts.tv_nsec = rq->perout.period.nsec; ts 579 drivers/net/ethernet/intel/igb/igb_ptp.c ns = timespec64_to_ns(&ts); ts 587 drivers/net/ethernet/intel/igb/igb_ptp.c ts = ns_to_timespec64(ns); ts 626 drivers/net/ethernet/intel/igb/igb_ptp.c igb->perout[i].period.tv_sec = ts.tv_sec; ts 627 drivers/net/ethernet/intel/igb/igb_ptp.c igb->perout[i].period.tv_nsec = ts.tv_nsec; ts 719 drivers/net/ethernet/intel/igb/igb_ptp.c struct timespec64 ts; ts 725 drivers/net/ethernet/intel/igb/igb_ptp.c ts = ns_to_timespec64(ns); ts 727 drivers/net/ethernet/intel/igb/igb_ptp.c (long long) ts.tv_sec, ts.tv_nsec); ts 1353 drivers/net/ethernet/intel/igb/igb_ptp.c struct timespec64 ts = ktime_to_timespec64(ktime_get_real()); ts 1355 drivers/net/ethernet/intel/igb/igb_ptp.c igb_ptp_write_i210(adapter, &ts); ts 805 drivers/net/ethernet/intel/igc/igc_main.c struct timespec64 ts; ts 827 drivers/net/ethernet/intel/igc/igc_main.c ts = ktime_to_timespec64(first->skb->tstamp); ts 829 drivers/net/ethernet/intel/igc/igc_main.c context_desc->launch_time = cpu_to_le32(ts.tv_nsec / 32); ts 242 drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c struct timespec64 ts; ts 301 drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c ts = ns_to_timespec64(clock_edge); ts 302 drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c trgttiml = (u32)ts.tv_nsec; ts 303 drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c trgttimh = (u32)ts.tv_sec; ts 331 drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c struct timespec64 ts; ts 349 drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c ts.tv_nsec = IXGBE_READ_REG(hw, IXGBE_SYSTIML); ts 350 drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c ts.tv_sec = IXGBE_READ_REG(hw, IXGBE_SYSTIMH); ts 352 drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c return (u64)timespec64_to_ns(&ts); ts 557 drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c struct timespec64 *ts, ts 580 drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c ts->tv_nsec = IXGBE_READ_REG(hw, IXGBE_SYSTIML); ts 581 drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c ts->tv_sec = IXGBE_READ_REG(hw, IXGBE_SYSTIMH); ts 582 drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c stamp = timespec64_to_ns(ts); ts 596 drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c *ts = ns_to_timespec64(ns); ts 610 drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c const struct timespec64 *ts) ts 615 drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c u64 ns = timespec64_to_ns(ts); ts 176 drivers/net/ethernet/mellanox/mlx4/en_clock.c struct timespec64 *ts) ts 187 drivers/net/ethernet/mellanox/mlx4/en_clock.c *ts = ns_to_timespec64(ns); ts 201 drivers/net/ethernet/mellanox/mlx4/en_clock.c const struct timespec64 *ts) ts 205 drivers/net/ethernet/mellanox/mlx4/en_clock.c u64 ns = timespec64_to_ns(ts); ts 1525 drivers/net/ethernet/mellanox/mlx4/fw.c int ts = 0, tc = 0; ts 1559 drivers/net/ethernet/mellanox/mlx4/fw.c ts += 1 << (lg - 10); ts 1581 drivers/net/ethernet/mellanox/mlx4/fw.c mlx4_dbg(dev, "Mapped %d chunks/%d KB for FW\n", tc, ts); ts 1584 drivers/net/ethernet/mellanox/mlx4/fw.c mlx4_dbg(dev, "Mapped %d chunks/%d KB for ICM aux\n", tc, ts); ts 1588 drivers/net/ethernet/mellanox/mlx4/fw.c tc, ts, (unsigned long long) virt - (ts << 10)); ts 711 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c u32 ts = (be32_to_cpu(qp_ctx->flags) >> 16) & 0xff; ts 714 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (MLX4_QP_ST_UD == ts) { ts 722 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c } else if (MLX4_QP_ST_RC == ts || MLX4_QP_ST_XRC == ts || MLX4_QP_ST_UC == ts) { ts 2725 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c u32 ts = (be32_to_cpu(qpc->flags) >> 16) & 0xff; ts 2726 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c int xrc = (ts == MLX4_QP_ST_XRC) ? 1 : 0; ts 3806 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c u32 ts = (be32_to_cpu(qpc->flags) >> 16) & 0xff; ts 3811 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (mlx4_is_eth(dev, port) && (ts != MLX4_QP_ST_MLX)) { ts 144 drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c const struct timespec64 *ts) ts 148 drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c u64 ns = timespec64_to_ns(ts); ts 159 drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c static int mlx5_ptp_gettimex(struct ptp_clock_info *ptp, struct timespec64 *ts, ts 174 drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c *ts = ns_to_timespec64(ns); ts 294 drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c struct timespec64 ts; ts 321 drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c ts.tv_sec = rq->perout.period.sec; ts 322 drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c ts.tv_nsec = rq->perout.period.nsec; ts 323 drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c ns = timespec64_to_ns(&ts); ts 328 drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c ts.tv_sec = rq->perout.start.sec; ts 329 drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c ts.tv_nsec = rq->perout.start.nsec; ts 330 drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c ns = timespec64_to_ns(&ts); ts 474 drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c struct timespec64 ts; ts 493 drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c mlx5_ptp_gettimex(&clock->ptp_info, &ts, NULL); ts 495 drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c ts.tv_sec += 1; ts 496 drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c ts.tv_nsec = 0; ts 497 drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c ns = timespec64_to_ns(&ts); ts 3264 drivers/net/ethernet/mellanox/mlxsw/reg.h enum mlxsw_reg_qpts_trust_state ts) ts 3269 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_qpts_trust_state_set(payload, ts); ts 323 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c enum mlxsw_reg_qpts_trust_state ts) ts 328 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c mlxsw_reg_qpts_pack(qpts_pl, mlxsw_sp_port->local_port, ts); ts 346 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c enum mlxsw_reg_qpts_trust_state ts) ts 348 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c bool rewrite_dscp = ts == MLXSW_REG_QPTS_TRUST_STATE_DSCP; ts 351 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c if (mlxsw_sp_port->dcb.trust_state == ts) ts 354 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c err = mlxsw_sp_port_dcb_app_update_qpts(mlxsw_sp_port, ts); ts 362 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c mlxsw_sp_port->dcb.trust_state = ts; ts 195 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c struct timespec64 *ts, ts 207 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c *ts = ns_to_timespec64(nsec); ts 213 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c const struct timespec64 *ts) ts 217 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c u64 nsec = timespec64_to_ns(ts); ts 342 drivers/net/ethernet/microchip/lan743x_ptp.c struct timespec64 *ts) ts 352 drivers/net/ethernet/microchip/lan743x_ptp.c ts->tv_sec = seconds; ts 353 drivers/net/ethernet/microchip/lan743x_ptp.c ts->tv_nsec = nano_seconds; ts 359 drivers/net/ethernet/microchip/lan743x_ptp.c const struct timespec64 *ts) ts 368 drivers/net/ethernet/microchip/lan743x_ptp.c if (ts) { ts 369 drivers/net/ethernet/microchip/lan743x_ptp.c if (ts->tv_sec > 0xFFFFFFFFLL || ts 370 drivers/net/ethernet/microchip/lan743x_ptp.c ts->tv_sec < 0) { ts 373 drivers/net/ethernet/microchip/lan743x_ptp.c ts->tv_sec); ts 376 drivers/net/ethernet/microchip/lan743x_ptp.c if (ts->tv_nsec >= 1000000000L || ts 377 drivers/net/ethernet/microchip/lan743x_ptp.c ts->tv_nsec < 0) { ts 380 drivers/net/ethernet/microchip/lan743x_ptp.c ts->tv_nsec); ts 383 drivers/net/ethernet/microchip/lan743x_ptp.c seconds = ts->tv_sec; ts 384 drivers/net/ethernet/microchip/lan743x_ptp.c nano_seconds = ts->tv_nsec; ts 836 drivers/net/ethernet/microchip/lan743x_ptp.c struct timespec64 ts; ts 838 drivers/net/ethernet/microchip/lan743x_ptp.c ktime_get_clocktai_ts64(&ts); ts 840 drivers/net/ethernet/microchip/lan743x_ptp.c lan743x_ptp_clock_set(adapter, ts.tv_sec, ts.tv_nsec, 0); ts 641 drivers/net/ethernet/mscc/ocelot.c void ocelot_get_hwtimestamp(struct ocelot *ocelot, struct timespec64 *ts) ts 654 drivers/net/ethernet/mscc/ocelot.c ts->tv_sec = ocelot_read_rix(ocelot, PTP_PIN_TOD_SEC_LSB, TOD_ACC_PIN); ts 658 drivers/net/ethernet/mscc/ocelot.c ts->tv_nsec = SYS_PTP_TXSTAMP_PTP_TXSTAMP(val); ts 661 drivers/net/ethernet/mscc/ocelot.c if ((ts->tv_sec & 0x1) != !!(val & SYS_PTP_TXSTAMP_PTP_TXSTAMP_SEC)) ts 662 drivers/net/ethernet/mscc/ocelot.c ts->tv_sec--; ts 1814 drivers/net/ethernet/mscc/ocelot.c int ocelot_ptp_gettime64(struct ptp_clock_info *ptp, struct timespec64 *ts) ts 1843 drivers/net/ethernet/mscc/ocelot.c set_normalized_timespec64(ts, s, ns); ts 1849 drivers/net/ethernet/mscc/ocelot.c const struct timespec64 *ts) ts 1863 drivers/net/ethernet/mscc/ocelot.c ocelot_write_rix(ocelot, lower_32_bits(ts->tv_sec), PTP_PIN_TOD_SEC_LSB, ts 1865 drivers/net/ethernet/mscc/ocelot.c ocelot_write_rix(ocelot, upper_32_bits(ts->tv_sec), PTP_PIN_TOD_SEC_MSB, ts 1867 drivers/net/ethernet/mscc/ocelot.c ocelot_write_rix(ocelot, ts->tv_nsec, PTP_PIN_TOD_NSEC, TOD_ACC_PIN); ts 1907 drivers/net/ethernet/mscc/ocelot.c struct timespec64 ts; ts 1910 drivers/net/ethernet/mscc/ocelot.c ocelot_ptp_gettime64(ptp, &ts); ts 1912 drivers/net/ethernet/mscc/ocelot.c now = ktime_to_ns(timespec64_to_ktime(ts)); ts 1913 drivers/net/ethernet/mscc/ocelot.c ts = ns_to_timespec64(now + delta); ts 1915 drivers/net/ethernet/mscc/ocelot.c ocelot_ptp_settime64(ptp, &ts); ts 556 drivers/net/ethernet/mscc/ocelot.h int ocelot_ptp_gettime64(struct ptp_clock_info *ptp, struct timespec64 *ts); ts 557 drivers/net/ethernet/mscc/ocelot.h void ocelot_get_hwtimestamp(struct ocelot *ocelot, struct timespec64 *ts); ts 102 drivers/net/ethernet/mscc/ocelot_board.c struct timespec64 ts; ts 160 drivers/net/ethernet/mscc/ocelot_board.c ocelot_ptp_gettime64(&ocelot->ptp_info, &ts); ts 162 drivers/net/ethernet/mscc/ocelot_board.c tod_in_ns = ktime_set(ts.tv_sec, ts.tv_nsec); ts 205 drivers/net/ethernet/mscc/ocelot_board.c struct timespec64 ts; ts 241 drivers/net/ethernet/mscc/ocelot_board.c ocelot_get_hwtimestamp(ocelot, &ts); ts 245 drivers/net/ethernet/mscc/ocelot_board.c shhwtstamps.hwtstamp = ktime_set(ts.tv_sec, ts.tv_nsec); ts 101 drivers/net/ethernet/qlogic/qede/qede_ptp.c static int qede_ptp_gettime(struct ptp_clock_info *info, struct timespec64 *ts) ts 116 drivers/net/ethernet/qlogic/qede/qede_ptp.c *ts = ns_to_timespec64(ns); ts 122 drivers/net/ethernet/qlogic/qede/qede_ptp.c const struct timespec64 *ts) ts 131 drivers/net/ethernet/qlogic/qede/qede_ptp.c ns = timespec64_to_ns(ts); ts 45 drivers/net/ethernet/qlogic/qede/qede_ptp.h int qede_ptp_get_ts_info(struct qede_dev *edev, struct ethtool_ts_info *ts); ts 485 drivers/net/ethernet/renesas/ravb_main.c struct timespec64 ts; ts 494 drivers/net/ethernet/renesas/ravb_main.c ts.tv_nsec = (u64)ravb_read(ndev, TFA0); ts 495 drivers/net/ethernet/renesas/ravb_main.c ts.tv_sec = ((u64)(tfa2 & TFA2_TSV) << 32) | ts 498 drivers/net/ethernet/renesas/ravb_main.c shhwtstamps.hwtstamp = timespec64_to_ktime(ts); ts 543 drivers/net/ethernet/renesas/ravb_main.c struct timespec64 ts; ts 594 drivers/net/ethernet/renesas/ravb_main.c ts.tv_sec = ((u64) le16_to_cpu(desc->ts_sh) << ts 596 drivers/net/ethernet/renesas/ravb_main.c ts.tv_nsec = le32_to_cpu(desc->ts_n); ts 597 drivers/net/ethernet/renesas/ravb_main.c shhwtstamps->hwtstamp = timespec64_to_ktime(ts); ts 25 drivers/net/ethernet/renesas/ravb_ptp.c static int ravb_ptp_time_read(struct ravb_private *priv, struct timespec64 *ts) ts 34 drivers/net/ethernet/renesas/ravb_ptp.c ts->tv_nsec = ravb_read(ndev, GCT0); ts 35 drivers/net/ethernet/renesas/ravb_ptp.c ts->tv_sec = ravb_read(ndev, GCT1) | ts 43 drivers/net/ethernet/renesas/ravb_ptp.c const struct timespec64 *ts) ts 56 drivers/net/ethernet/renesas/ravb_ptp.c ravb_write(ndev, ts->tv_nsec, GTO0); ts 57 drivers/net/ethernet/renesas/ravb_ptp.c ravb_write(ndev, ts->tv_sec, GTO1); ts 58 drivers/net/ethernet/renesas/ravb_ptp.c ravb_write(ndev, (ts->tv_sec >> 32) & 0xffff, GTO2); ts 131 drivers/net/ethernet/renesas/ravb_ptp.c struct timespec64 ts; ts 136 drivers/net/ethernet/renesas/ravb_ptp.c error = ravb_ptp_time_read(priv, &ts); ts 138 drivers/net/ethernet/renesas/ravb_ptp.c u64 now = ktime_to_ns(timespec64_to_ktime(ts)); ts 140 drivers/net/ethernet/renesas/ravb_ptp.c ts = ns_to_timespec64(now + delta); ts 141 drivers/net/ethernet/renesas/ravb_ptp.c error = ravb_ptp_time_write(priv, &ts); ts 148 drivers/net/ethernet/renesas/ravb_ptp.c static int ravb_ptp_gettime64(struct ptp_clock_info *ptp, struct timespec64 *ts) ts 156 drivers/net/ethernet/renesas/ravb_ptp.c error = ravb_ptp_time_read(priv, ts); ts 163 drivers/net/ethernet/renesas/ravb_ptp.c const struct timespec64 *ts) ts 171 drivers/net/ethernet/renesas/ravb_ptp.c error = ravb_ptp_time_write(priv, ts); ts 347 drivers/net/ethernet/sfc/ptp.c static int efx_phc_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts); ts 443 drivers/net/ethernet/sfc/ptp.c struct timespec64 ts = ns_to_timespec64(ns); ts 444 drivers/net/ethernet/sfc/ptp.c *nic_major = (u32)ts.tv_sec; ts 445 drivers/net/ethernet/sfc/ptp.c *nic_minor = ts.tv_nsec; ts 473 drivers/net/ethernet/sfc/ptp.c struct timespec64 ts = ns_to_timespec64(ns); ts 474 drivers/net/ethernet/sfc/ptp.c u32 maj = (u32)ts.tv_sec; ts 475 drivers/net/ethernet/sfc/ptp.c u32 min = (u32)(((u64)ts.tv_nsec * NS_TO_S27_MULT + ts 516 drivers/net/ethernet/sfc/ptp.c struct timespec64 ts = ns_to_timespec64(ns); ts 518 drivers/net/ethernet/sfc/ptp.c *nic_major = (u32)ts.tv_sec; ts 519 drivers/net/ethernet/sfc/ptp.c *nic_minor = ts.tv_nsec * 4; ts 2115 drivers/net/ethernet/sfc/ptp.c static int efx_phc_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) ts 2137 drivers/net/ethernet/sfc/ptp.c *ts = ktime_to_timespec64(kt); ts 226 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c static inline void dwmac4_get_timestamp(void *desc, u32 ats, u64 *ts) ts 235 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c *ts = ns; ts 1065 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c static int dwxgmac2_get_mac_tx_timestamp(struct mac_device_info *hw, u64 *ts) ts 1074 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c *ts = readl(ioaddr + XGMAC_TXTIMESTAMP_NSEC) & XGMAC_TXTSSTSLO; ts 1075 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c *ts += readl(ioaddr + XGMAC_TXTIMESTAMP_SEC) * 1000000000ULL; ts 85 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c static inline void dwxgmac2_get_timestamp(void *desc, u32 ats, u64 *ts) ts 93 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c *ts = ns; ts 385 drivers/net/ethernet/stmicro/stmmac/enh_desc.c static void enh_desc_get_timestamp(void *desc, u32 ats, u64 *ts) ts 400 drivers/net/ethernet/stmicro/stmmac/enh_desc.c *ts = ns; ts 76 drivers/net/ethernet/stmicro/stmmac/hwif.h void (*get_timestamp)(void *desc, u32 ats, u64 *ts); ts 363 drivers/net/ethernet/stmicro/stmmac/hwif.h int (*get_mac_tx_timestamp)(struct mac_device_info *hw, u64 *ts); ts 248 drivers/net/ethernet/stmicro/stmmac/norm_desc.c static void ndesc_get_timestamp(void *desc, u32 ats, u64 *ts) ts 257 drivers/net/ethernet/stmicro/stmmac/norm_desc.c *ts = ns; ts 93 drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.c static int stmmac_get_time(struct ptp_clock_info *ptp, struct timespec64 *ts) ts 104 drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.c *ts = ns_to_timespec64(ns); ts 119 drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.c const struct timespec64 *ts) ts 126 drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.c stmmac_init_systime(priv, priv->ptpaddr, ts->tv_sec, ts->tv_nsec); ts 394 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c hw_feat->ts = XLGMAC_GET_REG_BITS(mac_hfr0, ts 537 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.ts ? "YES" : "NO"); ts 506 drivers/net/ethernet/synopsys/dwc-xlgmac.h unsigned int ts; /* IEEE 1588-2008 Advanced Timestamp */ ts 256 drivers/net/ethernet/ti/cpts.c static int cpts_ptp_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) ts 266 drivers/net/ethernet/ti/cpts.c *ts = ns_to_timespec64(ns); ts 272 drivers/net/ethernet/ti/cpts.c const struct timespec64 *ts) ts 278 drivers/net/ethernet/ti/cpts.c ns = timespec64_to_ns(ts); ts 297 drivers/net/ethernet/ti/cpts.c struct timespec64 ts; ts 301 drivers/net/ethernet/ti/cpts.c ts = ns_to_timespec64(timecounter_read(&cpts->tc)); ts 311 drivers/net/ethernet/ti/cpts.c (long long)ts.tv_sec, ts.tv_nsec); ts 739 drivers/net/fddi/skfp/h/smt.h struct smt_p_timestamp ts ; /* time stamp */ ts 757 drivers/net/fddi/skfp/h/smt.h struct smt_p_timestamp ts ; /* time stamp */ ts 80 drivers/net/fddi/skfp/smt.c static void smt_fill_timestamp(struct s_smc *smc, struct smt_p_timestamp *ts); ts 1033 drivers/net/fddi/skfp/smt.c smt_fill_timestamp(smc,&sif->ts) ; /* set time stamp */ ts 1073 drivers/net/fddi/skfp/smt.c smt_fill_timestamp(smc,&sif->ts) ; /* set time stamp */ ts 1217 drivers/net/fddi/skfp/smt.c static void smt_fill_timestamp(struct s_smc *smc, struct smt_p_timestamp *ts) ts 1220 drivers/net/fddi/skfp/smt.c SMTSETPARA(ts,SMT_P_TIMESTAMP) ; ts 1221 drivers/net/fddi/skfp/smt.c smt_set_timestamp(smc,ts->ts_time) ; ts 191 drivers/net/hamradio/baycom_ser_fdx.c static __inline__ void ser12_rx(struct net_device *dev, struct baycom_state *bc, struct timespec64 *ts, unsigned char curs) ts 198 drivers/net/hamradio/baycom_ser_fdx.c timediff = 1000000 + ts->tv_nsec / NSEC_PER_USEC - ts 251 drivers/net/hamradio/baycom_ser_fdx.c struct timespec64 ts; ts 261 drivers/net/hamradio/baycom_ser_fdx.c ktime_get_ts64(&ts); ts 304 drivers/net/hamradio/baycom_ser_fdx.c ser12_rx(dev, bc, &ts, msr & 0x10); /* CTS */ ts 249 drivers/net/phy/dp83640.c const struct timespec64 *ts, u16 cmd) ts 251 drivers/net/phy/dp83640.c ext_write(bc, dev, PAGE4, PTP_TDR, ts->tv_nsec & 0xffff);/* ns[15:0] */ ts 252 drivers/net/phy/dp83640.c ext_write(bc, dev, PAGE4, PTP_TDR, ts->tv_nsec >> 16); /* ns[31:16] */ ts 253 drivers/net/phy/dp83640.c ext_write(bc, dev, PAGE4, PTP_TDR, ts->tv_sec & 0xffff); /* sec[15:0] */ ts 254 drivers/net/phy/dp83640.c ext_write(bc, dev, PAGE4, PTP_TDR, ts->tv_sec >> 16); /* sec[31:16]*/ ts 403 drivers/net/phy/dp83640.c struct timespec64 ts; ts 408 drivers/net/phy/dp83640.c ts = ns_to_timespec64(delta); ts 412 drivers/net/phy/dp83640.c err = tdr_write(1, phydev, &ts, PTP_STEP_CLK); ts 420 drivers/net/phy/dp83640.c struct timespec64 *ts) ts 438 drivers/net/phy/dp83640.c ts->tv_nsec = val[0] | (val[1] << 16); ts 439 drivers/net/phy/dp83640.c ts->tv_sec = val[2] | (val[3] << 16); ts 445 drivers/net/phy/dp83640.c const struct timespec64 *ts) ts 454 drivers/net/phy/dp83640.c err = tdr_write(1, phydev, ts, PTP_LOAD_CLK); ts 623 drivers/net/phy/dp83640.c struct timespec64 ts; ts 716 drivers/net/phy/dp83640.c ts = ns_to_timespec64(diff); ts 717 drivers/net/phy/dp83640.c tdr_write(0, tmp->phydev, &ts, PTP_STEP_CLK); ts 95 drivers/net/slip/slhc.c struct cstate *ts; ts 133 drivers/net/slip/slhc.c ts = comp->tstate; ts 135 drivers/net/slip/slhc.c ts[i].cs_this = i; ts 136 drivers/net/slip/slhc.c ts[i].next = &(ts[i - 1]); ts 138 drivers/net/slip/slhc.c ts[0].next = &(ts[comp->tslot_limit]); ts 139 drivers/net/slip/slhc.c ts[0].cs_this = 0; ts 252 drivers/net/vmxnet3/vmxnet3_defs.h u32 ts:1; /* Tag is stripped */ ts 258 drivers/net/vmxnet3/vmxnet3_defs.h u32 ts:1; /* Tag is stripped */ ts 1529 drivers/net/vmxnet3/vmxnet3_drv.c if (unlikely(rcd->ts)) ts 4015 drivers/net/wireless/ath/ath10k/wmi.c pe.ts = tsf64; ts 4022 drivers/net/wireless/ath/ath10k/wmi.c pe.freq, pe.width, pe.rssi, pe.ts); ts 1667 drivers/net/wireless/ath/ath5k/base.c struct ath5k_txq *txq, struct ath5k_tx_status *ts, ts 1688 drivers/net/wireless/ath/ath5k/base.c for (i = 0; i < ts->ts_final_idx; i++) { ts 1695 drivers/net/wireless/ath/ath5k/base.c info->status.rates[ts->ts_final_idx].count = ts->ts_final_retry; ts 1696 drivers/net/wireless/ath/ath5k/base.c info->status.rates[ts->ts_final_idx + 1].idx = -1; ts 1698 drivers/net/wireless/ath/ath5k/base.c if (unlikely(ts->ts_status)) { ts 1700 drivers/net/wireless/ath/ath5k/base.c if (ts->ts_status & AR5K_TXERR_FILT) { ts 1704 drivers/net/wireless/ath/ath5k/base.c if (ts->ts_status & AR5K_TXERR_XRETRY) ts 1706 drivers/net/wireless/ath/ath5k/base.c if (ts->ts_status & AR5K_TXERR_FIFO) ts 1710 drivers/net/wireless/ath/ath5k/base.c info->status.ack_signal = ts->ts_rssi; ts 1713 drivers/net/wireless/ath/ath5k/base.c info->status.rates[ts->ts_final_idx].count++; ts 1722 drivers/net/wireless/ath/ath5k/base.c if (ts->ts_antenna > 0 && ts->ts_antenna < 5) ts 1723 drivers/net/wireless/ath/ath5k/base.c ah->stats.antenna_tx[ts->ts_antenna]++; ts 1727 drivers/net/wireless/ath/ath5k/base.c trace_ath5k_tx_complete(ah, skb, txq, ts); ts 1734 drivers/net/wireless/ath/ath5k/base.c struct ath5k_tx_status ts = {}; ts 1749 drivers/net/wireless/ath/ath5k/base.c ret = ah->ah_proc_tx_desc(ah, ds, &ts); ts 1764 drivers/net/wireless/ath/ath5k/base.c ath5k_tx_frame_completed(ah, skb, txq, &ts, bf); ts 1110 drivers/net/wireless/ath/ath5k/debug.c struct ath5k_tx_status ts = {}; ts 1116 drivers/net/wireless/ath/ath5k/debug.c done = ah->ah_proc_tx_desc(ah, bf->desc, &ts); ts 1123 drivers/net/wireless/ath/ath5k/debug.c done ? ' ' : (ts.ts_status == 0) ? '*' : '!'); ts 444 drivers/net/wireless/ath/ath5k/desc.c struct ath5k_tx_status *ts) ts 457 drivers/net/wireless/ath/ath5k/desc.c ts->ts_tstamp = AR5K_REG_MS(tx_status->tx_status_0, ts 459 drivers/net/wireless/ath/ath5k/desc.c ts->ts_shortretry = AR5K_REG_MS(tx_status->tx_status_0, ts 461 drivers/net/wireless/ath/ath5k/desc.c ts->ts_final_retry = AR5K_REG_MS(tx_status->tx_status_0, ts 464 drivers/net/wireless/ath/ath5k/desc.c ts->ts_seqnum = AR5K_REG_MS(tx_status->tx_status_1, ts 466 drivers/net/wireless/ath/ath5k/desc.c ts->ts_rssi = AR5K_REG_MS(tx_status->tx_status_1, ts 468 drivers/net/wireless/ath/ath5k/desc.c ts->ts_antenna = 1; ts 469 drivers/net/wireless/ath/ath5k/desc.c ts->ts_status = 0; ts 470 drivers/net/wireless/ath/ath5k/desc.c ts->ts_final_idx = 0; ts 475 drivers/net/wireless/ath/ath5k/desc.c ts->ts_status |= AR5K_TXERR_XRETRY; ts 478 drivers/net/wireless/ath/ath5k/desc.c ts->ts_status |= AR5K_TXERR_FIFO; ts 481 drivers/net/wireless/ath/ath5k/desc.c ts->ts_status |= AR5K_TXERR_FILT; ts 496 drivers/net/wireless/ath/ath5k/desc.c struct ath5k_tx_status *ts) ts 514 drivers/net/wireless/ath/ath5k/desc.c ts->ts_tstamp = AR5K_REG_MS(txstat0, ts 516 drivers/net/wireless/ath/ath5k/desc.c ts->ts_shortretry = AR5K_REG_MS(txstat0, ts 518 drivers/net/wireless/ath/ath5k/desc.c ts->ts_final_retry = AR5K_REG_MS(txstat0, ts 520 drivers/net/wireless/ath/ath5k/desc.c ts->ts_seqnum = AR5K_REG_MS(txstat1, ts 522 drivers/net/wireless/ath/ath5k/desc.c ts->ts_rssi = AR5K_REG_MS(txstat1, ts 524 drivers/net/wireless/ath/ath5k/desc.c ts->ts_antenna = (txstat1 & ts 526 drivers/net/wireless/ath/ath5k/desc.c ts->ts_status = 0; ts 528 drivers/net/wireless/ath/ath5k/desc.c ts->ts_final_idx = AR5K_REG_MS(txstat1, ts 534 drivers/net/wireless/ath/ath5k/desc.c ts->ts_status |= AR5K_TXERR_XRETRY; ts 537 drivers/net/wireless/ath/ath5k/desc.c ts->ts_status |= AR5K_TXERR_FIFO; ts 540 drivers/net/wireless/ath/ath5k/desc.c ts->ts_status |= AR5K_TXERR_FILT; ts 67 drivers/net/wireless/ath/ath5k/trace.h struct ath5k_txq *q, struct ath5k_tx_status *ts), ts 69 drivers/net/wireless/ath/ath5k/trace.h TP_ARGS(priv, skb, q, ts), ts 84 drivers/net/wireless/ath/ath5k/trace.h __entry->ts_status = ts->ts_status; ts 85 drivers/net/wireless/ath/ath5k/trace.h __entry->ts_rssi = ts->ts_rssi; ts 86 drivers/net/wireless/ath/ath5k/trace.h __entry->ts_antenna = ts->ts_antenna; ts 1514 drivers/net/wireless/ath/ath6kl/wmi.c struct ieee80211_tspec_ie *ts; ts 1530 drivers/net/wireless/ath/ath6kl/wmi.c ts = (struct ieee80211_tspec_ie *) &(reply->tspec_suggestion); ts 1531 drivers/net/wireless/ath/ath6kl/wmi.c tsinfo = le16_to_cpu(ts->tsinfo); ts 1560 drivers/net/wireless/ath/ath6kl/wmi.c ts = (struct ieee80211_tspec_ie *) &(reply->tspec_suggestion); ts 1561 drivers/net/wireless/ath/ath6kl/wmi.c tsinfo = le16_to_cpu(ts->tsinfo); ts 316 drivers/net/wireless/ath/ath9k/ar9002_mac.c struct ath_tx_status *ts) ts 325 drivers/net/wireless/ath/ath9k/ar9002_mac.c ts->ts_tstamp = ads->AR_SendTimestamp; ts 326 drivers/net/wireless/ath/ath9k/ar9002_mac.c ts->ts_status = 0; ts 327 drivers/net/wireless/ath/ath9k/ar9002_mac.c ts->ts_flags = 0; ts 330 drivers/net/wireless/ath/ath9k/ar9002_mac.c ts->ts_status |= ATH9K_TXERR_XTXOP; ts 331 drivers/net/wireless/ath/ath9k/ar9002_mac.c ts->tid = MS(status, AR_TxTid); ts 332 drivers/net/wireless/ath/ath9k/ar9002_mac.c ts->ts_rateindex = MS(status, AR_FinalTxIdx); ts 333 drivers/net/wireless/ath/ath9k/ar9002_mac.c ts->ts_seqnum = MS(status, AR_SeqNum); ts 336 drivers/net/wireless/ath/ath9k/ar9002_mac.c ts->ts_rssi_ctl0 = MS(status, AR_TxRSSIAnt00); ts 337 drivers/net/wireless/ath/ath9k/ar9002_mac.c ts->ts_rssi_ctl1 = MS(status, AR_TxRSSIAnt01); ts 338 drivers/net/wireless/ath/ath9k/ar9002_mac.c ts->ts_rssi_ctl2 = MS(status, AR_TxRSSIAnt02); ts 340 drivers/net/wireless/ath/ath9k/ar9002_mac.c ts->ts_flags |= ATH9K_TX_BA; ts 341 drivers/net/wireless/ath/ath9k/ar9002_mac.c ts->ba_low = ads->AR_BaBitmapLow; ts 342 drivers/net/wireless/ath/ath9k/ar9002_mac.c ts->ba_high = ads->AR_BaBitmapHigh; ts 347 drivers/net/wireless/ath/ath9k/ar9002_mac.c ts->ts_status |= ATH9K_TX_ACKED; ts 350 drivers/net/wireless/ath/ath9k/ar9002_mac.c ts->ts_status |= ATH9K_TXERR_XRETRY; ts 352 drivers/net/wireless/ath/ath9k/ar9002_mac.c ts->ts_status |= ATH9K_TXERR_FILT; ts 354 drivers/net/wireless/ath/ath9k/ar9002_mac.c ts->ts_status |= ATH9K_TXERR_FIFO; ts 359 drivers/net/wireless/ath/ath9k/ar9002_mac.c ts->ts_status |= ATH9K_TXERR_TIMER_EXPIRED; ts 361 drivers/net/wireless/ath/ath9k/ar9002_mac.c ts->ts_flags |= ATH9K_TX_DESC_CFG_ERR; ts 363 drivers/net/wireless/ath/ath9k/ar9002_mac.c ts->ts_flags |= ATH9K_TX_DATA_UNDERRUN; ts 367 drivers/net/wireless/ath/ath9k/ar9002_mac.c ts->ts_flags |= ATH9K_TX_DELIM_UNDERRUN; ts 370 drivers/net/wireless/ath/ath9k/ar9002_mac.c ts->ts_shortretry = MS(status, AR_RTSFailCnt); ts 371 drivers/net/wireless/ath/ath9k/ar9002_mac.c ts->ts_longretry = MS(status, AR_DataFailCnt); ts 372 drivers/net/wireless/ath/ath9k/ar9002_mac.c ts->ts_virtcol = MS(status, AR_VirtRetryCnt); ts 375 drivers/net/wireless/ath/ath9k/ar9002_mac.c ts->ts_rssi = MS(status, AR_TxRSSICombined); ts 376 drivers/net/wireless/ath/ath9k/ar9002_mac.c ts->ts_rssi_ext0 = MS(status, AR_TxRSSIAnt10); ts 377 drivers/net/wireless/ath/ath9k/ar9002_mac.c ts->ts_rssi_ext1 = MS(status, AR_TxRSSIAnt11); ts 378 drivers/net/wireless/ath/ath9k/ar9002_mac.c ts->ts_rssi_ext2 = MS(status, AR_TxRSSIAnt12); ts 380 drivers/net/wireless/ath/ath9k/ar9002_mac.c ts->evm0 = ads->AR_TxEVM0; ts 381 drivers/net/wireless/ath/ath9k/ar9002_mac.c ts->evm1 = ads->AR_TxEVM1; ts 382 drivers/net/wireless/ath/ath9k/ar9002_mac.c ts->evm2 = ads->AR_TxEVM2; ts 355 drivers/net/wireless/ath/ath9k/ar9003_mac.c struct ath_tx_status *ts) ts 376 drivers/net/wireless/ath/ath9k/ar9003_mac.c ts->ts_rateindex = MS(status, AR_FinalTxIdx); ts 377 drivers/net/wireless/ath/ath9k/ar9003_mac.c ts->ts_seqnum = MS(status, AR_SeqNum); ts 378 drivers/net/wireless/ath/ath9k/ar9003_mac.c ts->tid = MS(status, AR_TxTid); ts 380 drivers/net/wireless/ath/ath9k/ar9003_mac.c ts->qid = MS(ads->ds_info, AR_TxQcuNum); ts 381 drivers/net/wireless/ath/ath9k/ar9003_mac.c ts->desc_id = MS(ads->status1, AR_TxDescId); ts 382 drivers/net/wireless/ath/ath9k/ar9003_mac.c ts->ts_tstamp = ads->status4; ts 383 drivers/net/wireless/ath/ath9k/ar9003_mac.c ts->ts_status = 0; ts 384 drivers/net/wireless/ath/ath9k/ar9003_mac.c ts->ts_flags = 0; ts 387 drivers/net/wireless/ath/ath9k/ar9003_mac.c ts->ts_status |= ATH9K_TXERR_XTXOP; ts 389 drivers/net/wireless/ath/ath9k/ar9003_mac.c ts->ts_rssi_ctl0 = MS(status, AR_TxRSSIAnt00); ts 390 drivers/net/wireless/ath/ath9k/ar9003_mac.c ts->ts_rssi_ctl1 = MS(status, AR_TxRSSIAnt01); ts 391 drivers/net/wireless/ath/ath9k/ar9003_mac.c ts->ts_rssi_ctl2 = MS(status, AR_TxRSSIAnt02); ts 393 drivers/net/wireless/ath/ath9k/ar9003_mac.c ts->ts_flags |= ATH9K_TX_BA; ts 394 drivers/net/wireless/ath/ath9k/ar9003_mac.c ts->ba_low = ads->status5; ts 395 drivers/net/wireless/ath/ath9k/ar9003_mac.c ts->ba_high = ads->status6; ts 400 drivers/net/wireless/ath/ath9k/ar9003_mac.c ts->ts_status |= ATH9K_TXERR_XRETRY; ts 402 drivers/net/wireless/ath/ath9k/ar9003_mac.c ts->ts_status |= ATH9K_TXERR_FILT; ts 404 drivers/net/wireless/ath/ath9k/ar9003_mac.c ts->ts_status |= ATH9K_TXERR_FIFO; ts 408 drivers/net/wireless/ath/ath9k/ar9003_mac.c ts->ts_status |= ATH9K_TXERR_TIMER_EXPIRED; ts 410 drivers/net/wireless/ath/ath9k/ar9003_mac.c ts->ts_flags |= ATH9K_TX_DESC_CFG_ERR; ts 412 drivers/net/wireless/ath/ath9k/ar9003_mac.c ts->ts_flags |= ATH9K_TX_DATA_UNDERRUN; ts 416 drivers/net/wireless/ath/ath9k/ar9003_mac.c ts->ts_flags |= ATH9K_TX_DELIM_UNDERRUN; ts 419 drivers/net/wireless/ath/ath9k/ar9003_mac.c ts->ts_shortretry = MS(status, AR_RTSFailCnt); ts 420 drivers/net/wireless/ath/ath9k/ar9003_mac.c ts->ts_longretry = MS(status, AR_DataFailCnt); ts 421 drivers/net/wireless/ath/ath9k/ar9003_mac.c ts->ts_virtcol = MS(status, AR_VirtRetryCnt); ts 424 drivers/net/wireless/ath/ath9k/ar9003_mac.c ts->ts_rssi = MS(status, AR_TxRSSICombined); ts 425 drivers/net/wireless/ath/ath9k/ar9003_mac.c ts->ts_rssi_ext0 = MS(status, AR_TxRSSIAnt10); ts 426 drivers/net/wireless/ath/ath9k/ar9003_mac.c ts->ts_rssi_ext1 = MS(status, AR_TxRSSIAnt11); ts 427 drivers/net/wireless/ath/ath9k/ar9003_mac.c ts->ts_rssi_ext2 = MS(status, AR_TxRSSIAnt12); ts 236 drivers/net/wireless/ath/ath9k/channel.c struct timespec64 ts, *old; ts 238 drivers/net/wireless/ath/ath9k/channel.c ktime_get_raw_ts64(&ts); ts 240 drivers/net/wireless/ath/ath9k/channel.c ms = ts.tv_sec * 1000 + ts.tv_nsec / 1000000; ts 242 drivers/net/wireless/ath/ath9k/channel.c sc->last_event_time = ts; ts 337 drivers/net/wireless/ath/ath9k/channel.c struct timespec64 ts; ts 349 drivers/net/wireless/ath/ath9k/channel.c ktime_get_raw_ts64(&ts); ts 351 drivers/net/wireless/ath/ath9k/channel.c ath9k_hw_get_tsf_offset(&cur->tsf_ts, &ts); ts 354 drivers/net/wireless/ath/ath9k/channel.c prev_tsf -= ath9k_hw_get_tsf_offset(&prev->tsf_ts, &ts); ts 1233 drivers/net/wireless/ath/ath9k/channel.c struct timespec64 ts; ts 1263 drivers/net/wireless/ath/ath9k/channel.c ktime_get_raw_ts64(&ts); ts 1306 drivers/net/wireless/ath/ath9k/channel.c ath9k_hw_get_tsf_offset(&ts, NULL); ts 783 drivers/net/wireless/ath/ath9k/debug.c struct ath_tx_status *ts, struct ath_txq *txq, ts 797 drivers/net/wireless/ath/ath9k/debug.c if (ts->ts_status & ATH9K_TXERR_XRETRY) ts 803 drivers/net/wireless/ath/ath9k/debug.c if (ts->ts_status & ATH9K_TXERR_FILT) ts 805 drivers/net/wireless/ath/ath9k/debug.c if (ts->ts_status & ATH9K_TXERR_FIFO) ts 807 drivers/net/wireless/ath/ath9k/debug.c if (ts->ts_status & ATH9K_TXERR_XTXOP) ts 809 drivers/net/wireless/ath/ath9k/debug.c if (ts->ts_status & ATH9K_TXERR_TIMER_EXPIRED) ts 811 drivers/net/wireless/ath/ath9k/debug.c if (ts->ts_flags & ATH9K_TX_DESC_CFG_ERR) ts 813 drivers/net/wireless/ath/ath9k/debug.c if (ts->ts_flags & ATH9K_TX_DATA_UNDERRUN) ts 815 drivers/net/wireless/ath/ath9k/debug.c if (ts->ts_flags & ATH9K_TX_DELIM_UNDERRUN) ts 259 drivers/net/wireless/ath/ath9k/debug.h struct ath_tx_status *ts, struct ath_txq *txq, ts 295 drivers/net/wireless/ath/ath9k/debug.h struct ath_tx_status *ts, ts 332 drivers/net/wireless/ath/ath9k/dfs.c pe.ts = mactime; ts 349 drivers/net/wireless/ath/ath9k/dfs.c ard.pulse_bw_info, pe.freq, pe.ts, pe.width, pe.rssi, ts 350 drivers/net/wireless/ath/ath9k/dfs.c pe.ts - sc->dfs_prev_pulse_ts); ts 351 drivers/net/wireless/ath/ath9k/dfs.c sc->dfs_prev_pulse_ts = pe.ts; ts 161 drivers/net/wireless/ath/ath9k/dynack.c st_ts = &da->st_rbf.ts[da->st_rbf.h_rb]; ts 208 drivers/net/wireless/ath/ath9k/dynack.c struct ath_tx_status *ts, ts 215 drivers/net/wireless/ath/ath9k/dynack.c u32 dur = ts->duration; ts 226 drivers/net/wireless/ath/ath9k/dynack.c if (ts->ts_status & ATH9K_TXERR_XRETRY) { ts 247 drivers/net/wireless/ath/ath9k/dynack.c ridx = ts->ts_rateindex; ts 249 drivers/net/wireless/ath/ath9k/dynack.c da->st_rbf.ts[da->st_rbf.t_rb].tstamp = ts->ts_tstamp; ts 267 drivers/net/wireless/ath/ath9k/dynack.c da->st_rbf.ts[da->st_rbf.t_rb].dur = dur; ts 274 drivers/net/wireless/ath/ath9k/dynack.c hdr->addr1, ts->ts_tstamp, dur, da->st_rbf.h_rb, ts 291 drivers/net/wireless/ath/ath9k/dynack.c u32 ts) ts 301 drivers/net/wireless/ath/ath9k/dynack.c da->ack_rbf.tstamp[da->ack_rbf.t_rb] = ts; ts 308 drivers/net/wireless/ath/ath9k/dynack.c ts, da->ack_rbf.h_rb, da->ack_rbf.t_rb); ts 56 drivers/net/wireless/ath/ath9k/dynack.h struct ts_info ts[ATH_DYN_BUF]; ts 87 drivers/net/wireless/ath/ath9k/dynack.h void ath_dynack_sample_ack_ts(struct ath_hw *ah, struct sk_buff *skb, u32 ts); ts 89 drivers/net/wireless/ath/ath9k/dynack.h struct ath_tx_status *ts, ts 98 drivers/net/wireless/ath/ath9k/dynack.h struct sk_buff *skb, u32 ts) {} ts 101 drivers/net/wireless/ath/ath9k/dynack.h struct ath_tx_status *ts, ts 64 drivers/net/wireless/ath/ath9k/hw-ops.h struct ath_tx_status *ts) ts 66 drivers/net/wireless/ath/ath9k/hw-ops.h return ath9k_hw_ops(ah)->proc_txdesc(ah, ds, ts); ts 1854 drivers/net/wireless/ath/ath9k/hw.c struct timespec64 ts; ts 1858 drivers/net/wireless/ath/ath9k/hw.c ktime_get_raw_ts64(&ts); ts 1859 drivers/net/wireless/ath/ath9k/hw.c cur = &ts; ts 734 drivers/net/wireless/ath/ath9k/hw.h struct ath_tx_status *ts); ts 2151 drivers/net/wireless/ath/ath9k/main.c struct ath_tx_status ts; ts 2171 drivers/net/wireless/ath/ath9k/main.c status = ath9k_hw_txprocdesc(ah, bf->bf_desc, &ts); ts 2176 drivers/net/wireless/ath/ath9k/main.c sc->beacon.tx_last = !(ts.ts_status & ATH9K_TXERR_MASK); ts 58 drivers/net/wireless/ath/ath9k/xmit.c struct ath_tx_status *ts, int txok); ts 62 drivers/net/wireless/ath/ath9k/xmit.c struct ath_tx_status *ts, int nframes, int nbad, ts 238 drivers/net/wireless/ath/ath9k/xmit.c struct ath_tx_status ts; ts 244 drivers/net/wireless/ath/ath9k/xmit.c memset(&ts, 0, sizeof(ts)); ts 261 drivers/net/wireless/ath/ath9k/xmit.c ath_tx_complete_buf(sc, bf, txq, &bf_head, NULL, &ts, 0); ts 323 drivers/net/wireless/ath/ath9k/xmit.c struct ath_tx_status ts; ts 327 drivers/net/wireless/ath/ath9k/xmit.c memset(&ts, 0, sizeof(ts)); ts 340 drivers/net/wireless/ath/ath9k/xmit.c ath_tx_complete_buf(sc, bf, txq, &bf_head, NULL, &ts, 0); ts 410 drivers/net/wireless/ath/ath9k/xmit.c struct ath_tx_status *ts, int txok, ts 423 drivers/net/wireless/ath/ath9k/xmit.c seq_st = ts->ts_seqnum; ts 424 drivers/net/wireless/ath/ath9k/xmit.c memcpy(ba, &ts->ba_low, WME_BA_BMP_SIZE >> 3); ts 443 drivers/net/wireless/ath/ath9k/xmit.c struct ath_tx_status *ts, int txok) ts 458 drivers/net/wireless/ath/ath9k/xmit.c bool flush = !!(ts->ts_status & ATH9K_TX_FLUSH); ts 467 drivers/net/wireless/ath/ath9k/xmit.c retries = ts->ts_longretry + 1; ts 468 drivers/net/wireless/ath/ath9k/xmit.c for (i = 0; i < ts->ts_rateindex; i++) ts 479 drivers/net/wireless/ath/ath9k/xmit.c ath_tx_complete_buf(sc, bf, txq, &bf_head, NULL, ts, 0); ts 488 drivers/net/wireless/ath/ath9k/xmit.c isba = ts->ts_flags & ATH9K_TX_BA; ts 498 drivers/net/wireless/ath/ath9k/xmit.c if (isba && tid->tidno != ts->tid) ts 505 drivers/net/wireless/ath/ath9k/xmit.c if (ts->ts_flags & ATH9K_TX_BA) { ts 506 drivers/net/wireless/ath/ath9k/xmit.c seq_st = ts->ts_seqnum; ts 507 drivers/net/wireless/ath/ath9k/xmit.c memcpy(ba, &ts->ba_low, WME_BA_BMP_SIZE >> 3); ts 523 drivers/net/wireless/ath/ath9k/xmit.c ath_tx_count_frames(sc, bf, ts, txok, &nframes, &nbad); ts 580 drivers/net/wireless/ath/ath9k/xmit.c ath_tx_rc_status(sc, bf, ts, nframes, nbad, txok); ts 585 drivers/net/wireless/ath/ath9k/xmit.c ts, sta); ts 588 drivers/net/wireless/ath/ath9k/xmit.c ath_tx_complete_buf(sc, bf, txq, &bf_head, sta, ts, ts 609 drivers/net/wireless/ath/ath9k/xmit.c &bf_head, NULL, ts, ts 637 drivers/net/wireless/ath/ath9k/xmit.c if (ts->ts_status & (ATH9K_TXERR_FILT | ATH9K_TXERR_XRETRY)) ts 666 drivers/net/wireless/ath/ath9k/xmit.c struct ath_tx_status *ts, ts 672 drivers/net/wireless/ath/ath9k/xmit.c airtime += ts->duration * (ts->ts_longretry + 1); ts 673 drivers/net/wireless/ath/ath9k/xmit.c for(i = 0; i < ts->ts_rateindex; i++) { ts 682 drivers/net/wireless/ath/ath9k/xmit.c struct ath_tx_status *ts, struct ath_buf *bf, ts 692 drivers/net/wireless/ath/ath9k/xmit.c txok = !(ts->ts_status & ATH9K_TXERR_MASK); ts 693 drivers/net/wireless/ath/ath9k/xmit.c flush = !!(ts->ts_status & ATH9K_TX_FLUSH); ts 700 drivers/net/wireless/ath/ath9k/xmit.c ts->duration = ath9k_hw_get_duration(sc->sc_ah, bf->bf_desc, ts 701 drivers/net/wireless/ath/ath9k/xmit.c ts->ts_rateindex); ts 708 drivers/net/wireless/ath/ath9k/xmit.c ath_tx_count_airtime(sc, sta, bf, ts, tid->tidno); ts 709 drivers/net/wireless/ath/ath9k/xmit.c if (ts->ts_status & (ATH9K_TXERR_FILT | ATH9K_TXERR_XRETRY)) ts 718 drivers/net/wireless/ath/ath9k/xmit.c ath_tx_rc_status(sc, bf, ts, 1, txok ? 0 : 1, txok); ts 719 drivers/net/wireless/ath/ath9k/xmit.c ath_dynack_sample_tx_ts(sc->sc_ah, bf->bf_mpdu, ts, ts 722 drivers/net/wireless/ath/ath9k/xmit.c ath_tx_complete_buf(sc, bf, txq, bf_head, sta, ts, txok); ts 724 drivers/net/wireless/ath/ath9k/xmit.c ath_tx_complete_aggr(sc, txq, bf, bf_head, sta, tid, ts, txok); ts 962 drivers/net/wireless/ath/ath9k/xmit.c struct ath_tx_status ts = {}; ts 968 drivers/net/wireless/ath/ath9k/xmit.c ath_tx_complete_buf(sc, bf, txq, &bf_head, NULL, &ts, 0); ts 1812 drivers/net/wireless/ath/ath9k/xmit.c struct ath_tx_status ts; ts 1814 drivers/net/wireless/ath/ath9k/xmit.c memset(&ts, 0, sizeof(ts)); ts 1815 drivers/net/wireless/ath/ath9k/xmit.c ts.ts_status = ATH9K_TX_FLUSH; ts 1830 drivers/net/wireless/ath/ath9k/xmit.c ath_tx_process_buffer(sc, txq, &ts, bf, &bf_head); ts 2452 drivers/net/wireless/ath/ath9k/xmit.c struct ath_tx_status *ts, int txok) ts 2462 drivers/net/wireless/ath/ath9k/xmit.c if (ts->ts_status & ATH9K_TXERR_FILT) ts 2478 drivers/net/wireless/ath/ath9k/xmit.c ath_debug_stat_tx(sc, bf, ts, txq, tx_flags); ts 2496 drivers/net/wireless/ath/ath9k/xmit.c struct ath_tx_status *ts, int nframes, int nbad, ts 2507 drivers/net/wireless/ath/ath9k/xmit.c tx_info->status.ack_signal = ts->ts_rssi; ts 2509 drivers/net/wireless/ath/ath9k/xmit.c tx_rateindex = ts->ts_rateindex; ts 2520 drivers/net/wireless/ath/ath9k/xmit.c if ((ts->ts_status & ATH9K_TXERR_FILT) == 0 && ts 2534 drivers/net/wireless/ath/ath9k/xmit.c if (unlikely(ts->ts_flags & (ATH9K_TX_DATA_UNDERRUN | ts 2547 drivers/net/wireless/ath/ath9k/xmit.c tx_info->status.rates[tx_rateindex].count = ts->ts_longretry + 1; ts 2560 drivers/net/wireless/ath/ath9k/xmit.c struct ath_tx_status ts; ts 2600 drivers/net/wireless/ath/ath9k/xmit.c memset(&ts, 0, sizeof(ts)); ts 2601 drivers/net/wireless/ath/ath9k/xmit.c status = ath9k_hw_txprocdesc(ah, ds, &ts); ts 2623 drivers/net/wireless/ath/ath9k/xmit.c ath_tx_process_buffer(sc, txq, &ts, bf, &bf_head); ts 2644 drivers/net/wireless/ath/ath9k/xmit.c struct ath_tx_status ts; ts 2658 drivers/net/wireless/ath/ath9k/xmit.c status = ath9k_hw_txprocdesc(ah, NULL, (void *)&ts); ts 2667 drivers/net/wireless/ath/ath9k/xmit.c if (ts.qid == sc->beacon.beaconq) { ts 2669 drivers/net/wireless/ath/ath9k/xmit.c sc->beacon.tx_last = !(ts.ts_status & ATH9K_TXERR_MASK); ts 2680 drivers/net/wireless/ath/ath9k/xmit.c txq = &sc->tx.txq[ts.qid]; ts 2721 drivers/net/wireless/ath/ath9k/xmit.c ath_tx_process_buffer(sc, txq, &ts, bf, &bf_head); ts 289 drivers/net/wireless/ath/dfs_pattern_detector.c if (event->ts < dpd->last_pulse_ts) ts 291 drivers/net/wireless/ath/dfs_pattern_detector.c dpd->last_pulse_ts = event->ts; ts 51 drivers/net/wireless/ath/dfs_pattern_detector.h u64 ts; ts 38 drivers/net/wireless/ath/dfs_pri_detector.c u64 ts; ts 196 drivers/net/wireless/ath/dfs_pri_detector.c if (p->ts >= min_valid_ts) ts 202 drivers/net/wireless/ath/dfs_pri_detector.c static bool pulse_queue_enqueue(struct pri_detector *pde, u64 ts) ts 215 drivers/net/wireless/ath/dfs_pri_detector.c p->ts = ts; ts 218 drivers/net/wireless/ath/dfs_pri_detector.c pde->last_ts = ts; ts 226 drivers/net/wireless/ath/dfs_pri_detector.c u64 ts, u32 min_count) ts 234 drivers/net/wireless/ath/dfs_pri_detector.c u32 delta_ts = ts - p->ts; ts 247 drivers/net/wireless/ath/dfs_pri_detector.c ps.first_ts = p->ts; ts 248 drivers/net/wireless/ath/dfs_pri_detector.c ps.last_ts = ts; ts 250 drivers/net/wireless/ath/dfs_pri_detector.c pde->rs->pri_max, ts - p->ts); ts 256 drivers/net/wireless/ath/dfs_pri_detector.c min_valid_ts = ts - ps.dur; ts 260 drivers/net/wireless/ath/dfs_pri_detector.c if (p2->ts < min_valid_ts) ts 264 drivers/net/wireless/ath/dfs_pri_detector.c factor = pde_get_multiple(ps.last_ts - p2->ts, ps.pri, ts 268 drivers/net/wireless/ath/dfs_pri_detector.c ps.first_ts = p2->ts; ts 305 drivers/net/wireless/ath/dfs_pri_detector.c pseq_handler_add_to_existing_seqs(struct pri_detector *pde, u64 ts) ts 314 drivers/net/wireless/ath/dfs_pri_detector.c if (ts > ps->deadline_ts) { ts 320 drivers/net/wireless/ath/dfs_pri_detector.c delta_ts = ts - ps->last_ts; ts 324 drivers/net/wireless/ath/dfs_pri_detector.c ps->last_ts = ts; ts 359 drivers/net/wireless/ath/dfs_pri_detector.c static void pri_detector_reset(struct pri_detector *pde, u64 ts) ts 372 drivers/net/wireless/ath/dfs_pri_detector.c pde->last_ts = ts; ts 387 drivers/net/wireless/ath/dfs_pri_detector.c u64 ts = event->ts; ts 394 drivers/net/wireless/ath/dfs_pri_detector.c if ((ts - de->last_ts) < rs->max_pri_tolerance) ts 401 drivers/net/wireless/ath/dfs_pri_detector.c de->last_ts = ts; ts 403 drivers/net/wireless/ath/dfs_pri_detector.c max_updated_seq = pseq_handler_add_to_existing_seqs(de, ts); ts 405 drivers/net/wireless/ath/dfs_pri_detector.c if (!pseq_handler_create_sequences(de, ts, max_updated_seq)) { ts 406 drivers/net/wireless/ath/dfs_pri_detector.c pri_detector_reset(de, ts); ts 413 drivers/net/wireless/ath/dfs_pri_detector.c pulse_queue_enqueue(de, ts); ts 63 drivers/net/wireless/ath/dfs_pri_detector.h void (*reset) (struct pri_detector *de, u64 ts); ts 633 drivers/net/wireless/intel/iwlwifi/mvm/mvm.h unsigned long ts; /* timestamp when period ends */ ts 719 drivers/net/wireless/intel/iwlwifi/mvm/ops.c mvm->tcm.ts = jiffies; ts 279 drivers/net/wireless/intel/iwlwifi/mvm/rx.c if (time_after(jiffies, mvm->tcm.ts + MVM_TCM_PERIOD)) ts 1744 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c time_after(jiffies, mvm->tcm.ts + MVM_TCM_PERIOD)) ts 1039 drivers/net/wireless/intel/iwlwifi/mvm/tx.c if (time_after(jiffies, mvm->tcm.ts + MVM_TCM_PERIOD)) ts 1219 drivers/net/wireless/intel/iwlwifi/mvm/utils.c unsigned long ts, ts 1222 drivers/net/wireless/intel/iwlwifi/mvm/utils.c unsigned int elapsed = jiffies_to_msecs(ts - mvm->tcm.ts); ts 1224 drivers/net/wireless/intel/iwlwifi/mvm/utils.c jiffies_to_msecs(ts - mvm->tcm.uapsd_nonagg_ts); ts 1231 drivers/net/wireless/intel/iwlwifi/mvm/utils.c bool handle_ll = time_after(ts, mvm->tcm.ll_ts + MVM_LL_PERIOD); ts 1234 drivers/net/wireless/intel/iwlwifi/mvm/utils.c mvm->tcm.ll_ts = ts; ts 1236 drivers/net/wireless/intel/iwlwifi/mvm/utils.c mvm->tcm.uapsd_nonagg_ts = ts; ts 1325 drivers/net/wireless/intel/iwlwifi/mvm/utils.c unsigned long ts = jiffies; ts 1327 drivers/net/wireless/intel/iwlwifi/mvm/utils.c time_after(ts, mvm->tcm.uapsd_nonagg_ts + ts 1331 drivers/net/wireless/intel/iwlwifi/mvm/utils.c if (mvm->tcm.paused || !time_after(ts, mvm->tcm.ts + MVM_TCM_PERIOD)) { ts 1346 drivers/net/wireless/intel/iwlwifi/mvm/utils.c if (!mvm->tcm.paused && time_after(ts, mvm->tcm.ts + MVM_TCM_PERIOD)) { ts 1348 drivers/net/wireless/intel/iwlwifi/mvm/utils.c unsigned long work_delay = iwl_mvm_calc_tcm_stats(mvm, ts, ts 1353 drivers/net/wireless/intel/iwlwifi/mvm/utils.c mvm->tcm.ts = ts; ts 1386 drivers/net/wireless/intel/iwlwifi/mvm/utils.c mvm->tcm.ts = jiffies; ts 1411 drivers/net/wireless/mac80211_hwsim.c u64 ts; ts 1415 drivers/net/wireless/mac80211_hwsim.c ts = mac80211_hwsim_get_tsf_raw(); ts 1417 drivers/net/wireless/mac80211_hwsim.c cpu_to_le64(ts + data->tsf_offset + ts 382 drivers/net/wireless/mediatek/mt76/mt76x02_dfs.c event->ts = MT_DFS_EVENT_TIMESTAMP(data); ts 400 drivers/net/wireless/mediatek/mt76/mt76x02_dfs.c delta_ts = event->ts - event_buff->data[last_event_idx].ts; ts 470 drivers/net/wireless/mediatek/mt76/mt76x02_dfs.c pri = event->ts - cur_event->ts; ts 478 drivers/net/wireless/mediatek/mt76/mt76x02_dfs.c seq.pri = event->ts - cur_event->ts; ts 479 drivers/net/wireless/mediatek/mt76/mt76x02_dfs.c seq.first_ts = cur_event->ts; ts 480 drivers/net/wireless/mediatek/mt76/mt76x02_dfs.c seq.last_ts = event->ts; ts 487 drivers/net/wireless/mediatek/mt76/mt76x02_dfs.c cur_pri = event->ts - cur_event->ts; ts 491 drivers/net/wireless/mediatek/mt76/mt76x02_dfs.c seq.first_ts = cur_event->ts; ts 524 drivers/net/wireless/mediatek/mt76/mt76x02_dfs.c if (event->ts > seq->first_ts + MT_DFS_SEQUENCE_WINDOW) { ts 533 drivers/net/wireless/mediatek/mt76/mt76x02_dfs.c pri = event->ts - seq->last_ts; ts 537 drivers/net/wireless/mediatek/mt76/mt76x02_dfs.c seq->last_ts = event->ts; ts 574 drivers/net/wireless/mediatek/mt76/mt76x02_dfs.c if (dfs_pd->last_event_ts > event.ts) ts 576 drivers/net/wireless/mediatek/mt76/mt76x02_dfs.c dfs_pd->last_event_ts = event.ts; ts 64 drivers/net/wireless/mediatek/mt76/mt76x02_dfs.h u32 ts; ts 102 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c static void qtnf_deassert_intx(struct qtnf_pcie_topaz_state *ts) ts 104 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c void __iomem *reg = ts->base.sysctl_bar + TOPAZ_PCIE_CFG0_OFFSET; ts 112 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c static inline int qtnf_topaz_intx_asserted(struct qtnf_pcie_topaz_state *ts) ts 114 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c void __iomem *reg = ts->base.sysctl_bar + TOPAZ_PCIE_CFG0_OFFSET; ts 120 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c static void qtnf_topaz_reset_ep(struct qtnf_pcie_topaz_state *ts) ts 123 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c TOPAZ_LH_IPC4_INT(ts->base.sysctl_bar)); ts 125 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c pci_restore_state(ts->base.pdev); ts 128 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c static void setup_rx_irqs(struct qtnf_pcie_topaz_state *ts) ts 130 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c void __iomem *reg = PCIE_DMA_WR_DONE_IMWR_ADDR_LOW(ts->base.dmareg_bar); ts 132 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c ts->dma_msi_imwr = readl(reg); ts 135 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c static void enable_rx_irqs(struct qtnf_pcie_topaz_state *ts) ts 137 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c void __iomem *reg = PCIE_DMA_WR_DONE_IMWR_ADDR_LOW(ts->base.dmareg_bar); ts 139 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c qtnf_non_posted_write(ts->dma_msi_imwr, reg); ts 142 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c static void disable_rx_irqs(struct qtnf_pcie_topaz_state *ts) ts 144 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c void __iomem *reg = PCIE_DMA_WR_DONE_IMWR_ADDR_LOW(ts->base.dmareg_bar); ts 146 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c qtnf_non_posted_write(QTN_HOST_LO32(ts->dma_msi_dummy), reg); ts 151 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_pcie_topaz_state *ts = arg; ts 154 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c TOPAZ_CTL_M2L_INT(ts->base.sysctl_bar)); ts 182 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c static int topaz_alloc_bd_table(struct qtnf_pcie_topaz_state *ts, ts 186 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_pcie_bus_priv *priv = &ts->base; ts 206 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c ts->tx_bd_vbase = vaddr; ts 210 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c ts->tx_bd_vbase[i].info |= cpu_to_le32(QTN_BD_EMPTY); ts 222 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c ts->rx_bd_vbase = vaddr; ts 234 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c ts->ep_next_rx_pkt = &extra_params->param1; ts 237 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c ts->txqueue_wake = &extra_params->param2; ts 238 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c ts->ep_pmstate = &extra_params->param3; ts 239 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c ts->dma_msi_dummy = paddr + QTNF_BD_PARAM_OFFSET(4); ts 245 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c topaz_skb2rbd_attach(struct qtnf_pcie_topaz_state *ts, u16 index, u32 wrap) ts 247 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_topaz_rx_bd *rxbd = &ts->rx_bd_vbase[index]; ts 253 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c ts->base.rx_skb[index] = NULL; ts 257 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c ts->base.rx_skb[index] = skb; ts 259 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c paddr = pci_map_single(ts->base.pdev, skb->data, ts 261 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c if (pci_dma_mapping_error(ts->base.pdev, paddr)) { ts 269 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c ts->base.rx_bd_w_index = index; ts 274 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c static int topaz_alloc_rx_buffers(struct qtnf_pcie_topaz_state *ts) ts 279 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c memset(ts->rx_bd_vbase, 0x0, ts 280 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c ts->base.rx_bd_num * sizeof(struct qtnf_topaz_rx_bd)); ts 282 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c for (i = 0; i < ts->base.rx_bd_num; i++) { ts 283 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c ret = topaz_skb2rbd_attach(ts, i, 0); ts 288 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c ts->rx_bd_vbase[ts->base.rx_bd_num - 1].info |= ts 295 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c static void qtnf_topaz_free_xfer_buffers(struct qtnf_pcie_topaz_state *ts) ts 297 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_pcie_bus_priv *priv = &ts->base; ts 307 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c rxbd = &ts->rx_bd_vbase[i]; ts 322 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c txbd = &ts->tx_bd_vbase[i]; ts 335 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c static int qtnf_pcie_topaz_init_xfer(struct qtnf_pcie_topaz_state *ts, ts 338 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_topaz_bda __iomem *bda = ts->bda; ts 339 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_pcie_bus_priv *priv = &ts->base; ts 365 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c ret = topaz_alloc_bd_table(ts, bda); ts 371 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c ret = topaz_alloc_rx_buffers(ts); ts 380 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c static void qtnf_topaz_data_tx_reclaim(struct qtnf_pcie_topaz_state *ts) ts 382 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_pcie_bus_priv *priv = &ts->base; ts 393 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c tx_done_index = readl(ts->ep_next_rx_pkt); ts 404 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c txbd = &ts->tx_bd_vbase[i]; ts 436 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_pcie_topaz_state *ts = (void *)get_bus_priv(bus); ts 440 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c ts->base.tx_stopped = 1; ts 443 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c writel(0x0, ts->txqueue_wake); ts 450 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c TOPAZ_LH_IPC4_INT(ts->base.sysctl_bar)); ts 453 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c tasklet_hi_schedule(&ts->base.reclaim_tq); ts 458 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_pcie_topaz_state *ts = get_bus_priv(bus); ts 461 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c ready = readl(ts->txqueue_wake); ts 467 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c TOPAZ_LH_IPC4_INT(ts->base.sysctl_bar)); ts 471 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c static int qtnf_tx_queue_ready(struct qtnf_pcie_topaz_state *ts) ts 473 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_pcie_bus_priv *priv = &ts->base; ts 477 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c qtnf_topaz_data_tx_reclaim(ts); ts 491 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_pcie_topaz_state *ts = (void *)get_bus_priv(bus); ts 492 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_pcie_bus_priv *priv = &ts->base; ts 493 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_topaz_bda __iomem *bda = ts->bda; ts 510 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c if (!qtnf_tx_queue_ready(ts)) { ts 527 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c txbd = &ts->tx_bd_vbase[i]; ts 555 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c qtnf_topaz_data_tx_reclaim(ts); ts 563 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_pcie_topaz_state *ts = (void *)get_bus_priv(bus); ts 564 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_pcie_bus_priv *priv = &ts->base; ts 566 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c if (!priv->msi_enabled && !qtnf_topaz_intx_asserted(ts)) ts 570 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c qtnf_deassert_intx(ts); ts 578 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c disable_rx_irqs(ts); ts 587 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c static int qtnf_rx_data_ready(struct qtnf_pcie_topaz_state *ts) ts 589 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c u16 index = ts->base.rx_bd_r_index; ts 593 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c rxbd = &ts->rx_bd_vbase[index]; ts 605 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_pcie_topaz_state *ts = (void *)get_bus_priv(bus); ts 606 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_pcie_bus_priv *priv = &ts->base; ts 621 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c if (!qtnf_rx_data_ready(ts)) ts 625 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c rxbd = &ts->rx_bd_vbase[r_idx]; ts 676 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c if (((++ts->rx_pkt_count) & RX_DONE_INTR_MSK) == 0) ts 693 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c ret = topaz_skb2rbd_attach(ts, w_idx, ts 708 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c enable_rx_irqs(ts); ts 717 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_pcie_topaz_state *ts = get_bus_priv(bus); ts 720 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c tasklet_hi_schedule(&ts->base.reclaim_tq); ts 725 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_pcie_topaz_state *ts = get_bus_priv(bus); ts 728 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c enable_rx_irqs(ts); ts 733 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_pcie_topaz_state *ts = get_bus_priv(bus); ts 735 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c disable_rx_irqs(ts); ts 753 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_pcie_topaz_state *ts = get_bus_priv(bus); ts 755 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c seq_printf(s, "pcie_irq_count(%u)\n", ts->base.pcie_irq_count); ts 763 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_pcie_topaz_state *ts = get_bus_priv(bus); ts 764 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_pcie_bus_priv *priv = &ts->base; ts 765 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c u32 tx_done_index = readl(ts->ep_next_rx_pkt); ts 796 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c static void qtnf_reset_dma_offset(struct qtnf_pcie_topaz_state *ts) ts 798 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_topaz_bda __iomem *bda = ts->bda; ts 807 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c static int qtnf_pcie_endian_detect(struct qtnf_pcie_topaz_state *ts) ts 809 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_topaz_bda __iomem *bda = ts->bda; ts 848 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_pcie_topaz_state *ts = (void *)get_bus_priv(bus); ts 849 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_topaz_bda __iomem *bda = ts->bda; ts 853 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c ret = qtnf_pcie_endian_detect(ts); ts 859 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c writeb(ts->base.msi_enabled, &ts->bda->bda_rc_msi_enabled); ts 860 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c qtnf_reset_dma_offset(ts); ts 865 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c if (ts->base.flashboot) ts 872 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c qtnf_set_state(&ts->bda->bda_bootstate, QTN_BDA_FW_HOST_RDY); ts 873 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c if (qtnf_poll_state(&ts->bda->bda_bootstate, QTN_BDA_FW_TARGET_RDY, ts 882 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c static int qtnf_post_init_ep(struct qtnf_pcie_topaz_state *ts) ts 884 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct pci_dev *pdev = ts->base.pdev; ts 886 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c setup_rx_irqs(ts); ts 887 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c disable_rx_irqs(ts); ts 889 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c if (qtnf_poll_state(&ts->bda->bda_bootstate, QTN_BDA_FW_QLINK_DONE, ts 898 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c qtnf_ep_fw_load(struct qtnf_pcie_topaz_state *ts, const u8 *fw, u32 fw_size) ts 900 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_topaz_bda __iomem *bda = ts->bda; ts 901 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct pci_dev *pdev = ts->base.pdev; ts 915 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c blksize = ts->base.fw_blksize; ts 938 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c qtnf_set_state(&ts->bda->bda_bootstate, QTN_BDA_FW_HOST_LOAD); ts 939 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c if (qtnf_poll_state(&ts->bda->bda_bootstate, QTN_BDA_FW_EP_RDY, ts 956 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c qtnf_set_state(&ts->bda->bda_bootstate, QTN_BDA_FW_BLOCK_RDY); ts 957 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c if (qtnf_poll_state(&ts->bda->bda_bootstate, ts 973 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c qtnf_set_state(&ts->bda->bda_bootstate, QTN_BDA_FW_BLOCK_RDY); ts 974 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c if (qtnf_poll_state(&ts->bda->bda_bootstate, QTN_BDA_FW_BLOCK_DONE, ts 982 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c qtnf_set_state(&ts->bda->bda_bootstate, QTN_BDA_FW_BLOCK_END); ts 983 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c if (qtnf_poll_state(&ts->bda->bda_bootstate, QTN_BDA_FW_LOAD_DONE, ts 999 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c static int qtnf_topaz_fw_upload(struct qtnf_pcie_topaz_state *ts, ts 1003 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct pci_dev *pdev = ts->base.pdev; ts 1006 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c if (qtnf_poll_state(&ts->bda->bda_bootstate, ts 1021 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c ret = qtnf_ep_fw_load(ts, fw->data, fw->size); ts 1033 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_pcie_topaz_state *ts = (void *)get_bus_priv(bus); ts 1034 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c int bootloader_needed = readl(&ts->bda->bda_flags) & QTN_BDA_XMIT_UBOOT; ts 1035 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct pci_dev *pdev = ts->base.pdev; ts 1038 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c qtnf_set_state(&ts->bda->bda_bootstate, QTN_BDA_FW_TARGET_BOOT); ts 1041 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c ret = qtnf_topaz_fw_upload(ts, QTN_PCI_TOPAZ_BOOTLD_NAME); ts 1049 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c qtnf_set_state(&ts->bda->bda_bootstate, ts 1053 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c if (ts->base.flashboot) { ts 1056 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c ret = qtnf_poll_state(&ts->bda->bda_bootstate, ts 1062 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c ret = qtnf_topaz_fw_upload(ts, QTN_PCI_TOPAZ_FW_NAME); ts 1066 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c qtnf_set_state(&ts->bda->bda_bootstate, QTN_BDA_FW_START); ts 1067 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c ret = qtnf_poll_state(&ts->bda->bda_bootstate, ts 1075 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c qtnf_set_state(&ts->bda->bda_bootstate, QTN_BDA_FW_RUN); ts 1076 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c ret = qtnf_poll_state(&ts->bda->bda_bootstate, ts 1085 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c ret = qtnf_post_init_ep(ts); ts 1106 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_pcie_topaz_state *ts = (void *)data; ts 1108 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c qtnf_topaz_data_tx_reclaim(ts); ts 1118 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_pcie_topaz_state *ts = get_bus_priv(bus); ts 1119 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct pci_dev *pdev = ts->base.pdev; ts 1126 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c ts->bda = ts->base.epmem_bar; ts 1129 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c if (ts->base.msi_enabled) ts 1150 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c ret = qtnf_pcie_topaz_init_xfer(ts, tx_bd_num); ts 1156 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c tasklet_init(&ts->base.reclaim_tq, qtnf_reclaim_tasklet_fn, ts 1157 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c (unsigned long)ts); ts 1162 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c ipc_int.arg = ts; ts 1163 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c qtnf_pcie_init_shm_ipc(&ts->base, &ts->bda->bda_shm_reg1, ts 1164 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c &ts->bda->bda_shm_reg2, &ipc_int); ts 1171 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_pcie_topaz_state *ts = get_bus_priv(bus); ts 1173 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c qtnf_topaz_reset_ep(ts); ts 1174 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c qtnf_topaz_free_xfer_buffers(ts); ts 1180 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_pcie_topaz_state *ts = get_bus_priv(bus); ts 1181 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct pci_dev *pdev = ts->base.pdev; ts 1183 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c writel((u32 __force)PCI_D3hot, ts->ep_pmstate); ts 1186 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c TOPAZ_LH_IPC4_INT(ts->base.sysctl_bar)); ts 1197 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_pcie_topaz_state *ts = get_bus_priv(bus); ts 1198 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct pci_dev *pdev = ts->base.pdev; ts 1204 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c writel((u32 __force)PCI_D0, ts->ep_pmstate); ts 1207 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c TOPAZ_LH_IPC4_INT(ts->base.sysctl_bar)); ts 1216 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_pcie_topaz_state *ts; ts 1218 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c bus = devm_kzalloc(&pdev->dev, sizeof(*bus) + sizeof(*ts), GFP_KERNEL); ts 1222 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c ts = get_bus_priv(bus); ts 1223 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c ts->base.probe_cb = qtnf_pcie_topaz_probe; ts 1224 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c ts->base.remove_cb = qtnf_pcie_topaz_remove; ts 1225 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c ts->base.dma_mask_get_cb = qtnf_topaz_dma_mask_get; ts 1227 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c ts->base.resume_cb = qtnf_pcie_topaz_resume; ts 1228 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c ts->base.suspend_cb = qtnf_pcie_topaz_suspend; ts 2216 drivers/nvme/host/core.c __le64 ts; ts 2222 drivers/nvme/host/core.c ts = cpu_to_le64(ktime_to_ms(ktime_get_real())); ts 2223 drivers/nvme/host/core.c ret = nvme_set_features(ctrl, NVME_FEAT_TIMESTAMP, 0, &ts, sizeof(ts), ts 48 drivers/pps/clients/pps-gpio.c struct pps_event_time ts; ts 52 drivers/pps/clients/pps-gpio.c pps_get_ts(&ts); ts 59 drivers/pps/clients/pps-gpio.c pps_event(info->pps, &ts, PPS_CAPTUREASSERT, data); ts 63 drivers/pps/clients/pps-gpio.c pps_event(info->pps, &ts, PPS_CAPTURECLEAR, data); ts 30 drivers/pps/clients/pps-ktimer.c struct pps_event_time ts; ts 33 drivers/pps/clients/pps-ktimer.c pps_get_ts(&ts); ts 35 drivers/pps/clients/pps-ktimer.c pps_event(pps, &ts, PPS_CAPTUREASSERT, NULL); ts 21 drivers/pps/clients/pps-ldisc.c struct pps_event_time ts; ts 23 drivers/pps/clients/pps-ldisc.c pps_get_ts(&ts); ts 34 drivers/pps/clients/pps-ldisc.c pps_event(pps, &ts, status ? PPS_CAPTUREASSERT : ts 169 drivers/pps/generators/pps_gen_parport.c struct timespec64 ts; ts 171 drivers/pps/generators/pps_gen_parport.c ktime_get_real_ts64(&ts); ts 173 drivers/pps/generators/pps_gen_parport.c return ktime_set(ts.tv_sec + ts 174 drivers/pps/generators/pps_gen_parport.c ((ts.tv_nsec > 990 * NSEC_PER_MSEC) ? 1 : 0), ts 27 drivers/pps/kapi.c static void pps_add_offset(struct pps_ktime *ts, struct pps_ktime *offset) ts 29 drivers/pps/kapi.c ts->nsec += offset->nsec; ts 30 drivers/pps/kapi.c while (ts->nsec >= NSEC_PER_SEC) { ts 31 drivers/pps/kapi.c ts->nsec -= NSEC_PER_SEC; ts 32 drivers/pps/kapi.c ts->sec++; ts 34 drivers/pps/kapi.c while (ts->nsec < 0) { ts 35 drivers/pps/kapi.c ts->nsec += NSEC_PER_SEC; ts 36 drivers/pps/kapi.c ts->sec--; ts 38 drivers/pps/kapi.c ts->sec += offset->sec; ts 159 drivers/pps/kapi.c void pps_event(struct pps_device *pps, struct pps_event_time *ts, int event, ts 170 drivers/pps/kapi.c (s64)ts->ts_real.tv_sec, ts->ts_real.tv_nsec); ts 172 drivers/pps/kapi.c timespec_to_pps_ktime(&ts_real, ts->ts_real); ts 211 drivers/pps/kapi.c pps_kc_event(pps, ts, event); ts 99 drivers/pps/kc.c void pps_kc_event(struct pps_device *pps, struct pps_event_time *ts, ts 107 drivers/pps/kc.c hardpps(&ts->ts_real, &ts->ts_raw); ts 20 drivers/pps/kc.h struct pps_event_time *ts, int event); ts 29 drivers/pps/kc.h struct pps_event_time *ts, int event) {} ts 123 drivers/ptp/ptp_chardev.c struct timespec64 ts; ts 234 drivers/ptp/ptp_chardev.c ts = ktime_to_timespec64(xtstamp.device); ts 235 drivers/ptp/ptp_chardev.c precise_offset.device.sec = ts.tv_sec; ts 236 drivers/ptp/ptp_chardev.c precise_offset.device.nsec = ts.tv_nsec; ts 237 drivers/ptp/ptp_chardev.c ts = ktime_to_timespec64(xtstamp.sys_realtime); ts 238 drivers/ptp/ptp_chardev.c precise_offset.sys_realtime.sec = ts.tv_sec; ts 239 drivers/ptp/ptp_chardev.c precise_offset.sys_realtime.nsec = ts.tv_nsec; ts 240 drivers/ptp/ptp_chardev.c ts = ktime_to_timespec64(xtstamp.sys_monoraw); ts 241 drivers/ptp/ptp_chardev.c precise_offset.sys_monoraw.sec = ts.tv_sec; ts 242 drivers/ptp/ptp_chardev.c precise_offset.sys_monoraw.nsec = ts.tv_nsec; ts 266 drivers/ptp/ptp_chardev.c err = ptp->info->gettimex64(ptp->info, &ts, &sts); ts 269 drivers/ptp/ptp_chardev.c extoff->ts[i][0].sec = sts.pre_ts.tv_sec; ts 270 drivers/ptp/ptp_chardev.c extoff->ts[i][0].nsec = sts.pre_ts.tv_nsec; ts 271 drivers/ptp/ptp_chardev.c extoff->ts[i][1].sec = ts.tv_sec; ts 272 drivers/ptp/ptp_chardev.c extoff->ts[i][1].nsec = ts.tv_nsec; ts 273 drivers/ptp/ptp_chardev.c extoff->ts[i][2].sec = sts.post_ts.tv_sec; ts 274 drivers/ptp/ptp_chardev.c extoff->ts[i][2].nsec = sts.post_ts.tv_nsec; ts 292 drivers/ptp/ptp_chardev.c pct = &sysoff->ts[0]; ts 294 drivers/ptp/ptp_chardev.c ktime_get_real_ts64(&ts); ts 295 drivers/ptp/ptp_chardev.c pct->sec = ts.tv_sec; ts 296 drivers/ptp/ptp_chardev.c pct->nsec = ts.tv_nsec; ts 299 drivers/ptp/ptp_chardev.c err = ops->gettimex64(ops, &ts, NULL); ts 301 drivers/ptp/ptp_chardev.c err = ops->gettime64(ops, &ts); ts 304 drivers/ptp/ptp_chardev.c pct->sec = ts.tv_sec; ts 305 drivers/ptp/ptp_chardev.c pct->nsec = ts.tv_nsec; ts 308 drivers/ptp/ptp_chardev.c ktime_get_real_ts64(&ts); ts 309 drivers/ptp/ptp_chardev.c pct->sec = ts.tv_sec; ts 310 drivers/ptp/ptp_chardev.c pct->nsec = ts.tv_nsec; ts 124 drivers/ptp/ptp_clock.c struct timespec64 ts; ts 128 drivers/ptp/ptp_clock.c ts.tv_sec = tx->time.tv_sec; ts 129 drivers/ptp/ptp_clock.c ts.tv_nsec = tx->time.tv_usec; ts 132 drivers/ptp/ptp_clock.c ts.tv_nsec *= 1000; ts 134 drivers/ptp/ptp_clock.c if ((unsigned long) ts.tv_nsec >= NSEC_PER_SEC) ts 137 drivers/ptp/ptp_clock.c kt = timespec64_to_ktime(ts); ts 182 drivers/ptp/ptp_dte.c static int ptp_dte_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) ts 188 drivers/ptp/ptp_dte.c *ts = ns_to_timespec64(dte_read_nco_with_ovf(ptp_dte)); ts 195 drivers/ptp/ptp_dte.c const struct timespec64 *ts) ts 205 drivers/ptp/ptp_dte.c dte_write_nco(ptp_dte->regs, timespec64_to_ns(ts)); ts 165 drivers/ptp/ptp_ixp46x.c static int ptp_ixp_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) ts 178 drivers/ptp/ptp_ixp46x.c *ts = ns_to_timespec64(ns); ts 183 drivers/ptp/ptp_ixp46x.c const struct timespec64 *ts) ts 190 drivers/ptp/ptp_ixp46x.c ns = timespec64_to_ns(ts); ts 107 drivers/ptp/ptp_kvm.c const struct timespec64 *ts) ts 112 drivers/ptp/ptp_kvm.c static int ptp_kvm_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) ts 132 drivers/ptp/ptp_kvm.c memcpy(ts, &tspec, sizeof(struct timespec64)); ts 440 drivers/ptp/ptp_pch.c static int ptp_pch_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) ts 451 drivers/ptp/ptp_pch.c *ts = ns_to_timespec64(ns); ts 456 drivers/ptp/ptp_pch.c const struct timespec64 *ts) ts 463 drivers/ptp/ptp_pch.c ns = timespec64_to_ns(ts); ts 244 drivers/ptp/ptp_qoriq.c int ptp_qoriq_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) ts 256 drivers/ptp/ptp_qoriq.c *ts = ns_to_timespec64(ns); ts 263 drivers/ptp/ptp_qoriq.c const struct timespec64 *ts) ts 269 drivers/ptp/ptp_qoriq.c ns = timespec64_to_ns(ts); ts 136 drivers/rtc/lib.c struct timespec64 ts; ts 139 drivers/rtc/lib.c ts = ktime_to_timespec64(kt); ts 141 drivers/rtc/lib.c if (ts.tv_nsec) ts 142 drivers/rtc/lib.c ts.tv_sec++; ts 143 drivers/rtc/lib.c rtc_time64_to_tm(ts.tv_sec, &ret); ts 299 drivers/s390/block/dasd_eer.c struct timespec64 ts; ts 313 drivers/s390/block/dasd_eer.c ktime_get_real_ts64(&ts); ts 314 drivers/s390/block/dasd_eer.c header.tv_sec = ts.tv_sec; ts 315 drivers/s390/block/dasd_eer.c header.tv_usec = ts.tv_nsec / NSEC_PER_USEC; ts 343 drivers/s390/block/dasd_eer.c struct timespec64 ts; ts 356 drivers/s390/block/dasd_eer.c ktime_get_real_ts64(&ts); ts 357 drivers/s390/block/dasd_eer.c header.tv_sec = ts.tv_sec; ts 358 drivers/s390/block/dasd_eer.c header.tv_usec = ts.tv_nsec / NSEC_PER_USEC; ts 1322 drivers/s390/net/qeth_core_main.c struct task_struct *ts; ts 1331 drivers/s390/net/qeth_core_main.c ts = kthread_run(card->discipline->recover, (void *)card, ts 1333 drivers/s390/net/qeth_core_main.c if (IS_ERR(ts)) { ts 226 drivers/s390/scsi/zfcp_fc.c zfcp_fc_wka_port_force_offline(&gs->ts); ts 979 drivers/s390/scsi/zfcp_fc.c return &adapter->gs->ts; ts 1092 drivers/s390/scsi/zfcp_fc.c zfcp_fc_wka_port_init(&wka_ports->ts, FC_FID_TIME_SERV, adapter); ts 216 drivers/s390/scsi/zfcp_fc.h struct zfcp_fc_wka_port ts; ts 145 drivers/scsi/aic94xx/aic94xx_task.c struct task_status_struct *ts = &task->task_status; ts 169 drivers/scsi/aic94xx/aic94xx_task.c ts->buf_valid_size = 0; ts 176 drivers/scsi/aic94xx/aic94xx_task.c ts->residual = le32_to_cpu(*(__le32 *)r); ts 180 drivers/scsi/aic94xx/aic94xx_task.c struct ata_task_resp *resp = (void *) &ts->buf[0]; ts 182 drivers/scsi/aic94xx/aic94xx_task.c ts->residual = le32_to_cpu(*(__le32 *)r); ts 187 drivers/scsi/aic94xx/aic94xx_task.c ts->buf_valid_size = sizeof(*resp); ts 198 drivers/scsi/aic94xx/aic94xx_task.c struct task_status_struct *ts = &task->task_status; ts 207 drivers/scsi/aic94xx/aic94xx_task.c ts->resp = SAS_TASK_COMPLETE; ts 208 drivers/scsi/aic94xx/aic94xx_task.c ts->stat = SAM_STAT_GOOD; ts 211 drivers/scsi/aic94xx/aic94xx_task.c ts->resp = SAS_TASK_COMPLETE; ts 212 drivers/scsi/aic94xx/aic94xx_task.c ts->stat = SAS_DATA_UNDERRUN; ts 213 drivers/scsi/aic94xx/aic94xx_task.c ts->residual = le32_to_cpu(*(__le32 *)dl->status_block); ts 216 drivers/scsi/aic94xx/aic94xx_task.c ts->resp = SAS_TASK_COMPLETE; ts 217 drivers/scsi/aic94xx/aic94xx_task.c ts->stat = SAS_DATA_OVERRUN; ts 218 drivers/scsi/aic94xx/aic94xx_task.c ts->residual = 0; ts 222 drivers/scsi/aic94xx/aic94xx_task.c ts->resp = SAS_TASK_COMPLETE; ts 223 drivers/scsi/aic94xx/aic94xx_task.c ts->stat = SAS_PROTO_RESPONSE; ts 227 drivers/scsi/aic94xx/aic94xx_task.c ts->resp = SAS_TASK_UNDELIVERED; ts 228 drivers/scsi/aic94xx/aic94xx_task.c ts->stat = SAS_OPEN_REJECT; ts 230 drivers/scsi/aic94xx/aic94xx_task.c ts->open_rej_reason = 1 + dl->status_block[2]; ts 232 drivers/scsi/aic94xx/aic94xx_task.c ts->open_rej_reason = (dl->status_block[2] >> 4)+10; ts 234 drivers/scsi/aic94xx/aic94xx_task.c ts->open_rej_reason = SAS_OREJ_UNKNOWN; ts 237 drivers/scsi/aic94xx/aic94xx_task.c ts->resp = SAS_TASK_UNDELIVERED; ts 238 drivers/scsi/aic94xx/aic94xx_task.c ts->stat = SAS_OPEN_TO; ts 242 drivers/scsi/aic94xx/aic94xx_task.c ts->resp = SAS_TASK_UNDELIVERED; ts 243 drivers/scsi/aic94xx/aic94xx_task.c ts->stat = SAS_PHY_DOWN; ts 246 drivers/scsi/aic94xx/aic94xx_task.c ts->resp = SAS_TASK_COMPLETE; ts 247 drivers/scsi/aic94xx/aic94xx_task.c ts->stat = SAS_PHY_DOWN; ts 255 drivers/scsi/aic94xx/aic94xx_task.c ts->resp = SAS_TASK_COMPLETE; ts 256 drivers/scsi/aic94xx/aic94xx_task.c ts->stat = SAS_INTERRUPTED; ts 262 drivers/scsi/aic94xx/aic94xx_task.c ts->resp = SAS_TASK_UNDELIVERED; ts 263 drivers/scsi/aic94xx/aic94xx_task.c ts->stat = SAS_DEV_NO_RESPONSE; ts 266 drivers/scsi/aic94xx/aic94xx_task.c ts->resp = SAS_TASK_COMPLETE; ts 267 drivers/scsi/aic94xx/aic94xx_task.c ts->stat = SAS_NAK_R_ERR; ts 274 drivers/scsi/aic94xx/aic94xx_task.c ts->resp = SAS_TASK_UNDELIVERED; ts 275 drivers/scsi/aic94xx/aic94xx_task.c ts->stat = SAS_DEVICE_UNKNOWN; ts 278 drivers/scsi/aic94xx/aic94xx_task.c ts->resp = SAS_TASK_UNDELIVERED; ts 279 drivers/scsi/aic94xx/aic94xx_task.c ts->stat = SAS_PENDING; ts 283 drivers/scsi/aic94xx/aic94xx_task.c ts->resp = SAS_TASK_COMPLETE; ts 284 drivers/scsi/aic94xx/aic94xx_task.c ts->stat = SAS_ABORTED_TASK; ts 296 drivers/scsi/aic94xx/aic94xx_task.c ts->resp = SAS_TASK_UNDELIVERED; ts 297 drivers/scsi/aic94xx/aic94xx_task.c ts->stat = SAS_DEV_NO_RESPONSE; ts 332 drivers/scsi/aic94xx/aic94xx_task.c task, opcode, ts->resp, ts->stat); ts 30 drivers/scsi/bfa/bfa_cs.h struct timespec64 ts; \ ts 32 drivers/scsi/bfa/bfa_cs.h ktime_get_ts64(&ts); \ ts 33 drivers/scsi/bfa/bfa_cs.h (ts.tv_sec*1000000+ts.tv_nsec / 1000); \ ts 140 drivers/scsi/bfa/bfad_im.h struct timespec64 ts; ts 142 drivers/scsi/bfa/bfad_im.h ktime_get_real_ts64(&ts); ts 148 drivers/scsi/bfa/bfad_im.h entry->aen_tv_sec = ts.tv_sec; ts 149 drivers/scsi/bfa/bfad_im.h entry->aen_tv_usec = ts.tv_nsec / NSEC_PER_USEC; ts 107 drivers/scsi/hisi_sas/hisi_sas_main.c struct task_status_struct *ts = &task->task_status; ts 108 drivers/scsi/hisi_sas/hisi_sas_main.c struct ata_task_resp *resp = (struct ata_task_resp *)ts->buf; ts 117 drivers/scsi/hisi_sas/hisi_sas_main.c ts->buf_valid_size = sizeof(*resp); ts 573 drivers/scsi/hisi_sas/hisi_sas_main.c struct task_status_struct *ts = &task->task_status; ts 575 drivers/scsi/hisi_sas/hisi_sas_main.c ts->resp = SAS_TASK_UNDELIVERED; ts 576 drivers/scsi/hisi_sas/hisi_sas_main.c ts->stat = SAS_PHY_DOWN; ts 997 drivers/scsi/hisi_sas/hisi_sas_main.c struct task_status_struct *ts; ts 999 drivers/scsi/hisi_sas/hisi_sas_main.c ts = &task->task_status; ts 1001 drivers/scsi/hisi_sas/hisi_sas_main.c ts->resp = SAS_TASK_COMPLETE; ts 1002 drivers/scsi/hisi_sas/hisi_sas_main.c ts->stat = SAS_ABORTED_TASK; ts 1052 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c struct task_status_struct *ts = &task->task_status; ts 1095 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c ts->residual = 0; ts 1096 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c ts->stat = SAS_DATA_UNDERRUN; ts 1106 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c ts->stat = SAS_DATA_OVERRUN; ts 1107 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c ts->residual = 0; ts 1112 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c ts->stat = SAS_PHY_DOWN; ts 1128 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c ts->stat = SAS_OPEN_REJECT; ts 1129 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c ts->open_rej_reason = SAS_OREJ_UNKNOWN; ts 1134 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c ts->stat = SAS_OPEN_TO; ts 1140 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c ts->stat = SAS_NAK_R_ERR; ts 1147 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c ts->stat = SAS_QUEUE_FULL; ts 1153 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c ts->stat = SAM_STAT_CHECK_CONDITION; ts 1160 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c ts->stat = SAM_STAT_CHECK_CONDITION; ts 1182 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c struct task_status_struct *ts; ts 1197 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c ts = &task->task_status; ts 1207 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c memset(ts, 0, sizeof(*ts)); ts 1208 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c ts->resp = SAS_TASK_COMPLETE; ts 1212 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c ts->stat = SAS_PHY_DOWN; ts 1251 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c ts->stat = SAS_OPEN_REJECT; ts 1252 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c ts->open_rej_reason = SAS_OREJ_UNKNOWN; ts 1261 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c return ts->stat; ts 1281 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c ts->stat = SAM_STAT_GOOD; ts 1298 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c ts->stat = SAM_STAT_CHECK_CONDITION; ts 1305 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c ts->stat = SAS_PHY_DOWN; ts 1310 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c sts = ts->stat; ts 2016 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c struct task_status_struct *ts = &task->task_status; ts 2050 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ts->stat = SAS_OPEN_REJECT; ts 2051 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ts->open_rej_reason = SAS_OREJ_NO_DEST; ts 2056 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ts->stat = SAS_OPEN_REJECT; ts 2057 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ts->open_rej_reason = SAS_OREJ_EPROTO; ts 2062 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ts->stat = SAS_OPEN_REJECT; ts 2063 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ts->open_rej_reason = SAS_OREJ_CONN_RATE; ts 2068 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ts->stat = SAS_OPEN_REJECT; ts 2069 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ts->open_rej_reason = SAS_OREJ_BAD_DEST; ts 2074 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ts->stat = SAS_OPEN_REJECT; ts 2075 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ts->open_rej_reason = SAS_OREJ_WRONG_DEST; ts 2082 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ts->stat = SAS_OPEN_REJECT; ts 2083 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ts->open_rej_reason = SAS_OREJ_UNKNOWN; ts 2089 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ts->stat = SAS_DEV_NO_RESPONSE; ts 2094 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ts->stat = SAS_DATA_OVERRUN; ts 2095 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ts->residual = 0; ts 2100 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ts->residual = trans_tx_fail_type; ts 2101 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ts->stat = SAS_DATA_UNDERRUN; ts 2156 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ts->stat = SAS_QUEUE_FULL; ts 2166 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ts->stat = SAM_STAT_CHECK_CONDITION; ts 2176 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ts->stat = SAS_OPEN_REJECT; ts 2177 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ts->open_rej_reason = SAS_OREJ_NO_DEST; ts 2182 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ts->resp = SAS_TASK_UNDELIVERED; ts 2183 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ts->stat = SAS_DEV_NO_RESPONSE; ts 2188 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ts->stat = SAS_OPEN_REJECT; ts 2189 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ts->open_rej_reason = SAS_OREJ_EPROTO; ts 2194 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ts->stat = SAS_OPEN_REJECT; ts 2195 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ts->open_rej_reason = SAS_OREJ_CONN_RATE; ts 2200 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ts->stat = SAS_OPEN_REJECT; ts 2201 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ts->open_rej_reason = SAS_OREJ_CONN_RATE; ts 2206 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ts->stat = SAS_OPEN_REJECT; ts 2207 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ts->open_rej_reason = SAS_OREJ_WRONG_DEST; ts 2214 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ts->stat = SAS_OPEN_REJECT; ts 2215 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ts->open_rej_reason = SAS_OREJ_UNKNOWN; ts 2220 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ts->stat = SAS_DATA_OVERRUN; ts 2221 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ts->residual = 0; ts 2226 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ts->residual = trans_tx_fail_type; ts 2227 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ts->stat = SAS_DATA_UNDERRUN; ts 2299 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ts->stat = SAS_PHY_DOWN; ts 2304 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ts->stat = SAS_PROTO_RESPONSE; ts 2322 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c struct task_status_struct *ts; ts 2337 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ts = &task->task_status; ts 2347 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c memset(ts, 0, sizeof(*ts)); ts 2348 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ts->resp = SAS_TASK_COMPLETE; ts 2352 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ts->stat = SAS_PHY_DOWN; ts 2362 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ts->stat = SAS_ABORTED_TASK; ts 2366 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ts->stat = TMF_RESP_FUNC_SUCC; ts 2370 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ts->stat = TMF_RESP_FUNC_COMPLETE; ts 2377 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ts->stat = TMF_RESP_FUNC_FAILED; ts 2395 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c if (ts->stat != SAS_DATA_UNDERRUN) ts 2404 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c return ts->stat; ts 2424 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ts->stat = SAM_STAT_GOOD; ts 2438 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ts->stat = SAM_STAT_GOOD; ts 2443 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ts->stat = SAM_STAT_CHECK_CONDITION; ts 2450 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ts->stat = SAS_PHY_DOWN; ts 2454 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c sts = ts->stat; ts 2092 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c struct task_status_struct *ts = &task->task_status; ts 2106 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c ts->residual = trans_tx_fail_type; ts 2107 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c ts->stat = SAS_DATA_UNDERRUN; ts 2109 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c ts->stat = SAS_QUEUE_FULL; ts 2112 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c ts->stat = SAS_OPEN_REJECT; ts 2113 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c ts->open_rej_reason = SAS_OREJ_RSVD_RETRY; ts 2120 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c ts->residual = trans_tx_fail_type; ts 2121 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c ts->stat = SAS_DATA_UNDERRUN; ts 2123 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c ts->stat = SAS_PHY_DOWN; ts 2126 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c ts->stat = SAS_OPEN_REJECT; ts 2127 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c ts->open_rej_reason = SAS_OREJ_RSVD_RETRY; ts 2132 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c ts->stat = SAM_STAT_CHECK_CONDITION; ts 2145 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c struct task_status_struct *ts; ts 2160 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c ts = &task->task_status; ts 2170 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c memset(ts, 0, sizeof(*ts)); ts 2171 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c ts->resp = SAS_TASK_COMPLETE; ts 2175 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c ts->stat = SAS_PHY_DOWN; ts 2189 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c ts->stat = SAS_ABORTED_TASK; ts 2193 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c ts->stat = TMF_RESP_FUNC_SUCC; ts 2196 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c ts->stat = TMF_RESP_FUNC_COMPLETE; ts 2202 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c ts->stat = TMF_RESP_FUNC_FAILED; ts 2213 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c if (ts->stat != SAS_DATA_UNDERRUN) ts 2220 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c return ts->stat; ts 2237 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c ts->stat = SAM_STAT_GOOD; ts 2250 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c ts->stat = SAM_STAT_GOOD; ts 2254 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c ts->stat = SAM_STAT_CHECK_CONDITION; ts 2261 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c ts->stat = SAS_PHY_DOWN; ts 2265 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c sts = ts->stat; ts 2719 drivers/scsi/isci/request.c struct task_status_struct *ts = &task->task_status; ts 2720 drivers/scsi/isci/request.c struct ata_task_resp *resp = (void *)&ts->buf[0]; ts 2724 drivers/scsi/isci/request.c ts->buf_valid_size = sizeof(*resp); ts 2728 drivers/scsi/isci/request.c ts->stat = SAS_PROTO_RESPONSE; ts 2730 drivers/scsi/isci/request.c ts->stat = SAM_STAT_GOOD; ts 2732 drivers/scsi/isci/request.c ts->resp = SAS_TASK_COMPLETE; ts 27 drivers/scsi/libsas/sas_ata.c static enum ata_completion_errors sas_to_ata_err(struct task_status_struct *ts) ts 32 drivers/scsi/libsas/sas_ata.c if (ts->resp == SAS_TASK_UNDELIVERED) ts 37 drivers/scsi/libsas/sas_ata.c switch (ts->stat) { ts 65 drivers/scsi/libsas/sas_ata.c __func__, ts->stat); ts 39 drivers/scsi/libsas/sas_scsi_host.c struct task_status_struct *ts = &task->task_status; ts 42 drivers/scsi/libsas/sas_scsi_host.c if (ts->resp == SAS_TASK_UNDELIVERED) { ts 47 drivers/scsi/libsas/sas_scsi_host.c switch (ts->stat) { ts 56 drivers/scsi/libsas/sas_scsi_host.c scsi_set_resid(sc, ts->residual); ts 73 drivers/scsi/libsas/sas_scsi_host.c if (ts->open_rej_reason == SAS_OREJ_RSVD_RETRY) ts 86 drivers/scsi/libsas/sas_scsi_host.c memcpy(sc->sense_buffer, ts->buf, ts 87 drivers/scsi/libsas/sas_scsi_host.c min(SCSI_SENSE_BUFFERSIZE, ts->buf_valid_size)); ts 91 drivers/scsi/libsas/sas_scsi_host.c stat = ts->stat; ts 733 drivers/scsi/mvsas/mv_sas.c struct task_status_struct *ts = &task->task_status; ts 736 drivers/scsi/mvsas/mv_sas.c ts->resp = SAS_TASK_COMPLETE; ts 737 drivers/scsi/mvsas/mv_sas.c ts->stat = SAS_PHY_DOWN; ts 742 drivers/scsi/mvsas/mv_sas.c struct task_status_struct *ts = &task->task_status; ts 745 drivers/scsi/mvsas/mv_sas.c ts->resp = SAS_TASK_UNDELIVERED; ts 746 drivers/scsi/mvsas/mv_sas.c ts->stat = SAS_PHY_DOWN; ts 1529 drivers/scsi/pm8001/pm8001_hwi.c struct task_status_struct *ts; ts 1555 drivers/scsi/pm8001/pm8001_hwi.c ts = &t->task_status; ts 1556 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1558 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_QUEUE_FULL; ts 1571 drivers/scsi/pm8001/pm8001_hwi.c t, pw->handler, ts->resp, ts->stat)); ts 1863 drivers/scsi/pm8001/pm8001_hwi.c struct task_status_struct *ts; ts 1885 drivers/scsi/pm8001/pm8001_hwi.c ts = &t->task_status; ts 1898 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1899 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAM_STAT_GOOD; ts 1901 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1902 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_PROTO_RESPONSE; ts 1903 drivers/scsi/pm8001/pm8001_hwi.c ts->residual = param; ts 1913 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1914 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_ABORTED_TASK; ts 1920 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1921 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_DATA_UNDERRUN; ts 1922 drivers/scsi/pm8001/pm8001_hwi.c ts->residual = param; ts 1929 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_UNDELIVERED; ts 1930 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_PHY_DOWN; ts 1935 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1936 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 1938 drivers/scsi/pm8001/pm8001_hwi.c ts->open_rej_reason = SAS_OREJ_RSVD_RETRY; ts 1943 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1944 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 1945 drivers/scsi/pm8001/pm8001_hwi.c ts->open_rej_reason = SAS_OREJ_RSVD_RETRY; ts 1950 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1951 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 1952 drivers/scsi/pm8001/pm8001_hwi.c ts->open_rej_reason = SAS_OREJ_EPROTO; ts 1957 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1958 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 1959 drivers/scsi/pm8001/pm8001_hwi.c ts->open_rej_reason = SAS_OREJ_UNKNOWN; ts 1964 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1965 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 1966 drivers/scsi/pm8001/pm8001_hwi.c ts->open_rej_reason = SAS_OREJ_RSVD_RETRY; ts 1971 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1972 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 1973 drivers/scsi/pm8001/pm8001_hwi.c ts->open_rej_reason = SAS_OREJ_UNKNOWN; ts 1982 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1983 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 1984 drivers/scsi/pm8001/pm8001_hwi.c ts->open_rej_reason = SAS_OREJ_BAD_DEST; ts 1990 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1991 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 1992 drivers/scsi/pm8001/pm8001_hwi.c ts->open_rej_reason = SAS_OREJ_CONN_RATE; ts 1997 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_UNDELIVERED; ts 1998 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 1999 drivers/scsi/pm8001/pm8001_hwi.c ts->open_rej_reason = SAS_OREJ_WRONG_DEST; ts 2004 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2005 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2006 drivers/scsi/pm8001/pm8001_hwi.c ts->open_rej_reason = SAS_OREJ_RSVD_RETRY; ts 2011 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2012 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_NAK_R_ERR; ts 2017 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2018 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2023 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2024 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2025 drivers/scsi/pm8001/pm8001_hwi.c ts->open_rej_reason = SAS_OREJ_RSVD_RETRY; ts 2030 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2031 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2036 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2037 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2042 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2043 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2052 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2053 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2058 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2059 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2064 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2065 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2070 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2071 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2072 drivers/scsi/pm8001/pm8001_hwi.c ts->open_rej_reason = SAS_OREJ_RSVD_RETRY; ts 2078 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2079 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2094 drivers/scsi/pm8001/pm8001_hwi.c t, status, ts->resp, ts->stat)); ts 2109 drivers/scsi/pm8001/pm8001_hwi.c struct task_status_struct *ts; ts 2127 drivers/scsi/pm8001/pm8001_hwi.c ts = &t->task_status; ts 2134 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2135 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_DATA_OVERRUN; ts 2136 drivers/scsi/pm8001/pm8001_hwi.c ts->residual = 0; ts 2148 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2149 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2150 drivers/scsi/pm8001/pm8001_hwi.c ts->open_rej_reason = SAS_OREJ_RSVD_RETRY; ts 2156 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2157 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2158 drivers/scsi/pm8001/pm8001_hwi.c ts->open_rej_reason = SAS_OREJ_EPROTO; ts 2163 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2164 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2165 drivers/scsi/pm8001/pm8001_hwi.c ts->open_rej_reason = SAS_OREJ_UNKNOWN; ts 2170 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2171 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2172 drivers/scsi/pm8001/pm8001_hwi.c ts->open_rej_reason = SAS_OREJ_RSVD_RETRY; ts 2177 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2178 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2179 drivers/scsi/pm8001/pm8001_hwi.c ts->open_rej_reason = SAS_OREJ_UNKNOWN; ts 2188 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2189 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2190 drivers/scsi/pm8001/pm8001_hwi.c ts->open_rej_reason = SAS_OREJ_BAD_DEST; ts 2196 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2197 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2198 drivers/scsi/pm8001/pm8001_hwi.c ts->open_rej_reason = SAS_OREJ_CONN_RATE; ts 2203 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2204 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2205 drivers/scsi/pm8001/pm8001_hwi.c ts->open_rej_reason = SAS_OREJ_WRONG_DEST; ts 2210 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2211 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2212 drivers/scsi/pm8001/pm8001_hwi.c ts->open_rej_reason = SAS_OREJ_RSVD_RETRY; ts 2217 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2218 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_NAK_R_ERR; ts 2228 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2229 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_DATA_OVERRUN; ts 2234 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2235 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_DATA_OVERRUN; ts 2240 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2241 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_DATA_OVERRUN; ts 2246 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2247 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_DATA_OVERRUN; ts 2252 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2253 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_DATA_OVERRUN; ts 2258 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2259 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_DATA_OVERRUN; ts 2269 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2270 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_DATA_OVERRUN; ts 2282 drivers/scsi/pm8001/pm8001_hwi.c t, event, ts->resp, ts->stat)); ts 2307 drivers/scsi/pm8001/pm8001_hwi.c struct task_status_struct *ts; ts 2349 drivers/scsi/pm8001/pm8001_hwi.c ts = &t->task_status; ts 2350 drivers/scsi/pm8001/pm8001_hwi.c if (!ts) { ts 2399 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2400 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAM_STAT_GOOD; ts 2416 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2417 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_PROTO_RESPONSE; ts 2418 drivers/scsi/pm8001/pm8001_hwi.c ts->residual = param; ts 2423 drivers/scsi/pm8001/pm8001_hwi.c resp = (struct ata_task_resp *)ts->buf; ts 2441 drivers/scsi/pm8001/pm8001_hwi.c ts->buf_valid_size = sizeof(*resp); ts 2452 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2453 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_ABORTED_TASK; ts 2462 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2463 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_DATA_UNDERRUN; ts 2464 drivers/scsi/pm8001/pm8001_hwi.c ts->residual = param; ts 2471 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_UNDELIVERED; ts 2472 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_PHY_DOWN; ts 2477 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2478 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_INTERRUPTED; ts 2483 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2484 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2485 drivers/scsi/pm8001/pm8001_hwi.c ts->open_rej_reason = SAS_OREJ_RSVD_RETRY; ts 2491 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2492 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2493 drivers/scsi/pm8001/pm8001_hwi.c ts->open_rej_reason = SAS_OREJ_EPROTO; ts 2498 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2499 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2500 drivers/scsi/pm8001/pm8001_hwi.c ts->open_rej_reason = SAS_OREJ_UNKNOWN; ts 2505 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2506 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2507 drivers/scsi/pm8001/pm8001_hwi.c ts->open_rej_reason = SAS_OREJ_RSVD_CONT0; ts 2512 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2513 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_DEV_NO_RESPONSE; ts 2518 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_UNDELIVERED; ts 2519 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_QUEUE_FULL; ts 2527 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_UNDELIVERED; ts 2528 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2529 drivers/scsi/pm8001/pm8001_hwi.c ts->open_rej_reason = SAS_OREJ_BAD_DEST; ts 2534 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_UNDELIVERED; ts 2535 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_QUEUE_FULL; ts 2544 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2545 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2546 drivers/scsi/pm8001/pm8001_hwi.c ts->open_rej_reason = SAS_OREJ_CONN_RATE; ts 2552 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2553 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_DEV_NO_RESPONSE; ts 2558 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_UNDELIVERED; ts 2559 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_QUEUE_FULL; ts 2567 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2568 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2569 drivers/scsi/pm8001/pm8001_hwi.c ts->open_rej_reason = SAS_OREJ_WRONG_DEST; ts 2574 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2575 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_NAK_R_ERR; ts 2580 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2581 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_NAK_R_ERR; ts 2586 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2587 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_ABORTED_TASK; ts 2592 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_UNDELIVERED; ts 2593 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_DEV_NO_RESPONSE; ts 2598 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2599 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_DATA_UNDERRUN; ts 2604 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2605 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_TO; ts 2610 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2611 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_DEV_NO_RESPONSE; ts 2616 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2617 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_DEV_NO_RESPONSE; ts 2621 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_UNDELIVERED; ts 2622 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_QUEUE_FULL; ts 2630 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2631 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_DEV_NO_RESPONSE; ts 2636 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2637 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_DEV_NO_RESPONSE; ts 2641 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_UNDELIVERED; ts 2642 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_QUEUE_FULL; ts 2650 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2651 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2652 drivers/scsi/pm8001/pm8001_hwi.c ts->open_rej_reason = SAS_OREJ_RSVD_RETRY; ts 2658 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2659 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_DEV_NO_RESPONSE; ts 2671 drivers/scsi/pm8001/pm8001_hwi.c t, status, ts->resp, ts->stat)); ts 2683 drivers/scsi/pm8001/pm8001_hwi.c struct task_status_struct *ts; ts 2725 drivers/scsi/pm8001/pm8001_hwi.c ts = &t->task_status; ts 2732 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2733 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_DATA_OVERRUN; ts 2734 drivers/scsi/pm8001/pm8001_hwi.c ts->residual = 0; ts 2741 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2742 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_INTERRUPTED; ts 2747 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2748 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2749 drivers/scsi/pm8001/pm8001_hwi.c ts->open_rej_reason = SAS_OREJ_RSVD_RETRY; ts 2755 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2756 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2757 drivers/scsi/pm8001/pm8001_hwi.c ts->open_rej_reason = SAS_OREJ_EPROTO; ts 2762 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2763 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2764 drivers/scsi/pm8001/pm8001_hwi.c ts->open_rej_reason = SAS_OREJ_UNKNOWN; ts 2769 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2770 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2771 drivers/scsi/pm8001/pm8001_hwi.c ts->open_rej_reason = SAS_OREJ_RSVD_CONT0; ts 2776 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_UNDELIVERED; ts 2777 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_DEV_NO_RESPONSE; ts 2782 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2783 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_QUEUE_FULL; ts 2791 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_UNDELIVERED; ts 2792 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2793 drivers/scsi/pm8001/pm8001_hwi.c ts->open_rej_reason = SAS_OREJ_BAD_DEST; ts 2799 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2800 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2801 drivers/scsi/pm8001/pm8001_hwi.c ts->open_rej_reason = SAS_OREJ_CONN_RATE; ts 2806 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2807 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2808 drivers/scsi/pm8001/pm8001_hwi.c ts->open_rej_reason = SAS_OREJ_WRONG_DEST; ts 2813 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2814 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_NAK_R_ERR; ts 2819 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2820 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_NAK_R_ERR; ts 2825 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2826 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_DATA_UNDERRUN; ts 2831 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2832 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_TO; ts 2837 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2838 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_TO; ts 2843 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2844 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_TO; ts 2849 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2850 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_TO; ts 2855 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2856 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_TO; ts 2861 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2862 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_TO; ts 2871 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2872 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_TO; ts 2878 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2879 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_TO; ts 2891 drivers/scsi/pm8001/pm8001_hwi.c t, event, ts->resp, ts->stat)); ts 2909 drivers/scsi/pm8001/pm8001_hwi.c struct task_status_struct *ts; ts 2918 drivers/scsi/pm8001/pm8001_hwi.c ts = &t->task_status; ts 2929 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2930 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAM_STAT_GOOD; ts 2937 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2938 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_ABORTED_TASK; ts 2944 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2945 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_DATA_OVERRUN; ts 2946 drivers/scsi/pm8001/pm8001_hwi.c ts->residual = 0; ts 2952 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2953 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_PHY_DOWN; ts 2958 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2959 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAM_STAT_BUSY; ts 2964 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2965 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAM_STAT_BUSY; ts 2970 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2971 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAM_STAT_BUSY; ts 2976 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2977 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2978 drivers/scsi/pm8001/pm8001_hwi.c ts->open_rej_reason = SAS_OREJ_UNKNOWN; ts 2983 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2984 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2985 drivers/scsi/pm8001/pm8001_hwi.c ts->open_rej_reason = SAS_OREJ_UNKNOWN; ts 2990 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2991 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2992 drivers/scsi/pm8001/pm8001_hwi.c ts->open_rej_reason = SAS_OREJ_RSVD_CONT0; ts 2997 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2998 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2999 drivers/scsi/pm8001/pm8001_hwi.c ts->open_rej_reason = SAS_OREJ_UNKNOWN; ts 3007 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 3008 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 3009 drivers/scsi/pm8001/pm8001_hwi.c ts->open_rej_reason = SAS_OREJ_BAD_DEST; ts 3015 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 3016 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 3017 drivers/scsi/pm8001/pm8001_hwi.c ts->open_rej_reason = SAS_OREJ_CONN_RATE; ts 3022 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 3023 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 3024 drivers/scsi/pm8001/pm8001_hwi.c ts->open_rej_reason = SAS_OREJ_WRONG_DEST; ts 3029 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 3030 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_DEV_NO_RESPONSE; ts 3035 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 3036 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 3037 drivers/scsi/pm8001/pm8001_hwi.c ts->open_rej_reason = SAS_OREJ_RSVD_RETRY; ts 3042 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 3043 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_QUEUE_FULL; ts 3048 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 3049 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 3050 drivers/scsi/pm8001/pm8001_hwi.c ts->open_rej_reason = SAS_OREJ_RSVD_RETRY; ts 3055 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 3056 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_DEV_NO_RESPONSE; ts 3061 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 3062 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 3063 drivers/scsi/pm8001/pm8001_hwi.c ts->open_rej_reason = SAS_OREJ_RSVD_RETRY; ts 3068 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 3069 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_OPEN_REJECT; ts 3070 drivers/scsi/pm8001/pm8001_hwi.c ts->open_rej_reason = SAS_OREJ_RSVD_RETRY; ts 3075 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 3076 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAS_DEV_NO_RESPONSE; ts 3089 drivers/scsi/pm8001/pm8001_hwi.c t, status, ts->resp, ts->stat)); ts 3727 drivers/scsi/pm8001/pm8001_hwi.c struct task_status_struct *ts; ts 3751 drivers/scsi/pm8001/pm8001_hwi.c ts = &t->task_status; ts 3759 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 3760 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAM_STAT_GOOD; ts 3764 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = TMF_RESP_FUNC_FAILED; ts 4434 drivers/scsi/pm8001/pm8001_hwi.c struct task_status_struct *ts; ts 4437 drivers/scsi/pm8001/pm8001_hwi.c ts = &task->task_status; ts 4440 drivers/scsi/pm8001/pm8001_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 4441 drivers/scsi/pm8001/pm8001_hwi.c ts->stat = SAM_STAT_GOOD; ts 4452 drivers/scsi/pm8001/pm8001_hwi.c "\n", task, ts->resp, ts->stat)); ts 400 drivers/scsi/pm8001/pm8001_sas.c struct task_status_struct *ts = &t->task_status; ts 402 drivers/scsi/pm8001/pm8001_sas.c ts->resp = SAS_TASK_UNDELIVERED; ts 414 drivers/scsi/pm8001/pm8001_sas.c struct task_status_struct *ts = &t->task_status; ts 415 drivers/scsi/pm8001/pm8001_sas.c ts->resp = SAS_TASK_UNDELIVERED; ts 416 drivers/scsi/pm8001/pm8001_sas.c ts->stat = SAS_PHY_DOWN; ts 423 drivers/scsi/pm8001/pm8001_sas.c struct task_status_struct *ts = &t->task_status; ts 424 drivers/scsi/pm8001/pm8001_sas.c ts->resp = SAS_TASK_UNDELIVERED; ts 425 drivers/scsi/pm8001/pm8001_sas.c ts->stat = SAS_PHY_DOWN; ts 938 drivers/scsi/pm8001/pm8001_sas.c struct task_status_struct *ts; ts 963 drivers/scsi/pm8001/pm8001_sas.c ts = &task->task_status; ts 964 drivers/scsi/pm8001/pm8001_sas.c ts->resp = SAS_TASK_COMPLETE; ts 966 drivers/scsi/pm8001/pm8001_sas.c ts->stat = SAS_OPEN_REJECT; ts 967 drivers/scsi/pm8001/pm8001_sas.c ts->open_rej_reason = SAS_OREJ_RSVD_RETRY; ts 1551 drivers/scsi/pm8001/pm80xx_hwi.c struct task_status_struct *ts; ts 1572 drivers/scsi/pm8001/pm80xx_hwi.c ts = &t->task_status; ts 1586 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1587 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAM_STAT_GOOD; ts 1589 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1590 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_PROTO_RESPONSE; ts 1591 drivers/scsi/pm8001/pm80xx_hwi.c ts->residual = param; ts 1601 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1602 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_ABORTED_TASK; ts 1609 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1610 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_DATA_UNDERRUN; ts 1611 drivers/scsi/pm8001/pm80xx_hwi.c ts->residual = param; ts 1618 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_UNDELIVERED; ts 1619 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_PHY_DOWN; ts 1624 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1625 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 1627 drivers/scsi/pm8001/pm80xx_hwi.c ts->open_rej_reason = SAS_OREJ_RSVD_RETRY; ts 1632 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1633 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 1634 drivers/scsi/pm8001/pm80xx_hwi.c ts->open_rej_reason = SAS_OREJ_RSVD_RETRY; ts 1639 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1640 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 1641 drivers/scsi/pm8001/pm80xx_hwi.c ts->open_rej_reason = SAS_OREJ_RSVD_RETRY; ts 1646 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1647 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 1648 drivers/scsi/pm8001/pm80xx_hwi.c ts->open_rej_reason = SAS_OREJ_EPROTO; ts 1653 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1654 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 1655 drivers/scsi/pm8001/pm80xx_hwi.c ts->open_rej_reason = SAS_OREJ_UNKNOWN; ts 1660 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1661 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 1662 drivers/scsi/pm8001/pm80xx_hwi.c ts->open_rej_reason = SAS_OREJ_RSVD_RETRY; ts 1672 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1673 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 1674 drivers/scsi/pm8001/pm80xx_hwi.c ts->open_rej_reason = SAS_OREJ_UNKNOWN; ts 1683 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1684 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 1685 drivers/scsi/pm8001/pm80xx_hwi.c ts->open_rej_reason = SAS_OREJ_BAD_DEST; ts 1690 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1691 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 1692 drivers/scsi/pm8001/pm80xx_hwi.c ts->open_rej_reason = SAS_OREJ_CONN_RATE; ts 1697 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_UNDELIVERED; ts 1698 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 1699 drivers/scsi/pm8001/pm80xx_hwi.c ts->open_rej_reason = SAS_OREJ_WRONG_DEST; ts 1704 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1705 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 1706 drivers/scsi/pm8001/pm80xx_hwi.c ts->open_rej_reason = SAS_OREJ_RSVD_RETRY; ts 1711 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1712 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_NAK_R_ERR; ts 1717 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1718 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 1723 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1724 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 1725 drivers/scsi/pm8001/pm80xx_hwi.c ts->open_rej_reason = SAS_OREJ_RSVD_RETRY; ts 1730 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1731 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 1736 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1737 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 1742 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1743 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 1752 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1753 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 1758 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1759 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 1764 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1765 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 1770 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1771 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 1772 drivers/scsi/pm8001/pm80xx_hwi.c ts->open_rej_reason = SAS_OREJ_RSVD_RETRY; ts 1778 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1779 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 1794 drivers/scsi/pm8001/pm80xx_hwi.c t, status, ts->resp, ts->stat)); ts 1811 drivers/scsi/pm8001/pm80xx_hwi.c struct task_status_struct *ts; ts 1828 drivers/scsi/pm8001/pm80xx_hwi.c ts = &t->task_status; ts 1835 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1836 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_DATA_OVERRUN; ts 1837 drivers/scsi/pm8001/pm80xx_hwi.c ts->residual = 0; ts 1849 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1850 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 1851 drivers/scsi/pm8001/pm80xx_hwi.c ts->open_rej_reason = SAS_OREJ_RSVD_RETRY; ts 1856 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1857 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 1858 drivers/scsi/pm8001/pm80xx_hwi.c ts->open_rej_reason = SAS_OREJ_EPROTO; ts 1863 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1864 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 1865 drivers/scsi/pm8001/pm80xx_hwi.c ts->open_rej_reason = SAS_OREJ_UNKNOWN; ts 1870 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1871 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 1872 drivers/scsi/pm8001/pm80xx_hwi.c ts->open_rej_reason = SAS_OREJ_RSVD_RETRY; ts 1882 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1883 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 1884 drivers/scsi/pm8001/pm80xx_hwi.c ts->open_rej_reason = SAS_OREJ_UNKNOWN; ts 1893 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1894 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 1895 drivers/scsi/pm8001/pm80xx_hwi.c ts->open_rej_reason = SAS_OREJ_BAD_DEST; ts 1900 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1901 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 1902 drivers/scsi/pm8001/pm80xx_hwi.c ts->open_rej_reason = SAS_OREJ_CONN_RATE; ts 1907 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1908 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 1909 drivers/scsi/pm8001/pm80xx_hwi.c ts->open_rej_reason = SAS_OREJ_WRONG_DEST; ts 1914 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1915 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 1916 drivers/scsi/pm8001/pm80xx_hwi.c ts->open_rej_reason = SAS_OREJ_RSVD_RETRY; ts 1921 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1922 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_NAK_R_ERR; ts 1932 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1933 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_DATA_OVERRUN; ts 1938 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1939 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_DATA_OVERRUN; ts 1944 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1945 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_DATA_OVERRUN; ts 1950 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1951 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_DATA_OVERRUN; ts 1956 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1957 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_DATA_OVERRUN; ts 1962 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1963 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_DATA_OVERRUN; ts 1969 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1970 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_DATA_OVERRUN; ts 1980 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 1981 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_DATA_OVERRUN; ts 1993 drivers/scsi/pm8001/pm80xx_hwi.c t, event, ts->resp, ts->stat)); ts 2017 drivers/scsi/pm8001/pm80xx_hwi.c struct task_status_struct *ts; ts 2059 drivers/scsi/pm8001/pm80xx_hwi.c ts = &t->task_status; ts 2060 drivers/scsi/pm8001/pm80xx_hwi.c if (!ts) { ts 2110 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2111 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAM_STAT_GOOD; ts 2127 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2128 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_PROTO_RESPONSE; ts 2129 drivers/scsi/pm8001/pm80xx_hwi.c ts->residual = param; ts 2134 drivers/scsi/pm8001/pm80xx_hwi.c resp = (struct ata_task_resp *)ts->buf; ts 2152 drivers/scsi/pm8001/pm80xx_hwi.c ts->buf_valid_size = sizeof(*resp); ts 2163 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2164 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_ABORTED_TASK; ts 2173 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2174 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_DATA_UNDERRUN; ts 2175 drivers/scsi/pm8001/pm80xx_hwi.c ts->residual = param; ts 2182 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_UNDELIVERED; ts 2183 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_PHY_DOWN; ts 2188 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2189 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_INTERRUPTED; ts 2194 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2195 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2196 drivers/scsi/pm8001/pm80xx_hwi.c ts->open_rej_reason = SAS_OREJ_RSVD_RETRY; ts 2201 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2202 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2203 drivers/scsi/pm8001/pm80xx_hwi.c ts->open_rej_reason = SAS_OREJ_EPROTO; ts 2208 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2209 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2210 drivers/scsi/pm8001/pm80xx_hwi.c ts->open_rej_reason = SAS_OREJ_UNKNOWN; ts 2215 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2216 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2217 drivers/scsi/pm8001/pm80xx_hwi.c ts->open_rej_reason = SAS_OREJ_RSVD_CONT0; ts 2227 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2228 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_DEV_NO_RESPONSE; ts 2233 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_UNDELIVERED; ts 2234 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_QUEUE_FULL; ts 2242 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_UNDELIVERED; ts 2243 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2244 drivers/scsi/pm8001/pm80xx_hwi.c ts->open_rej_reason = SAS_OREJ_BAD_DEST; ts 2249 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_UNDELIVERED; ts 2250 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_QUEUE_FULL; ts 2258 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2259 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2260 drivers/scsi/pm8001/pm80xx_hwi.c ts->open_rej_reason = SAS_OREJ_CONN_RATE; ts 2265 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2266 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_DEV_NO_RESPONSE; ts 2271 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_UNDELIVERED; ts 2272 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_QUEUE_FULL; ts 2280 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2281 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2282 drivers/scsi/pm8001/pm80xx_hwi.c ts->open_rej_reason = SAS_OREJ_WRONG_DEST; ts 2287 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2288 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_NAK_R_ERR; ts 2293 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2294 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_NAK_R_ERR; ts 2299 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2300 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_ABORTED_TASK; ts 2305 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_UNDELIVERED; ts 2306 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_DEV_NO_RESPONSE; ts 2311 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2312 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_DATA_UNDERRUN; ts 2317 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2318 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_TO; ts 2323 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2324 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_DEV_NO_RESPONSE; ts 2329 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2330 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_DEV_NO_RESPONSE; ts 2334 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_UNDELIVERED; ts 2335 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_QUEUE_FULL; ts 2343 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2344 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_DEV_NO_RESPONSE; ts 2349 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2350 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_DEV_NO_RESPONSE; ts 2354 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_UNDELIVERED; ts 2355 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_QUEUE_FULL; ts 2363 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2364 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2365 drivers/scsi/pm8001/pm80xx_hwi.c ts->open_rej_reason = SAS_OREJ_RSVD_RETRY; ts 2371 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2372 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_DEV_NO_RESPONSE; ts 2384 drivers/scsi/pm8001/pm80xx_hwi.c t, status, ts->resp, ts->stat)); ts 2398 drivers/scsi/pm8001/pm80xx_hwi.c struct task_status_struct *ts; ts 2439 drivers/scsi/pm8001/pm80xx_hwi.c ts = &t->task_status; ts 2446 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2447 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_DATA_OVERRUN; ts 2448 drivers/scsi/pm8001/pm80xx_hwi.c ts->residual = 0; ts 2455 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2456 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_INTERRUPTED; ts 2461 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2462 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2463 drivers/scsi/pm8001/pm80xx_hwi.c ts->open_rej_reason = SAS_OREJ_RSVD_RETRY; ts 2468 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2469 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2470 drivers/scsi/pm8001/pm80xx_hwi.c ts->open_rej_reason = SAS_OREJ_EPROTO; ts 2475 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2476 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2477 drivers/scsi/pm8001/pm80xx_hwi.c ts->open_rej_reason = SAS_OREJ_UNKNOWN; ts 2482 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2483 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2484 drivers/scsi/pm8001/pm80xx_hwi.c ts->open_rej_reason = SAS_OREJ_RSVD_CONT0; ts 2494 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_UNDELIVERED; ts 2495 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_DEV_NO_RESPONSE; ts 2500 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2501 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_QUEUE_FULL; ts 2509 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_UNDELIVERED; ts 2510 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2511 drivers/scsi/pm8001/pm80xx_hwi.c ts->open_rej_reason = SAS_OREJ_BAD_DEST; ts 2516 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2517 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2518 drivers/scsi/pm8001/pm80xx_hwi.c ts->open_rej_reason = SAS_OREJ_CONN_RATE; ts 2523 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2524 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2525 drivers/scsi/pm8001/pm80xx_hwi.c ts->open_rej_reason = SAS_OREJ_WRONG_DEST; ts 2530 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2531 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_NAK_R_ERR; ts 2536 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2537 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_NAK_R_ERR; ts 2542 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2543 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_DATA_UNDERRUN; ts 2548 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2549 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_TO; ts 2554 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2555 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_TO; ts 2560 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2561 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_TO; ts 2566 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2567 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_TO; ts 2572 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2573 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_TO; ts 2578 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2579 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_TO; ts 2588 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2589 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_TO; ts 2595 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2596 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_TO; ts 2602 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2603 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_TO; ts 2609 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2610 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_TO; ts 2622 drivers/scsi/pm8001/pm80xx_hwi.c t, event, ts->resp, ts->stat)); ts 2641 drivers/scsi/pm8001/pm80xx_hwi.c struct task_status_struct *ts; ts 2652 drivers/scsi/pm8001/pm80xx_hwi.c ts = &t->task_status; ts 2664 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2665 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAM_STAT_GOOD; ts 2687 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2688 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_ABORTED_TASK; ts 2694 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2695 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_DATA_OVERRUN; ts 2696 drivers/scsi/pm8001/pm80xx_hwi.c ts->residual = 0; ts 2702 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2703 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_PHY_DOWN; ts 2708 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2709 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAM_STAT_BUSY; ts 2714 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2715 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAM_STAT_BUSY; ts 2720 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2721 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAM_STAT_BUSY; ts 2726 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2727 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2728 drivers/scsi/pm8001/pm80xx_hwi.c ts->open_rej_reason = SAS_OREJ_UNKNOWN; ts 2733 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2734 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2735 drivers/scsi/pm8001/pm80xx_hwi.c ts->open_rej_reason = SAS_OREJ_UNKNOWN; ts 2740 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2741 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2742 drivers/scsi/pm8001/pm80xx_hwi.c ts->open_rej_reason = SAS_OREJ_RSVD_CONT0; ts 2752 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2753 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2754 drivers/scsi/pm8001/pm80xx_hwi.c ts->open_rej_reason = SAS_OREJ_UNKNOWN; ts 2762 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2763 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2764 drivers/scsi/pm8001/pm80xx_hwi.c ts->open_rej_reason = SAS_OREJ_BAD_DEST; ts 2769 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2770 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2771 drivers/scsi/pm8001/pm80xx_hwi.c ts->open_rej_reason = SAS_OREJ_CONN_RATE; ts 2776 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2777 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2778 drivers/scsi/pm8001/pm80xx_hwi.c ts->open_rej_reason = SAS_OREJ_WRONG_DEST; ts 2783 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2784 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_DEV_NO_RESPONSE; ts 2789 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2790 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2791 drivers/scsi/pm8001/pm80xx_hwi.c ts->open_rej_reason = SAS_OREJ_RSVD_RETRY; ts 2796 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2797 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_QUEUE_FULL; ts 2802 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2803 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2804 drivers/scsi/pm8001/pm80xx_hwi.c ts->open_rej_reason = SAS_OREJ_RSVD_RETRY; ts 2809 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2810 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_DEV_NO_RESPONSE; ts 2815 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2816 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2817 drivers/scsi/pm8001/pm80xx_hwi.c ts->open_rej_reason = SAS_OREJ_RSVD_RETRY; ts 2822 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2823 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_OPEN_REJECT; ts 2824 drivers/scsi/pm8001/pm80xx_hwi.c ts->open_rej_reason = SAS_OREJ_RSVD_RETRY; ts 2829 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 2830 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAS_DEV_NO_RESPONSE; ts 2843 drivers/scsi/pm8001/pm80xx_hwi.c t, status, ts->resp, ts->stat)); ts 4414 drivers/scsi/pm8001/pm80xx_hwi.c struct task_status_struct *ts; ts 4417 drivers/scsi/pm8001/pm80xx_hwi.c ts = &task->task_status; ts 4420 drivers/scsi/pm8001/pm80xx_hwi.c ts->resp = SAS_TASK_COMPLETE; ts 4421 drivers/scsi/pm8001/pm80xx_hwi.c ts->stat = SAM_STAT_GOOD; ts 4432 drivers/scsi/pm8001/pm80xx_hwi.c "\n", task, ts->resp, ts->stat)); ts 53 drivers/scsi/snic/snic_trc.c td->ts = 0; /* Marker for checking the record, for complete data*/ ts 70 drivers/scsi/snic/snic_trc.c jiffies_to_timespec64(td->ts, &tmspec); ts 103 drivers/scsi/snic/snic_trc.c if (td->ts == 0) { ts 33 drivers/scsi/snic/snic_trc.h u64 ts; /* Time Stamp */ ts 80 drivers/scsi/snic/snic_trc.h tr_rec->ts = jiffies; /* Update time stamp at last */ ts 67 drivers/spi/spi-slave-time.c u64 ts; ts 69 drivers/spi/spi-slave-time.c ts = local_clock(); ts 70 drivers/spi/spi-slave-time.c rem_us = do_div(ts, 1000000000) / 1000; ts 72 drivers/spi/spi-slave-time.c priv->buf[0] = cpu_to_be32(ts); ts 60 drivers/staging/exfat/exfat_super.c static void exfat_time_fat2unix(struct timespec64 *ts, struct date_time_t *tp) ts 62 drivers/staging/exfat/exfat_super.c ts->tv_sec = mktime64(tp->Year + 1980, tp->Month + 1, tp->Day, ts 65 drivers/staging/exfat/exfat_super.c ts->tv_nsec = tp->MilliSecond * NSEC_PER_MSEC; ts 69 drivers/staging/exfat/exfat_super.c static void exfat_time_unix2fat(struct timespec64 *ts, struct date_time_t *tp) ts 71 drivers/staging/exfat/exfat_super.c time64_t second = ts->tv_sec; ts 98 drivers/staging/exfat/exfat_super.c tp->MilliSecond = ts->tv_nsec / NSEC_PER_MSEC; ts 55 drivers/staging/greybus/loopback.c ktime_t ts; ts 72 drivers/staging/greybus/loopback.c ktime_t ts; ts 365 drivers/staging/greybus/loopback.c static u64 gb_loopback_calc_latency(ktime_t ts, ktime_t te) ts 367 drivers/staging/greybus/loopback.c return __gb_loopback_calc_latency(ktime_to_ns(ts), ktime_to_ns(te)); ts 375 drivers/staging/greybus/loopback.c ktime_t ts, te; ts 378 drivers/staging/greybus/loopback.c ts = ktime_get(); ts 409 drivers/staging/greybus/loopback.c gb->elapsed_nsecs = gb_loopback_calc_latency(ts, te); ts 441 drivers/staging/greybus/loopback.c gb->elapsed_nsecs = gb_loopback_calc_latency(op_async->ts, te); ts 494 drivers/staging/greybus/loopback.c op_async->ts = ktime_get(); ts 719 drivers/staging/greybus/loopback.c gb->ts = ktime_set(0, 0); ts 810 drivers/staging/greybus/loopback.c nlat = gb_loopback_calc_latency(gb->ts, te); ts 818 drivers/staging/greybus/loopback.c gb->ts = te; ts 894 drivers/staging/greybus/loopback.c if (ktime_to_ns(gb->ts) == 0) ts 895 drivers/staging/greybus/loopback.c gb->ts = ktime_get(); ts 722 drivers/staging/greybus/tools/loopback_test.c struct timespec *ts = NULL; ts 740 drivers/staging/greybus/tools/loopback_test.c ts = &t->poll_timeout; ts 744 drivers/staging/greybus/tools/loopback_test.c ret = ppoll(t->fds, t->poll_count, ts, &mask_old); ts 382 drivers/staging/media/hantro/hantro.h dma_addr_t hantro_get_ref(struct vb2_queue *q, u64 ts); ts 46 drivers/staging/media/hantro/hantro_drv.c dma_addr_t hantro_get_ref(struct vb2_queue *q, u64 ts) ts 51 drivers/staging/media/hantro/hantro_drv.c index = vb2_find_timestamp(q, ts, 0); ts 37 drivers/staging/media/meson/vdec/vdec.h u64 ts; ts 203 drivers/staging/media/meson/vdec/vdec_helpers.c void amvdec_add_ts_reorder(struct amvdec_session *sess, u64 ts, u32 offset) ts 209 drivers/staging/media/meson/vdec/vdec_helpers.c new_ts->ts = ts; ts 218 drivers/staging/media/meson/vdec/vdec_helpers.c if (ts <= tmp->ts) { ts 231 drivers/staging/media/meson/vdec/vdec_helpers.c void amvdec_remove_ts(struct amvdec_session *sess, u64 ts) ts 238 drivers/staging/media/meson/vdec/vdec_helpers.c if (tmp->ts == ts) { ts 245 drivers/staging/media/meson/vdec/vdec_helpers.c "Couldn't remove buffer with timestamp %llu from list\n", ts); ts 314 drivers/staging/media/meson/vdec/vdec_helpers.c timestamp = tmp->ts; ts 366 drivers/staging/media/meson/vdec/vdec_helpers.c timestamp = match->ts; ts 53 drivers/staging/media/meson/vdec/vdec_helpers.h void amvdec_add_ts_reorder(struct amvdec_session *sess, u64 ts, u32 offset); ts 54 drivers/staging/media/meson/vdec/vdec_helpers.h void amvdec_remove_ts(struct amvdec_session *sess, u64 ts); ts 318 drivers/staging/wlan-ng/p80211mgmt.h u64 *ts; ts 456 drivers/staging/wlan-ng/p80211mgmt.h u64 *ts; ts 2871 drivers/target/target_core_transport.c static char *target_ts_to_str(u32 ts) ts 2875 drivers/target/target_core_transport.c if (ts & CMD_T_ABORTED) ts 2877 drivers/target/target_core_transport.c if (ts & CMD_T_ACTIVE) ts 2879 drivers/target/target_core_transport.c if (ts & CMD_T_COMPLETE) ts 2881 drivers/target/target_core_transport.c if (ts & CMD_T_SENT) ts 2883 drivers/target/target_core_transport.c if (ts & CMD_T_STOP) ts 2885 drivers/target/target_core_transport.c if (ts & CMD_T_FABRIC_STOP) ts 34 drivers/tee/optee/rpc.c struct timespec64 ts; ts 42 drivers/tee/optee/rpc.c ktime_get_real_ts64(&ts); ts 43 drivers/tee/optee/rpc.c arg->params[0].u.value.a = ts.tv_sec; ts 44 drivers/tee/optee/rpc.c arg->params[0].u.value.b = ts.tv_nsec; ts 303 drivers/thermal/tegra/soctherm.c struct tegra_soctherm *ts; ts 368 drivers/thermal/tegra/soctherm.c static inline void ccroc_writel(struct tegra_soctherm *ts, u32 value, u32 reg) ts 370 drivers/thermal/tegra/soctherm.c writel(value, (ts->ccroc_regs + reg)); ts 380 drivers/thermal/tegra/soctherm.c static inline u32 ccroc_readl(struct tegra_soctherm *ts, u32 reg) ts 382 drivers/thermal/tegra/soctherm.c return readl(ts->ccroc_regs + reg); ts 477 drivers/thermal/tegra/soctherm.c struct tegra_soctherm *ts = dev_get_drvdata(dev); ts 484 drivers/thermal/tegra/soctherm.c temp = enforce_temp_range(dev, trip_temp) / ts->soc->thresh_grain; ts 486 drivers/thermal/tegra/soctherm.c r = readl(ts->regs + THERMCTL_THERMTRIP_CTL); ts 490 drivers/thermal/tegra/soctherm.c writel(r, ts->regs + THERMCTL_THERMTRIP_CTL); ts 517 drivers/thermal/tegra/soctherm.c struct tegra_soctherm *ts = dev_get_drvdata(dev); ts 525 drivers/thermal/tegra/soctherm.c temp = enforce_temp_range(dev, trip_temp) / ts->soc->thresh_grain; ts 543 drivers/thermal/tegra/soctherm.c r = readl(ts->regs + reg_off); ts 549 drivers/thermal/tegra/soctherm.c writel(r, ts->regs + reg_off); ts 555 drivers/thermal/tegra/soctherm.c find_throttle_cfg_by_name(struct tegra_soctherm *ts, const char *name) ts 559 drivers/thermal/tegra/soctherm.c for (i = 0; ts->throt_cfgs[i].name; i++) ts 560 drivers/thermal/tegra/soctherm.c if (!strcmp(ts->throt_cfgs[i].name, name)) ts 561 drivers/thermal/tegra/soctherm.c return &ts->throt_cfgs[i]; ts 566 drivers/thermal/tegra/soctherm.c static int tsensor_group_thermtrip_get(struct tegra_soctherm *ts, int id) ts 569 drivers/thermal/tegra/soctherm.c struct tsensor_group_thermtrips *tt = ts->soc->thermtrips; ts 575 drivers/thermal/tegra/soctherm.c for (i = 0; i < ts->soc->num_ttgs; i++) { ts 588 drivers/thermal/tegra/soctherm.c struct tegra_soctherm *ts = zone->ts; ts 607 drivers/thermal/tegra/soctherm.c if (min_low_temp == tsensor_group_thermtrip_get(ts, sg->id)) ts 619 drivers/thermal/tegra/soctherm.c if (!ts->throt_cfgs[i].init) ts 622 drivers/thermal/tegra/soctherm.c cdev = ts->throt_cfgs[i].cdev; ts 624 drivers/thermal/tegra/soctherm.c stc = find_throttle_cfg_by_name(ts, cdev->type); ts 671 drivers/thermal/tegra/soctherm.c mutex_lock(&zn->ts->thermctl_lock); ts 672 drivers/thermal/tegra/soctherm.c r = readl(zn->ts->regs + THERMCTL_INTR_ENABLE); ts 674 drivers/thermal/tegra/soctherm.c writel(r, zn->ts->regs + THERMCTL_INTR_ENABLE); ts 675 drivers/thermal/tegra/soctherm.c mutex_unlock(&zn->ts->thermctl_lock); ts 683 drivers/thermal/tegra/soctherm.c mutex_lock(&zn->ts->thermctl_lock); ts 684 drivers/thermal/tegra/soctherm.c r = readl(zn->ts->regs + THERMCTL_INTR_DISABLE); ts 686 drivers/thermal/tegra/soctherm.c writel(r, zn->ts->regs + THERMCTL_INTR_DISABLE); ts 687 drivers/thermal/tegra/soctherm.c mutex_unlock(&zn->ts->thermctl_lock); ts 697 drivers/thermal/tegra/soctherm.c r = readl(zone->ts->regs + zone->sg->thermctl_lvl0_offset); ts 699 drivers/thermal/tegra/soctherm.c writel(r, zone->ts->regs + zone->sg->thermctl_lvl0_offset); ts 701 drivers/thermal/tegra/soctherm.c lo = enforce_temp_range(zone->dev, lo) / zone->ts->soc->thresh_grain; ts 702 drivers/thermal/tegra/soctherm.c hi = enforce_temp_range(zone->dev, hi) / zone->ts->soc->thresh_grain; ts 708 drivers/thermal/tegra/soctherm.c writel(r, zone->ts->regs + zone->sg->thermctl_lvl0_offset); ts 773 drivers/thermal/tegra/soctherm.c struct tegra_soctherm *ts = dev_get_drvdata(dev); ts 778 drivers/thermal/tegra/soctherm.c temperature = tsensor_group_thermtrip_get(ts, sg->id); ts 802 drivers/thermal/tegra/soctherm.c if (!ts->throt_cfgs[i].init) ts 805 drivers/thermal/tegra/soctherm.c cdev = ts->throt_cfgs[i].cdev; ts 807 drivers/thermal/tegra/soctherm.c stc = find_throttle_cfg_by_name(ts, cdev->type); ts 833 drivers/thermal/tegra/soctherm.c struct tegra_soctherm *ts = dev_id; ts 845 drivers/thermal/tegra/soctherm.c r = readl(ts->regs + THERMCTL_INTR_STATUS); ts 846 drivers/thermal/tegra/soctherm.c writel(r, ts->regs + THERMCTL_INTR_DISABLE); ts 870 drivers/thermal/tegra/soctherm.c struct tegra_soctherm *ts = dev_id; ts 874 drivers/thermal/tegra/soctherm.c st = readl(ts->regs + THERMCTL_INTR_STATUS); ts 891 drivers/thermal/tegra/soctherm.c writel(ex, ts->regs + THERMCTL_INTR_STATUS); ts 895 drivers/thermal/tegra/soctherm.c tz = ts->thermctl_tzs[TEGRA124_SOCTHERM_SENSOR_CPU]; ts 901 drivers/thermal/tegra/soctherm.c tz = ts->thermctl_tzs[TEGRA124_SOCTHERM_SENSOR_GPU]; ts 907 drivers/thermal/tegra/soctherm.c tz = ts->thermctl_tzs[TEGRA124_SOCTHERM_SENSOR_PLLX]; ts 913 drivers/thermal/tegra/soctherm.c tz = ts->thermctl_tzs[TEGRA124_SOCTHERM_SENSOR_MEM]; ts 926 drivers/thermal/tegra/soctherm.c writel(st, ts->regs + THERMCTL_INTR_STATUS); ts 941 drivers/thermal/tegra/soctherm.c static void soctherm_oc_intr_enable(struct tegra_soctherm *ts, ts 950 drivers/thermal/tegra/soctherm.c r = readl(ts->regs + OC_INTR_ENABLE); ts 968 drivers/thermal/tegra/soctherm.c writel(r, ts->regs + OC_INTR_ENABLE); ts 1031 drivers/thermal/tegra/soctherm.c struct tegra_soctherm *ts = arg; ts 1034 drivers/thermal/tegra/soctherm.c st = readl(ts->regs + OC_INTR_STATUS); ts 1045 drivers/thermal/tegra/soctherm.c writel(st, ts->regs + OC_INTR_STATUS); ts 1049 drivers/thermal/tegra/soctherm.c soctherm_oc_intr_enable(ts, THROTTLE_OC1, true); ts 1052 drivers/thermal/tegra/soctherm.c soctherm_oc_intr_enable(ts, THROTTLE_OC2, true); ts 1055 drivers/thermal/tegra/soctherm.c soctherm_oc_intr_enable(ts, THROTTLE_OC3, true); ts 1058 drivers/thermal/tegra/soctherm.c soctherm_oc_intr_enable(ts, THROTTLE_OC4, true); ts 1079 drivers/thermal/tegra/soctherm.c writel(st, ts->regs + OC_INTR_STATUS); ts 1102 drivers/thermal/tegra/soctherm.c struct tegra_soctherm *ts = arg; ts 1105 drivers/thermal/tegra/soctherm.c if (!ts) ts 1108 drivers/thermal/tegra/soctherm.c r = readl(ts->regs + OC_INTR_STATUS); ts 1109 drivers/thermal/tegra/soctherm.c writel(r, ts->regs + OC_INTR_DISABLE); ts 1290 drivers/thermal/tegra/soctherm.c struct tegra_soctherm *ts = platform_get_drvdata(pdev); ts 1291 drivers/thermal/tegra/soctherm.c const struct tegra_tsensor *tsensors = ts->soc->tsensors; ts 1292 drivers/thermal/tegra/soctherm.c const struct tegra_tsensor_group **ttgs = ts->soc->ttgs; ts 1298 drivers/thermal/tegra/soctherm.c for (i = 0; i < ts->soc->num_tsensors; i++) { ts 1299 drivers/thermal/tegra/soctherm.c r = readl(ts->regs + tsensors[i].base + SENSOR_CONFIG1); ts 1317 drivers/thermal/tegra/soctherm.c r = readl(ts->regs + tsensors[i].base + SENSOR_STATUS1); ts 1323 drivers/thermal/tegra/soctherm.c r = readl(ts->regs + tsensors[i].base + SENSOR_STATUS0); ts 1329 drivers/thermal/tegra/soctherm.c r = readl(ts->regs + tsensors[i].base + SENSOR_CONFIG0); ts 1341 drivers/thermal/tegra/soctherm.c r = readl(ts->regs + tsensors[i].base + SENSOR_CONFIG2); ts 1348 drivers/thermal/tegra/soctherm.c r = readl(ts->regs + SENSOR_PDIV); ts 1351 drivers/thermal/tegra/soctherm.c r = readl(ts->regs + SENSOR_HOTSPOT_OFF); ts 1357 drivers/thermal/tegra/soctherm.c r = readl(ts->regs + SENSOR_TEMP1); ts 1362 drivers/thermal/tegra/soctherm.c r = readl(ts->regs + SENSOR_TEMP2); ts 1368 drivers/thermal/tegra/soctherm.c for (i = 0; i < ts->soc->num_ttgs; i++) { ts 1375 drivers/thermal/tegra/soctherm.c r = readl(ts->regs + THERMCTL_LVL_REG(off, level)); ts 1379 drivers/thermal/tegra/soctherm.c v = sign_extend32(state, ts->soc->bptt - 1); ts 1380 drivers/thermal/tegra/soctherm.c v *= ts->soc->thresh_grain; ts 1385 drivers/thermal/tegra/soctherm.c v = sign_extend32(state, ts->soc->bptt - 1); ts 1386 drivers/thermal/tegra/soctherm.c v *= ts->soc->thresh_grain; ts 1426 drivers/thermal/tegra/soctherm.c r = readl(ts->regs + THERMCTL_STATS_CTL); ts 1435 drivers/thermal/tegra/soctherm.c r = readl(ts->regs + THERMCTL_LVL_REG(off, level)); ts 1439 drivers/thermal/tegra/soctherm.c r = readl(ts->regs + THERMCTL_LVL_REG(off, level)); ts 1443 drivers/thermal/tegra/soctherm.c r = readl(ts->regs + THERMCTL_THERMTRIP_CTL); ts 1446 drivers/thermal/tegra/soctherm.c for (i = 0; i < ts->soc->num_ttgs; i++) { ts 1450 drivers/thermal/tegra/soctherm.c state *= ts->soc->thresh_grain; ts 1454 drivers/thermal/tegra/soctherm.c r = readl(ts->regs + THROT_GLOBAL_CFG); ts 1459 drivers/thermal/tegra/soctherm.c r = readl(ts->regs + THROT_STATUS); ts 1467 drivers/thermal/tegra/soctherm.c r = readl(ts->regs + CPU_PSKIP_STATUS); ts 1468 drivers/thermal/tegra/soctherm.c if (ts->soc->use_ccroc) { ts 1543 drivers/thermal/tegra/soctherm.c struct tegra_soctherm *ts = cdev->devdata; ts 1546 drivers/thermal/tegra/soctherm.c r = readl(ts->regs + THROT_STATUS); ts 1570 drivers/thermal/tegra/soctherm.c struct tegra_soctherm *ts = dev_get_drvdata(dev); ts 1571 drivers/thermal/tegra/soctherm.c struct tsensor_group_thermtrips *tt = ts->soc->thermtrips; ts 1572 drivers/thermal/tegra/soctherm.c const int max_num_prop = ts->soc->num_ttgs * 2; ts 1641 drivers/thermal/tegra/soctherm.c struct tegra_soctherm *ts = dev_get_drvdata(dev); ts 1652 drivers/thermal/tegra/soctherm.c ret = of_property_read_u32(np, ts->soc->use_ccroc ? ts 1656 drivers/thermal/tegra/soctherm.c if (ts->soc->use_ccroc && ts 1659 drivers/thermal/tegra/soctherm.c else if (!ts->soc->use_ccroc && val <= 100) ts 1688 drivers/thermal/tegra/soctherm.c struct tegra_soctherm *ts = dev_get_drvdata(dev); ts 1694 drivers/thermal/tegra/soctherm.c ts->throt_cfgs[i].name = throt_names[i]; ts 1695 drivers/thermal/tegra/soctherm.c ts->throt_cfgs[i].id = i; ts 1696 drivers/thermal/tegra/soctherm.c ts->throt_cfgs[i].init = false; ts 1712 drivers/thermal/tegra/soctherm.c stc = find_throttle_cfg_by_name(ts, name); ts 1735 drivers/thermal/tegra/soctherm.c (char *)name, ts, ts 1763 drivers/thermal/tegra/soctherm.c static void throttlectl_cpu_level_cfg(struct tegra_soctherm *ts, int level) ts 1787 drivers/thermal/tegra/soctherm.c r = ccroc_readl(ts, CCROC_THROT_PSKIP_RAMP_CPU_REG(level)); ts 1790 drivers/thermal/tegra/soctherm.c ccroc_writel(ts, r, CCROC_THROT_PSKIP_RAMP_CPU_REG(level)); ts 1792 drivers/thermal/tegra/soctherm.c r = ccroc_readl(ts, CCROC_THROT_PSKIP_CTRL_CPU_REG(level)); ts 1796 drivers/thermal/tegra/soctherm.c ccroc_writel(ts, r, CCROC_THROT_PSKIP_CTRL_CPU_REG(level)); ts 1810 drivers/thermal/tegra/soctherm.c static void throttlectl_cpu_level_select(struct tegra_soctherm *ts, ts 1816 drivers/thermal/tegra/soctherm.c switch (ts->throt_cfgs[throt].cpu_throt_level) { ts 1831 drivers/thermal/tegra/soctherm.c r = readl(ts->regs + THROT_PSKIP_CTRL(throt, THROTTLE_DEV_CPU)); ts 1835 drivers/thermal/tegra/soctherm.c writel(r, ts->regs + THROT_PSKIP_CTRL(throt, THROTTLE_DEV_CPU)); ts 1839 drivers/thermal/tegra/soctherm.c writel(r, ts->regs + THROT_PSKIP_RAMP(throt, THROTTLE_DEV_CPU)); ts 1853 drivers/thermal/tegra/soctherm.c static void throttlectl_cpu_mn(struct tegra_soctherm *ts, ts 1860 drivers/thermal/tegra/soctherm.c depth = ts->throt_cfgs[throt].cpu_throt_depth; ts 1863 drivers/thermal/tegra/soctherm.c r = readl(ts->regs + THROT_PSKIP_CTRL(throt, THROTTLE_DEV_CPU)); ts 1867 drivers/thermal/tegra/soctherm.c writel(r, ts->regs + THROT_PSKIP_CTRL(throt, THROTTLE_DEV_CPU)); ts 1869 drivers/thermal/tegra/soctherm.c r = readl(ts->regs + THROT_PSKIP_RAMP(throt, THROTTLE_DEV_CPU)); ts 1872 drivers/thermal/tegra/soctherm.c writel(r, ts->regs + THROT_PSKIP_RAMP(throt, THROTTLE_DEV_CPU)); ts 1884 drivers/thermal/tegra/soctherm.c static void throttlectl_gpu_level_select(struct tegra_soctherm *ts, ts 1889 drivers/thermal/tegra/soctherm.c level = ts->throt_cfgs[throt].gpu_throt_level; ts 1891 drivers/thermal/tegra/soctherm.c r = readl(ts->regs + THROT_PSKIP_CTRL(throt, THROTTLE_DEV_GPU)); ts 1894 drivers/thermal/tegra/soctherm.c writel(r, ts->regs + THROT_PSKIP_CTRL(throt, THROTTLE_DEV_GPU)); ts 1897 drivers/thermal/tegra/soctherm.c static int soctherm_oc_cfg_program(struct tegra_soctherm *ts, ts 1901 drivers/thermal/tegra/soctherm.c struct soctherm_oc_cfg *oc = &ts->throt_cfgs[throt].oc_cfg; ts 1910 drivers/thermal/tegra/soctherm.c writel(r, ts->regs + ALARM_CFG(throt)); ts 1911 drivers/thermal/tegra/soctherm.c writel(oc->throt_period, ts->regs + ALARM_THROTTLE_PERIOD(throt)); ts 1912 drivers/thermal/tegra/soctherm.c writel(oc->alarm_cnt_thresh, ts->regs + ALARM_CNT_THRESHOLD(throt)); ts 1913 drivers/thermal/tegra/soctherm.c writel(oc->alarm_filter, ts->regs + ALARM_FILTER(throt)); ts 1914 drivers/thermal/tegra/soctherm.c soctherm_oc_intr_enable(ts, throt, oc->intr_en); ts 1926 drivers/thermal/tegra/soctherm.c static void soctherm_throttle_program(struct tegra_soctherm *ts, ts 1930 drivers/thermal/tegra/soctherm.c struct soctherm_throt_cfg stc = ts->throt_cfgs[throt]; ts 1935 drivers/thermal/tegra/soctherm.c if ((throt >= THROTTLE_OC1) && (soctherm_oc_cfg_program(ts, throt))) ts 1939 drivers/thermal/tegra/soctherm.c if (ts->soc->use_ccroc) ts 1940 drivers/thermal/tegra/soctherm.c throttlectl_cpu_level_select(ts, throt); ts 1942 drivers/thermal/tegra/soctherm.c throttlectl_cpu_mn(ts, throt); ts 1944 drivers/thermal/tegra/soctherm.c throttlectl_gpu_level_select(ts, throt); ts 1947 drivers/thermal/tegra/soctherm.c writel(r, ts->regs + THROT_PRIORITY_CTRL(throt)); ts 1950 drivers/thermal/tegra/soctherm.c writel(r, ts->regs + THROT_DELAY_CTRL(throt)); ts 1952 drivers/thermal/tegra/soctherm.c r = readl(ts->regs + THROT_PRIORITY_LOCK); ts 1958 drivers/thermal/tegra/soctherm.c writel(r, ts->regs + THROT_PRIORITY_LOCK); ts 1963 drivers/thermal/tegra/soctherm.c struct tegra_soctherm *ts = dev_get_drvdata(dev); ts 1968 drivers/thermal/tegra/soctherm.c if (ts->soc->use_ccroc) { ts 1969 drivers/thermal/tegra/soctherm.c throttlectl_cpu_level_cfg(ts, TEGRA_SOCTHERM_THROT_LEVEL_LOW); ts 1970 drivers/thermal/tegra/soctherm.c throttlectl_cpu_level_cfg(ts, TEGRA_SOCTHERM_THROT_LEVEL_MED); ts 1971 drivers/thermal/tegra/soctherm.c throttlectl_cpu_level_cfg(ts, TEGRA_SOCTHERM_THROT_LEVEL_HIGH); ts 1976 drivers/thermal/tegra/soctherm.c soctherm_throttle_program(ts, i); ts 1979 drivers/thermal/tegra/soctherm.c if (ts->soc->use_ccroc) { ts 1980 drivers/thermal/tegra/soctherm.c ccroc_writel(ts, v, CCROC_GLOBAL_CFG); ts 1982 drivers/thermal/tegra/soctherm.c v = ccroc_readl(ts, CCROC_SUPER_CCLKG_DIVIDER); ts 1984 drivers/thermal/tegra/soctherm.c ccroc_writel(ts, v, CCROC_SUPER_CCLKG_DIVIDER); ts 1986 drivers/thermal/tegra/soctherm.c writel(v, ts->regs + THROT_GLOBAL_CFG); ts 1988 drivers/thermal/tegra/soctherm.c v = readl(ts->clk_regs + CAR_SUPER_CCLKG_DIVIDER); ts 1990 drivers/thermal/tegra/soctherm.c writel(v, ts->clk_regs + CAR_SUPER_CCLKG_DIVIDER); ts 1996 drivers/thermal/tegra/soctherm.c writel(v, ts->regs + THERMCTL_STATS_CTL); ts 2223 drivers/thermal/tegra/soctherm.c zone->ts = tegra; ts 1468 drivers/tty/moxa.c register struct ktermios *ts = &tty->termios; ts 1473 drivers/tty/moxa.c if (ts->c_cflag & CRTSCTS) ts 1475 drivers/tty/moxa.c if (ts->c_iflag & IXON) ts 1477 drivers/tty/moxa.c if (ts->c_iflag & IXOFF) ts 1479 drivers/tty/moxa.c if (ts->c_iflag & IXANY) ts 1483 drivers/tty/moxa.c baud = MoxaPortSetTermio(ch, ts, tty_get_baud_rate(tty)); ts 1401 drivers/usb/gadget/function/f_fs.c struct timespec64 ts = current_time(inode); ts 1407 drivers/usb/gadget/function/f_fs.c inode->i_atime = ts; ts 1408 drivers/usb/gadget/function/f_fs.c inode->i_mtime = ts; ts 1409 drivers/usb/gadget/function/f_fs.c inode->i_ctime = ts; ts 1456 drivers/usb/gadget/udc/lpc32xx_udc.c u32 tsend, ts = 0; ts 1465 drivers/usb/gadget/udc/lpc32xx_udc.c tsend = ts = req->req.length - req->req.actual; ts 1466 drivers/usb/gadget/udc/lpc32xx_udc.c if (ts == 0) { ts 1471 drivers/usb/gadget/udc/lpc32xx_udc.c } else if (ts > ep0->ep.maxpacket) ts 1472 drivers/usb/gadget/udc/lpc32xx_udc.c ts = ep0->ep.maxpacket; /* Just send what we can */ ts 1475 drivers/usb/gadget/udc/lpc32xx_udc.c udc_write_hwep(udc, EP_IN, (req->req.buf + req->req.actual), ts); ts 1478 drivers/usb/gadget/udc/lpc32xx_udc.c req->req.actual += ts; ts 489 drivers/usb/mon/mon_bin.c struct timespec64 ts; ts 500 drivers/usb/mon/mon_bin.c ktime_get_real_ts64(&ts); ts 573 drivers/usb/mon/mon_bin.c ep->ts_sec = ts.tv_sec; ts 574 drivers/usb/mon/mon_bin.c ep->ts_usec = ts.tv_nsec / NSEC_PER_USEC; ts 635 drivers/usb/mon/mon_bin.c struct timespec64 ts; ts 640 drivers/usb/mon/mon_bin.c ktime_get_real_ts64(&ts); ts 661 drivers/usb/mon/mon_bin.c ep->ts_sec = ts.tv_sec; ts 662 drivers/usb/mon/mon_bin.c ep->ts_usec = ts.tv_nsec / NSEC_PER_USEC; ts 118 drivers/video/fbdev/pxa3xx-gcu.c struct timespec64 ts; \ ts 122 drivers/video/fbdev/pxa3xx-gcu.c ktime_get_ts64(&ts); \ ts 123 drivers/video/fbdev/pxa3xx-gcu.c ts = timespec64_sub(ts, priv->base_time); \ ts 129 drivers/video/fbdev/pxa3xx-gcu.c (s64)(ts.tv_sec), \ ts 130 drivers/video/fbdev/pxa3xx-gcu.c ts.tv_nsec / NSEC_PER_MSEC, \ ts 131 drivers/video/fbdev/pxa3xx-gcu.c (ts.tv_nsec % NSEC_PER_MSEC) / USEC_PER_MSEC, \ ts 118 fs/afs/yfsclient.c struct timespec64 ts; ts 128 fs/afs/yfsclient.c ts.tv_nsec = (time64_t)(do_div(abs_t, 10000000) * 100); ts 129 fs/afs/yfsclient.c ts.tv_nsec = -ts.tv_nsec; ts 130 fs/afs/yfsclient.c ts.tv_sec = -abs_t; ts 133 fs/afs/yfsclient.c ts.tv_nsec = (time64_t)do_div(abs_t, 10000000) * 100; ts 134 fs/afs/yfsclient.c ts.tv_sec = abs_t; ts 137 fs/afs/yfsclient.c return ts; ts 2056 fs/aio.c struct timespec64 *ts) ts 2058 fs/aio.c ktime_t until = ts ? timespec64_to_ktime(*ts) : KTIME_MAX; ts 2091 fs/aio.c struct timespec64 ts; ts 2094 fs/aio.c if (timeout && unlikely(get_timespec64(&ts, timeout))) ts 2097 fs/aio.c ret = do_io_getevents(ctx_id, min_nr, nr, events, timeout ? &ts : NULL); ts 2119 fs/aio.c struct timespec64 ts; ts 2123 fs/aio.c if (timeout && unlikely(get_timespec64(&ts, timeout))) ts 2133 fs/aio.c ret = do_io_getevents(ctx_id, min_nr, nr, events, timeout ? &ts : NULL); ts 2154 fs/aio.c struct timespec64 ts; ts 2158 fs/aio.c if (timeout && unlikely(get_old_timespec32(&ts, timeout))) ts 2169 fs/aio.c ret = do_io_getevents(ctx_id, min_nr, nr, events, timeout ? &ts : NULL); ts 620 fs/btrfs/send.c struct btrfs_timespec *ts) ts 623 fs/btrfs/send.c read_extent_buffer(eb, &bts, (unsigned long)ts, sizeof(bts)); ts 665 fs/btrfs/send.c #define TLV_PUT_BTRFS_TIMESPEC(sctx, attrtype, eb, ts) \ ts 667 fs/btrfs/send.c ret = tlv_put_btrfs_timespec(sctx, attrtype, eb, ts); \ ts 1219 fs/ceph/mds_client.c struct ceph_mds_session *ts; ts 1230 fs/ceph/mds_client.c ts = __open_export_target_session(mdsc, mi->export_targets[i]); ts 1231 fs/ceph/mds_client.c if (!IS_ERR(ts)) ts 1232 fs/ceph/mds_client.c ceph_put_mds_session(ts); ts 2074 fs/ceph/mds_client.c struct timespec64 ts; ts 2093 fs/ceph/mds_client.c ktime_get_coarse_real_ts64(&ts); ts 2094 fs/ceph/mds_client.c req->r_stamp = timespec64_trunc(ts, mdsc->fsc->sb->s_time_gran); ts 2387 fs/ceph/mds_client.c struct ceph_timespec ts; ts 2388 fs/ceph/mds_client.c ceph_encode_timespec64(&ts, &req->r_stamp); ts 2389 fs/ceph/mds_client.c ceph_encode_copy(&p, &ts, sizeof(ts)); ts 2478 fs/ceph/mds_client.c struct ceph_timespec ts; ts 2479 fs/ceph/mds_client.c ceph_encode_timespec64(&ts, &req->r_stamp); ts 2480 fs/ceph/mds_client.c ceph_encode_copy(&p, &ts, sizeof(ts)); ts 467 fs/cifs/cifsencrypt.c struct timespec64 ts; ts 492 fs/cifs/cifsencrypt.c ktime_get_real_ts64(&ts); ts 493 fs/cifs/cifsencrypt.c return cpu_to_le64(cifs_UnixTimeToNT(ts)); ts 156 fs/cifs/cifsfs.c struct timespec64 ts; ts 185 fs/cifs/cifsfs.c ts = cnvrtDosUnixTm(cpu_to_le16(SMB_DATE_MIN), 0, 0); ts 186 fs/cifs/cifsfs.c sb->s_time_min = ts.tv_sec; ts 187 fs/cifs/cifsfs.c ts = cnvrtDosUnixTm(cpu_to_le16(SMB_DATE_MAX), ts 189 fs/cifs/cifsfs.c sb->s_time_max = ts.tv_sec; ts 196 fs/cifs/cifsfs.c ts = cifs_NTtimeToUnix(0); ts 197 fs/cifs/cifsfs.c sb->s_time_min = ts.tv_sec; ts 198 fs/cifs/cifsfs.c ts = cifs_NTtimeToUnix(cpu_to_le64(S64_MAX)); ts 199 fs/cifs/cifsfs.c sb->s_time_max = ts.tv_sec; ts 602 fs/cifs/cifssmb.c struct timespec64 ts; ts 604 fs/cifs/cifssmb.c ts = cnvrtDosUnixTm(rsp->SrvTime.Date, ts 607 fs/cifs/cifssmb.c ts.tv_sec, utc, ts 608 fs/cifs/cifssmb.c utc - ts.tv_sec); ts 609 fs/cifs/cifssmb.c val = (int)(utc - ts.tv_sec); ts 4157 fs/cifs/cifssmb.c struct timespec64 ts; ts 4163 fs/cifs/cifssmb.c ts.tv_nsec = 0; ts 4164 fs/cifs/cifssmb.c ts.tv_sec = time; ts 4166 fs/cifs/cifssmb.c data->ChangeTime = cpu_to_le64(cifs_UnixTimeToNT(ts)); ts 105 fs/cifs/dfs_cache.c struct timespec64 ts; ts 107 fs/cifs/dfs_cache.c ktime_get_coarse_real_ts64(&ts); ts 108 fs/cifs/dfs_cache.c return timespec64_compare(&ts, &ce->ce_etime) >= 0; ts 338 fs/cifs/dfs_cache.c struct timespec64 ts = { ts 345 fs/cifs/dfs_cache.c return timespec64_add(now, ts); ts 907 fs/cifs/netmisc.c struct timespec64 ts; ts 921 fs/cifs/netmisc.c ts.tv_nsec = (time64_t)(do_div(abs_t, 10000000) * 100); ts 922 fs/cifs/netmisc.c ts.tv_nsec = -ts.tv_nsec; ts 923 fs/cifs/netmisc.c ts.tv_sec = -abs_t; ts 926 fs/cifs/netmisc.c ts.tv_nsec = (time64_t)do_div(abs_t, 10000000) * 100; ts 927 fs/cifs/netmisc.c ts.tv_sec = abs_t; ts 930 fs/cifs/netmisc.c return ts; ts 947 fs/cifs/netmisc.c struct timespec64 ts; ts 992 fs/cifs/netmisc.c ts.tv_sec = sec + offset; ts 996 fs/cifs/netmisc.c ts.tv_nsec = 0; ts 997 fs/cifs/netmisc.c return ts; ts 69 fs/coda/coda_linux.c static struct timespec64 coda_to_timespec64(struct coda_timespec ts) ts 72 fs/coda/coda_linux.c .tv_sec = ts.tv_sec, ts 73 fs/coda/coda_linux.c .tv_nsec = ts.tv_nsec, ts 81 fs/coda/coda_linux.c struct coda_timespec ts = { ts 86 fs/coda/coda_linux.c return ts; ts 1799 fs/eventpoll.c struct timespec64 now, ts = { ts 1805 fs/eventpoll.c return timespec64_add_safe(now, ts); ts 1137 fs/fat/dir.c int fat_alloc_new_dir(struct inode *dir, struct timespec64 *ts) ts 1159 fs/fat/dir.c fat_time_unix2fat(sbi, ts, &time, &date, &time_cs); ts 335 fs/fat/fat.h extern int fat_alloc_new_dir(struct inode *dir, struct timespec64 *ts); ts 443 fs/fat/fat.h extern void fat_time_fat2unix(struct msdos_sb_info *sbi, struct timespec64 *ts, ts 445 fs/fat/fat.h extern void fat_time_unix2fat(struct msdos_sb_info *sbi, struct timespec64 *ts, ts 1616 fs/fat/inode.c struct timespec64 ts; ts 1710 fs/fat/inode.c fat_time_fat2unix(sbi, &ts, 0, cpu_to_le16(FAT_DATE_MIN), 0); ts 1711 fs/fat/inode.c sb->s_time_min = ts.tv_sec; ts 1713 fs/fat/inode.c fat_time_fat2unix(sbi, &ts, cpu_to_le16(FAT_TIME_MAX), ts 1715 fs/fat/inode.c sb->s_time_max = ts.tv_sec; ts 198 fs/fat/misc.c void fat_time_fat2unix(struct msdos_sb_info *sbi, struct timespec64 *ts, ts 225 fs/fat/misc.c ts->tv_sec = second + (time_cs / 100); ts 226 fs/fat/misc.c ts->tv_nsec = (time_cs % 100) * 10000000; ts 228 fs/fat/misc.c ts->tv_sec = second; ts 229 fs/fat/misc.c ts->tv_nsec = 0; ts 234 fs/fat/misc.c void fat_time_unix2fat(struct msdos_sb_info *sbi, struct timespec64 *ts, ts 238 fs/fat/misc.c time64_to_tm(ts->tv_sec, -fat_tz_offset(sbi), &tm); ts 266 fs/fat/misc.c *time_cs = (ts->tv_sec & 1) * 100 + ts->tv_nsec / 10000000; ts 270 fs/fat/misc.c static inline struct timespec64 fat_timespec64_trunc_2secs(struct timespec64 ts) ts 272 fs/fat/misc.c return (struct timespec64){ ts.tv_sec & ~1ULL, 0 }; ts 288 fs/fat/misc.c struct timespec64 ts; ts 294 fs/fat/misc.c now = &ts; ts 295 fs/fat/misc.c ts = current_time(inode); ts 229 fs/fat/namei_msdos.c struct timespec64 *ts, struct fat_slot_info *sinfo) ts 241 fs/fat/namei_msdos.c fat_time_unix2fat(sbi, ts, &time, &date, NULL); ts 254 fs/fat/namei_msdos.c fat_truncate_time(dir, ts, S_CTIME|S_MTIME); ts 270 fs/fat/namei_msdos.c struct timespec64 ts; ts 288 fs/fat/namei_msdos.c ts = current_time(dir); ts 289 fs/fat/namei_msdos.c err = msdos_add_entry(dir, msdos_name, 0, is_hid, 0, &ts, &sinfo); ts 298 fs/fat/namei_msdos.c fat_truncate_time(inode, &ts, S_ATIME|S_CTIME|S_MTIME); ts 348 fs/fat/namei_msdos.c struct timespec64 ts; ts 365 fs/fat/namei_msdos.c ts = current_time(dir); ts 366 fs/fat/namei_msdos.c cluster = fat_alloc_new_dir(dir, &ts); ts 371 fs/fat/namei_msdos.c err = msdos_add_entry(dir, msdos_name, 1, is_hid, cluster, &ts, &sinfo); ts 384 fs/fat/namei_msdos.c fat_truncate_time(inode, &ts, S_ATIME|S_CTIME|S_MTIME); ts 436 fs/fat/namei_msdos.c struct timespec64 ts; ts 491 fs/fat/namei_msdos.c ts = current_time(old_inode); ts 504 fs/fat/namei_msdos.c &ts, &sinfo); ts 542 fs/fat/namei_msdos.c fat_truncate_time(old_dir, &ts, S_CTIME|S_MTIME); ts 552 fs/fat/namei_msdos.c fat_truncate_time(new_inode, &ts, S_CTIME); ts 581 fs/fat/namei_vfat.c struct timespec64 *ts, ts 645 fs/fat/namei_vfat.c fat_time_unix2fat(sbi, ts, &time, &date, &time_cs); ts 657 fs/fat/namei_vfat.c int is_dir, int cluster, struct timespec64 *ts, ts 672 fs/fat/namei_vfat.c err = vfat_build_slots(dir, qname->name, len, is_dir, cluster, ts, ts 682 fs/fat/namei_vfat.c fat_truncate_time(dir, ts, S_CTIME|S_MTIME); ts 765 fs/fat/namei_vfat.c struct timespec64 ts; ts 770 fs/fat/namei_vfat.c ts = current_time(dir); ts 771 fs/fat/namei_vfat.c err = vfat_add_entry(dir, &dentry->d_name, 0, 0, &ts, &sinfo); ts 783 fs/fat/namei_vfat.c fat_truncate_time(inode, &ts, S_ATIME|S_CTIME|S_MTIME); ts 854 fs/fat/namei_vfat.c struct timespec64 ts; ts 859 fs/fat/namei_vfat.c ts = current_time(dir); ts 860 fs/fat/namei_vfat.c cluster = fat_alloc_new_dir(dir, &ts); ts 865 fs/fat/namei_vfat.c err = vfat_add_entry(dir, &dentry->d_name, 1, cluster, &ts, &sinfo); ts 880 fs/fat/namei_vfat.c fat_truncate_time(inode, &ts, S_ATIME|S_CTIME|S_MTIME); ts 903 fs/fat/namei_vfat.c struct timespec64 ts; ts 928 fs/fat/namei_vfat.c ts = current_time(old_dir); ts 939 fs/fat/namei_vfat.c &ts, &sinfo); ts 973 fs/fat/namei_vfat.c fat_truncate_time(old_dir, &ts, S_CTIME|S_MTIME); ts 983 fs/fat/namei_vfat.c fat_truncate_time(new_inode, &ts, S_CTIME); ts 88 fs/fuse/dir.c struct timespec64 ts = { ts 93 fs/fuse/dir.c return get_jiffies_64() + timespec64_to_jiffies(&ts); ts 1982 fs/io_uring.c struct timespec64 ts; ts 1991 fs/io_uring.c if (get_timespec64(&ts, u64_to_user_ptr(sqe->addr))) ts 2058 fs/io_uring.c hrtimer_start(&req->timeout.timer, timespec64_to_ktime(ts), ts 126 fs/jbd2/transaction.c unsigned long ts) ts 130 fs/jbd2/transaction.c time_after(transaction->t_start, ts)) { ts 131 fs/jbd2/transaction.c ts = jbd2_time_diff(ts, transaction->t_start); ts 133 fs/jbd2/transaction.c if (ts > transaction->t_max_wait) ts 134 fs/jbd2/transaction.c transaction->t_max_wait = ts; ts 304 fs/jbd2/transaction.c unsigned long ts = jiffies; ts 405 fs/jbd2/transaction.c update_t_max_wait(transaction, ts); ts 2330 fs/nfs/flexfilelayout/flexfilelayout.c struct timespec64 ts; ts 2334 fs/nfs/flexfilelayout/flexfilelayout.c ts = ktime_to_timespec64(t); ts 2335 fs/nfs/flexfilelayout/flexfilelayout.c p = xdr_encode_hyper(p, ts.tv_sec); ts 2336 fs/nfs/flexfilelayout/flexfilelayout.c *p++ = cpu_to_be32(ts.tv_nsec); ts 1354 fs/nfs/inode.c struct timespec ts; ts 1364 fs/nfs/inode.c ts = timespec64_to_timespec(inode->i_ctime); ts 1367 fs/nfs/inode.c && timespec_equal(&ts, &fattr->pre_ctime)) { ts 1371 fs/nfs/inode.c ts = timespec64_to_timespec(inode->i_mtime); ts 1374 fs/nfs/inode.c && timespec_equal(&ts, &fattr->pre_mtime)) { ts 1401 fs/nfs/inode.c struct timespec ts; ts 1428 fs/nfs/inode.c ts = timespec64_to_timespec(inode->i_mtime); ts 1429 fs/nfs/inode.c if ((fattr->valid & NFS_ATTR_FATTR_MTIME) && !timespec_equal(&ts, &fattr->mtime)) ts 1432 fs/nfs/inode.c ts = timespec64_to_timespec(inode->i_ctime); ts 1433 fs/nfs/inode.c if ((fattr->valid & NFS_ATTR_FATTR_CTIME) && !timespec_equal(&ts, &fattr->ctime)) ts 1463 fs/nfs/inode.c ts = timespec64_to_timespec(inode->i_atime); ts 1464 fs/nfs/inode.c if ((fattr->valid & NFS_ATTR_FATTR_ATIME) && !timespec_equal(&ts, &fattr->atime)) ts 716 fs/nfs/internal.h u64 nfs_timespec_to_change_attr(const struct timespec *ts) ts 718 fs/nfs/internal.h return ((u64)ts->tv_sec << 30) + ts->tv_nsec; ts 342 fs/nfs/nfs2xdr.c struct timespec ts; ts 365 fs/nfs/nfs2xdr.c ts = timespec64_to_timespec(attr->ia_atime); ts 366 fs/nfs/nfs2xdr.c p = xdr_encode_time(p, &ts); ts 368 fs/nfs/nfs2xdr.c ts = timespec64_to_timespec(attr->ia_atime); ts 369 fs/nfs/nfs2xdr.c p = xdr_encode_current_server_time(p, &ts); ts 373 fs/nfs/nfs2xdr.c ts = timespec64_to_timespec(attr->ia_mtime); ts 374 fs/nfs/nfs2xdr.c xdr_encode_time(p, &ts); ts 376 fs/nfs/nfs2xdr.c ts = timespec64_to_timespec(attr->ia_mtime); ts 377 fs/nfs/nfs2xdr.c xdr_encode_current_server_time(p, &ts); ts 536 fs/nfs/nfs3xdr.c struct timespec ts; ts 586 fs/nfs/nfs3xdr.c struct timespec ts; ts 588 fs/nfs/nfs3xdr.c ts = timespec64_to_timespec(attr->ia_atime); ts 589 fs/nfs/nfs3xdr.c p = xdr_encode_nfstime3(p, &ts); ts 597 fs/nfs/nfs3xdr.c ts = timespec64_to_timespec(attr->ia_mtime); ts 598 fs/nfs/nfs3xdr.c xdr_encode_nfstime3(p, &ts); ts 1075 fs/nfs/nfs4xdr.c struct timespec ts; ts 1164 fs/nfs/nfs4xdr.c ts = timespec64_to_timespec(iap->ia_atime); ts 1165 fs/nfs/nfs4xdr.c p = xdr_encode_nfstime4(p, &ts); ts 1172 fs/nfs/nfs4xdr.c ts = timespec64_to_timespec(iap->ia_mtime); ts 1173 fs/nfs/nfs4xdr.c p = xdr_encode_nfstime4(p, &ts); ts 170 fs/nfsd/nfs3xdr.c struct timespec ts; ts 186 fs/nfsd/nfs3xdr.c ts = timespec64_to_timespec(stat->atime); ts 187 fs/nfsd/nfs3xdr.c p = encode_time3(p, &ts); ts 188 fs/nfsd/nfs3xdr.c ts = timespec64_to_timespec(stat->mtime); ts 189 fs/nfsd/nfs3xdr.c p = encode_time3(p, &ts); ts 190 fs/nfsd/nfs3xdr.c ts = timespec64_to_timespec(stat->ctime); ts 191 fs/nfsd/nfs3xdr.c p = encode_time3(p, &ts); ts 2027 fs/nfsd/nfs4xdr.c struct timespec ts; ts 2031 fs/nfsd/nfs4xdr.c ts = ns_to_timespec(ns); ts 2033 fs/nfsd/nfs4xdr.c p = xdr_encode_hyper(p, ts.tv_sec); ts 2034 fs/nfsd/nfs4xdr.c *p++ = cpu_to_be32(ts.tv_nsec); ts 34 fs/ntfs/time.h static inline sle64 utc2ntfs(const struct timespec64 ts) ts 40 fs/ntfs/time.h return cpu_to_sle64((s64)ts.tv_sec * 10000000 + ts.tv_nsec / 100 + ts 52 fs/ntfs/time.h struct timespec64 ts; ts 54 fs/ntfs/time.h ktime_get_coarse_real_ts64(&ts); ts 55 fs/ntfs/time.h return utc2ntfs(ts); ts 76 fs/ntfs/time.h struct timespec64 ts; ts 84 fs/ntfs/time.h ts.tv_nsec = do_div(t, 10000000) * 100; ts 85 fs/ntfs/time.h ts.tv_sec = t; ts 86 fs/ntfs/time.h return ts; ts 506 fs/ocfs2/namei.c struct timespec64 ts; ts 555 fs/ocfs2/namei.c ktime_get_real_ts64(&ts); ts 557 fs/ocfs2/namei.c cpu_to_le64(ts.tv_sec); ts 559 fs/ocfs2/namei.c cpu_to_le32(ts.tv_nsec); ts 446 fs/overlayfs/inode.c int ovl_update_time(struct inode *inode, struct timespec64 *ts, int flags) ts 362 fs/overlayfs/overlayfs.h int ovl_update_time(struct inode *inode, struct timespec64 *ts, int flags); ts 275 fs/select.c struct timespec64 ts = {.tv_sec = sec, .tv_nsec = nsec}; ts 277 fs/select.c if (!timespec64_valid(&ts)) ts 285 fs/select.c *to = timespec64_add_safe(*to, ts); ts 733 fs/select.c struct timespec64 ts, end_time, *to = NULL; ts 739 fs/select.c if (get_timespec64(&ts, tsp)) ts 743 fs/select.c if (get_old_timespec32(&ts, tsp)) ts 751 fs/select.c if (poll_select_set_timeout(to, ts.tv_sec, ts.tv_nsec)) ts 1085 fs/select.c struct timespec64 ts, end_time, *to = NULL; ts 1089 fs/select.c if (get_timespec64(&ts, tsp)) ts 1093 fs/select.c if (poll_select_set_timeout(to, ts.tv_sec, ts.tv_nsec)) ts 1111 fs/select.c struct timespec64 ts, end_time, *to = NULL; ts 1115 fs/select.c if (get_old_timespec32(&ts, tsp)) ts 1119 fs/select.c if (poll_select_set_timeout(to, ts.tv_sec, ts.tv_nsec)) ts 1298 fs/select.c struct timespec64 ts, end_time, *to = NULL; ts 1304 fs/select.c if (get_old_timespec32(&ts, tsp)) ts 1308 fs/select.c if (get_timespec64(&ts, tsp)) ts 1316 fs/select.c if (poll_select_set_timeout(to, ts.tv_sec, ts.tv_nsec)) ts 1377 fs/select.c struct timespec64 ts, end_time, *to = NULL; ts 1381 fs/select.c if (get_old_timespec32(&ts, tsp)) ts 1385 fs/select.c if (poll_select_set_timeout(to, ts.tv_sec, ts.tv_nsec)) ts 1403 fs/select.c struct timespec64 ts, end_time, *to = NULL; ts 1407 fs/select.c if (get_timespec64(&ts, tsp)) ts 1411 fs/select.c if (poll_select_set_timeout(to, ts.tv_sec, ts.tv_nsec)) ts 88 fs/ubifs/sb.c struct timespec64 ts; ts 294 fs/ubifs/sb.c ktime_get_real_ts64(&ts); ts 295 fs/ubifs/sb.c ts = timespec64_trunc(ts, DEFAULT_TIME_GRAN); ts 296 fs/ubifs/sb.c tmp_le64 = cpu_to_le64(ts.tv_sec); ts 300 fs/ubifs/sb.c tmp_le32 = cpu_to_le32(ts.tv_nsec); ts 858 fs/udf/super.c struct timestamp *ts; ts 879 fs/udf/super.c ts = &pvoldesc->recordingDateAndTime; ts 881 fs/udf/super.c le16_to_cpu(ts->year), ts->month, ts->day, ts->hour, ts 882 fs/udf/super.c ts->minute, le16_to_cpu(ts->typeAndTimezone)); ts 2000 fs/udf/super.c struct timespec64 ts; ts 2002 fs/udf/super.c ktime_get_real_ts64(&ts); ts 2003 fs/udf/super.c udf_time_to_disk_stamp(&lvid->recordingDateAndTime, ts); ts 2268 fs/udf/super.c struct timestamp ts; ts 2269 fs/udf/super.c udf_time_to_disk_stamp(&ts, sbi->s_record_time); ts 2272 fs/udf/super.c le16_to_cpu(ts.year), ts.month, ts.day, ts 2273 fs/udf/super.c ts.hour, ts.minute, le16_to_cpu(ts.typeAndTimezone)); ts 73 fs/udf/udftime.c udf_time_to_disk_stamp(struct timestamp *dest, struct timespec64 ts) ts 83 fs/udf/udftime.c seconds = ts.tv_sec + offset * 60; ts 91 fs/udf/udftime.c dest->centiseconds = ts.tv_nsec / 10000000; ts 92 fs/udf/udftime.c dest->hundredsOfMicroseconds = (ts.tv_nsec / 1000 - ts 94 fs/udf/udftime.c dest->microseconds = (ts.tv_nsec / 1000 - dest->centiseconds * 10000 - ts 180 fs/ufs/ialloc.c struct timespec64 ts; ts 328 fs/ufs/ialloc.c ktime_get_real_ts64(&ts); ts 329 fs/ufs/ialloc.c ufs2_inode->ui_birthtime = cpu_to_fs64(sb, ts.tv_sec); ts 330 fs/ufs/ialloc.c ufs2_inode->ui_birthnsec = cpu_to_fs32(sb, ts.tv_nsec); ts 199 include/linux/ceph/decode.h static inline void ceph_decode_timespec64(struct timespec64 *ts, ts 208 include/linux/ceph/decode.h ts->tv_sec = (time64_t)le32_to_cpu(tv->tv_sec); ts 209 include/linux/ceph/decode.h ts->tv_nsec = (long)le32_to_cpu(tv->tv_nsec); ts 212 include/linux/ceph/decode.h const struct timespec64 *ts) ts 214 include/linux/ceph/decode.h tv->tv_sec = cpu_to_le32((u32)ts->tv_sec); ts 215 include/linux/ceph/decode.h tv->tv_nsec = cpu_to_le32((u32)ts->tv_nsec); ts 1041 include/linux/efi.h extern void efi_gettimeofday (struct timespec64 *ts); ts 190 include/linux/fsl/ptp_qoriq.h int ptp_qoriq_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts); ts 192 include/linux/fsl/ptp_qoriq.h const struct timespec64 *ts); ts 427 include/linux/jiffies.h struct timespec64 ts = timespec_to_timespec64(*value); ts 429 include/linux/jiffies.h return timespec64_to_jiffies(&ts); ts 435 include/linux/jiffies.h struct timespec64 ts; ts 437 include/linux/jiffies.h jiffies_to_timespec64(jiffies, &ts); ts 438 include/linux/jiffies.h *value = timespec64_to_timespec(ts); ts 70 include/linux/ktime.h static inline ktime_t timespec_to_ktime(struct timespec ts) ts 72 include/linux/ktime.h return ktime_set(ts.tv_sec, ts.tv_nsec); ts 76 include/linux/ktime.h static inline ktime_t timespec64_to_ktime(struct timespec64 ts) ts 78 include/linux/ktime.h return ktime_set(ts.tv_sec, ts.tv_nsec); ts 227 include/linux/ktime.h struct timespec *ts) ts 230 include/linux/ktime.h *ts = ktime_to_timespec(kt); ts 246 include/linux/ktime.h struct timespec64 *ts) ts 249 include/linux/ktime.h *ts = ktime_to_timespec64(kt); ts 1484 include/linux/lsm_hooks.h int (*settime)(const struct timespec64 *ts, const struct timezone *tz); ts 121 include/linux/mfd/ipaq-micro.h void (*ts) (void *data, int len, unsigned char *rxdata); ts 1085 include/linux/nvme.h __u8 ts[24]; ts 43 include/linux/posix-clock.h int (*clock_gettime)(struct posix_clock *pc, struct timespec64 *ts); ts 45 include/linux/posix-clock.h int (*clock_getres) (struct posix_clock *pc, struct timespec64 *ts); ts 48 include/linux/posix-clock.h const struct timespec64 *ts); ts 89 include/linux/pps_kernel.h struct pps_event_time *ts, int event, void *data); ts 94 include/linux/pps_kernel.h struct timespec64 ts) ts 96 include/linux/pps_kernel.h kt->sec = ts.tv_sec; ts 97 include/linux/pps_kernel.h kt->nsec = ts.tv_nsec; ts 100 include/linux/pps_kernel.h static inline void pps_get_ts(struct pps_event_time *ts) ts 105 include/linux/pps_kernel.h ts->ts_real = ktime_to_timespec64(snap.real); ts 107 include/linux/pps_kernel.h ts->ts_raw = ktime_to_timespec64(snap.raw); ts 112 include/linux/pps_kernel.h static inline void pps_sub_ts(struct pps_event_time *ts, struct timespec64 delta) ts 114 include/linux/pps_kernel.h ts->ts_real = timespec64_sub(ts->ts_real, delta); ts 116 include/linux/pps_kernel.h ts->ts_raw = timespec64_sub(ts->ts_raw, delta); ts 205 include/linux/pstore.h u64 ts; ts 243 include/linux/pstore.h return rec->ts; ts 249 include/linux/pstore.h rec->ts = val; ts 255 include/linux/pstore.h rec->ts &= ~(TS_CPU_MASK); ts 256 include/linux/pstore.h rec->ts |= cpu; ts 262 include/linux/pstore.h return rec->ts & TS_CPU_MASK; ts 268 include/linux/pstore.h return rec->ts >> TS_CPU_SHIFT; ts 274 include/linux/pstore.h rec->ts = (rec->ts & TS_CPU_MASK) | (val << TS_CPU_SHIFT); ts 132 include/linux/ptp_clock_kernel.h int (*gettime64)(struct ptp_clock_info *ptp, struct timespec64 *ts); ts 133 include/linux/ptp_clock_kernel.h int (*gettimex64)(struct ptp_clock_info *ptp, struct timespec64 *ts, ts 137 include/linux/ptp_clock_kernel.h int (*settime64)(struct ptp_clock_info *p, const struct timespec64 *ts); ts 124 include/linux/ring_buffer.h ring_buffer_peek(struct ring_buffer *buffer, int cpu, u64 *ts, ts 127 include/linux/ring_buffer.h ring_buffer_consume(struct ring_buffer *buffer, int cpu, u64 *ts, ts 137 include/linux/ring_buffer.h ring_buffer_iter_peek(struct ring_buffer_iter *iter, u64 *ts); ts 139 include/linux/ring_buffer.h ring_buffer_read(struct ring_buffer_iter *iter, u64 *ts); ts 184 include/linux/ring_buffer.h int cpu, u64 *ts); ts 134 include/linux/security.h extern int cap_settime(const struct timespec64 *ts, const struct timezone *tz); ts 276 include/linux/security.h int security_settime64(const struct timespec64 *ts, const struct timezone *tz); ts 560 include/linux/security.h static inline int security_settime64(const struct timespec64 *ts, ts 563 include/linux/security.h return cap_settime(ts, tz); ts 3657 include/linux/skbuff.h struct timespec64 ts = ktime_to_timespec64(skb->tstamp); ts 3659 include/linux/skbuff.h stamp->tv_sec = ts.tv_sec; ts 3660 include/linux/skbuff.h stamp->tv_usec = ts.tv_nsec / 1000; ts 3672 include/linux/skbuff.h struct timespec64 ts = ktime_to_timespec64(skb->tstamp); ts 3674 include/linux/skbuff.h stamp->tv_sec = ts.tv_sec; ts 3675 include/linux/skbuff.h stamp->tv_nsec = ts.tv_nsec; ts 361 include/linux/socket.h struct timespec64 ts[3]; ts 35 include/linux/spi/max7301.h extern int __max730x_probe(struct max7301 *ts); ts 12 include/linux/time.h int get_timespec64(struct timespec64 *ts, ts 14 include/linux/time.h int put_timespec64(const struct timespec64 *ts, ts 84 include/linux/time32.h static inline struct timespec64 timespec_to_timespec64(const struct timespec ts) ts 86 include/linux/time32.h return *(const struct timespec64 *)&ts; ts 99 include/linux/time32.h static inline struct timespec64 timespec_to_timespec64(const struct timespec ts) ts 103 include/linux/time32.h ret.tv_sec = ts.tv_sec; ts 104 include/linux/time32.h ret.tv_nsec = ts.tv_nsec; ts 132 include/linux/time32.h static inline bool timespec_valid(const struct timespec *ts) ts 135 include/linux/time32.h if (ts->tv_sec < 0) ts 138 include/linux/time32.h if ((unsigned long)ts->tv_nsec >= NSEC_PER_SEC) ts 150 include/linux/time32.h static inline s64 timespec_to_ns(const struct timespec *ts) ts 152 include/linux/time32.h return ((s64) ts->tv_sec * NSEC_PER_SEC) + ts->tv_nsec; ts 69 include/linux/time64.h extern void set_normalized_timespec64(struct timespec64 *ts, time64_t sec, s64 nsec); ts 95 include/linux/time64.h static inline bool timespec64_valid(const struct timespec64 *ts) ts 98 include/linux/time64.h if (ts->tv_sec < 0) ts 101 include/linux/time64.h if ((unsigned long)ts->tv_nsec >= NSEC_PER_SEC) ts 106 include/linux/time64.h static inline bool timespec64_valid_strict(const struct timespec64 *ts) ts 108 include/linux/time64.h if (!timespec64_valid(ts)) ts 111 include/linux/time64.h if ((unsigned long long)ts->tv_sec >= KTIME_SEC_MAX) ts 116 include/linux/time64.h static inline bool timespec64_valid_settod(const struct timespec64 *ts) ts 118 include/linux/time64.h if (!timespec64_valid(ts)) ts 121 include/linux/time64.h if ((unsigned long long)ts->tv_sec >= TIME_SETTOD_SEC_MAX) ts 133 include/linux/time64.h static inline s64 timespec64_to_ns(const struct timespec64 *ts) ts 135 include/linux/time64.h return ((s64) ts->tv_sec * NSEC_PER_SEC) + ts->tv_nsec; ts 19 include/linux/timekeeping.h extern int do_settimeofday64(const struct timespec64 *ts); ts 41 include/linux/timekeeping.h extern void ktime_get_raw_ts64(struct timespec64 *ts); ts 42 include/linux/timekeeping.h extern void ktime_get_ts64(struct timespec64 *ts); ts 44 include/linux/timekeeping.h extern void ktime_get_coarse_ts64(struct timespec64 *ts); ts 45 include/linux/timekeeping.h extern void ktime_get_coarse_real_ts64(struct timespec64 *ts); ts 47 include/linux/timekeeping.h void getboottime64(struct timespec64 *ts); ts 118 include/linux/timekeeping.h struct timespec64 ts; ts 120 include/linux/timekeeping.h ktime_get_coarse_ts64(&ts); ts 121 include/linux/timekeeping.h return timespec64_to_ktime(ts); ts 187 include/linux/timekeeping.h static inline void ktime_get_boottime_ts64(struct timespec64 *ts) ts 189 include/linux/timekeeping.h *ts = ktime_to_timespec64(ktime_get_boottime()); ts 192 include/linux/timekeeping.h static inline void ktime_get_coarse_boottime_ts64(struct timespec64 *ts) ts 194 include/linux/timekeeping.h *ts = ktime_to_timespec64(ktime_get_coarse_boottime()); ts 202 include/linux/timekeeping.h static inline void ktime_get_clocktai_ts64(struct timespec64 *ts) ts 204 include/linux/timekeeping.h *ts = ktime_to_timespec64(ktime_get_clocktai()); ts 207 include/linux/timekeeping.h static inline void ktime_get_coarse_clocktai_ts64(struct timespec64 *ts) ts 209 include/linux/timekeeping.h *ts = ktime_to_timespec64(ktime_get_coarse_clocktai()); ts 288 include/linux/timekeeping.h extern void read_persistent_clock64(struct timespec64 *ts); ts 14 include/linux/timekeeping32.h static inline void getnstimeofday(struct timespec *ts) ts 19 include/linux/timekeeping32.h *ts = timespec64_to_timespec(ts64); ts 22 include/linux/timekeeping32.h static inline void ktime_get_ts(struct timespec *ts) ts 27 include/linux/timekeeping32.h *ts = timespec64_to_timespec(ts64); ts 30 include/linux/timekeeping32.h static inline void getrawmonotonic(struct timespec *ts) ts 35 include/linux/timekeeping32.h *ts = timespec64_to_timespec(ts64); ts 38 include/linux/timekeeping32.h static inline void getboottime(struct timespec *ts) ts 43 include/linux/timekeeping32.h *ts = timespec64_to_timespec(ts64); ts 99 include/linux/trace_events.h u64 ts; ts 291 include/media/cec.h u8 error_cnt, ktime_t ts); ts 306 include/media/cec.h u8 status, ktime_t ts); ts 315 include/media/cec.h struct cec_msg *msg, ktime_t ts); ts 333 include/media/cec.h bool dropped_events, ktime_t ts); ts 343 include/media/cec.h void cec_queue_pin_hpd_event(struct cec_adapter *adap, bool is_high, ktime_t ts); ts 353 include/media/cec.h void cec_queue_pin_5v_event(struct cec_adapter *adap, bool is_high, ktime_t ts); ts 86 include/media/dmxdev.h struct dmx_ts_feed *ts; ts 132 include/media/dmxdev.h struct list_head ts; ts 132 include/media/dvb_demux.h struct dmx_ts_feed ts; ts 137 include/media/dvb_demux.h dmx_ts_cb ts; ts 35 include/media/v4l2-event.h u64 ts; ts 80 include/media/videobuf-core.h u64 ts; ts 421 include/net/dsa.h struct ethtool_ts_info *ts); ts 45 include/net/inet_sock.h unsigned char ts; ts 39 include/net/lwtunnel.h struct lwtunnel_state **ts, ts 425 include/uapi/linux/cec.h __u64 ts; ts 42 include/uapi/linux/errqueue.h struct timespec ts[3]; ts 46 include/uapi/linux/errqueue.h struct __kernel_timespec ts[3]; ts 174 include/uapi/linux/omap3isp.h } ts; ts 176 include/uapi/linux/omap3isp.h struct timeval ts; ts 190 include/uapi/linux/omap3isp.h } ts; ts 119 include/uapi/linux/ptp_clock.h struct ptp_clock_time ts[2 * PTP_MAX_SAMPLES + 1]; ts 129 include/uapi/linux/ptp_clock.h struct ptp_clock_time ts[PTP_MAX_SAMPLES][3]; ts 766 ipc/mqueue.c struct timespec64 *ts) ts 768 ipc/mqueue.c if (get_timespec64(ts, u_abs_timeout)) ts 770 ipc/mqueue.c if (!timespec64_valid(ts)) ts 982 ipc/mqueue.c struct timespec64 *ts) ts 998 ipc/mqueue.c if (ts) { ts 999 ipc/mqueue.c expires = timespec64_to_ktime(*ts); ts 1003 ipc/mqueue.c audit_mq_sendrecv(mqdes, msg_len, msg_prio, ts); ts 1100 ipc/mqueue.c struct timespec64 *ts) ts 1111 ipc/mqueue.c if (ts) { ts 1112 ipc/mqueue.c expires = timespec64_to_ktime(*ts); ts 1116 ipc/mqueue.c audit_mq_sendrecv(mqdes, msg_len, 0, ts); ts 1204 ipc/mqueue.c struct timespec64 ts, *p = NULL; ts 1206 ipc/mqueue.c int res = prepare_timeout(u_abs_timeout, &ts); ts 1209 ipc/mqueue.c p = &ts; ts 1218 ipc/mqueue.c struct timespec64 ts, *p = NULL; ts 1220 ipc/mqueue.c int res = prepare_timeout(u_abs_timeout, &ts); ts 1223 ipc/mqueue.c p = &ts; ts 1533 ipc/mqueue.c struct timespec64 *ts) ts 1535 ipc/mqueue.c if (get_old_timespec32(ts, p)) ts 1537 ipc/mqueue.c if (!timespec64_valid(ts)) ts 1547 ipc/mqueue.c struct timespec64 ts, *p = NULL; ts 1549 ipc/mqueue.c int res = compat_prepare_timeout(u_abs_timeout, &ts); ts 1552 ipc/mqueue.c p = &ts; ts 1562 ipc/mqueue.c struct timespec64 ts, *p = NULL; ts 1564 ipc/mqueue.c int res = compat_prepare_timeout(u_abs_timeout, &ts); ts 1567 ipc/mqueue.c p = &ts; ts 2223 ipc/sem.c struct timespec64 ts; ts 2224 ipc/sem.c if (get_timespec64(&ts, timeout)) ts 2226 ipc/sem.c return do_semtimedop(semid, tsops, nsops, &ts); ts 2243 ipc/sem.c struct timespec64 ts; ts 2244 ipc/sem.c if (get_old_timespec32(&ts, timeout)) ts 2246 ipc/sem.c return do_semtimedop(semid, tsems, nsops, &ts); ts 43 kernel/compat.c static int __compat_get_timespec(struct timespec *ts, const struct old_timespec32 __user *cts) ts 46 kernel/compat.c __get_user(ts->tv_sec, &cts->tv_sec) || ts 47 kernel/compat.c __get_user(ts->tv_nsec, &cts->tv_nsec)) ? -EFAULT : 0; ts 50 kernel/compat.c static int __compat_put_timespec(const struct timespec *ts, struct old_timespec32 __user *cts) ts 53 kernel/compat.c __put_user(ts->tv_sec, &cts->tv_sec) || ts 54 kernel/compat.c __put_user(ts->tv_nsec, &cts->tv_nsec)) ? -EFAULT : 0; ts 75 kernel/compat.c int compat_get_timespec(struct timespec *ts, const void __user *uts) ts 78 kernel/compat.c return copy_from_user(ts, uts, sizeof(*ts)) ? -EFAULT : 0; ts 80 kernel/compat.c return __compat_get_timespec(ts, uts); ts 84 kernel/compat.c int compat_put_timespec(const struct timespec *ts, void __user *uts) ts 87 kernel/compat.c return copy_to_user(uts, ts, sizeof(*ts)) ? -EFAULT : 0; ts 89 kernel/compat.c return __compat_put_timespec(ts, uts); ts 3931 kernel/futex.c struct timespec64 ts; ts 3941 kernel/futex.c if (get_timespec64(&ts, utime)) ts 3943 kernel/futex.c if (!timespec64_valid(&ts)) ts 3946 kernel/futex.c t = timespec64_to_ktime(ts); ts 4125 kernel/futex.c struct timespec64 ts; ts 4133 kernel/futex.c if (get_old_timespec32(&ts, utime)) ts 4135 kernel/futex.c if (!timespec64_valid(&ts)) ts 4138 kernel/futex.c t = timespec64_to_ktime(ts); ts 360 kernel/irq/internals.h static __always_inline void irq_timings_push(u64 ts, int irq) ts 365 kernel/irq/internals.h irq_timing_encode(ts, irq); ts 468 kernel/irq/timings.c static inline void irq_timings_store(int irq, struct irqt_stat *irqs, u64 ts) ts 477 kernel/irq/timings.c irqs->last_ts = ts; ts 484 kernel/irq/timings.c interval = ts - old_ts; ts 536 kernel/irq/timings.c u64 ts, next_evt = U64_MAX; ts 564 kernel/irq/timings.c irq = irq_timing_decode(irqts->values[i], &ts); ts 567 kernel/irq/timings.c irq_timings_store(irq, this_cpu_ptr(s), ts); ts 578 kernel/irq/timings.c ts = __irq_timings_next_event(irqs, i, now); ts 579 kernel/irq/timings.c if (ts <= now) ts 582 kernel/irq/timings.c if (ts < next_evt) ts 583 kernel/irq/timings.c next_evt = ts; ts 834 kernel/irq/timings.c u64 ots = 0xDEAD, ts; ts 866 kernel/irq/timings.c irq = irq_timing_decode(irqts->values[i], &ts); ts 869 kernel/irq/timings.c i, ts, ots, irq, oirq); ts 871 kernel/irq/timings.c if (WARN_ON(ts != ots || irq != oirq)) ts 1295 kernel/printk/printk.c static size_t print_time(u64 ts, char *buf) ts 1297 kernel/printk/printk.c unsigned long rem_nsec = do_div(ts, 1000000000); ts 1300 kernel/printk/printk.c (unsigned long)ts, rem_nsec / 1000); ts 220 kernel/rcu/rcutorture.c u64 ts = trace_clock_local(); ts 222 kernel/rcu/rcutorture.c (void)do_div(ts, NSEC_PER_USEC); ts 223 kernel/rcu/rcutorture.c return ts; ts 335 kernel/rcu/rcutorture.c unsigned long long ts; ts 344 kernel/rcu/rcutorture.c ts = rcu_trace_clock_local(); ts 350 kernel/rcu/rcutorture.c do_trace_rcu_torture_read(cur_ops->name, NULL, ts, ts 1272 kernel/rcu/rcutorture.c unsigned long long ts; ts 1277 kernel/rcu/rcutorture.c ts = rcu_trace_clock_local(); ts 1300 kernel/rcu/rcutorture.c ts, started, completed); ts 3442 kernel/signal.c const struct timespec64 *ts) ts 3449 kernel/signal.c if (ts) { ts 3450 kernel/signal.c if (!timespec64_valid(ts)) ts 3452 kernel/signal.c timeout = timespec64_to_ktime(*ts); ts 3505 kernel/signal.c struct timespec64 ts; ts 3517 kernel/signal.c if (get_timespec64(&ts, uts)) ts 3521 kernel/signal.c ret = do_sigtimedwait(&these, &info, uts ? &ts : NULL); ts 3538 kernel/signal.c struct timespec64 ts; ts 3549 kernel/signal.c if (get_old_timespec32(&ts, uts)) ts 3553 kernel/signal.c ret = do_sigtimedwait(&these, &info, uts ? &ts : NULL); ts 1846 kernel/time/hrtimer.c int nanosleep_copyout(struct restart_block *restart, struct timespec64 *ts) ts 1851 kernel/time/hrtimer.c if (put_old_timespec32(ts, restart->nanosleep.compat_rmtp)) ts 1856 kernel/time/hrtimer.c if (put_timespec64(ts, restart->nanosleep.rmtp)) ts 714 kernel/time/ntp.c int __do_adjtimex(struct __kernel_timex *txc, const struct timespec64 *ts, ts 774 kernel/time/ntp.c txc->time.tv_sec = ts->tv_sec; ts 775 kernel/time/ntp.c txc->time.tv_usec = ts->tv_nsec; ts 777 kernel/time/ntp.c txc->time.tv_usec = ts->tv_nsec / NSEC_PER_USEC; ts 780 kernel/time/ntp.c if (unlikely(ts->tv_sec >= ntp_next_leap_sec)) { ts 792 kernel/time/ntp.c (ts->tv_sec == ntp_next_leap_sec)) { ts 813 kernel/time/ntp.c static inline struct pps_normtime pps_normalize_ts(struct timespec64 ts) ts 816 kernel/time/ntp.c .sec = ts.tv_sec, ts 817 kernel/time/ntp.c .nsec = ts.tv_nsec ts 12 kernel/time/ntp_internal.h const struct timespec64 *ts, ts 250 kernel/time/posix-clock.c static int pc_clock_gettime(clockid_t id, struct timespec64 *ts) ts 260 kernel/time/posix-clock.c err = cd.clk->ops.clock_gettime(cd.clk, ts); ts 269 kernel/time/posix-clock.c static int pc_clock_getres(clockid_t id, struct timespec64 *ts) ts 279 kernel/time/posix-clock.c err = cd.clk->ops.clock_getres(cd.clk, ts); ts 288 kernel/time/posix-clock.c static int pc_clock_settime(clockid_t id, const struct timespec64 *ts) ts 303 kernel/time/posix-clock.c err = cd.clk->ops.clock_settime(cd.clk, ts); ts 1131 kernel/time/posix-timers.c struct timespec64 ts; ts 1136 kernel/time/posix-timers.c if (get_old_timespec32(&ts, tp)) ts 1139 kernel/time/posix-timers.c return kc->clock_set(which_clock, &ts); ts 1146 kernel/time/posix-timers.c struct timespec64 ts; ts 1152 kernel/time/posix-timers.c err = kc->clock_get(which_clock, &ts); ts 1154 kernel/time/posix-timers.c if (!err && put_old_timespec32(&ts, tp)) ts 1182 kernel/time/posix-timers.c struct timespec64 ts; ts 1188 kernel/time/posix-timers.c err = kc->clock_getres(which_clock, &ts); ts 1189 kernel/time/posix-timers.c if (!err && tp && put_old_timespec32(&ts, tp)) ts 82 kernel/time/test_udelay.c struct timespec64 ts; ts 84 kernel/time/test_udelay.c ktime_get_ts64(&ts); ts 86 kernel/time/test_udelay.c loops_per_jiffy, (s64)ts.tv_sec, ts.tv_nsec); ts 117 kernel/time/tick-sched.c static void tick_sched_do_timer(struct tick_sched *ts, ktime_t now) ts 144 kernel/time/tick-sched.c if (ts->inidle) ts 145 kernel/time/tick-sched.c ts->got_idle_tick = 1; ts 148 kernel/time/tick-sched.c static void tick_sched_handle(struct tick_sched *ts, struct pt_regs *regs) ts 159 kernel/time/tick-sched.c if (ts->tick_stopped) { ts 162 kernel/time/tick-sched.c ts->idle_jiffies++; ts 168 kernel/time/tick-sched.c ts->next_tick = 0; ts 208 kernel/time/tick-sched.c static bool can_stop_full_tick(int cpu, struct tick_sched *ts) ts 218 kernel/time/tick-sched.c if (check_tick_dependency(&ts->tick_dep_mask)) ts 313 kernel/time/tick-sched.c struct tick_sched *ts; ts 315 kernel/time/tick-sched.c ts = per_cpu_ptr(&tick_cpu_sched, cpu); ts 317 kernel/time/tick-sched.c prev = atomic_fetch_or(BIT(bit), &ts->tick_dep_mask); ts 334 kernel/time/tick-sched.c struct tick_sched *ts = per_cpu_ptr(&tick_cpu_sched, cpu); ts 336 kernel/time/tick-sched.c atomic_andnot(BIT(bit), &ts->tick_dep_mask); ts 379 kernel/time/tick-sched.c struct tick_sched *ts; ts 386 kernel/time/tick-sched.c ts = this_cpu_ptr(&tick_cpu_sched); ts 388 kernel/time/tick-sched.c if (ts->tick_stopped) { ts 480 kernel/time/tick-sched.c struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); ts 482 kernel/time/tick-sched.c return ts->tick_stopped; ts 487 kernel/time/tick-sched.c struct tick_sched *ts = per_cpu_ptr(&tick_cpu_sched, cpu); ts 489 kernel/time/tick-sched.c return ts->tick_stopped; ts 519 kernel/time/tick-sched.c update_ts_time_stats(int cpu, struct tick_sched *ts, ktime_t now, u64 *last_update_time) ts 523 kernel/time/tick-sched.c if (ts->idle_active) { ts 524 kernel/time/tick-sched.c delta = ktime_sub(now, ts->idle_entrytime); ts 526 kernel/time/tick-sched.c ts->iowait_sleeptime = ktime_add(ts->iowait_sleeptime, delta); ts 528 kernel/time/tick-sched.c ts->idle_sleeptime = ktime_add(ts->idle_sleeptime, delta); ts 529 kernel/time/tick-sched.c ts->idle_entrytime = now; ts 537 kernel/time/tick-sched.c static void tick_nohz_stop_idle(struct tick_sched *ts, ktime_t now) ts 539 kernel/time/tick-sched.c update_ts_time_stats(smp_processor_id(), ts, now, NULL); ts 540 kernel/time/tick-sched.c ts->idle_active = 0; ts 545 kernel/time/tick-sched.c static void tick_nohz_start_idle(struct tick_sched *ts) ts 547 kernel/time/tick-sched.c ts->idle_entrytime = ktime_get(); ts 548 kernel/time/tick-sched.c ts->idle_active = 1; ts 568 kernel/time/tick-sched.c struct tick_sched *ts = &per_cpu(tick_cpu_sched, cpu); ts 576 kernel/time/tick-sched.c update_ts_time_stats(cpu, ts, now, last_update_time); ts 577 kernel/time/tick-sched.c idle = ts->idle_sleeptime; ts 579 kernel/time/tick-sched.c if (ts->idle_active && !nr_iowait_cpu(cpu)) { ts 580 kernel/time/tick-sched.c ktime_t delta = ktime_sub(now, ts->idle_entrytime); ts 582 kernel/time/tick-sched.c idle = ktime_add(ts->idle_sleeptime, delta); ts 584 kernel/time/tick-sched.c idle = ts->idle_sleeptime; ts 609 kernel/time/tick-sched.c struct tick_sched *ts = &per_cpu(tick_cpu_sched, cpu); ts 617 kernel/time/tick-sched.c update_ts_time_stats(cpu, ts, now, last_update_time); ts 618 kernel/time/tick-sched.c iowait = ts->iowait_sleeptime; ts 620 kernel/time/tick-sched.c if (ts->idle_active && nr_iowait_cpu(cpu) > 0) { ts 621 kernel/time/tick-sched.c ktime_t delta = ktime_sub(now, ts->idle_entrytime); ts 623 kernel/time/tick-sched.c iowait = ktime_add(ts->iowait_sleeptime, delta); ts 625 kernel/time/tick-sched.c iowait = ts->iowait_sleeptime; ts 633 kernel/time/tick-sched.c static void tick_nohz_restart(struct tick_sched *ts, ktime_t now) ts 635 kernel/time/tick-sched.c hrtimer_cancel(&ts->sched_timer); ts 636 kernel/time/tick-sched.c hrtimer_set_expires(&ts->sched_timer, ts->last_tick); ts 639 kernel/time/tick-sched.c hrtimer_forward(&ts->sched_timer, now, tick_period); ts 641 kernel/time/tick-sched.c if (ts->nohz_mode == NOHZ_MODE_HIGHRES) { ts 642 kernel/time/tick-sched.c hrtimer_start_expires(&ts->sched_timer, ts 645 kernel/time/tick-sched.c tick_program_event(hrtimer_get_expires(&ts->sched_timer), 1); ts 652 kernel/time/tick-sched.c ts->next_tick = 0; ts 660 kernel/time/tick-sched.c static ktime_t tick_nohz_next_event(struct tick_sched *ts, int cpu) ts 672 kernel/time/tick-sched.c ts->last_jiffies = basejiff; ts 673 kernel/time/tick-sched.c ts->timer_expires_base = basemono; ts 697 kernel/time/tick-sched.c ts->next_timer = next_tmr; ts 717 kernel/time/tick-sched.c if (!ts->tick_stopped) { ts 718 kernel/time/tick-sched.c ts->timer_expires = 0; ts 730 kernel/time/tick-sched.c (tick_do_timer_cpu != TICK_DO_TIMER_NONE || !ts->do_timer_last)) ts 739 kernel/time/tick-sched.c ts->timer_expires = min_t(u64, expires, next_tick); ts 742 kernel/time/tick-sched.c return ts->timer_expires; ts 745 kernel/time/tick-sched.c static void tick_nohz_stop_tick(struct tick_sched *ts, int cpu) ts 748 kernel/time/tick-sched.c u64 basemono = ts->timer_expires_base; ts 749 kernel/time/tick-sched.c u64 expires = ts->timer_expires; ts 753 kernel/time/tick-sched.c ts->timer_expires_base = 0; ts 765 kernel/time/tick-sched.c ts->do_timer_last = 1; ts 767 kernel/time/tick-sched.c ts->do_timer_last = 0; ts 771 kernel/time/tick-sched.c if (ts->tick_stopped && (expires == ts->next_tick)) { ts 773 kernel/time/tick-sched.c if (tick == KTIME_MAX || ts->next_tick == hrtimer_get_expires(&ts->sched_timer)) ts 778 kernel/time/tick-sched.c basemono, ts->next_tick, dev->next_event, ts 779 kernel/time/tick-sched.c hrtimer_active(&ts->sched_timer), hrtimer_get_expires(&ts->sched_timer)); ts 789 kernel/time/tick-sched.c if (!ts->tick_stopped) { ts 793 kernel/time/tick-sched.c ts->last_tick = hrtimer_get_expires(&ts->sched_timer); ts 794 kernel/time/tick-sched.c ts->tick_stopped = 1; ts 798 kernel/time/tick-sched.c ts->next_tick = tick; ts 805 kernel/time/tick-sched.c if (ts->nohz_mode == NOHZ_MODE_HIGHRES) ts 806 kernel/time/tick-sched.c hrtimer_cancel(&ts->sched_timer); ts 810 kernel/time/tick-sched.c if (ts->nohz_mode == NOHZ_MODE_HIGHRES) { ts 811 kernel/time/tick-sched.c hrtimer_start(&ts->sched_timer, tick, ts 814 kernel/time/tick-sched.c hrtimer_set_expires(&ts->sched_timer, tick); ts 819 kernel/time/tick-sched.c static void tick_nohz_retain_tick(struct tick_sched *ts) ts 821 kernel/time/tick-sched.c ts->timer_expires_base = 0; ts 825 kernel/time/tick-sched.c static void tick_nohz_stop_sched_tick(struct tick_sched *ts, int cpu) ts 827 kernel/time/tick-sched.c if (tick_nohz_next_event(ts, cpu)) ts 828 kernel/time/tick-sched.c tick_nohz_stop_tick(ts, cpu); ts 830 kernel/time/tick-sched.c tick_nohz_retain_tick(ts); ts 834 kernel/time/tick-sched.c static void tick_nohz_restart_sched_tick(struct tick_sched *ts, ktime_t now) ts 850 kernel/time/tick-sched.c ts->tick_stopped = 0; ts 851 kernel/time/tick-sched.c ts->idle_exittime = now; ts 853 kernel/time/tick-sched.c tick_nohz_restart(ts, now); ts 856 kernel/time/tick-sched.c static void tick_nohz_full_update_tick(struct tick_sched *ts) ts 864 kernel/time/tick-sched.c if (!ts->tick_stopped && ts->nohz_mode == NOHZ_MODE_INACTIVE) ts 867 kernel/time/tick-sched.c if (can_stop_full_tick(cpu, ts)) ts 868 kernel/time/tick-sched.c tick_nohz_stop_sched_tick(ts, cpu); ts 869 kernel/time/tick-sched.c else if (ts->tick_stopped) ts 870 kernel/time/tick-sched.c tick_nohz_restart_sched_tick(ts, ktime_get()); ts 874 kernel/time/tick-sched.c static bool can_stop_idle_tick(int cpu, struct tick_sched *ts) ts 890 kernel/time/tick-sched.c ts->next_tick = 0; ts 894 kernel/time/tick-sched.c if (unlikely(ts->nohz_mode == NOHZ_MODE_INACTIVE)) ts 935 kernel/time/tick-sched.c static void __tick_nohz_idle_stop_tick(struct tick_sched *ts) ts 944 kernel/time/tick-sched.c if (ts->timer_expires_base) ts 945 kernel/time/tick-sched.c expires = ts->timer_expires; ts 946 kernel/time/tick-sched.c else if (can_stop_idle_tick(cpu, ts)) ts 947 kernel/time/tick-sched.c expires = tick_nohz_next_event(ts, cpu); ts 951 kernel/time/tick-sched.c ts->idle_calls++; ts 954 kernel/time/tick-sched.c int was_stopped = ts->tick_stopped; ts 956 kernel/time/tick-sched.c tick_nohz_stop_tick(ts, cpu); ts 958 kernel/time/tick-sched.c ts->idle_sleeps++; ts 959 kernel/time/tick-sched.c ts->idle_expires = expires; ts 961 kernel/time/tick-sched.c if (!was_stopped && ts->tick_stopped) { ts 962 kernel/time/tick-sched.c ts->idle_jiffies = ts->last_jiffies; ts 966 kernel/time/tick-sched.c tick_nohz_retain_tick(ts); ts 997 kernel/time/tick-sched.c struct tick_sched *ts; ts 1003 kernel/time/tick-sched.c ts = this_cpu_ptr(&tick_cpu_sched); ts 1005 kernel/time/tick-sched.c WARN_ON_ONCE(ts->timer_expires_base); ts 1007 kernel/time/tick-sched.c ts->inidle = 1; ts 1008 kernel/time/tick-sched.c tick_nohz_start_idle(ts); ts 1023 kernel/time/tick-sched.c struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); ts 1025 kernel/time/tick-sched.c if (ts->inidle) ts 1026 kernel/time/tick-sched.c tick_nohz_start_idle(ts); ts 1028 kernel/time/tick-sched.c tick_nohz_full_update_tick(ts); ts 1036 kernel/time/tick-sched.c struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); ts 1038 kernel/time/tick-sched.c if (ts->got_idle_tick) { ts 1039 kernel/time/tick-sched.c ts->got_idle_tick = 0; ts 1066 kernel/time/tick-sched.c struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); ts 1072 kernel/time/tick-sched.c ktime_t now = ts->idle_entrytime; ts 1075 kernel/time/tick-sched.c WARN_ON_ONCE(!ts->inidle); ts 1079 kernel/time/tick-sched.c if (!can_stop_idle_tick(cpu, ts)) ts 1082 kernel/time/tick-sched.c next_event = tick_nohz_next_event(ts, cpu); ts 1091 kernel/time/tick-sched.c hrtimer_next_event_without(&ts->sched_timer)); ts 1104 kernel/time/tick-sched.c struct tick_sched *ts = tick_get_tick_sched(cpu); ts 1106 kernel/time/tick-sched.c return ts->idle_calls; ts 1116 kernel/time/tick-sched.c struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); ts 1118 kernel/time/tick-sched.c return ts->idle_calls; ts 1121 kernel/time/tick-sched.c static void tick_nohz_account_idle_ticks(struct tick_sched *ts) ts 1133 kernel/time/tick-sched.c ticks = jiffies - ts->idle_jiffies; ts 1142 kernel/time/tick-sched.c static void __tick_nohz_idle_restart_tick(struct tick_sched *ts, ktime_t now) ts 1144 kernel/time/tick-sched.c tick_nohz_restart_sched_tick(ts, now); ts 1145 kernel/time/tick-sched.c tick_nohz_account_idle_ticks(ts); ts 1150 kernel/time/tick-sched.c struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); ts 1152 kernel/time/tick-sched.c if (ts->tick_stopped) ts 1153 kernel/time/tick-sched.c __tick_nohz_idle_restart_tick(ts, ktime_get()); ts 1165 kernel/time/tick-sched.c struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); ts 1171 kernel/time/tick-sched.c WARN_ON_ONCE(!ts->inidle); ts 1172 kernel/time/tick-sched.c WARN_ON_ONCE(ts->timer_expires_base); ts 1174 kernel/time/tick-sched.c ts->inidle = 0; ts 1175 kernel/time/tick-sched.c idle_active = ts->idle_active; ts 1176 kernel/time/tick-sched.c tick_stopped = ts->tick_stopped; ts 1182 kernel/time/tick-sched.c tick_nohz_stop_idle(ts, now); ts 1185 kernel/time/tick-sched.c __tick_nohz_idle_restart_tick(ts, now); ts 1195 kernel/time/tick-sched.c struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); ts 1201 kernel/time/tick-sched.c tick_sched_do_timer(ts, now); ts 1202 kernel/time/tick-sched.c tick_sched_handle(ts, regs); ts 1205 kernel/time/tick-sched.c if (unlikely(ts->tick_stopped)) ts 1208 kernel/time/tick-sched.c hrtimer_forward(&ts->sched_timer, now, tick_period); ts 1209 kernel/time/tick-sched.c tick_program_event(hrtimer_get_expires(&ts->sched_timer), 1); ts 1212 kernel/time/tick-sched.c static inline void tick_nohz_activate(struct tick_sched *ts, int mode) ts 1216 kernel/time/tick-sched.c ts->nohz_mode = mode; ts 1227 kernel/time/tick-sched.c struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); ts 1240 kernel/time/tick-sched.c hrtimer_init(&ts->sched_timer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS_HARD); ts 1244 kernel/time/tick-sched.c hrtimer_set_expires(&ts->sched_timer, next); ts 1245 kernel/time/tick-sched.c hrtimer_forward_now(&ts->sched_timer, tick_period); ts 1246 kernel/time/tick-sched.c tick_program_event(hrtimer_get_expires(&ts->sched_timer), 1); ts 1247 kernel/time/tick-sched.c tick_nohz_activate(ts, NOHZ_MODE_LOWRES); ts 1252 kernel/time/tick-sched.c struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); ts 1255 kernel/time/tick-sched.c if (!ts->idle_active && !ts->tick_stopped) ts 1258 kernel/time/tick-sched.c if (ts->idle_active) ts 1259 kernel/time/tick-sched.c tick_nohz_stop_idle(ts, now); ts 1260 kernel/time/tick-sched.c if (ts->tick_stopped) ts 1268 kernel/time/tick-sched.c static inline void tick_nohz_activate(struct tick_sched *ts, int mode) { } ts 1291 kernel/time/tick-sched.c struct tick_sched *ts = ts 1296 kernel/time/tick-sched.c tick_sched_do_timer(ts, now); ts 1303 kernel/time/tick-sched.c tick_sched_handle(ts, regs); ts 1305 kernel/time/tick-sched.c ts->next_tick = 0; ts 1308 kernel/time/tick-sched.c if (unlikely(ts->tick_stopped)) ts 1331 kernel/time/tick-sched.c struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); ts 1337 kernel/time/tick-sched.c hrtimer_init(&ts->sched_timer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS_HARD); ts 1338 kernel/time/tick-sched.c ts->sched_timer.function = tick_sched_timer; ts 1341 kernel/time/tick-sched.c hrtimer_set_expires(&ts->sched_timer, tick_init_jiffy_update()); ts 1348 kernel/time/tick-sched.c hrtimer_add_expires_ns(&ts->sched_timer, offset); ts 1351 kernel/time/tick-sched.c hrtimer_forward(&ts->sched_timer, now, tick_period); ts 1352 kernel/time/tick-sched.c hrtimer_start_expires(&ts->sched_timer, HRTIMER_MODE_ABS_PINNED_HARD); ts 1353 kernel/time/tick-sched.c tick_nohz_activate(ts, NOHZ_MODE_HIGHRES); ts 1360 kernel/time/tick-sched.c struct tick_sched *ts = &per_cpu(tick_cpu_sched, cpu); ts 1363 kernel/time/tick-sched.c if (ts->sched_timer.base) ts 1364 kernel/time/tick-sched.c hrtimer_cancel(&ts->sched_timer); ts 1367 kernel/time/tick-sched.c memset(ts, 0, sizeof(*ts)); ts 1387 kernel/time/tick-sched.c struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); ts 1389 kernel/time/tick-sched.c set_bit(0, &ts->check_clocks); ts 1402 kernel/time/tick-sched.c struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); ts 1404 kernel/time/tick-sched.c if (!test_and_clear_bit(0, &ts->check_clocks)) ts 1407 kernel/time/tick-sched.c if (ts->nohz_mode != NOHZ_MODE_INACTIVE) ts 144 kernel/time/time.c struct timespec64 ts; ts 146 kernel/time/time.c ktime_get_real_ts64(&ts); ts 147 kernel/time/time.c if (put_user(ts.tv_sec, &tv->tv_sec) || ts 148 kernel/time/time.c put_user(ts.tv_nsec / 1000, &tv->tv_usec)) ts 229 kernel/time/time.c struct timespec64 ts; ts 231 kernel/time/time.c ktime_get_real_ts64(&ts); ts 232 kernel/time/time.c if (put_user(ts.tv_sec, &tv->tv_sec) || ts 233 kernel/time/time.c put_user(ts.tv_nsec / 1000, &tv->tv_usec)) ts 462 kernel/time/time.c struct timespec ts; ts 468 kernel/time/time.c ts.tv_sec = div_s64_rem(nsec, NSEC_PER_SEC, &rem); ts 470 kernel/time/time.c ts.tv_sec--; ts 473 kernel/time/time.c ts.tv_nsec = rem; ts 475 kernel/time/time.c return ts; ts 487 kernel/time/time.c struct timespec ts = ns_to_timespec(nsec); ts 490 kernel/time/time.c tv.tv_sec = ts.tv_sec; ts 491 kernel/time/time.c tv.tv_usec = (suseconds_t) ts.tv_nsec / 1000; ts 499 kernel/time/time.c struct timespec64 ts = ns_to_timespec64(nsec); ts 502 kernel/time/time.c tv.tv_sec = ts.tv_sec; ts 503 kernel/time/time.c tv.tv_usec = (suseconds_t)ts.tv_nsec / 1000; ts 523 kernel/time/time.c void set_normalized_timespec64(struct timespec64 *ts, time64_t sec, s64 nsec) ts 540 kernel/time/time.c ts->tv_sec = sec; ts 541 kernel/time/time.c ts->tv_nsec = nsec; ts 553 kernel/time/time.c struct timespec64 ts; ts 559 kernel/time/time.c ts.tv_sec = div_s64_rem(nsec, NSEC_PER_SEC, &rem); ts 561 kernel/time/time.c ts.tv_sec--; ts 564 kernel/time/time.c ts.tv_nsec = rem; ts 566 kernel/time/time.c return ts; ts 871 kernel/time/time.c int get_timespec64(struct timespec64 *ts, ts 881 kernel/time/time.c ts->tv_sec = kts.tv_sec; ts 888 kernel/time/time.c ts->tv_nsec = kts.tv_nsec; ts 894 kernel/time/time.c int put_timespec64(const struct timespec64 *ts, ts 898 kernel/time/time.c .tv_sec = ts->tv_sec, ts 899 kernel/time/time.c .tv_nsec = ts->tv_nsec ts 909 kernel/time/time.c struct old_timespec32 ts; ts 912 kernel/time/time.c ret = copy_from_user(&ts, cts, sizeof(ts)); ts 916 kernel/time/time.c ts64->tv_sec = ts.tv_sec; ts 917 kernel/time/time.c ts64->tv_nsec = ts.tv_nsec; ts 925 kernel/time/time.c struct old_timespec32 ts = { ts 929 kernel/time/time.c return copy_to_user(cts, &ts, sizeof(ts)) ? -EFAULT : 0; ts 932 kernel/time/time.c int get_old_timespec32(struct timespec64 *ts, const void __user *uts) ts 935 kernel/time/time.c return copy_from_user(ts, uts, sizeof(*ts)) ? -EFAULT : 0; ts 937 kernel/time/time.c return __get_old_timespec32(ts, uts); ts 941 kernel/time/time.c int put_old_timespec32(const struct timespec64 *ts, void __user *uts) ts 944 kernel/time/time.c return copy_to_user(uts, ts, sizeof(*ts)) ? -EFAULT : 0; ts 946 kernel/time/time.c return __put_old_timespec32(ts, uts); ts 109 kernel/time/timekeeping.c struct timespec64 ts; ts 111 kernel/time/timekeeping.c ts.tv_sec = tk->xtime_sec; ts 112 kernel/time/timekeeping.c ts.tv_nsec = (long)(tk->tkr_mono.xtime_nsec >> tk->tkr_mono.shift); ts 113 kernel/time/timekeeping.c return ts; ts 116 kernel/time/timekeeping.c static void tk_set_xtime(struct timekeeper *tk, const struct timespec64 *ts) ts 118 kernel/time/timekeeping.c tk->xtime_sec = ts->tv_sec; ts 119 kernel/time/timekeeping.c tk->tkr_mono.xtime_nsec = (u64)ts->tv_nsec << tk->tkr_mono.shift; ts 122 kernel/time/timekeeping.c static void tk_xtime_add(struct timekeeper *tk, const struct timespec64 *ts) ts 124 kernel/time/timekeeping.c tk->xtime_sec += ts->tv_sec; ts 125 kernel/time/timekeeping.c tk->tkr_mono.xtime_nsec += (u64)ts->tv_nsec << tk->tkr_mono.shift; ts 726 kernel/time/timekeeping.c void ktime_get_real_ts64(struct timespec64 *ts) ts 737 kernel/time/timekeeping.c ts->tv_sec = tk->xtime_sec; ts 742 kernel/time/timekeeping.c ts->tv_nsec = 0; ts 743 kernel/time/timekeeping.c timespec64_add_ns(ts, nsecs); ts 880 kernel/time/timekeeping.c void ktime_get_ts64(struct timespec64 *ts) ts 891 kernel/time/timekeeping.c ts->tv_sec = tk->xtime_sec; ts 897 kernel/time/timekeeping.c ts->tv_sec += tomono.tv_sec; ts 898 kernel/time/timekeeping.c ts->tv_nsec = 0; ts 899 kernel/time/timekeeping.c timespec64_add_ns(ts, nsec + tomono.tv_nsec); ts 1036 kernel/time/timekeeping.c struct system_device_crosststamp *ts) ts 1057 kernel/time/timekeeping.c ktime_sub(ts->sys_monoraw, history->raw)); ts 1075 kernel/time/timekeeping.c ktime_sub(ts->sys_realtime, history->real)); ts 1084 kernel/time/timekeeping.c ts->sys_monoraw = ktime_add_ns(history->raw, corr_raw); ts 1085 kernel/time/timekeeping.c ts->sys_realtime = ktime_add_ns(history->real, corr_real); ts 1087 kernel/time/timekeeping.c ts->sys_monoraw = ktime_sub_ns(ts->sys_monoraw, corr_raw); ts 1088 kernel/time/timekeeping.c ts->sys_realtime = ktime_sub_ns(ts->sys_realtime, corr_real); ts 1224 kernel/time/timekeeping.c int do_settimeofday64(const struct timespec64 *ts) ts 1231 kernel/time/timekeeping.c if (!timespec64_valid_settod(ts)) ts 1240 kernel/time/timekeeping.c ts_delta.tv_sec = ts->tv_sec - xt.tv_sec; ts 1241 kernel/time/timekeeping.c ts_delta.tv_nsec = ts->tv_nsec - xt.tv_nsec; ts 1250 kernel/time/timekeeping.c tk_set_xtime(tk, ts); ts 1273 kernel/time/timekeeping.c static int timekeeping_inject_offset(const struct timespec64 *ts) ts 1280 kernel/time/timekeeping.c if (ts->tv_nsec < 0 || ts->tv_nsec >= NSEC_PER_SEC) ts 1289 kernel/time/timekeeping.c tmp = timespec64_add(tk_xtime(tk), *ts); ts 1290 kernel/time/timekeeping.c if (timespec64_compare(&tk->wall_to_monotonic, ts) > 0 || ts 1296 kernel/time/timekeeping.c tk_xtime_add(tk, ts); ts 1297 kernel/time/timekeeping.c tk_set_wall_to_mono(tk, timespec64_sub(tk->wall_to_monotonic, *ts)); ts 1419 kernel/time/timekeeping.c void ktime_get_raw_ts64(struct timespec64 *ts) ts 1427 kernel/time/timekeeping.c ts->tv_sec = tk->raw_sec; ts 1432 kernel/time/timekeeping.c ts->tv_nsec = 0; ts 1433 kernel/time/timekeeping.c timespec64_add_ns(ts, nsecs); ts 1485 kernel/time/timekeeping.c void __weak read_persistent_clock64(struct timespec64 *ts) ts 1487 kernel/time/timekeeping.c ts->tv_sec = 0; ts 1488 kernel/time/timekeeping.c ts->tv_nsec = 0; ts 1984 kernel/time/timekeeping.c struct timespec64 ts; ts 1988 kernel/time/timekeeping.c ts.tv_sec = leap; ts 1989 kernel/time/timekeeping.c ts.tv_nsec = 0; ts 1991 kernel/time/timekeeping.c timespec64_sub(tk->wall_to_monotonic, ts)); ts 2151 kernel/time/timekeeping.c void getboottime64(struct timespec64 *ts) ts 2156 kernel/time/timekeeping.c *ts = ktime_to_timespec64(t); ts 2160 kernel/time/timekeeping.c void ktime_get_coarse_real_ts64(struct timespec64 *ts) ts 2168 kernel/time/timekeeping.c *ts = tk_xtime(tk); ts 2173 kernel/time/timekeeping.c void ktime_get_coarse_ts64(struct timespec64 *ts) ts 2186 kernel/time/timekeeping.c set_normalized_timespec64(ts, now.tv_sec + mono.tv_sec, ts 2318 kernel/time/timekeeping.c struct timespec64 ts; ts 2342 kernel/time/timekeeping.c ktime_get_real_ts64(&ts); ts 2348 kernel/time/timekeeping.c ret = __do_adjtimex(txc, &ts, &tai, &ad); ts 161 kernel/time/timer_list.c (unsigned long long)(ts->x)) ts 164 kernel/time/timer_list.c (unsigned long long)(ktime_to_ns(ts->x))) ts 166 kernel/time/timer_list.c struct tick_sched *ts = tick_get_tick_sched(cpu); ts 1284 kernel/trace/blktrace.c unsigned long long ts = iter->ts; ts 1285 kernel/trace/blktrace.c unsigned long nsec_rem = do_div(ts, NSEC_PER_SEC); ts 1286 kernel/trace/blktrace.c unsigned secs = (unsigned long)ts; ts 1550 kernel/trace/blktrace.c .time = iter->ts, ts 289 kernel/trace/ring_buffer.c u64 ts; ts 291 kernel/trace/ring_buffer.c ts = event->array[0]; ts 292 kernel/trace/ring_buffer.c ts <<= TS_SHIFT; ts 293 kernel/trace/ring_buffer.c ts += event->time_delta; ts 295 kernel/trace/ring_buffer.c return ts; ts 416 kernel/trace/ring_buffer.c u64 ts; ts 764 kernel/trace/ring_buffer.c int cpu, u64 *ts) ts 767 kernel/trace/ring_buffer.c *ts >>= DEBUG_SHIFT; ts 2805 kernel/trace/ring_buffer.c (unsigned long long)info->ts, ts 2862 kernel/trace/ring_buffer.c tail_page->page->time_stamp = info->ts; ts 2914 kernel/trace/ring_buffer.c info.ts = rb_time_stamp(cpu_buffer->buffer); ts 2915 kernel/trace/ring_buffer.c diff = info.ts - cpu_buffer->write_stamp; ts 2921 kernel/trace/ring_buffer.c info.delta = info.ts; ts 2924 kernel/trace/ring_buffer.c if (likely(info.ts >= cpu_buffer->write_stamp)) { ts 3877 kernel/trace/ring_buffer.c rb_buffer_peek(struct ring_buffer_per_cpu *cpu_buffer, u64 *ts, ts 3884 kernel/trace/ring_buffer.c if (ts) ts 3885 kernel/trace/ring_buffer.c *ts = 0; ts 3922 kernel/trace/ring_buffer.c if (ts) { ts 3923 kernel/trace/ring_buffer.c *ts = ring_buffer_event_time_stamp(event); ts 3925 kernel/trace/ring_buffer.c cpu_buffer->cpu, ts); ts 3932 kernel/trace/ring_buffer.c if (ts && !(*ts)) { ts 3933 kernel/trace/ring_buffer.c *ts = cpu_buffer->read_stamp + event->time_delta; ts 3935 kernel/trace/ring_buffer.c cpu_buffer->cpu, ts); ts 3950 kernel/trace/ring_buffer.c rb_iter_peek(struct ring_buffer_iter *iter, u64 *ts) ts 3957 kernel/trace/ring_buffer.c if (ts) ts 3958 kernel/trace/ring_buffer.c *ts = 0; ts 4012 kernel/trace/ring_buffer.c if (ts) { ts 4013 kernel/trace/ring_buffer.c *ts = ring_buffer_event_time_stamp(event); ts 4015 kernel/trace/ring_buffer.c cpu_buffer->cpu, ts); ts 4022 kernel/trace/ring_buffer.c if (ts && !(*ts)) { ts 4023 kernel/trace/ring_buffer.c *ts = iter->read_stamp + event->time_delta; ts 4025 kernel/trace/ring_buffer.c cpu_buffer->cpu, ts); ts 4080 kernel/trace/ring_buffer.c ring_buffer_peek(struct ring_buffer *buffer, int cpu, u64 *ts, ts 4094 kernel/trace/ring_buffer.c event = rb_buffer_peek(cpu_buffer, ts, lost_events); ts 4115 kernel/trace/ring_buffer.c ring_buffer_iter_peek(struct ring_buffer_iter *iter, u64 *ts) ts 4123 kernel/trace/ring_buffer.c event = rb_iter_peek(iter, ts); ts 4144 kernel/trace/ring_buffer.c ring_buffer_consume(struct ring_buffer *buffer, int cpu, u64 *ts, ts 4163 kernel/trace/ring_buffer.c event = rb_buffer_peek(cpu_buffer, ts, lost_events); ts 4308 kernel/trace/ring_buffer.c ring_buffer_read(struct ring_buffer_iter *iter, u64 *ts) ts 4316 kernel/trace/ring_buffer.c event = rb_iter_peek(iter, ts); ts 16 kernel/trace/ring_buffer_benchmark.c u64 ts; ts 89 kernel/trace/ring_buffer_benchmark.c u64 ts; ts 91 kernel/trace/ring_buffer_benchmark.c event = ring_buffer_consume(buffer, cpu, &ts, NULL); ts 593 kernel/trace/trace.c u64 ts; ts 599 kernel/trace/trace.c ts = ring_buffer_time_stamp(buf->buffer, cpu); ts 600 kernel/trace/trace.c ring_buffer_normalize_time_stamp(buf->buffer, cpu, &ts); ts 602 kernel/trace/trace.c return ts; ts 3276 kernel/trace/trace.c peek_next_entry(struct trace_iterator *iter, int cpu, u64 *ts, ts 3283 kernel/trace/trace.c event = ring_buffer_iter_peek(buf_iter, ts); ts 3285 kernel/trace/trace.c event = ring_buffer_peek(iter->trace_buffer->buffer, cpu, ts, ts 3304 kernel/trace/trace.c u64 next_ts = 0, ts; ts 3328 kernel/trace/trace.c ent = peek_next_entry(iter, cpu, &ts, &lost_events); ts 3333 kernel/trace/trace.c if (ent && (!next || ts < next_ts)) { ts 3336 kernel/trace/trace.c next_ts = ts; ts 3367 kernel/trace/trace.c &iter->lost_events, &iter->ts); ts 3377 kernel/trace/trace.c ring_buffer_consume(iter->trace_buffer->buffer, iter->cpu, &iter->ts, ts 3413 kernel/trace/trace.c u64 ts; ts 3428 kernel/trace/trace.c while ((event = ring_buffer_iter_peek(buf_iter, &ts))) { ts 3429 kernel/trace/trace.c if (ts >= iter->trace_buffer->time_start) ts 3766 kernel/trace/trace.c entry->pid, iter->cpu, iter->ts); ts 3793 kernel/trace/trace.c SEQ_PUT_HEX_FIELD(s, iter->ts); ts 3822 kernel/trace/trace.c SEQ_PUT_FIELD(s, iter->ts); ts 6969 kernel/trace/trace.c u64 ts; ts 7075 kernel/trace/trace.c err->info.ts = local_clock(); ts 7133 kernel/trace/trace.c u64 sec = err->info.ts; ts 1539 kernel/trace/trace_events_hist.c u64 ts = ring_buffer_event_time_stamp(rbe); ts 1542 kernel/trace/trace_events_hist.c ts = ns2usecs(ts); ts 1544 kernel/trace/trace_events_hist.c return ts; ts 506 kernel/trace/trace_functions_graph.c usecs = iter->ts - iter->trace_buffer->time_start; ts 527 kernel/trace/trace_functions_graph.c print_graph_abs_time(iter->ts, s); ts 739 kernel/trace/trace_functions_graph.c print_graph_abs_time(iter->ts, s); ts 173 kernel/trace/trace_mmiotrace.c unsigned long long t = ns2usecs(iter->ts); ts 218 kernel/trace/trace_mmiotrace.c unsigned long long t = ns2usecs(iter->ts); ts 252 kernel/trace/trace_mmiotrace.c unsigned long long t = ns2usecs(iter->ts); ts 526 kernel/trace/trace_output.c unsigned long long abs_ts = iter->ts - iter->trace_buffer->time_start; ts 527 kernel/trace/trace_output.c unsigned long long rel_ts = next_ts - iter->ts; ts 543 kernel/trace/trace_output.c ns2usecs(iter->ts), ts 550 kernel/trace/trace_output.c iter->ts, abs_ts, rel_ts); ts 593 kernel/trace/trace_output.c t = ns2usecs(iter->ts); ts 598 kernel/trace/trace_output.c trace_seq_printf(s, " %12llu: ", iter->ts); ts 619 kernel/trace/trace_output.c next_ts = iter->ts; ts 34 kernel/trace/trace_stat.c struct tracer_stat *ts; ts 52 kernel/trace/trace_stat.c if (session->ts->stat_release) ts 53 kernel/trace/trace_stat.c session->ts->stat_release(snode->stat); ts 127 kernel/trace/trace_stat.c struct tracer_stat *ts = session->ts; ts 136 kernel/trace/trace_stat.c if (!ts->stat_cmp) ts 137 kernel/trace/trace_stat.c ts->stat_cmp = dummy_cmp; ts 139 kernel/trace/trace_stat.c stat = ts->stat_start(ts); ts 143 kernel/trace/trace_stat.c ret = insert_stat(root, stat, ts->stat_cmp); ts 151 kernel/trace/trace_stat.c stat = ts->stat_next(stat, i); ts 157 kernel/trace/trace_stat.c ret = insert_stat(root, stat, ts->stat_cmp); ts 184 kernel/trace/trace_stat.c if (session->ts->stat_headers) { ts 222 kernel/trace/trace_stat.c return session->ts->stat_headers(s); ts 224 kernel/trace/trace_stat.c return session->ts->stat_show(s, l->stat); ts 302 kernel/trace/trace_stat.c session->file = tracefs_create_file(session->ts->name, 0644, ts 324 kernel/trace/trace_stat.c if (node->ts == trace) ts 334 kernel/trace/trace_stat.c session->ts = trace; ts 359 kernel/trace/trace_stat.c if (node->ts == trace) { ts 5740 kernel/workqueue.c unsigned long pool_ts, touched, ts; ts 5750 kernel/workqueue.c ts = pool_ts; ts 5752 kernel/workqueue.c ts = touched; ts 5758 kernel/workqueue.c if (time_after(cpu_touched, ts)) ts 5759 kernel/workqueue.c ts = cpu_touched; ts 5763 kernel/workqueue.c if (time_after(jiffies, ts + thresh)) { ts 42 lib/vdso/gettimeofday.c struct __kernel_timespec *ts) ts 65 lib/vdso/gettimeofday.c ts->tv_sec = sec + __iter_div_u64_rem(ns, NSEC_PER_SEC, &ns); ts 66 lib/vdso/gettimeofday.c ts->tv_nsec = ns; ts 72 lib/vdso/gettimeofday.c struct __kernel_timespec *ts) ts 79 lib/vdso/gettimeofday.c ts->tv_sec = vdso_ts->sec; ts 80 lib/vdso/gettimeofday.c ts->tv_nsec = vdso_ts->nsec; ts 85 lib/vdso/gettimeofday.c __cvdso_clock_gettime_common(clockid_t clock, struct __kernel_timespec *ts) ts 100 lib/vdso/gettimeofday.c return do_hres(&vd[CS_HRES_COARSE], clock, ts); ts 102 lib/vdso/gettimeofday.c do_coarse(&vd[CS_HRES_COARSE], clock, ts); ts 105 lib/vdso/gettimeofday.c return do_hres(&vd[CS_RAW], clock, ts); ts 111 lib/vdso/gettimeofday.c __cvdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts) ts 113 lib/vdso/gettimeofday.c int ret = __cvdso_clock_gettime_common(clock, ts); ts 116 lib/vdso/gettimeofday.c return clock_gettime_fallback(clock, ts); ts 123 lib/vdso/gettimeofday.c struct __kernel_timespec ts; ts 126 lib/vdso/gettimeofday.c ret = __cvdso_clock_gettime_common(clock, &ts); ts 133 lib/vdso/gettimeofday.c ret = clock_gettime_fallback(clock, &ts); ts 137 lib/vdso/gettimeofday.c res->tv_sec = ts.tv_sec; ts 138 lib/vdso/gettimeofday.c res->tv_nsec = ts.tv_nsec; ts 149 lib/vdso/gettimeofday.c struct __kernel_timespec ts; ts 151 lib/vdso/gettimeofday.c if (do_hres(&vd[CS_HRES_COARSE], CLOCK_REALTIME, &ts)) ts 154 lib/vdso/gettimeofday.c tv->tv_sec = ts.tv_sec; ts 155 lib/vdso/gettimeofday.c tv->tv_usec = (u32)ts.tv_nsec / NSEC_PER_USEC; ts 236 lib/vdso/gettimeofday.c struct __kernel_timespec ts; ts 239 lib/vdso/gettimeofday.c ret = __cvdso_clock_getres_common(clock, &ts); ts 246 lib/vdso/gettimeofday.c ret = clock_getres_fallback(clock, &ts); ts 250 lib/vdso/gettimeofday.c res->tv_sec = ts.tv_sec; ts 251 lib/vdso/gettimeofday.c res->tv_nsec = ts.tv_nsec; ts 222 net/9p/trans_fd.c struct p9_trans_fd *ts = NULL; ts 225 net/9p/trans_fd.c ts = client->trans; ts 227 net/9p/trans_fd.c if (!ts) { ts 233 net/9p/trans_fd.c ret = vfs_poll(ts->rd, pt); ts 234 net/9p/trans_fd.c if (ts->rd != ts->wr) ts 235 net/9p/trans_fd.c ret = (ret & ~EPOLLOUT) | (vfs_poll(ts->wr, pt) & ~EPOLLIN); ts 250 net/9p/trans_fd.c struct p9_trans_fd *ts = NULL; ts 254 net/9p/trans_fd.c ts = client->trans; ts 256 net/9p/trans_fd.c if (!ts) ts 259 net/9p/trans_fd.c if (!(ts->rd->f_flags & O_NONBLOCK)) ts 262 net/9p/trans_fd.c pos = ts->rd->f_pos; ts 263 net/9p/trans_fd.c ret = kernel_read(ts->rd, v, len, &pos); ts 413 net/9p/trans_fd.c struct p9_trans_fd *ts = NULL; ts 416 net/9p/trans_fd.c ts = client->trans; ts 418 net/9p/trans_fd.c if (!ts) ts 421 net/9p/trans_fd.c if (!(ts->wr->f_flags & O_NONBLOCK)) ts 424 net/9p/trans_fd.c ret = kernel_write(ts->wr, v, len, &ts->wr->f_pos); ts 578 net/9p/trans_fd.c struct p9_trans_fd *ts = client->trans; ts 579 net/9p/trans_fd.c struct p9_conn *m = &ts->conn; ts 659 net/9p/trans_fd.c struct p9_trans_fd *ts = client->trans; ts 660 net/9p/trans_fd.c struct p9_conn *m = &ts->conn; ts 800 net/9p/trans_fd.c struct p9_trans_fd *ts = kzalloc(sizeof(struct p9_trans_fd), ts 802 net/9p/trans_fd.c if (!ts) ts 805 net/9p/trans_fd.c ts->rd = fget(rfd); ts 806 net/9p/trans_fd.c ts->wr = fget(wfd); ts 807 net/9p/trans_fd.c if (!ts->rd || !ts->wr) { ts 808 net/9p/trans_fd.c if (ts->rd) ts 809 net/9p/trans_fd.c fput(ts->rd); ts 810 net/9p/trans_fd.c if (ts->wr) ts 811 net/9p/trans_fd.c fput(ts->wr); ts 812 net/9p/trans_fd.c kfree(ts); ts 816 net/9p/trans_fd.c client->trans = ts; ts 887 net/9p/trans_fd.c struct p9_trans_fd *ts; ts 892 net/9p/trans_fd.c ts = client->trans; ts 893 net/9p/trans_fd.c if (!ts) ts 898 net/9p/trans_fd.c p9_conn_destroy(&ts->conn); ts 900 net/9p/trans_fd.c if (ts->rd) ts 901 net/9p/trans_fd.c fput(ts->rd); ts 902 net/9p/trans_fd.c if (ts->wr) ts 903 net/9p/trans_fd.c fput(ts->wr); ts 905 net/9p/trans_fd.c kfree(ts); ts 3236 net/ceph/messenger.c struct timespec64 ts; ts 3238 net/ceph/messenger.c jiffies_to_timespec64(interval, &ts); ts 3239 net/ceph/messenger.c ts = timespec64_add(con->last_keepalive_ack, ts); ts 3240 net/ceph/messenger.c return timespec64_compare(&now, &ts) >= 0; ts 235 net/compat.c struct timespec *ts = (struct timespec *)data; ts 237 net/compat.c cts[i].tv_sec = ts[i].tv_sec; ts 238 net/compat.c cts[i].tv_nsec = ts[i].tv_nsec; ts 7443 net/core/devlink.c struct devlink_snapshot *snapshot, *ts; ts 7448 net/core/devlink.c list_for_each_entry_safe(snapshot, ts, ®ion->snapshot_list, list) ts 372 net/core/lwt_bpf.c struct lwtunnel_state **ts, ts 434 net/core/lwt_bpf.c *ts = newts; ts 257 net/core/scm.c for (i = 0; i < ARRAY_SIZE(tss.ts); i++) { ts 258 net/core/scm.c tss.ts[i].tv_sec = tss_internal->ts[i].tv_sec; ts 259 net/core/scm.c tss.ts[i].tv_nsec = tss_internal->ts[i].tv_nsec; ts 271 net/core/scm.c for (i = 0; i < ARRAY_SIZE(tss.ts); i++) ts 272 net/core/scm.c tss.ts[i] = timespec64_to_timespec(tss_internal->ts[i]); ts 3013 net/core/sock.c struct timespec64 ts; ts 3016 net/core/sock.c ts = ktime_to_timespec64(sock_read_timestamp(sk)); ts 3017 net/core/sock.c if (ts.tv_sec == -1) ts 3019 net/core/sock.c if (ts.tv_sec == 0) { ts 3022 net/core/sock.c ts = ktime_to_timespec64(kt); ts 3026 net/core/sock.c ts.tv_nsec /= 1000; ts 3030 net/core/sock.c return put_old_timespec32(&ts, userstamp); ts 3036 net/core/sock.c .tv_sec = ts.tv_sec, ts 3037 net/core/sock.c .tv_usec = ts.tv_nsec, ts 3044 net/core/sock.c return put_timespec64(&ts, userstamp); ts 1099 net/dsa/slave.c struct ethtool_ts_info *ts) ts 1107 net/dsa/slave.c return ds->ops->get_ts_info(ds, p->dp->index, ts); ts 1552 net/ipv4/af_inet.c struct timespec64 ts; ts 1554 net/ipv4/af_inet.c ktime_get_real_ts64(&ts); ts 1557 net/ipv4/af_inet.c (void)div_u64_rem(ts.tv_sec, SECONDS_PER_DAY, &secs); ts 1561 net/ipv4/af_inet.c msecs += (u32)ts.tv_nsec / NSEC_PER_MSEC; ts 1993 net/ipv4/cipso_ipv4.c if (opt->opt.srr || opt->opt.rr || opt->opt.ts || opt->opt.router_alert) { ts 2008 net/ipv4/cipso_ipv4.c if (opt->opt.ts > opt->opt.cipso) ts 2009 net/ipv4/cipso_ipv4.c opt->opt.ts -= cipso_len; ts 60 net/ipv4/ip_options.c ip_rt_get_source(iph+opt->ts+iph[opt->ts+2]-9, skb, rt); ts 65 net/ipv4/ip_options.c memcpy(iph+opt->ts+iph[opt->ts+2]-5, &midtime, 4); ts 74 net/ipv4/ip_options.c if (opt->ts) { ts 75 net/ipv4/ip_options.c memset(iph+opt->ts, IPOPT_NOP, iph[opt->ts+1]); ts 76 net/ipv4/ip_options.c opt->ts = 0; ts 119 net/ipv4/ip_options.c if (sopt->ts) { ts 120 net/ipv4/ip_options.c optlen = sptr[sopt->ts+1]; ts 121 net/ipv4/ip_options.c soffset = sptr[sopt->ts+2]; ts 122 net/ipv4/ip_options.c dopt->ts = dopt->optlen + sizeof(struct iphdr); ts 123 net/ipv4/ip_options.c memcpy(dptr, sptr+sopt->ts, optlen); ts 232 net/ipv4/ip_options.c opt->ts = 0; ts 353 net/ipv4/ip_options.c if (opt->ts) { ts 433 net/ipv4/ip_options.c opt->ts = optptr - iph; ts 507 net/ipv4/ip_options.c if (opt->ts) { ts 508 net/ipv4/ip_options.c unsigned char *optptr = opt->__data+opt->ts-sizeof(struct iphdr); ts 605 net/ipv4/ip_options.c optptr = raw + opt->ts; ts 224 net/ipv4/ip_tunnel_core.c struct lwtunnel_state **ts, ts 274 net/ipv4/ip_tunnel_core.c *ts = new_state; ts 341 net/ipv4/ip_tunnel_core.c struct lwtunnel_state **ts, ts 383 net/ipv4/ip_tunnel_core.c *ts = new_state; ts 68 net/ipv4/syncookies.c u32 ts, ts_now = tcp_time_stamp_raw(); ts 79 net/ipv4/syncookies.c ts = ts_now & ~TSMASK; ts 80 net/ipv4/syncookies.c ts |= options; ts 81 net/ipv4/syncookies.c if (ts > ts_now) { ts 82 net/ipv4/syncookies.c ts >>= TSBITS; ts 83 net/ipv4/syncookies.c ts--; ts 84 net/ipv4/syncookies.c ts <<= TSBITS; ts 85 net/ipv4/syncookies.c ts |= options; ts 87 net/ipv4/syncookies.c return (u64)ts * (NSEC_PER_SEC / TCP_TS_HZ); ts 1853 net/ipv4/tcp.c tss->ts[0] = ktime_to_timespec64(skb->tstamp); ts 1855 net/ipv4/tcp.c tss->ts[0] = (struct timespec64) {0}; ts 1858 net/ipv4/tcp.c tss->ts[2] = ktime_to_timespec64(skb_hwtstamps(skb)->hwtstamp); ts 1860 net/ipv4/tcp.c tss->ts[2] = (struct timespec64) {0}; ts 1870 net/ipv4/tcp.c if (tss->ts[0].tv_sec || tss->ts[0].tv_nsec) { ts 1874 net/ipv4/tcp.c struct __kernel_timespec kts = {tss->ts[0].tv_sec, tss->ts[0].tv_nsec}; ts 1879 net/ipv4/tcp.c struct timespec ts_old = timespec64_to_timespec(tss->ts[0]); ts 1888 net/ipv4/tcp.c stv.tv_sec = tss->ts[0].tv_sec; ts 1889 net/ipv4/tcp.c stv.tv_usec = tss->ts[0].tv_nsec / 1000; ts 1895 net/ipv4/tcp.c tv.tv_sec = tss->ts[0].tv_sec; ts 1896 net/ipv4/tcp.c tv.tv_usec = tss->ts[0].tv_nsec / 1000; ts 1906 net/ipv4/tcp.c tss->ts[0] = (struct timespec64) {0}; ts 1909 net/ipv4/tcp.c if (tss->ts[2].tv_sec || tss->ts[2].tv_nsec) { ts 1913 net/ipv4/tcp.c tss->ts[2] = (struct timespec64) {0}; ts 1917 net/ipv4/tcp.c tss->ts[1] = (struct timespec64) {0}; ts 885 net/ipv4/tcp_input.c const int ts) ts 912 net/ipv4/tcp_input.c ts ? LINUX_MIB_TCPTSREORDER : LINUX_MIB_TCPSACKREORDER); ts 130 net/ipv6/ila/ila_lwt.c struct lwtunnel_state **ts, ts 252 net/ipv6/ila/ila_lwt.c *ts = newts; ts 381 net/ipv6/seg6_iptunnel.c struct lwtunnel_state **ts, ts 454 net/ipv6/seg6_iptunnel.c *ts = newts; ts 960 net/ipv6/seg6_local.c const void *cfg, struct lwtunnel_state **ts, ts 995 net/ipv6/seg6_local.c *ts = newts; ts 3238 net/mac80211/util.c u64 ts = status->mactime; ts 3288 net/mac80211/util.c ts += 20 << shift; ts 3291 net/mac80211/util.c ts += 96; ts 3293 net/mac80211/util.c ts += 192; ts 3309 net/mac80211/util.c ts -= mpdu_len * 8 * 10 / rate; ts 3311 net/mac80211/util.c ts += mpdu_offset * 8 * 10 / rate; ts 3313 net/mac80211/util.c return ts; ts 167 net/mpls/mpls_iptunnel.c struct lwtunnel_state **ts, ts 217 net/mpls/mpls_iptunnel.c *ts = newts; ts 223 net/mpls/mpls_iptunnel.c *ts = NULL; ts 61 net/netfilter/nf_conntrack_amanda.c struct ts_config *ts; ts 119 net/netfilter/nf_conntrack_amanda.c search[SEARCH_CONNECT].ts); ts 125 net/netfilter/nf_conntrack_amanda.c search[SEARCH_NEWLINE].ts); ts 131 net/netfilter/nf_conntrack_amanda.c off = skb_find_text(skb, start, stop, search[i].ts); ts 208 net/netfilter/nf_conntrack_amanda.c textsearch_destroy(search[i].ts); ts 218 net/netfilter/nf_conntrack_amanda.c search[i].ts = textsearch_prepare(ts_algo, search[i].string, ts 221 net/netfilter/nf_conntrack_amanda.c if (IS_ERR(search[i].ts)) { ts 222 net/netfilter/nf_conntrack_amanda.c ret = PTR_ERR(search[i].ts); ts 234 net/netfilter/nf_conntrack_amanda.c textsearch_destroy(search[i].ts); ts 592 net/netfilter/nfnetlink_log.c struct nfulnl_msg_packet_timestamp ts; ts 594 net/netfilter/nfnetlink_log.c ts.sec = cpu_to_be64(kts.tv_sec); ts 595 net/netfilter/nfnetlink_log.c ts.usec = cpu_to_be64(kts.tv_nsec / NSEC_PER_USEC); ts 597 net/netfilter/nfnetlink_log.c if (nla_put(inst->skb, NFULA_TIMESTAMP, sizeof(ts), &ts)) ts 582 net/netfilter/nfnetlink_queue.c struct nfqnl_msg_packet_timestamp ts; ts 585 net/netfilter/nfnetlink_queue.c ts.sec = cpu_to_be64(kts.tv_sec); ts 586 net/netfilter/nfnetlink_queue.c ts.usec = cpu_to_be64(kts.tv_nsec / NSEC_PER_USEC); ts 588 net/netfilter/nfnetlink_queue.c if (nla_put(skb, NFQA_TIMESTAMP, sizeof(ts), &ts)) ts 411 net/packet/af_packet.c static __u32 tpacket_get_timestamp(struct sk_buff *skb, struct timespec *ts, ts 418 net/packet/af_packet.c ktime_to_timespec_cond(shhwtstamps->hwtstamp, ts)) ts 421 net/packet/af_packet.c if (ktime_to_timespec_cond(skb->tstamp, ts)) ts 431 net/packet/af_packet.c struct timespec ts; ts 434 net/packet/af_packet.c if (!(ts_status = tpacket_get_timestamp(skb, &ts, po->tp_tstamp))) ts 440 net/packet/af_packet.c h.h1->tp_sec = ts.tv_sec; ts 441 net/packet/af_packet.c h.h1->tp_usec = ts.tv_nsec / NSEC_PER_USEC; ts 444 net/packet/af_packet.c h.h2->tp_sec = ts.tv_sec; ts 445 net/packet/af_packet.c h.h2->tp_nsec = ts.tv_nsec; ts 448 net/packet/af_packet.c h.h3->tp_sec = ts.tv_sec; ts 449 net/packet/af_packet.c h.h3->tp_nsec = ts.tv_nsec; ts 778 net/packet/af_packet.c struct timespec ts; ts 779 net/packet/af_packet.c getnstimeofday(&ts); ts 780 net/packet/af_packet.c h1->ts_last_pkt.ts_sec = ts.tv_sec; ts 781 net/packet/af_packet.c h1->ts_last_pkt.ts_nsec = ts.tv_nsec; ts 809 net/packet/af_packet.c struct timespec ts; ts 822 net/packet/af_packet.c getnstimeofday(&ts); ts 824 net/packet/af_packet.c h1->ts_first_pkt.ts_sec = ts.tv_sec; ts 825 net/packet/af_packet.c h1->ts_first_pkt.ts_nsec = ts.tv_nsec; ts 2172 net/packet/af_packet.c struct timespec ts; ts 2312 net/packet/af_packet.c if (!(ts_status = tpacket_get_timestamp(skb, &ts, po->tp_tstamp))) ts 2313 net/packet/af_packet.c getnstimeofday(&ts); ts 2323 net/packet/af_packet.c h.h1->tp_sec = ts.tv_sec; ts 2324 net/packet/af_packet.c h.h1->tp_usec = ts.tv_nsec / NSEC_PER_USEC; ts 2332 net/packet/af_packet.c h.h2->tp_sec = ts.tv_sec; ts 2333 net/packet/af_packet.c h.h2->tp_nsec = ts.tv_nsec; ts 2354 net/packet/af_packet.c h.h3->tp_sec = ts.tv_sec; ts 2355 net/packet/af_packet.c h.h3->tp_nsec = ts.tv_nsec; ts 2427 net/packet/af_packet.c __u32 ts; ts 2432 net/packet/af_packet.c ts = __packet_set_timestamp(po, ph, skb); ts 2433 net/packet/af_packet.c __packet_set_status(po, ph, TP_STATUS_AVAILABLE | ts); ts 2813 net/sched/sch_cake.c struct nlattr *tstats, *ts; ts 2858 net/sched/sch_cake.c ts = nla_nest_start_noflag(d->skb, i + 1); ts 2859 net/sched/sch_cake.c if (!ts) ts 2894 net/sched/sch_cake.c nla_nest_end(d->skb, ts); ts 723 net/sched/sch_qfq.c static inline u64 qfq_round_down(u64 ts, unsigned int shift) ts 725 net/sched/sch_qfq.c return ts & ~((1ULL << shift) - 1); ts 790 net/socket.c struct __kernel_timespec ts; ts 792 net/socket.c skb_get_new_timestampns(skb, &ts); ts 794 net/socket.c sizeof(ts), &ts); ts 796 net/socket.c struct timespec ts; ts 798 net/socket.c skb_get_timestampns(skb, &ts); ts 800 net/socket.c sizeof(ts), &ts); ts 807 net/socket.c ktime_to_timespec64_cond(skb->tstamp, tss.ts + 0)) ts 812 net/socket.c ktime_to_timespec64_cond(shhwtstamps->hwtstamp, tss.ts + 2)) { ts 157 net/wireless/core.h unsigned long ts; ts 539 net/wireless/core.h bool signal_valid, unsigned long ts); ts 8680 net/wireless/nl80211.c jiffies_to_msecs(jiffies - intbss->ts))) ts 406 net/wireless/scan.c if (!time_after(expire_time, bss->ts)) ts 432 net/wireless/scan.c if (oldest && time_before(oldest->ts, bss->ts)) ts 707 net/wireless/scan.c bss->ts -= age_jiffies; ts 944 net/wireless/scan.c if (time_after(now, bss->ts + IEEE80211_SCAN_RESULT_EXPIRE) && ts 1168 net/wireless/scan.c known->ts = new->ts; ts 1185 net/wireless/scan.c bool signal_valid, unsigned long ts) ts 1192 net/wireless/scan.c tmp->ts = ts; ts 1378 net/wireless/scan.c unsigned long ts; ts 1401 net/wireless/scan.c ts = bss_from_pub(non_tx_data->tx_bss)->ts; ts 1405 net/wireless/scan.c ts = jiffies; ts 1439 net/wireless/scan.c res = cfg80211_bss_update(wiphy_to_rdev(wiphy), &tmp, signal_valid, ts); ts 2543 net/wireless/scan.c elapsed_jiffies_msecs(bss->ts)); ts 825 net/wireless/sme.c ibss->ts); ts 32 samples/bpf/lathist_kern.c u64 *ts = bpf_map_lookup_elem(&my_map, &cpu); ts 34 samples/bpf/lathist_kern.c if (ts) ts 35 samples/bpf/lathist_kern.c *ts = bpf_ktime_get_ns(); ts 74 samples/bpf/lathist_kern.c u64 *ts, cur_ts, delta; ts 79 samples/bpf/lathist_kern.c ts = bpf_map_lookup_elem(&my_map, &cpu); ts 80 samples/bpf/lathist_kern.c if (!ts) ts 84 samples/bpf/lathist_kern.c delta = log2l(cur_ts - *ts); ts 29 samples/bpf/map_perf_test_user.c struct timespec ts; ts 31 samples/bpf/map_perf_test_user.c clock_gettime(CLOCK_MONOTONIC, &ts); ts 32 samples/bpf/map_perf_test_user.c return ts.tv_sec * 1000000000ull + ts.tv_nsec; ts 130 samples/bpf/offwaketime_kern.c u64 delta, ts, *tsp; ts 132 samples/bpf/offwaketime_kern.c ts = bpf_ktime_get_ns(); ts 133 samples/bpf/offwaketime_kern.c bpf_map_update_elem(&start, &pid, &ts, BPF_ANY); ts 27 samples/bpf/test_overhead_user.c struct timespec ts; ts 29 samples/bpf/test_overhead_user.c clock_gettime(CLOCK_MONOTONIC, &ts); ts 30 samples/bpf/test_overhead_user.c return ts.tv_sec * 1000000000ull + ts.tv_nsec; ts 24 samples/bpf/trace_output_user.c struct timespec ts; ts 26 samples/bpf/trace_output_user.c clock_gettime(CLOCK_MONOTONIC, &ts); ts 27 samples/bpf/trace_output_user.c return ts.tv_sec * 1000000000ull + ts.tv_nsec; ts 24 samples/bpf/tracex4_user.c struct timespec ts; ts 26 samples/bpf/tracex4_user.c clock_gettime(CLOCK_MONOTONIC, &ts); ts 27 samples/bpf/tracex4_user.c return ts.tv_sec * 1000000000ull + ts.tv_nsec; ts 104 samples/bpf/xdpsock_user.c struct timespec ts; ts 106 samples/bpf/xdpsock_user.c clock_gettime(CLOCK_MONOTONIC, &ts); ts 107 samples/bpf/xdpsock_user.c return ts.tv_sec * 1000000000UL + ts.tv_nsec; ts 1762 samples/mic/mpssd/mpssd.c char ts[52], *ts1; ts 1773 samples/mic/mpssd/mpssd.c ts1 = ctime_r(&t, ts); ts 46 samples/vfs/test-statx.c static void print_time(const char *field, struct statx_timestamp *ts) ts 53 samples/vfs/test-statx.c tim = ts->tv_sec; ts 65 samples/vfs/test-statx.c printf(".%09u", ts->tv_nsec); ts 111 security/commoncap.c int cap_settime(const struct timespec64 *ts, const struct timezone *tz) ts 747 security/security.c int security_settime64(const struct timespec64 *ts, const struct timezone *tz) ts 749 security/security.c return call_int_hook(settime, 0, ts, tz); ts 472 sound/core/timer.c struct snd_timer_instance *ts; ts 494 sound/core/timer.c list_for_each_entry(ts, &ti->slave_active_head, active_list) ts 495 sound/core/timer.c if (ts->ccallback) ts 496 sound/core/timer.c ts->ccallback(ts, event + 100, &tstamp, resolution); ts 813 sound/core/timer.c struct snd_timer_instance *ti, *ts, *tmp; ts 865 sound/core/timer.c list_for_each_entry(ts, &ti->slave_active_head, active_list) { ts 866 sound/core/timer.c ts->pticks = ti->pticks; ts 867 sound/core/timer.c ts->resolution = resolution; ts 868 sound/core/timer.c if (list_empty(&ts->ack_list)) ts 869 sound/core/timer.c list_add_tail(&ts->ack_list, ack_list_head); ts 1049 sound/core/timer.c struct snd_timer_instance *ti, *ts; ts 1066 sound/core/timer.c list_for_each_entry(ts, &ti->slave_active_head, active_list) ts 1067 sound/core/timer.c if (ts->ccallback) ts 1068 sound/core/timer.c ts->ccallback(ts, event, tstamp, resolution); ts 484 sound/pci/hda/hda_controller.c struct snd_pcm_audio_tstamp_config *ts) ts 487 sound/pci/hda/hda_controller.c if (ts->type_requested == SNDRV_PCM_AUDIO_TSTAMP_TYPE_LINK_SYNCHRONIZED) ts 405 sound/soc/intel/atom/sst-mfld-dsp.h u32 ts; ts 79 sound/soc/intel/atom/sst/sst_stream.c str_info->alloc_param.ts = sst_drv_ctx->info.mailbox_start + ts 82 sound/soc/intel/atom/sst/sst_stream.c str_info->alloc_param.ts = sst_drv_ctx->mailbox_add + ts 86 sound/soc/intel/atom/sst/sst_stream.c str_info->alloc_param.ts); ts 259 sound/soc/mediatek/common/mtk-btcvsd.c struct mtk_btcvsd_snd_time_buffer_info *ts) ts 261 sound/soc/mediatek/common/mtk-btcvsd.c ts->time_stamp_us = bt->tx->time_stamp; ts 262 sound/soc/mediatek/common/mtk-btcvsd.c ts->data_count_equi_time = bt->tx->buf_data_equivalent_time; ts 266 sound/soc/mediatek/common/mtk-btcvsd.c struct mtk_btcvsd_snd_time_buffer_info *ts) ts 268 sound/soc/mediatek/common/mtk-btcvsd.c ts->time_stamp_us = bt->rx->time_stamp; ts 269 sound/soc/mediatek/common/mtk-btcvsd.c ts->data_count_equi_time = bt->rx->buf_data_equivalent_time; ts 30 sound/soc/meson/axg-tdm-formatter.c struct axg_tdm_stream *ts, ts 33 sound/soc/meson/axg-tdm-formatter.c unsigned int val, ch = ts->channels; ts 43 sound/soc/meson/axg-tdm-formatter.c mask = ts->mask[i]; ts 72 sound/soc/meson/axg-tdm-formatter.c struct axg_tdm_stream *ts = formatter->stream; ts 102 sound/soc/meson/axg-tdm-formatter.c invert ^= axg_tdm_sclk_invert(ts->iface->fmt); ts 146 sound/soc/meson/axg-tdm-formatter.c struct axg_tdm_stream *ts = formatter->stream; ts 149 sound/soc/meson/axg-tdm-formatter.c mutex_lock(&ts->lock); ts 152 sound/soc/meson/axg-tdm-formatter.c if (ts->ready) { ts 160 sound/soc/meson/axg-tdm-formatter.c list_add_tail(&formatter->list, &ts->formatter_list); ts 162 sound/soc/meson/axg-tdm-formatter.c mutex_unlock(&ts->lock); ts 168 sound/soc/meson/axg-tdm-formatter.c struct axg_tdm_stream *ts = formatter->stream; ts 170 sound/soc/meson/axg-tdm-formatter.c mutex_lock(&ts->lock); ts 172 sound/soc/meson/axg-tdm-formatter.c mutex_unlock(&ts->lock); ts 180 sound/soc/meson/axg-tdm-formatter.c struct axg_tdm_stream *ts = formatter->drv->ops->get_stream(w); ts 188 sound/soc/meson/axg-tdm-formatter.c if (WARN_ON(!ts)) ts 197 sound/soc/meson/axg-tdm-formatter.c ret = clk_set_parent(formatter->sclk_sel, ts->iface->sclk); ts 202 sound/soc/meson/axg-tdm-formatter.c ret = clk_set_parent(formatter->lrclk_sel, ts->iface->lrclk); ts 206 sound/soc/meson/axg-tdm-formatter.c formatter->stream = ts; ts 341 sound/soc/meson/axg-tdm-formatter.c int axg_tdm_stream_start(struct axg_tdm_stream *ts) ts 346 sound/soc/meson/axg-tdm-formatter.c mutex_lock(&ts->lock); ts 347 sound/soc/meson/axg-tdm-formatter.c ts->ready = true; ts 350 sound/soc/meson/axg-tdm-formatter.c list_for_each_entry(formatter, &ts->formatter_list, list) { ts 359 sound/soc/meson/axg-tdm-formatter.c mutex_unlock(&ts->lock); ts 364 sound/soc/meson/axg-tdm-formatter.c void axg_tdm_stream_stop(struct axg_tdm_stream *ts) ts 368 sound/soc/meson/axg-tdm-formatter.c mutex_lock(&ts->lock); ts 369 sound/soc/meson/axg-tdm-formatter.c ts->ready = false; ts 372 sound/soc/meson/axg-tdm-formatter.c list_for_each_entry(formatter, &ts->formatter_list, list) { ts 376 sound/soc/meson/axg-tdm-formatter.c mutex_unlock(&ts->lock); ts 382 sound/soc/meson/axg-tdm-formatter.c struct axg_tdm_stream *ts; ts 384 sound/soc/meson/axg-tdm-formatter.c ts = kzalloc(sizeof(*ts), GFP_KERNEL); ts 385 sound/soc/meson/axg-tdm-formatter.c if (ts) { ts 386 sound/soc/meson/axg-tdm-formatter.c INIT_LIST_HEAD(&ts->formatter_list); ts 387 sound/soc/meson/axg-tdm-formatter.c mutex_init(&ts->lock); ts 388 sound/soc/meson/axg-tdm-formatter.c ts->iface = iface; ts 391 sound/soc/meson/axg-tdm-formatter.c return ts; ts 395 sound/soc/meson/axg-tdm-formatter.c void axg_tdm_stream_free(struct axg_tdm_stream *ts) ts 402 sound/soc/meson/axg-tdm-formatter.c WARN_ON(!list_empty(&ts->formatter_list)); ts 403 sound/soc/meson/axg-tdm-formatter.c mutex_destroy(&ts->lock); ts 404 sound/soc/meson/axg-tdm-formatter.c kfree(ts); ts 28 sound/soc/meson/axg-tdm-formatter.h struct axg_tdm_stream *ts); ts 39 sound/soc/meson/axg-tdm-formatter.h struct axg_tdm_stream *ts, ts 142 sound/soc/meson/axg-tdm-interface.c struct axg_tdm_stream *ts = ts 146 sound/soc/meson/axg-tdm-interface.c if (!axg_tdm_slots_total(ts->mask)) { ts 171 sound/soc/meson/axg-tdm-interface.c struct axg_tdm_stream *ts = snd_soc_dai_get_dma_data(dai, substream); ts 179 sound/soc/meson/axg-tdm-interface.c if (axg_tdm_slots_total(ts->mask) < channels) { ts 190 sound/soc/meson/axg-tdm-interface.c ts->physical_width = params_physical_width(params); ts 191 sound/soc/meson/axg-tdm-interface.c ts->width = params_width(params); ts 192 sound/soc/meson/axg-tdm-interface.c ts->channels = params_channels(params); ts 338 sound/soc/meson/axg-tdm-interface.c struct axg_tdm_stream *ts = snd_soc_dai_get_dma_data(dai, substream); ts 341 sound/soc/meson/axg-tdm-interface.c axg_tdm_stream_stop(ts); ts 349 sound/soc/meson/axg-tdm-interface.c struct axg_tdm_stream *ts = snd_soc_dai_get_dma_data(dai, substream); ts 352 sound/soc/meson/axg-tdm-interface.c return axg_tdm_stream_reset(ts); ts 64 sound/soc/meson/axg-tdm.h void axg_tdm_stream_free(struct axg_tdm_stream *ts); ts 65 sound/soc/meson/axg-tdm.h int axg_tdm_stream_start(struct axg_tdm_stream *ts); ts 66 sound/soc/meson/axg-tdm.h void axg_tdm_stream_stop(struct axg_tdm_stream *ts); ts 68 sound/soc/meson/axg-tdm.h static inline int axg_tdm_stream_reset(struct axg_tdm_stream *ts) ts 70 sound/soc/meson/axg-tdm.h axg_tdm_stream_stop(ts); ts 71 sound/soc/meson/axg-tdm.h return axg_tdm_stream_start(ts); ts 113 sound/soc/meson/axg-tdmin.c struct axg_tdm_stream *ts) ts 118 sound/soc/meson/axg-tdmin.c switch (ts->iface->fmt & SND_SOC_DAIFMT_FORMAT_MASK) { ts 130 sound/soc/meson/axg-tdmin.c ts->iface->fmt & SND_SOC_DAIFMT_FORMAT_MASK); ts 137 sound/soc/meson/axg-tdmin.c switch (ts->iface->fmt & SND_SOC_DAIFMT_FORMAT_MASK) { ts 146 sound/soc/meson/axg-tdmin.c if (axg_tdm_lrclk_invert(ts->iface->fmt)) ts 150 sound/soc/meson/axg-tdmin.c val |= TDMIN_CTRL_BITNUM(ts->iface->slot_width - 1); ts 164 sound/soc/meson/axg-tdmin.c return axg_tdm_formatter_set_channel_masks(map, ts, TDMIN_MASK0); ts 111 sound/soc/meson/axg-tdmout.c struct axg_tdm_stream *ts) ts 116 sound/soc/meson/axg-tdmout.c switch (ts->iface->fmt & SND_SOC_DAIFMT_FORMAT_MASK) { ts 128 sound/soc/meson/axg-tdmout.c ts->iface->fmt & SND_SOC_DAIFMT_FORMAT_MASK); ts 135 sound/soc/meson/axg-tdmout.c val |= TDMOUT_CTRL0_BITNUM(ts->iface->slot_width - 1); ts 138 sound/soc/meson/axg-tdmout.c val |= TDMOUT_CTRL0_SLOTNUM(ts->iface->slots - 1); ts 146 sound/soc/meson/axg-tdmout.c val = TDMOUT_CTRL1_MSB_POS(ts->width - 1); ts 149 sound/soc/meson/axg-tdmout.c switch (ts->physical_width) { ts 164 sound/soc/meson/axg-tdmout.c ts->physical_width); ts 169 sound/soc/meson/axg-tdmout.c if (axg_tdm_lrclk_invert(ts->iface->fmt)) ts 179 sound/soc/meson/axg-tdmout.c return axg_tdm_formatter_set_channel_masks(map, ts, TDMOUT_MASK0); ts 117 tools/bpf/bpf_dbg.c struct pcap_timeval ts; ts 60 tools/laptop/dslm/dslm.c char *ts = ctime(&time); ts 61 tools/laptop/dslm/dslm.c ts[strlen(ts) - 1] = 0; ts 63 tools/laptop/dslm/dslm.c return ts; ts 31 tools/leds/led_hw_brightness_mon.c struct timespec ts; ts 67 tools/leds/led_hw_brightness_mon.c clock_gettime(CLOCK_MONOTONIC, &ts); ts 79 tools/leds/led_hw_brightness_mon.c printf("[%ld.%09ld] %d\n", ts.tv_sec, ts.tv_nsec, atoi(buf)); ts 27 tools/leds/uledmon.c struct timespec ts; ts 57 tools/leds/uledmon.c clock_gettime(CLOCK_MONOTONIC, &ts); ts 58 tools/leds/uledmon.c printf("[%ld.%09ld] %u\n", ts.tv_sec, ts.tv_nsec, brightness); ts 5529 tools/lib/traceevent/event-parse.c time = record->ts; ts 40 tools/lib/traceevent/event-parse.h unsigned long long ts; ts 479 tools/lib/traceevent/kbuffer-parse.c void *kbuffer_next_event(struct kbuffer *kbuf, unsigned long long *ts) ts 490 tools/lib/traceevent/kbuffer-parse.c if (ts) ts 491 tools/lib/traceevent/kbuffer-parse.c *ts = kbuf->timestamp; ts 557 tools/lib/traceevent/kbuffer-parse.c void *kbuffer_read_event(struct kbuffer *kbuf, unsigned long long *ts) ts 565 tools/lib/traceevent/kbuffer-parse.c if (ts) ts 566 tools/lib/traceevent/kbuffer-parse.c *ts = kbuf->timestamp; ts 600 tools/lib/traceevent/kbuffer-parse.c unsigned long long *ts) ts 611 tools/lib/traceevent/kbuffer-parse.c data = kbuffer_read_event(kbuf, ts); ts 614 tools/lib/traceevent/kbuffer-parse.c data = kbuffer_next_event(kbuf, ts); ts 49 tools/lib/traceevent/kbuffer.h void *kbuffer_read_event(struct kbuffer *kbuf, unsigned long long *ts); ts 50 tools/lib/traceevent/kbuffer.h void *kbuffer_next_event(struct kbuffer *kbuf, unsigned long long *ts); ts 55 tools/lib/traceevent/kbuffer.h void *kbuffer_read_at_offset(struct kbuffer *kbuf, int offset, unsigned long long *ts); ts 146 tools/perf/arch/arm64/util/arm-spe.c struct timespec ts; ts 148 tools/perf/arch/arm64/util/arm-spe.c clock_gettime(CLOCK_MONOTONIC_RAW, &ts); ts 150 tools/perf/arch/arm64/util/arm-spe.c return ts.tv_sec ^ ts.tv_nsec; ts 176 tools/perf/bench/epoll-ctl.c struct timespec ts = { .tv_sec = 0, ts 199 tools/perf/bench/epoll-ctl.c nanosleep(&ts, NULL); ts 374 tools/perf/bench/epoll-wait.c struct timespec ts = { .tv_sec = 0, ts 399 tools/perf/bench/epoll-wait.c nanosleep(&ts, NULL); ts 94 tools/perf/bench/mem-functions.c static double timeval2double(struct timeval *ts) ts 96 tools/perf/bench/mem-functions.c return (double)ts->tv_sec + (double)ts->tv_usec / (double)USEC_PER_SEC; ts 364 tools/perf/builtin-lock.c static struct lock_seq_stat *get_seq(struct thread_stat *ts, void *addr) ts 368 tools/perf/builtin-lock.c list_for_each_entry(seq, &ts->seq_list, list) { ts 381 tools/perf/builtin-lock.c list_add(&seq->list, &ts->seq_list); ts 405 tools/perf/builtin-lock.c struct thread_stat *ts; ts 419 tools/perf/builtin-lock.c ts = thread_stat_findnew(sample->tid); ts 420 tools/perf/builtin-lock.c if (!ts) ts 423 tools/perf/builtin-lock.c seq = get_seq(ts, addr); ts 477 tools/perf/builtin-lock.c struct thread_stat *ts; ts 491 tools/perf/builtin-lock.c ts = thread_stat_findnew(sample->tid); ts 492 tools/perf/builtin-lock.c if (!ts) ts 495 tools/perf/builtin-lock.c seq = get_seq(ts, addr); ts 540 tools/perf/builtin-lock.c struct thread_stat *ts; ts 553 tools/perf/builtin-lock.c ts = thread_stat_findnew(sample->tid); ts 554 tools/perf/builtin-lock.c if (!ts) ts 557 tools/perf/builtin-lock.c seq = get_seq(ts, addr); ts 595 tools/perf/builtin-lock.c struct thread_stat *ts; ts 608 tools/perf/builtin-lock.c ts = thread_stat_findnew(sample->tid); ts 609 tools/perf/builtin-lock.c if (!ts) ts 612 tools/perf/builtin-lock.c seq = get_seq(ts, addr); ts 293 tools/perf/builtin-sched.c struct timespec ts; ts 295 tools/perf/builtin-sched.c clock_gettime(CLOCK_MONOTONIC, &ts); ts 297 tools/perf/builtin-sched.c return ts.tv_sec * NSEC_PER_SEC + ts.tv_nsec; ts 311 tools/perf/builtin-sched.c struct timespec ts; ts 313 tools/perf/builtin-sched.c ts.tv_nsec = nsecs % 999999999; ts 314 tools/perf/builtin-sched.c ts.tv_sec = nsecs / 999999999; ts 316 tools/perf/builtin-sched.c nanosleep(&ts, NULL); ts 1223 tools/perf/builtin-script.c if (thread->ts && sample->flags & PERF_IP_FLAG_RETURN) ts 94 tools/perf/builtin-stat.c static void print_counters(struct timespec *ts, int argc, const char **argv); ts 341 tools/perf/builtin-stat.c struct timespec ts, rs; ts 343 tools/perf/builtin-stat.c clock_gettime(CLOCK_MONOTONIC, &ts); ts 344 tools/perf/builtin-stat.c diff_timespec(&rs, &ts, &ref_time); ts 431 tools/perf/builtin-stat.c struct timespec ts; ts 438 tools/perf/builtin-stat.c ts.tv_sec = interval / USEC_PER_MSEC; ts 439 tools/perf/builtin-stat.c ts.tv_nsec = (interval % USEC_PER_MSEC) * NSEC_PER_MSEC; ts 441 tools/perf/builtin-stat.c ts.tv_sec = timeout / USEC_PER_MSEC; ts 442 tools/perf/builtin-stat.c ts.tv_nsec = (timeout % USEC_PER_MSEC) * NSEC_PER_MSEC; ts 444 tools/perf/builtin-stat.c ts.tv_sec = 1; ts 445 tools/perf/builtin-stat.c ts.tv_nsec = 0; ts 563 tools/perf/builtin-stat.c nanosleep(&ts, NULL); ts 585 tools/perf/builtin-stat.c nanosleep(&ts, NULL); ts 651 tools/perf/builtin-stat.c static void print_counters(struct timespec *ts, int argc, const char **argv) ts 658 tools/perf/builtin-stat.c ts, argc, argv); ts 1458 tools/perf/builtin-stat.c struct timespec tsh, *ts = NULL; ts 1471 tools/perf/builtin-stat.c ts = &tsh; ts 1474 tools/perf/builtin-stat.c print_counters(ts, argc, argv); ts 1304 tools/perf/builtin-trace.c double ts = (double)(tstamp - trace->base_time) / NSEC_PER_MSEC; ts 1306 tools/perf/builtin-trace.c return fprintf(fp, "%10.3f ", ts); ts 1907 tools/perf/builtin-trace.c double ts = (double)sample->time / NSEC_PER_MSEC; ts 1910 tools/perf/builtin-trace.c perf_evsel__name(evsel), ts, ts 108 tools/perf/jvmti/jvmti_agent.c timespec_to_ns(const struct timespec *ts) ts 110 tools/perf/jvmti/jvmti_agent.c return ((uint64_t) ts->tv_sec * NSEC_PER_SEC) + ts->tv_nsec; ts 116 tools/perf/jvmti/jvmti_agent.c struct timespec ts; ts 122 tools/perf/jvmti/jvmti_agent.c ret = clock_gettime(perf_clk_id, &ts); ts 126 tools/perf/jvmti/jvmti_agent.c return timespec_to_ns(&ts); ts 24 tools/perf/tests/switch-tracking.c struct timespec ts; ts 48 tools/perf/tests/switch-tracking.c ts.tv_nsec = 50 * 1000 * 1000; ts 49 tools/perf/tests/switch-tracking.c ts.tv_sec = 0; ts 52 tools/perf/tests/switch-tracking.c err = nanosleep(&ts, NULL); ts 524 tools/perf/util/intel-bts.c u64 ts = 0; ts 528 tools/perf/util/intel-bts.c ret = intel_bts_process_queue(btsq, &ts); ts 558 tools/perf/util/intel-bts.c u64 ts = 0; ts 573 tools/perf/util/intel-bts.c ret = intel_bts_process_queue(btsq, &ts); ts 575 tools/perf/util/intel-bts.c auxtrace_heap__add(&bts->heap, queue_nr, ts); ts 580 tools/perf/util/intel-bts.c ret = auxtrace_heap__add(&bts->heap, queue_nr, ts); ts 2251 tools/perf/util/intel-pt.c u64 ts; ts 2275 tools/perf/util/intel-pt.c ts = pt->heap.heap_array[0].ordinal + 1; ts 2276 tools/perf/util/intel-pt.c if (ts > timestamp) ts 2277 tools/perf/util/intel-pt.c ts = timestamp; ts 2279 tools/perf/util/intel-pt.c ts = timestamp; ts 2284 tools/perf/util/intel-pt.c ret = intel_pt_run_decoder(ptq, &ts); ts 2287 tools/perf/util/intel-pt.c auxtrace_heap__add(&pt->heap, queue_nr, ts); ts 2292 tools/perf/util/intel-pt.c ret = auxtrace_heap__add(&pt->heap, queue_nr, ts); ts 2308 tools/perf/util/intel-pt.c u64 ts = 0; ts 2317 tools/perf/util/intel-pt.c intel_pt_run_decoder(ptq, &ts); ts 3010 tools/perf/util/intel-pt.c u64 ts = p[i].start; ts 3017 tools/perf/util/intel-pt.c r->start = ts ? intel_pt_tsc_start(ts, pt) : 0; ts 3021 tools/perf/util/intel-pt.c i, ts, te); ts 315 tools/perf/util/s390-cpumsf.c unsigned long long ts; ts 317 tools/perf/util/s390-cpumsf.c memcpy(&ts, &te->timestamp[idx], sizeof(ts)); ts 318 tools/perf/util/s390-cpumsf.c return be64toh(ts); ts 599 tools/perf/util/s390-cpumsf.c static int s390_cpumsf_samples(struct s390_cpumsf_queue *sfq, u64 *ts) ts 612 tools/perf/util/s390-cpumsf.c *ts = ~0ULL; ts 628 tools/perf/util/s390-cpumsf.c if (aux_ts > *ts) { ts 629 tools/perf/util/s390-cpumsf.c *ts = aux_ts; ts 657 tools/perf/util/s390-cpumsf.c if (aux_ts > *ts) { ts 658 tools/perf/util/s390-cpumsf.c *ts = aux_ts; ts 666 tools/perf/util/s390-cpumsf.c *ts = aux_ts; ts 693 tools/perf/util/s390-cpumsf.c u64 *ts) ts 712 tools/perf/util/s390-cpumsf.c *ts = ~0ULL; ts 748 tools/perf/util/s390-cpumsf.c err = s390_cpumsf_samples(sfq, ts); ts 800 tools/perf/util/s390-cpumsf.c unsigned int queue_nr, u64 ts) ts 816 tools/perf/util/s390-cpumsf.c return auxtrace_heap__add(&sf->heap, queue_nr, ts); ts 819 tools/perf/util/s390-cpumsf.c static int s390_cpumsf_setup_queues(struct s390_cpumsf *sf, u64 ts) ts 826 tools/perf/util/s390-cpumsf.c i, ts); ts 833 tools/perf/util/s390-cpumsf.c static int s390_cpumsf_update_queues(struct s390_cpumsf *sf, u64 ts) ts 839 tools/perf/util/s390-cpumsf.c return s390_cpumsf_setup_queues(sf, ts); ts 845 tools/perf/util/s390-cpumsf.c u64 ts; ts 864 tools/perf/util/s390-cpumsf.c ts = sf->heap.heap_array[0].ordinal + 1; ts 865 tools/perf/util/s390-cpumsf.c if (ts > timestamp) ts 866 tools/perf/util/s390-cpumsf.c ts = timestamp; ts 868 tools/perf/util/s390-cpumsf.c ts = timestamp; ts 871 tools/perf/util/s390-cpumsf.c ret = s390_cpumsf_run_decoder(sfq, &ts); ts 873 tools/perf/util/s390-cpumsf.c auxtrace_heap__add(&sf->heap, queue_nr, ts); ts 877 tools/perf/util/s390-cpumsf.c ret = auxtrace_heap__add(&sf->heap, queue_nr, ts); ts 954 tools/perf/util/stat-display.c char *prefix, struct timespec *ts) ts 964 tools/perf/util/stat-display.c sprintf(prefix, "%6lu.%09lu%s", ts->tv_sec, ts->tv_nsec, config->csv_sep); ts 1163 tools/perf/util/stat-display.c struct timespec *ts, ts 1172 tools/perf/util/stat-display.c print_interval(config, evlist, prefix = buf, ts); ts 219 tools/perf/util/stat.h struct timespec *ts, ts 110 tools/perf/util/thread-stack.c static int thread_stack__grow(struct thread_stack *ts) ts 115 tools/perf/util/thread-stack.c new_sz = ts->sz + STACK_GROWTH; ts 118 tools/perf/util/thread-stack.c new_stack = realloc(ts->stack, sz); ts 122 tools/perf/util/thread-stack.c ts->stack = new_stack; ts 123 tools/perf/util/thread-stack.c ts->sz = new_sz; ts 128 tools/perf/util/thread-stack.c static int thread_stack__init(struct thread_stack *ts, struct thread *thread, ts 133 tools/perf/util/thread-stack.c err = thread_stack__grow(ts); ts 141 tools/perf/util/thread-stack.c ts->kernel_start = machine__kernel_start(machine); ts 143 tools/perf/util/thread-stack.c ts->rstate = X86_RETPOLINE_POSSIBLE; ts 145 tools/perf/util/thread-stack.c ts->kernel_start = 1ULL << 63; ts 147 tools/perf/util/thread-stack.c ts->crp = crp; ts 155 tools/perf/util/thread-stack.c struct thread_stack *ts = thread->ts, *new_ts; ts 156 tools/perf/util/thread-stack.c unsigned int old_sz = ts ? ts->arr_sz : 0; ts 162 tools/perf/util/thread-stack.c if (!ts || new_sz > old_sz) { ts 163 tools/perf/util/thread-stack.c new_ts = calloc(new_sz, sizeof(*ts)); ts 166 tools/perf/util/thread-stack.c if (ts) ts 167 tools/perf/util/thread-stack.c memcpy(new_ts, ts, old_sz * sizeof(*ts)); ts 169 tools/perf/util/thread-stack.c zfree(&thread->ts); ts 170 tools/perf/util/thread-stack.c thread->ts = new_ts; ts 171 tools/perf/util/thread-stack.c ts = new_ts; ts 175 tools/perf/util/thread-stack.c (unsigned int)cpu < ts->arr_sz) ts 176 tools/perf/util/thread-stack.c ts += cpu; ts 178 tools/perf/util/thread-stack.c if (!ts->stack && ts 179 tools/perf/util/thread-stack.c thread_stack__init(ts, thread, crp)) ts 182 tools/perf/util/thread-stack.c return ts; ts 187 tools/perf/util/thread-stack.c struct thread_stack *ts = thread->ts; ts 192 tools/perf/util/thread-stack.c if (!ts || (unsigned int)cpu >= ts->arr_sz) ts 195 tools/perf/util/thread-stack.c ts += cpu; ts 197 tools/perf/util/thread-stack.c if (!ts->stack) ts 200 tools/perf/util/thread-stack.c return ts; ts 212 tools/perf/util/thread-stack.c return thread->ts; ts 215 tools/perf/util/thread-stack.c static int thread_stack__push(struct thread_stack *ts, u64 ret_addr, ts 220 tools/perf/util/thread-stack.c if (ts->cnt == ts->sz) { ts 221 tools/perf/util/thread-stack.c err = thread_stack__grow(ts); ts 224 tools/perf/util/thread-stack.c ts->cnt = 0; ts 228 tools/perf/util/thread-stack.c ts->stack[ts->cnt].trace_end = trace_end; ts 229 tools/perf/util/thread-stack.c ts->stack[ts->cnt++].ret_addr = ret_addr; ts 234 tools/perf/util/thread-stack.c static void thread_stack__pop(struct thread_stack *ts, u64 ret_addr) ts 247 tools/perf/util/thread-stack.c for (i = ts->cnt; i; ) { ts 248 tools/perf/util/thread-stack.c if (ts->stack[--i].ret_addr == ret_addr) { ts 249 tools/perf/util/thread-stack.c ts->cnt = i; ts 255 tools/perf/util/thread-stack.c static void thread_stack__pop_trace_end(struct thread_stack *ts) ts 259 tools/perf/util/thread-stack.c for (i = ts->cnt; i; ) { ts 260 tools/perf/util/thread-stack.c if (ts->stack[--i].trace_end) ts 261 tools/perf/util/thread-stack.c ts->cnt = i; ts 267 tools/perf/util/thread-stack.c static bool thread_stack__in_kernel(struct thread_stack *ts) ts 269 tools/perf/util/thread-stack.c if (!ts->cnt) ts 272 tools/perf/util/thread-stack.c return ts->stack[ts->cnt - 1].cp->in_kernel; ts 276 tools/perf/util/thread-stack.c struct thread_stack *ts, size_t idx, ts 279 tools/perf/util/thread-stack.c struct call_return_processor *crp = ts->crp; ts 283 tools/perf/util/thread-stack.c .comm = ts->comm, ts 288 tools/perf/util/thread-stack.c tse = &ts->stack[idx]; ts 292 tools/perf/util/thread-stack.c cr.branch_count = ts->branch_count - tse->branch_count; ts 293 tools/perf/util/thread-stack.c cr.insn_count = ts->insn_count - tse->insn_count; ts 294 tools/perf/util/thread-stack.c cr.cyc_count = ts->cyc_count - tse->cyc_count; ts 315 tools/perf/util/thread-stack.c static int __thread_stack__flush(struct thread *thread, struct thread_stack *ts) ts 317 tools/perf/util/thread-stack.c struct call_return_processor *crp = ts->crp; ts 321 tools/perf/util/thread-stack.c ts->cnt = 0; ts 325 tools/perf/util/thread-stack.c while (ts->cnt) { ts 326 tools/perf/util/thread-stack.c err = thread_stack__call_return(thread, ts, --ts->cnt, ts 327 tools/perf/util/thread-stack.c ts->last_time, 0, true); ts 330 tools/perf/util/thread-stack.c ts->cnt = 0; ts 340 tools/perf/util/thread-stack.c struct thread_stack *ts = thread->ts; ts 344 tools/perf/util/thread-stack.c if (ts) { ts 345 tools/perf/util/thread-stack.c for (pos = 0; pos < ts->arr_sz; pos++) { ts 346 tools/perf/util/thread-stack.c int ret = __thread_stack__flush(thread, ts + pos); ts 359 tools/perf/util/thread-stack.c struct thread_stack *ts = thread__stack(thread, cpu); ts 364 tools/perf/util/thread-stack.c if (!ts) { ts 365 tools/perf/util/thread-stack.c ts = thread_stack__new(thread, cpu, NULL); ts 366 tools/perf/util/thread-stack.c if (!ts) { ts 370 tools/perf/util/thread-stack.c ts->trace_nr = trace_nr; ts 378 tools/perf/util/thread-stack.c if (trace_nr != ts->trace_nr) { ts 379 tools/perf/util/thread-stack.c if (ts->trace_nr) ts 380 tools/perf/util/thread-stack.c __thread_stack__flush(thread, ts); ts 381 tools/perf/util/thread-stack.c ts->trace_nr = trace_nr; ts 385 tools/perf/util/thread-stack.c if (ts->crp) ts 396 tools/perf/util/thread-stack.c return thread_stack__push(ts, ret_addr, ts 406 tools/perf/util/thread-stack.c thread_stack__pop(ts, to_ip); ts 407 tools/perf/util/thread-stack.c thread_stack__pop_trace_end(ts); ts 409 tools/perf/util/thread-stack.c thread_stack__pop(ts, to_ip); ts 417 tools/perf/util/thread-stack.c struct thread_stack *ts = thread__stack(thread, cpu); ts 419 tools/perf/util/thread-stack.c if (!ts) ts 422 tools/perf/util/thread-stack.c if (trace_nr != ts->trace_nr) { ts 423 tools/perf/util/thread-stack.c if (ts->trace_nr) ts 424 tools/perf/util/thread-stack.c __thread_stack__flush(thread, ts); ts 425 tools/perf/util/thread-stack.c ts->trace_nr = trace_nr; ts 429 tools/perf/util/thread-stack.c static void __thread_stack__free(struct thread *thread, struct thread_stack *ts) ts 431 tools/perf/util/thread-stack.c __thread_stack__flush(thread, ts); ts 432 tools/perf/util/thread-stack.c zfree(&ts->stack); ts 435 tools/perf/util/thread-stack.c static void thread_stack__reset(struct thread *thread, struct thread_stack *ts) ts 437 tools/perf/util/thread-stack.c unsigned int arr_sz = ts->arr_sz; ts 439 tools/perf/util/thread-stack.c __thread_stack__free(thread, ts); ts 440 tools/perf/util/thread-stack.c memset(ts, 0, sizeof(*ts)); ts 441 tools/perf/util/thread-stack.c ts->arr_sz = arr_sz; ts 446 tools/perf/util/thread-stack.c struct thread_stack *ts = thread->ts; ts 449 tools/perf/util/thread-stack.c if (ts) { ts 450 tools/perf/util/thread-stack.c for (pos = 0; pos < ts->arr_sz; pos++) ts 451 tools/perf/util/thread-stack.c __thread_stack__free(thread, ts + pos); ts 452 tools/perf/util/thread-stack.c zfree(&thread->ts); ts 465 tools/perf/util/thread-stack.c struct thread_stack *ts = thread__stack(thread, cpu); ts 478 tools/perf/util/thread-stack.c if (!ts) { ts 485 tools/perf/util/thread-stack.c for (i = 2, j = 1; i < sz && j <= ts->cnt; i++, j++) { ts 486 tools/perf/util/thread-stack.c ip = ts->stack[ts->cnt - j].ret_addr; ts 529 tools/perf/util/thread-stack.c static int thread_stack__push_cp(struct thread_stack *ts, u64 ret_addr, ts 539 tools/perf/util/thread-stack.c if (ts->cnt == ts->sz) { ts 540 tools/perf/util/thread-stack.c err = thread_stack__grow(ts); ts 545 tools/perf/util/thread-stack.c tse = &ts->stack[ts->cnt++]; ts 549 tools/perf/util/thread-stack.c tse->branch_count = ts->branch_count; ts 550 tools/perf/util/thread-stack.c tse->insn_count = ts->insn_count; ts 551 tools/perf/util/thread-stack.c tse->cyc_count = ts->cyc_count; ts 561 tools/perf/util/thread-stack.c static int thread_stack__pop_cp(struct thread *thread, struct thread_stack *ts, ts 567 tools/perf/util/thread-stack.c if (!ts->cnt) ts 570 tools/perf/util/thread-stack.c if (ts->cnt == 1) { ts 571 tools/perf/util/thread-stack.c struct thread_stack_entry *tse = &ts->stack[0]; ts 574 tools/perf/util/thread-stack.c return thread_stack__call_return(thread, ts, --ts->cnt, ts 578 tools/perf/util/thread-stack.c if (ts->stack[ts->cnt - 1].ret_addr == ret_addr && ts 579 tools/perf/util/thread-stack.c !ts->stack[ts->cnt - 1].non_call) { ts 580 tools/perf/util/thread-stack.c return thread_stack__call_return(thread, ts, --ts->cnt, ts 583 tools/perf/util/thread-stack.c size_t i = ts->cnt - 1; ts 586 tools/perf/util/thread-stack.c if (ts->stack[i].ret_addr != ret_addr || ts 587 tools/perf/util/thread-stack.c ts->stack[i].non_call) ts 590 tools/perf/util/thread-stack.c while (ts->cnt > i) { ts 591 tools/perf/util/thread-stack.c err = thread_stack__call_return(thread, ts, ts 592 tools/perf/util/thread-stack.c --ts->cnt, ts 598 tools/perf/util/thread-stack.c return thread_stack__call_return(thread, ts, --ts->cnt, ts 606 tools/perf/util/thread-stack.c static int thread_stack__bottom(struct thread_stack *ts, ts 611 tools/perf/util/thread-stack.c struct call_path_root *cpr = ts->crp->cpr; ts 627 tools/perf/util/thread-stack.c ts->kernel_start); ts 629 tools/perf/util/thread-stack.c return thread_stack__push_cp(ts, ip, sample->time, ref, cp, ts 633 tools/perf/util/thread-stack.c static int thread_stack__pop_ks(struct thread *thread, struct thread_stack *ts, ts 640 tools/perf/util/thread-stack.c while (thread_stack__in_kernel(ts)) { ts 641 tools/perf/util/thread-stack.c err = thread_stack__call_return(thread, ts, --ts->cnt, ts 651 tools/perf/util/thread-stack.c struct thread_stack *ts, ts 656 tools/perf/util/thread-stack.c struct call_path_root *cpr = ts->crp->cpr; ts 661 tools/perf/util/thread-stack.c u64 ks = ts->kernel_start; ts 669 tools/perf/util/thread-stack.c err = thread_stack__pop_ks(thread, ts, sample, ref); ts 674 tools/perf/util/thread-stack.c if (!ts->cnt) { ts 676 tools/perf/util/thread-stack.c return thread_stack__push_cp(ts, 0, tm, ref, cp, true, ts 679 tools/perf/util/thread-stack.c } else if (thread_stack__in_kernel(ts) && ip < ks) { ts 681 tools/perf/util/thread-stack.c err = thread_stack__pop_ks(thread, ts, sample, ref); ts 686 tools/perf/util/thread-stack.c if (ts->cnt) ts 687 tools/perf/util/thread-stack.c parent = ts->stack[ts->cnt - 1].cp; ts 697 tools/perf/util/thread-stack.c if (ts->cnt == 1) { ts 698 tools/perf/util/thread-stack.c err = thread_stack__call_return(thread, ts, --ts->cnt, ts 704 tools/perf/util/thread-stack.c if (!ts->cnt) { ts 707 tools/perf/util/thread-stack.c return thread_stack__push_cp(ts, addr, tm, ref, cp, ts 717 tools/perf/util/thread-stack.c err = thread_stack__push_cp(ts, 0, tm, ref, cp, true, false); ts 719 tools/perf/util/thread-stack.c ts->stack[ts->cnt - 1].non_call = true; ts 731 tools/perf/util/thread-stack.c err = thread_stack__push_cp(ts, addr, tm, ref, cp, true, false); ts 737 tools/perf/util/thread-stack.c err = thread_stack__push_cp(ts, ip, tm, ref, cp, true, false); ts 741 tools/perf/util/thread-stack.c return thread_stack__call_return(thread, ts, --ts->cnt, tm, ref, false); ts 745 tools/perf/util/thread-stack.c struct thread_stack *ts, u64 timestamp, ts 751 tools/perf/util/thread-stack.c if (!ts->cnt) ts 755 tools/perf/util/thread-stack.c tse = &ts->stack[ts->cnt - 1]; ts 757 tools/perf/util/thread-stack.c err = thread_stack__call_return(thread, ts, --ts->cnt, ts 766 tools/perf/util/thread-stack.c static int thread_stack__trace_end(struct thread_stack *ts, ts 769 tools/perf/util/thread-stack.c struct call_path_root *cpr = ts->crp->cpr; ts 774 tools/perf/util/thread-stack.c if (!ts->cnt || (ts->cnt == 1 && ts->stack[0].ref == ref)) ts 777 tools/perf/util/thread-stack.c cp = call_path__findnew(cpr, ts->stack[ts->cnt - 1].cp, NULL, 0, ts 778 tools/perf/util/thread-stack.c ts->kernel_start); ts 782 tools/perf/util/thread-stack.c return thread_stack__push_cp(ts, ret_addr, sample->time, ref, cp, ts 798 tools/perf/util/thread-stack.c static int thread_stack__x86_retpoline(struct thread_stack *ts, ts 802 tools/perf/util/thread-stack.c struct thread_stack_entry *tse = &ts->stack[ts->cnt - 1]; ts 803 tools/perf/util/thread-stack.c struct call_path_root *cpr = ts->crp->cpr; ts 819 tools/perf/util/thread-stack.c ts->cnt -= 1; ts 820 tools/perf/util/thread-stack.c sym = ts->stack[ts->cnt - 2].cp->sym; ts 827 tools/perf/util/thread-stack.c ts->cnt -= 1; ts 835 tools/perf/util/thread-stack.c ts->cnt -= 1; ts 839 tools/perf/util/thread-stack.c cp = call_path__findnew(cpr, ts->stack[ts->cnt - 2].cp, tsym, ts 840 tools/perf/util/thread-stack.c sample->addr, ts->kernel_start); ts 845 tools/perf/util/thread-stack.c ts->stack[ts->cnt - 1].cp = cp; ts 856 tools/perf/util/thread-stack.c struct thread_stack *ts = thread__stack(thread, sample->cpu); ts 860 tools/perf/util/thread-stack.c if (ts && !ts->crp) { ts 862 tools/perf/util/thread-stack.c thread_stack__reset(thread, ts); ts 863 tools/perf/util/thread-stack.c ts = NULL; ts 866 tools/perf/util/thread-stack.c if (!ts) { ts 867 tools/perf/util/thread-stack.c ts = thread_stack__new(thread, sample->cpu, crp); ts 868 tools/perf/util/thread-stack.c if (!ts) ts 870 tools/perf/util/thread-stack.c ts->comm = comm; ts 873 tools/perf/util/thread-stack.c rstate = ts->rstate; ts 875 tools/perf/util/thread-stack.c ts->rstate = X86_RETPOLINE_POSSIBLE; ts 878 tools/perf/util/thread-stack.c if (ts->comm != comm && thread->pid_ == thread->tid) { ts 879 tools/perf/util/thread-stack.c err = __thread_stack__flush(thread, ts); ts 882 tools/perf/util/thread-stack.c ts->comm = comm; ts 886 tools/perf/util/thread-stack.c if (!ts->cnt) { ts 887 tools/perf/util/thread-stack.c err = thread_stack__bottom(ts, sample, from_al, to_al, ref); ts 892 tools/perf/util/thread-stack.c ts->branch_count += 1; ts 893 tools/perf/util/thread-stack.c ts->insn_count += sample->insn_cnt; ts 894 tools/perf/util/thread-stack.c ts->cyc_count += sample->cyc_cnt; ts 895 tools/perf/util/thread-stack.c ts->last_time = sample->time; ts 899 tools/perf/util/thread-stack.c struct call_path_root *cpr = ts->crp->cpr; ts 910 tools/perf/util/thread-stack.c cp = call_path__findnew(cpr, ts->stack[ts->cnt - 1].cp, ts 912 tools/perf/util/thread-stack.c ts->kernel_start); ts 913 tools/perf/util/thread-stack.c err = thread_stack__push_cp(ts, ret_addr, sample->time, ref, ts 923 tools/perf/util/thread-stack.c ts->rstate = X86_RETPOLINE_DETECTED; ts 934 tools/perf/util/thread-stack.c return thread_stack__pop_ks(thread, ts, sample, ref); ts 941 tools/perf/util/thread-stack.c if (rstate == X86_RETPOLINE_DETECTED && ts->cnt > 2 && ts 942 tools/perf/util/thread-stack.c ts->stack[ts->cnt - 1].ret_addr != sample->addr) ts 943 tools/perf/util/thread-stack.c return thread_stack__x86_retpoline(ts, sample, to_al); ts 945 tools/perf/util/thread-stack.c err = thread_stack__pop_cp(thread, ts, sample->addr, ts 950 tools/perf/util/thread-stack.c err = thread_stack__no_call_return(thread, ts, sample, ts 954 tools/perf/util/thread-stack.c err = thread_stack__trace_begin(thread, ts, sample->time, ref); ts 956 tools/perf/util/thread-stack.c err = thread_stack__trace_end(ts, sample, ref); ts 960 tools/perf/util/thread-stack.c struct call_path_root *cpr = ts->crp->cpr; ts 969 tools/perf/util/thread-stack.c cp = call_path__findnew(cpr, ts->stack[ts->cnt - 1].cp, ts 971 tools/perf/util/thread-stack.c ts->kernel_start); ts 972 tools/perf/util/thread-stack.c err = thread_stack__push_cp(ts, 0, sample->time, ref, cp, false, ts 975 tools/perf/util/thread-stack.c ts->stack[ts->cnt - 1].non_call = true; ts 983 tools/perf/util/thread-stack.c struct thread_stack *ts = thread__stack(thread, cpu); ts 985 tools/perf/util/thread-stack.c if (!ts) ts 987 tools/perf/util/thread-stack.c return ts->cnt; ts 44 tools/perf/util/thread.h struct thread_stack *ts; ts 45 tools/perf/util/time-utils.h struct timespec ts; ts 47 tools/perf/util/time-utils.h clock_gettime(CLOCK_MONOTONIC, &ts); ts 48 tools/perf/util/time-utils.h return ts.tv_sec * 1000000000ULL + ts.tv_nsec; ts 31 tools/testing/selftests/bpf/progs/netcnt_prog.c __u64 ts, dt; ts 50 tools/testing/selftests/bpf/progs/netcnt_prog.c ts = bpf_ktime_get_ns(); ts 51 tools/testing/selftests/bpf/progs/netcnt_prog.c dt = ts - percpu_cnt->prev_ts; ts 62 tools/testing/selftests/bpf/progs/netcnt_prog.c percpu_cnt->prev_ts = ts; ts 126 tools/testing/selftests/bpf/progs/test_tcp_estats.c unsigned long ts; ts 167 tools/testing/selftests/bpf/progs/test_tcp_estats.c event->ts = bpf_ktime_get_ns(); ts 284 tools/testing/selftests/futex/functional/futex_requeue_pi.c struct timespec ts, *tsp = NULL; ts 293 tools/testing/selftests/futex/functional/futex_requeue_pi.c ret = clock_gettime(CLOCK_MONOTONIC, &ts); ts 294 tools/testing/selftests/futex/functional/futex_requeue_pi.c secs = (ts.tv_nsec + timeout_ns) / 1000000000; ts 295 tools/testing/selftests/futex/functional/futex_requeue_pi.c ts.tv_nsec = ((int64_t)ts.tv_nsec + timeout_ns) % 1000000000; ts 296 tools/testing/selftests/futex/functional/futex_requeue_pi.c ts.tv_sec += secs; ts 297 tools/testing/selftests/futex/functional/futex_requeue_pi.c info("ts.tv_sec = %ld\n", ts.tv_sec); ts 298 tools/testing/selftests/futex/functional/futex_requeue_pi.c info("ts.tv_nsec = %ld\n", ts.tv_nsec); ts 299 tools/testing/selftests/futex/functional/futex_requeue_pi.c tsp = &ts; ts 55 tools/testing/selftests/net/so_txtime.c struct timespec ts; ts 57 tools/testing/selftests/net/so_txtime.c if (clock_gettime(cfg_clockid, &ts)) ts 60 tools/testing/selftests/net/so_txtime.c return ts.tv_sec * (1000ULL * 1000 * 1000) + ts.tv_nsec; ts 63 tools/testing/selftests/net/so_txtime.c static void do_send_one(int fdt, struct timed_send *ts) ts 72 tools/testing/selftests/net/so_txtime.c iov.iov_base = &ts->data; ts 78 tools/testing/selftests/net/so_txtime.c if (ts->delay_us >= 0) { ts 83 tools/testing/selftests/net/so_txtime.c tdeliver = glob_tstart + ts->delay_us * 1000; ts 100 tools/testing/selftests/net/so_txtime.c static bool do_recv_one(int fdr, struct timed_send *ts) ts 115 tools/testing/selftests/net/so_txtime.c texpect = ts->delay_us >= 0 ? ts->delay_us : 0; ts 120 tools/testing/selftests/net/so_txtime.c if (rbuf[0] != ts->data) ts 121 tools/testing/selftests/net/so_txtime.c error(1, 0, "payload mismatch. expected %c", ts->data); ts 151 tools/testing/selftests/net/udpgso_bench_tx.c if (tss->ts[i].tv_sec == 0) ts 175 tools/testing/selftests/networking/timestamping/rxtimestamp.c struct scm_timestamping *ts; ts 216 tools/testing/selftests/networking/timestamping/rxtimestamp.c ts = (struct scm_timestamping *)CMSG_DATA(cmsg); ts 217 tools/testing/selftests/networking/timestamping/rxtimestamp.c actual.swtstamp = !!ts->ts[0].tv_sec; ts 218 tools/testing/selftests/networking/timestamping/rxtimestamp.c if (ts->ts[1].tv_sec != 0) ts 220 tools/testing/selftests/networking/timestamping/rxtimestamp.c actual.hwtstamp = !!ts->ts[2].tv_sec; ts 142 tools/testing/selftests/networking/timestamping/timestamping.c struct timespec ts; ts 250 tools/testing/selftests/networking/timestamping/timestamping.c if (ioctl(sock, SIOCGSTAMPNS, &ts)) ts 254 tools/testing/selftests/networking/timestamping/timestamping.c (long)ts.tv_sec, ts 255 tools/testing/selftests/networking/timestamping/timestamping.c (long)ts.tv_nsec); ts 80 tools/testing/selftests/networking/timestamping/txtimestamp.c static int64_t timespec_to_us64(struct timespec *ts) ts 82 tools/testing/selftests/networking/timestamping/txtimestamp.c return ts->tv_sec * 1000 * 1000 + ts->tv_nsec / 1000; ts 157 tools/testing/selftests/networking/timestamping/txtimestamp.c validate_timestamp(&tss->ts[0], 0); ts 161 tools/testing/selftests/networking/timestamping/txtimestamp.c validate_timestamp(&tss->ts[0], cfg_delay_snd); ts 165 tools/testing/selftests/networking/timestamping/txtimestamp.c validate_timestamp(&tss->ts[0], cfg_delay_ack); ts 171 tools/testing/selftests/networking/timestamping/txtimestamp.c __print_timestamp(tsname, &tss->ts[0], tskey, payload_len); ts 151 tools/testing/selftests/ptp/testptp.c struct timespec ts; ts 307 tools/testing/selftests/ptp/testptp.c if (clock_gettime(clkid, &ts)) { ts 311 tools/testing/selftests/ptp/testptp.c ts.tv_sec, ts.tv_nsec, ctime(&ts.tv_sec)); ts 316 tools/testing/selftests/ptp/testptp.c clock_gettime(CLOCK_REALTIME, &ts); ts 317 tools/testing/selftests/ptp/testptp.c if (clock_settime(clkid, &ts)) { ts 325 tools/testing/selftests/ptp/testptp.c clock_gettime(clkid, &ts); ts 326 tools/testing/selftests/ptp/testptp.c if (clock_settime(CLOCK_REALTIME, &ts)) { ts 334 tools/testing/selftests/ptp/testptp.c ts.tv_sec = seconds; ts 335 tools/testing/selftests/ptp/testptp.c ts.tv_nsec = 0; ts 336 tools/testing/selftests/ptp/testptp.c if (clock_settime(clkid, &ts)) { ts 393 tools/testing/selftests/ptp/testptp.c if (clock_gettime(clkid, &ts)) { ts 399 tools/testing/selftests/ptp/testptp.c perout_request.start.sec = ts.tv_sec + 2; ts 450 tools/testing/selftests/ptp/testptp.c pct = &sysoff->ts[0]; ts 44 tools/testing/selftests/timers/adjtick.c unsigned long long ts_to_nsec(struct timespec ts) ts 46 tools/testing/selftests/timers/adjtick.c return ts.tv_sec * NSEC_PER_SEC + ts.tv_nsec; ts 51 tools/testing/selftests/timers/adjtick.c struct timespec ts; ts 53 tools/testing/selftests/timers/adjtick.c ts.tv_sec = ns/NSEC_PER_SEC; ts 54 tools/testing/selftests/timers/adjtick.c ts.tv_nsec = ns%NSEC_PER_SEC; ts 56 tools/testing/selftests/timers/adjtick.c return ts; ts 100 tools/testing/selftests/timers/alarmtimer-suspend.c struct timespec ts; ts 102 tools/testing/selftests/timers/alarmtimer-suspend.c clock_gettime(alarm_clock_id, &ts); ts 105 tools/testing/selftests/timers/alarmtimer-suspend.c delta_ns = timespec_sub(start_time, ts); ts 108 tools/testing/selftests/timers/alarmtimer-suspend.c printf("ALARM(%i): %ld:%ld latency: %lld ns ", alarmcount, ts.tv_sec, ts 109 tools/testing/selftests/timers/alarmtimer-suspend.c ts.tv_nsec, delta_ns); ts 205 tools/testing/selftests/timers/freq-step.c struct timespec ts; ts 208 tools/testing/selftests/timers/freq-step.c if (clock_gettime(CLOCK_MONOTONIC_RAW, &ts)) { ts 213 tools/testing/selftests/timers/freq-step.c mono_raw_base = ts.tv_sec; ts 215 tools/testing/selftests/timers/freq-step.c if (clock_gettime(CLOCK_MONOTONIC, &ts)) { ts 220 tools/testing/selftests/timers/freq-step.c mono_base = ts.tv_sec; ts 233 tools/testing/selftests/timers/freq-step.c srand(ts.tv_sec ^ ts.tv_nsec); ts 159 tools/testing/selftests/timers/inconsistency-check.c struct timespec ts; ts 186 tools/testing/selftests/timers/inconsistency-check.c if (!clock_gettime(clockid, &ts)) { ts 71 tools/testing/selftests/timers/leap-a-day.c struct timespec timespec_add(struct timespec ts, unsigned long long ns) ts 73 tools/testing/selftests/timers/leap-a-day.c ts.tv_nsec += ns; ts 74 tools/testing/selftests/timers/leap-a-day.c while (ts.tv_nsec >= NSEC_PER_SEC) { ts 75 tools/testing/selftests/timers/leap-a-day.c ts.tv_nsec -= NSEC_PER_SEC; ts 76 tools/testing/selftests/timers/leap-a-day.c ts.tv_sec++; ts 78 tools/testing/selftests/timers/leap-a-day.c return ts; ts 213 tools/testing/selftests/timers/leap-a-day.c struct timespec ts; ts 215 tools/testing/selftests/timers/leap-a-day.c if (clock_gettime(CLOCK_TAI, &ts)) { ts 238 tools/testing/selftests/timers/leap-a-day.c struct timespec ts; ts 243 tools/testing/selftests/timers/leap-a-day.c clock_gettime(CLOCK_REALTIME, &ts); ts 246 tools/testing/selftests/timers/leap-a-day.c next_leap = ts.tv_sec; ts 307 tools/testing/selftests/timers/leap-a-day.c ts.tv_sec = next_leap - 3; ts 308 tools/testing/selftests/timers/leap-a-day.c ts.tv_nsec = 0; ts 311 tools/testing/selftests/timers/leap-a-day.c while (clock_nanosleep(CLOCK_REALTIME, TIMER_ABSTIME, &ts, NULL)) ts 355 tools/testing/selftests/timers/leap-a-day.c ts.tv_sec = 0; ts 356 tools/testing/selftests/timers/leap-a-day.c ts.tv_nsec = NSEC_PER_SEC / 2; ts 357 tools/testing/selftests/timers/leap-a-day.c clock_nanosleep(CLOCK_MONOTONIC, 0, &ts, NULL); ts 61 tools/testing/selftests/timers/leapcrash.c struct timespec ts; ts 75 tools/testing/selftests/timers/leapcrash.c clock_gettime(CLOCK_REALTIME, &ts); ts 78 tools/testing/selftests/timers/leapcrash.c next_leap = ts.tv_sec; ts 48 tools/testing/selftests/timers/mqueue-lat.c struct timespec timespec_add(struct timespec ts, unsigned long long ns) ts 50 tools/testing/selftests/timers/mqueue-lat.c ts.tv_nsec += ns; ts 51 tools/testing/selftests/timers/mqueue-lat.c while (ts.tv_nsec >= NSEC_PER_SEC) { ts 52 tools/testing/selftests/timers/mqueue-lat.c ts.tv_nsec -= NSEC_PER_SEC; ts 53 tools/testing/selftests/timers/mqueue-lat.c ts.tv_sec++; ts 55 tools/testing/selftests/timers/mqueue-lat.c return ts; ts 91 tools/testing/selftests/timers/nanosleep.c struct timespec timespec_add(struct timespec ts, unsigned long long ns) ts 93 tools/testing/selftests/timers/nanosleep.c ts.tv_nsec += ns; ts 94 tools/testing/selftests/timers/nanosleep.c while (ts.tv_nsec >= NSEC_PER_SEC) { ts 95 tools/testing/selftests/timers/nanosleep.c ts.tv_nsec -= NSEC_PER_SEC; ts 96 tools/testing/selftests/timers/nanosleep.c ts.tv_sec++; ts 98 tools/testing/selftests/timers/nanosleep.c return ts; ts 79 tools/testing/selftests/timers/nsleep-lat.c struct timespec timespec_add(struct timespec ts, unsigned long long ns) ts 81 tools/testing/selftests/timers/nsleep-lat.c ts.tv_nsec += ns; ts 82 tools/testing/selftests/timers/nsleep-lat.c while (ts.tv_nsec >= NSEC_PER_SEC) { ts 83 tools/testing/selftests/timers/nsleep-lat.c ts.tv_nsec -= NSEC_PER_SEC; ts 84 tools/testing/selftests/timers/nsleep-lat.c ts.tv_sec++; ts 86 tools/testing/selftests/timers/nsleep-lat.c return ts; ts 46 tools/testing/selftests/timers/raw_skew.c unsigned long long ts_to_nsec(struct timespec ts) ts 48 tools/testing/selftests/timers/raw_skew.c return ts.tv_sec * NSEC_PER_SEC + ts.tv_nsec; ts 53 tools/testing/selftests/timers/raw_skew.c struct timespec ts; ts 55 tools/testing/selftests/timers/raw_skew.c ts.tv_sec = ns/NSEC_PER_SEC; ts 56 tools/testing/selftests/timers/raw_skew.c ts.tv_nsec = ns%NSEC_PER_SEC; ts 57 tools/testing/selftests/timers/raw_skew.c return ts; ts 100 tools/testing/selftests/timers/set-timer-lat.c struct timespec ts; ts 102 tools/testing/selftests/timers/set-timer-lat.c clock_gettime(clock_id, &ts); ts 105 tools/testing/selftests/timers/set-timer-lat.c delta_ns = timespec_sub(start_time, ts); ts 124 tools/testing/selftests/x86/test_vdso.c static inline int sys_clock_gettime(clockid_t id, struct timespec *ts) ts 126 tools/testing/selftests/x86/test_vdso.c return syscall(__NR_clock_gettime, id, ts); ts 164 tools/testing/selftests/x86/test_vsyscall.c static inline int sys_clock_gettime(clockid_t id, struct timespec *ts) ts 166 tools/testing/selftests/x86/test_vsyscall.c return syscall(SYS_clock_gettime, id, ts); ts 60 tools/thermal/tmon/pid.c p_param.ts = ticktime; ts 102 tools/thermal/tmon/pid.c i_term = p_param.kp * p_param.ki * p_param.ts * ek; ts 103 tools/thermal/tmon/pid.c d_term = -p_param.kp * p_param.kd * (xk - 2 * xk_1 + xk_2) / p_param.ts; ts 126 tools/thermal/tmon/tmon.h double ts; ts 108 tools/virtio/virtio-trace/trace-agent-rw.c struct rw_thread_info *ts = (struct rw_thread_info *)thread_info; ts 110 tools/virtio/virtio-trace/trace-agent-rw.c bind_cpu(ts->cpu_num); ts 127 tools/virtio/virtio-trace/trace-agent-rw.c rlen = splice(ts->in_fd, NULL, ts->read_pipe, NULL, ts 128 tools/virtio/virtio-trace/trace-agent-rw.c ts->pipe_size, SPLICE_F_MOVE | SPLICE_F_MORE); ts 131 tools/virtio/virtio-trace/trace-agent-rw.c pr_err("Splice_read in rw-thread(%d)\n", ts->cpu_num); ts 141 tools/virtio/virtio-trace/trace-agent-rw.c pr_debug("Read retry(cpu:%d)\n", ts->cpu_num); ts 148 tools/virtio/virtio-trace/trace-agent-rw.c ret = splice(ts->write_pipe, NULL, ts->out_fd, NULL, ts 154 tools/virtio/virtio-trace/trace-agent-rw.c ts->cpu_num);