| /Linux-v5.4/drivers/gpio/ |
| D | gpio-mlxbf.c | 52 struct mlxbf_gpio_state *gs; in mlxbf_gpio_probe() local 57 gs = devm_kzalloc(&pdev->dev, sizeof(*gs), GFP_KERNEL); in mlxbf_gpio_probe() 58 if (!gs) in mlxbf_gpio_probe() 61 gs->base = devm_platform_ioremap_resource(pdev, 0); in mlxbf_gpio_probe() 62 if (IS_ERR(gs->base)) in mlxbf_gpio_probe() 63 return PTR_ERR(gs->base); in mlxbf_gpio_probe() 65 gc = &gs->gc; in mlxbf_gpio_probe() 67 gs->base + MLXBF_GPIO_PIN_STATE, in mlxbf_gpio_probe() 70 gs->base + MLXBF_GPIO_PIN_DIR_O, in mlxbf_gpio_probe() 71 gs->base + MLXBF_GPIO_PIN_DIR_I, in mlxbf_gpio_probe() [all …]
|
| /Linux-v5.4/scripts/kconfig/ |
| D | util.c | 34 struct gstr gs; in str_new() local 35 gs.s = xmalloc(sizeof(char) * 64); in str_new() 36 gs.len = 64; in str_new() 37 gs.max_width = 0; in str_new() 38 strcpy(gs.s, "\0"); in str_new() 39 return gs; in str_new() 43 void str_free(struct gstr *gs) in str_free() argument 45 if (gs->s) in str_free() 46 free(gs->s); in str_free() 47 gs->s = NULL; in str_free() [all …]
|
| D | lkc.h | 104 void str_free(struct gstr *gs); 105 void str_append(struct gstr *gs, const char *s); 106 void str_printf(struct gstr *gs, const char *fmt, ...); 107 const char *str_get(struct gstr *gs);
|
| D | expr.c | 1236 struct gstr *gs = (struct gstr*)data; in expr_print_gstr_helper() local 1242 if (gs->max_width) { in expr_print_gstr_helper() 1244 const char *last_cr = strrchr(gs->s, '\n'); in expr_print_gstr_helper() 1251 last_cr = gs->s; in expr_print_gstr_helper() 1253 last_line_length = strlen(gs->s) - (last_cr - gs->s); in expr_print_gstr_helper() 1255 if ((last_line_length + extra_length) > gs->max_width) in expr_print_gstr_helper() 1256 str_append(gs, "\\\n"); in expr_print_gstr_helper() 1259 str_append(gs, str); in expr_print_gstr_helper() 1261 str_printf(gs, " [=%s]", sym_str); in expr_print_gstr_helper() 1264 void expr_gstr_print(struct expr *e, struct gstr *gs) in expr_gstr_print() argument [all …]
|
| /Linux-v5.4/drivers/media/spi/ |
| D | gs1662.c | 46 struct gs { struct 245 static inline struct gs *to_gs(struct v4l2_subdev *sd) in to_gs() 247 return container_of(sd, struct gs, sd); in to_gs() 253 struct gs *gs = to_gs(sd); in gs_s_dv_timings() local 260 gs->current_timings = *timings; in gs_s_dv_timings() 267 struct gs *gs = to_gs(sd); in gs_g_dv_timings() local 269 *timings = gs->current_timings; in gs_g_dv_timings() 276 struct gs *gs = to_gs(sd); in gs_query_dv_timings() local 281 if (gs->enabled) in gs_query_dv_timings() 289 gs_read_register(gs->pdev, REG_LINES_PER_FRAME + i, ®_value); in gs_query_dv_timings() [all …]
|
| /Linux-v5.4/lib/ |
| 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-v5.4/drivers/net/ |
| D | geneve.c | 119 static sa_family_t geneve_get_sk_family(struct geneve_sock *gs) in geneve_get_sk_family() argument 121 return gs->sock->sk->sk_family; in geneve_get_sk_family() 124 static struct geneve_dev *geneve_lookup(struct geneve_sock *gs, in geneve_lookup() argument 133 vni_list_head = &gs->vni_list[hash]; in geneve_lookup() 143 static struct geneve_dev *geneve6_lookup(struct geneve_sock *gs, in geneve6_lookup() argument 152 vni_list_head = &gs->vni_list[hash]; in geneve6_lookup() 167 static struct geneve_dev *geneve_lookup_skb(struct geneve_sock *gs, in geneve_lookup_skb() argument 173 if (geneve_get_sk_family(gs) == AF_INET) { in geneve_lookup_skb() 179 if (gs->collect_md) { in geneve_lookup_skb() 187 return geneve_lookup(gs, addr, vni); in geneve_lookup_skb() [all …]
|
| /Linux-v5.4/arch/x86/include/asm/ |
| D | segment.h | 331 #define __loadsegment_gs(value) __loadsegment_simple(gs, (value)) 363 # define get_user_gs(regs) (u16)({ unsigned long v; savesegment(gs, v); v; }) 364 # define set_user_gs(regs, v) loadsegment(gs, (unsigned long)(v)) 365 # define task_user_gs(tsk) ((tsk)->thread.gs) 366 # define lazy_save_gs(v) savesegment(gs, (v)) 367 # define lazy_load_gs(v) loadsegment(gs, (v)) 369 # define get_user_gs(regs) (u16)((regs)->gs) 370 # define set_user_gs(regs, v) do { (regs)->gs = (v); } while (0) 371 # define task_user_gs(tsk) (task_pt_regs(tsk)->gs)
|
| /Linux-v5.4/include/linux/usb/ |
| D | gadget_configfs.h | 14 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-v5.4/arch/x86/kernel/ |
| D | process_32.c | 65 unsigned short gs; in __show_regs() local 68 gs = get_user_gs(regs); in __show_regs() 70 savesegment(gs, gs); in __show_regs() 79 (u16)regs->ds, (u16)regs->es, (u16)regs->fs, gs, regs->ss, regs->flags); in __show_regs() 251 lazy_save_gs(prev->gs); in __switch_to() 290 if (prev->gs | next->gs) in __switch_to() 291 lazy_load_gs(next->gs); in __switch_to()
|
| D | tls.c | 168 savesegment(gs, sel); in do_set_thread_area() 174 savesegment(gs, sel); in do_set_thread_area() 176 loadsegment(gs, sel); in do_set_thread_area()
|
| D | ptrace.c | 88 REG_OFFSET_NAME(gs), 170 if (offset != offsetof(struct user_regs_struct, gs)) in get_segment_reg() 210 case offsetof(struct user_regs_struct, gs): in set_segment_reg() 245 case offsetof(struct user_regs_struct, gs): in get_segment_reg() 286 case offsetof(struct user_regs_struct,gs): in set_segment_reg() 362 case offsetof(struct user_regs_struct, gs): in putreg() 404 case offsetof(struct user_regs_struct, gs): in getreg() 875 SEG32(gs); in putreg32() 947 SEG32(gs); in getreg32()
|
| /Linux-v5.4/arch/x86/boot/ |
| D | bioscall.S | 27 pushw %gs 39 popw %gs 54 pushw %gs 75 popw %gs
|
| D | regs.c | 26 reg->gs = gs(); in initregs()
|
| /Linux-v5.4/tools/testing/selftests/x86/ |
| D | fsgsbase.c | 300 unsigned short gs = (unsigned short)((desc.entry_number << 3) | 0x3); in load_gs() local 301 asm volatile ("mov %0, %%gs" : : "rm" (gs)); in load_gs() 302 return gs; in load_gs() 468 unsigned long gs, base; in test_ptrace_write_gsbase() local 469 unsigned long gs_offset = USER_REGS_OFFSET(gs); in test_ptrace_write_gsbase() 472 gs = ptrace(PTRACE_PEEKUSER, child, gs_offset, NULL); in test_ptrace_write_gsbase() 474 if (gs != *shared_scratch) { in test_ptrace_write_gsbase() 483 gs = ptrace(PTRACE_PEEKUSER, child, gs_offset, NULL); in test_ptrace_write_gsbase() 492 if (gs == 0 && base == 0xFF) { in test_ptrace_write_gsbase() 496 printf("[FAIL]\tGS=0x%lx, GSBASE=0x%lx (should be 0, 0xFF)\n", gs, base); in test_ptrace_write_gsbase()
|
| /Linux-v5.4/arch/x86/power/ |
| D | cpu.c | 103 savesegment(gs, ctxt->gs); in __save_processor_state() 106 savesegment(gs, ctxt->gs); in __save_processor_state() 233 loadsegment(gs, __KERNEL_STACK_CANARY); in __restore_processor_state() 247 load_gs_index(ctxt->gs); in __restore_processor_state() 257 loadsegment(gs, ctxt->gs); in __restore_processor_state()
|
| /Linux-v5.4/drivers/clk/rockchip/ |
| D | clk.h | 426 df, go, gs, gf) \ argument 442 .gate_shift = gs, \ 447 mf, do, ds, dw, df, go, gs, gf) \ argument 464 .gate_shift = gs, \ 469 go, gs, gf) \ argument 482 .gate_shift = gs, \ 487 df, dt, go, gs, gf) \ argument 501 .gate_shift = gs, \ 506 go, gs, gf) \ argument 519 .gate_shift = gs, \ [all …]
|
| /Linux-v5.4/drivers/s390/scsi/ |
| D | zfcp_fc.c | 221 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() 395 ret = zfcp_fsf_send_ct(&adapter->gs->ds, &fc_req->ct_els, in zfcp_fc_ns_gid_pn_request() 422 ret = zfcp_fc_wka_port_get(&adapter->gs->ds); in zfcp_fc_ns_gid_pn() 428 zfcp_fc_wka_port_put(&adapter->gs->ds); in zfcp_fc_ns_gid_pn() 690 ret = zfcp_fsf_send_ct(&adapter->gs->ds, ct_els, NULL, in zfcp_fc_send_gpn_ft() [all …]
|
| /Linux-v5.4/arch/x86/include/uapi/asm/ |
| D | sigcontext.h | 203 __u16 gs, __gsh; member 258 __u16 gs; member 301 __u16 gs, __gsh; member 370 __u16 gs; member
|
| /Linux-v5.4/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
| D | ctxgp102.c | 72 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()
|
| D | ctxgv100.c | 93 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-v5.4/arch/x86/ia32/ |
| D | ia32_signal.c | 74 u16 gs, fs, es, ds; in ia32_restore_sigcontext() local 82 gs = GET_SEG(gs); in ia32_restore_sigcontext() 109 RELOAD_SEG(gs); in ia32_restore_sigcontext() 186 put_user_ex(get_user_seg(gs), (unsigned int __user *)&sc->gs); in ia32_setup_sigcontext()
|
| /Linux-v5.4/drivers/usb/gadget/ |
| D | configfs.c | 718 struct gadget_strings *gs = to_gadget_strings(item); in gadget_strings_attr_release() local 720 kfree(gs->manufacturer); in gadget_strings_attr_release() 721 kfree(gs->product); in gadget_strings_attr_release() 722 kfree(gs->serialnumber); in gadget_strings_attr_release() 724 list_del(&gs->list); in gadget_strings_attr_release() 725 kfree(gs); in gadget_strings_attr_release() 1279 struct gadget_strings *gs; in configfs_composite_bind() local 1282 list_for_each_entry(gs, &gi->string_list, list) { in configfs_composite_bind() 1284 gi->gstrings[i] = &gs->stringtab_dev; in configfs_composite_bind() 1285 gs->stringtab_dev.strings = gs->strings; in configfs_composite_bind() [all …]
|
| /Linux-v5.4/scripts/gcc-plugins/ |
| D | gcc-common.h | 380 static inline bool gimple_store_p(gimple gs) in gimple_store_p() argument 382 tree lhs = gimple_get_lhs(gs); in gimple_store_p() 694 inline bool is_a_helper<const gassign *>::test(const_gimple gs) in test() argument 696 return gs->code == GIMPLE_ASSIGN; in test() 852 inline bool is_a_helper<const ggoto *>::test(const_gimple gs) in test() argument 854 return gs->code == GIMPLE_GOTO; in test() 859 inline bool is_a_helper<const greturn *>::test(const_gimple gs) in test() argument 861 return gs->code == GIMPLE_RETURN; in test()
|
| /Linux-v5.4/arch/x86/realmode/rm/ |
| D | wakeup_asm.S | 61 movw %cx, %gs 74 movw %ax, %gs
|