/openbmc/linux/drivers/gpio/ |
H A 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 …]
|
H A D | gpio-mlxbf3.c | 59 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 …]
|
H A 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 …]
|
/openbmc/linux/drivers/staging/media/atomisp/pci/ |
H A 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 …]
|
/openbmc/linux/scripts/kconfig/ |
H A 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 …]
|
H A 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);
|
/openbmc/u-boot/scripts/kconfig/ |
H A D | util.c | 83 struct gstr gs; in str_new() local 84 gs.s = xmalloc(sizeof(char) * 64); in str_new() 85 gs.len = 64; in str_new() 86 gs.max_width = 0; in str_new() 87 strcpy(gs.s, "\0"); in str_new() 88 return gs; in str_new() 92 void str_free(struct gstr *gs) in str_free() argument 94 if (gs->s) in str_free() 95 free(gs->s); in str_free() 96 gs->s = NULL; in str_free() [all …]
|
H A D | lkc.h | 131 void str_free(struct gstr *gs); 132 void str_append(struct gstr *gs, const char *s); 133 void str_printf(struct gstr *gs, const char *fmt, ...); 134 const char *str_get(struct gstr *gs);
|
/openbmc/linux/drivers/hte/ |
H A 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 …]
|
/openbmc/linux/drivers/media/spi/ |
H A 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 …]
|
/openbmc/linux/tools/perf/ |
H A 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 …]
|
/openbmc/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 …]
|
/openbmc/linux/arch/x86/kernel/ |
H A 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()
|
/openbmc/qemu/pc-bios/optionrom/ |
H A D | pvh.S | 74 mov %cx, %gs 79 movl %ebx, %gs:GS_PROT_JUMP 81 movw %bx, %gs:GS_PROT_JUMP + 4 85 movw %bx, %gs:GS_GDT_DESC 88 movl %ebx, %gs:GS_GDT_DESC + 2 139 data32 lgdt %gs:GS_GDT_DESC 147 data32 ljmp *%gs:GS_PROT_JUMP 158 movl %eax, %gs
|
H A D | multiboot.S | 51 mov %cx, %gs 56 movl %ebx, %gs:GS_PROT_JUMP 58 movw %bx, %gs:GS_PROT_JUMP + 4 62 movw %bx, %gs:GS_GDT_DESC 65 movl %ebx, %gs:GS_GDT_DESC + 2 169 data32 lgdt %gs:GS_GDT_DESC 177 data32 ljmp *%gs:GS_PROT_JUMP 188 movl %eax, %gs
|
/openbmc/linux/drivers/net/ |
H A 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 …]
|
/openbmc/u-boot/lib/bzip2/ |
H A D | bzlib_compress.c | 281 Int32 v, t, i, j, gs, ge, totc, bt, bc, iter; in sendMTFValues() local 326 gs = 0; in sendMTFValues() 329 ge = gs-1; in sendMTFValues() 336 if (ge > gs in sendMTFValues() 346 nPart, gs, ge, aFreq, in sendMTFValues() 350 if (v >= gs && v <= ge) in sendMTFValues() 355 gs = ge+1; in sendMTFValues() 385 gs = 0; in sendMTFValues() 389 if (gs >= s->nMTF) break; in sendMTFValues() 390 ge = gs + BZ_G_SIZE - 1; in sendMTFValues() [all …]
|
/openbmc/linux/include/linux/usb/ |
H A 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) \
|
/openbmc/linux/tools/testing/selftests/x86/ |
H A 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 …]
|
/openbmc/linux/arch/x86/boot/ |
H A D | bioscall.S | 27 pushw %gs 39 popw %gs 54 pushw %gs 75 popw %gs
|
/openbmc/linux/drivers/s390/scsi/ |
H A 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 …]
|
/openbmc/linux/drivers/clk/rockchip/ |
H A 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 …]
|
/openbmc/openbmc/poky/meta/recipes-extended/groff/files/ |
H A D | groff-not-search-fonts-on-build-host.patch | 26 -foundry||@urwfontsdir@:(gs):/usr/share/fonts/type1/gsfonts:/usr/share/fonts/default/Type1:/usr/sha… 27 +foundry||(gs) 35 …are/fonts/type1/urw-base35:/opt/local/share/fonts/urw-fonts:/usr/local/share/fonts/ghostscript:(gs) 36 +foundry|U|(gs)
|
/openbmc/u-boot/arch/x86/lib/ |
H A D | bios_asm.S | 61 mov %ax, %gs 104 mov %ax, %gs 124 mov %ax, %gs 246 push %gs 291 pop %gs
|
/openbmc/linux/drivers/pinctrl/intel/ |
H A 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)
|