gs 154 arch/arm/mach-s3c24xx/common.c u32 gs = __raw_readl(S3C24XX_GSTATUS1); gs 157 arch/arm/mach-s3c24xx/common.c if ((gs >> 16) == 0x3245) gs 158 arch/arm/mach-s3c24xx/common.c return gs; gs 346 arch/powerpc/platforms/cell/spufs/sched.c int mem_aff, gs, lowest_offset; gs 352 arch/powerpc/platforms/cell/spufs/sched.c gs = 0; gs 355 arch/powerpc/platforms/cell/spufs/sched.c gs++; gs 364 arch/powerpc/platforms/cell/spufs/sched.c gang->aff_ref_spu = aff_ref_location(gang->aff_ref_ctx, mem_aff, gs, gs 73 arch/s390/include/asm/nmi.h u64 gs : 1; /* 36 guarded storage registers validity */ gs 266 arch/s390/kernel/nmi.c if (!mci.gs) { gs 595 arch/s390/kvm/interrupt.c if (!rc && mci.gs && ext_sa_addr && test_kvm_facility(vcpu->kvm, 133) gs 599 arch/s390/kvm/interrupt.c mci.gs = 0; gs 601 arch/s390/kvm/interrupt.c mci.gs = 0; gs 251 arch/x86/boot/boot.h u16 gs, fs; gs 26 arch/x86/boot/regs.c reg->gs = gs(); gs 75 arch/x86/ia32/ia32_signal.c u16 gs, fs, es, ds; gs 83 arch/x86/ia32/ia32_signal.c gs = GET_SEG(gs); gs 110 arch/x86/ia32/ia32_signal.c RELOAD_SEG(gs); gs 187 arch/x86/ia32/ia32_signal.c put_user_ex(get_user_seg(gs), (unsigned int __user *)&sc->gs); gs 150 arch/x86/include/asm/elf.h savesegment(gs, pr_reg[10]); \ gs 275 arch/x86/include/asm/paravirt.h static inline void load_gs_index(unsigned int gs) gs 277 arch/x86/include/asm/paravirt.h PVOP_VCALL1(cpu.load_gs_index, gs); gs 6 arch/x86/include/asm/percpu.h #define __percpu_seg gs gs 293 arch/x86/include/asm/processor.h unsigned short gs, __gsh; gs 465 arch/x86/include/asm/processor.h unsigned long gs; gs 41 arch/x86/include/asm/ptrace.h unsigned short gs; gs 225 arch/x86/include/asm/ptrace.h offset == offsetof(struct pt_regs, gs)) { gs 343 arch/x86/include/asm/segment.h #define __loadsegment_gs(value) __loadsegment_simple(gs, (value)) gs 375 arch/x86/include/asm/segment.h # define get_user_gs(regs) (u16)({ unsigned long v; savesegment(gs, v); v; }) gs 376 arch/x86/include/asm/segment.h # define set_user_gs(regs, v) loadsegment(gs, (unsigned long)(v)) gs 377 arch/x86/include/asm/segment.h # define task_user_gs(tsk) ((tsk)->thread.gs) gs 378 arch/x86/include/asm/segment.h # define lazy_save_gs(v) savesegment(gs, (v)) gs 379 arch/x86/include/asm/segment.h # define lazy_load_gs(v) loadsegment(gs, (v)) gs 381 arch/x86/include/asm/segment.h # define get_user_gs(regs) (u16)((regs)->gs) gs 382 arch/x86/include/asm/segment.h # define set_user_gs(regs, v) do { (regs)->gs = (v); } while (0) gs 383 arch/x86/include/asm/segment.h # define task_user_gs(tsk) (task_pt_regs(tsk)->gs) gs 20 arch/x86/include/asm/suspend_32.h u16 gs; gs 28 arch/x86/include/asm/suspend_64.h u16 ds, es, fs, gs; gs 167 arch/x86/include/asm/svm.h struct vmcb_seg gs; gs 39 arch/x86/include/asm/user32.h unsigned short fs, __fs, gs, __gs; gs 89 arch/x86/include/asm/user_32.h unsigned long gs; gs 96 arch/x86/include/asm/user_64.h unsigned long gs; gs 28 arch/x86/include/asm/vm86.h unsigned short gs, __gsh; gs 69 arch/x86/include/asm/xen/interface_32.h uint16_t gs, _pad5; gs 127 arch/x86/include/asm/xen/interface_64.h uint16_t gs, _pad6[3]; /* Non-zero => takes precedence over gs_base_usr. */ gs 151 arch/x86/include/uapi/asm/kvm.h struct kvm_segment cs, ds, es, fs, gs, ss; gs 203 arch/x86/include/uapi/asm/sigcontext.h __u16 gs, __gsh; gs 258 arch/x86/include/uapi/asm/sigcontext.h __u16 gs; gs 301 arch/x86/include/uapi/asm/sigcontext.h __u16 gs, __gsh; gs 370 arch/x86/include/uapi/asm/sigcontext.h __u16 gs; gs 90 arch/x86/include/uapi/asm/vm86.h unsigned short gs, __gsh; gs 556 arch/x86/kernel/apm_32.c savesegment(fs, saved_fs); savesegment(gs, saved_gs) gs 558 arch/x86/kernel/apm_32.c loadsegment(fs, saved_fs); loadsegment(gs, saved_gs) gs 37 arch/x86/kernel/asm-offsets_32.c OFFSET(PT_GS, pt_regs, gs); gs 576 arch/x86/kernel/cpu/common.c __loadsegment_simple(gs, 0); gs 69 arch/x86/kernel/doublefault.c .gs = __KERNEL_STACK_CANARY, gs 785 arch/x86/kernel/kprobes/core.c regs->gs = 0; gs 163 arch/x86/kernel/kprobes/opt.c regs->gs = 0; gs 37 arch/x86/kernel/perf_regs.c PT_REGS_OFFSET(PERF_REG_X86_GS, gs), gs 65 arch/x86/kernel/process_32.c unsigned short gs; gs 68 arch/x86/kernel/process_32.c gs = get_user_gs(regs); gs 70 arch/x86/kernel/process_32.c savesegment(gs, gs); gs 79 arch/x86/kernel/process_32.c (u16)regs->ds, (u16)regs->es, (u16)regs->fs, gs, regs->ss, regs->flags); gs 251 arch/x86/kernel/process_32.c lazy_save_gs(prev->gs); gs 290 arch/x86/kernel/process_32.c if (prev->gs | next->gs) gs 291 arch/x86/kernel/process_32.c lazy_load_gs(next->gs); gs 69 arch/x86/kernel/process_64.c unsigned long cr0 = 0L, cr2 = 0L, cr3 = 0L, cr4 = 0L, fs, gs, shadowgs; gs 109 arch/x86/kernel/process_64.c rdmsrl(MSR_GS_BASE, gs); gs 118 arch/x86/kernel/process_64.c fs, fsindex, gs, gsindex, shadowgs); gs 202 arch/x86/kernel/process_64.c savesegment(gs, task->thread.gsindex); gs 392 arch/x86/kernel/process_64.c savesegment(gs, p->thread.gsindex); gs 88 arch/x86/kernel/ptrace.c REG_OFFSET_NAME(gs), gs 170 arch/x86/kernel/ptrace.c if (offset != offsetof(struct user_regs_struct, gs)) gs 210 arch/x86/kernel/ptrace.c case offsetof(struct user_regs_struct, gs): gs 245 arch/x86/kernel/ptrace.c case offsetof(struct user_regs_struct, gs): gs 286 arch/x86/kernel/ptrace.c case offsetof(struct user_regs_struct,gs): gs 362 arch/x86/kernel/ptrace.c case offsetof(struct user_regs_struct, gs): gs 404 arch/x86/kernel/ptrace.c case offsetof(struct user_regs_struct, gs): gs 875 arch/x86/kernel/ptrace.c SEG32(gs); gs 947 arch/x86/kernel/ptrace.c SEG32(gs); gs 112 arch/x86/kernel/signal.c set_user_gs(regs, GET_SEG(gs)); gs 167 arch/x86/kernel/signal.c put_user_ex(get_user_gs(regs), (unsigned int __user *)&sc->gs); gs 203 arch/x86/kernel/signal.c put_user_ex(0, &sc->gs); gs 168 arch/x86/kernel/tls.c savesegment(gs, sel); gs 174 arch/x86/kernel/tls.c savesegment(gs, sel); gs 176 arch/x86/kernel/tls.c loadsegment(gs, sel); gs 140 arch/x86/kernel/vm86_32.c put_user_ex(regs->gs, &user->regs.gs); gs 159 arch/x86/kernel/vm86_32.c lazy_load_gs(vm86->regs32.gs); gs 306 arch/x86/kernel/vm86_32.c get_user_ex(vm86regs.gs, &user_vm86->regs.gs); gs 366 arch/x86/kernel/vm86_32.c lazy_save_gs(vm86->regs32.gs); gs 3183 arch/x86/kvm/emulate.c tss->gs = get_segment_selector(ctxt, VCPU_SREG_GS); gs 3218 arch/x86/kvm/emulate.c set_segment_selector(ctxt, tss->gs, VCPU_SREG_GS); gs 3261 arch/x86/kvm/emulate.c ret = __load_segment_descriptor(ctxt, tss->gs, VCPU_SREG_GS, cpl, gs 204 arch/x86/kvm/svm.c u16 gs; gs 1610 arch/x86/kvm/svm.c init_seg(&save->gs); gs 2327 arch/x86/kvm/svm.c savesegment(gs, svm->host.gs); gs 2363 arch/x86/kvm/svm.c load_gs_index(svm->host.gs); gs 2366 arch/x86/kvm/svm.c loadsegment(gs, svm->host.gs); gs 2442 arch/x86/kvm/svm.c case VCPU_SREG_GS: return &save->gs; gs 3734 arch/x86/kvm/svm.c to_vmcb->save.gs = from_vmcb->save.gs; gs 4919 arch/x86/kvm/svm.c save->gs.selector, save->gs.attrib, gs 4920 arch/x86/kvm/svm.c save->gs.limit, save->gs.base); gs 5802 arch/x86/kvm/svm.c loadsegment(gs, svm->host.gs); gs 29 arch/x86/kvm/tss.h u32 gs; gs 1157 arch/x86/kvm/vmx/vmx.c savesegment(gs, gs_sel); gs 1165 arch/x86/kvm/vmx/vmx.c savesegment(gs, gs_sel); gs 1193 arch/x86/kvm/vmx/vmx.c loadsegment(gs, host_state->gs_sel); gs 8730 arch/x86/kvm/x86.c kvm_get_segment(vcpu, &sregs->gs, VCPU_SREG_GS); gs 8931 arch/x86/kvm/x86.c kvm_set_segment(vcpu, &sregs->gs, VCPU_SREG_GS); gs 342 arch/x86/lib/insn-eval.c savesegment(gs, sel); gs 363 arch/x86/lib/insn-eval.c return vm86regs->gs; gs 50 arch/x86/math-emu/get_address.c offsetof(struct kernel_vm86_regs, gs), gs 103 arch/x86/power/cpu.c savesegment(gs, ctxt->gs); gs 106 arch/x86/power/cpu.c savesegment(gs, ctxt->gs); gs 233 arch/x86/power/cpu.c loadsegment(gs, __KERNEL_STACK_CANARY); gs 247 arch/x86/power/cpu.c load_gs_index(ctxt->gs); gs 257 arch/x86/power/cpu.c loadsegment(gs, ctxt->gs); gs 169 arch/x86/um/signal.c GETREG(GS, gs); gs 248 arch/x86/um/signal.c PUTREG(GS, gs); gs 304 arch/x86/xen/smp_pv.c ctxt->user_regs.gs = __KERNEL_STACK_CANARY; gs 426 drivers/clk/rockchip/clk.h df, go, gs, gf) \ gs 442 drivers/clk/rockchip/clk.h .gate_shift = gs, \ gs 447 drivers/clk/rockchip/clk.h mf, do, ds, dw, df, go, gs, gf) \ gs 464 drivers/clk/rockchip/clk.h .gate_shift = gs, \ gs 469 drivers/clk/rockchip/clk.h go, gs, gf) \ gs 482 drivers/clk/rockchip/clk.h .gate_shift = gs, \ gs 487 drivers/clk/rockchip/clk.h df, dt, go, gs, gf) \ gs 501 drivers/clk/rockchip/clk.h .gate_shift = gs, \ gs 506 drivers/clk/rockchip/clk.h go, gs, gf) \ gs 519 drivers/clk/rockchip/clk.h .gate_shift = gs, \ gs 562 drivers/clk/rockchip/clk.h #define COMPOSITE_FRAC(_id, cname, pname, f, mo, df, go, gs, gf)\ gs 575 drivers/clk/rockchip/clk.h .gate_shift = gs, \ gs 579 drivers/clk/rockchip/clk.h #define COMPOSITE_FRACMUX(_id, cname, pname, f, mo, df, go, gs, gf, ch) \ gs 592 drivers/clk/rockchip/clk.h .gate_shift = gs, \ gs 755 drivers/clk/rockchip/clk.h df, go, gs, gf) \ gs 771 drivers/clk/rockchip/clk.h .gate_shift = gs, \ gs 795 drivers/clk/rockchip/clk.h go, gs, gf) \ gs 808 drivers/clk/rockchip/clk.h .gate_shift = gs, \ gs 52 drivers/gpio/gpio-mlxbf.c struct mlxbf_gpio_state *gs; gs 57 drivers/gpio/gpio-mlxbf.c gs = devm_kzalloc(&pdev->dev, sizeof(*gs), GFP_KERNEL); gs 58 drivers/gpio/gpio-mlxbf.c if (!gs) gs 61 drivers/gpio/gpio-mlxbf.c gs->base = devm_platform_ioremap_resource(pdev, 0); gs 62 drivers/gpio/gpio-mlxbf.c if (IS_ERR(gs->base)) gs 63 drivers/gpio/gpio-mlxbf.c return PTR_ERR(gs->base); gs 65 drivers/gpio/gpio-mlxbf.c gc = &gs->gc; gs 67 drivers/gpio/gpio-mlxbf.c gs->base + MLXBF_GPIO_PIN_STATE, gs 70 drivers/gpio/gpio-mlxbf.c gs->base + MLXBF_GPIO_PIN_DIR_O, gs 71 drivers/gpio/gpio-mlxbf.c gs->base + MLXBF_GPIO_PIN_DIR_I, gs 79 drivers/gpio/gpio-mlxbf.c ret = devm_gpiochip_add_data(dev, &gs->gc, gs); gs 85 drivers/gpio/gpio-mlxbf.c platform_set_drvdata(pdev, gs); gs 93 drivers/gpio/gpio-mlxbf.c struct mlxbf_gpio_state *gs = platform_get_drvdata(pdev); gs 95 drivers/gpio/gpio-mlxbf.c gs->csave_regs.scratchpad = readq(gs->base + MLXBF_GPIO_SCRATCHPAD); gs 96 drivers/gpio/gpio-mlxbf.c gs->csave_regs.pad_control[0] = gs 97 drivers/gpio/gpio-mlxbf.c readq(gs->base + MLXBF_GPIO_PAD_CONTROL_FIRST_WORD); gs 98 drivers/gpio/gpio-mlxbf.c gs->csave_regs.pad_control[1] = gs 99 drivers/gpio/gpio-mlxbf.c readq(gs->base + MLXBF_GPIO_PAD_CONTROL_1_FIRST_WORD); gs 100 drivers/gpio/gpio-mlxbf.c gs->csave_regs.pad_control[2] = gs 101 drivers/gpio/gpio-mlxbf.c readq(gs->base + MLXBF_GPIO_PAD_CONTROL_2_FIRST_WORD); gs 102 drivers/gpio/gpio-mlxbf.c gs->csave_regs.pad_control[3] = gs 103 drivers/gpio/gpio-mlxbf.c readq(gs->base + MLXBF_GPIO_PAD_CONTROL_3_FIRST_WORD); gs 104 drivers/gpio/gpio-mlxbf.c gs->csave_regs.pin_dir_i = readq(gs->base + MLXBF_GPIO_PIN_DIR_I); gs 105 drivers/gpio/gpio-mlxbf.c gs->csave_regs.pin_dir_o = readq(gs->base + MLXBF_GPIO_PIN_DIR_O); gs 112 drivers/gpio/gpio-mlxbf.c struct mlxbf_gpio_state *gs = platform_get_drvdata(pdev); gs 114 drivers/gpio/gpio-mlxbf.c writeq(gs->csave_regs.scratchpad, gs->base + MLXBF_GPIO_SCRATCHPAD); gs 115 drivers/gpio/gpio-mlxbf.c writeq(gs->csave_regs.pad_control[0], gs 116 drivers/gpio/gpio-mlxbf.c gs->base + MLXBF_GPIO_PAD_CONTROL_FIRST_WORD); gs 117 drivers/gpio/gpio-mlxbf.c writeq(gs->csave_regs.pad_control[1], gs 118 drivers/gpio/gpio-mlxbf.c gs->base + MLXBF_GPIO_PAD_CONTROL_1_FIRST_WORD); gs 119 drivers/gpio/gpio-mlxbf.c writeq(gs->csave_regs.pad_control[2], gs 120 drivers/gpio/gpio-mlxbf.c gs->base + MLXBF_GPIO_PAD_CONTROL_2_FIRST_WORD); gs 121 drivers/gpio/gpio-mlxbf.c writeq(gs->csave_regs.pad_control[3], gs 122 drivers/gpio/gpio-mlxbf.c gs->base + MLXBF_GPIO_PAD_CONTROL_3_FIRST_WORD); gs 123 drivers/gpio/gpio-mlxbf.c writeq(gs->csave_regs.pin_dir_i, gs->base + MLXBF_GPIO_PIN_DIR_I); gs 124 drivers/gpio/gpio-mlxbf.c writeq(gs->csave_regs.pin_dir_o, gs->base + MLXBF_GPIO_PIN_DIR_O); gs 72 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgp102.c const u32 gs = gfxp * gr->ppc_tpc_max; gs 78 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgp102.c mmio_wr32(info, o + 0xc0, gs); gs 82 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgp102.c bo += gs; gs 93 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgv100.c const u32 gs = gfxp * gr->ppc_tpc_nr[gpc][ppc]; gs 98 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgv100.c mmio_wr32(info, o + 0xc0, gs); gs 101 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgv100.c bo += gs; gs 157 drivers/media/pci/saa7164/saa7164-api.c struct tmComResEncVideoGopStructure gs; gs 162 drivers/media/pci/saa7164/saa7164-api.c gs.ucRefFrameDist = port->encoder_params.refdist; gs 163 drivers/media/pci/saa7164/saa7164-api.c gs.ucGOPSize = port->encoder_params.gop_size; gs 166 drivers/media/pci/saa7164/saa7164-api.c sizeof(gs), &gs); gs 245 drivers/media/spi/gs1662.c static inline struct gs *to_gs(struct v4l2_subdev *sd) gs 247 drivers/media/spi/gs1662.c return container_of(sd, struct gs, sd); gs 253 drivers/media/spi/gs1662.c struct gs *gs = to_gs(sd); gs 260 drivers/media/spi/gs1662.c gs->current_timings = *timings; gs 267 drivers/media/spi/gs1662.c struct gs *gs = to_gs(sd); gs 269 drivers/media/spi/gs1662.c *timings = gs->current_timings; gs 276 drivers/media/spi/gs1662.c struct gs *gs = to_gs(sd); gs 281 drivers/media/spi/gs1662.c if (gs->enabled) gs 289 drivers/media/spi/gs1662.c gs_read_register(gs->pdev, REG_LINES_PER_FRAME + i, ®_value); gs 298 drivers/media/spi/gs1662.c gs_read_register(gs->pdev, REG_STATUS, ®_value); gs 328 drivers/media/spi/gs1662.c struct gs *gs = to_gs(sd); gs 331 drivers/media/spi/gs1662.c if (gs->enabled == enable) gs 334 drivers/media/spi/gs1662.c gs->enabled = enable; gs 338 drivers/media/spi/gs1662.c reg_value = get_register_timings(&gs->current_timings); gs 339 drivers/media/spi/gs1662.c return gs_write_register(gs->pdev, REG_FORCE_FMT, reg_value); gs 343 drivers/media/spi/gs1662.c return gs_write_register(gs->pdev, REG_FORCE_FMT, 0x0); gs 348 drivers/media/spi/gs1662.c struct gs *gs = to_gs(sd); gs 357 drivers/media/spi/gs1662.c ret = gs_read_register(gs->pdev, gs 371 drivers/media/spi/gs1662.c ret = gs_read_register(gs->pdev, REG_STATUS, ®_value); gs 423 drivers/media/spi/gs1662.c struct gs *gs; gs 426 drivers/media/spi/gs1662.c gs = devm_kzalloc(&spi->dev, sizeof(struct gs), GFP_KERNEL); gs 427 drivers/media/spi/gs1662.c if (!gs) gs 430 drivers/media/spi/gs1662.c gs->pdev = spi; gs 431 drivers/media/spi/gs1662.c sd = &gs->sd; gs 440 drivers/media/spi/gs1662.c gs->current_timings = reg_fmt[0].format; gs 441 drivers/media/spi/gs1662.c gs->enabled = 0; gs 119 drivers/net/geneve.c static sa_family_t geneve_get_sk_family(struct geneve_sock *gs) gs 121 drivers/net/geneve.c return gs->sock->sk->sk_family; gs 124 drivers/net/geneve.c static struct geneve_dev *geneve_lookup(struct geneve_sock *gs, gs 133 drivers/net/geneve.c vni_list_head = &gs->vni_list[hash]; gs 143 drivers/net/geneve.c static struct geneve_dev *geneve6_lookup(struct geneve_sock *gs, gs 152 drivers/net/geneve.c vni_list_head = &gs->vni_list[hash]; gs 167 drivers/net/geneve.c static struct geneve_dev *geneve_lookup_skb(struct geneve_sock *gs, gs 173 drivers/net/geneve.c if (geneve_get_sk_family(gs) == AF_INET) { gs 179 drivers/net/geneve.c if (gs->collect_md) { gs 187 drivers/net/geneve.c return geneve_lookup(gs, addr, vni); gs 189 drivers/net/geneve.c } else if (geneve_get_sk_family(gs) == AF_INET6) { gs 196 drivers/net/geneve.c if (gs->collect_md) { gs 204 drivers/net/geneve.c return geneve6_lookup(gs, addr6, vni); gs 211 drivers/net/geneve.c static void geneve_rx(struct geneve_dev *geneve, struct geneve_sock *gs, gs 221 drivers/net/geneve.c if (ip_tunnel_collect_metadata() || gs->collect_md) { gs 228 drivers/net/geneve.c tun_dst = udp_tun_rx_dst(skb, geneve_get_sk_family(gs), flags, gs 266 drivers/net/geneve.c if (geneve_get_sk_family(gs) == AF_INET) gs 275 drivers/net/geneve.c if (geneve_get_sk_family(gs) == AF_INET) gs 347 drivers/net/geneve.c struct geneve_sock *gs; gs 362 drivers/net/geneve.c gs = rcu_dereference_sk_user_data(sk); gs 363 drivers/net/geneve.c if (!gs) gs 366 drivers/net/geneve.c geneve = geneve_lookup_skb(gs, skb); gs 378 drivers/net/geneve.c geneve_rx(geneve, gs, skb); gs 391 drivers/net/geneve.c struct geneve_sock *gs; gs 405 drivers/net/geneve.c gs = rcu_dereference_sk_user_data(sk); gs 406 drivers/net/geneve.c if (!gs) gs 409 drivers/net/geneve.c if (geneve_get_sk_family(gs) == AF_INET) { gs 413 drivers/net/geneve.c if (!gs->collect_md) { gs 418 drivers/net/geneve.c return geneve_lookup(gs, addr4, vni) ? 0 : -ENOENT; gs 422 drivers/net/geneve.c if (geneve_get_sk_family(gs) == AF_INET6) { gs 428 drivers/net/geneve.c if (!gs->collect_md) { gs 433 drivers/net/geneve.c return geneve6_lookup(gs, addr6, vni) ? 0 : -ENOENT; gs 567 drivers/net/geneve.c struct geneve_sock *gs; gs 572 drivers/net/geneve.c gs = kzalloc(sizeof(*gs), GFP_KERNEL); gs 573 drivers/net/geneve.c if (!gs) gs 578 drivers/net/geneve.c kfree(gs); gs 582 drivers/net/geneve.c gs->sock = sock; gs 583 drivers/net/geneve.c gs->refcnt = 1; gs 585 drivers/net/geneve.c INIT_HLIST_HEAD(&gs->vni_list[h]); gs 588 drivers/net/geneve.c udp_tunnel_notify_add_rx_port(gs->sock, UDP_TUNNEL_TYPE_GENEVE); gs 592 drivers/net/geneve.c tunnel_cfg.sk_user_data = gs; gs 600 drivers/net/geneve.c list_add(&gs->list, &gn->sock_list); gs 601 drivers/net/geneve.c return gs; gs 604 drivers/net/geneve.c static void __geneve_sock_release(struct geneve_sock *gs) gs 606 drivers/net/geneve.c if (!gs || --gs->refcnt) gs 609 drivers/net/geneve.c list_del(&gs->list); gs 610 drivers/net/geneve.c udp_tunnel_notify_del_rx_port(gs->sock, UDP_TUNNEL_TYPE_GENEVE); gs 611 drivers/net/geneve.c udp_tunnel_sock_release(gs->sock); gs 612 drivers/net/geneve.c kfree_rcu(gs, rcu); gs 637 drivers/net/geneve.c struct geneve_sock *gs; gs 639 drivers/net/geneve.c list_for_each_entry(gs, &gn->sock_list, list) { gs 640 drivers/net/geneve.c if (inet_sk(gs->sock->sk)->inet_sport == dst_port && gs 641 drivers/net/geneve.c geneve_get_sk_family(gs) == family) { gs 642 drivers/net/geneve.c return gs; gs 653 drivers/net/geneve.c struct geneve_sock *gs; gs 657 drivers/net/geneve.c gs = geneve_find_sock(gn, ipv6 ? AF_INET6 : AF_INET, geneve->info.key.tp_dst); gs 658 drivers/net/geneve.c if (gs) { gs 659 drivers/net/geneve.c gs->refcnt++; gs 663 drivers/net/geneve.c gs = geneve_socket_create(net, geneve->info.key.tp_dst, ipv6, gs 665 drivers/net/geneve.c if (IS_ERR(gs)) gs 666 drivers/net/geneve.c return PTR_ERR(gs); gs 669 drivers/net/geneve.c gs->collect_md = geneve->collect_md; gs 672 drivers/net/geneve.c rcu_assign_pointer(geneve->sock6, gs); gs 677 drivers/net/geneve.c rcu_assign_pointer(geneve->sock4, gs); gs 684 drivers/net/geneve.c hlist_add_head_rcu(&node->hlist, &gs->vni_list[hash]); gs 1109 drivers/net/geneve.c struct geneve_sock *gs; gs 1112 drivers/net/geneve.c list_for_each_entry_rcu(gs, &gn->sock_list, list) { gs 1114 drivers/net/geneve.c udp_tunnel_push_rx_port(dev, gs->sock, gs 1117 drivers/net/geneve.c udp_tunnel_drop_rx_port(dev, gs->sock, gs 446 drivers/pinctrl/core.c int gs; gs 451 drivers/pinctrl/core.c gs = pinctrl_get_group_selector(pctldev, pin_group); gs 452 drivers/pinctrl/core.c if (gs < 0) gs 453 drivers/pinctrl/core.c return gs; gs 455 drivers/pinctrl/core.c return pctlops->get_group_pins(pctldev, gs, pins, num_pins); gs 427 drivers/s390/scsi/zfcp_aux.c zfcp_fc_wka_ports_force_offline(adapter->gs); gs 187 drivers/s390/scsi/zfcp_def.h struct zfcp_fc_wka_ports *gs; /* generic services */ gs 835 drivers/s390/scsi/zfcp_erp.c zfcp_fc_wka_ports_force_offline(adapter->gs); gs 221 drivers/s390/scsi/zfcp_fc.c void zfcp_fc_wka_ports_force_offline(struct zfcp_fc_wka_ports *gs) gs 223 drivers/s390/scsi/zfcp_fc.c if (!gs) gs 225 drivers/s390/scsi/zfcp_fc.c zfcp_fc_wka_port_force_offline(&gs->ms); gs 226 drivers/s390/scsi/zfcp_fc.c zfcp_fc_wka_port_force_offline(&gs->ts); gs 227 drivers/s390/scsi/zfcp_fc.c zfcp_fc_wka_port_force_offline(&gs->ds); gs 228 drivers/s390/scsi/zfcp_fc.c zfcp_fc_wka_port_force_offline(&gs->as); gs 395 drivers/s390/scsi/zfcp_fc.c ret = zfcp_fsf_send_ct(&adapter->gs->ds, &fc_req->ct_els, gs 422 drivers/s390/scsi/zfcp_fc.c ret = zfcp_fc_wka_port_get(&adapter->gs->ds); gs 428 drivers/s390/scsi/zfcp_fc.c zfcp_fc_wka_port_put(&adapter->gs->ds); gs 690 drivers/s390/scsi/zfcp_fc.c ret = zfcp_fsf_send_ct(&adapter->gs->ds, ct_els, NULL, gs 804 drivers/s390/scsi/zfcp_fc.c if (zfcp_fc_wka_port_get(&adapter->gs->ds)) gs 824 drivers/s390/scsi/zfcp_fc.c zfcp_fc_wka_port_put(&adapter->gs->ds); gs 849 drivers/s390/scsi/zfcp_fc.c ret = zfcp_fsf_send_ct(&adapter->gs->ds, ct_els, NULL, gs 897 drivers/s390/scsi/zfcp_fc.c ret = zfcp_fsf_send_ct(&adapter->gs->ds, ct_els, NULL, gs 929 drivers/s390/scsi/zfcp_fc.c ret = zfcp_fc_wka_port_get(&adapter->gs->ds); gs 941 drivers/s390/scsi/zfcp_fc.c zfcp_fc_wka_port_put(&adapter->gs->ds); gs 975 drivers/s390/scsi/zfcp_fc.c return &adapter->gs->as; gs 977 drivers/s390/scsi/zfcp_fc.c return &adapter->gs->ms; gs 979 drivers/s390/scsi/zfcp_fc.c return &adapter->gs->ts; gs 982 drivers/s390/scsi/zfcp_fc.c return &adapter->gs->ds; gs 1090 drivers/s390/scsi/zfcp_fc.c adapter->gs = wka_ports; gs 1101 drivers/s390/scsi/zfcp_fc.c kfree(adapter->gs); gs 1102 drivers/s390/scsi/zfcp_fc.c adapter->gs = NULL; gs 1241 drivers/usb/gadget/composite.c struct usb_gadget_strings *gs; gs 1262 drivers/usb/gadget/composite.c gs = gs_array[n_gs]; gs 1264 drivers/usb/gadget/composite.c gs->language = sp[n_gs]->language; gs 1265 drivers/usb/gadget/composite.c gs->strings = stash; gs 721 drivers/usb/gadget/configfs.c struct gadget_strings *gs = to_gadget_strings(item); gs 723 drivers/usb/gadget/configfs.c kfree(gs->manufacturer); gs 724 drivers/usb/gadget/configfs.c kfree(gs->product); gs 725 drivers/usb/gadget/configfs.c kfree(gs->serialnumber); gs 727 drivers/usb/gadget/configfs.c list_del(&gs->list); gs 728 drivers/usb/gadget/configfs.c kfree(gs); gs 1282 drivers/usb/gadget/configfs.c struct gadget_strings *gs; gs 1285 drivers/usb/gadget/configfs.c list_for_each_entry(gs, &gi->string_list, list) { gs 1287 drivers/usb/gadget/configfs.c gi->gstrings[i] = &gs->stringtab_dev; gs 1288 drivers/usb/gadget/configfs.c gs->stringtab_dev.strings = gs->strings; gs 1289 drivers/usb/gadget/configfs.c gs->strings[USB_GADGET_MANUFACTURER_IDX].s = gs 1290 drivers/usb/gadget/configfs.c gs->manufacturer; gs 1291 drivers/usb/gadget/configfs.c gs->strings[USB_GADGET_PRODUCT_IDX].s = gs->product; gs 1292 drivers/usb/gadget/configfs.c gs->strings[USB_GADGET_SERIAL_IDX].s = gs->serialnumber; gs 14 include/linux/usb/gadget_configfs.h struct __struct *gs = to_##__struct(item); \ gs 17 include/linux/usb/gadget_configfs.h ret = usb_string_copy(page, &gs->__name); \ gs 26 include/linux/usb/gadget_configfs.h struct __struct *gs = to_##__struct(item); \ gs 27 include/linux/usb/gadget_configfs.h return sprintf(page, "%s\n", gs->__name ?: ""); \ gs 52 include/linux/usb/gadget_configfs.h struct struct_in *gs; \ gs 69 include/linux/usb/gadget_configfs.h list_for_each_entry(gs, &gi->string_list, list) { \ gs 70 include/linux/usb/gadget_configfs.h if (gs->stringtab_dev.language == new->stringtab_dev.language) \ gs 23 include/uapi/video/uvesafb.h __u16 gs; gs 533 kernel/rcu/tree.c static const char *gp_state_getname(short gs) gs 535 kernel/rcu/tree.c if (gs < 0 || gs >= ARRAY_SIZE(gp_state_names)) gs 537 kernel/rcu/tree.c return gp_state_names[gs]; gs 74 lib/test_hexdump.c int gs = groupsize, rs = rowsize; gs 84 lib/test_hexdump.c if (!is_power_of_2(gs) || gs > 8 || (len % gs != 0)) gs 85 lib/test_hexdump.c gs = 1; gs 87 lib/test_hexdump.c if (gs == 8) gs 89 lib/test_hexdump.c else if (gs == 4) gs 91 lib/test_hexdump.c else if (gs == 2) gs 98 lib/test_hexdump.c for (i = 0; i < l / gs; i++) { gs 114 lib/test_hexdump.c } while (p < test + rs * 2 + rs / gs + 1); gs 166 lib/test_hexdump.c int rs = rowsize, gs = groupsize; gs 174 lib/test_hexdump.c r = hex_dump_to_buffer(data_b, len, rs, gs, buf, buflen, ascii); gs 180 lib/test_hexdump.c ae = rs * 2 /* hex */ + rs / gs /* spaces */ + 1 /* space */ + len /* ascii */; gs 181 lib/test_hexdump.c he = (gs * 2 /* hex */ + 1 /* space */) * len / gs - 1 /* no trailing space */; gs 190 lib/test_hexdump.c test_hexdump_prepare_test(len, rs, gs, test, sizeof(test), ascii); gs 214 lib/test_hexdump.c int gs = 1 << i; gs 215 lib/test_hexdump.c size_t len = get_random_int() % rs + gs; gs 217 lib/test_hexdump.c test_hexdump_overflow(buflen, rounddown(len, gs), rs, gs, ascii); gs 382 scripts/gcc-plugins/gcc-common.h static inline bool gimple_store_p(gimple gs) gs 384 scripts/gcc-plugins/gcc-common.h tree lhs = gimple_get_lhs(gs); gs 696 scripts/gcc-plugins/gcc-common.h inline bool is_a_helper<const gassign *>::test(const_gimple gs) gs 698 scripts/gcc-plugins/gcc-common.h return gs->code == GIMPLE_ASSIGN; gs 855 scripts/gcc-plugins/gcc-common.h inline bool is_a_helper<const ggoto *>::test(const_gimple gs) gs 857 scripts/gcc-plugins/gcc-common.h return gs->code == GIMPLE_GOTO; gs 862 scripts/gcc-plugins/gcc-common.h inline bool is_a_helper<const greturn *>::test(const_gimple gs) gs 864 scripts/gcc-plugins/gcc-common.h return gs->code == GIMPLE_RETURN; gs 1243 scripts/kconfig/expr.c struct gstr *gs = (struct gstr*)data; gs 1249 scripts/kconfig/expr.c if (gs->max_width) { gs 1251 scripts/kconfig/expr.c const char *last_cr = strrchr(gs->s, '\n'); gs 1258 scripts/kconfig/expr.c last_cr = gs->s; gs 1260 scripts/kconfig/expr.c last_line_length = strlen(gs->s) - (last_cr - gs->s); gs 1262 scripts/kconfig/expr.c if ((last_line_length + extra_length) > gs->max_width) gs 1263 scripts/kconfig/expr.c str_append(gs, "\\\n"); gs 1266 scripts/kconfig/expr.c str_append(gs, str); gs 1268 scripts/kconfig/expr.c str_printf(gs, " [=%s]", sym_str); gs 1271 scripts/kconfig/expr.c void expr_gstr_print(struct expr *e, struct gstr *gs) gs 1273 scripts/kconfig/expr.c expr_print(e, expr_print_gstr_helper, gs, E_NONE); gs 1300 scripts/kconfig/expr.c void expr_gstr_print_revdep(struct expr *e, struct gstr *gs, gs 1303 scripts/kconfig/expr.c expr_print_revdep(e, expr_print_gstr_helper, gs, pr_type, &title); gs 314 scripts/kconfig/expr.h void expr_gstr_print(struct expr *e, struct gstr *gs); gs 315 scripts/kconfig/expr.h void expr_gstr_print_revdep(struct expr *e, struct gstr *gs, gs 104 scripts/kconfig/lkc.h void str_free(struct gstr *gs); gs 105 scripts/kconfig/lkc.h void str_append(struct gstr *gs, const char *s); gs 106 scripts/kconfig/lkc.h void str_printf(struct gstr *gs, const char *fmt, ...); gs 107 scripts/kconfig/lkc.h const char *str_get(struct gstr *gs); gs 300 scripts/kconfig/symbol.c struct gstr gs = str_new(); gs 302 scripts/kconfig/symbol.c str_printf(&gs, gs 305 scripts/kconfig/symbol.c str_printf(&gs, gs 308 scripts/kconfig/symbol.c expr_gstr_print(sym->dir_dep.expr, &gs); gs 309 scripts/kconfig/symbol.c str_printf(&gs, "\n"); gs 311 scripts/kconfig/symbol.c expr_gstr_print_revdep(sym->rev_dep.expr, &gs, yes, gs 313 scripts/kconfig/symbol.c expr_gstr_print_revdep(sym->rev_dep.expr, &gs, mod, gs 316 scripts/kconfig/symbol.c fputs(str_get(&gs), stderr); gs 34 scripts/kconfig/util.c struct gstr gs; gs 35 scripts/kconfig/util.c gs.s = xmalloc(sizeof(char) * 64); gs 36 scripts/kconfig/util.c gs.len = 64; gs 37 scripts/kconfig/util.c gs.max_width = 0; gs 38 scripts/kconfig/util.c strcpy(gs.s, "\0"); gs 39 scripts/kconfig/util.c return gs; gs 43 scripts/kconfig/util.c void str_free(struct gstr *gs) gs 45 scripts/kconfig/util.c if (gs->s) gs 46 scripts/kconfig/util.c free(gs->s); gs 47 scripts/kconfig/util.c gs->s = NULL; gs 48 scripts/kconfig/util.c gs->len = 0; gs 52 scripts/kconfig/util.c void str_append(struct gstr *gs, const char *s) gs 56 scripts/kconfig/util.c l = strlen(gs->s) + strlen(s) + 1; gs 57 scripts/kconfig/util.c if (l > gs->len) { gs 58 scripts/kconfig/util.c gs->s = xrealloc(gs->s, l); gs 59 scripts/kconfig/util.c gs->len = l; gs 61 scripts/kconfig/util.c strcat(gs->s, s); gs 66 scripts/kconfig/util.c void str_printf(struct gstr *gs, const char *fmt, ...) gs 72 scripts/kconfig/util.c str_append(gs, s); gs 77 scripts/kconfig/util.c const char *str_get(struct gstr *gs) gs 79 scripts/kconfig/util.c return gs->s; gs 151 tools/arch/x86/include/uapi/asm/kvm.h struct kvm_segment cs, ds, es, fs, gs, ss; gs 173 tools/testing/selftests/kvm/include/x86_64/processor.h uint16_t gs; gs 176 tools/testing/selftests/kvm/include/x86_64/processor.h : /* output */ [gs]"=rm"(gs)); gs 177 tools/testing/selftests/kvm/include/x86_64/processor.h return gs; gs 200 tools/testing/selftests/kvm/lib/x86_64/processor.c segment_dump(stream, &sregs->gs, indent + 2); gs 300 tools/testing/selftests/x86/fsgsbase.c unsigned short gs = (unsigned short)((desc.entry_number << 3) | 0x3); gs 301 tools/testing/selftests/x86/fsgsbase.c asm volatile ("mov %0, %%gs" : : "rm" (gs)); gs 302 tools/testing/selftests/x86/fsgsbase.c return gs; gs 468 tools/testing/selftests/x86/fsgsbase.c unsigned long gs, base; gs 469 tools/testing/selftests/x86/fsgsbase.c unsigned long gs_offset = USER_REGS_OFFSET(gs); gs 472 tools/testing/selftests/x86/fsgsbase.c gs = ptrace(PTRACE_PEEKUSER, child, gs_offset, NULL); gs 474 tools/testing/selftests/x86/fsgsbase.c if (gs != *shared_scratch) { gs 483 tools/testing/selftests/x86/fsgsbase.c gs = ptrace(PTRACE_PEEKUSER, child, gs_offset, NULL); gs 492 tools/testing/selftests/x86/fsgsbase.c if (gs == 0 && base == 0xFF) { gs 496 tools/testing/selftests/x86/fsgsbase.c printf("[FAIL]\tGS=0x%lx, GSBASE=0x%lx (should be 0, 0xFF)\n", gs, base); gs 304 tools/testing/selftests/x86/sigreturn.c unsigned short cs, gs, fs, ss;