Lines Matching full:request
3 * Media device request objects
23 * enum media_request_state - media request state
26 * @MEDIA_REQUEST_STATE_VALIDATING: Validating the request, no state changes
29 * @MEDIA_REQUEST_STATE_COMPLETE: Completed, the request is done
30 * @MEDIA_REQUEST_STATE_CLEANING: Cleaning, the request is being re-inited
31 * @MEDIA_REQUEST_STATE_UPDATING: The request is being updated, i.e.
32 * request objects are being added,
34 * @NR_OF_MEDIA_REQUEST_STATE: The number of media request states, used
50 * struct media_request - Media device request
51 * @mdev: Media device this request belongs to
54 * @state: The state of the request
55 * @updating_count: count the number of request updates that are in progress
56 * @access_count: count the number of request accesses that are in progress
57 * @objects: List of @struct media_request_object request objects
58 * @num_incomplete_objects: The number of incomplete objects in the request
78 * media_request_lock_for_access - Lock the request to access its objects
80 * @req: The media request
82 * Use before accessing a completed request. A reference to the request must
103 * media_request_unlock_for_access - Unlock a request previously locked for
106 * @req: The media request
108 * Unlock a request that has previously been locked using
122 * media_request_lock_for_update - Lock the request for updating its objects
124 * @req: The media request
126 * Use before updating a request, i.e. adding, modifying or removing a request
127 * object in it. A reference to the request must be held during the update. This
151 * media_request_unlock_for_update - Unlock a request previously locked for
154 * @req: The media request
156 * Unlock a request that has previously been locked using
171 * media_request_get - Get the media request
173 * @req: The media request
175 * Get the media request.
183 * media_request_put - Put the media request
185 * @req: The media request
187 * Put the media request. The media request will be released
193 * media_request_get_by_fd - Get a media request by fd
195 * @mdev: Media device this request belongs to
196 * @request_fd: The file descriptor of the request
198 * Get the request represented by @request_fd that is owned
202 * by this driver. Return -EINVAL if the request was not found.
203 * Return the pointer to the request if found: the caller will
205 * request.
211 * media_request_alloc - Allocate the media request
213 * @mdev: Media device this request belongs to
214 * @alloc_fd: Store the request's file descriptor in this int
216 * Allocated the media request and put the fd in @alloc_fd.
240 * struct media_request_object_ops - Media request object operations
241 * @prepare: Validate and prepare the request object, optional.
242 * @unprepare: Unprepare the request object, optional.
243 * @queue: Queue the request object, optional.
244 * @unbind: Unbind the request object, optional.
245 * @release: Release the request object, required.
257 * request
261 * @req: the request this object belongs to (can be NULL)
266 * An object related to the request. This struct is always embedded in
267 * another struct that contains the actual data for this request object.
281 * media_request_object_get - Get a media request object
285 * Get a media request object.
293 * media_request_object_put - Put a media request object
297 * Put a media request object. Once all references are gone, the
303 * media_request_object_find - Find an object in a request
305 * @req: The media request
323 * media_request_object_init - Initialise a media request object
327 * Initialise a media request object. The object will be released using the
334 * media_request_object_bind - Bind a media request object to a request
336 * @req: The media request
342 * Bind this object to the request and set the ops and priv values of
346 * point in time, otherwise the request will never complete. When the
347 * request is released all completed objects will be unbound by the
348 * request core code.
350 * Buffer objects will be added to the end of the request's object
362 * media_request_object_unbind - Unbind a media request object
366 * Unbind the media request object from the request.
371 * media_request_object_complete - Mark the media request object as complete
375 * Mark the media request object as complete. Only bound objects can