Lines Matching refs:gpio_cs
54 int *gpio_cs; member
74 gpio_set_value(hw->gpio_cs[spi->chip_select], in tiny_spi_chipselect()
213 hw->gpio_cs = devm_kcalloc(&pdev->dev, in tiny_spi_of_probe()
216 if (!hw->gpio_cs) in tiny_spi_of_probe()
220 hw->gpio_cs[i] = of_get_gpio_flags(np, i, NULL); in tiny_spi_of_probe()
221 if (hw->gpio_cs[i] < 0) in tiny_spi_of_probe()
283 hw->gpio_cs = platp->gpio_cs; in tiny_spi_probe()
284 if (platp->gpio_cs_count && !platp->gpio_cs) { in tiny_spi_probe()
296 err = gpio_request(hw->gpio_cs[i], dev_name(&pdev->dev)); in tiny_spi_probe()
299 gpio_direction_output(hw->gpio_cs[i], 1); in tiny_spi_probe()
313 gpio_free(hw->gpio_cs[i]); in tiny_spi_probe()
327 gpio_free(hw->gpio_cs[i]); in tiny_spi_remove()