/linux-6.1.9/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 …]
|
D | gpio-mlxbf2.c | 129 static int mlxbf2_gpio_lock_acquire(struct mlxbf2_gpio_context *gs) in mlxbf2_gpio_lock_acquire() argument 134 raw_spin_lock(&gs->gc.bgpio_lock); in mlxbf2_gpio_lock_acquire() 142 raw_spin_unlock(&gs->gc.bgpio_lock); in mlxbf2_gpio_lock_acquire() 155 static void mlxbf2_gpio_lock_release(struct mlxbf2_gpio_context *gs) in mlxbf2_gpio_lock_release() argument 156 __releases(&gs->gc.bgpio_lock) in mlxbf2_gpio_lock_release() 160 raw_spin_unlock(&gs->gc.bgpio_lock); in mlxbf2_gpio_lock_release() 185 struct mlxbf2_gpio_context *gs = gpiochip_get_data(chip); in mlxbf2_gpio_direction_input() local 192 ret = mlxbf2_gpio_lock_acquire(gs); in mlxbf2_gpio_direction_input() 196 writel(BIT(offset), gs->gpio_io + YU_GPIO_MODE0_CLEAR); in mlxbf2_gpio_direction_input() 197 writel(BIT(offset), gs->gpio_io + YU_GPIO_MODE1_CLEAR); in mlxbf2_gpio_direction_input() [all …]
|
/linux-6.1.9/drivers/staging/media/atomisp/pci/ |
D | atomisp_gmin_platform.c | 149 struct gmin_subdev *gs; in atomisp_register_i2c_module() local 175 gs = find_gmin_subdev(subdev); in atomisp_register_i2c_module() 176 if (!gs) in atomisp_register_i2c_module() 180 pdata.subdevs[i].port = gs->csi_port; in atomisp_register_i2c_module() 520 static int gmin_subdev_add(struct gmin_subdev *gs) in gmin_subdev_add() argument 522 struct i2c_client *client = v4l2_get_subdevdata(gs->subdev); in gmin_subdev_add() 530 gs->clock_src = gmin_get_var_int(dev, false, "ClkSrc", in gmin_subdev_add() 546 gs->csi_port = gmin_get_var_int(dev, false, "CsiPort", default_val); in gmin_subdev_add() 547 gs->csi_lanes = gmin_get_var_int(dev, false, "CsiLanes", 1); in gmin_subdev_add() 549 gs->gpio0 = gpiod_get_index(dev, NULL, 0, GPIOD_OUT_LOW); in gmin_subdev_add() [all …]
|
/linux-6.1.9/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 | 76 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-6.1.9/drivers/hte/ |
D | hte-tegra194.c | 273 struct tegra_hte_soc *gs; in tegra_hte_line_xlate() local 290 gs = gc->data; in tegra_hte_line_xlate() 291 if (!gs || !gs->prov_data) in tegra_hte_line_xlate() 305 if (gs->prov_data->type == HTE_TEGRA_TYPE_GPIO && !args) { in tegra_hte_line_xlate() 306 line_id = desc->attr.line_id - gs->c->base; in tegra_hte_line_xlate() 307 map = gs->prov_data->map; in tegra_hte_line_xlate() 308 map_sz = gs->prov_data->map_sz; in tegra_hte_line_xlate() 309 } else if (gs->prov_data->type == HTE_TEGRA_TYPE_GPIO && args) { in tegra_hte_line_xlate() 311 map = gs->prov_data->sec_map; in tegra_hte_line_xlate() 312 map_sz = gs->prov_data->sec_map_sz; in tegra_hte_line_xlate() [all …]
|
/linux-6.1.9/drivers/media/spi/ |
D | gs1662.c | 46 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, ®_value); in gs_query_dv_timings() [all …]
|
/linux-6.1.9/tools/perf/ |
D | builtin-inject.c | 840 static struct guest_vcpu *guest_session__vcpu(struct guest_session *gs, u32 vcpu) in guest_session__vcpu() argument 842 if (realloc_array_as_needed(gs->vcpu, gs->vcpu_cnt, vcpu, NULL)) in guest_session__vcpu() 844 return &gs->vcpu[vcpu]; in guest_session__vcpu() 847 static int guest_session__output_bytes(struct guest_session *gs, void *buf, size_t sz) in guest_session__output_bytes() argument 849 ssize_t ret = writen(gs->tmp_fd, buf, sz); in guest_session__output_bytes() 859 struct guest_session *gs = container_of(tool, struct guest_session, tool); in guest_session__repipe() local 861 return guest_session__output_bytes(gs, event, event->header.size); in guest_session__repipe() 864 static int guest_session__map_tid(struct guest_session *gs, u32 tid, u32 vcpu) in guest_session__map_tid() argument 875 hlist_add_head(&guest_tid->node, &gs->tids[hash]); in guest_session__map_tid() 884 struct guest_session *gs = data; in host_peek_vm_comms_cb() local [all …]
|
/linux-6.1.9/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-6.1.9/arch/x86/kernel/ |
D | process_32.c | 64 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() 177 savesegment(gs, prev->gs); in __switch_to() 207 if (prev->gs | next->gs) in __switch_to() 208 loadsegment(gs, next->gs); in __switch_to()
|
D | doublefault_32.c | 56 regs.gs = TSS(gs); in doublefault_shim() 100 .gs = 0,
|
D | ptrace.c | 87 REG_OFFSET_NAME(gs), 169 if (offset != offsetof(struct user_regs_struct, gs)) in get_segment_reg() 173 savesegment(gs, retval); in get_segment_reg() 175 retval = task->thread.gs; in get_segment_reg() 212 case offsetof(struct user_regs_struct, gs): in set_segment_reg() 213 task->thread.gs = value; in set_segment_reg() 244 case offsetof(struct user_regs_struct, gs): in get_segment_reg() 292 case offsetof(struct user_regs_struct,gs): in set_segment_reg() 362 case offsetof(struct user_regs_struct, gs): in putreg() 394 case offsetof(struct user_regs_struct, gs): in getreg() [all …]
|
/linux-6.1.9/drivers/net/ |
D | geneve.c | 126 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-6.1.9/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-6.1.9/tools/testing/selftests/x86/ |
D | fsgsbase.c | 301 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-6.1.9/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-6.1.9/drivers/s390/scsi/ |
D | zfcp_fc.c | 232 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() 712 ret = zfcp_fsf_send_ct(&adapter->gs->ds, ct_els, NULL, in zfcp_fc_send_gpn_ft() [all …]
|
/linux-6.1.9/drivers/clk/rockchip/ |
D | clk.h | 483 df, go, gs, gf) \ argument 499 .gate_shift = gs, \ 504 mf, do, ds, dw, df, go, gs, gf) \ argument 521 .gate_shift = gs, \ 526 go, gs, gf) \ argument 539 .gate_shift = gs, \ 544 df, dt, go, gs, gf) \ argument 558 .gate_shift = gs, \ 563 go, gs, gf) \ argument 576 .gate_shift = gs, \ [all …]
|
/linux-6.1.9/scripts/gcc-plugins/ |
D | gcc-common.h | 161 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-6.1.9/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-6.1.9/arch/x86/power/ |
D | cpu.c | 105 savesegment(gs, ctxt->gs); in __save_processor_state() 248 load_gs_index(ctxt->gs); in __restore_processor_state() 258 loadsegment(gs, ctxt->gs); in __restore_processor_state()
|
/linux-6.1.9/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()
|
/linux-6.1.9/drivers/usb/gadget/ |
D | configfs.c | 770 struct gadget_strings *gs = to_gadget_strings(item); in gadget_strings_attr_release() local 772 kfree(gs->manufacturer); in gadget_strings_attr_release() 773 kfree(gs->product); in gadget_strings_attr_release() 774 kfree(gs->serialnumber); in gadget_strings_attr_release() 776 list_del(&gs->list); in gadget_strings_attr_release() 777 kfree(gs); in gadget_strings_attr_release() 1318 struct gadget_strings *gs; in configfs_composite_bind() local 1321 list_for_each_entry(gs, &gi->string_list, list) { in configfs_composite_bind() 1323 gi->gstrings[i] = &gs->stringtab_dev; in configfs_composite_bind() 1324 gs->stringtab_dev.strings = gs->strings; in configfs_composite_bind() [all …]
|
/linux-6.1.9/arch/x86/ia32/ |
D | ia32_signal.c | 42 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()
|