Home
last modified time | relevance | path

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

/linux-4.1.27/net/ipv4/
Dgeneve.c72 struct geneve_sock *gs; in geneve_find_sock() local
74 list_for_each_entry(gs, &gn->sock_list, list) { in geneve_find_sock()
75 if (inet_sk(gs->sock->sk)->inet_sport == port && in geneve_find_sock()
76 inet_sk(gs->sock->sk)->sk.sk_family == family) in geneve_find_sock()
77 return gs; in geneve_find_sock()
106 int geneve_xmit_skb(struct geneve_sock *gs, struct rtable *rt, in geneve_xmit_skb() argument
139 return udp_tunnel_xmit_skb(rt, gs->sock->sk, skb, src, dst, in geneve_xmit_skb()
240 static void geneve_notify_add_rx_port(struct geneve_sock *gs) in geneve_notify_add_rx_port() argument
242 struct sock *sk = gs->sock->sk; in geneve_notify_add_rx_port()
247 err = udp_add_offload(&gs->udp_offloads); in geneve_notify_add_rx_port()
[all …]
/linux-4.1.27/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.c1139 struct gstr *gs = (struct gstr*)data; in expr_print_gstr_helper() local
1145 if (gs->max_width) { in expr_print_gstr_helper()
1147 const char *last_cr = strrchr(gs->s, '\n'); in expr_print_gstr_helper()
1154 last_cr = gs->s; in expr_print_gstr_helper()
1156 last_line_length = strlen(gs->s) - (last_cr - gs->s); in expr_print_gstr_helper()
1158 if ((last_line_length + extra_length) > gs->max_width) in expr_print_gstr_helper()
1159 str_append(gs, "\\\n"); in expr_print_gstr_helper()
1162 str_append(gs, str); in expr_print_gstr_helper()
1164 str_printf(gs, " [=%s]", sym_str); in expr_print_gstr_helper()
1167 void expr_gstr_print(struct expr *e, struct gstr *gs) in expr_gstr_print() argument
[all …]
Dexpr.h220 void expr_gstr_print(struct expr *e, struct gstr *gs);
/linux-4.1.27/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.1.27/net/openvswitch/
Dvport-geneve.c38 struct geneve_sock *gs; member
80 static void geneve_rcv(struct geneve_sock *gs, struct sk_buff *skb) in geneve_rcv() argument
82 struct vport *vport = gs->rcv_data; in geneve_rcv()
110 struct inet_sock *sk = inet_sk(geneve_port->gs->sock->sk); in geneve_get_options()
121 geneve_sock_release(geneve_port->gs); in geneve_tnl_destroy()
131 struct geneve_sock *gs; in geneve_tnl_create() local
159 gs = geneve_sock_add(net, htons(dst_port), geneve_rcv, vport, true, 0); in geneve_tnl_create()
160 if (IS_ERR(gs)) { in geneve_tnl_create()
162 return (void *)gs; in geneve_tnl_create()
164 geneve_port->gs = gs; in geneve_tnl_create()
[all …]
/linux-4.1.27/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)
Dsigcontext.h8 unsigned short gs, __gsh; member
60 unsigned short gs; member
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
Dvm86.h28 unsigned short gs, __gsh; member
Duser_32.h88 unsigned long gs; member
Dlguest.h35 unsigned long gs; member
Duser32.h38 unsigned short fs, __fs, gs, __gs; member
Duser_64.h95 unsigned long gs; member
Da.out-core.h52 dump->regs.gs = get_user_gs(regs); in aout_dump_thread()
Dptrace.h22 unsigned long gs; member
Dsvm.h144 struct vmcb_seg gs; member
Dprocessor.h251 unsigned short gs, __gsh; member
510 unsigned long gs; member
Dparavirt.h280 static inline void load_gs_index(unsigned int gs) in load_gs_index() argument
282 PVOP_VCALL1(pv_cpu_ops.load_gs_index, gs); in load_gs_index()
Dpercpu.h5 #define __percpu_seg gs
/linux-4.1.27/include/linux/usb/
Dgadget_configfs.h10 static ssize_t __struct##_##__name##_store(struct __struct *gs, \
15 ret = usb_string_copy(page, &gs->__name); \
22 static ssize_t __struct##_##__name##_show(struct __struct *gs, \
25 return sprintf(page, "%s\n", gs->__name ?: ""); \
60 struct struct_in *gs; \
77 list_for_each_entry(gs, &gi->string_list, list) { \
78 if (gs->stringtab_dev.language == new->stringtab_dev.language) \
/linux-4.1.27/arch/x86/kernel/
Dprocess_64.c61 unsigned long cr0 = 0L, cr2 = 0L, cr3 = 0L, cr4 = 0L, fs, gs, shadowgs; in __show_regs() local
88 rdmsrl(MSR_GS_BASE, gs); in __show_regs()
100 fs, fsindex, gs, gsindex, shadowgs); in __show_regs()
168 savesegment(gs, p->thread.gsindex); in copy_thread()
169 p->thread.gs = p->thread.gsindex ? 0 : me->thread.gs; in copy_thread()
291 savesegment(gs, gsindex); in __switch_to()
384 if (unlikely(gsindex | next->gsindex | prev->gs)) { in __switch_to()
389 prev->gs = 0; in __switch_to()
391 if (next->gs) in __switch_to()
392 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()
264 lazy_save_gs(prev->gs); in __switch_to()
319 if (prev->gs | next->gs) in __switch_to()
320 lazy_load_gs(next->gs); in __switch_to()
Dptrace.c86 REG_OFFSET_NAME(gs),
212 if (offset != offsetof(struct user_regs_struct, gs)) in get_segment_reg()
251 case offsetof(struct user_regs_struct, gs): in set_segment_reg()
286 case offsetof(struct user_regs_struct, gs): in get_segment_reg()
336 case offsetof(struct user_regs_struct,gs): in set_segment_reg()
342 task->thread.gs != 0) || in set_segment_reg()
344 task->thread.gs == 0)) in set_segment_reg()
421 case offsetof(struct user_regs_struct, gs): in putreg()
446 if (child->thread.gs != value) in putreg()
463 case offsetof(struct user_regs_struct, gs): in getreg()
[all …]
Dentry_32.S140 pushl_cfi %gs
145 98: popl_cfi %gs
161 98: mov PT_GS(%esp), %gs
172 movl %gs, \reg
181 movl \reg, %gs
985 4: mov 16(%esp),%gs
1081 pushl %gs
1123 popl %gs
Dasm-offsets_32.c54 OFFSET(PT_GS, pt_regs, gs); in foo()
Dperf_regs.c35 PT_REGS_OFFSET(PERF_REG_X86_GS, gs),
Dsignal.c76 set_user_gs(regs, GET_SEG(gs)); in restore_sigcontext()
128 put_user_ex(get_user_gs(regs), (unsigned int __user *)&sc->gs); in setup_sigcontext()
164 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
Dentry_64.S1103 movl %edi,%gs
1117 movl %eax,%gs
Dapm_32.c563 savesegment(fs, saved_fs); savesegment(gs, saved_gs)
565 loadsegment(fs, saved_fs); loadsegment(gs, saved_gs)
Dvm86_32.c285 info->regs.pt.gs = 0; in do_sys_vm86()
/linux-4.1.27/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
Dpmjump.S56 movl %ecx, %gs
Dboot.h106 static inline u16 gs(void) in gs() function
255 u16 gs, fs; member
/linux-4.1.27/arch/x86/power/
Dcpu.c85 savesegment(gs, ctxt->gs); in __save_processor_state()
92 asm volatile ("movw %%gs, %0" : "=m" (ctxt->gs)); in __save_processor_state()
204 loadsegment(gs, ctxt->gs); in __restore_processor_state()
217 load_gs_index(ctxt->gs); in __restore_processor_state()
/linux-4.1.27/drivers/clk/rockchip/
Dclk.h217 df, go, gs, gf) \ argument
233 .gate_shift = gs, \
238 go, gs, gf) \ argument
251 .gate_shift = gs, \
256 df, dt, go, gs, gf) \ argument
270 .gate_shift = gs, \
275 go, gs, gf) \ argument
288 .gate_shift = gs, \
311 #define COMPOSITE_FRAC(_id, cname, pname, f, mo, df, go, gs, gf)\ argument
324 .gate_shift = gs, \
/linux-4.1.27/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.1.27/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.1.27/include/net/
Dgeneve.h68 typedef void (geneve_rcv_t)(struct geneve_sock *gs, struct sk_buff *skb);
89 int geneve_xmit_skb(struct geneve_sock *gs, struct rtable *rt,
/linux-4.1.27/drivers/usb/gadget/
Dconfigfs.c737 struct gadget_strings *gs = to_gadget_strings(item); in gadget_strings_attr_release() local
739 kfree(gs->manufacturer); in gadget_strings_attr_release()
740 kfree(gs->product); in gadget_strings_attr_release()
741 kfree(gs->serialnumber); in gadget_strings_attr_release()
743 list_del(&gs->list); in gadget_strings_attr_release()
744 kfree(gs); in gadget_strings_attr_release()
1347 struct gadget_strings *gs; in configfs_composite_bind() local
1350 list_for_each_entry(gs, &gi->string_list, list) { in configfs_composite_bind()
1352 gi->gstrings[i] = &gs->stringtab_dev; in configfs_composite_bind()
1353 gs->stringtab_dev.strings = gs->strings; in configfs_composite_bind()
[all …]
Dcomposite.c1109 struct usb_gadget_strings *gs; in copy_gadget_strings() local
1130 gs = gs_array[n_gs]; in copy_gadget_strings()
1132 gs->language = sp[n_gs]->language; in copy_gadget_strings()
1133 gs->strings = stash; in copy_gadget_strings()
/linux-4.1.27/arch/x86/include/uapi/asm/
Dsigcontext.h106 unsigned short gs, __gsh; member
180 __u16 gs; member
Dsigcontext32.h53 unsigned short gs, __gsh; member
Dvm86.h89 unsigned short gs, __gsh; member
Dkvm.h145 struct kvm_segment cs, ds, es, fs, gs, ss; member
/linux-4.1.27/arch/x86/realmode/rm/
Dwakeup_asm.S60 movw %cx, %gs
73 movw %ax, %gs
Dreboot.S62 movl %ecx, %gs
/linux-4.1.27/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.c180 RELOAD_SEG(gs); in ia32_restore_sigcontext()
273 put_user_ex(get_user_seg(gs), (unsigned int __user *)&sc->gs); in ia32_setup_sigcontext()
/linux-4.1.27/arch/x86/purgatory/
Dsetup-x86_64.S28 movl %eax, %gs
Dentry64.S29 movl %eax, %gs
/linux-4.1.27/include/uapi/video/
Duvesafb.h22 __u16 gs; member
/linux-4.1.27/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.1.27/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.1.27/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.1.27/arch/x86/kvm/
Dtss.h28 u32 gs; member
Dsvm.c143 u16 gs; member
1145 init_seg(&save->gs); in init_vmcb()
1315 savesegment(gs, svm->host.gs); in svm_vcpu_load()
1337 wrmsrl(MSR_KERNEL_GS_BASE, current->thread.gs); in svm_vcpu_put()
1338 load_gs_index(svm->host.gs); in svm_vcpu_put()
1341 loadsegment(gs, svm->host.gs); in svm_vcpu_put()
1394 case VCPU_SREG_GS: return &save->gs; in svm_seg()
2640 to_vmcb->save.gs = from_vmcb->save.gs; in nested_svm_vmloadsave()
3452 save->gs.selector, save->gs.attrib, in dump_vmcb()
3453 save->gs.limit, save->gs.base); in dump_vmcb()
[all …]
Demulate.c2714 tss->gs = get_segment_selector(ctxt, VCPU_SREG_GS); in save_state_to_tss32()
2749 set_segment_selector(ctxt, tss->gs, VCPU_SREG_GS); in load_state_from_tss32()
2792 ret = __load_segment_descriptor(ctxt, tss->gs, VCPU_SREG_GS, cpl, in load_state_from_tss32()
Dx86.c6739 kvm_get_segment(vcpu, &sregs->gs, VCPU_SREG_GS); in kvm_arch_vcpu_ioctl_get_sregs()
6881 kvm_set_segment(vcpu, &sregs->gs, VCPU_SREG_GS); in kvm_arch_vcpu_ioctl_set_sregs()
Dvmx.c1832 savesegment(gs, vmx->host_state.gs_sel); in vmx_save_host_state()
1882 loadsegment(gs, vmx->host_state.gs_sel); in __vmx_load_host_state()
/linux-4.1.27/arch/x86/kernel/acpi/
Dwakeup_32.S18 movw %ax, %gs
Dwakeup_64.S26 movw %ax, %gs
/linux-4.1.27/arch/x86/platform/olpc/
Dxo1-wakeup.S43 movw %ax, %gs
/linux-4.1.27/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.1.27/drivers/pinctrl/
Dcore.c469 int gs; in pinctrl_get_group_pins() local
474 gs = pinctrl_get_group_selector(pctldev, pin_group); in pinctrl_get_group_pins()
475 if (gs < 0) in pinctrl_get_group_pins()
476 return gs; in pinctrl_get_group_pins()
478 return pctlops->get_group_pins(pctldev, gs, pins, num_pins); in pinctrl_get_group_pins()
/linux-4.1.27/arch/x86/boot/compressed/
Dhead_32.S114 movl %eax, %gs
Dhead_64.S303 movl %eax, %gs
/linux-4.1.27/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.1.27/arch/x86/um/
Dsignal.c169 GETREG(GS, gs); in copy_sc_from_user()
258 PUTREG(GS, gs); in copy_sc_to_user()
/linux-4.1.27/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.txt192 ffffffff81044299: 65 48 8b 04 25 c0 b6 mov %gs:0xb6c0,%rax
214 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.1.27/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.1.27/arch/x86/math-emu/
Dget_address.c48 offsetof(struct kernel_vm86_regs, gs),
/linux-4.1.27/arch/x86/kernel/kprobes/
Dopt.c160 regs->gs = 0; in optimized_callback()
Dcore.c727 regs->gs = 0; in trampoline_handler()
/linux-4.1.27/tools/testing/selftests/x86/
Dsigreturn.c278 unsigned short cs, gs, fs, ss; member
/linux-4.1.27/arch/x86/xen/
Dsmp.c378 ctxt->user_regs.gs = __KERNEL_STACK_CANARY; in cpu_initialize_context()
/linux-4.1.27/arch/x86/kernel/cpu/
Dcommon.c394 loadsegment(gs, 0); in load_percpu_segment()
/linux-4.1.27/
DREADME342 ds: xxxx es: xxxx fs: xxxx gs: xxxx
/linux-4.1.27/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.1.27/Documentation/virtual/kvm/
Dapi.txt341 struct kvm_segment cs, ds, es, fs, gs, ss;