/linux-4.4.14/scripts/kconfig/ |
D | util.c | 83 struct gstr gs; in str_new() local 84 gs.s = xmalloc(sizeof(char) * 64); in str_new() 85 gs.len = 64; in str_new() 86 gs.max_width = 0; in str_new() 87 strcpy(gs.s, "\0"); in str_new() 88 return gs; in str_new() 92 void str_free(struct gstr *gs) in str_free() argument 94 if (gs->s) in str_free() 95 free(gs->s); in str_free() 96 gs->s = NULL; in str_free() [all …]
|
D | lkc.h | 129 void str_free(struct gstr *gs); 130 void str_append(struct gstr *gs, const char *s); 131 void str_printf(struct gstr *gs, const char *fmt, ...); 132 const char *str_get(struct gstr *gs);
|
D | expr.c | 1175 struct gstr *gs = (struct gstr*)data; in expr_print_gstr_helper() local 1181 if (gs->max_width) { in expr_print_gstr_helper() 1183 const char *last_cr = strrchr(gs->s, '\n'); in expr_print_gstr_helper() 1190 last_cr = gs->s; in expr_print_gstr_helper() 1192 last_line_length = strlen(gs->s) - (last_cr - gs->s); in expr_print_gstr_helper() 1194 if ((last_line_length + extra_length) > gs->max_width) in expr_print_gstr_helper() 1195 str_append(gs, "\\\n"); in expr_print_gstr_helper() 1198 str_append(gs, str); in expr_print_gstr_helper() 1200 str_printf(gs, " [=%s]", sym_str); in expr_print_gstr_helper() 1203 void expr_gstr_print(struct expr *e, struct gstr *gs) in expr_gstr_print() argument [all …]
|
D | expr.h | 222 void expr_gstr_print(struct expr *e, struct gstr *gs);
|
/linux-4.4.14/lib/ |
D | test-hexdump.c | 53 int gs = groupsize, rs = rowsize; in test_hexdump() local 56 hex_dump_to_buffer(data_b, l, rs, gs, real, sizeof(real), ascii); in test_hexdump() 64 if (!is_power_of_2(gs) || gs > 8 || (len % gs != 0)) in test_hexdump() 65 gs = 1; in test_hexdump() 67 if (gs == 8) in test_hexdump() 69 else if (gs == 4) in test_hexdump() 71 else if (gs == 2) in test_hexdump() 80 for (i = 0; i < l / gs; i++) { in test_hexdump() 92 p = test + rs * 2 + rs / gs + 1; in test_hexdump()
|
/linux-4.4.14/drivers/net/ |
D | geneve.c | 105 static struct geneve_dev *geneve_lookup(struct geneve_sock *gs, in geneve_lookup() argument 114 vni_list_head = &gs->vni_list[hash]; in geneve_lookup() 124 static struct geneve_dev *geneve6_lookup(struct geneve_sock *gs, in geneve6_lookup() argument 133 vni_list_head = &gs->vni_list[hash]; in geneve6_lookup() 149 static void geneve_rx(struct geneve_sock *gs, struct sk_buff *skb) in geneve_rx() argument 167 sa_family = gs->sock->sk->sk_family; in geneve_rx() 172 if (gs->collect_md) { in geneve_rx() 181 geneve = geneve_lookup(gs, addr, vni); in geneve_rx() 186 if (gs->collect_md) { in geneve_rx() 195 geneve = geneve6_lookup(gs, addr6, vni); in geneve_rx() [all …]
|
/linux-4.4.14/arch/x86/include/asm/ |
D | segment.h | 283 # define get_user_gs(regs) (u16)({ unsigned long v; savesegment(gs, v); v; }) 284 # define set_user_gs(regs, v) loadsegment(gs, (unsigned long)(v)) 285 # define task_user_gs(tsk) ((tsk)->thread.gs) 286 # define lazy_save_gs(v) savesegment(gs, (v)) 287 # define lazy_load_gs(v) loadsegment(gs, (v)) 289 # define get_user_gs(regs) (u16)((regs)->gs) 290 # define set_user_gs(regs, v) do { (regs)->gs = (v); } while (0) 291 # define task_user_gs(tsk) (task_pt_regs(tsk)->gs)
|
D | elf.h | 149 savesegment(gs, pr_reg[10]); \ 179 t->fs = t->gs = 0; in elf_common_init() 230 (pr_reg)[22] = current->thread.gs; \
|
D | suspend_32.h | 14 u16 es, fs, gs, ss; member
|
D | suspend_64.h | 22 u16 ds, es, fs, gs, ss; member
|
D | user_32.h | 88 unsigned long gs; member
|
D | vm86.h | 27 unsigned short gs, __gsh; member
|
D | lguest.h | 35 unsigned long gs; member
|
D | user_64.h | 95 unsigned long gs; member
|
D | user32.h | 38 unsigned short fs, __fs, gs, __gs; member
|
D | a.out-core.h | 52 dump->regs.gs = get_user_gs(regs); in aout_dump_thread()
|
D | ptrace.h | 22 unsigned long gs; member
|
D | processor.h | 256 unsigned short gs, __gsh; member 391 unsigned long gs; member
|
D | svm.h | 144 struct vmcb_seg gs; member
|
D | paravirt.h | 256 static inline void load_gs_index(unsigned int gs) in load_gs_index() argument 258 PVOP_VCALL1(pv_cpu_ops.load_gs_index, gs); in load_gs_index()
|
D | percpu.h | 5 #define __percpu_seg gs
|
/linux-4.4.14/include/linux/usb/ |
D | gadget_configfs.h | 13 struct __struct *gs = to_##__struct(item); \ 16 ret = usb_string_copy(page, &gs->__name); \ 25 struct __struct *gs = to_##__struct(item); \ 26 return sprintf(page, "%s\n", gs->__name ?: ""); \ 51 struct struct_in *gs; \ 68 list_for_each_entry(gs, &gi->string_list, list) { \ 69 if (gs->stringtab_dev.language == new->stringtab_dev.language) \
|
/linux-4.4.14/arch/x86/kernel/ |
D | process_64.c | 60 unsigned long cr0 = 0L, cr2 = 0L, cr3 = 0L, cr4 = 0L, fs, gs, shadowgs; in __show_regs() local 87 rdmsrl(MSR_GS_BASE, gs); in __show_regs() 99 fs, fsindex, gs, gsindex, shadowgs); in __show_regs() 169 savesegment(gs, p->thread.gsindex); in copy_thread_tls() 170 p->thread.gs = p->thread.gsindex ? 0 : me->thread.gs; in copy_thread_tls() 294 savesegment(gs, gsindex); in __switch_to() 387 if (unlikely(gsindex | next->gsindex | prev->gs)) { in __switch_to() 392 prev->gs = 0; in __switch_to() 394 if (next->gs) in __switch_to() 395 wrmsrl(MSR_KERNEL_GS_BASE, next->gs); in __switch_to() [all …]
|
D | process_32.c | 74 unsigned short ss, gs; in __show_regs() local 79 gs = get_user_gs(regs); in __show_regs() 83 savesegment(gs, gs); in __show_regs() 96 (u16)regs->ds, (u16)regs->es, (u16)regs->fs, gs, ss); in __show_regs() 266 lazy_save_gs(prev->gs); in __switch_to() 310 if (prev->gs | next->gs) in __switch_to() 311 lazy_load_gs(next->gs); in __switch_to()
|
D | ptrace.c | 84 REG_OFFSET_NAME(gs), 210 if (offset != offsetof(struct user_regs_struct, gs)) in get_segment_reg() 249 case offsetof(struct user_regs_struct, gs): in set_segment_reg() 284 case offsetof(struct user_regs_struct, gs): in get_segment_reg() 334 case offsetof(struct user_regs_struct,gs): in set_segment_reg() 340 task->thread.gs != 0) || in set_segment_reg() 342 task->thread.gs == 0)) in set_segment_reg() 419 case offsetof(struct user_regs_struct, gs): in putreg() 444 if (child->thread.gs != value) in putreg() 461 case offsetof(struct user_regs_struct, gs): in getreg() [all …]
|
D | vm86_32.c | 138 put_user_ex(regs->gs, &user->regs.gs); in save_v86_state() 156 lazy_load_gs(vm86->regs32.gs); in save_v86_state() 295 get_user_ex(vm86regs.gs, &user_vm86->regs.gs); in do_sys_vm86() 355 lazy_save_gs(vm86->regs32.gs); in do_sys_vm86()
|
D | asm-offsets_32.c | 39 OFFSET(PT_GS, pt_regs, gs); in foo()
|
D | perf_regs.c | 35 PT_REGS_OFFSET(PERF_REG_X86_GS, gs),
|
D | signal.c | 77 set_user_gs(regs, GET_SEG(gs)); in restore_sigcontext() 130 put_user_ex(get_user_gs(regs), (unsigned int __user *)&sc->gs); in setup_sigcontext() 166 put_user_ex(0, &sc->gs); in setup_sigcontext()
|
D | head_32.S | 112 movl %eax,%gs 309 movl %eax,%gs
|
D | head_64.S | 249 movl %eax,%gs
|
D | apm_32.c | 563 savesegment(fs, saved_fs); savesegment(gs, saved_gs) 565 loadsegment(fs, saved_fs); loadsegment(gs, saved_gs)
|
/linux-4.4.14/arch/x86/boot/ |
D | bioscall.S | 30 pushw %gs 42 popw %gs 57 pushw %gs 78 popw %gs
|
D | regs.c | 29 reg->gs = gs(); in initregs()
|
D | copy.S | 72 pushw %gs 81 pushw %gs
|
D | boot.h | 105 static inline u16 gs(void) in gs() function 254 u16 gs, fs; member
|
D | pmjump.S | 56 movl %ecx, %gs
|
/linux-4.4.14/arch/x86/power/ |
D | cpu.c | 84 savesegment(gs, ctxt->gs); in __save_processor_state() 91 asm volatile ("movw %%gs, %0" : "=m" (ctxt->gs)); in __save_processor_state() 205 loadsegment(gs, ctxt->gs); in __restore_processor_state() 218 load_gs_index(ctxt->gs); in __restore_processor_state()
|
/linux-4.4.14/drivers/s390/scsi/ |
D | zfcp_fc.c | 220 void zfcp_fc_wka_ports_force_offline(struct zfcp_fc_wka_ports *gs) in zfcp_fc_wka_ports_force_offline() argument 222 if (!gs) in zfcp_fc_wka_ports_force_offline() 224 zfcp_fc_wka_port_force_offline(&gs->ms); in zfcp_fc_wka_ports_force_offline() 225 zfcp_fc_wka_port_force_offline(&gs->ts); in zfcp_fc_wka_ports_force_offline() 226 zfcp_fc_wka_port_force_offline(&gs->ds); in zfcp_fc_wka_ports_force_offline() 227 zfcp_fc_wka_port_force_offline(&gs->as); in zfcp_fc_wka_ports_force_offline() 380 ret = zfcp_fsf_send_ct(&adapter->gs->ds, &fc_req->ct_els, in zfcp_fc_ns_gid_pn_request() 407 ret = zfcp_fc_wka_port_get(&adapter->gs->ds); in zfcp_fc_ns_gid_pn() 413 zfcp_fc_wka_port_put(&adapter->gs->ds); in zfcp_fc_ns_gid_pn() 631 ret = zfcp_fsf_send_ct(&adapter->gs->ds, ct_els, NULL, in zfcp_fc_send_gpn_ft() [all …]
|
D | zfcp_def.h | 183 struct zfcp_fc_wka_ports *gs; /* generic services */ member
|
D | zfcp_aux.c | 430 zfcp_fc_wka_ports_force_offline(adapter->gs); in zfcp_adapter_unregister()
|
D | zfcp_erp.c | 763 zfcp_fc_wka_ports_force_offline(adapter->gs); in zfcp_erp_adapter_strategy_close()
|
/linux-4.4.14/drivers/clk/rockchip/ |
D | clk.h | 241 df, go, gs, gf) \ argument 257 .gate_shift = gs, \ 262 go, gs, gf) \ argument 275 .gate_shift = gs, \ 280 df, dt, go, gs, gf) \ argument 294 .gate_shift = gs, \ 299 go, gs, gf) \ argument 312 .gate_shift = gs, \ 355 #define COMPOSITE_FRAC(_id, cname, pname, f, mo, df, go, gs, gf)\ argument 368 .gate_shift = gs, \
|
/linux-4.4.14/drivers/lguest/x86/ |
D | switcher_32.S | 114 pushl %gs 180 popl %gs 207 pushl %gs; \ 257 popl %gs; \
|
D | core.c | 217 case offsetof(struct pt_regs, gs): in lguest_arch_regptr() 218 return &cpu->regs->gs; in lguest_arch_regptr()
|
/linux-4.4.14/arch/x86/include/uapi/asm/ |
D | sigcontext.h | 202 __u16 gs, __gsh; member 257 __u16 gs; member 300 __u16 gs, __gsh; member 344 __u16 gs; member
|
D | vm86.h | 89 unsigned short gs, __gsh; member
|
D | kvm.h | 147 struct kvm_segment cs, ds, es, fs, gs, ss; member
|
/linux-4.4.14/drivers/usb/gadget/ |
D | configfs.c | 715 struct gadget_strings *gs = to_gadget_strings(item); in gadget_strings_attr_release() local 717 kfree(gs->manufacturer); in gadget_strings_attr_release() 718 kfree(gs->product); in gadget_strings_attr_release() 719 kfree(gs->serialnumber); in gadget_strings_attr_release() 721 list_del(&gs->list); in gadget_strings_attr_release() 722 kfree(gs); in gadget_strings_attr_release() 1277 struct gadget_strings *gs; in configfs_composite_bind() local 1280 list_for_each_entry(gs, &gi->string_list, list) { in configfs_composite_bind() 1282 gi->gstrings[i] = &gs->stringtab_dev; in configfs_composite_bind() 1283 gs->stringtab_dev.strings = gs->strings; in configfs_composite_bind() [all …]
|
D | composite.c | 1114 struct usb_gadget_strings *gs; in copy_gadget_strings() local 1135 gs = gs_array[n_gs]; in copy_gadget_strings() 1137 gs->language = sp[n_gs]->language; in copy_gadget_strings() 1138 gs->strings = stash; in copy_gadget_strings()
|
/linux-4.4.14/arch/x86/realmode/rm/ |
D | wakeup_asm.S | 60 movw %cx, %gs 73 movw %ax, %gs
|
D | reboot.S | 62 movl %ecx, %gs
|
/linux-4.4.14/arch/x86/ia32/ |
D | ia32_aout.c | 55 u32 fs, gs; in dump_thread32() local 91 savesegment(gs, gs); in dump_thread32() 92 dump->regs.gs = gs; in dump_thread32()
|
D | ia32_signal.c | 87 RELOAD_SEG(gs); in ia32_restore_sigcontext() 180 put_user_ex(get_user_seg(gs), (unsigned int __user *)&sc->gs); in ia32_setup_sigcontext()
|
/linux-4.4.14/arch/x86/entry/ |
D | entry_32.S | 115 pushl %gs 119 98: popl %gs 133 98: mov PT_GS(%esp), %gs 144 movl %gs, \reg 151 movl \reg, %gs 693 4: mov 16(%esp), %gs 787 pushl %gs 829 popl %gs
|
D | entry_64.S | 853 movl %edi, %gs 866 movl %eax, %gs 942 movl %gs, %ecx
|
/linux-4.4.14/arch/x86/purgatory/ |
D | setup-x86_64.S | 28 movl %eax, %gs
|
D | entry64.S | 29 movl %eax, %gs
|
/linux-4.4.14/include/uapi/video/ |
D | uvesafb.h | 22 __u16 gs; member
|
/linux-4.4.14/arch/arm/mach-s3c24xx/ |
D | common.c | 168 u32 gs = __raw_readl(S3C24XX_GSTATUS1); in s3c24xx_read_idcode_v5() local 171 if ((gs >> 16) == 0x3245) in s3c24xx_read_idcode_v5() 172 return gs; in s3c24xx_read_idcode_v5()
|
/linux-4.4.14/Documentation/x86/ |
D | entry_64.txt | 48 toggles whether gs is the kernel gs or the user gs. The swapgs
|
D | boot.txt | 976 the kernel, it is recommended that the boot loader sets fs = gs = ds =
|
/linux-4.4.14/arch/x86/include/asm/xen/ |
D | interface_32.h | 68 uint16_t gs, _pad5; member
|
D | interface_64.h | 126 uint16_t gs, _pad6[3]; /* Non-zero => takes precedence over gs_base_usr. */ member
|
/linux-4.4.14/arch/x86/kvm/ |
D | tss.h | 28 u32 gs; member
|
D | svm.c | 144 u16 gs; member 1059 init_seg(&save->gs); in init_vmcb() 1228 savesegment(gs, svm->host.gs); in svm_vcpu_load() 1252 wrmsrl(MSR_KERNEL_GS_BASE, current->thread.gs); in svm_vcpu_put() 1253 load_gs_index(svm->host.gs); in svm_vcpu_put() 1256 loadsegment(gs, svm->host.gs); in svm_vcpu_put() 1309 case VCPU_SREG_GS: return &save->gs; in svm_seg() 2559 to_vmcb->save.gs = from_vmcb->save.gs; in nested_svm_vmloadsave() 3362 save->gs.selector, save->gs.attrib, in dump_vmcb() 3363 save->gs.limit, save->gs.base); in dump_vmcb() [all …]
|
D | emulate.c | 3012 tss->gs = get_segment_selector(ctxt, VCPU_SREG_GS); in save_state_to_tss32() 3047 set_segment_selector(ctxt, tss->gs, VCPU_SREG_GS); in load_state_from_tss32() 3090 ret = __load_segment_descriptor(ctxt, tss->gs, VCPU_SREG_GS, cpl, in load_state_from_tss32()
|
D | x86.c | 6928 kvm_get_segment(vcpu, &sregs->gs, VCPU_SREG_GS); in kvm_arch_vcpu_ioctl_get_sregs() 7070 kvm_set_segment(vcpu, &sregs->gs, VCPU_SREG_GS); in kvm_arch_vcpu_ioctl_set_sregs()
|
D | vmx.c | 1906 savesegment(gs, vmx->host_state.gs_sel); in vmx_save_host_state() 1956 loadsegment(gs, vmx->host_state.gs_sel); in __vmx_load_host_state()
|
/linux-4.4.14/arch/x86/kernel/acpi/ |
D | wakeup_32.S | 16 movw %ax, %gs
|
D | wakeup_64.S | 26 movw %ax, %gs
|
/linux-4.4.14/arch/x86/platform/olpc/ |
D | xo1-wakeup.S | 43 movw %ax, %gs
|
/linux-4.4.14/arch/powerpc/platforms/cell/spufs/ |
D | sched.c | 358 int mem_aff, gs, lowest_offset; in aff_set_ref_point_location() local 364 gs = 0; in aff_set_ref_point_location() 367 gs++; in aff_set_ref_point_location() 376 gang->aff_ref_spu = aff_ref_location(gang->aff_ref_ctx, mem_aff, gs, in aff_set_ref_point_location()
|
/linux-4.4.14/drivers/pinctrl/ |
D | core.c | 471 int gs; in pinctrl_get_group_pins() local 476 gs = pinctrl_get_group_selector(pctldev, pin_group); in pinctrl_get_group_pins() 477 if (gs < 0) in pinctrl_get_group_pins() 478 return gs; in pinctrl_get_group_pins() 480 return pctlops->get_group_pins(pctldev, gs, pins, num_pins); in pinctrl_get_group_pins()
|
/linux-4.4.14/arch/x86/boot/compressed/ |
D | head_32.S | 114 movl %eax, %gs
|
D | head_64.S | 303 movl %eax, %gs
|
/linux-4.4.14/drivers/media/pci/saa7164/ |
D | saa7164-api.c | 171 struct tmComResEncVideoGopStructure gs; in saa7164_api_set_gop_size() local 176 gs.ucRefFrameDist = port->encoder_params.refdist; in saa7164_api_set_gop_size() 177 gs.ucGOPSize = port->encoder_params.gop_size; in saa7164_api_set_gop_size() 180 sizeof(gs), &gs); in saa7164_api_set_gop_size()
|
/linux-4.4.14/arch/x86/um/ |
D | signal.c | 169 GETREG(GS, gs); in copy_sc_from_user() 258 PUTREG(GS, gs); in copy_sc_to_user()
|
/linux-4.4.14/Documentation/ |
D | this_cpu_ops.txt | 64 On x86 the fs: or the gs: segment registers contain the base of the 79 mov ax, gs:[x] 93 inc gs:[x]
|
D | static-keys.txt | 197 ffffffff81044299: 65 48 8b 04 25 c0 b6 mov %gs:0xb6c0,%rax 219 ffffffff810441fe: 65 48 8b 04 25 c0 b6 mov %gs:0xb6c0,%rax
|
D | oops-tracing.txt | 205 Aug 29 09:51:01 blizard kernel: ds: 0018 es: 0018 fs: 002b gs: 002b ss: 0018
|
/linux-4.4.14/Documentation/zh_CN/ |
D | oops-tracing.txt | 169 Aug 29 09:51:01 blizard kernel: ds: 0018 es: 0018 fs: 002b gs: 002b ss: 0018
|
/linux-4.4.14/arch/x86/math-emu/ |
D | get_address.c | 49 offsetof(struct kernel_vm86_regs, gs),
|
/linux-4.4.14/arch/x86/kernel/kprobes/ |
D | opt.c | 160 regs->gs = 0; in optimized_callback()
|
D | core.c | 727 regs->gs = 0; in trampoline_handler()
|
/linux-4.4.14/tools/testing/selftests/x86/ |
D | sigreturn.c | 278 unsigned short cs, gs, fs, ss; member
|
/linux-4.4.14/arch/x86/xen/ |
D | smp.c | 402 ctxt->user_regs.gs = __KERNEL_STACK_CANARY; in cpu_initialize_context()
|
/linux-4.4.14/arch/x86/kernel/cpu/ |
D | common.c | 376 loadsegment(gs, 0); in load_percpu_segment()
|
/linux-4.4.14/Documentation/filesystems/ |
D | porting | 496 nd_[gs]et_link() is gone.
|
/linux-4.4.14/ |
D | README | 342 ds: xxxx es: xxxx fs: xxxx gs: xxxx
|
/linux-4.4.14/Documentation/virtual/uml/ |
D | UserModeLinux-HOWTO.txt | 3218 $19 = {gs = 0, __gsh = 0, fs = 0, __fsh = 0, es = 43, __esh = 0, ds = 43, 3571 $1 = {gs = 0, __gsh = 0, fs = 0, __fsh = 0, es = 43, __esh = 0, ds = 43,
|
/linux-4.4.14/Documentation/virtual/kvm/ |
D | api.txt | 346 struct kvm_segment cs, ds, es, fs, gs, ss;
|