Home
last modified time | relevance | path

Searched refs:gs (Results 1 – 92 of 92) sorted by relevance

/linux-4.4.14/scripts/kconfig/
Dutil.c83 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 …]
Dlkc.h129 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);
Dexpr.c1175 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 …]
Dexpr.h222 void expr_gstr_print(struct expr *e, struct gstr *gs);
/linux-4.4.14/lib/
Dtest-hexdump.c53 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/
Dgeneve.c105 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/
Dsegment.h283 # 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)
Delf.h149 savesegment(gs, pr_reg[10]); \
179 t->fs = t->gs = 0; in elf_common_init()
230 (pr_reg)[22] = current->thread.gs; \
Dsuspend_32.h14 u16 es, fs, gs, ss; member
Dsuspend_64.h22 u16 ds, es, fs, gs, ss; member
Duser_32.h88 unsigned long gs; member
Dvm86.h27 unsigned short gs, __gsh; member
Dlguest.h35 unsigned long gs; member
Duser_64.h95 unsigned long gs; member
Duser32.h38 unsigned short fs, __fs, gs, __gs; member
Da.out-core.h52 dump->regs.gs = get_user_gs(regs); in aout_dump_thread()
Dptrace.h22 unsigned long gs; member
Dprocessor.h256 unsigned short gs, __gsh; member
391 unsigned long gs; member
Dsvm.h144 struct vmcb_seg gs; member
Dparavirt.h256 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()
Dpercpu.h5 #define __percpu_seg gs
/linux-4.4.14/include/linux/usb/
Dgadget_configfs.h13 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/
Dprocess_64.c60 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 …]
Dprocess_32.c74 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()
Dptrace.c84 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 …]
Dvm86_32.c138 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()
Dasm-offsets_32.c39 OFFSET(PT_GS, pt_regs, gs); in foo()
Dperf_regs.c35 PT_REGS_OFFSET(PERF_REG_X86_GS, gs),
Dsignal.c77 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()
Dhead_32.S112 movl %eax,%gs
309 movl %eax,%gs
Dhead_64.S249 movl %eax,%gs
Dapm_32.c563 savesegment(fs, saved_fs); savesegment(gs, saved_gs)
565 loadsegment(fs, saved_fs); loadsegment(gs, saved_gs)
/linux-4.4.14/arch/x86/boot/
Dbioscall.S30 pushw %gs
42 popw %gs
57 pushw %gs
78 popw %gs
Dregs.c29 reg->gs = gs(); in initregs()
Dcopy.S72 pushw %gs
81 pushw %gs
Dboot.h105 static inline u16 gs(void) in gs() function
254 u16 gs, fs; member
Dpmjump.S56 movl %ecx, %gs
/linux-4.4.14/arch/x86/power/
Dcpu.c84 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/
Dzfcp_fc.c220 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 …]
Dzfcp_def.h183 struct zfcp_fc_wka_ports *gs; /* generic services */ member
Dzfcp_aux.c430 zfcp_fc_wka_ports_force_offline(adapter->gs); in zfcp_adapter_unregister()
Dzfcp_erp.c763 zfcp_fc_wka_ports_force_offline(adapter->gs); in zfcp_erp_adapter_strategy_close()
/linux-4.4.14/drivers/clk/rockchip/
Dclk.h241 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/
Dswitcher_32.S114 pushl %gs
180 popl %gs
207 pushl %gs; \
257 popl %gs; \
Dcore.c217 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/
Dsigcontext.h202 __u16 gs, __gsh; member
257 __u16 gs; member
300 __u16 gs, __gsh; member
344 __u16 gs; member
Dvm86.h89 unsigned short gs, __gsh; member
Dkvm.h147 struct kvm_segment cs, ds, es, fs, gs, ss; member
/linux-4.4.14/drivers/usb/gadget/
Dconfigfs.c715 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 …]
Dcomposite.c1114 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/
Dwakeup_asm.S60 movw %cx, %gs
73 movw %ax, %gs
Dreboot.S62 movl %ecx, %gs
/linux-4.4.14/arch/x86/ia32/
Dia32_aout.c55 u32 fs, gs; in dump_thread32() local
91 savesegment(gs, gs); in dump_thread32()
92 dump->regs.gs = gs; in dump_thread32()
Dia32_signal.c87 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/
Dentry_32.S115 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
Dentry_64.S853 movl %edi, %gs
866 movl %eax, %gs
942 movl %gs, %ecx
/linux-4.4.14/arch/x86/purgatory/
Dsetup-x86_64.S28 movl %eax, %gs
Dentry64.S29 movl %eax, %gs
/linux-4.4.14/include/uapi/video/
Duvesafb.h22 __u16 gs; member
/linux-4.4.14/arch/arm/mach-s3c24xx/
Dcommon.c168 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/
Dentry_64.txt48 toggles whether gs is the kernel gs or the user gs. The swapgs
Dboot.txt976 the kernel, it is recommended that the boot loader sets fs = gs = ds =
/linux-4.4.14/arch/x86/include/asm/xen/
Dinterface_32.h68 uint16_t gs, _pad5; member
Dinterface_64.h126 uint16_t gs, _pad6[3]; /* Non-zero => takes precedence over gs_base_usr. */ member
/linux-4.4.14/arch/x86/kvm/
Dtss.h28 u32 gs; member
Dsvm.c144 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 …]
Demulate.c3012 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()
Dx86.c6928 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()
Dvmx.c1906 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/
Dwakeup_32.S16 movw %ax, %gs
Dwakeup_64.S26 movw %ax, %gs
/linux-4.4.14/arch/x86/platform/olpc/
Dxo1-wakeup.S43 movw %ax, %gs
/linux-4.4.14/arch/powerpc/platforms/cell/spufs/
Dsched.c358 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/
Dcore.c471 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/
Dhead_32.S114 movl %eax, %gs
Dhead_64.S303 movl %eax, %gs
/linux-4.4.14/drivers/media/pci/saa7164/
Dsaa7164-api.c171 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/
Dsignal.c169 GETREG(GS, gs); in copy_sc_from_user()
258 PUTREG(GS, gs); in copy_sc_to_user()
/linux-4.4.14/Documentation/
Dthis_cpu_ops.txt64 On x86 the fs: or the gs: segment registers contain the base of the
79 mov ax, gs:[x]
93 inc gs:[x]
Dstatic-keys.txt197 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
Doops-tracing.txt205 Aug 29 09:51:01 blizard kernel: ds: 0018 es: 0018 fs: 002b gs: 002b ss: 0018
/linux-4.4.14/Documentation/zh_CN/
Doops-tracing.txt169 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/
Dget_address.c49 offsetof(struct kernel_vm86_regs, gs),
/linux-4.4.14/arch/x86/kernel/kprobes/
Dopt.c160 regs->gs = 0; in optimized_callback()
Dcore.c727 regs->gs = 0; in trampoline_handler()
/linux-4.4.14/tools/testing/selftests/x86/
Dsigreturn.c278 unsigned short cs, gs, fs, ss; member
/linux-4.4.14/arch/x86/xen/
Dsmp.c402 ctxt->user_regs.gs = __KERNEL_STACK_CANARY; in cpu_initialize_context()
/linux-4.4.14/arch/x86/kernel/cpu/
Dcommon.c376 loadsegment(gs, 0); in load_percpu_segment()
/linux-4.4.14/Documentation/filesystems/
Dporting496 nd_[gs]et_link() is gone.
/linux-4.4.14/
DREADME342 ds: xxxx es: xxxx fs: xxxx gs: xxxx
/linux-4.4.14/Documentation/virtual/uml/
DUserModeLinux-HOWTO.txt3218 $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/
Dapi.txt346 struct kvm_segment cs, ds, es, fs, gs, ss;