Home
last modified time | relevance | path

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

12345

/linux/drivers/gpio/
H A 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 …]
H A Dgpio-mlxbf3.c59 struct mlxbf3_gpio_context *gs = gpiochip_get_data(gc); in mlxbf3_gpio_irq_enable() local
66 raw_spin_lock_irqsave(&gs->gc.bgpio_lock, flags); in mlxbf3_gpio_irq_enable()
67 writel(BIT(offset), gs->gpio_cause_io + MLXBF_GPIO_CAUSE_OR_CLRCAUSE); in mlxbf3_gpio_irq_enable()
69 val = readl(gs->gpio_cause_io + MLXBF_GPIO_CAUSE_OR_EVTEN0); in mlxbf3_gpio_irq_enable()
71 writel(val, gs->gpio_cause_io + MLXBF_GPIO_CAUSE_OR_EVTEN0); in mlxbf3_gpio_irq_enable()
72 raw_spin_unlock_irqrestore(&gs->gc.bgpio_lock, flags); in mlxbf3_gpio_irq_enable()
78 struct mlxbf3_gpio_context *gs = gpiochip_get_data(gc); in mlxbf3_gpio_irq_disable() local
83 raw_spin_lock_irqsave(&gs->gc.bgpio_lock, flags); in mlxbf3_gpio_irq_disable()
84 val = readl(gs->gpio_cause_io + MLXBF_GPIO_CAUSE_OR_EVTEN0); in mlxbf3_gpio_irq_disable()
86 writel(val, gs->gpio_cause_io + MLXBF_GPIO_CAUSE_OR_EVTEN0); in mlxbf3_gpio_irq_disable()
[all …]
/linux/drivers/staging/media/atomisp/pci/
H A Datomisp_gmin_platform.c142 struct gmin_subdev *gs; in atomisp_register_i2c_module() local
174 gs = find_gmin_subdev(subdev); in atomisp_register_i2c_module()
175 if (!gs) in atomisp_register_i2c_module()
178 pdata_subdevs[i].port = gs->csi_port; in atomisp_register_i2c_module()
179 pdata_subdevs[i].lanes = gs->csi_lanes; in atomisp_register_i2c_module()
510 static int gmin_subdev_add(struct gmin_subdev *gs) in gmin_subdev_add() argument
512 struct i2c_client *client = v4l2_get_subdevdata(gs->subdev); in gmin_subdev_add()
520 gs->clock_src = gmin_get_var_int(dev, false, "ClkSrc", in gmin_subdev_add()
536 gs->csi_port = gmin_get_var_int(dev, false, "CsiPort", default_val); in gmin_subdev_add()
537 gs->csi_lanes = gmin_get_var_int(dev, false, "CsiLanes", 1); in gmin_subdev_add()
[all …]
/linux/scripts/kconfig/
H A Dutil.c51 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 Dlkc.h69 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);
/linux/drivers/hte/
H A Dhte-tegra194.c388 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 Dgs1662.c46 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, &reg_value); in gs_query_dv_timings()
[all …]
/linux/tools/perf/
H A Dbuiltin-inject.c1030 static struct guest_vcpu *guest_session__vcpu(struct guest_session *gs, u32 vcpu) in guest_session__vcpu() argument
1032 if (realloc_array_as_needed(gs->vcpu, gs->vcpu_cnt, vcpu, NULL)) in guest_session__vcpu()
1034 return &gs->vcpu[vcpu]; in guest_session__vcpu()
1037 static int guest_session__output_bytes(struct guest_session *gs, void *buf, size_t sz) in guest_session__output_bytes() argument
1039 ssize_t ret = writen(gs->tmp_fd, buf, sz); in guest_session__output_bytes()
1049 struct guest_session *gs = container_of(tool, struct guest_session, tool); in guest_session__repipe() local
1051 return guest_session__output_bytes(gs, event, event->header.size); in guest_session__repipe()
1054 static int guest_session__map_tid(struct guest_session *gs, u32 tid, u32 vcpu) in guest_session__map_tid() argument
1065 hlist_add_head(&guest_tid->node, &gs->tids[hash]); in guest_session__map_tid()
1074 struct guest_session *gs = data; in host_peek_vm_comms_cb() local
[all …]
/linux/lib/
H 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()
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 Dprocess_32.c64 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()
176 savesegment(gs, prev->gs); in __switch_to()
206 if (prev->gs | next->gs) in __switch_to()
207 loadsegment(gs, next->gs); in __switch_to()
H A Ddoublefault_32.c57 regs.gs = TSS(gs); in doublefault_shim()
101 .gs = 0,
H A Dptrace.c107 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 …]
/linux/drivers/net/
H A Dgeneve.c126 static sa_family_t geneve_get_sk_family(struct geneve_sock *gs) in geneve_get_sk_family() argument
128 return gs->sock->sk->sk_family; in geneve_get_sk_family()
131 static struct geneve_dev *geneve_lookup(struct geneve_sock *gs, in geneve_lookup() argument
140 vni_list_head = &gs->vni_list[hash]; in geneve_lookup()
150 static struct geneve_dev *geneve6_lookup(struct geneve_sock *gs, in geneve6_lookup() argument
159 vni_list_head = &gs->vni_list[hash]; in geneve6_lookup()
174 static struct geneve_dev *geneve_lookup_skb(struct geneve_sock *gs, in geneve_lookup_skb() argument
180 if (geneve_get_sk_family(gs) == AF_INET) { in geneve_lookup_skb()
186 if (gs->collect_md) { in geneve_lookup_skb()
194 return geneve_lookup(gs, addr, vni); in geneve_lookup_skb()
[all …]
/linux/include/linux/usb/
H A Dgadget_configfs.h11 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/tools/testing/selftests/x86/
H A Dfsgsbase.c295 unsigned short gs = (unsigned short)((desc.entry_number << 3) | 0x3); in load_gs() local
296 asm volatile ("mov %0, %%gs" : : "rm" (gs)); in load_gs()
297 return gs; in load_gs()
474 unsigned long gs_offset = USER_REGS_OFFSET(gs); in test_ptrace_write_gs_read_base()
533 unsigned long gs, base; in test_ptrace_write_gsbase() local
534 unsigned long gs_offset = USER_REGS_OFFSET(gs); in test_ptrace_write_gsbase()
537 gs = ptrace(PTRACE_PEEKUSER, child, gs_offset, NULL); in test_ptrace_write_gsbase()
539 if (gs != *shared_scratch) { in test_ptrace_write_gsbase()
548 gs = ptrace(PTRACE_PEEKUSER, child, gs_offset, NULL); in test_ptrace_write_gsbase()
557 if (gs != *shared_scratch) { in test_ptrace_write_gsbase()
[all …]
/linux/arch/x86/boot/
H A Dbioscall.S27 pushw %gs
39 popw %gs
54 pushw %gs
75 popw %gs
H A Dregs.c26 reg->gs = gs(); in initregs()
/linux/drivers/s390/scsi/
H A Dzfcp_fc.c232 void zfcp_fc_wka_ports_force_offline(struct zfcp_fc_wka_ports *gs) in zfcp_fc_wka_ports_force_offline() argument
234 if (!gs) in zfcp_fc_wka_ports_force_offline()
236 zfcp_fc_wka_port_force_offline(&gs->ms); in zfcp_fc_wka_ports_force_offline()
237 zfcp_fc_wka_port_force_offline(&gs->ts); in zfcp_fc_wka_ports_force_offline()
238 zfcp_fc_wka_port_force_offline(&gs->ds); in zfcp_fc_wka_ports_force_offline()
239 zfcp_fc_wka_port_force_offline(&gs->as); in zfcp_fc_wka_ports_force_offline()
406 ret = zfcp_fsf_send_ct(&adapter->gs->ds, &fc_req->ct_els, in zfcp_fc_ns_gid_pn_request()
433 ret = zfcp_fc_wka_port_get(&adapter->gs->ds); in zfcp_fc_ns_gid_pn()
439 zfcp_fc_wka_port_put(&adapter->gs->ds); in zfcp_fc_ns_gid_pn()
708 ret = zfcp_fsf_send_ct(&adapter->gs->ds, ct_els, NULL, in zfcp_fc_send_gpn_ft()
[all …]
/linux/drivers/clk/rockchip/
H A Dclk.h604 df, go, gs, gf) \ argument
620 .gate_shift = gs, \
625 mf, do, ds, dw, df, go, gs, gf) \ argument
642 .gate_shift = gs, \
647 go, gs, gf) \ argument
660 .gate_shift = gs, \
665 df, dt, go, gs, gf) \ argument
679 .gate_shift = gs, \
684 go, gs, gf) \ argument
697 .gate_shift = gs, \
[all …]
/linux/drivers/pinctrl/intel/
H A Dpinctrl-intel.h145 #define __INTEL_COMMUNITY(b, s, e, g, n, gs, gn, soc) \ argument
153 .gpp_size = (gs), \
164 #define INTEL_COMMUNITY_SIZE(b, s, e, gs, gn, soc) \ argument
165 __INTEL_COMMUNITY(b, s, e, NULL, 0, gs, gn, soc)
/linux/drivers/pinctrl/starfive/
H A Dpinctrl-starfive-jh7110-sys.c317 const struct jh7110_vin_group_sel *gs = &jh7110_sys_vin_group_sel[pin]; in jh7110_set_vin_group() local
323 if (!gs->offset) in jh7110_set_vin_group()
326 reg = sfp->base + gs->offset; in jh7110_set_vin_group()
327 grp = gs->group << gs->shift; in jh7110_set_vin_group()
328 mask = 0x3U << gs->shift; in jh7110_set_vin_group()
/linux/scripts/gcc-plugins/
H A Dgcc-common.h156 inline bool is_a_helper<const gassign *>::test(const_gimple gs) in test() argument
158 return gs->code == GIMPLE_ASSIGN; in test()
314 inline bool is_a_helper<const ggoto *>::test(const_gimple gs) in test() argument
316 return gs->code == GIMPLE_GOTO; in test()
321 inline bool is_a_helper<const greturn *>::test(const_gimple gs) in test() argument
323 return gs->code == GIMPLE_RETURN; in test()
/linux/arch/x86/include/uapi/asm/
H A Dsigcontext.h203 __u16 gs, __gsh; member
258 __u16 gs; member
301 __u16 gs, __gsh; member
370 __u16 gs; member
/linux/arch/x86/power/
H A Dcpu.c106 savesegment(gs, ctxt->gs); in __save_processor_state()
249 load_gs_index(ctxt->gs); in __restore_processor_state()
259 loadsegment(gs, ctxt->gs); in __restore_processor_state()
/linux/drivers/gpu/drm/nouveau/nvkm/engine/gr/
H A Dctxgp102.c61 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()

12345