| /linux/drivers/staging/media/atomisp/pci/ |
| H A D | atomisp_gmin_platform.c | 139 struct gmin_subdev *gs; in atomisp_register_i2c_module() local 171 gs = find_gmin_subdev(subdev); in atomisp_register_i2c_module() 172 if (!gs) in atomisp_register_i2c_module() 175 pdata_subdevs[i].port = gs->csi_port; in atomisp_register_i2c_module() 176 pdata_subdevs[i].lanes = gs->csi_lanes; in atomisp_register_i2c_module() 467 static int gmin_subdev_add(struct gmin_subdev *gs) in gmin_subdev_add() argument 469 struct i2c_client *client = v4l2_get_subdevdata(gs->subdev); in gmin_subdev_add() 477 gs->clock_src = gmin_get_var_int(dev, false, "ClkSrc", in gmin_subdev_add() 493 gs->csi_port = gmin_get_var_int(dev, false, "CsiPort", default_val); in gmin_subdev_add() 494 gs->csi_lanes = gmin_get_var_int(dev, false, "CsiLanes", 1); in gmin_subdev_add() [all …]
|
| /linux/scripts/kconfig/ |
| H A D | util.c | 51 struct gstr gs; in str_new() local 52 gs.s = xmalloc(sizeof(char) * 64); in str_new() 53 gs.len = 64; in str_new() 54 gs.max_width = 0; in str_new() 55 strcpy(gs.s, "\0"); in str_new() 56 return gs; in str_new() 60 void str_free(struct gstr *gs) in str_free() argument 62 free(gs->s); in str_free() 63 gs->s = NULL; in str_free() 64 gs->len = 0; in str_free() [all …]
|
| H A D | lkc.h | 69 void str_free(struct gstr *gs); 70 void str_append(struct gstr *gs, const char *s); 71 void str_printf(struct gstr *gs, const char *fmt, ...); 72 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 | 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/hte/ |
| H A D | hte-tegra194.c | 388 struct tegra_hte_soc *gs; in tegra_hte_line_xlate() local 405 gs = gc->data; in tegra_hte_line_xlate() 406 if (!gs || !gs->prov_data) in tegra_hte_line_xlate() 423 if (gs->prov_data->type == HTE_TEGRA_TYPE_GPIO && !args) { in tegra_hte_line_xlate() 424 line_id = desc->attr.line_id - gpio_device_get_base(gs->gdev); in tegra_hte_line_xlate() 425 map = gs->prov_data->map; in tegra_hte_line_xlate() 426 map_sz = gs->prov_data->map_sz; in tegra_hte_line_xlate() 427 } else if (gs->prov_data->type == HTE_TEGRA_TYPE_GPIO && args) { in tegra_hte_line_xlate() 429 map = gs->prov_data->sec_map; in tegra_hte_line_xlate() 430 map_sz = gs->prov_data->sec_map_sz; in tegra_hte_line_xlate() [all …]
|
| /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/tools/perf/ |
| H A D | builtin-inject.c | 1110 static struct guest_vcpu *guest_session__vcpu(struct guest_session *gs, u32 vcpu) in guest_session__vcpu() argument 1112 if (realloc_array_as_needed(gs->vcpu, gs->vcpu_cnt, vcpu, NULL)) in guest_session__vcpu() 1114 return &gs->vcpu[vcpu]; in guest_session__vcpu() 1117 static int guest_session__output_bytes(struct guest_session *gs, void *buf, size_t sz) in guest_session__output_bytes() argument 1119 ssize_t ret = writen(gs->tmp_fd, buf, sz); in guest_session__output_bytes() 1129 struct guest_session *gs = container_of(tool, struct guest_session, tool); in guest_session__repipe() local 1131 return guest_session__output_bytes(gs, event, event->header.size); in guest_session__repipe() 1134 static int guest_session__map_tid(struct guest_session *gs, u32 tid, u32 vcpu) in guest_session__map_tid() argument 1145 hlist_add_head(&guest_tid->node, &gs->tids[hash]); in guest_session__map_tid() 1154 struct guest_session *gs = data; in host_peek_vm_comms_cb() local [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/arch/x86/kernel/ |
| H A D | process_32.c | 64 unsigned short gs; in __show_regs() local 66 savesegment(gs, gs); in __show_regs() 75 log_lvl, (u16)regs->ds, (u16)regs->es, (u16)regs->fs, gs, regs->ss, regs->flags); in __show_regs() 114 loadsegment(gs, 0); in start_thread() 175 savesegment(gs, prev->gs); in __switch_to() 205 if (prev->gs | next->gs) in __switch_to() 206 loadsegment(gs, next->gs); in __switch_to()
|
| 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/net/ |
| H A D | geneve.c | 169 static sa_family_t geneve_get_sk_family(struct geneve_sock *gs) in geneve_get_sk_family() argument 171 return gs->sock->sk->sk_family; in geneve_get_sk_family() 174 static struct geneve_dev *geneve_lookup(struct geneve_sock *gs, in geneve_lookup() argument 183 vni_list_head = &gs->vni_list[hash]; in geneve_lookup() 193 static struct geneve_dev *geneve6_lookup(struct geneve_sock *gs, in geneve6_lookup() argument 202 vni_list_head = &gs->vni_list[hash]; in geneve6_lookup() 217 static struct geneve_dev *geneve_lookup_skb(struct geneve_sock *gs, in geneve_lookup_skb() argument 223 if (geneve_get_sk_family(gs) == AF_INET) { in geneve_lookup_skb() 229 if (gs->collect_md) { in geneve_lookup_skb() 237 return geneve_lookup(gs, addr, vni); in geneve_lookup_skb() [all …]
|
| /linux/include/linux/usb/ |
| H A D | gadget_configfs.h | 11 struct __struct *gs = to_##__struct(item); \ 14 ret = usb_string_copy(page, &gs->__name); \ 23 struct __struct *gs = to_##__struct(item); \ 24 return sprintf(page, "%s\n", gs->__name ?: ""); \ 49 struct struct_in *gs; \ 66 list_for_each_entry(gs, &gi->string_list, list) { \ 67 if (gs->stringtab_dev.language == new->stringtab_dev.language) \
|
| /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/drivers/clk/rockchip/ |
| H A D | clk.h | 797 df, go, gs, gf) \ argument 813 .gate_shift = gs, \ 818 mf, do, ds, dw, df, go, gs, gf) \ argument 835 .gate_shift = gs, \ 840 go, gs, gf) \ argument 853 .gate_shift = gs, \ 858 df, dt, go, gs, gf) \ argument 872 .gate_shift = gs, \ 877 go, gs, gf) \ argument 890 .gate_shift = gs, \ [all …]
|
| /linux/arch/x86/boot/ |
| H A D | regs.c | 26 reg->gs = gs(); in initregs()
|
| /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/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/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/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/scripts/gcc-plugins/ |
| H A D | gcc-common.h | 323 inline bool is_a_helper<const ggoto *>::test(const_gimple gs) in test() argument 325 return gs->code == GIMPLE_GOTO; in test() 330 inline bool is_a_helper<const greturn *>::test(const_gimple gs) in test() argument 332 return gs->code == GIMPLE_RETURN; in test()
|
| /linux/arch/x86/realmode/rm/ |
| H A D | wakeup_asm.S | 61 movw %cx, %gs 74 movw %ax, %gs
|