Lines Matching defs:mgr
8 #include <linux/fpga/fpga-mgr.h>
72 static bool s10_free_buffers(struct fpga_manager *mgr)
74 struct s10_priv *priv = mgr->priv;
99 static uint s10_free_buffer_count(struct fpga_manager *mgr)
101 struct s10_priv *priv = mgr->priv;
175 static int s10_ops_write_init(struct fpga_manager *mgr,
179 struct s10_priv *priv = mgr->priv;
218 s10_free_buffers(mgr);
234 * mgr: fpga manager struct
240 static int s10_send_buf(struct fpga_manager *mgr, const char *buf, size_t count)
242 struct s10_priv *priv = mgr->priv;
278 static int s10_ops_write(struct fpga_manager *mgr, const char *buf,
281 struct s10_priv *priv = mgr->priv;
291 while (count > 0 || s10_free_buffer_count(mgr) != NUM_SVC_BUFS) {
295 sent = s10_send_buf(mgr, buf, count);
302 if (s10_free_buffers(mgr))
342 if (!s10_free_buffers(mgr))
348 static int s10_ops_write_complete(struct fpga_manager *mgr,
351 struct s10_priv *priv = mgr->priv;
402 struct fpga_manager *mgr;
423 mgr = fpga_mgr_register(dev, "Stratix10 SOC FPGA Manager",
425 if (IS_ERR(mgr)) {
427 ret = PTR_ERR(mgr);
431 platform_set_drvdata(pdev, mgr);
441 struct fpga_manager *mgr = platform_get_drvdata(pdev);
442 struct s10_priv *priv = mgr->priv;
444 fpga_mgr_unregister(mgr);
451 {.compatible = "intel,stratix10-soc-fpga-mgr"},
452 {.compatible = "intel,agilex-soc-fpga-mgr"},