Lines Matching refs:gpio_cs
90 unsigned int *gpio_cs; member
102 gpio_set_value(ms->gpio_cs[cs], value ? 0 : 1); in mpc52xx_spi_chipsel()
387 int gpio_cs; in mpc52xx_spi_probe() local
440 ms->gpio_cs = kmalloc_array(ms->gpio_cs_count, in mpc52xx_spi_probe()
441 sizeof(*ms->gpio_cs), in mpc52xx_spi_probe()
443 if (!ms->gpio_cs) { in mpc52xx_spi_probe()
449 gpio_cs = of_get_gpio(op->dev.of_node, i); in mpc52xx_spi_probe()
450 if (!gpio_is_valid(gpio_cs)) { in mpc52xx_spi_probe()
457 rc = gpio_request(gpio_cs, dev_name(&op->dev)); in mpc52xx_spi_probe()
461 i, gpio_cs); in mpc52xx_spi_probe()
465 gpio_direction_output(gpio_cs, 1); in mpc52xx_spi_probe()
466 ms->gpio_cs[i] = gpio_cs; in mpc52xx_spi_probe()
506 gpio_free(ms->gpio_cs[i]); in mpc52xx_spi_probe()
508 kfree(ms->gpio_cs); in mpc52xx_spi_probe()
527 gpio_free(ms->gpio_cs[i]); in mpc52xx_spi_remove()
529 kfree(ms->gpio_cs); in mpc52xx_spi_remove()