Home
last modified time | relevance | path

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

12345

/Linux-v5.15/drivers/gpio/
Dgpio-mlxbf.c52 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 …]
Dgpio-mlxbf2.c118 static int mlxbf2_gpio_lock_acquire(struct mlxbf2_gpio_context *gs) in mlxbf2_gpio_lock_acquire() argument
123 spin_lock(&gs->gc.bgpio_lock); in mlxbf2_gpio_lock_acquire()
131 spin_unlock(&gs->gc.bgpio_lock); in mlxbf2_gpio_lock_acquire()
144 static void mlxbf2_gpio_lock_release(struct mlxbf2_gpio_context *gs) in mlxbf2_gpio_lock_release() argument
145 __releases(&gs->gc.bgpio_lock) in mlxbf2_gpio_lock_release()
149 spin_unlock(&gs->gc.bgpio_lock); in mlxbf2_gpio_lock_release()
174 struct mlxbf2_gpio_context *gs = gpiochip_get_data(chip); in mlxbf2_gpio_direction_input() local
181 ret = mlxbf2_gpio_lock_acquire(gs); in mlxbf2_gpio_direction_input()
185 writel(BIT(offset), gs->gpio_io + YU_GPIO_MODE0_CLEAR); in mlxbf2_gpio_direction_input()
186 writel(BIT(offset), gs->gpio_io + YU_GPIO_MODE1_CLEAR); in mlxbf2_gpio_direction_input()
[all …]
/Linux-v5.15/drivers/staging/media/atomisp/pci/
Datomisp_gmin_platform.c163 struct gmin_subdev *gs; in atomisp_register_i2c_module() local
189 gs = find_gmin_subdev(subdev); in atomisp_register_i2c_module()
190 if (!gs) in atomisp_register_i2c_module()
194 pdata.subdevs[i].port = gs->csi_port; in atomisp_register_i2c_module()
515 static int gmin_subdev_add(struct gmin_subdev *gs) in gmin_subdev_add() argument
517 struct i2c_client *client = v4l2_get_subdevdata(gs->subdev); in gmin_subdev_add()
525 gs->clock_src = gmin_get_var_int(dev, false, "ClkSrc", in gmin_subdev_add()
528 gs->csi_port = gmin_get_var_int(dev, false, "CsiPort", 0); in gmin_subdev_add()
529 gs->csi_lanes = gmin_get_var_int(dev, false, "CsiLanes", 1); in gmin_subdev_add()
531 gs->gpio0 = gpiod_get_index(dev, NULL, 0, GPIOD_OUT_LOW); in gmin_subdev_add()
[all …]
/Linux-v5.15/scripts/kconfig/
Dutil.c34 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 …]
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);
/Linux-v5.15/drivers/media/spi/
Dgs1662.c46 struct gs { struct
257 static inline struct gs *to_gs(struct v4l2_subdev *sd) in to_gs()
259 return container_of(sd, struct gs, sd); in to_gs()
265 struct gs *gs = to_gs(sd); in gs_s_dv_timings() local
272 gs->current_timings = *timings; in gs_s_dv_timings()
279 struct gs *gs = to_gs(sd); in gs_g_dv_timings() local
281 *timings = gs->current_timings; in gs_g_dv_timings()
288 struct gs *gs = to_gs(sd); in gs_query_dv_timings() local
293 if (gs->enabled) in gs_query_dv_timings()
301 gs_read_register(gs->pdev, REG_LINES_PER_FRAME + i, &reg_value); in gs_query_dv_timings()
[all …]
/Linux-v5.15/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-v5.15/arch/x86/kernel/
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()
181 lazy_save_gs(prev->gs); in __switch_to()
211 if (prev->gs | next->gs) in __switch_to()
212 lazy_load_gs(next->gs); in __switch_to()
Ddoublefault_32.c56 regs.gs = TSS(gs); in doublefault_shim()
103 .gs = 0,
/Linux-v5.15/drivers/net/
Dgeneve.c124 static sa_family_t geneve_get_sk_family(struct geneve_sock *gs) in geneve_get_sk_family() argument
126 return gs->sock->sk->sk_family; in geneve_get_sk_family()
129 static struct geneve_dev *geneve_lookup(struct geneve_sock *gs, in geneve_lookup() argument
138 vni_list_head = &gs->vni_list[hash]; in geneve_lookup()
148 static struct geneve_dev *geneve6_lookup(struct geneve_sock *gs, in geneve6_lookup() argument
157 vni_list_head = &gs->vni_list[hash]; in geneve6_lookup()
172 static struct geneve_dev *geneve_lookup_skb(struct geneve_sock *gs, in geneve_lookup_skb() argument
178 if (geneve_get_sk_family(gs) == AF_INET) { in geneve_lookup_skb()
184 if (gs->collect_md) { in geneve_lookup_skb()
192 return geneve_lookup(gs, addr, vni); in geneve_lookup_skb()
[all …]
/Linux-v5.15/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-v5.15/arch/x86/include/asm/
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-v5.15/tools/testing/selftests/x86/
Dfsgsbase.c301 unsigned short gs = (unsigned short)((desc.entry_number << 3) | 0x3); in load_gs() local
302 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()
[all …]
/Linux-v5.15/arch/x86/boot/
Dbioscall.S27 pushw %gs
39 popw %gs
54 pushw %gs
75 popw %gs
Dregs.c26 reg->gs = gs(); in initregs()
/Linux-v5.15/drivers/clk/rockchip/
Dclk.h463 df, go, gs, gf) \ argument
479 .gate_shift = gs, \
484 mf, do, ds, dw, df, go, gs, gf) \ argument
501 .gate_shift = gs, \
506 go, gs, gf) \ argument
519 .gate_shift = gs, \
524 df, dt, go, gs, gf) \ argument
538 .gate_shift = gs, \
543 go, gs, gf) \ argument
556 .gate_shift = gs, \
[all …]
/Linux-v5.15/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()
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.15/arch/x86/power/
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-v5.15/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-v5.15/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.c92 const u32 gs = gfxp * gr->ppc_tpc_max; in gv100_grctx_generate_attrib() local
97 mmio_wr32(info, o + 0xc0, gs); in gv100_grctx_generate_attrib()
100 bo += gs; in gv100_grctx_generate_attrib()
/Linux-v5.15/scripts/gcc-plugins/
Dgcc-common.h289 inline bool is_a_helper<const gassign *>::test(const_gimple gs) in test() argument
291 return gs->code == GIMPLE_ASSIGN; in test()
448 inline bool is_a_helper<const ggoto *>::test(const_gimple gs) in test() argument
450 return gs->code == GIMPLE_GOTO; in test()
455 inline bool is_a_helper<const greturn *>::test(const_gimple gs) in test() argument
457 return gs->code == GIMPLE_RETURN; in test()
/Linux-v5.15/drivers/usb/gadget/
Dconfigfs.c765 struct gadget_strings *gs = to_gadget_strings(item); in gadget_strings_attr_release() local
767 kfree(gs->manufacturer); in gadget_strings_attr_release()
768 kfree(gs->product); in gadget_strings_attr_release()
769 kfree(gs->serialnumber); in gadget_strings_attr_release()
771 list_del(&gs->list); in gadget_strings_attr_release()
772 kfree(gs); in gadget_strings_attr_release()
1326 struct gadget_strings *gs; in configfs_composite_bind() local
1329 list_for_each_entry(gs, &gi->string_list, list) { in configfs_composite_bind()
1331 gi->gstrings[i] = &gs->stringtab_dev; in configfs_composite_bind()
1332 gs->stringtab_dev.strings = gs->strings; in configfs_composite_bind()
[all …]
/Linux-v5.15/tools/testing/selftests/kvm/include/x86_64/
Dprocessor.h200 uint16_t gs; in get_gs() local
203 : /* output */ [gs]"=rm"(gs)); in get_gs()
204 return gs; in get_gs()
/Linux-v5.15/arch/x86/ia32/
Dia32_signal.c43 savesegment(gs, cur); in reload_segments()
44 if ((sc->gs | 0x03) != cur) in reload_segments()
45 load_gs_index(sc->gs | 0x03); in reload_segments()
162 unsafe_put_user(get_user_seg(gs), (unsigned int __user *)&sc->gs, Efault); in __unsafe_setup_sigcontext32()

12345