Lines Matching refs:gpio_cs
93 struct gpio_desc **gpio_cs; member
105 gpiod_set_value(ms->gpio_cs[cs], value); in mpc52xx_spi_chipsel()
390 struct gpio_desc *gpio_cs; in mpc52xx_spi_probe() local
446 ms->gpio_cs = kmalloc_array(ms->gpio_cs_count, in mpc52xx_spi_probe()
447 sizeof(*ms->gpio_cs), in mpc52xx_spi_probe()
449 if (!ms->gpio_cs) { in mpc52xx_spi_probe()
455 gpio_cs = gpiod_get_index(&op->dev, in mpc52xx_spi_probe()
457 rc = PTR_ERR_OR_ZERO(gpio_cs); in mpc52xx_spi_probe()
465 ms->gpio_cs[i] = gpio_cs; in mpc52xx_spi_probe()
505 gpiod_put(ms->gpio_cs[i]); in mpc52xx_spi_probe()
507 kfree(ms->gpio_cs); in mpc52xx_spi_probe()
526 gpiod_put(ms->gpio_cs[i]); in mpc52xx_spi_remove()
528 kfree(ms->gpio_cs); in mpc52xx_spi_remove()