Lines Matching refs:s
28 struct mdio_mux_gpio_state *s = data; in mdio_mux_gpio_switch_fn() local
29 int values[s->gpios->ndescs]; in mdio_mux_gpio_switch_fn()
35 for (n = 0; n < s->gpios->ndescs; n++) in mdio_mux_gpio_switch_fn()
38 gpiod_set_array_cansleep(s->gpios->ndescs, s->gpios->desc, values); in mdio_mux_gpio_switch_fn()
45 struct mdio_mux_gpio_state *s; in mdio_mux_gpio_probe() local
48 s = devm_kzalloc(&pdev->dev, sizeof(*s), GFP_KERNEL); in mdio_mux_gpio_probe()
49 if (!s) in mdio_mux_gpio_probe()
52 s->gpios = gpiod_get_array(&pdev->dev, NULL, GPIOD_OUT_LOW); in mdio_mux_gpio_probe()
53 if (IS_ERR(s->gpios)) in mdio_mux_gpio_probe()
54 return PTR_ERR(s->gpios); in mdio_mux_gpio_probe()
57 mdio_mux_gpio_switch_fn, &s->mux_handle, s); in mdio_mux_gpio_probe()
60 gpiod_put_array(s->gpios); in mdio_mux_gpio_probe()
64 pdev->dev.platform_data = s; in mdio_mux_gpio_probe()
70 struct mdio_mux_gpio_state *s = dev_get_platdata(&pdev->dev); in mdio_mux_gpio_remove() local
71 mdio_mux_uninit(s->mux_handle); in mdio_mux_gpio_remove()
72 gpiod_put_array(s->gpios); in mdio_mux_gpio_remove()