| /linux/scripts/kconfig/ |
| H A D | util.c | 76 struct gstr gs; in str_append() 77 gs.s = xmalloc(sizeof(char) * 64); in str_append() 78 gs.len = 64; in str_append() 79 gs.max_width = 0; in str_append() 80 strcpy(gs.s, "\0"); 81 return gs; 85 void str_free(struct gstr *gs) in str_printf() 87 free(gs->s); in str_printf() 88 gs->s = NULL; in str_printf() 89 gs in str_printf() 51 struct gstr gs; str_new() local 60 str_free(struct gstr * gs) str_free() argument 68 str_append(struct gstr * gs,const char * s) str_append() argument 82 str_printf(struct gstr * gs,const char * fmt,...) str_printf() argument 93 str_get(const struct gstr * gs) str_get() argument [all...] |
| H A D | lkc.h | 70 void str_free(struct gstr *gs); 71 void str_append(struct gstr *gs, const char *s); 72 void str_printf(struct gstr *gs, const char *fmt, ...); 73 char *str_get(const struct gstr *gs);
|
| H A D | expr.c | 1119 struct gstr *gs = (struct gstr*)data; in expr_print_gstr_helper() local 1125 if (gs->max_width) { in expr_print_gstr_helper() 1127 const char *last_cr = strrchr(gs->s, '\n'); in expr_print_gstr_helper() 1134 last_cr = gs->s; in expr_print_gstr_helper() 1136 last_line_length = strlen(gs->s) - (last_cr - gs->s); in expr_print_gstr_helper() 1138 if ((last_line_length + extra_length) > gs->max_width) in expr_print_gstr_helper() 1139 str_append(gs, "\\\n"); in expr_print_gstr_helper() 1142 str_append(gs, str); in expr_print_gstr_helper() 1144 str_printf(gs, " [=%s]", sym_str); in expr_print_gstr_helper() 1147 void expr_gstr_print(const struct expr *e, struct gstr *gs) in expr_gstr_print() argument [all …]
|
| H A D | preprocess.h | 12 void env_write_dep(struct gstr *gs);
|
| H A D | symbol.c | 383 struct gstr gs = str_new(); in sym_warn_unmet_dep() local 385 str_printf(&gs, in sym_warn_unmet_dep() 388 str_printf(&gs, in sym_warn_unmet_dep() 391 expr_gstr_print(sym->dir_dep.expr, &gs); in sym_warn_unmet_dep() 392 str_printf(&gs, "\n"); in sym_warn_unmet_dep() 394 expr_gstr_print_revdep(sym->rev_dep.expr, &gs, yes, in sym_warn_unmet_dep() 396 expr_gstr_print_revdep(sym->rev_dep.expr, &gs, mod, in sym_warn_unmet_dep() 399 fputs(str_get(&gs), stderr); in sym_warn_unmet_dep() 400 str_free(&gs); in sym_warn_unmet_dep()
|
| /linux/drivers/media/spi/ |
| H A D | gs1662.c | 46 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 267 gs->current_timings = *timings; in gs_s_dv_timings() 274 struct gs *gs = to_gs(sd); in gs_g_dv_timings() local 279 *timings = gs->current_timings; in gs_g_dv_timings() 286 struct gs *gs = to_gs(sd); in gs_query_dv_timings() local 294 if (gs->enabled) in gs_query_dv_timings() 302 gs_read_register(gs->pdev, REG_LINES_PER_FRAME + i, ®_value); in gs_query_dv_timings() [all …]
|
| /linux/lib/ |
| H A D | test_hexdump.c | 74 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/tools/perf/ |
| H A D | builtin-inject.c | 1258 static struct guest_vcpu *guest_session__vcpu(struct guest_session *gs, u32 vcpu) in guest_session__map_ids() 1260 if (realloc_array_as_needed(gs->vcpu, gs->vcpu_cnt, vcpu, NULL)) in guest_session__map_ids() 1262 return &gs->vcpu[vcpu]; in guest_session__map_ids() 1265 static int guest_session__output_bytes(struct guest_session *gs, void *buf, size_t sz) in guest_session__map_ids() 1267 ssize_t ret = writen(gs->tmp_fd, buf, sz); in guest_session__map_ids() 1277 struct guest_session *gs = container_of(tool, struct guest_session, tool); in guest_session__lookup_id() 1279 return guest_session__output_bytes(gs, event, event->header.size); in guest_session__lookup_id() 1282 static int guest_session__map_tid(struct guest_session *gs, u32 tid, u32 vcpu) in guest_session__lookup_id() 1293 hlist_add_head(&guest_tid->node, &gs in process_attr() 1110 guest_session__vcpu(struct guest_session * gs,u32 vcpu) guest_session__vcpu() argument 1117 guest_session__output_bytes(struct guest_session * gs,void * buf,size_t sz) guest_session__output_bytes() argument 1129 struct guest_session *gs = container_of(tool, struct guest_session, tool); guest_session__repipe() local 1134 guest_session__map_tid(struct guest_session * gs,u32 tid,u32 vcpu) guest_session__map_tid() argument 1154 struct guest_session *gs = data; host_peek_vm_comms_cb() local 1189 host_peek_vm_comms(struct perf_session * session,struct guest_session * gs) host_peek_vm_comms() argument 1201 guest_session__allocate_new_id(struct guest_session * gs,struct evlist * host_evlist) guest_session__allocate_new_id() argument 1210 guest_session__map_id(struct guest_session * gs,u64 id,u64 host_id,u32 vcpu) guest_session__map_id() argument 1246 guest_session__map_ids(struct guest_session * gs,struct evlist * host_evlist) guest_session__map_ids() argument 1274 guest_session__lookup_id(struct guest_session * gs,u64 id) guest_session__lookup_id() argument 1299 guest_session__add_attr(struct guest_session * gs,struct evsel * evsel) guest_session__add_attr() argument 1355 guest_session__add_attrs(struct guest_session * gs) guest_session__add_attrs() argument 1381 guest_session__lookup_tid(struct guest_session * gs,u32 tid) guest_session__lookup_tid() argument 1456 struct guest_session *gs = data; guest_session__add_build_ids_cb() local 1466 guest_session__add_build_ids(struct guest_session * gs) guest_session__add_build_ids() argument 1483 struct guest_session *gs = container_of(tool, struct guest_session, tool); guest_session__ksymbol_event() local 1492 guest_session__start(struct guest_session * gs,const char * name,bool force) guest_session__start() argument 1581 guest_session__exit(struct guest_session * gs) guest_session__exit() argument 1609 guest_session__get_tc(struct guest_session * gs) guest_session__get_tc() argument 1617 guest_session__convert_time(struct guest_session * gs,u64 guest_time,u64 * host_time) guest_session__convert_time() argument 1644 guest_session__fetch(struct guest_session * gs) guest_session__fetch() argument 1729 guest_session__inject_events(struct guest_session * gs,u64 timestamp) guest_session__inject_events() argument 1837 guest_session__flush_events(struct guest_session * gs) guest_session__flush_events() argument 1861 struct guest_session *gs = &inject->guest_session; host__finished_init() local 1941 struct guest_session *gs = &inject->guest_session; host__context_switch() local 2041 struct guest_session *gs = &inject->guest_session; parse_guest_data() local 2224 guest_session__copy_kcore_dir(struct guest_session * gs) guest_session__copy_kcore_dir() argument 2248 struct guest_session *gs = &inject->guest_session; __cmd_inject() local [all...] |
| /linux/drivers/s390/scsi/ |
| H A D | zfcp_fc.c | 231 void zfcp_fc_wka_ports_force_offline(struct zfcp_fc_wka_ports *gs) in zfcp_fc_wka_ports_force_offline() argument 233 if (!gs) in zfcp_fc_wka_ports_force_offline() 235 zfcp_fc_wka_port_force_offline(&gs->ms); in zfcp_fc_wka_ports_force_offline() 236 zfcp_fc_wka_port_force_offline(&gs->ts); in zfcp_fc_wka_ports_force_offline() 237 zfcp_fc_wka_port_force_offline(&gs->ds); in zfcp_fc_wka_ports_force_offline() 238 zfcp_fc_wka_port_force_offline(&gs->as); in zfcp_fc_wka_ports_force_offline() 405 ret = zfcp_fsf_send_ct(&adapter->gs->ds, &fc_req->ct_els, in zfcp_fc_ns_gid_pn_request() 432 ret = zfcp_fc_wka_port_get(&adapter->gs->ds); in zfcp_fc_ns_gid_pn() 438 zfcp_fc_wka_port_put(&adapter->gs->ds); in zfcp_fc_ns_gid_pn() 712 ret = zfcp_fsf_send_ct(&adapter->gs->ds, ct_els, NULL, in zfcp_fc_send_gpn_ft() [all …]
|
| /linux/arch/x86/boot/ |
| H A D | regs.c | 26 reg->gs = gs(); in initregs()
|
| /linux/arch/x86/kernel/ |
| H A D | doublefault_32.c | 57 regs.gs = TSS(gs); in doublefault_shim() 101 .gs = 0,
|
| H A D | ptrace.c | 107 REG_OFFSET_NAME(gs), 189 if (offset != offsetof(struct user_regs_struct, gs)) in get_segment_reg() 193 savesegment(gs, retval); in get_segment_reg() 195 retval = task->thread.gs; in get_segment_reg() 232 case offsetof(struct user_regs_struct, gs): in set_segment_reg() 233 task->thread.gs = value; in set_segment_reg() 264 case offsetof(struct user_regs_struct, gs): in get_segment_reg() 312 case offsetof(struct user_regs_struct,gs): in set_segment_reg() 382 case offsetof(struct user_regs_struct, gs): in putreg() 414 case offsetof(struct user_regs_struct, gs): in getreg() [all …]
|
| H A D | vm86_32.c | 134 unsafe_put_user(regs->gs, &user->regs.gs, Efault_end); in save_v86_state() 154 loadsegment(gs, vm86->regs32.gs); in save_v86_state() 271 vm86regs.gs = v.regs.gs; in do_sys_vm86() 327 savesegment(gs, vm86->regs32.gs); in do_sys_vm86()
|
| /linux/drivers/pinctrl/intel/ |
| H A D | pinctrl-intel.h | 155 #define __INTEL_COMMUNITY(b, s, e, g, n, gs, gn, soc) \ argument 163 .gpp_size = (gs), \ 174 #define INTEL_COMMUNITY_SIZE(b, s, e, gs, gn, soc) \ argument 175 __INTEL_COMMUNITY(b, s, e, NULL, 0, gs, gn, soc)
|
| /linux/arch/x86/include/uapi/asm/ |
| H A D | sigcontext.h | 203 __u16 gs, __gsh; member 258 __u16 gs; member 301 __u16 gs, __gsh; member 370 __u16 gs; member
|
| /linux/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
| H A D | ctxgp102.c | 61 const u32 gs = gfxp * gr->ppc_tpc_max; in gp102_grctx_generate_attrib() local 69 gf100_grctx_patch_wr32(chan, o + 0xc0, gs); in gp102_grctx_generate_attrib() 73 bo += gs; in gp102_grctx_generate_attrib()
|
| H A D | ctxgv100.c | 83 const u32 gs = gfxp * gr->ppc_tpc_max; in gv100_grctx_generate_attrib() local 90 gf100_grctx_patch_wr32(chan, o + 0xc0, gs); in gv100_grctx_generate_attrib() 93 bo += gs; in gv100_grctx_generate_attrib()
|
| /linux/arch/x86/power/ |
| H A D | cpu.c | 108 savesegment(gs, ctxt->gs); in __save_processor_state() 264 load_gs_index(ctxt->gs); in __restore_processor_state() 274 loadsegment(gs, ctxt->gs); in __restore_processor_state()
|
| /linux/Documentation/translations/zh_CN/core-api/ |
| H A D | this_cpu_ops.rst | 66 在x86上,fs:或gs:段寄存器包含每CPU区域的基址。这样就可以简单地使用段覆盖,将每CPU 79 mov ax, gs:[x] 91 inc gs:[x]
|
| /linux/arch/x86/realmode/rm/ |
| H A D | wakeup_asm.S | 61 movw %cx, %gs 74 movw %ax, %gs
|
| /linux/arch/x86/kvm/ |
| H A D | smm.h | 40 struct kvm_smm_seg_state_32 gs; member 85 struct kvm_smm_seg_state_64 gs; member
|
| /linux/tools/testing/selftests/x86/ |
| H A D | clang_helpers_64.S | 9 mov %gs:(0), %rax
|
| /linux/scripts/gcc-plugins/ |
| H A D | gcc-common.h | 325 inline bool is_a_helper<const ggoto *>::test(const_gimple gs) in test() argument 327 return gs->code == GIMPLE_GOTO; in test() 332 inline bool is_a_helper<const greturn *>::test(const_gimple gs) in test() argument 334 return gs->code == GIMPLE_RETURN; in test()
|
| /linux/arch/x86/include/asm/ |
| H A D | gsseg.h | 60 loadsegment(gs, selector); in load_gs_index()
|
| /linux/arch/x86/purgatory/ |
| H A D | setup-x86_64.S | 27 movl %eax, %gs
|