Lines Matching refs:rproc

31   int rproc_boot(struct rproc *rproc)
36 Note: to use this function you should already have a valid rproc
41 void rproc_shutdown(struct rproc *rproc)
43 In case @rproc is still being used by an additional user(s), then
49 - we're not decrementing the rproc's refcount, only the power refcount.
50 which means that the @rproc handle stays valid even after
54 struct rproc *rproc_get_by_phandle(phandle phandle)
55 - Find an rproc handle using a device tree phandle. Returns the rproc
58 decrement it back once rproc isn't needed anymore.
64 /* in case we were given a valid 'rproc' handle */
65 int dummy_rproc_example(struct rproc *my_rproc)
87 struct rproc *rproc_alloc(struct device *dev, const char *name,
93 the name of the firmware to boot this rproc with, and the
94 length of private data needed by the allocating rproc driver (in bytes).
96 This function should be used by rproc implementations during
98 After creating an rproc handle using this function, and when ready,
101 On success, the new rproc is returned, and on failure, NULL.
103 Note: _never_ directly deallocate @rproc, even if it was not registered
106 void rproc_put(struct rproc *rproc)
107 - Free an rproc handle that was allocated by rproc_alloc.
109 rproc's refcount. It doesn't directly free rproc; that would happen
110 only if there are no other references to rproc and its refcount now
113 int rproc_add(struct rproc *rproc)
114 - Register @rproc with the remoteproc framework, after it has been
116 This is called by the platform-specific rproc implementation, whenever
120 context, which will look for virtio devices supported by the rproc's
126 int rproc_del(struct rproc *rproc)
128 This function should be called when the platform specific rproc
129 implementation decides to remove the rproc device. it should
133 After rproc_del() returns, @rproc is still valid, and its
136 Returns 0 on success and -EINVAL if @rproc isn't valid.
138 void rproc_report_crash(struct rproc *rproc, enum rproc_crash_type type)
141 platform specific rproc implementation. This should not be called from a
157 int (*start)(struct rproc *rproc);
158 int (*stop)(struct rproc *rproc);
159 void (*kick)(struct rproc *rproc, int vqid);
166 The ->start() handler takes an rproc handle and should then power on the
167 device and boot it (use rproc->priv to access platform-specific private data).
168 The boot address, in case needed, can be found in rproc->bootaddr (remoteproc
172 The ->stop() handler takes an rproc handle and powers the device down.
175 The ->kick() handler takes an rproc handle, and an index of a virtqueue
287 type, and hand those resources to the platform-specific rproc driver to handle.