Lines Matching refs:gpio_cs
57 int *gpio_cs; member
77 gpio_set_value(hw->gpio_cs[spi->chip_select], in tiny_spi_chipselect()
216 hw->gpio_cs = devm_kzalloc(&pdev->dev, in tiny_spi_of_probe()
219 if (!hw->gpio_cs) in tiny_spi_of_probe()
223 hw->gpio_cs[i] = of_get_gpio_flags(np, i, NULL); in tiny_spi_of_probe()
224 if (hw->gpio_cs[i] < 0) in tiny_spi_of_probe()
288 hw->gpio_cs = platp->gpio_cs; in tiny_spi_probe()
289 if (platp->gpio_cs_count && !platp->gpio_cs) { in tiny_spi_probe()
301 err = gpio_request(hw->gpio_cs[i], dev_name(&pdev->dev)); in tiny_spi_probe()
304 gpio_direction_output(hw->gpio_cs[i], 1); in tiny_spi_probe()
318 gpio_free(hw->gpio_cs[i]); in tiny_spi_probe()
332 gpio_free(hw->gpio_cs[i]); in tiny_spi_remove()