You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
BackMerge tag 'v4.15-rc4' into drm-next
Linux 4.15-rc4 Daniel requested it to fix some messy conflicts.
This commit is contained in:
@@ -47,8 +47,9 @@ EXPORT_SYMBOL_GPL(vpif_lock);
|
||||
void __iomem *vpif_base;
|
||||
EXPORT_SYMBOL_GPL(vpif_base);
|
||||
|
||||
/**
|
||||
/*
|
||||
* vpif_ch_params: video standard configuration parameters for vpif
|
||||
*
|
||||
* The table must include all presets from supported subdevices.
|
||||
*/
|
||||
const struct vpif_channel_config_params vpif_ch_params[] = {
|
||||
|
||||
@@ -109,7 +109,7 @@ static int vpif_buffer_prepare(struct vb2_buffer *vb)
|
||||
* @vq: vb2_queue ptr
|
||||
* @nbuffers: ptr to number of buffers requested by application
|
||||
* @nplanes:: contains number of distinct video planes needed to hold a frame
|
||||
* @sizes[]: contains the size (in bytes) of each plane.
|
||||
* @sizes: contains the size (in bytes) of each plane.
|
||||
* @alloc_devs: ptr to allocation context
|
||||
*
|
||||
* This callback function is called when reqbuf() is called to adjust
|
||||
@@ -167,7 +167,7 @@ static void vpif_buffer_queue(struct vb2_buffer *vb)
|
||||
|
||||
/**
|
||||
* vpif_start_streaming : Starts the DMA engine for streaming
|
||||
* @vb: ptr to vb2_buffer
|
||||
* @vq: ptr to vb2_buffer
|
||||
* @count: number of buffers
|
||||
*/
|
||||
static int vpif_start_streaming(struct vb2_queue *vq, unsigned int count)
|
||||
@@ -629,7 +629,7 @@ static void vpif_calculate_offsets(struct channel_obj *ch)
|
||||
|
||||
/**
|
||||
* vpif_get_default_field() - Get default field type based on interface
|
||||
* @vpif_params - ptr to vpif params
|
||||
* @iface: ptr to vpif interface
|
||||
*/
|
||||
static inline enum v4l2_field vpif_get_default_field(
|
||||
struct vpif_interface *iface)
|
||||
@@ -640,8 +640,8 @@ static inline enum v4l2_field vpif_get_default_field(
|
||||
|
||||
/**
|
||||
* vpif_config_addr() - function to configure buffer address in vpif
|
||||
* @ch - channel ptr
|
||||
* @muxmode - channel mux mode
|
||||
* @ch: channel ptr
|
||||
* @muxmode: channel mux mode
|
||||
*/
|
||||
static void vpif_config_addr(struct channel_obj *ch, int muxmode)
|
||||
{
|
||||
@@ -661,9 +661,9 @@ static void vpif_config_addr(struct channel_obj *ch, int muxmode)
|
||||
|
||||
/**
|
||||
* vpif_input_to_subdev() - Maps input to sub device
|
||||
* @vpif_cfg - global config ptr
|
||||
* @chan_cfg - channel config ptr
|
||||
* @input_index - Given input index from application
|
||||
* @vpif_cfg: global config ptr
|
||||
* @chan_cfg: channel config ptr
|
||||
* @input_index: Given input index from application
|
||||
*
|
||||
* lookup the sub device information for a given input index.
|
||||
* we report all the inputs to application. inputs table also
|
||||
@@ -699,9 +699,9 @@ static int vpif_input_to_subdev(
|
||||
|
||||
/**
|
||||
* vpif_set_input() - Select an input
|
||||
* @vpif_cfg - global config ptr
|
||||
* @ch - channel
|
||||
* @_index - Given input index from application
|
||||
* @vpif_cfg: global config ptr
|
||||
* @ch: channel
|
||||
* @index: Given input index from application
|
||||
*
|
||||
* Select the given input.
|
||||
*/
|
||||
@@ -792,7 +792,7 @@ static int vpif_querystd(struct file *file, void *priv, v4l2_std_id *std_id)
|
||||
* vpif_g_std() - get STD handler
|
||||
* @file: file ptr
|
||||
* @priv: file handle
|
||||
* @std_id: ptr to std id
|
||||
* @std: ptr to std id
|
||||
*/
|
||||
static int vpif_g_std(struct file *file, void *priv, v4l2_std_id *std)
|
||||
{
|
||||
@@ -933,7 +933,7 @@ static int vpif_s_input(struct file *file, void *priv, unsigned int index)
|
||||
* vpif_enum_fmt_vid_cap() - ENUM_FMT handler
|
||||
* @file: file ptr
|
||||
* @priv: file handle
|
||||
* @index: input index
|
||||
* @fmt: ptr to V4L2 format descriptor
|
||||
*/
|
||||
static int vpif_enum_fmt_vid_cap(struct file *file, void *priv,
|
||||
struct v4l2_fmtdesc *fmt)
|
||||
@@ -1745,6 +1745,7 @@ static int vpif_remove(struct platform_device *device)
|
||||
#ifdef CONFIG_PM_SLEEP
|
||||
/**
|
||||
* vpif_suspend: vpif device suspend
|
||||
* @dev: pointer to &struct device
|
||||
*/
|
||||
static int vpif_suspend(struct device *dev)
|
||||
{
|
||||
|
||||
@@ -102,7 +102,7 @@ static int vpif_buffer_prepare(struct vb2_buffer *vb)
|
||||
* @vq: vb2_queue ptr
|
||||
* @nbuffers: ptr to number of buffers requested by application
|
||||
* @nplanes:: contains number of distinct video planes needed to hold a frame
|
||||
* @sizes[]: contains the size (in bytes) of each plane.
|
||||
* @sizes: contains the size (in bytes) of each plane.
|
||||
* @alloc_devs: ptr to allocation context
|
||||
*
|
||||
* This callback function is called when reqbuf() is called to adjust
|
||||
@@ -158,7 +158,7 @@ static void vpif_buffer_queue(struct vb2_buffer *vb)
|
||||
|
||||
/**
|
||||
* vpif_start_streaming : Starts the DMA engine for streaming
|
||||
* @vb: ptr to vb2_buffer
|
||||
* @vq: ptr to vb2_buffer
|
||||
* @count: number of buffers
|
||||
*/
|
||||
static int vpif_start_streaming(struct vb2_queue *vq, unsigned int count)
|
||||
@@ -766,9 +766,9 @@ static int vpif_enum_output(struct file *file, void *fh,
|
||||
|
||||
/**
|
||||
* vpif_output_to_subdev() - Maps output to sub device
|
||||
* @vpif_cfg - global config ptr
|
||||
* @chan_cfg - channel config ptr
|
||||
* @index - Given output index from application
|
||||
* @vpif_cfg: global config ptr
|
||||
* @chan_cfg: channel config ptr
|
||||
* @index: Given output index from application
|
||||
*
|
||||
* lookup the sub device information for a given output index.
|
||||
* we report all the output to application. output table also
|
||||
@@ -802,9 +802,9 @@ vpif_output_to_subdev(struct vpif_display_config *vpif_cfg,
|
||||
|
||||
/**
|
||||
* vpif_set_output() - Select an output
|
||||
* @vpif_cfg - global config ptr
|
||||
* @ch - channel
|
||||
* @index - Given output index from application
|
||||
* @vpif_cfg: global config ptr
|
||||
* @ch: channel
|
||||
* @index: Given output index from application
|
||||
*
|
||||
* Select the given output.
|
||||
*/
|
||||
|
||||
@@ -146,6 +146,7 @@ static int fimc_stop_capture(struct fimc_dev *fimc, bool suspend)
|
||||
|
||||
/**
|
||||
* fimc_capture_config_update - apply the camera interface configuration
|
||||
* @ctx: FIMC capture context
|
||||
*
|
||||
* To be called from within the interrupt handler with fimc.slock
|
||||
* spinlock held. It updates the camera pixel crop, rotation and
|
||||
@@ -858,6 +859,7 @@ static int fimc_pipeline_try_format(struct fimc_ctx *ctx,
|
||||
* fimc_get_sensor_frame_desc - query the sensor for media bus frame parameters
|
||||
* @sensor: pointer to the sensor subdev
|
||||
* @plane_fmt: provides plane sizes corresponding to the frame layout entries
|
||||
* @num_planes: number of planes
|
||||
* @try: true to set the frame parameters, false to query only
|
||||
*
|
||||
* This function is used by this driver only for compressed/blob data formats.
|
||||
@@ -1101,6 +1103,7 @@ static int fimc_cap_g_input(struct file *file, void *priv, unsigned int *i)
|
||||
/**
|
||||
* fimc_pipeline_validate - check for formats inconsistencies
|
||||
* between source and sink pad of each link
|
||||
* @fimc: the FIMC device this context applies to
|
||||
*
|
||||
* Return 0 if all formats match or -EPIPE otherwise.
|
||||
*/
|
||||
|
||||
@@ -60,6 +60,7 @@ static void __setup_sensor_notification(struct fimc_md *fmd,
|
||||
|
||||
/**
|
||||
* fimc_pipeline_prepare - update pipeline information with subdevice pointers
|
||||
* @p: fimc pipeline
|
||||
* @me: media entity terminating the pipeline
|
||||
*
|
||||
* Caller holds the graph mutex.
|
||||
@@ -151,8 +152,8 @@ static int __subdev_set_power(struct v4l2_subdev *sd, int on)
|
||||
|
||||
/**
|
||||
* fimc_pipeline_s_power - change power state of all pipeline subdevs
|
||||
* @fimc: fimc device terminating the pipeline
|
||||
* @state: true to power on, false to power off
|
||||
* @p: fimc device terminating the pipeline
|
||||
* @on: true to power on, false to power off
|
||||
*
|
||||
* Needs to be called with the graph mutex held.
|
||||
*/
|
||||
@@ -219,6 +220,7 @@ static int __fimc_pipeline_enable(struct exynos_media_pipeline *ep,
|
||||
/**
|
||||
* __fimc_pipeline_open - update the pipeline information, enable power
|
||||
* of all pipeline subdevs and the sensor clock
|
||||
* @ep: fimc device terminating the pipeline
|
||||
* @me: media entity to start graph walk with
|
||||
* @prepare: true to walk the current pipeline and acquire all subdevs
|
||||
*
|
||||
@@ -252,7 +254,7 @@ static int __fimc_pipeline_open(struct exynos_media_pipeline *ep,
|
||||
|
||||
/**
|
||||
* __fimc_pipeline_close - disable the sensor clock and pipeline power
|
||||
* @fimc: fimc device terminating the pipeline
|
||||
* @ep: fimc device terminating the pipeline
|
||||
*
|
||||
* Disable power of all subdevs and turn the external sensor clock off.
|
||||
*/
|
||||
@@ -281,7 +283,7 @@ static int __fimc_pipeline_close(struct exynos_media_pipeline *ep)
|
||||
|
||||
/**
|
||||
* __fimc_pipeline_s_stream - call s_stream() on pipeline subdevs
|
||||
* @pipeline: video pipeline structure
|
||||
* @ep: video pipeline structure
|
||||
* @on: passed as the s_stream() callback argument
|
||||
*/
|
||||
static int __fimc_pipeline_s_stream(struct exynos_media_pipeline *ep, bool on)
|
||||
@@ -902,6 +904,7 @@ static int __fimc_md_create_fimc_is_links(struct fimc_md *fmd)
|
||||
|
||||
/**
|
||||
* fimc_md_create_links - create default links between registered entities
|
||||
* @fmd: fimc media device
|
||||
*
|
||||
* Parallel interface sensor entities are connected directly to FIMC capture
|
||||
* entities. The sensors using MIPI CSIS bus are connected through immutable
|
||||
|
||||
@@ -189,7 +189,7 @@ struct csis_drvdata {
|
||||
* @irq: requested s5p-mipi-csis irq number
|
||||
* @interrupt_mask: interrupt mask of the all used interrupts
|
||||
* @flags: the state variable for power and streaming control
|
||||
* @clock_frequency: device bus clock frequency
|
||||
* @clk_frequency: device bus clock frequency
|
||||
* @hs_settle: HS-RX settle time
|
||||
* @num_lanes: number of MIPI-CSI data lanes used
|
||||
* @max_num_lanes: maximum number of MIPI-CSI data lanes supported
|
||||
|
||||
@@ -59,6 +59,7 @@ struct h264_fb {
|
||||
* @read_idx : read index
|
||||
* @write_idx : write index
|
||||
* @count : buffer count in list
|
||||
* @reserved : for 8 bytes alignment
|
||||
*/
|
||||
struct h264_ring_fb_list {
|
||||
struct h264_fb fb_list[H264_MAX_FB_NUM];
|
||||
|
||||
@@ -155,7 +155,6 @@ struct vdec_vp8_vpu_inst {
|
||||
* @reg_base : HW register base address
|
||||
* @frm_cnt : decode frame count
|
||||
* @ctx : V4L2 context
|
||||
* @dev : platform device
|
||||
* @vpu : VPU instance for decoder
|
||||
* @vsi : VPU share information
|
||||
*/
|
||||
|
||||
@@ -34,7 +34,7 @@ static const char h264_filler_marker[] = {0x0, 0x0, 0x0, 0x1, 0xc};
|
||||
#define H264_FILLER_MARKER_SIZE ARRAY_SIZE(h264_filler_marker)
|
||||
#define VENC_PIC_BITSTREAM_BYTE_CNT 0x0098
|
||||
|
||||
/**
|
||||
/*
|
||||
* enum venc_h264_vpu_work_buf - h264 encoder buffer index
|
||||
*/
|
||||
enum venc_h264_vpu_work_buf {
|
||||
@@ -50,7 +50,7 @@ enum venc_h264_vpu_work_buf {
|
||||
VENC_H264_VPU_WORK_BUF_MAX,
|
||||
};
|
||||
|
||||
/**
|
||||
/*
|
||||
* enum venc_h264_bs_mode - for bs_mode argument in h264_enc_vpu_encode
|
||||
*/
|
||||
enum venc_h264_bs_mode {
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
/* This ac_tag is vp8 frame tag. */
|
||||
#define MAX_AC_TAG_SIZE 10
|
||||
|
||||
/**
|
||||
/*
|
||||
* enum venc_vp8_vpu_work_buf - vp8 encoder buffer index
|
||||
*/
|
||||
enum venc_vp8_vpu_work_buf {
|
||||
|
||||
@@ -181,6 +181,7 @@ struct share_obj {
|
||||
* @extmem: VPU extended memory information
|
||||
* @reg: VPU TCM and configuration registers
|
||||
* @run: VPU initialization status
|
||||
* @wdt: VPU watchdog workqueue
|
||||
* @ipi_desc: VPU IPI descriptor
|
||||
* @recv_buf: VPU DTCM share buffer for receiving. The
|
||||
* receive buffer is only accessed in interrupt context.
|
||||
@@ -194,7 +195,7 @@ struct share_obj {
|
||||
* suppose a client is using VPU to decode VP8.
|
||||
* If the other client wants to encode VP8,
|
||||
* it has to wait until VP8 decode completes.
|
||||
* @wdt_refcnt WDT reference count to make sure the watchdog can be
|
||||
* @wdt_refcnt: WDT reference count to make sure the watchdog can be
|
||||
* disabled if no other client is using VPU service
|
||||
* @ack_wq: The wait queue for each codec and mdp. When sleeping
|
||||
* processes wake up, they will check the condition
|
||||
|
||||
@@ -235,6 +235,7 @@ enum pxa_mbus_layout {
|
||||
* stored in memory in the following way:
|
||||
* @packing: Type of sample-packing, that has to be used
|
||||
* @order: Sample order when storing in memory
|
||||
* @layout: Planes layout in memory
|
||||
* @bits_per_sample: How many bits the bridge has to sample
|
||||
*/
|
||||
struct pxa_mbus_pixelfmt {
|
||||
@@ -852,10 +853,10 @@ static void pxa_camera_dma_irq_v(void *data)
|
||||
/**
|
||||
* pxa_init_dma_channel - init dma descriptors
|
||||
* @pcdev: pxa camera device
|
||||
* @vb: videobuffer2 buffer
|
||||
* @dma: dma video buffer
|
||||
* @buf: pxa camera buffer
|
||||
* @channel: dma channel (0 => 'Y', 1 => 'U', 2 => 'V')
|
||||
* @cibr: camera Receive Buffer Register
|
||||
* @sg: dma scatter list
|
||||
* @sglen: dma scatter list length
|
||||
*
|
||||
* Prepares the pxa dma descriptors to transfer one camera channel.
|
||||
*
|
||||
@@ -1010,6 +1011,8 @@ static void pxa_camera_wakeup(struct pxa_camera_dev *pcdev,
|
||||
/**
|
||||
* pxa_camera_check_link_miss - check missed DMA linking
|
||||
* @pcdev: camera device
|
||||
* @last_submitted: an opaque DMA cookie for last submitted
|
||||
* @last_issued: an opaque DMA cookie for last issued
|
||||
*
|
||||
* The DMA chaining is done with DMA running. This means a tiny temporal window
|
||||
* remains, where a buffer is queued on the chain, while the chain is already
|
||||
|
||||
@@ -1132,7 +1132,7 @@ static int fdp1_device_process(struct fdp1_ctx *ctx)
|
||||
* mem2mem callbacks
|
||||
*/
|
||||
|
||||
/**
|
||||
/*
|
||||
* job_ready() - check whether an instance is ready to be scheduled to run
|
||||
*/
|
||||
static int fdp1_m2m_job_ready(void *priv)
|
||||
|
||||
@@ -257,7 +257,7 @@ struct jpu_fmt {
|
||||
};
|
||||
|
||||
/**
|
||||
* jpu_q_data - parameters of one queue
|
||||
* struct jpu_q_data - parameters of one queue
|
||||
* @fmtinfo: driver-specific format of this queue
|
||||
* @format: multiplanar format of this queue
|
||||
* @sequence: sequence number
|
||||
@@ -269,7 +269,7 @@ struct jpu_q_data {
|
||||
};
|
||||
|
||||
/**
|
||||
* jpu_ctx - the device context data
|
||||
* struct jpu_ctx - the device context data
|
||||
* @jpu: JPEG IP device for this context
|
||||
* @encoder: compression (encode) operation or decompression (decode)
|
||||
* @compr_quality: destination image quality in compression (encode) mode
|
||||
|
||||
@@ -103,6 +103,7 @@ static const struct camif_fmt camif_formats[] = {
|
||||
|
||||
/**
|
||||
* s3c_camif_find_format() - lookup camif color format by fourcc or an index
|
||||
* @vp: video path (DMA) description (codec/preview)
|
||||
* @pixelformat: fourcc to match, ignored if null
|
||||
* @index: index to the camif_formats array, ignored if negative
|
||||
*/
|
||||
|
||||
@@ -267,7 +267,7 @@ static void sh_veu_process(struct sh_veu_dev *veu,
|
||||
sh_veu_reg_write(veu, VEU_EIER, 1); /* enable interrupt in VEU */
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* sh_veu_device_run() - prepares and starts the device
|
||||
*
|
||||
* This will be called by the framework when it decides to schedule a particular
|
||||
|
||||
@@ -306,16 +306,17 @@ update_cache:
|
||||
}
|
||||
|
||||
/**
|
||||
* @icd - soc-camera device
|
||||
* @rect - camera cropping window
|
||||
* @subrect - part of rect, sent to the user
|
||||
* @mf - in- / output camera output window
|
||||
* @width - on input: max host input width
|
||||
* on output: user width, mapped back to input
|
||||
* @height - on input: max host input height
|
||||
* on output: user height, mapped back to input
|
||||
* @host_can_scale - host can scale this pixel format
|
||||
* @shift - shift, used for scaling
|
||||
* soc_camera_client_scale
|
||||
* @icd: soc-camera device
|
||||
* @rect: camera cropping window
|
||||
* @subrect: part of rect, sent to the user
|
||||
* @mf: in- / output camera output window
|
||||
* @width: on input: max host input width;
|
||||
* on output: user width, mapped back to input
|
||||
* @height: on input: max host input height;
|
||||
* on output: user height, mapped back to input
|
||||
* @host_can_scale: host can scale this pixel format
|
||||
* @shift: shift, used for scaling
|
||||
*/
|
||||
int soc_camera_client_scale(struct soc_camera_device *icd,
|
||||
struct v4l2_rect *rect, struct v4l2_rect *subrect,
|
||||
|
||||
@@ -134,7 +134,7 @@ enum hva_h264_sei_payload_type {
|
||||
SEI_FRAME_PACKING_ARRANGEMENT = 45
|
||||
};
|
||||
|
||||
/**
|
||||
/*
|
||||
* stereo Video Info struct
|
||||
*/
|
||||
struct hva_h264_stereo_video_sei {
|
||||
@@ -146,7 +146,9 @@ struct hva_h264_stereo_video_sei {
|
||||
u8 right_view_self_contained_flag;
|
||||
};
|
||||
|
||||
/**
|
||||
/*
|
||||
* struct hva_h264_td
|
||||
*
|
||||
* @frame_width: width in pixels of the buffer containing the input frame
|
||||
* @frame_height: height in pixels of the buffer containing the input frame
|
||||
* @frame_num: the parameter to be written in the slice header
|
||||
@@ -352,7 +354,9 @@ struct hva_h264_td {
|
||||
u32 addr_brc_in_out_parameter;
|
||||
};
|
||||
|
||||
/**
|
||||
/*
|
||||
* struct hva_h264_slice_po
|
||||
*
|
||||
* @ slice_size: slice size
|
||||
* @ slice_start_time: start time
|
||||
* @ slice_stop_time: stop time
|
||||
@@ -365,7 +369,9 @@ struct hva_h264_slice_po {
|
||||
u32 slice_num;
|
||||
};
|
||||
|
||||
/**
|
||||
/*
|
||||
* struct hva_h264_po
|
||||
*
|
||||
* @ bitstream_size: bitstream size
|
||||
* @ dct_bitstream_size: dtc bitstream size
|
||||
* @ stuffing_bits: number of stuffing bits inserted by the encoder
|
||||
@@ -391,7 +397,9 @@ struct hva_h264_task {
|
||||
struct hva_h264_po po;
|
||||
};
|
||||
|
||||
/**
|
||||
/*
|
||||
* struct hva_h264_ctx
|
||||
*
|
||||
* @seq_info: sequence information buffer
|
||||
* @ref_frame: reference frame buffer
|
||||
* @rec_frame: reconstructed frame buffer
|
||||
|
||||
@@ -926,7 +926,7 @@ static struct vpe_ctx *file2ctx(struct file *file)
|
||||
* mem2mem callbacks
|
||||
*/
|
||||
|
||||
/**
|
||||
/*
|
||||
* job_ready() - check whether an instance is ready to be scheduled to run
|
||||
*/
|
||||
static int job_ready(void *priv)
|
||||
|
||||
@@ -343,7 +343,7 @@ static void schedule_irq(struct vim2m_dev *dev, int msec_timeout)
|
||||
* mem2mem callbacks
|
||||
*/
|
||||
|
||||
/**
|
||||
/*
|
||||
* job_ready() - check whether an instance is ready to be scheduled to run
|
||||
*/
|
||||
static int job_ready(void *priv)
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user