Home
last modified time | relevance | path

Searched refs:tss (Results 1 – 25 of 32) sorted by relevance

12

/linux-6.1.9/net/core/
Dscm.c264 struct scm_timestamping64 tss; in put_cmsg_scm_timestamping64() local
267 for (i = 0; i < ARRAY_SIZE(tss.ts); i++) { in put_cmsg_scm_timestamping64()
268 tss.ts[i].tv_sec = tss_internal->ts[i].tv_sec; in put_cmsg_scm_timestamping64()
269 tss.ts[i].tv_nsec = tss_internal->ts[i].tv_nsec; in put_cmsg_scm_timestamping64()
272 put_cmsg(msg, SOL_SOCKET, SO_TIMESTAMPING_NEW, sizeof(tss), &tss); in put_cmsg_scm_timestamping64()
278 struct scm_timestamping tss; in put_cmsg_scm_timestamping() local
281 for (i = 0; i < ARRAY_SIZE(tss.ts); i++) { in put_cmsg_scm_timestamping()
282 tss.ts[i].tv_sec = tss_internal->ts[i].tv_sec; in put_cmsg_scm_timestamping()
283 tss.ts[i].tv_nsec = tss_internal->ts[i].tv_nsec; in put_cmsg_scm_timestamping()
286 put_cmsg(msg, SOL_SOCKET, SO_TIMESTAMPING_OLD, sizeof(tss), &tss); in put_cmsg_scm_timestamping()
/linux-6.1.9/tools/testing/selftests/net/
Dtxtimestamp.c213 static void print_timestamp(struct scm_timestamping *tss, int tstype, in print_timestamp() argument
223 validate_timestamp(&tss->ts[0], 0); in print_timestamp()
224 add_timing_event(&usr_enq, &ts_usr, &tss->ts[0]); in print_timestamp()
228 validate_timestamp(&tss->ts[0], cfg_delay_snd); in print_timestamp()
229 add_timing_event(&usr_snd, &ts_usr, &tss->ts[0]); in print_timestamp()
233 validate_timestamp(&tss->ts[0], cfg_delay_ack); in print_timestamp()
234 add_timing_event(&usr_ack, &ts_usr, &tss->ts[0]); in print_timestamp()
240 __print_timestamp(tsname, &tss->ts[0], tskey, payload_len); in print_timestamp()
311 struct scm_timestamping *tss = NULL; in __recv_errmsg_cmsg() local
320 tss = (void *) CMSG_DATA(cm); in __recv_errmsg_cmsg()
[all …]
Dudpgso_bench_tx.c141 struct scm_timestamping *tss; in flush_cmsg() local
150 tss = (struct scm_timestamping *)CMSG_DATA(cmsg); in flush_cmsg()
151 if (tss->ts[i].tv_sec == 0) in flush_cmsg()
/linux-6.1.9/arch/x86/include/asm/
Ddesc.h183 tss_desc tss; in __set_tss_desc() local
185 set_tssldt_descriptor(&tss, (unsigned long)addr, DESC_TSS, in __set_tss_desc()
187 write_gdt_entry(d, entry, &tss, DESC_TSS); in __set_tss_desc()
306 tss_desc tss; in force_reload_TR() local
308 memcpy(&tss, &d[GDT_ENTRY_TSS], sizeof(tss_desc)); in force_reload_TR()
314 tss.type = DESC_TSS; in force_reload_TR()
315 write_gdt_entry(d, GDT_ENTRY_TSS, &tss, DESC_TSS); in force_reload_TR()
Dcpu_entry_area.h78 struct x86_hw_tss tss; member
112 struct tss_struct tss; member
Dsuspend_32.h26 u16 tss; member
Dsuspend_64.h50 u16 tss; member
/linux-6.1.9/arch/x86/kernel/
Ddoublefault_32.c85 .tss = {
110 &get_cpu_entry_area(cpu)->doublefault_stack.tss); in set_df_gdt_entry()
123 this_cpu_write(doublefault_stack.tss.sp, in doublefault_init_cpu_tss()
Dprocess.c386 static void tss_copy_io_bitmap(struct tss_struct *tss, struct io_bitmap *iobm) in tss_copy_io_bitmap() argument
396 memcpy(tss->io_bitmap.bitmap, iobm->bitmap, in tss_copy_io_bitmap()
397 max(tss->io_bitmap.prev_max, iobm->max)); in tss_copy_io_bitmap()
403 tss->io_bitmap.prev_max = iobm->max; in tss_copy_io_bitmap()
404 tss->io_bitmap.prev_sequence = iobm->sequence; in tss_copy_io_bitmap()
412 struct tss_struct *tss = this_cpu_ptr(&cpu_tss_rw); in native_tss_update_io_bitmap() local
414 u16 *base = &tss->x86_tss.io_bitmap_base; in native_tss_update_io_bitmap()
430 if (tss->io_bitmap.prev_sequence != iobm->sequence) in native_tss_update_io_bitmap()
431 tss_copy_io_bitmap(tss, iobm); in native_tss_update_io_bitmap()
Dasm-offsets_32.c53 offsetof(struct cpu_entry_area, tss.x86_tss.sp1) - in foo()
/linux-6.1.9/drivers/ata/
Dpata_mpc52xx.c121 u8 tss; member
127 .tsr = 3, .trfs = 5, .trp = 11, .tack = 2, .tss = 4,
131 .tsr = 2, .trfs = 5, .trp = 9, .tack = 2, .tss = 4,
135 .tsr = 2, .trfs = 4, .trp = 7, .tack = 2, .tss = 4,
139 .tsr = 2, .trfs = 4, .trp = 7, .tack = 2, .tss = 4,
143 .tsr = 2, .trfs = 4, .trp = 7, .tack = 2, .tss = 4,
147 .tsr = 2, .trfs = 4, .trp = 6, .tack = 2, .tss = 4,
154 .tsr = 7, .trfs = 10, .trp = 22, .tack = 3, .tss = 7,
158 .tsr = 4, .trfs = 10, .trp = 17, .tack = 3, .tss = 7,
162 .tsr = 3, .trfs = 8, .trp = 14, .tack = 3, .tss = 7,
[all …]
/linux-6.1.9/arch/x86/kernel/cpu/
Dcommon.c1906 struct tss_struct *tss; in enable_sep_cpu() local
1913 tss = &per_cpu(cpu_tss_rw, cpu); in enable_sep_cpu()
1920 tss->x86_tss.ss1 = __KERNEL_CS; in enable_sep_cpu()
1921 wrmsr(MSR_IA32_SYSENTER_CS, tss->x86_tss.ss1, 0); in enable_sep_cpu()
2159 static inline void tss_setup_ist(struct tss_struct *tss) in tss_setup_ist() argument
2162 tss->x86_tss.ist[IST_INDEX_DF] = __this_cpu_ist_top_va(DF); in tss_setup_ist()
2163 tss->x86_tss.ist[IST_INDEX_NMI] = __this_cpu_ist_top_va(NMI); in tss_setup_ist()
2164 tss->x86_tss.ist[IST_INDEX_DB] = __this_cpu_ist_top_va(DB); in tss_setup_ist()
2165 tss->x86_tss.ist[IST_INDEX_MCE] = __this_cpu_ist_top_va(MCE); in tss_setup_ist()
2167 tss->x86_tss.ist[IST_INDEX_VC] = __this_cpu_ist_top_va(VC); in tss_setup_ist()
[all …]
/linux-6.1.9/arch/x86/kvm/
Demulate.c3009 struct tss_segment_16 *tss) in save_state_to_tss16() argument
3011 tss->ip = ctxt->_eip; in save_state_to_tss16()
3012 tss->flag = ctxt->eflags; in save_state_to_tss16()
3013 tss->ax = reg_read(ctxt, VCPU_REGS_RAX); in save_state_to_tss16()
3014 tss->cx = reg_read(ctxt, VCPU_REGS_RCX); in save_state_to_tss16()
3015 tss->dx = reg_read(ctxt, VCPU_REGS_RDX); in save_state_to_tss16()
3016 tss->bx = reg_read(ctxt, VCPU_REGS_RBX); in save_state_to_tss16()
3017 tss->sp = reg_read(ctxt, VCPU_REGS_RSP); in save_state_to_tss16()
3018 tss->bp = reg_read(ctxt, VCPU_REGS_RBP); in save_state_to_tss16()
3019 tss->si = reg_read(ctxt, VCPU_REGS_RSI); in save_state_to_tss16()
[all …]
/linux-6.1.9/net/ipv4/
Dtcp.c736 struct tcp_splice_state *tss = rd_desc->arg.data; in tcp_splice_data_recv() local
739 ret = skb_splice_bits(skb, skb->sk, offset, tss->pipe, in tcp_splice_data_recv()
740 min(rd_desc->count, len), tss->flags); in tcp_splice_data_recv()
746 static int __tcp_splice_read(struct sock *sk, struct tcp_splice_state *tss) in __tcp_splice_read() argument
750 .arg.data = tss, in __tcp_splice_read()
751 .count = tss->len, in __tcp_splice_read()
774 struct tcp_splice_state tss = { in tcp_splice_read() local
795 while (tss.len) { in tcp_splice_read()
796 ret = __tcp_splice_read(sk, &tss); in tcp_splice_read()
835 tss.len -= ret; in tcp_splice_read()
[all …]
/linux-6.1.9/arch/x86/power/
Dcpu.c154 tss_desc tss; in fix_processor_context() local
164 set_tss_desc(cpu, &get_cpu_entry_area(cpu)->tss.x86_tss); in fix_processor_context()
167 memcpy(&tss, &desc[GDT_ENTRY_TSS], sizeof(tss_desc)); in fix_processor_context()
168 tss.type = 0x9; /* The available 64-bit TSS (see AMD vol 2, pg 91 */ in fix_processor_context()
169 write_gdt_entry(desc, GDT_ENTRY_TSS, &tss, DESC_TSS); in fix_processor_context()
/linux-6.1.9/drivers/acpi/
Dprocessor_throttling.c491 union acpi_object *tss = NULL; in acpi_processor_get_throttling_states() local
502 tss = buffer.pointer; in acpi_processor_get_throttling_states()
503 if (!tss || (tss->type != ACPI_TYPE_PACKAGE)) { in acpi_processor_get_throttling_states()
510 tss->package.count); in acpi_processor_get_throttling_states()
512 pr->throttling.state_count = tss->package.count; in acpi_processor_get_throttling_states()
514 kmalloc_array(tss->package.count, in acpi_processor_get_throttling_states()
533 status = acpi_extract_package(&(tss->package.elements[i]), in acpi_processor_get_throttling_states()
/linux-6.1.9/drivers/media/platform/qcom/venus/
Dhelpers.c455 for (i = 0; i < ARRAY_SIZE(inst->tss); i++) { in put_ts_metadata()
456 if (!inst->tss[i].used) { in put_ts_metadata()
469 inst->tss[slot].used = true; in put_ts_metadata()
470 inst->tss[slot].flags = vbuf->flags; in put_ts_metadata()
471 inst->tss[slot].tc = vbuf->timecode; in put_ts_metadata()
472 inst->tss[slot].ts_us = ts_us; in put_ts_metadata()
473 inst->tss[slot].ts_ns = vb->timestamp; in put_ts_metadata()
482 for (i = 0; i < ARRAY_SIZE(inst->tss); ++i) { in venus_helper_get_ts_metadata()
483 if (!inst->tss[i].used) in venus_helper_get_ts_metadata()
486 if (inst->tss[i].ts_us != timestamp_us) in venus_helper_get_ts_metadata()
[all …]
Dcore.h434 struct venus_ts_metadata tss[VIDEO_MAX_FRAME]; member
/linux-6.1.9/tools/perf/trace/beauty/include/linux/
Dsocket.h394 extern void put_cmsg_scm_timestamping64(struct msghdr *msg, struct scm_timestamping_internal *tss);
395 extern void put_cmsg_scm_timestamping(struct msghdr *msg, struct scm_timestamping_internal *tss);
/linux-6.1.9/include/linux/
Dsocket.h394 extern void put_cmsg_scm_timestamping64(struct msghdr *msg, struct scm_timestamping_internal *tss);
395 extern void put_cmsg_scm_timestamping(struct msghdr *msg, struct scm_timestamping_internal *tss);
/linux-6.1.9/arch/x86/xen/
Denlighten_pv.c876 struct tss_struct *tss = this_cpu_ptr(&cpu_tss_rw); in xen_update_io_bitmap() local
880 iobitmap.bitmap = (uint8_t *)(&tss->x86_tss) + in xen_update_io_bitmap()
881 tss->x86_tss.io_bitmap_base; in xen_update_io_bitmap()
882 if (tss->x86_tss.io_bitmap_base == IO_BITMAP_OFFSET_INVALID) in xen_update_io_bitmap()
/linux-6.1.9/arch/x86/mm/
Dcpu_entry_area.c189 cea_map_percpu_pages(&cea->tss, &per_cpu(cpu_tss_rw, cpu), in setup_cpu_entry_area()
/linux-6.1.9/net/
Dsocket.c861 struct scm_timestamping_internal tss; in __sock_recv_timestamp() local
908 memset(&tss, 0, sizeof(tss)); in __sock_recv_timestamp()
910 ktime_to_timespec64_cond(skb->tstamp, tss.ts + 0)) in __sock_recv_timestamp()
925 if (ktime_to_timespec64_cond(hwtstamp, tss.ts + 2)) { in __sock_recv_timestamp()
935 put_cmsg_scm_timestamping64(msg, &tss); in __sock_recv_timestamp()
937 put_cmsg_scm_timestamping(msg, &tss); in __sock_recv_timestamp()
/linux-6.1.9/tools/testing/selftests/kvm/lib/x86_64/
Dprocessor.c564 if (!vm->tss) in kvm_setup_tss_64bit()
565 vm->tss = vm_vaddr_alloc_page(vm); in kvm_setup_tss_64bit()
568 segp->base = vm->tss; in kvm_setup_tss_64bit()
/linux-6.1.9/Documentation/translations/zh_CN/admin-guide/
Dbug-hunting.rst316 Aug 29 09:51:01 blizard kernel: current->tss.cr3 = 0062d000, %cr3 = 0062d000

12