/kernel/linux/linux-5.10/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 in mlxbf_gpio_probe() 93 struct mlxbf_gpio_state *gs = platform_get_drvdata(pdev); mlxbf_gpio_suspend() local 112 struct mlxbf_gpio_state *gs = platform_get_drvdata(pdev); mlxbf_gpio_resume() local [all...] |
H A 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) 152 __releases(&gs->gc.bgpio_lock) 156 spin_unlock(&gs->gc.bgpio_lock); in __releases() 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 in mlxbf2_gpio_direction_input() 208 struct mlxbf2_gpio_context *gs = gpiochip_get_data(chip); mlxbf2_gpio_direction_output() local 232 struct mlxbf2_gpio_context *gs; mlxbf2_gpio_probe() local 296 struct mlxbf2_gpio_context *gs = platform_get_drvdata(pdev); mlxbf2_gpio_suspend() local 308 struct mlxbf2_gpio_context *gs = platform_get_drvdata(pdev); mlxbf2_gpio_resume() local [all...] |
/kernel/linux/linux-6.6/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 in mlxbf_gpio_probe() 93 struct mlxbf_gpio_state *gs = platform_get_drvdata(pdev); mlxbf_gpio_suspend() local 112 struct mlxbf_gpio_state *gs = platform_get_drvdata(pdev); mlxbf_gpio_resume() local [all...] |
H A 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 in mlxbf3_gpio_irq_disable() 92 struct mlxbf3_gpio_context *gs = ptr; mlxbf3_gpio_irq_handler() local 110 struct mlxbf3_gpio_context *gs = gpiochip_get_data(gc); mlxbf3_gpio_irq_set_type() local 186 struct mlxbf3_gpio_context *gs; mlxbf3_gpio_probe() local [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) 157 __releases(&gs->gc.bgpio_lock) 161 raw_spin_unlock(&gs->gc.bgpio_lock); in __releases() 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 in mlxbf2_gpio_direction_input() 213 struct mlxbf2_gpio_context *gs = gpiochip_get_data(chip); mlxbf2_gpio_direction_output() local 236 struct mlxbf2_gpio_context *gs = gpiochip_get_data(gc); mlxbf2_gpio_irq_enable() local 256 struct mlxbf2_gpio_context *gs = gpiochip_get_data(gc); mlxbf2_gpio_irq_disable() local 271 struct mlxbf2_gpio_context *gs = ptr; mlxbf2_gpio_irq_handler() local 289 struct mlxbf2_gpio_context *gs = gpiochip_get_data(gc); mlxbf2_gpio_irq_set_type() local 332 struct mlxbf2_gpio_context *gs = gpiochip_get_data(gc); mlxbf2_gpio_irq_print_chip() local 350 struct mlxbf2_gpio_context *gs; mlxbf2_gpio_probe() local 436 struct mlxbf2_gpio_context *gs = dev_get_drvdata(dev); mlxbf2_gpio_suspend() local 448 struct mlxbf2_gpio_context *gs = dev_get_drvdata(dev); mlxbf2_gpio_resume() local [all...] |
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/ |
H A 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 in gmin_subdev_add() 712 axp_regulator_set(struct device *dev, struct gmin_subdev *gs, int sel_reg, u8 setting, int ctrl_reg, int shift, bool on) axp_regulator_set() argument 747 axp_v1p8_on(struct device *dev, struct gmin_subdev *gs) axp_v1p8_on() argument 772 axp_v1p8_off(struct device *dev, struct gmin_subdev *gs) axp_v1p8_off() argument 791 struct gmin_subdev *gs = find_gmin_subdev(subdev); gmin_gpio0_ctrl() local 802 struct gmin_subdev *gs = find_gmin_subdev(subdev); gmin_gpio1_ctrl() local 813 struct gmin_subdev *gs = find_gmin_subdev(subdev); gmin_v1p2_ctrl() local 834 struct gmin_subdev *gs = find_gmin_subdev(subdev); gmin_v1p8_ctrl() local 889 struct gmin_subdev *gs = find_gmin_subdev(subdev); gmin_v2p8_ctrl() local 946 struct gmin_subdev *gs = find_gmin_subdev(subdev); gmin_acpi_pm_ctrl() local 977 struct gmin_subdev *gs = find_gmin_subdev(subdev); gmin_flisclk_ctrl() local 1005 struct gmin_subdev *gs = find_gmin_subdev(sd); gmin_csi_cfg() local 1018 struct gmin_subdev *gs = find_gmin_subdev(subdev); gmin_get_vcm_ctrl() local 1067 struct gmin_subdev *gs; gmin_camera_platform_data() local [all...] |
/kernel/linux/linux-6.6/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 in gmin_subdev_add() 731 axp_regulator_set(struct device *dev, struct gmin_subdev *gs, int sel_reg, u8 setting, int ctrl_reg, int shift, bool on) axp_regulator_set() argument 766 axp_v1p8_on(struct device *dev, struct gmin_subdev *gs) axp_v1p8_on() argument 786 axp_v1p8_off(struct device *dev, struct gmin_subdev *gs) axp_v1p8_off() argument 805 struct gmin_subdev *gs = find_gmin_subdev(subdev); gmin_gpio0_ctrl() local 816 struct gmin_subdev *gs = find_gmin_subdev(subdev); gmin_gpio1_ctrl() local 827 struct gmin_subdev *gs = find_gmin_subdev(subdev); gmin_v1p2_ctrl() local 848 struct gmin_subdev *gs = find_gmin_subdev(subdev); gmin_v1p8_ctrl() local 929 struct gmin_subdev *gs = find_gmin_subdev(subdev); gmin_v2p8_ctrl() local 1012 struct gmin_subdev *gs = find_gmin_subdev(subdev); gmin_acpi_pm_ctrl() local 1043 struct gmin_subdev *gs = find_gmin_subdev(subdev); gmin_flisclk_ctrl() local 1103 struct gmin_subdev *gs = find_gmin_subdev(sd); gmin_csi_cfg() local 1181 struct gmin_subdev *gs = find_gmin_subdev(subdev); gmin_get_vcm_ctrl() local 1230 struct gmin_subdev *gs; gmin_camera_platform_data() local [all...] |
/kernel/linux/linux-5.10/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 in str_free() 52 str_append(struct gstr *gs, const char *s) str_append() argument 66 str_printf(struct gstr *gs, const char *fmt, ...) str_printf() argument 77 str_get(struct gstr *gs) str_get() argument [all...] |
/kernel/linux/linux-6.6/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 in str_free() 52 str_append(struct gstr *gs, const char *s) str_append() argument 66 str_printf(struct gstr *gs, const char *fmt, ...) str_printf() argument 77 str_get(struct gstr *gs) str_get() argument [all...] |
/kernel/linux/linux-6.6/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 in tegra_hte_line_xlate() 457 struct tegra_hte_soc *gs; tegra_hte_en_dis_common() local 520 struct tegra_hte_soc *gs; tegra_hte_request() local 548 struct tegra_hte_soc *gs; tegra_hte_release() local 585 tegra_hte_get_level(struct tegra_hte_soc *gs, u32 line_id) tegra_hte_get_level() argument 598 tegra_hte_read_fifo(struct tegra_hte_soc *gs) tegra_hte_read_fifo() argument 632 struct tegra_hte_soc *gs = dev_id; tegra_hte_isr() local 671 struct tegra_hte_soc *gs = dev_get_drvdata(&pdev->dev); tegra_gte_disable() local 815 struct tegra_hte_soc *gs = dev_get_drvdata(dev); tegra_hte_resume_early() local 836 struct tegra_hte_soc *gs = dev_get_drvdata(dev); tegra_hte_suspend_late() local [all...] |
/kernel/linux/linux-6.6/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 in guest_session__map_tid() 900 struct guest_session *gs = data; host_peek_vm_comms_cb() local 935 host_peek_vm_comms(struct perf_session *session, struct guest_session *gs) host_peek_vm_comms() argument 947 guest_session__allocate_new_id(struct guest_session *gs, struct evlist *host_evlist) guest_session__allocate_new_id() argument 956 guest_session__map_id(struct guest_session *gs, u64 id, u64 host_id, u32 vcpu) guest_session__map_id() argument 992 guest_session__map_ids(struct guest_session *gs, struct evlist *host_evlist) guest_session__map_ids() argument 1020 guest_session__lookup_id(struct guest_session *gs, u64 id) guest_session__lookup_id() argument 1045 guest_session__add_attr(struct guest_session *gs, struct evsel *evsel) guest_session__add_attr() argument 1101 guest_session__add_attrs(struct guest_session *gs) guest_session__add_attrs() argument 1127 guest_session__lookup_tid(struct guest_session *gs, u32 tid) guest_session__lookup_tid() argument 1190 guest_session__add_build_ids(struct guest_session *gs) guest_session__add_build_ids() argument 1214 struct guest_session *gs = container_of(tool, struct guest_session, tool); guest_session__ksymbol_event() local 1223 guest_session__start(struct guest_session *gs, const char *name, bool force) guest_session__start() argument 1312 guest_session__exit(struct guest_session *gs) guest_session__exit() argument 1340 guest_session__get_tc(struct guest_session *gs) guest_session__get_tc() argument 1348 guest_session__convert_time(struct guest_session *gs, u64 guest_time, u64 *host_time) guest_session__convert_time() argument 1375 guest_session__fetch(struct guest_session *gs) guest_session__fetch() argument 1460 guest_session__inject_events(struct guest_session *gs, u64 timestamp) guest_session__inject_events() argument 1568 guest_session__flush_events(struct guest_session *gs) guest_session__flush_events() argument 1591 struct guest_session *gs = &inject->guest_session; host__finished_init() local 1671 struct guest_session *gs = &inject->guest_session; host__context_switch() local 1771 struct guest_session *gs = &inject->guest_session; parse_guest_data() local 1952 guest_session__copy_kcore_dir(struct guest_session *gs) guest_session__copy_kcore_dir() argument 1976 struct guest_session *gs = &inject->guest_session; __cmd_inject() local [all...] |
/kernel/linux/linux-5.10/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 in test_hexdump_prepare_test() 166 int rs = rowsize, gs = groupsize; test_hexdump_overflow() local 214 int gs = 1 << i; test_hexdump_overflow_set() local [all...] |
/kernel/linux/linux-6.6/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 in test_hexdump_prepare_test() 166 int rs = rowsize, gs = groupsize; test_hexdump_overflow() local 214 int gs = 1 << i; test_hexdump_overflow_set() local [all...] |
/kernel/linux/linux-5.10/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 *g in gs_query_dv_timings() local 340 struct gs *gs = to_gs(sd); gs_s_stream() local 360 struct gs *gs = to_gs(sd); gs_g_input_status() local 435 struct gs *gs; gs_probe() local [all...] |
/kernel/linux/linux-6.6/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 *g in gs_query_dv_timings() local 340 struct gs *gs = to_gs(sd); gs_s_stream() local 360 struct gs *gs = to_gs(sd); gs_g_input_status() local 435 struct gs *gs; gs_probe() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ |
H A 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, add in geneve_lookup_skb() 215 geneve_rx(struct geneve_dev *geneve, struct geneve_sock *gs, struct sk_buff *skb) geneve_rx() argument 345 struct geneve_sock *gs; geneve_udp_encap_recv() local 389 struct geneve_sock *gs; geneve_udp_encap_err_lookup() local 565 struct geneve_sock *gs; geneve_socket_create() local 602 __geneve_sock_release(struct geneve_sock *gs) __geneve_sock_release() argument 635 struct geneve_sock *gs; geneve_find_sock() local 651 struct geneve_sock *gs; geneve_sock_add() local 1197 struct geneve_sock *gs; geneve_offload_rx_ports() local [all...] |
/kernel/linux/linux-6.6/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, add in geneve_lookup_skb() 218 geneve_rx(struct geneve_dev *geneve, struct geneve_sock *gs, struct sk_buff *skb) geneve_rx() argument 369 struct geneve_sock *gs; geneve_udp_encap_recv() local 418 struct geneve_sock *gs; geneve_udp_encap_err_lookup() local 592 struct geneve_sock *gs; geneve_socket_create() local 629 __geneve_sock_release(struct geneve_sock *gs) __geneve_sock_release() argument 662 struct geneve_sock *gs; geneve_find_sock() local 678 struct geneve_sock *gs; geneve_sock_add() local 1231 struct geneve_sock *gs; geneve_offload_rx_ports() local [all...] |
/kernel/linux/linux-6.6/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() 168 * Save away %gs. No need to save %fs, as it was saved on the in __switch_to() 173 * and %gs. This could be an issue if the NMI handler ever in __switch_to() 174 * used %fs or %gs (it does not today), or if the kernel is in __switch_to() 177 savesegment(gs, prev->gs); in __switch_to() [all...] |
/kernel/linux/linux-5.10/arch/x86/kernel/ |
H A 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() 170 * Save away %gs. No need to save %fs, as it was saved on the in __switch_to() 175 * and %gs. This could be an issue if the NMI handler ever in __switch_to() 176 * used %fs or %gs (it does not today), or if the kernel is in __switch_to() 179 lazy_save_gs(prev->gs); in __switch_to() 207 * Restore %gs i in __switch_to() [all...] |
/kernel/linux/linux-5.10/arch/x86/include/asm/ |
H A 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)
|
/kernel/linux/linux-5.10/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) \
|
/kernel/linux/linux-6.6/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) \
|
/kernel/linux/linux-5.10/arch/x86/boot/ |
H A D | bioscall.S | 27 pushw %gs 39 popw %gs 54 pushw %gs 75 popw %gs
|
/kernel/linux/linux-6.6/arch/x86/boot/ |
H A D | bioscall.S | 27 pushw %gs 39 popw %gs 54 pushw %gs 75 popw %gs
|
/kernel/linux/linux-5.10/tools/testing/selftests/x86/ |
H A D | fsgsbase.c | 134 asm volatile ("mov %%gs:(%%rcx), %%rax" : : "c" (offset) : "rax"); in read_base() 150 asm volatile ("mov %%gs:(%%rcx), %%rax" in read_base() 168 asm volatile ("mov %%gs, %0" : "=rm" (sel)); in check_gs_value() 195 printf("[RUN]\tARCH_SET_GS to 0x%lx then mov 0 to %%gs%s\n", initial_base, schedule ? " and schedule " : ""); in mov_0_gs() 202 asm volatile ("mov %0, %%gs" : : "rm" (0)); in mov_0_gs() 237 asm volatile ("mov %0, %%gs" : : "rm" ((unsigned short)0)); in do_remote_base() 240 asm volatile ("mov %%gs, %0" : "=rm" (sel)); in do_remote_base() 242 to_set, hard_zero ? " and clear gs" : "", sel); in do_remote_base() 272 asm volatile ("mov %0, %%gs" : : "rm" ((unsigned short)0x7)); in load_gs() 301 unsigned short gs in load_gs() local 531 unsigned long gs, base; test_ptrace_write_gsbase() local [all...] |