Lines Matching refs:gpio_cs
89 unsigned int *gpio_cs; member
101 gpio_set_value(ms->gpio_cs[cs], value ? 0 : 1); in mpc52xx_spi_chipsel()
386 int gpio_cs; in mpc52xx_spi_probe() local
439 ms->gpio_cs = kmalloc_array(ms->gpio_cs_count, in mpc52xx_spi_probe()
440 sizeof(*ms->gpio_cs), in mpc52xx_spi_probe()
442 if (!ms->gpio_cs) { in mpc52xx_spi_probe()
448 gpio_cs = of_get_gpio(op->dev.of_node, i); in mpc52xx_spi_probe()
449 if (!gpio_is_valid(gpio_cs)) { in mpc52xx_spi_probe()
456 rc = gpio_request(gpio_cs, dev_name(&op->dev)); in mpc52xx_spi_probe()
460 i, gpio_cs); in mpc52xx_spi_probe()
464 gpio_direction_output(gpio_cs, 1); in mpc52xx_spi_probe()
465 ms->gpio_cs[i] = gpio_cs; in mpc52xx_spi_probe()
505 gpio_free(ms->gpio_cs[i]); in mpc52xx_spi_probe()
507 kfree(ms->gpio_cs); in mpc52xx_spi_probe()
526 gpio_free(ms->gpio_cs[i]); in mpc52xx_spi_remove()
528 kfree(ms->gpio_cs); in mpc52xx_spi_remove()