id stringlengths 4 63 | text stringlengths 153 8.81M |
|---|---|
v4l2_detect_gtf(9) | NAME v4l2_detect_gtf - detect if the given timings follow the GTF standard
SYNOPSIS bool v4l2_detect_gtf (unsigned int frame_height , unsigned int hfreq , unsigned int vsync , u32 polarities , bool interlaced , struct v4l2_fract aspect , const struct v4l2_dv_timings_cap *cap , struct v4l2_dv_timings *fmt );
ARGUMENTS... |
v4l2_device_call_all(9) | NAME v4l2_device_call_all - Calls the specified operation for all subdevs matching the &v4l2_subdev.grp_id, as assigned by the bridge driver.
SYNOPSIS v4l2_device_call_all (v4l2_dev , grpid , o , f , args... );
ARGUMENTS v4l2_dev struct v4l2_device owning the sub-devices to iterate over.
grpid struct... |
v4l2_device_call_until_err(9) | NAME v4l2_device_call_until_err - Calls the specified operation for all subdevs matching the &v4l2_subdev.grp_id, as assigned by the bridge driver, until an error occurs.
SYNOPSIS v4l2_device_call_until_err (v4l2_dev , grpid , o , f , args... );
ARGUMENTS v4l2_dev struct v4l2_device owning the sub-devices to itera... |
v4l2_device_disconnect(9) | NAME v4l2_device_disconnect - Change V4L2 device state to disconnected.
SYNOPSIS void v4l2_device_disconnect (struct v4l2_device *v4l2_dev );
ARGUMENTS v4l2_dev pointer to struct v4l2_device
DESCRIPTION Should be called when the USB parent disconnects. Since the parent disappears, this ensures that v4l2_dev does... |
v4l2_device_for_each_subdev(9) | NAME v4l2_device_for_each_subdev - Helper macro that interates over all sub-devices of a given &v4l2_device.
SYNOPSIS v4l2_device_for_each_subdev (sd , v4l2_dev );
ARGUMENTS sd pointer that will be filled by the macro with all struct v4l2_subdev pointer used as an iterator by the loop.
v4l2_dev st... |
v4l2_device_get(9) | NAME v4l2_device_get - gets a V4L2 device reference
SYNOPSIS void v4l2_device_get (struct v4l2_device *v4l2_dev );
ARGUMENTS v4l2_dev pointer to struct v4l2_device
DESCRIPTION This is an ancillary routine meant to increment the usage for the struct v4l2_device pointed by v4l2_dev.
SEE ALSO Kernel file ./include/... |
v4l2_device_has_op(9) | NAME v4l2_device_has_op - checks if any subdev with matching grpid has a given ops.
SYNOPSIS v4l2_device_has_op (v4l2_dev , grpid , o , f );
ARGUMENTS v4l2_dev struct v4l2_device owning the sub-devices to iterate over.
grpid struct v4l2_subdev->grp_id group ID to match. Use 0 to match them all.
... |
v4l2_device_mask_call_all(9) | NAME v4l2_device_mask_call_all - Calls the specified operation for all subdevices where a group ID matches a specified bitmask.
SYNOPSIS v4l2_device_mask_call_all (v4l2_dev , grpmsk , o , f , args... );
ARGUMENTS v4l2_dev struct v4l2_device owning the sub-devices to iterate over.
grpmsk bitmask to be ... |
v4l2_device_mask_call_until_err(9) | NAME v4l2_device_mask_call_until_err - Calls the specified operation for all subdevices where a group ID matches a specified bitmask.
SYNOPSIS v4l2_device_mask_call_until_err (v4l2_dev , grpmsk , o , f , args... );
ARGUMENTS v4l2_dev struct v4l2_device owning the sub-devices to iterate over.
grpmsk bi... |
v4l2_device_mask_has_op(9) | NAME v4l2_device_mask_has_op - checks if any subdev with matching group mask has a given ops.
SYNOPSIS v4l2_device_mask_has_op (v4l2_dev , grpmsk , o , f );
ARGUMENTS v4l2_dev struct v4l2_device owning the sub-devices to iterate over.
grpmsk bitmask to be checked against struct v4l2_subdev->grp_id gro... |
v4l2_device_put(9) | NAME v4l2_device_put - puts a V4L2 device reference
SYNOPSIS int v4l2_device_put (struct v4l2_device *v4l2_dev );
ARGUMENTS v4l2_dev pointer to struct v4l2_device
DESCRIPTION This is an ancillary routine meant to decrement the usage for the struct v4l2_device pointed by v4l2_dev.
SEE ALSO Kernel file ./include/m... |
v4l2_device_register(9) | NAME v4l2_device_register - Initialize v4l2_dev and make @dev->driver_data point to @v4l2_dev.
SYNOPSIS int v4l2_device_register (struct device *dev , struct v4l2_device *v4l2_dev );
ARGUMENTS dev pointer to struct device
v4l2_dev pointer to struct v4l2_device
DESCRIPTION .. note:: dev may be NULL... |
v4l2_device_register_ro_subdev_nodes(9) | NAME v4l2_device_register_ro_subdev_nodes - Registers subdevices device nodes in read-only mode
SYNOPSIS int v4l2_device_register_ro_subdev_nodes (struct v4l2_device *v4l2_dev );
ARGUMENTS v4l2_dev pointer to struct v4l2_device
DESCRIPTION Internally calls __v4l2_device_register_subdev_nodes. See its documentatio... |
v4l2_device_register_subdev(9) | NAME v4l2_device_register_subdev - Registers a subdev with a v4l2 device.
SYNOPSIS v4l2_device_register_subdev (v4l2_dev , sd );
ARGUMENTS v4l2_dev pointer to struct v4l2_device
sd pointer to struct v4l2_subdev
DESCRIPTION While registered, the subdev module is marked as in-use. An error is retu... |
v4l2_device_register_subdev_nodes(9) | NAME v4l2_device_register_subdev_nodes - Registers subdevices device nodes with unrestricted access to the subdevice userspace operations
SYNOPSIS int v4l2_device_register_subdev_nodes (struct v4l2_device *v4l2_dev );
ARGUMENTS v4l2_dev pointer to struct v4l2_device
DESCRIPTION Internally calls __v4l2_device_regi... |
v4l2_device_set_name(9) | NAME v4l2_device_set_name - Optional function to initialize the name field of struct &v4l2_device
SYNOPSIS int v4l2_device_set_name (struct v4l2_device *v4l2_dev , const char *basename , atomic_t *instance );
ARGUMENTS v4l2_dev pointer to struct v4l2_device
basename base name for the device name
... |
v4l2_device_supports_requests(9) | NAME v4l2_device_supports_requests - Test if requests are supported.
SYNOPSIS bool v4l2_device_supports_requests (struct v4l2_device *v4l2_dev );
ARGUMENTS v4l2_dev pointer to struct v4l2_device
SEE ALSO Kernel file ./include/media/v4l2-device.h struct v4l2_device(9), v4l2_device_get(9), v4l2_device_put(9), v... |
v4l2_device_unregister(9) | NAME v4l2_device_unregister - Unregister all sub-devices and any other resources related to @v4l2_dev.
SYNOPSIS void v4l2_device_unregister (struct v4l2_device *v4l2_dev );
ARGUMENTS v4l2_dev pointer to struct v4l2_device
SEE ALSO Kernel file ./include/media/v4l2-device.h struct v4l2_device(9), v4l2_device_g... |
v4l2_device_unregister_subdev(9) | NAME v4l2_device_unregister_subdev - Unregisters a subdev with a v4l2 device.
SYNOPSIS void v4l2_device_unregister_subdev (struct v4l2_subdev *sd );
ARGUMENTS sd pointer to struct v4l2_subdev
DESCRIPTION .. note :: Can also be called if the subdev wasn't registered. In such case, it will do nothing.
SEE AL... |
v4l2_disable_ioctl(9) | NAME v4l2_disable_ioctl - mark that a given command isn't implemented. shouldn't use core locking
SYNOPSIS void v4l2_disable_ioctl (struct video_device *vdev , unsigned int cmd );
ARGUMENTS vdev pointer to struct video_device
cmd ioctl command
DESCRIPTION This function allows drivers to provid... |
v4l2_dv_timings_aspect_ratio(9) | NAME v4l2_dv_timings_aspect_ratio - calculate the aspect ratio based on the v4l2_dv_timings information.
SYNOPSIS struct v4l2_fract v4l2_dv_timings_aspect_ratio (const struct v4l2_dv_timings *t );
ARGUMENTS t the timings data.
SEE ALSO Kernel file ./include/media/v4l2-dv-timings.h v4l2_calc_timeperf... |
v4l2_enum_dv_timings_cap(9) | NAME v4l2_enum_dv_timings_cap - Helper function to enumerate possible DV timings based on capabilities
SYNOPSIS int v4l2_enum_dv_timings_cap (struct v4l2_enum_dv_timings *t , const struct v4l2_dv_timings_cap *cap , v4l2_check_dv_timings_fnc fnc , void *fnc_handle );
ARGUMENTS t the v4l2_enum_dv_timings stru... |
v4l2_event_dequeue(9) | NAME v4l2_event_dequeue - Dequeue events from video device.
SYNOPSIS int v4l2_event_dequeue (struct v4l2_fh *fh , struct v4l2_event *event , int nonblocking );
ARGUMENTS fh pointer to struct v4l2_fh
event pointer to struct v4l2_event
nonblocking if not zero, waits for an event to arrive... |
v4l2_event_pending(9) | NAME v4l2_event_pending - Check if an event is available
SYNOPSIS int v4l2_event_pending (struct v4l2_fh *fh );
ARGUMENTS fh pointer to struct v4l2_fh
DESCRIPTION Returns the number of pending events.
SEE ALSO Kernel file ./include/media/v4l2-event.h struct v4l2_kevent(9), struct v4l2_subscribed_even... |
v4l2_event_queue(9) | NAME v4l2_event_queue - Queue events to video device.
SYNOPSIS void v4l2_event_queue (struct video_device *vdev , const struct v4l2_event *ev );
ARGUMENTS vdev pointer to struct video_device
ev pointer to struct v4l2_event
DESCRIPTION The event will be queued for all struct v4l2_fh file handl... |
v4l2_event_queue_fh(9) | NAME v4l2_event_queue_fh - Queue events to video device.
SYNOPSIS void v4l2_event_queue_fh (struct v4l2_fh *fh , const struct v4l2_event *ev );
ARGUMENTS fh pointer to struct v4l2_fh
ev pointer to struct v4l2_event
DESCRIPTION The event will be queued only for the specified struct v4l2_fh f... |
v4l2_event_subdev_unsubscribe(9) | NAME v4l2_event_subdev_unsubscribe - Subdev variant of v4l2_event_unsubscribe()
SYNOPSIS int v4l2_event_subdev_unsubscribe (struct v4l2_subdev *sd , struct v4l2_fh *fh , struct v4l2_event_subscription *sub );
ARGUMENTS sd pointer to struct v4l2_subdev
fh pointer to struct v4l2_fh
sub... |
v4l2_event_subscribe(9) | NAME v4l2_event_subscribe - Subscribes to an event
SYNOPSIS int v4l2_event_subscribe (struct v4l2_fh *fh , const struct v4l2_event_subscription *sub , unsigned int elems , const struct v4l2_subscribed_event_ops *ops );
ARGUMENTS fh pointer to struct v4l2_fh
sub pointer to struct v4l2_event_su... |
v4l2_event_unsubscribe(9) | NAME v4l2_event_unsubscribe - Unsubscribes to an event
SYNOPSIS int v4l2_event_unsubscribe (struct v4l2_fh *fh , const struct v4l2_event_subscription *sub );
ARGUMENTS fh pointer to struct v4l2_fh
sub pointer to struct v4l2_event_subscription
SEE ALSO Kernel file ./include/media/v4l2-eve... |
v4l2_event_unsubscribe_all(9) | NAME v4l2_event_unsubscribe_all - Unsubscribes to all events
SYNOPSIS void v4l2_event_unsubscribe_all (struct v4l2_fh *fh );
ARGUMENTS fh pointer to struct v4l2_fh
SEE ALSO Kernel file ./include/media/v4l2-event.h struct v4l2_kevent(9), struct v4l2_subscribed_event_ops(9), struct v4l2_subscr... |
v4l2_event_wake_all(9) | NAME v4l2_event_wake_all - Wake all filehandles.
SYNOPSIS void v4l2_event_wake_all (struct video_device *vdev );
ARGUMENTS vdev pointer to struct video_device
DESCRIPTION Used when unregistering a video device.
SEE ALSO Kernel file ./include/media/v4l2-event.h struct v4l2_kevent(9), struct v4l2_subscribed... |
v4l2_fh_add(9) | NAME v4l2_fh_add - Add the fh to the list of file handles on a video_device.
SYNOPSIS void v4l2_fh_add (struct v4l2_fh *fh , struct file *filp );
ARGUMENTS fh pointer to struct v4l2_fh
filp pointer to struct file associated with fh
DESCRIPTION The function sets filp->private_data to point to ... |
v4l2_fh_del(9) | NAME v4l2_fh_del - Remove file handle from the list of file handles.
SYNOPSIS void v4l2_fh_del (struct v4l2_fh *fh , struct file *filp );
ARGUMENTS fh pointer to struct v4l2_fh
filp pointer to struct file associated with fh
DESCRIPTION The function resets filp->private_data to NULL. .. note:... |
v4l2_fh_exit(9) | NAME v4l2_fh_exit - Release resources related to a file handle.
SYNOPSIS void v4l2_fh_exit (struct v4l2_fh *fh );
ARGUMENTS fh pointer to struct v4l2_fh
DESCRIPTION Parts of the V4L2 framework using the v4l2_fh must release their resources here, too. .. note:: Must be called in v4l2_file_operations->releas... |
v4l2_fh_init(9) | NAME v4l2_fh_init - Initialise the file handle.
SYNOPSIS void v4l2_fh_init (struct v4l2_fh *fh , struct video_device *vdev );
ARGUMENTS fh pointer to struct v4l2_fh
vdev pointer to struct video_device
DESCRIPTION Parts of the V4L2 framework using the file handles should be initialised in this... |
v4l2_fh_is_singular(9) | NAME v4l2_fh_is_singular - Returns 1 if this filehandle is the only filehandle opened for the associated video_device.
SYNOPSIS int v4l2_fh_is_singular (struct v4l2_fh *fh );
ARGUMENTS fh pointer to struct v4l2_fh
DESCRIPTION If fh is NULL, then it returns 0.
SEE ALSO Kernel file ./include/media/v4l2-fh.h ... |
v4l2_fh_is_singular_file(9) | NAME v4l2_fh_is_singular_file - Returns 1 if this filehandle is the only filehandle opened for the associated video_device.
SYNOPSIS int v4l2_fh_is_singular_file (struct file *filp );
ARGUMENTS filp pointer to struct file
DESCRIPTION This is a helper function variant of v4l2_fh_is_singular with uses struct fi... |
v4l2_fh_open(9) | NAME v4l2_fh_open - Ancillary routine that can be used as the open op of v4l2_file_operations.
SYNOPSIS int v4l2_fh_open (struct file *filp );
ARGUMENTS filp pointer to struct file
DESCRIPTION It allocates a v4l2_fh and inits and adds it to the struct video_device associated with the file pointer. On error f... |
v4l2_fh_release(9) | NAME v4l2_fh_release - Ancillary routine that can be used as the release op of v4l2_file_operations.
SYNOPSIS int v4l2_fh_release (struct file *filp );
ARGUMENTS filp pointer to struct file
DESCRIPTION It deletes and exits the v4l2_fh associated with the file pointer and frees it. It will do nothing if filp->... |
v4l2_fill_mbus_format(9) | NAME v4l2_fill_mbus_format - Ancillary routine that fills a &struct v4l2_mbus_framefmt from a &struct v4l2_pix_format and a data format code.
SYNOPSIS void v4l2_fill_mbus_format (struct v4l2_mbus_framefmt *mbus_fmt , const struct v4l2_pix_format *pix_fmt , u32 code );
ARGUMENTS mbus_fmt pointer to struct v4l2_mbus... |
v4l2_fill_mbus_format_mplane(9) | NAME v4l2_fill_mbus_format_mplane - Ancillary routine that fills a &struct v4l2_mbus_framefmt from a &struct v4l2_pix_format_mplane.
SYNOPSIS void v4l2_fill_mbus_format_mplane (struct v4l2_mbus_framefmt *mbus_fmt , const struct v4l2_pix_format_mplane *pix_mp_fmt );
ARGUMENTS mbus_fmt pointer to struct v4l2_mbus_fr... |
v4l2_fill_pix_format(9) | NAME v4l2_fill_pix_format - Ancillary routine that fills a &struct v4l2_pix_format fields from a &struct v4l2_mbus_framefmt.
SYNOPSIS void v4l2_fill_pix_format (struct v4l2_pix_format *pix_fmt , const struct v4l2_mbus_framefmt *mbus_fmt );
ARGUMENTS pix_fmt pointer to struct v4l2_pix_format to be filled
m... |
v4l2_fill_pix_format_mplane(9) | NAME v4l2_fill_pix_format_mplane - Ancillary routine that fills a &struct v4l2_pix_format_mplane fields from a media bus structure.
SYNOPSIS void v4l2_fill_pix_format_mplane (struct v4l2_pix_format_mplane *pix_mp_fmt , const struct v4l2_mbus_framefmt *mbus_fmt );
ARGUMENTS pix_mp_fmt pointer to struct v4l2_pix_forma... |
v4l2_find_dv_timings_cap(9) | NAME v4l2_find_dv_timings_cap - Find the closest timings struct
SYNOPSIS bool v4l2_find_dv_timings_cap (struct v4l2_dv_timings *t , const struct v4l2_dv_timings_cap *cap , unsigned pclock_delta , v4l2_check_dv_timings_fnc fnc , void *fnc_handle );
ARGUMENTS t the v4l2_enum_dv_timings struct.
cap ... |
v4l2_find_dv_timings_cea861_vic(9) | NAME v4l2_find_dv_timings_cea861_vic - find timings based on CEA-861 VIC
SYNOPSIS bool v4l2_find_dv_timings_cea861_vic (struct v4l2_dv_timings *t , u8 vic );
ARGUMENTS t the timings data.
vic CEA-861 VIC code
DESCRIPTION On success it will fill in t with the found timings and it returns tru... |
v4l2_find_nearest_size(9) | NAME v4l2_find_nearest_size - Find the nearest size among a discrete set of resolutions contained in an array of a driver specific struct
SYNOPSIS v4l2_find_nearest_size (array , array_size , width_field , height_field , width , height );
ARGUMENTS array a driver specific array of image sizes
array_size... |
v4l2_find_nearest_size_conditional(9) | NAME v4l2_find_nearest_size_conditional - Find the nearest size among a discrete set of resolutions contained in an array of a driver specific struct, with conditionally exlusion of certain modes
SYNOPSIS v4l2_find_nearest_size_conditional (array , array_size , width_field , height_field , width , height , func , cont... |
v4l2_flash_indicator_init(9) | NAME v4l2_flash_indicator_init - initialize V4L2 indicator sub-device
SYNOPSIS struct v4l2_flash * v4l2_flash_indicator_init (struct device *dev , struct fwnode_handle *fwn , struct led_classdev *iled_cdev , struct v4l2_flash_config *config );
ARGUMENTS dev flash device, e.g. an I2C device
fwn ... |
v4l2_flash_init(9) | NAME v4l2_flash_init - initialize V4L2 flash led sub-device
SYNOPSIS struct v4l2_flash * v4l2_flash_init (struct device *dev , struct fwnode_handle *fwn , struct led_classdev_flash *fled_cdev , const struct v4l2_flash_ops *ops , struct v4l2_flash_config *config );
ARGUMENTS dev flash device, e.g. an I2C devic... |
v4l2_flash_release(9) | NAME v4l2_flash_release - release V4L2 Flash sub-device
SYNOPSIS void v4l2_flash_release (struct v4l2_flash *v4l2_flash );
ARGUMENTS v4l2_flash the V4L2 Flash sub-device to release
DESCRIPTION Release V4L2 Flash sub-device.
SEE ALSO Kernel file ./include/media/v4l2-flash-led-class.h struct v4l2_flash_ctrl_data... |
v4l2_fwnode_connector_add_link(9) | NAME v4l2_fwnode_connector_add_link - add a link between a connector node and a v4l2-subdev node.
SYNOPSIS int v4l2_fwnode_connector_add_link (struct fwnode_handle *fwnode , struct v4l2_fwnode_connector *connector );
ARGUMENTS fwnode pointer to the subdev endpoint's fwnode handle where the connector is connected... |
v4l2_fwnode_connector_free(9) | NAME v4l2_fwnode_connector_free - free the V4L2 connector acquired memory
SYNOPSIS void v4l2_fwnode_connector_free (struct v4l2_fwnode_connector *connector );
ARGUMENTS connector the V4L2 connector resources of which are to be released
DESCRIPTION Free all allocated memory and put all links acquired by v4l2_f... |
v4l2_fwnode_connector_parse(9) | NAME v4l2_fwnode_connector_parse - initialize the 'struct v4l2_fwnode_connector'
SYNOPSIS int v4l2_fwnode_connector_parse (struct fwnode_handle *fwnode , struct v4l2_fwnode_connector *connector );
ARGUMENTS fwnode pointer to the subdev endpoint's fwnode handle where the connector is connected to or to the connec... |
v4l2_fwnode_device_parse(9) | NAME v4l2_fwnode_device_parse - parse fwnode device properties
SYNOPSIS int v4l2_fwnode_device_parse (struct device *dev , struct v4l2_fwnode_device_properties *props );
ARGUMENTS dev pointer to struct device
props pointer to struct v4l2_fwnode_device_properties where to store the parsed propert... |
v4l2_fwnode_endpoint_alloc_parse(9) | NAME v4l2_fwnode_endpoint_alloc_parse - parse all fwnode node properties
SYNOPSIS int v4l2_fwnode_endpoint_alloc_parse (struct fwnode_handle *fwnode , struct v4l2_fwnode_endpoint *vep );
ARGUMENTS fwnode pointer to the endpoint's fwnode handle (may be NULL)
vep pointer to the V4L2 fwnode data str... |
v4l2_fwnode_endpoint_free(9) | NAME v4l2_fwnode_endpoint_free - free the V4L2 fwnode acquired by v4l2_fwnode_endpoint_alloc_parse()
SYNOPSIS void v4l2_fwnode_endpoint_free (struct v4l2_fwnode_endpoint *vep );
ARGUMENTS vep the V4L2 fwnode the resources of which are to be released
DESCRIPTION It is safe to call this function with NULL argu... |
v4l2_fwnode_endpoint_parse(9) | NAME v4l2_fwnode_endpoint_parse - parse all fwnode node properties
SYNOPSIS int v4l2_fwnode_endpoint_parse (struct fwnode_handle *fwnode , struct v4l2_fwnode_endpoint *vep );
ARGUMENTS fwnode pointer to the endpoint's fwnode handle (may be NULL)
vep pointer to the V4L2 fwnode data structure
DESC... |
v4l2_fwnode_parse_link(9) | NAME v4l2_fwnode_parse_link - parse a link between two endpoints
SYNOPSIS int v4l2_fwnode_parse_link (struct fwnode_handle *fwnode , struct v4l2_fwnode_link *link );
ARGUMENTS fwnode pointer to the endpoint's fwnode at the local end of the link
link pointer to the V4L2 fwnode link data structure
... |
v4l2_fwnode_put_link(9) | NAME v4l2_fwnode_put_link - drop references to nodes in a link
SYNOPSIS void v4l2_fwnode_put_link (struct v4l2_fwnode_link *link );
ARGUMENTS link pointer to the V4L2 fwnode link data structure
DESCRIPTION Drop references to the local and remote nodes in the link. This function must be called on every link pa... |
v4l2_g_ctrl(9) | NAME v4l2_g_ctrl - Helper function to implement :ref:`VIDIOC_G_CTRL <vidioc_g_ctrl>` ioctl
SYNOPSIS int v4l2_g_ctrl (struct v4l2_ctrl_handler *hdl , struct v4l2_control *ctrl );
ARGUMENTS hdl pointer to struct v4l2_ctrl_handler
ctrl pointer to struct v4l2_control
DESCRIPTION If hdl == NULL the... |
v4l2_g_ext_ctrls(9) | NAME v4l2_g_ext_ctrls - Helper function to implement :ref:`VIDIOC_G_EXT_CTRLS <vidioc_g_ext_ctrls>` ioctl
SYNOPSIS int v4l2_g_ext_ctrls (struct v4l2_ctrl_handler *hdl , struct video_device *vdev , struct media_device *mdev , struct v4l2_ext_controls *c );
ARGUMENTS hdl pointer to struct v4l2_ctrl_handler
... |
v4l2_g_parm_cap(9) | NAME v4l2_g_parm_cap - helper routine for vidioc_g_parm to fill this in by calling the get_frame_interval op of the given subdev. It only works for V4L2_BUF_TYPE_VIDEO_CAPTURE(_MPLANE), hence the _cap in the function name.
SYNOPSIS int v4l2_g_parm_cap (struct video_device *vdev , struct v4l2_subdev *sd , struct v4l2_s... |
v4l2_get_active_data_lanes(9) | NAME v4l2_get_active_data_lanes - Get number of active data lanes from driver
SYNOPSIS int v4l2_get_active_data_lanes (const struct media_pad *pad , unsigned int max_data_lanes );
ARGUMENTS pad The transmitter's media pad.
max_data_lanes
The maximum number of active data lanes suppo... |
v4l2_get_edid_phys_addr(9) | NAME v4l2_get_edid_phys_addr - find and return the physical address
SYNOPSIS u16 v4l2_get_edid_phys_addr (const u8 *edid , unsigned int size , unsigned int *offset );
ARGUMENTS edid pointer to the EDID data
size size in bytes of the EDID data
offset If not NULL then the location of ... |
v4l2_get_link_freq(9) | NAME v4l2_get_link_freq - Get link rate from transmitter
SYNOPSIS s64 v4l2_get_link_freq (const struct media_pad *pad , unsigned int mul , unsigned int div );
ARGUMENTS pad The transmitter's media pad
mul The multiplier between pixel rate and link frequency. Bits per pixel on D-PHY, samples pe... |
v4l2_get_subdev_hostdata(9) | NAME v4l2_get_subdev_hostdata - Gets V4L2 dev private data
SYNOPSIS void * v4l2_get_subdev_hostdata (const struct v4l2_subdev *sd );
ARGUMENTS sd pointer to struct v4l2_subdev
DESCRIPTION Returns the pointer to the private host data to be stored.
SEE ALSO Kernel file ./include/media/v4l2-subdev.h struct... |
v4l2_get_subdevdata(9) | NAME v4l2_get_subdevdata - Gets V4L2 dev private device data
SYNOPSIS void * v4l2_get_subdevdata (const struct v4l2_subdev *sd );
ARGUMENTS sd pointer to struct v4l2_subdev
DESCRIPTION Returns the pointer to the private device data to be stored.
SEE ALSO Kernel file ./include/media/v4l2-subdev.h struct ... |
v4l2_h264_build_b_ref_lists(9) | NAME v4l2_h264_build_b_ref_lists - Build the B0/B1 reference lists
SYNOPSIS void v4l2_h264_build_b_ref_lists (const struct v4l2_h264_reflist_builder *builder , struct v4l2_h264_reference *b0_reflist , struct v4l2_h264_reference *b1_reflist );
ARGUMENTS builder reference list builder context
b0_reflist 32... |
v4l2_h264_build_p_ref_list(9) | NAME v4l2_h264_build_p_ref_list - Build the P reference list
SYNOPSIS void v4l2_h264_build_p_ref_list (const struct v4l2_h264_reflist_builder *builder , struct v4l2_h264_reference *reflist );
ARGUMENTS builder reference list builder context
reflist 32 sized array used to store the P reference list. Ea... |
v4l2_h264_init_reflist_builder(9) | NAME v4l2_h264_init_reflist_builder - Initialize a P/B0/B1 reference list builder
SYNOPSIS void v4l2_h264_init_reflist_builder (struct v4l2_h264_reflist_builder *b , const struct v4l2_ctrl_h264_decode_params *dec_params , const struct v4l2_ctrl_h264_sps *sps , const struct v4l2_h264_dpb_entry dpb[V4... |
v4l2_i2c_new_subdev(9) | NAME v4l2_i2c_new_subdev - Load an i2c module and return an initialized &struct v4l2_subdev.
SYNOPSIS struct v4l2_subdev * v4l2_i2c_new_subdev (struct v4l2_device *v4l2_dev , struct i2c_adapter *adapter , const char *client_type , u8 addr , const unsigned short *probe_addrs );
ARGUMENTS v4l2_dev pointer to struct ... |
v4l2_i2c_new_subdev_board(9) | NAME v4l2_i2c_new_subdev_board - Load an i2c module and return an initialized &struct v4l2_subdev.
SYNOPSIS struct v4l2_subdev * v4l2_i2c_new_subdev_board (struct v4l2_device *v4l2_dev , struct i2c_adapter *adapter , struct i2c_board_info *info , const unsigned short *probe_addrs );
ARGUMENTS v4l2_dev pointer to s... |
v4l2_i2c_subdev_addr(9) | NAME v4l2_i2c_subdev_addr - returns i2c client address of &struct v4l2_subdev.
SYNOPSIS unsigned short v4l2_i2c_subdev_addr (struct v4l2_subdev *sd );
ARGUMENTS sd pointer to struct v4l2_subdev
DESCRIPTION Returns the address of an I2C sub-device
SEE ALSO Kernel file ./include/media/v4l2-common.h v4l... |
v4l2_i2c_subdev_init(9) | NAME v4l2_i2c_subdev_init - Initializes a &struct v4l2_subdev with data from an i2c_client struct.
SYNOPSIS void v4l2_i2c_subdev_init (struct v4l2_subdev *sd , struct i2c_client *client , const struct v4l2_subdev_ops *ops );
ARGUMENTS sd pointer to struct v4l2_subdev
client pointer to struct i2c... |
v4l2_i2c_subdev_set_name(9) | NAME v4l2_i2c_subdev_set_name - Set name for an I²C sub-device
SYNOPSIS void v4l2_i2c_subdev_set_name (struct v4l2_subdev *sd , struct i2c_client *client , const char *devname , const char *postfix );
ARGUMENTS sd pointer to struct v4l2_subdev
client pointer to struct i2c_client
devname ... |
v4l2_i2c_subdev_unregister(9) | NAME v4l2_i2c_subdev_unregister - Unregister a v4l2_subdev
SYNOPSIS void v4l2_i2c_subdev_unregister (struct v4l2_subdev *sd );
ARGUMENTS sd pointer to struct v4l2_subdev
SEE ALSO Kernel file ./include/media/v4l2-common.h v4l2_ctrl_query_fill(9), enum v4l2_i2c_tuner_type(9), v4l2_i2c_new_subdev(9), v4l2_... |
v4l2_i2c_tuner_addrs(9) | NAME v4l2_i2c_tuner_addrs - Return a list of I2C tuner addresses to probe.
SYNOPSIS const unsigned short * v4l2_i2c_tuner_addrs (enum v4l2_i2c_tuner_type type );
ARGUMENTS type type of the tuner to seek, as defined by enum v4l2_i2c_tuner_type.
NOTE Use only if the tuner addresses are unknown.
SEE ALSO Kernel... |
v4l2_isp_params_buffer_size(9) | NAME v4l2_isp_params_buffer_size - Calculate size of v4l2_isp_params_buffer
SYNOPSIS v4l2_isp_params_buffer_size (max_params_size );
ARGUMENTS max_params_size The total size of the ISP configuration blocks
DESCRIPTION Users of the v4l2 extensible parameters will have differing sized data arrays depending on their... |
v4l2_isp_params_validate_buffer(9) | NAME v4l2_isp_params_validate_buffer - Validate a V4L2 ISP parameters buffer
SYNOPSIS int v4l2_isp_params_validate_buffer (struct device *dev , struct vb2_buffer *vb , const struct v4l2_isp_params_buffer *buffer , const struct v4l2_isp_params_block_type_info *type_info , size_t num_block_types );
ARGUMENTS dev ... |
v4l2_isp_params_validate_buffer_size(9) | NAME v4l2_isp_params_validate_buffer_size - Validate a V4L2 ISP buffer sizes
SYNOPSIS int v4l2_isp_params_validate_buffer_size (struct device *dev , struct vb2_buffer *vb , size_t max_size );
ARGUMENTS dev the driver's device pointer
vb the videobuf2 buffer
max_size the maximum all... |
v4l2_jpeg_parse_header(9) | NAME v4l2_jpeg_parse_header - locate marker segments and optionally parse headers
SYNOPSIS int v4l2_jpeg_parse_header (void *buf , size_t len , struct v4l2_jpeg_header *out );
ARGUMENTS buf address of the JPEG buffer, should start with a SOI marker
len length of the JPEG buffer
out ... |
v4l2_kioctl(9) | NAME v4l2_kioctl - Typedef used to pass an ioctl handler.
SYNOPSIS long v4l2_kioctl (struct file *file , unsigned int cmd , void *arg );
ARGUMENTS file Pointer to struct file.
cmd Ioctl name.
arg Ioctl argument.
SEE ALSO Kernel file ./include/media/v4l2-ioctl.h struct v4l2_ioct... |
v4l2_link_freq_to_bitmap(9) | NAME v4l2_link_freq_to_bitmap - Figure out platform-supported link frequencies
SYNOPSIS int v4l2_link_freq_to_bitmap (struct device *dev , const u64 *fw_link_freqs , unsigned int num_of_fw_link_freqs , const s64 *driver_link_freqs , unsigned int num_of_driver_link_freqs , unsigned long *bitmap );
ARGUMENTS dev ... |
v4l2_m2m_buf_copy_metadata(9) | NAME v4l2_m2m_buf_copy_metadata - copy buffer metadata from the output buffer to the capture buffer
SYNOPSIS void v4l2_m2m_buf_copy_metadata (const struct vb2_v4l2_buffer *out_vb , struct vb2_v4l2_buffer *cap_vb );
ARGUMENTS out_vb the output buffer that is the source of the metadata.
cap_vb the cap... |
v4l2_m2m_buf_done_and_job_finish(9) | NAME v4l2_m2m_buf_done_and_job_finish - return source/destination buffers with state and inform the framework that a job has been finished and have it clean up
SYNOPSIS void v4l2_m2m_buf_done_and_job_finish (struct v4l2_m2m_dev *m2m_dev , struct v4l2_m2m_ctx *m2m_ctx , enum vb2_buffer_state state );
ARGUMENTS m2m_dev... |
v4l2_m2m_buf_queue(9) | NAME v4l2_m2m_buf_queue - add a buffer to the proper ready buffers list.
SYNOPSIS void v4l2_m2m_buf_queue (struct v4l2_m2m_ctx *m2m_ctx , struct vb2_v4l2_buffer *vbuf );
ARGUMENTS m2m_ctx m2m context assigned to the instance given by struct v4l2_m2m_ctx
vbuf pointer to struct vb2_v4l2_buffer
DESCR... |
v4l2_m2m_buf_remove(9) | NAME v4l2_m2m_buf_remove - take off a buffer from the list of ready buffers and return it
SYNOPSIS struct vb2_v4l2_buffer * v4l2_m2m_buf_remove (struct v4l2_m2m_queue_ctx *q_ctx );
ARGUMENTS q_ctx pointer to struct v4l2_m2m_queue_ctx
SEE ALSO Kernel file ./include/media/v4l2-mem2mem.h struct v4l2_m2m_ops(9), ... |
v4l2_m2m_buf_remove_by_buf(9) | NAME v4l2_m2m_buf_remove_by_buf - take off exact buffer from the list of ready buffers
SYNOPSIS void v4l2_m2m_buf_remove_by_buf (struct v4l2_m2m_queue_ctx *q_ctx , struct vb2_v4l2_buffer *vbuf );
ARGUMENTS q_ctx pointer to struct v4l2_m2m_queue_ctx
vbuf the buffer to be removed
SEE ALSO Kernel ... |
v4l2_m2m_cancel_job(9) | NAME v4l2_m2m_cancel_job - cancel pending jobs for the context
SYNOPSIS void v4l2_m2m_cancel_job (struct v4l2_m2m_ctx *m2m_ctx );
ARGUMENTS m2m_ctx m2m context with jobs to be canceled
DESCRIPTION In case of streamoff or release called on any context, 1] If the context is currently running, then abort job will b... |
v4l2_m2m_clear_state(9) | NAME v4l2_m2m_clear_state - clear encoding/decoding state
SYNOPSIS void v4l2_m2m_clear_state (struct v4l2_m2m_ctx *m2m_ctx );
ARGUMENTS m2m_ctx m2m context assigned to the instance given by struct v4l2_m2m_ctx
SEE ALSO Kernel file ./include/media/v4l2-mem2mem.h struct v4l2_m2m_ops(9), struct v4l2_m2m_queue_ctx(... |
v4l2_m2m_create_bufs(9) | NAME v4l2_m2m_create_bufs - create a source or destination buffer, depending on the type
SYNOPSIS int v4l2_m2m_create_bufs (struct file *file , struct v4l2_m2m_ctx *m2m_ctx , struct v4l2_create_buffers *create );
ARGUMENTS file pointer to struct file
m2m_ctx m2m context assigned to the instance giv... |
v4l2_m2m_ctx_init(9) | NAME v4l2_m2m_ctx_init - allocate and initialize a m2m context
SYNOPSIS struct v4l2_m2m_ctx * v4l2_m2m_ctx_init (struct v4l2_m2m_dev *m2m_dev , void *drv_priv , int (*queue_init)(void *priv, struct vb2_queue *src_vq, struct vb2_queue *dst_vq) );
ARGUMENTS m2m_dev opaque pointer to the internal data to handle M2M ... |
v4l2_m2m_ctx_release(9) | NAME v4l2_m2m_ctx_release - release m2m context
SYNOPSIS void v4l2_m2m_ctx_release (struct v4l2_m2m_ctx *m2m_ctx );
ARGUMENTS m2m_ctx m2m context assigned to the instance given by struct v4l2_m2m_ctx
DESCRIPTION Usually called from driver's release function.
SEE ALSO Kernel file ./include/media/v4l2-mem2mem... |
v4l2_m2m_decoder_cmd(9) | NAME v4l2_m2m_decoder_cmd - execute a decoder command
SYNOPSIS int v4l2_m2m_decoder_cmd (struct file *file , struct v4l2_m2m_ctx *m2m_ctx , struct v4l2_decoder_cmd *dc );
ARGUMENTS file pointer to struct file
m2m_ctx m2m context assigned to the instance given by struct v4l2_m2m_ctx
dc ... |
v4l2_m2m_device_run_work(9) | NAME v4l2_m2m_device_run_work - run pending jobs for the context
SYNOPSIS void v4l2_m2m_device_run_work (struct work_struct *work );
ARGUMENTS work Work structure used for scheduling the execution of this function.
SEE ALSO Kernel file ./drivers/media/v4l2-core/v4l2-mem2mem.c struct v4l2_m2m_dev(9), v4l2_m2m_... |
v4l2_m2m_dqbuf(9) | NAME v4l2_m2m_dqbuf - dequeue a source or destination buffer, depending on the type
SYNOPSIS int v4l2_m2m_dqbuf (struct file *file , struct v4l2_m2m_ctx *m2m_ctx , struct v4l2_buffer *buf );
ARGUMENTS file pointer to struct file
m2m_ctx m2m context assigned to the instance given by struct v4l2_m2m_... |
v4l2_m2m_dst_buf_is_last(9) | NAME v4l2_m2m_dst_buf_is_last - return the current encoding/decoding session draining management state of next queued capture buffer
SYNOPSIS bool v4l2_m2m_dst_buf_is_last (struct v4l2_m2m_ctx *m2m_ctx );
ARGUMENTS m2m_ctx m2m context assigned to the instance given by struct v4l2_m2m_ctx
DESCRIPTION This last ca... |
v4l2_m2m_dst_buf_remove(9) | NAME v4l2_m2m_dst_buf_remove - take off a destination buffer from the list of ready buffers and return it
SYNOPSIS struct vb2_v4l2_buffer * v4l2_m2m_dst_buf_remove (struct v4l2_m2m_ctx *m2m_ctx );
ARGUMENTS m2m_ctx m2m context assigned to the instance given by struct v4l2_m2m_ctx
SEE ALSO Kernel file ./include/... |
v4l2_m2m_dst_buf_remove_by_buf(9) | NAME v4l2_m2m_dst_buf_remove_by_buf - take off exact destination buffer from the list of ready buffers
SYNOPSIS void v4l2_m2m_dst_buf_remove_by_buf (struct v4l2_m2m_ctx *m2m_ctx , struct vb2_v4l2_buffer *vbuf );
ARGUMENTS m2m_ctx m2m context assigned to the instance given by struct v4l2_m2m_ctx
vbuf ... |
v4l2_m2m_encoder_cmd(9) | NAME v4l2_m2m_encoder_cmd - execute an encoder command
SYNOPSIS int v4l2_m2m_encoder_cmd (struct file *file , struct v4l2_m2m_ctx *m2m_ctx , struct v4l2_encoder_cmd *ec );
ARGUMENTS file pointer to struct file
m2m_ctx m2m context assigned to the instance given by struct v4l2_m2m_ctx
ec ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.