Lines Matching refs:gpio_cs
57 int *gpio_cs; member
77 gpio_set_value(hw->gpio_cs[spi->chip_select], in tiny_spi_chipselect()
217 hw->gpio_cs = devm_kzalloc(&pdev->dev, in tiny_spi_of_probe()
220 if (!hw->gpio_cs) in tiny_spi_of_probe()
224 hw->gpio_cs[i] = of_get_gpio_flags(np, i, NULL); in tiny_spi_of_probe()
225 if (hw->gpio_cs[i] < 0) in tiny_spi_of_probe()
292 hw->gpio_cs = platp->gpio_cs; in tiny_spi_probe()
293 if (platp->gpio_cs_count && !platp->gpio_cs) { in tiny_spi_probe()
305 err = gpio_request(hw->gpio_cs[i], dev_name(&pdev->dev)); in tiny_spi_probe()
308 gpio_direction_output(hw->gpio_cs[i], 1); in tiny_spi_probe()
322 gpio_free(hw->gpio_cs[i]); in tiny_spi_probe()
336 gpio_free(hw->gpio_cs[i]); in tiny_spi_remove()