Home
last modified time | relevance | path

Searched refs:gs (Results 1 – 17 of 17) sorted by relevance

/drivers/gpio/
Dgpio-mlxbf.c52 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 …]
Dgpio-mlxbf2.c118 static int mlxbf2_gpio_lock_acquire(struct mlxbf2_gpio_context *gs) in mlxbf2_gpio_lock_acquire() argument
123 spin_lock(&gs->gc.bgpio_lock); in mlxbf2_gpio_lock_acquire()
131 spin_unlock(&gs->gc.bgpio_lock); in mlxbf2_gpio_lock_acquire()
144 static void mlxbf2_gpio_lock_release(struct mlxbf2_gpio_context *gs) in mlxbf2_gpio_lock_release() argument
145 __releases(&gs->gc.bgpio_lock) in mlxbf2_gpio_lock_release()
149 spin_unlock(&gs->gc.bgpio_lock); in mlxbf2_gpio_lock_release()
174 struct mlxbf2_gpio_context *gs = gpiochip_get_data(chip); in mlxbf2_gpio_direction_input() local
181 ret = mlxbf2_gpio_lock_acquire(gs); in mlxbf2_gpio_direction_input()
185 writel(BIT(offset), gs->gpio_io + YU_GPIO_MODE0_CLEAR); in mlxbf2_gpio_direction_input()
186 writel(BIT(offset), gs->gpio_io + YU_GPIO_MODE1_CLEAR); in mlxbf2_gpio_direction_input()
[all …]
/drivers/staging/media/atomisp/pci/
Datomisp_gmin_platform.c163 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 …]
/drivers/media/spi/
Dgs1662.c46 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, &reg_value); in gs_query_dv_timings()
[all …]
/drivers/net/
Dgeneve.c124 static sa_family_t geneve_get_sk_family(struct geneve_sock *gs) in geneve_get_sk_family() argument
126 return gs->sock->sk->sk_family; in geneve_get_sk_family()
129 static struct geneve_dev *geneve_lookup(struct geneve_sock *gs, in geneve_lookup() argument
138 vni_list_head = &gs->vni_list[hash]; in geneve_lookup()
148 static struct geneve_dev *geneve6_lookup(struct geneve_sock *gs, in geneve6_lookup() argument
157 vni_list_head = &gs->vni_list[hash]; in geneve6_lookup()
172 static struct geneve_dev *geneve_lookup_skb(struct geneve_sock *gs, in geneve_lookup_skb() argument
178 if (geneve_get_sk_family(gs) == AF_INET) { in geneve_lookup_skb()
184 if (gs->collect_md) { in geneve_lookup_skb()
192 return geneve_lookup(gs, addr, vni); in geneve_lookup_skb()
[all …]
/drivers/clk/rockchip/
Dclk.h463 df, go, gs, gf) \ argument
479 .gate_shift = gs, \
484 mf, do, ds, dw, df, go, gs, gf) \ argument
501 .gate_shift = gs, \
506 go, gs, gf) \ argument
519 .gate_shift = gs, \
524 df, dt, go, gs, gf) \ argument
538 .gate_shift = gs, \
543 go, gs, gf) \ argument
556 .gate_shift = gs, \
[all …]
/drivers/s390/scsi/
Dzfcp_fc.c232 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 …]
Dzfcp_aux.c435 zfcp_fc_wka_ports_force_offline(adapter->gs); in zfcp_adapter_enqueue()
456 zfcp_fc_wka_ports_force_offline(adapter->gs); in zfcp_adapter_unregister()
Dzfcp_def.h189 struct zfcp_fc_wka_ports *gs; /* generic services */ member
Dzfcp_erp.c908 zfcp_fc_wka_ports_force_offline(adapter->gs); in zfcp_erp_adapter_strategy_close()
/drivers/gpu/drm/nouveau/nvkm/engine/gr/
Dctxgp102.c72 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()
Dctxgv100.c92 const u32 gs = gfxp * gr->ppc_tpc_max; in gv100_grctx_generate_attrib() local
97 mmio_wr32(info, o + 0xc0, gs); in gv100_grctx_generate_attrib()
100 bo += gs; in gv100_grctx_generate_attrib()
/drivers/usb/gadget/
Dconfigfs.c803 struct gadget_strings *gs = to_gadget_strings(item); in gadget_strings_attr_release() local
805 kfree(gs->manufacturer); in gadget_strings_attr_release()
806 kfree(gs->product); in gadget_strings_attr_release()
807 kfree(gs->serialnumber); in gadget_strings_attr_release()
809 list_del(&gs->list); in gadget_strings_attr_release()
810 kfree(gs); in gadget_strings_attr_release()
1364 struct gadget_strings *gs; in configfs_composite_bind() local
1367 list_for_each_entry(gs, &gi->string_list, list) { in configfs_composite_bind()
1369 gi->gstrings[i] = &gs->stringtab_dev; in configfs_composite_bind()
1370 gs->stringtab_dev.strings = gs->strings; in configfs_composite_bind()
[all …]
Dcomposite.c1343 struct usb_gadget_strings *gs; in copy_gadget_strings() local
1364 gs = gs_array[n_gs]; in copy_gadget_strings()
1366 gs->language = sp[n_gs]->language; in copy_gadget_strings()
1367 gs->strings = stash; in copy_gadget_strings()
/drivers/pinctrl/intel/
Dpinctrl-sunrisepoint.c25 #define SPT_COMMUNITY(b, s, e, pl, gs, gn, g, n) \ argument
33 .gpp_size = (gs), \
/drivers/pinctrl/
Dcore.c448 int gs; in pinctrl_get_group_pins() local
453 gs = pinctrl_get_group_selector(pctldev, pin_group); in pinctrl_get_group_pins()
454 if (gs < 0) in pinctrl_get_group_pins()
455 return gs; in pinctrl_get_group_pins()
457 return pctlops->get_group_pins(pctldev, gs, pins, num_pins); in pinctrl_get_group_pins()
/drivers/media/pci/saa7164/
Dsaa7164-api.c157 struct tmComResEncVideoGopStructure gs; in saa7164_api_set_gop_size() local
162 gs.ucRefFrameDist = port->encoder_params.refdist; in saa7164_api_set_gop_size()
163 gs.ucGOPSize = port->encoder_params.gop_size; in saa7164_api_set_gop_size()
166 sizeof(gs), &gs); in saa7164_api_set_gop_size()