| /Linux-v6.6/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 | 130 static int mlxbf2_gpio_lock_acquire(struct mlxbf2_gpio_context *gs) in mlxbf2_gpio_lock_acquire() argument 135 raw_spin_lock(&gs->gc.bgpio_lock); in mlxbf2_gpio_lock_acquire() 143 raw_spin_unlock(&gs->gc.bgpio_lock); in mlxbf2_gpio_lock_acquire() 156 static void mlxbf2_gpio_lock_release(struct mlxbf2_gpio_context *gs) in mlxbf2_gpio_lock_release() argument 157 __releases(&gs->gc.bgpio_lock) in mlxbf2_gpio_lock_release() 161 raw_spin_unlock(&gs->gc.bgpio_lock); in mlxbf2_gpio_lock_release() 186 struct mlxbf2_gpio_context *gs = gpiochip_get_data(chip); in mlxbf2_gpio_direction_input() local 193 ret = mlxbf2_gpio_lock_acquire(gs); in mlxbf2_gpio_direction_input() 197 writel(BIT(offset), gs->gpio_io + YU_GPIO_MODE0_CLEAR); in mlxbf2_gpio_direction_input() 198 writel(BIT(offset), gs->gpio_io + YU_GPIO_MODE1_CLEAR); in mlxbf2_gpio_direction_input() [all …]
|
| D | gpio-mlxbf3.c | 57 struct mlxbf3_gpio_context *gs = gpiochip_get_data(gc); in mlxbf3_gpio_irq_enable() local 64 raw_spin_lock_irqsave(&gs->gc.bgpio_lock, flags); in mlxbf3_gpio_irq_enable() 65 writel(BIT(offset), gs->gpio_cause_io + MLXBF_GPIO_CAUSE_OR_CLRCAUSE); in mlxbf3_gpio_irq_enable() 67 val = readl(gs->gpio_cause_io + MLXBF_GPIO_CAUSE_OR_EVTEN0); in mlxbf3_gpio_irq_enable() 69 writel(val, gs->gpio_cause_io + MLXBF_GPIO_CAUSE_OR_EVTEN0); in mlxbf3_gpio_irq_enable() 70 raw_spin_unlock_irqrestore(&gs->gc.bgpio_lock, flags); in mlxbf3_gpio_irq_enable() 76 struct mlxbf3_gpio_context *gs = gpiochip_get_data(gc); in mlxbf3_gpio_irq_disable() local 81 raw_spin_lock_irqsave(&gs->gc.bgpio_lock, flags); in mlxbf3_gpio_irq_disable() 82 val = readl(gs->gpio_cause_io + MLXBF_GPIO_CAUSE_OR_EVTEN0); in mlxbf3_gpio_irq_disable() 84 writel(val, gs->gpio_cause_io + MLXBF_GPIO_CAUSE_OR_EVTEN0); in mlxbf3_gpio_irq_disable() [all …]
|
| /Linux-v6.6/drivers/staging/media/atomisp/pci/ |
| D | atomisp_gmin_platform.c | 152 struct gmin_subdev *gs; in atomisp_register_i2c_module() local 186 gs = find_gmin_subdev(subdev); in atomisp_register_i2c_module() 187 if (!gs) in atomisp_register_i2c_module() 191 pdata.subdevs[i].port = gs->csi_port; in atomisp_register_i2c_module() 192 pdata.subdevs[i].lanes = gs->csi_lanes; in atomisp_register_i2c_module() 525 static int gmin_subdev_add(struct gmin_subdev *gs) in gmin_subdev_add() argument 527 struct i2c_client *client = v4l2_get_subdevdata(gs->subdev); in gmin_subdev_add() 535 gs->clock_src = gmin_get_var_int(dev, false, "ClkSrc", in gmin_subdev_add() 551 gs->csi_port = gmin_get_var_int(dev, false, "CsiPort", default_val); in gmin_subdev_add() 552 gs->csi_lanes = gmin_get_var_int(dev, false, "CsiLanes", 1); in gmin_subdev_add() [all …]
|
| /Linux-v6.6/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 char *str_get(struct gstr *gs);
|
| /Linux-v6.6/drivers/hte/ |
| D | hte-tegra194.c | 388 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() 420 if (gs->prov_data->type == HTE_TEGRA_TYPE_GPIO && !args) { in tegra_hte_line_xlate() 421 line_id = desc->attr.line_id - gs->c->base; in tegra_hte_line_xlate() 422 map = gs->prov_data->map; in tegra_hte_line_xlate() 423 map_sz = gs->prov_data->map_sz; in tegra_hte_line_xlate() 424 } else if (gs->prov_data->type == HTE_TEGRA_TYPE_GPIO && args) { in tegra_hte_line_xlate() 426 map = gs->prov_data->sec_map; in tegra_hte_line_xlate() 427 map_sz = gs->prov_data->sec_map_sz; in tegra_hte_line_xlate() [all …]
|
| /Linux-v6.6/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-v6.6/tools/perf/ |
| D | builtin-inject.c | 856 static struct guest_vcpu *guest_session__vcpu(struct guest_session *gs, u32 vcpu) in guest_session__vcpu() argument 858 if (realloc_array_as_needed(gs->vcpu, gs->vcpu_cnt, vcpu, NULL)) in guest_session__vcpu() 860 return &gs->vcpu[vcpu]; in guest_session__vcpu() 863 static int guest_session__output_bytes(struct guest_session *gs, void *buf, size_t sz) in guest_session__output_bytes() argument 865 ssize_t ret = writen(gs->tmp_fd, buf, sz); in guest_session__output_bytes() 875 struct guest_session *gs = container_of(tool, struct guest_session, tool); in guest_session__repipe() local 877 return guest_session__output_bytes(gs, event, event->header.size); in guest_session__repipe() 880 static int guest_session__map_tid(struct guest_session *gs, u32 tid, u32 vcpu) in guest_session__map_tid() argument 891 hlist_add_head(&guest_tid->node, &gs->tids[hash]); in guest_session__map_tid() 900 struct guest_session *gs = data; in host_peek_vm_comms_cb() local [all …]
|
| /Linux-v6.6/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-v6.6/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 | 57 regs.gs = TSS(gs); in doublefault_shim() 101 .gs = 0,
|
| /Linux-v6.6/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-v6.6/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-v6.6/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-v6.6/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-v6.6/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() 708 ret = zfcp_fsf_send_ct(&adapter->gs->ds, ct_els, NULL, in zfcp_fc_send_gpn_ft() [all …]
|
| /Linux-v6.6/drivers/clk/rockchip/ |
| D | clk.h | 551 df, go, gs, gf) \ argument 567 .gate_shift = gs, \ 572 mf, do, ds, dw, df, go, gs, gf) \ argument 589 .gate_shift = gs, \ 594 go, gs, gf) \ argument 607 .gate_shift = gs, \ 612 df, dt, go, gs, gf) \ argument 626 .gate_shift = gs, \ 631 go, gs, gf) \ argument 644 .gate_shift = gs, \ [all …]
|
| /Linux-v6.6/drivers/pinctrl/intel/ |
| D | pinctrl-intel.h | 145 #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-v6.6/arch/x86/include/asm/ |
| D | nospec-branch.h | 62 incq %gs:__x86_call_count; 64 incq %gs:__x86_ret_count; 66 incq %gs:__x86_stuffs_count; 68 incq %gs:__x86_ctxsw_count; 98 sarq $5, %gs:pcpu_hot + X86_call_depth; \
|
| /Linux-v6.6/drivers/pinctrl/starfive/ |
| D | pinctrl-starfive-jh7110-sys.c | 317 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-v6.6/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-v6.6/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-v6.6/arch/x86/power/ |
| D | cpu.c | 106 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()
|