/Linux-v5.10/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 | 125 static int mlxbf2_gpio_lock_acquire(struct mlxbf2_gpio_context *gs) in mlxbf2_gpio_lock_acquire() argument 130 spin_lock(&gs->gc.bgpio_lock); in mlxbf2_gpio_lock_acquire() 138 spin_unlock(&gs->gc.bgpio_lock); in mlxbf2_gpio_lock_acquire() 151 static void mlxbf2_gpio_lock_release(struct mlxbf2_gpio_context *gs) in mlxbf2_gpio_lock_release() argument 152 __releases(&gs->gc.bgpio_lock) in mlxbf2_gpio_lock_release() 156 spin_unlock(&gs->gc.bgpio_lock); in mlxbf2_gpio_lock_release() 181 struct mlxbf2_gpio_context *gs = gpiochip_get_data(chip); in mlxbf2_gpio_direction_input() local 188 ret = mlxbf2_gpio_lock_acquire(gs); in mlxbf2_gpio_direction_input() 192 writel(BIT(offset), gs->gpio_io + YU_GPIO_MODE0_CLEAR); in mlxbf2_gpio_direction_input() 193 writel(BIT(offset), gs->gpio_io + YU_GPIO_MODE1_CLEAR); in mlxbf2_gpio_direction_input() [all …]
|
/Linux-v5.10/drivers/staging/media/atomisp/pci/ |
D | atomisp_gmin_platform.c | 163 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.10/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 | 90 void str_free(struct gstr *gs); 91 void str_append(struct gstr *gs, const char *s); 92 void str_printf(struct gstr *gs, const char *fmt, ...); 93 const char *str_get(struct gstr *gs);
|
/Linux-v5.10/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-v5.10/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-v5.10/arch/x86/kernel/ |
D | process_32.c | 64 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()
|
D | doublefault_32.c | 56 regs.gs = TSS(gs); in doublefault_shim() 104 .gs = __KERNEL_STACK_CANARY,
|
D | tls.c | 168 savesegment(gs, sel); in do_set_thread_area() 174 savesegment(gs, sel); in do_set_thread_area() 176 loadsegment(gs, sel); in do_set_thread_area()
|
/Linux-v5.10/arch/x86/include/asm/ |
D | segment.h | 339 #define __loadsegment_gs(value) __loadsegment_simple(gs, (value)) 371 # define get_user_gs(regs) (u16)({ unsigned long v; savesegment(gs, v); v; }) 372 # define set_user_gs(regs, v) loadsegment(gs, (unsigned long)(v)) 373 # define task_user_gs(tsk) ((tsk)->thread.gs) 374 # define lazy_save_gs(v) savesegment(gs, (v)) 375 # define lazy_load_gs(v) loadsegment(gs, (v)) 377 # define get_user_gs(regs) (u16)((regs)->gs) 378 # define set_user_gs(regs, v) do { (regs)->gs = (v); } while (0) 379 # define task_user_gs(tsk) (task_pt_regs(tsk)->gs)
|
/Linux-v5.10/drivers/net/ |
D | geneve.c | 123 static sa_family_t geneve_get_sk_family(struct geneve_sock *gs) in geneve_get_sk_family() argument 125 return gs->sock->sk->sk_family; in geneve_get_sk_family() 128 static struct geneve_dev *geneve_lookup(struct geneve_sock *gs, in geneve_lookup() argument 137 vni_list_head = &gs->vni_list[hash]; in geneve_lookup() 147 static struct geneve_dev *geneve6_lookup(struct geneve_sock *gs, in geneve6_lookup() argument 156 vni_list_head = &gs->vni_list[hash]; in geneve6_lookup() 171 static struct geneve_dev *geneve_lookup_skb(struct geneve_sock *gs, in geneve_lookup_skb() argument 177 if (geneve_get_sk_family(gs) == AF_INET) { in geneve_lookup_skb() 183 if (gs->collect_md) { in geneve_lookup_skb() 191 return geneve_lookup(gs, addr, vni); in geneve_lookup_skb() [all …]
|
/Linux-v5.10/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-v5.10/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() 472 unsigned long gs_offset = USER_REGS_OFFSET(gs); in test_ptrace_write_gs_read_base() 531 unsigned long gs, base; in test_ptrace_write_gsbase() local 532 unsigned long gs_offset = USER_REGS_OFFSET(gs); in test_ptrace_write_gsbase() 535 gs = ptrace(PTRACE_PEEKUSER, child, gs_offset, NULL); in test_ptrace_write_gsbase() 537 if (gs != *shared_scratch) { in test_ptrace_write_gsbase() 546 gs = ptrace(PTRACE_PEEKUSER, child, gs_offset, NULL); in test_ptrace_write_gsbase() 555 if (gs != *shared_scratch) { in test_ptrace_write_gsbase() [all …]
|
/Linux-v5.10/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-v5.10/arch/x86/power/ |
D | cpu.c | 103 savesegment(gs, ctxt->gs); in __save_processor_state() 106 savesegment(gs, ctxt->gs); in __save_processor_state() 235 loadsegment(gs, __KERNEL_STACK_CANARY); in __restore_processor_state() 249 load_gs_index(ctxt->gs); in __restore_processor_state() 259 loadsegment(gs, ctxt->gs); in __restore_processor_state()
|
/Linux-v5.10/drivers/clk/rockchip/ |
D | clk.h | 426 df, go, gs, gf) \ argument 442 .gate_shift = gs, \ 447 mf, do, ds, dw, df, go, gs, gf) \ argument 464 .gate_shift = gs, \ 469 go, gs, gf) \ argument 482 .gate_shift = gs, \ 487 df, dt, go, gs, gf) \ argument 501 .gate_shift = gs, \ 506 go, gs, gf) \ argument 519 .gate_shift = gs, \ [all …]
|
/Linux-v5.10/drivers/s390/scsi/ |
D | zfcp_fc.c | 221 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.10/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-v5.10/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-v5.10/drivers/usb/gadget/ |
D | configfs.c | 752 struct gadget_strings *gs = to_gadget_strings(item); in gadget_strings_attr_release() local 754 kfree(gs->manufacturer); in gadget_strings_attr_release() 755 kfree(gs->product); in gadget_strings_attr_release() 756 kfree(gs->serialnumber); in gadget_strings_attr_release() 758 list_del(&gs->list); in gadget_strings_attr_release() 759 kfree(gs); in gadget_strings_attr_release() 1313 struct gadget_strings *gs; in configfs_composite_bind() local 1316 list_for_each_entry(gs, &gi->string_list, list) { in configfs_composite_bind() 1318 gi->gstrings[i] = &gs->stringtab_dev; in configfs_composite_bind() 1319 gs->stringtab_dev.strings = gs->strings; in configfs_composite_bind() [all …]
|
/Linux-v5.10/tools/testing/selftests/kvm/include/x86_64/ |
D | processor.h | 180 uint16_t gs; in get_gs() local 183 : /* output */ [gs]"=rm"(gs)); in get_gs() 184 return gs; in get_gs()
|
/Linux-v5.10/arch/x86/ia32/ |
D | ia32_signal.c | 43 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()
|
/Linux-v5.10/scripts/gcc-plugins/ |
D | gcc-common.h | 382 static inline bool gimple_store_p(gimple gs) in gimple_store_p() argument 384 tree lhs = gimple_get_lhs(gs); in gimple_store_p() 696 inline bool is_a_helper<const gassign *>::test(const_gimple gs) in test() argument 698 return gs->code == GIMPLE_ASSIGN; in test() 855 inline bool is_a_helper<const ggoto *>::test(const_gimple gs) in test() argument 857 return gs->code == GIMPLE_GOTO; in test() 862 inline bool is_a_helper<const greturn *>::test(const_gimple gs) in test() argument 864 return gs->code == GIMPLE_RETURN; in test()
|