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_value_cansleep(s->gpios->ndescs, s->gpios->desc, in mdio_mux_gpio_switch_fn()
46 struct mdio_mux_gpio_state *s; in mdio_mux_gpio_probe() local
49 s = devm_kzalloc(&pdev->dev, sizeof(*s), GFP_KERNEL); in mdio_mux_gpio_probe()
50 if (!s) in mdio_mux_gpio_probe()
53 s->gpios = gpiod_get_array(&pdev->dev, NULL, GPIOD_OUT_LOW); in mdio_mux_gpio_probe()
54 if (IS_ERR(s->gpios)) in mdio_mux_gpio_probe()
55 return PTR_ERR(s->gpios); in mdio_mux_gpio_probe()
58 mdio_mux_gpio_switch_fn, &s->mux_handle, s); in mdio_mux_gpio_probe()
61 gpiod_put_array(s->gpios); in mdio_mux_gpio_probe()
65 pdev->dev.platform_data = s; in mdio_mux_gpio_probe()
71 struct mdio_mux_gpio_state *s = dev_get_platdata(&pdev->dev); in mdio_mux_gpio_remove() local
72 mdio_mux_uninit(s->mux_handle); in mdio_mux_gpio_remove()
73 gpiod_put_array(s->gpios); in mdio_mux_gpio_remove()