• Home
  • Raw
  • Download

Lines Matching full:fcp

3  * rcar-fcp.c  --  R-Car Frame Compression Processor Driver
20 #include <media/rcar-fcp.h>
36 * rcar_fcp_get - Find and acquire a reference to an FCP instance
37 * @np: Device node of the FCP instance
39 * Search the list of registered FCP instances for the instance corresponding to
42 * Return a pointer to the FCP instance, or an ERR_PTR if the instance can't be
47 struct rcar_fcp_device *fcp; in rcar_fcp_get() local
51 list_for_each_entry(fcp, &fcp_devices, list) { in rcar_fcp_get()
52 if (fcp->dev->of_node != np) in rcar_fcp_get()
55 get_device(fcp->dev); in rcar_fcp_get()
59 fcp = ERR_PTR(-EPROBE_DEFER); in rcar_fcp_get()
63 return fcp; in rcar_fcp_get()
68 * rcar_fcp_put - Release a reference to an FCP instance
69 * @fcp: The FCP instance
71 * Release the FCP instance acquired by a call to rcar_fcp_get().
73 void rcar_fcp_put(struct rcar_fcp_device *fcp) in rcar_fcp_put() argument
75 if (fcp) in rcar_fcp_put()
76 put_device(fcp->dev); in rcar_fcp_put()
80 struct device *rcar_fcp_get_device(struct rcar_fcp_device *fcp) in rcar_fcp_get_device() argument
82 return fcp->dev; in rcar_fcp_get_device()
87 * rcar_fcp_enable - Enable an FCP
88 * @fcp: The FCP instance
90 * Before any memory access through an FCP is performed by a module, the FCP
93 * call when no more memory transfer can occur through the FCP.
98 int rcar_fcp_enable(struct rcar_fcp_device *fcp) in rcar_fcp_enable() argument
102 if (!fcp) in rcar_fcp_enable()
105 ret = pm_runtime_get_sync(fcp->dev); in rcar_fcp_enable()
107 pm_runtime_put_noidle(fcp->dev); in rcar_fcp_enable()
116 * rcar_fcp_disable - Disable an FCP
117 * @fcp: The FCP instance
120 * reference counted a disable call may not disable the FCP synchronously.
122 void rcar_fcp_disable(struct rcar_fcp_device *fcp) in rcar_fcp_disable() argument
124 if (fcp) in rcar_fcp_disable()
125 pm_runtime_put(fcp->dev); in rcar_fcp_disable()
135 struct rcar_fcp_device *fcp; in rcar_fcp_probe() local
137 fcp = devm_kzalloc(&pdev->dev, sizeof(*fcp), GFP_KERNEL); in rcar_fcp_probe()
138 if (fcp == NULL) in rcar_fcp_probe()
141 fcp->dev = &pdev->dev; in rcar_fcp_probe()
143 fcp->dev->dma_parms = &fcp->dma_parms; in rcar_fcp_probe()
144 dma_set_max_seg_size(fcp->dev, DMA_BIT_MASK(32)); in rcar_fcp_probe()
149 list_add_tail(&fcp->list, &fcp_devices); in rcar_fcp_probe()
152 platform_set_drvdata(pdev, fcp); in rcar_fcp_probe()
159 struct rcar_fcp_device *fcp = platform_get_drvdata(pdev); in rcar_fcp_remove() local
162 list_del(&fcp->list); in rcar_fcp_remove()
181 .name = "rcar-fcp",
189 MODULE_ALIAS("rcar-fcp");
191 MODULE_DESCRIPTION("Renesas FCP Driver");