Home
last modified time | relevance | path

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

12345

/linux/drivers/gpio/
A Dgpio-mlxbf.c57 gs = devm_kzalloc(&pdev->dev, sizeof(*gs), GFP_KERNEL); in mlxbf_gpio_probe()
58 if (!gs) in mlxbf_gpio_probe()
62 if (IS_ERR(gs->base)) in mlxbf_gpio_probe()
65 gc = &gs->gc; in mlxbf_gpio_probe()
79 ret = devm_gpiochip_add_data(dev, &gs->gc, gs); in mlxbf_gpio_probe()
95 gs->csave_regs.scratchpad = readq(gs->base + MLXBF_GPIO_SCRATCHPAD); in mlxbf_gpio_suspend()
104 gs->csave_regs.pin_dir_i = readq(gs->base + MLXBF_GPIO_PIN_DIR_I); in mlxbf_gpio_suspend()
105 gs->csave_regs.pin_dir_o = readq(gs->base + MLXBF_GPIO_PIN_DIR_O); in mlxbf_gpio_suspend()
114 writeq(gs->csave_regs.scratchpad, gs->base + MLXBF_GPIO_SCRATCHPAD); in mlxbf_gpio_resume()
123 writeq(gs->csave_regs.pin_dir_i, gs->base + MLXBF_GPIO_PIN_DIR_I); in mlxbf_gpio_resume()
[all …]
A Dgpio-mlxbf2.c341 gs = devm_kzalloc(dev, sizeof(*gs), GFP_KERNEL); in mlxbf2_gpio_probe()
342 if (!gs) in mlxbf2_gpio_probe()
347 if (IS_ERR(gs->gpio_io)) in mlxbf2_gpio_probe()
359 gc = &gs->gc; in mlxbf2_gpio_probe()
381 gs->irq_chip.name = name; in mlxbf2_gpio_probe()
386 girq = &gs->gc.irq; in mlxbf2_gpio_probe()
409 ret = devm_gpiochip_add_data(dev, &gs->gc, gs); in mlxbf2_gpio_probe()
422 gs->csave_regs->gpio_mode0 = readl(gs->gpio_io + in mlxbf2_gpio_suspend()
424 gs->csave_regs->gpio_mode1 = readl(gs->gpio_io + in mlxbf2_gpio_suspend()
434 writel(gs->csave_regs->gpio_mode0, gs->gpio_io + in mlxbf2_gpio_resume()
[all …]
/linux/drivers/staging/media/atomisp/pci/
A Datomisp_gmin_platform.c190 if (!gs) in atomisp_register_i2c_module()
736 ret = axp_regulator_set(dev, gs, gs->eldo2_sel_reg, gs->eldo2_1p8v, in axp_v1p8_on()
747 ret = axp_regulator_set(dev, gs, gs->eldo1_sel_reg, gs->eldo1_1p8v, in axp_v1p8_on()
752 ret = axp_regulator_set(dev, gs, gs->eldo2_sel_reg, gs->eldo2_1p8v, in axp_v1p8_on()
761 ret = axp_regulator_set(dev, gs, gs->eldo1_sel_reg, gs->eldo1_1p8v, in axp_v1p8_off()
766 ret = axp_regulator_set(dev, gs, gs->eldo2_sel_reg, gs->eldo2_1p8v, in axp_v1p8_off()
775 if (gs) { in gmin_gpio0_ctrl()
786 if (gs) { in gmin_gpio1_ctrl()
797 if (!gs || gs->v1p2_on == on) in gmin_v1p2_ctrl()
820 if (!gs || gs->v1p8_on == on) in gmin_v1p8_ctrl()
[all …]
/linux/scripts/kconfig/
A Dutil.c34 struct gstr gs; in str_new() local
36 gs.len = 64; in str_new()
37 gs.max_width = 0; in str_new()
39 return gs; in str_new()
45 if (gs->s) in str_free()
46 free(gs->s); in str_free()
47 gs->s = NULL; in str_free()
48 gs->len = 0; in str_free()
58 gs->s = xrealloc(gs->s, l); in str_append()
59 gs->len = l; in str_append()
[all …]
A Dlkc.h76 void str_free(struct gstr *gs);
77 void str_append(struct gstr *gs, const char *s);
78 void str_printf(struct gstr *gs, const char *fmt, ...);
79 const char *str_get(struct gstr *gs);
A Dexpr.c1242 struct gstr *gs = (struct gstr*)data; in expr_print_gstr_helper() local
1248 if (gs->max_width) { in expr_print_gstr_helper()
1250 const char *last_cr = strrchr(gs->s, '\n'); in expr_print_gstr_helper()
1257 last_cr = gs->s; in expr_print_gstr_helper()
1259 last_line_length = strlen(gs->s) - (last_cr - gs->s); in expr_print_gstr_helper()
1261 if ((last_line_length + extra_length) > gs->max_width) in expr_print_gstr_helper()
1262 str_append(gs, "\\\n"); in expr_print_gstr_helper()
1265 str_append(gs, str); in expr_print_gstr_helper()
1267 str_printf(gs, " [=%s]", sym_str); in expr_print_gstr_helper()
1270 void expr_gstr_print(struct expr *e, struct gstr *gs) in expr_gstr_print() argument
[all …]
/linux/drivers/media/spi/
A Dgs1662.c46 struct gs { struct
265 struct gs *gs = to_gs(sd); in gs_s_dv_timings() local
279 struct gs *gs = to_gs(sd); in gs_g_dv_timings() local
288 struct gs *gs = to_gs(sd); in gs_query_dv_timings() local
340 struct gs *gs = to_gs(sd); in gs_s_stream() local
360 struct gs *gs = to_gs(sd); in gs_g_input_status() local
435 struct gs *gs; in gs_probe() local
438 gs = devm_kzalloc(&spi->dev, sizeof(struct gs), GFP_KERNEL); in gs_probe()
439 if (!gs) in gs_probe()
442 gs->pdev = spi; in gs_probe()
[all …]
/linux/lib/
A 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()
166 int rs = rowsize, gs = groupsize; in test_hexdump_overflow() local
181 he = (gs * 2 /* hex */ + 1 /* space */) * len / gs - 1 /* no trailing space */; in test_hexdump_overflow()
214 int gs = 1 << i; in test_hexdump_overflow_set() local
[all …]
/linux/drivers/net/
A Dgeneve.c362 if (!gs) in geneve_udp_encap_recv()
405 if (!gs) in geneve_udp_encap_err_lookup()
572 gs = kzalloc(sizeof(*gs), GFP_KERNEL); in geneve_socket_create()
573 if (!gs) in geneve_socket_create()
578 kfree(gs); in geneve_socket_create()
583 gs->refcnt = 1; in geneve_socket_create()
601 return gs; in geneve_socket_create()
606 if (!gs || --gs->refcnt) in __geneve_sock_release()
642 return gs; in geneve_find_sock()
658 if (gs) { in geneve_sock_add()
[all …]
/linux/arch/x86/kernel/
A Dprocess_32.c64 unsigned short gs; in __show_regs() local
67 gs = get_user_gs(regs); in __show_regs()
69 savesegment(gs, gs); in __show_regs()
78 log_lvl, (u16)regs->ds, (u16)regs->es, (u16)regs->fs, gs, regs->ss, regs->flags); in __show_regs()
180 lazy_save_gs(prev->gs); in __switch_to()
210 if (prev->gs | next->gs) in __switch_to()
211 lazy_load_gs(next->gs); in __switch_to()
A Ddoublefault_32.c56 regs.gs = TSS(gs); in doublefault_shim()
100 .gs = 0,
/linux/include/linux/usb/
A 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/arch/x86/include/asm/
A Dsegment.h332 #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))
368 # define load_gs_index(v) loadsegment(gs, (v))
/linux/tools/testing/selftests/x86/
A Dfsgsbase.c302 asm volatile ("mov %0, %%gs" : : "rm" (gs)); in load_gs()
303 return gs; in load_gs()
480 unsigned long gs_offset = USER_REGS_OFFSET(gs); in test_ptrace_write_gs_read_base()
539 unsigned long gs, base; in test_ptrace_write_gsbase() local
540 unsigned long gs_offset = USER_REGS_OFFSET(gs); in test_ptrace_write_gsbase()
543 gs = ptrace(PTRACE_PEEKUSER, child, gs_offset, NULL); in test_ptrace_write_gsbase()
545 if (gs != *shared_scratch) { in test_ptrace_write_gsbase()
554 gs = ptrace(PTRACE_PEEKUSER, child, gs_offset, NULL); in test_ptrace_write_gsbase()
563 if (gs != *shared_scratch) { in test_ptrace_write_gsbase()
565 printf("[FAIL]\tGS changed to %lx\n", gs); in test_ptrace_write_gsbase()
[all …]
/linux/drivers/clk/rockchip/
A Dclk.h463 df, go, gs, gf) \ argument
479 .gate_shift = gs, \
501 .gate_shift = gs, \
506 go, gs, gf) \ argument
519 .gate_shift = gs, \
538 .gate_shift = gs, \
543 go, gs, gf) \ argument
556 .gate_shift = gs, \
612 .gate_shift = gs, \
629 .gate_shift = gs, \
[all …]
/linux/arch/x86/boot/
A Dbioscall.S27 pushw %gs
39 popw %gs
54 pushw %gs
75 popw %gs
A Dregs.c26 reg->gs = gs(); in initregs()
/linux/drivers/s390/scsi/
A Dzfcp_fc.c223 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()
975 return &adapter->gs->as; in zfcp_fc_job_wka_port()
977 return &adapter->gs->ms; in zfcp_fc_job_wka_port()
979 return &adapter->gs->ts; in zfcp_fc_job_wka_port()
982 return &adapter->gs->ds; in zfcp_fc_job_wka_port()
1090 adapter->gs = wka_ports; in zfcp_fc_gs_setup()
1101 kfree(adapter->gs); in zfcp_fc_gs_destroy()
[all …]
/linux/scripts/gcc-plugins/
A Dgcc-common.h161 inline bool is_a_helper<const gassign *>::test(const_gimple gs) in test() argument
163 return gs->code == GIMPLE_ASSIGN; in test()
319 inline bool is_a_helper<const ggoto *>::test(const_gimple gs) in test() argument
321 return gs->code == GIMPLE_GOTO; in test()
326 inline bool is_a_helper<const greturn *>::test(const_gimple gs) in test() argument
328 return gs->code == GIMPLE_RETURN; in test()
/linux/arch/x86/power/
A Dcpu.c103 savesegment(gs, ctxt->gs); in __save_processor_state()
246 load_gs_index(ctxt->gs); in __restore_processor_state()
256 loadsegment(gs, ctxt->gs); in __restore_processor_state()
/linux/arch/x86/include/uapi/asm/
A Dsigcontext.h203 __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/
A 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()
/linux/drivers/usb/gadget/
A Dconfigfs.c775 kfree(gs->manufacturer); in gadget_strings_attr_release()
776 kfree(gs->product); in gadget_strings_attr_release()
777 kfree(gs->serialnumber); in gadget_strings_attr_release()
779 list_del(&gs->list); in gadget_strings_attr_release()
780 kfree(gs); in gadget_strings_attr_release()
1334 struct gadget_strings *gs; in configfs_composite_bind() local
1339 gi->gstrings[i] = &gs->stringtab_dev; in configfs_composite_bind()
1340 gs->stringtab_dev.strings = gs->strings; in configfs_composite_bind()
1342 gs->manufacturer; in configfs_composite_bind()
1343 gs->strings[USB_GADGET_PRODUCT_IDX].s = gs->product; in configfs_composite_bind()
[all …]
/linux/arch/x86/ia32/
A Dia32_signal.c42 savesegment(gs, cur); in reload_segments()
43 if ((sc->gs | 0x03) != cur) in reload_segments()
44 load_gs_index(sc->gs | 0x03); in reload_segments()
161 unsafe_put_user(get_user_seg(gs), (unsigned int __user *)&sc->gs, Efault); in __unsafe_setup_sigcontext32()
/linux/tools/testing/selftests/kvm/include/x86_64/
A Dprocessor.h200 uint16_t gs; in get_gs() local
203 : /* output */ [gs]"=rm"(gs)); in get_gs()
204 return gs; in get_gs()

Completed in 65 milliseconds

12345