Lines Matching defs:mgr
23 #include <linux/fpga/fpga-mgr.h>
166 * dfl_fme_create_mgr - create fpga mgr platform device as child device
170 * Return: mgr platform device if successful, and error code otherwise.
176 struct platform_device *mgr, *fme = pdata->dev;
186 * Each FME has only one fpga-mgr, so allocate platform device using
189 mgr = platform_device_alloc(DFL_FPGA_FME_MGR, fme->id);
190 if (!mgr)
193 mgr->dev.parent = &fme->dev;
195 ret = platform_device_add_data(mgr, &mgr_pdata, sizeof(mgr_pdata));
199 ret = platform_device_add(mgr);
203 return mgr;
206 platform_device_put(mgr);
211 * dfl_fme_destroy_mgr - destroy fpga mgr platform device
218 platform_device_unregister(priv->mgr);
294 * @mgr: mgr platform device needed for region
302 struct platform_device *mgr,
314 region_pdata.mgr = mgr;
375 struct platform_device *mgr;
391 /* Create fpga mgr platform device */
392 mgr = dfl_fme_create_mgr(pdata, feature);
393 if (IS_ERR(mgr)) {
394 dev_err(&pdev->dev, "fail to create fpga mgr pdev\n");
398 priv->mgr = mgr;
417 fme_region = dfl_fme_create_region(pdata, mgr,