Lines Matching refs:mgr
32 static enum fpga_mgr_states alt_pr_fpga_state(struct fpga_manager *mgr) in alt_pr_fpga_state() argument
34 struct alt_pr_priv *priv = mgr->priv; in alt_pr_fpga_state()
72 dev_err(&mgr->dev, "encountered error code %d (%s) in %s()\n", in alt_pr_fpga_state()
77 static int alt_pr_fpga_write_init(struct fpga_manager *mgr, in alt_pr_fpga_write_init() argument
81 struct alt_pr_priv *priv = mgr->priv; in alt_pr_fpga_write_init()
85 dev_err(&mgr->dev, "%s Partial Reconfiguration flag not set\n", in alt_pr_fpga_write_init()
93 dev_err(&mgr->dev, in alt_pr_fpga_write_init()
104 static int alt_pr_fpga_write(struct fpga_manager *mgr, const char *buf, in alt_pr_fpga_write() argument
107 struct alt_pr_priv *priv = mgr->priv; in alt_pr_fpga_write()
138 if (alt_pr_fpga_state(mgr) == FPGA_MGR_STATE_WRITE_ERR) in alt_pr_fpga_write()
144 static int alt_pr_fpga_write_complete(struct fpga_manager *mgr, in alt_pr_fpga_write_complete() argument
150 switch (alt_pr_fpga_state(mgr)) { in alt_pr_fpga_write_complete()
155 dev_info(&mgr->dev, in alt_pr_fpga_write_complete()
165 dev_err(&mgr->dev, "timed out waiting for write to complete\n"); in alt_pr_fpga_write_complete()
179 struct fpga_manager *mgr; in alt_pr_register() local
194 mgr = devm_fpga_mgr_create(dev, dev_name(dev), &alt_pr_ops, priv); in alt_pr_register()
195 if (!mgr) in alt_pr_register()
198 return devm_fpga_mgr_register(dev, mgr); in alt_pr_register()