| /linux/drivers/gpio/ |
| H A D | gpio-mlxbf3.c | 60 struct mlxbf3_gpio_context *gs = gpiochip_get_data(gc); in mlxbf3_gpio_irq_enable() local 66 guard(gpio_generic_lock_irqsave)(&gs->chip); in mlxbf3_gpio_irq_enable() 68 writel(BIT(offset), gs->gpio_cause_io + MLXBF_GPIO_CAUSE_OR_CLRCAUSE); in mlxbf3_gpio_irq_enable() 70 val = readl(gs->gpio_cause_io + MLXBF_GPIO_CAUSE_OR_EVTEN0); in mlxbf3_gpio_irq_enable() 72 writel(val, gs->gpio_cause_io + MLXBF_GPIO_CAUSE_OR_EVTEN0); in mlxbf3_gpio_irq_enable() 78 struct mlxbf3_gpio_context *gs = gpiochip_get_data(gc); in mlxbf3_gpio_irq_disable() local 82 scoped_guard(gpio_generic_lock_irqsave, &gs->chip) { in mlxbf3_gpio_irq_disable() 83 val = readl(gs->gpio_cause_io + MLXBF_GPIO_CAUSE_OR_EVTEN0); in mlxbf3_gpio_irq_disable() 85 writel(val, gs->gpio_cause_io + MLXBF_GPIO_CAUSE_OR_EVTEN0); in mlxbf3_gpio_irq_disable() 87 writel(BIT(offset), gs->gpio_cause_io + MLXBF_GPIO_CAUSE_OR_CLRCAUSE); in mlxbf3_gpio_irq_disable() [all …]
|
| H A D | gpio-mlxbf2.c | 131 static int mlxbf2_gpio_lock_acquire(struct mlxbf2_gpio_context *gs) in mlxbf2_gpio_lock_acquire() argument 136 gpio_generic_chip_lock(&gs->chip); in mlxbf2_gpio_lock_acquire() 144 gpio_generic_chip_unlock(&gs->chip); in mlxbf2_gpio_lock_acquire() 157 static void mlxbf2_gpio_lock_release(struct mlxbf2_gpio_context *gs) in mlxbf2_gpio_lock_release() argument 158 __releases(&gs->chip.lock) in mlxbf2_gpio_lock_release() 162 gpio_generic_chip_unlock(&gs->chip); in mlxbf2_gpio_lock_release() 187 struct mlxbf2_gpio_context *gs = gpiochip_get_data(chip); in mlxbf2_gpio_direction_input() local 194 ret = mlxbf2_gpio_lock_acquire(gs); in mlxbf2_gpio_direction_input() 198 writel(BIT(offset), gs->gpio_io + YU_GPIO_MODE0_CLEAR); in mlxbf2_gpio_direction_input() 199 writel(BIT(offset), gs->gpio_io + YU_GPIO_MODE1_CLEAR); in mlxbf2_gpio_direction_input() [all …]
|
| /linux/scripts/kconfig/ |
| H A D | util.c | 76 struct gstr gs; in str_append() 77 gs.s = xmalloc(sizeof(char) * 64); in str_append() 78 gs.len = 64; in str_append() 79 gs.max_width = 0; in str_append() 80 strcpy(gs.s, "\0"); 81 return gs; 85 void str_free(struct gstr *gs) in str_printf() 87 free(gs->s); in str_printf() 88 gs->s = NULL; in str_printf() 89 gs in str_printf() 51 struct gstr gs; str_new() local 60 str_free(struct gstr * gs) str_free() argument 68 str_append(struct gstr * gs,const char * s) str_append() argument 82 str_printf(struct gstr * gs,const char * fmt,...) str_printf() argument 93 str_get(const struct gstr * gs) str_get() argument [all...] |
| H A D | lkc.h | 70 void str_free(struct gstr *gs); 71 void str_append(struct gstr *gs, const char *s); 72 void str_printf(struct gstr *gs, const char *fmt, ...); 73 char *str_get(const struct gstr *gs);
|
| H A D | confdata.c | 262 static void conf_append_changed_input_warning(struct gstr *gs, in conf_append_changed_input_warning() argument 270 str_printf(gs, in conf_append_changed_input_warning() 275 str_printf(gs, " %s%s: %s -> %s\n", in conf_append_changed_input_warning() 834 struct gstr gs; in conf_write_defconfig() local 842 gs = str_new(); in conf_write_defconfig() 856 conf_append_changed_input_warning(&gs, sym, in conf_write_defconfig() 885 conf_changed_input_warning(str_get(&gs)); in conf_write_defconfig() 887 str_free(&gs); in conf_write_defconfig() 899 struct gstr gs; in conf_write() local 931 gs = str_new(); in conf_write() [all …]
|
| H A D | expr.c | 1152 struct gstr *gs = (struct gstr*)data; 1158 if (gs->max_width) { in expr_print_revdep() 1160 const char *last_cr = strrchr(gs->s, '\n'); in expr_print_revdep() 1167 last_cr = gs->s; in expr_print_revdep() 1169 last_line_length = strlen(gs->s) - (last_cr - gs->s); in expr_print_revdep() 1171 if ((last_line_length + extra_length) > gs->max_width) in expr_print_revdep() 1172 str_append(gs, "\\\n"); in expr_print_revdep() 1175 str_append(gs, str); 1177 str_printf(gs, " [ in expr_gstr_print_revdep() 1119 struct gstr *gs = (struct gstr*)data; expr_print_gstr_helper() local 1147 expr_gstr_print(const struct expr * e,struct gstr * gs) expr_gstr_print() argument 1176 expr_gstr_print_revdep(struct expr * e,struct gstr * gs,tristate pr_type,const char * title) expr_gstr_print_revdep() argument [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 | 1261 static struct guest_vcpu *guest_session__vcpu(struct guest_session *gs, u32 vcpu) in guest_session__map_ids() 1263 if (realloc_array_as_needed(gs->vcpu, gs->vcpu_cnt, vcpu, NULL)) in guest_session__map_ids() 1265 return &gs->vcpu[vcpu]; in guest_session__map_ids() 1268 static int guest_session__output_bytes(struct guest_session *gs, void *buf, size_t sz) in guest_session__map_ids() 1270 ssize_t ret = writen(gs->tmp_fd, buf, sz); in guest_session__map_ids() 1280 struct guest_session *gs = container_of(tool, struct guest_session, tool); in guest_session__lookup_id() 1282 return guest_session__output_bytes(gs, event, event->header.size); in guest_session__lookup_id() 1285 static int guest_session__map_tid(struct guest_session *gs, u32 tid, u32 vcpu) in guest_session__lookup_id() 1296 hlist_add_head(&guest_tid->node, &gs in process_attr() 1110 guest_session__vcpu(struct guest_session * gs,u32 vcpu) guest_session__vcpu() argument 1117 guest_session__output_bytes(struct guest_session * gs,void * buf,size_t sz) guest_session__output_bytes() argument 1129 struct guest_session *gs = container_of(tool, struct guest_session, tool); guest_session__repipe() local 1134 guest_session__map_tid(struct guest_session * gs,u32 tid,u32 vcpu) guest_session__map_tid() argument 1154 struct guest_session *gs = data; host_peek_vm_comms_cb() local 1189 host_peek_vm_comms(struct perf_session * session,struct guest_session * gs) host_peek_vm_comms() argument 1201 guest_session__allocate_new_id(struct guest_session * gs,struct evlist * host_evlist) guest_session__allocate_new_id() argument 1210 guest_session__map_id(struct guest_session * gs,u64 id,u64 host_id,u32 vcpu) guest_session__map_id() argument 1246 guest_session__map_ids(struct guest_session * gs,struct evlist * host_evlist) guest_session__map_ids() argument 1274 guest_session__lookup_id(struct guest_session * gs,u64 id) guest_session__lookup_id() argument 1299 guest_session__add_attr(struct guest_session * gs,struct evsel * evsel) guest_session__add_attr() argument 1355 guest_session__add_attrs(struct guest_session * gs) guest_session__add_attrs() argument 1381 guest_session__lookup_tid(struct guest_session * gs,u32 tid) guest_session__lookup_tid() argument 1456 struct guest_session *gs = data; guest_session__add_build_ids_cb() local 1466 guest_session__add_build_ids(struct guest_session * gs) guest_session__add_build_ids() argument 1483 struct guest_session *gs = container_of(tool, struct guest_session, tool); guest_session__ksymbol_event() local 1492 guest_session__start(struct guest_session * gs,const char * name,bool force) guest_session__start() argument 1581 guest_session__exit(struct guest_session * gs) guest_session__exit() argument 1609 guest_session__get_tc(struct guest_session * gs) guest_session__get_tc() argument 1617 guest_session__convert_time(struct guest_session * gs,u64 guest_time,u64 * host_time) guest_session__convert_time() argument 1644 guest_session__fetch(struct guest_session * gs) guest_session__fetch() argument 1729 guest_session__inject_events(struct guest_session * gs,u64 timestamp) guest_session__inject_events() argument 1837 guest_session__flush_events(struct guest_session * gs) guest_session__flush_events() argument 1861 struct guest_session *gs = &inject->guest_session; host__finished_init() local 1941 struct guest_session *gs = &inject->guest_session; host__context_switch() local 2041 struct guest_session *gs = &inject->guest_session; parse_guest_data() local 2224 guest_session__copy_kcore_dir(struct guest_session * gs) guest_session__copy_kcore_dir() argument 2248 struct guest_session *gs = &inject->guest_session; __cmd_inject() 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/drivers/net/ |
| H A D | geneve.c | 179 static sa_family_t geneve_get_sk_family(struct geneve_sock *gs) in geneve_get_sk_family() argument 181 return gs->sk->sk_family; in geneve_get_sk_family() 184 static struct geneve_dev *geneve_lookup(struct geneve_sock *gs, in geneve_lookup() argument 193 vni_list_head = &gs->vni_list[hash]; in geneve_lookup() 205 static struct geneve_dev *geneve6_lookup(struct geneve_sock *gs, in geneve6_lookup() argument 214 vni_list_head = &gs->vni_list[hash]; in geneve6_lookup() 231 static struct geneve_dev *geneve_lookup_skb(struct geneve_sock *gs, in geneve_lookup_skb() argument 237 if (geneve_get_sk_family(gs) == AF_INET) { in geneve_lookup_skb() 243 if (gs->collect_md) { in geneve_lookup_skb() 251 return geneve_lookup(gs, addr, vni); in geneve_lookup_skb() [all …]
|
| /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/pinctrl/intel/ |
| H A D | pinctrl-intel.h | 155 #define __INTEL_COMMUNITY(b, s, e, g, n, gs, gn, soc) \ argument 163 .gpp_size = (gs), \ 174 #define INTEL_COMMUNITY_SIZE(b, s, e, gs, gn, soc) \ argument 175 __INTEL_COMMUNITY(b, s, e, NULL, 0, gs, gn, soc)
|
| /linux/arch/x86/boot/ |
| H A D | regs.c | 26 reg->gs = gs(); in initregs()
|
| /linux/arch/x86/kernel/ |
| 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/pinctrl/starfive/ |
| H A D | pinctrl-starfive-jh7110-sys.c | 312 const struct jh7110_vin_group_sel *gs = &jh7110_sys_vin_group_sel[pin]; in jh7110_set_vin_group() local 318 if (!gs->offset) in jh7110_set_vin_group() 321 reg = sfp->base + gs->offset; in jh7110_set_vin_group() 322 grp = gs->group << gs->shift; in jh7110_set_vin_group() 323 mask = 0x3U << gs->shift; in jh7110_set_vin_group()
|
| /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/drivers/clk/rockchip/ |
| H A D | clk.h | 846 df, go, gs, gf) \ argument 862 .gate_shift = gs, \ 867 mf, do, ds, dw, df, go, gs, gf) \ argument 884 .gate_shift = gs, \ 889 go, gs, gf) \ argument 902 .gate_shift = gs, \ 907 df, dt, go, gs, gf) \ argument 921 .gate_shift = gs, \ 926 go, gs, gf) \ argument 939 .gate_shift = gs, \ [all …]
|
| /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/arch/x86/realmode/rm/ |
| H A D | wakeup_asm.S | 61 movw %cx, %gs 74 movw %ax, %gs
|
| /linux/scripts/gcc-plugins/ |
| H A D | gcc-common.h | 325 inline bool is_a_helper<const ggoto *>::test(const_gimple gs) in test() argument 327 return gs->code == GIMPLE_GOTO; in test() 332 inline bool is_a_helper<const greturn *>::test(const_gimple gs) in test() argument 334 return gs->code == GIMPLE_RETURN; in test()
|