Home
last modified time | relevance | path

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

12345

/Linux-v4.19/scripts/kconfig/
Dutil.c35 struct gstr gs; in str_new() local
36 gs.s = xmalloc(sizeof(char) * 64); in str_new()
37 gs.len = 64; in str_new()
38 gs.max_width = 0; in str_new()
39 strcpy(gs.s, "\0"); in str_new()
40 return gs; in str_new()
44 void str_free(struct gstr *gs) in str_free() argument
46 if (gs->s) in str_free()
47 free(gs->s); in str_free()
48 gs->s = NULL; in str_free()
[all …]
Dlkc.h116 void str_free(struct gstr *gs);
117 void str_append(struct gstr *gs, const char *s);
118 void str_printf(struct gstr *gs, const char *fmt, ...);
119 const char *str_get(struct gstr *gs);
Dexpr.c1244 struct gstr *gs = (struct gstr*)data; in expr_print_gstr_helper() local
1250 if (gs->max_width) { in expr_print_gstr_helper()
1252 const char *last_cr = strrchr(gs->s, '\n'); in expr_print_gstr_helper()
1259 last_cr = gs->s; in expr_print_gstr_helper()
1261 last_line_length = strlen(gs->s) - (last_cr - gs->s); in expr_print_gstr_helper()
1263 if ((last_line_length + extra_length) > gs->max_width) in expr_print_gstr_helper()
1264 str_append(gs, "\\\n"); in expr_print_gstr_helper()
1267 str_append(gs, str); in expr_print_gstr_helper()
1269 str_printf(gs, " [=%s]", sym_str); in expr_print_gstr_helper()
1272 void expr_gstr_print(struct expr *e, struct gstr *gs) in expr_gstr_print() argument
[all …]
/Linux-v4.19/drivers/media/spi/
Dgs1662.c50 struct gs { struct
249 static inline struct gs *to_gs(struct v4l2_subdev *sd) in to_gs()
251 return container_of(sd, struct gs, sd); in to_gs()
257 struct gs *gs = to_gs(sd); in gs_s_dv_timings() local
264 gs->current_timings = *timings; in gs_s_dv_timings()
271 struct gs *gs = to_gs(sd); in gs_g_dv_timings() local
273 *timings = gs->current_timings; in gs_g_dv_timings()
280 struct gs *gs = to_gs(sd); in gs_query_dv_timings() local
285 if (gs->enabled) in gs_query_dv_timings()
293 gs_read_register(gs->pdev, REG_LINES_PER_FRAME + i, &reg_value); in gs_query_dv_timings()
[all …]
/Linux-v4.19/lib/
Dtest_hexdump.c74 int gs = groupsize, rs = rowsize; in test_hexdump_prepare_test() local
84 if (!is_power_of_2(gs) || gs > 8 || (len % gs != 0)) in test_hexdump_prepare_test()
85 gs = 1; in test_hexdump_prepare_test()
87 if (gs == 8) in test_hexdump_prepare_test()
89 else if (gs == 4) in test_hexdump_prepare_test()
91 else if (gs == 2) in test_hexdump_prepare_test()
98 for (i = 0; i < l / gs; i++) { in test_hexdump_prepare_test()
114 } while (p < test + rs * 2 + rs / gs + 1); in test_hexdump_prepare_test()
166 int rs = rowsize, gs = groupsize; in test_hexdump_overflow() local
174 r = hex_dump_to_buffer(data_b, len, rs, gs, buf, buflen, ascii); in test_hexdump_overflow()
[all …]
/Linux-v4.19/arch/x86/include/asm/
Dsegment.h291 #define __loadsegment_gs(value) __loadsegment_simple(gs, (value))
323 # define get_user_gs(regs) (u16)({ unsigned long v; savesegment(gs, v); v; })
324 # define set_user_gs(regs, v) loadsegment(gs, (unsigned long)(v))
325 # define task_user_gs(tsk) ((tsk)->thread.gs)
326 # define lazy_save_gs(v) savesegment(gs, (v))
327 # define lazy_load_gs(v) loadsegment(gs, (v))
329 # define get_user_gs(regs) (u16)((regs)->gs)
330 # define set_user_gs(regs, v) do { (regs)->gs = (v); } while (0)
331 # define task_user_gs(tsk) (task_pt_regs(tsk)->gs)
Dptrace.h40 unsigned short gs; member
216 offset == offsetof(struct pt_regs, gs)) { in regs_get_register()
Dsuspend_32.h20 u16 gs; member
/Linux-v4.19/drivers/net/
Dgeneve.c121 static sa_family_t geneve_get_sk_family(struct geneve_sock *gs) in geneve_get_sk_family() argument
123 return gs->sock->sk->sk_family; in geneve_get_sk_family()
126 static struct geneve_dev *geneve_lookup(struct geneve_sock *gs, in geneve_lookup() argument
135 vni_list_head = &gs->vni_list[hash]; in geneve_lookup()
145 static struct geneve_dev *geneve6_lookup(struct geneve_sock *gs, in geneve6_lookup() argument
154 vni_list_head = &gs->vni_list[hash]; in geneve6_lookup()
169 static struct geneve_dev *geneve_lookup_skb(struct geneve_sock *gs, in geneve_lookup_skb() argument
175 if (geneve_get_sk_family(gs) == AF_INET) { in geneve_lookup_skb()
181 if (gs->collect_md) { in geneve_lookup_skb()
189 return geneve_lookup(gs, addr, vni); in geneve_lookup_skb()
[all …]
/Linux-v4.19/include/linux/usb/
Dgadget_configfs.h14 struct __struct *gs = to_##__struct(item); \
17 ret = usb_string_copy(page, &gs->__name); \
26 struct __struct *gs = to_##__struct(item); \
27 return sprintf(page, "%s\n", gs->__name ?: ""); \
52 struct struct_in *gs; \
69 list_for_each_entry(gs, &gi->string_list, list) { \
70 if (gs->stringtab_dev.language == new->stringtab_dev.language) \
/Linux-v4.19/arch/x86/kernel/
Dprocess_32.c67 unsigned short ss, gs; in __show_regs() local
72 gs = get_user_gs(regs); in __show_regs()
76 savesegment(gs, gs); in __show_regs()
86 (u16)regs->ds, (u16)regs->es, (u16)regs->fs, gs, ss, regs->flags); in __show_regs()
251 lazy_save_gs(prev->gs); in __switch_to()
297 if (prev->gs | next->gs) in __switch_to()
298 lazy_load_gs(next->gs); in __switch_to()
Dtls.c167 savesegment(gs, sel); in do_set_thread_area()
173 savesegment(gs, sel); in do_set_thread_area()
175 loadsegment(gs, sel); in do_set_thread_area()
Dprocess_64.c67 unsigned long cr0 = 0L, cr2 = 0L, cr3 = 0L, cr4 = 0L, fs, gs, shadowgs; in __show_regs() local
108 rdmsrl(MSR_GS_BASE, gs); in __show_regs()
117 fs, fsindex, gs, gsindex, shadowgs); in __show_regs()
211 savesegment(gs, task->thread.gsindex); in save_fsgs()
306 savesegment(gs, p->thread.gsindex); in copy_thread_tls()
/Linux-v4.19/arch/x86/boot/
Dbioscall.S30 pushw %gs
42 popw %gs
57 pushw %gs
78 popw %gs
Dregs.c29 reg->gs = gs(); in initregs()
/Linux-v4.19/arch/x86/power/
Dcpu.c103 savesegment(gs, ctxt->gs); in __save_processor_state()
106 savesegment(gs, ctxt->gs); in __save_processor_state()
237 loadsegment(gs, __KERNEL_STACK_CANARY); in __restore_processor_state()
251 load_gs_index(ctxt->gs); in __restore_processor_state()
261 loadsegment(gs, ctxt->gs); in __restore_processor_state()
/Linux-v4.19/drivers/s390/scsi/
Dzfcp_fc.c221 void zfcp_fc_wka_ports_force_offline(struct zfcp_fc_wka_ports *gs) in zfcp_fc_wka_ports_force_offline() argument
223 if (!gs) in zfcp_fc_wka_ports_force_offline()
225 zfcp_fc_wka_port_force_offline(&gs->ms); in zfcp_fc_wka_ports_force_offline()
226 zfcp_fc_wka_port_force_offline(&gs->ts); in zfcp_fc_wka_ports_force_offline()
227 zfcp_fc_wka_port_force_offline(&gs->ds); in zfcp_fc_wka_ports_force_offline()
228 zfcp_fc_wka_port_force_offline(&gs->as); in zfcp_fc_wka_ports_force_offline()
382 ret = zfcp_fsf_send_ct(&adapter->gs->ds, &fc_req->ct_els, in zfcp_fc_ns_gid_pn_request()
409 ret = zfcp_fc_wka_port_get(&adapter->gs->ds); in zfcp_fc_ns_gid_pn()
415 zfcp_fc_wka_port_put(&adapter->gs->ds); in zfcp_fc_ns_gid_pn()
635 ret = zfcp_fsf_send_ct(&adapter->gs->ds, ct_els, NULL, in zfcp_fc_send_gpn_ft()
[all …]
/Linux-v4.19/drivers/clk/rockchip/
Dclk.h421 df, go, gs, gf) \ argument
437 .gate_shift = gs, \
442 go, gs, gf) \ argument
455 .gate_shift = gs, \
460 df, dt, go, gs, gf) \ argument
474 .gate_shift = gs, \
479 go, gs, gf) \ argument
492 .gate_shift = gs, \
535 #define COMPOSITE_FRAC(_id, cname, pname, f, mo, df, go, gs, gf)\ argument
548 .gate_shift = gs, \
[all …]
/Linux-v4.19/arch/x86/include/uapi/asm/
Dsigcontext.h203 __u16 gs, __gsh; member
258 __u16 gs; member
301 __u16 gs, __gsh; member
370 __u16 gs; member
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/engine/gr/
Dctxgp102.c72 const u32 gs = gfxp * gr->ppc_tpc_max; in gp102_grctx_generate_attrib() local
78 mmio_wr32(info, o + 0xc0, gs); in gp102_grctx_generate_attrib()
82 bo += gs; in gp102_grctx_generate_attrib()
Dctxgv100.c93 const u32 gs = gfxp * gr->ppc_tpc_nr[gpc][ppc]; in gv100_grctx_generate_attrib() local
98 mmio_wr32(info, o + 0xc0, gs); in gv100_grctx_generate_attrib()
101 bo += gs; in gv100_grctx_generate_attrib()
/Linux-v4.19/drivers/usb/gadget/
Dconfigfs.c716 struct gadget_strings *gs = to_gadget_strings(item); in gadget_strings_attr_release() local
718 kfree(gs->manufacturer); in gadget_strings_attr_release()
719 kfree(gs->product); in gadget_strings_attr_release()
720 kfree(gs->serialnumber); in gadget_strings_attr_release()
722 list_del(&gs->list); in gadget_strings_attr_release()
723 kfree(gs); in gadget_strings_attr_release()
1276 struct gadget_strings *gs; in configfs_composite_bind() local
1279 list_for_each_entry(gs, &gi->string_list, list) { in configfs_composite_bind()
1281 gi->gstrings[i] = &gs->stringtab_dev; in configfs_composite_bind()
1282 gs->stringtab_dev.strings = gs->strings; in configfs_composite_bind()
[all …]
/Linux-v4.19/scripts/gcc-plugins/
Dgcc-common.h376 static inline bool gimple_store_p(gimple gs) in gimple_store_p() argument
378 tree lhs = gimple_get_lhs(gs); in gimple_store_p()
690 inline bool is_a_helper<const gassign *>::test(const_gimple gs) in test() argument
692 return gs->code == GIMPLE_ASSIGN; in test()
848 inline bool is_a_helper<const ggoto *>::test(const_gimple gs) in test() argument
850 return gs->code == GIMPLE_GOTO; in test()
855 inline bool is_a_helper<const greturn *>::test(const_gimple gs) in test() argument
857 return gs->code == GIMPLE_RETURN; in test()
/Linux-v4.19/arch/x86/realmode/rm/
Dwakeup_asm.S61 movw %cx, %gs
74 movw %ax, %gs
/Linux-v4.19/arch/x86/ia32/
Dia32_aout.c56 u32 fs, gs; in dump_thread32() local
92 savesegment(gs, gs); in dump_thread32()
93 dump->regs.gs = gs; in dump_thread32()

12345