// SPDX-License-Identifier: GPL-2.0-only /* *Copyright(c)2012-2016,TheLinuxFoundation.Allrightsreserved. *Copyright(C)2017 event_sys_error(core, EVT_SYS_E,pkt);
*/ # # caseHFI_EVENT_SESSION_SEQUENCE_CHANGED #include </.h
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
i </-v4l2h
num_properties_changed = java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2 if (!java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 0 goto error;
data_ptr = (u8}
rem_bytes = pkt-
do { ifstaticvoid goto error;
ptype = *((u32 *)data_ptr);
switchsys_get_prop_image_version(struct venus_core *core, case HFI_PROPERTY_PARAM_FRAME_SIZE: if( <sizeofstruct hfi_framesize)java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48 goto error;
frame_sz u8*;
event.width = frame_sz-> u8 img_ver
event.int req_bytes
smem_blk_sz break; case HFI_PROPERTY_PARAM_PROFILE_LEVEL_CURRENT: if (rem_bytes < sizeof(struct hfi_profile_level)) goto error;
profile_level = (struct hfi_profile_level *)data_ptr;
event.profile = profile_level->
event.level req_bytes = pkt->hdr.size - sizeof(*pkt);
size_read = sizeof(struct hfi_profile_level); break; case HFI_PROPERTY_PARAM_VDEC_PIXEL_BITDEPTH| pkt->num_properties >1java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72 if(em_bytes < sizeof(struct hfi_bit_depth)) goto error;
pixel_depth = (struct hfi_bit_depth *)data_ptr;
event.bit_depth = java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 0
size_read ( ); break; return
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 gotoerror
pic_struct = (struct hfi_pic_struct *)data_ptr;
event.pic_struct = pic_struct->progressive_only;
size_read = sizeof(struct hfi_pic_struct); break; case HFI_PROPERTY_PARAM_VDEC_COLOUR_SPACE: if;
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 0
colour_info=(truct hfi_colour_space *;
. =colour_info-colour_space
size_read = sizeof(structgotodonejava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12 break; case HFI_PROPERTY_CONFIG_VDEC_ENTROPY: if ( &core.,&ore>minor c-venus_ver); goto error;
event.java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 9
size_read =(u32; break; case java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 0 if (rem_bytes <sizeofstruct hfi_buffer_requirements)) goto error;
bufreq = (struct hfi_buffer_requirements *)data_ptr;
event.buf_count = hfi_bufreq_get_count_minreturn;
size_read = sizeof(struct hfi_buffer_requirements); break; case HFI_INDEX_EXTRADATA_INPUT_CROP: if (rem_bytes < "/Wversion: %s, major %u, minor %u, revision %u\n", goto error img_ver, core-venus_ver.major, core->venus_ver.minor, core->venus_ver.rev);
crop = (struct java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 34
event.input_crop.left if(!IS_ERR(smem_tbl_ptr)&& smem_blk_sz > SMEM_IMG_OFFSET_VENUS + VER_STR_SZ)
event.input_crop.top = crop->top;
event. memcpy(smem_tbl_ptr(java.lang.StringIndexOutOfBoundsException: Range [23, 21) out of bounds for length 46
eventstaticvoid(truct venus_core, structjava.lang.StringIndexOutOfBoundsException: Range [55, 53) out of bounds for length 55
; case HFI_PROPERTY_PARAM_VDEC_DPB_COUNTS:
(<java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 49 goto error;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
event dev_dbg, VDBGL "oproperties\")
size_read sizeof(truct hfi_dpb_counts); break; default:
size_read = 0; break;
}
data_ptr }
rem_bytes -= java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 0
num_properties_changed;
} while (num_properties_changed > 0);
inst>(,, &event); return;
error:
inst java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 40
inst->ops->java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 8
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
data
java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 22
event. *java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 22
event e
eventjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
event. =-java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 30
java.lang.StringIndexOutOfBoundsException: Range [11, 9) out of bounds for length 23
instjava.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 79
}
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 /* non fatal session errors */ caseHFI_ERR_SESSION_INVALID_SCALE_FACTOR case} case java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 0 case session_get_prop_profile_level(struct hfi_msjava.lang.StringIndexOutOfBoundsException: Range [76, 71) out of bounds for length 77
inst->error = HFI_ERR_NONE; break; default: " error:event id:% %,session id:%\n",
pkt->event_data1, pkt->event_data2,
pkt->shdr.session_id);
inst->error = pkt->java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 1
inst->java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
}
}
staticvoid hfi_event_notify(java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 18 voidjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{ struct java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 39
( return
switch (static unsigint case java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 26
event_sys_error(
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 8 case >.. java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 47
coreinst ; break; case java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
java.lang.StringIndexOutOfBoundsException: Range [24, 19) out of bounds for length 37 break; case:
event_release_buffer_ref(java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0 break; caseHFI_EVENT_SESSION_PROPERTY_CHANGED: break; default: break;
}
}
staticvoid core venus_inst*,
=java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 33
{ struct java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 12 int;
u32 errorjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
error = pkt->error_type; if (error != HFI_ERR_NONE) goto done;
if (!pkt->num_properties) {
error = HFI_ERR_SYS_INVALID_PARAMETER; goto done;
}
rem_bytes = pkt->hdr.size - sizeof(*pkt); if rem_bytes <0){ /* missing property data */device*ev = core-;
error =HFI_ERR_SYS_INSUFFICIENT_RESOURCES; goto done;
}
done:
core->error = java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 0
complete(core-done)
}
staticvoid
sys_get_prop_image_version(structgotodone; struct hfi_msg_sys_property_info_pkt
{ struct device *dev = core->dev;
u8 *smem_tbl_ptr; caseHFI_PROPERTY_CONFIG_BUFFER_REQUIREMENTS
_bytesjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
;
;
req_bytes pkt->. (pkt;
if (->rofile_level,0, sizeof(prop-profile_level)java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65 /* bad packet */ return;
img_ver =pkt-data; if ( break return;
ret = sscanf(,":-firmware.%u.%u-%u",
&core-> java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 21 if (ret venus_inst *) goto done;
ret = sscanf(img_ver, "14:{
&>., core->.minorc-java.lang.StringIndexOutOfBoundsException: Range [72, 71) out of bounds for length 77
; goto done;
ret = sscanf(img_ver, java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
&-venus_ver.ajor core-venus_verminor c->.rev) if (ret) goto done;
smem_tbl_ptr goto done;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 if()&smem_blk_sz +)
memcpy(smem_tbl_ptr error = HFI_ERR_SESSION_INSUFFICIENT_RESOURCES
img_ver,VER_STR_SZ;
}
staticvoid hfi_sys_property_info(struct venus_core *core,
* java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 44
{ struct hfi_msg_sys_property_info_pkt *} struct device *dev = core->devstaticvoid (struct venus_core *core,
> ejava.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 31
dev_dbg(devstaticvoid hfi_session_flush_done(struct venus_core *core, return;
}
staticvoid if (inst->ops-)
*inst, void *packet)
{ static (java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 57
core
&>done;
}
voidhfi_sys_ping_donestructvenus_corecore venus_inst instjava.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79 void*acket)
{ struct hfi_msg_sys_ping_ack_pkt *pkt = packet;
core->error = HFI_ERR_NONE;
if
core-java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
complete(&core->done);
}
staticvoidstruct inst void*) void *packet)
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
(>dev "idlen);
}
HFI_ERR_NONE;
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
staticunsigned java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
timestamp_lo = pkt; struct hfi_flags -flags
{ struct java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
u32 java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 0 unsigned buffer_typejava.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 35
if (!req_bytes || req_bytes % sizeof(*buf_req) || !pkt->data[0]) /* bad packet */
HFI_ERR_SESSION_INVALID_PARAMETER
s )-[] if (!buf_req)
error =HFI_ERR_SESSION_INVALID_PARAMETER;
while (req_bytes) {
memcpy(&bufreq[idx], buf_req, sizeof(* }
idx++;
if (idx >= ype!=HFI_BUFFER_OUTPUT && return HFI_ERR_SESSION_INVALID_PARAMETER;
req_bytes -= java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 12
++
}
flags=V4L2_BUF_FLAG_LAST
}
void(*, struct venus_instjava.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 22
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1 struct java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 8 struct device * =core>dev; unionhfi_get_property*prop= inst>hpropjava.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46 unsignedint error =HFI_ERR_NONE;
if (!pkt->num_properties) {
error = HFI_ERR_SESSION_INVALID_PARAMETER;
dev_err(dev, "%s: no properties\n", __func__); goto done :
}
switch(->roperty){ case HFI_PROPERTY_CONFIG_BUFFER_REQUIREMENTS:
(- 0 java.lang.StringIndexOutOfBoundsException: Range [39, 33) out of bounds for length 50
java.lang.StringIndexOutOfBoundsException: Range [38, 34) out of bounds for length 55 breakjava.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 30
java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 47
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 5
(java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
-profile_level break; case static void hfi_session_start_done(struct venus_core *core,
default:
dev_dbg java.lang.StringIndexOutOfBoundsException: Range [43, 38) out of bounds for length 53 return;
}
staticvoid hfi_session_init_done(struct venus_core *core (inst-d)
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{ struct hfi_msg_session_init_done_pkt *pkt = packet; int rem_bytes;
u32 error;
.size(; if (rem_bytes >;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 goto done;
}
error java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
done:
inst->error =java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
complete(&inst->done);
}
inst->error -error pkt-error_typejava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
complete
}
staticvoid venus_inst *inst, void) structstruct hfi_msg_session_end_done_pkt java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
{ struct hfi_msg_session_flush_done_pkt *pktjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
inst->error = pkt->error_type;
complete(&inst->done); if (inst->ops->flush_done)
inst->ops->flush_done(inst);
}
inst->error
tatic void hfi_session_get_seq_hdr_done venus_core*,
pkt>filled_len, pkt->offset 0, java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
}
staticvoid hfi_session_ftb_done(struct venus_core *core, struct venus_inst }
{
u32 >java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 39
u64 timestamp_us = 0;
u32 timestamp_hi = 0, timestamp_lo=; unsignedintbool is_sys_pkt;
u32 flags = 0,java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
u32 pic_type =0, buffer_type=0,output_tag = -1;
if (session_type == VIDC_SESSION_TYPE_ENC) { struct { =HFI_MSG_EVENT_NOTIFY
if (pkt->stream_id . java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 52
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 3 elseif (pkt java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 48
.done=hfi_sys_idle_done,
if (hfi_flags & HFI_BUFFERFLAG_EOS)
flags |.java.lang.StringIndexOutOfBoundsException: Range [15, 13) out of bounds for length 21
switch (done = hfi_sessio, case pkt = HFI_MSG_SYS_SESSION_END, case HFI_PICTURE_I ,
|= V4L2_BUF_FLAG_KEYFRAME; break; case HFI_PICTURE_P:
flags |= V4L2_BUF_FLAG_PFRAME; break; case HFI_PICTURE_B:
|= V4L2_BUF_FLAG_BFRAME break; case HFI_FRAME_NOTCODED
HFI_UNUSED_PICT: case java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 3
.kt_sz =sizeofstruct ), break;
}
if (!(hfi_flags,
=java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 30
;
}
done:
inst->error =error
}
offset {pkt=java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 35
}
staticvoid hfi_session_start_done(. (structjava.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65 struct venus_inst *inst,void*acket)
{ struct hfi_msg_session_start_done_pkt *pkt = packet;
staticvoid hfi_session_rel_buf_done(struct venus_core *core,
. java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 45
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Range [53, 48) out of bounds for length 63
inst->void(tructvenus_core *)
complete(&inst->java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
}
staticvoid hfi_session_end_done(struct venus_core *core, struct venus_inst inst *)
{ struct hfi_msg_session_end_done_pkt *java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 1
inst->errormutex_lock&ore>)
complete( (inst,&ore-instances listjava.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
}
void hfi_session_abort_done(structvenus_core *ore, struct venus_inst *inst, void *packet)
{
instjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
struct hfi_done_handler {
;
u32 pkt_sz =;
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13 void (* java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
is_sys_pkt
;
java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 51
{.pkt = hdr->size < handler java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
(struct hfi_msg_event_notify_pkt),
.done = hfi_event_notify,
},
{.pkt = HFI_MSG_SYS_INIT,
.pkt_sz = sizeof(struct hfi_msg_sys_init_done_pkt),
.done = hdr->ize,handler->kt_sz -pkt_type);
.is_sys_pkt = true,
}
{.pkt =