Lines Matching refs:mgr
71 static bool s10_free_buffers(struct fpga_manager *mgr) in s10_free_buffers() argument
73 struct s10_priv *priv = mgr->priv; in s10_free_buffers()
98 static uint s10_free_buffer_count(struct fpga_manager *mgr) in s10_free_buffer_count() argument
100 struct s10_priv *priv = mgr->priv; in s10_free_buffer_count()
174 static int s10_ops_write_init(struct fpga_manager *mgr, in s10_ops_write_init() argument
178 struct s10_priv *priv = mgr->priv; in s10_ops_write_init()
217 s10_free_buffers(mgr); in s10_ops_write_init()
239 static int s10_send_buf(struct fpga_manager *mgr, const char *buf, size_t count) in s10_send_buf() argument
241 struct s10_priv *priv = mgr->priv; in s10_send_buf()
277 static int s10_ops_write(struct fpga_manager *mgr, const char *buf, in s10_ops_write() argument
280 struct s10_priv *priv = mgr->priv; in s10_ops_write()
290 while (count > 0 || s10_free_buffer_count(mgr) != NUM_SVC_BUFS) { in s10_ops_write()
294 sent = s10_send_buf(mgr, buf, count); in s10_ops_write()
301 if (s10_free_buffers(mgr)) in s10_ops_write()
341 if (!s10_free_buffers(mgr)) in s10_ops_write()
347 static int s10_ops_write_complete(struct fpga_manager *mgr, in s10_ops_write_complete() argument
350 struct s10_priv *priv = mgr->priv; in s10_ops_write_complete()
401 struct fpga_manager *mgr; in s10_probe() local
422 mgr = fpga_mgr_create(dev, "Stratix10 SOC FPGA Manager", in s10_probe()
424 if (!mgr) { in s10_probe()
430 ret = fpga_mgr_register(mgr); in s10_probe()
433 fpga_mgr_free(mgr); in s10_probe()
437 platform_set_drvdata(pdev, mgr); in s10_probe()
447 struct fpga_manager *mgr = platform_get_drvdata(pdev); in s10_remove() local
448 struct s10_priv *priv = mgr->priv; in s10_remove()
450 fpga_mgr_unregister(mgr); in s10_remove()
451 fpga_mgr_free(mgr); in s10_remove()