Lines Matching refs:conf
32 struct xilinx_spi_conf *conf = mgr->priv; in get_done_gpio() local
35 ret = gpiod_get_value(conf->done); in get_done_gpio()
66 struct xilinx_spi_conf *conf = mgr->priv; in wait_for_init_b() local
69 if (conf->init_b) { in wait_for_init_b()
71 int ret = gpiod_get_value(conf->init_b); in wait_for_init_b()
98 struct xilinx_spi_conf *conf = mgr->priv; in xilinx_spi_write_init() local
106 gpiod_set_value(conf->prog_b, 1); in xilinx_spi_write_init()
110 gpiod_set_value(conf->prog_b, 0); in xilinx_spi_write_init()
114 gpiod_set_value(conf->prog_b, 0); in xilinx_spi_write_init()
133 struct xilinx_spi_conf *conf = mgr->priv; in xilinx_spi_write() local
144 ret = spi_write(conf->spi, fw_data, stride); in xilinx_spi_write()
156 static int xilinx_spi_apply_cclk_cycles(struct xilinx_spi_conf *conf) in xilinx_spi_apply_cclk_cycles() argument
158 struct spi_device *spi = conf->spi; in xilinx_spi_apply_cclk_cycles()
162 ret = spi_write(conf->spi, din_data, sizeof(din_data)); in xilinx_spi_apply_cclk_cycles()
172 struct xilinx_spi_conf *conf = mgr->priv; in xilinx_spi_write_complete() local
190 ret = xilinx_spi_apply_cclk_cycles(conf); in xilinx_spi_write_complete()
198 if (conf->init_b) { in xilinx_spi_write_complete()
199 ret = gpiod_get_value(conf->init_b); in xilinx_spi_write_complete()
225 struct xilinx_spi_conf *conf; in xilinx_spi_probe() local
228 conf = devm_kzalloc(&spi->dev, sizeof(*conf), GFP_KERNEL); in xilinx_spi_probe()
229 if (!conf) in xilinx_spi_probe()
232 conf->spi = spi; in xilinx_spi_probe()
235 conf->prog_b = devm_gpiod_get(&spi->dev, "prog_b", GPIOD_OUT_LOW); in xilinx_spi_probe()
236 if (IS_ERR(conf->prog_b)) in xilinx_spi_probe()
237 return dev_err_probe(&spi->dev, PTR_ERR(conf->prog_b), in xilinx_spi_probe()
240 conf->init_b = devm_gpiod_get_optional(&spi->dev, "init-b", GPIOD_IN); in xilinx_spi_probe()
241 if (IS_ERR(conf->init_b)) in xilinx_spi_probe()
242 return dev_err_probe(&spi->dev, PTR_ERR(conf->init_b), in xilinx_spi_probe()
245 conf->done = devm_gpiod_get(&spi->dev, "done", GPIOD_IN); in xilinx_spi_probe()
246 if (IS_ERR(conf->done)) in xilinx_spi_probe()
247 return dev_err_probe(&spi->dev, PTR_ERR(conf->done), in xilinx_spi_probe()
252 &xilinx_spi_ops, conf); in xilinx_spi_probe()