• Home
  • Raw
  • Download

Lines Matching refs:mgr

135 static int machxo2_cleanup(struct fpga_manager *mgr)  in machxo2_cleanup()  argument
137 struct spi_device *spi = mgr->priv; in machxo2_cleanup()
169 dev_err(&mgr->dev, "Cleanup failed\n"); in machxo2_cleanup()
174 static enum fpga_mgr_states machxo2_spi_state(struct fpga_manager *mgr) in machxo2_spi_state() argument
176 struct spi_device *spi = mgr->priv; in machxo2_spi_state()
187 static int machxo2_write_init(struct fpga_manager *mgr, in machxo2_write_init() argument
191 struct spi_device *spi = mgr->priv; in machxo2_write_init()
201 dev_err(&mgr->dev, in machxo2_write_init()
247 dev_err(&mgr->dev, "Error during FPGA init.\n"); in machxo2_write_init()
252 static int machxo2_write(struct fpga_manager *mgr, const char *buf, in machxo2_write() argument
255 struct spi_device *spi = mgr->priv; in machxo2_write()
264 dev_err(&mgr->dev, "Malformed payload.\n"); in machxo2_write()
281 dev_err(&mgr->dev, "Error loading the bitstream.\n"); in machxo2_write()
291 static int machxo2_write_complete(struct fpga_manager *mgr, in machxo2_write_complete() argument
294 struct spi_device *spi = mgr->priv; in machxo2_write_complete()
317 machxo2_cleanup(mgr); in machxo2_write_complete()
340 machxo2_cleanup(mgr); in machxo2_write_complete()
351 dev_err(&mgr->dev, "Refresh failed.\n"); in machxo2_write_complete()
366 struct fpga_manager *mgr; in machxo2_spi_probe() local
373 mgr = devm_fpga_mgr_register(dev, "Lattice MachXO2 SPI FPGA Manager", in machxo2_spi_probe()
375 return PTR_ERR_OR_ZERO(mgr); in machxo2_spi_probe()