/device/soc/rockchip/common/hardware/mpp/include/ |
H A D | mpp_packet.h | 31 MPP_RET mpp_packet_new(MppPacket *packet); 32 MPP_RET mpp_packet_init(MppPacket *packet, void *data, size_t size); 33 MPP_RET mpp_packet_init_with_buffer(MppPacket *packet, MppBuffer buffer); 34 MPP_RET mpp_packet_copy_init(MppPacket *packet, const MppPacket src); 35 MPP_RET mpp_packet_deinit(MppPacket *packet); 38 * data : ( R/W ) start address of the whole packet memory 39 * size : ( R/W ) total size of the whole packet memory 40 * pos : ( R/W ) current access position of the whole packet memory, used for buffer read/write 45 void mpp_packet_set_data(MppPacket packet, void *data); 46 void mpp_packet_set_size(MppPacket packet, size_ [all...] |
H A D | rk_mpi.h | 43 * decode : both send video stream packet to decoder and get video frame from 49 * decode_put_packet: send video stream packet to decoder only, async interface 55 * encode_get_packet: get encoded video packet from encoder only, async interface 69 * reset : clear all data in mpp context, discard all packet and frame, 84 * @brief both send video stream packet to decoder and get video frame from 88 * @param[in] packet The input video stream, its usage can refer mpp_packet.h. 93 MPP_RET (*decode)(MppCtx ctx, MppPacket packet, MppFrame *frame); 95 * @brief send video stream packet to decoder only, async interface 98 * @param[in] packet The input video stream, its usage can refer mpp_packet.h. 102 MPP_RET (*decode_put_packet)(MppCtx ctx, MppPacket packet); [all...] |
/device/soc/rockchip/rk3399/hardware/mpp/include/ |
H A D | mpp_packet.h | 31 MPP_RET mpp_packet_new(MppPacket *packet); 32 MPP_RET mpp_packet_init(MppPacket *packet, void *data, size_t size); 33 MPP_RET mpp_packet_init_with_buffer(MppPacket *packet, MppBuffer buffer); 34 MPP_RET mpp_packet_copy_init(MppPacket *packet, const MppPacket src); 35 MPP_RET mpp_packet_deinit(MppPacket *packet); 38 * data : ( R/W ) start address of the whole packet memory 39 * size : ( R/W ) total size of the whole packet memory 40 * pos : ( R/W ) current access position of the whole packet memory, used for buffer read/write 45 void mpp_packet_set_data(MppPacket packet, void *data); 46 void mpp_packet_set_size(MppPacket packet, size_ [all...] |
H A D | rk_mpi.h | 43 * decode : both send video stream packet to decoder and get video frame from 49 * decode_put_packet: send video stream packet to decoder only, async interface 55 * encode_get_packet: get encoded video packet from encoder only, async interface 69 * reset : clear all data in mpp context, discard all packet and frame, 84 * @brief both send video stream packet to decoder and get video frame from 88 * @param[in] packet The input video stream, its usage can refer mpp_packet.h. 93 MPP_RET (*decode)(MppCtx ctx, MppPacket packet, MppFrame *frame); 95 * @brief send video stream packet to decoder only, async interface 98 * @param[in] packet The input video stream, its usage can refer mpp_packet.h. 102 MPP_RET (*decode_put_packet)(MppCtx ctx, MppPacket packet); [all...] |
/device/soc/rockchip/rk3568/hardware/mpp/include/ |
H A D | mpp_packet.h | 31 MPP_RET mpp_packet_new(MppPacket *packet); 32 MPP_RET mpp_packet_init(MppPacket *packet, void *data, size_t size); 33 MPP_RET mpp_packet_init_with_buffer(MppPacket *packet, MppBuffer buffer); 34 MPP_RET mpp_packet_copy_init(MppPacket *packet, const MppPacket src); 35 MPP_RET mpp_packet_deinit(MppPacket *packet); 38 * data : ( R/W ) start address of the whole packet memory 39 * size : ( R/W ) total size of the whole packet memory 40 * pos : ( R/W ) current access position of the whole packet memory, used for buffer read/write 45 void mpp_packet_set_data(MppPacket packet, void *data); 46 void mpp_packet_set_size(MppPacket packet, size_ [all...] |
H A D | rk_mpi.h | 43 * decode : both send video stream packet to decoder and get video frame from 49 * decode_put_packet: send video stream packet to decoder only, async interface 55 * encode_get_packet: get encoded video packet from encoder only, async interface 69 * reset : clear all data in mpp context, discard all packet and frame, 84 * @brief both send video stream packet to decoder and get video frame from 88 * @param[in] packet The input video stream, its usage can refer mpp_packet.h. 93 MPP_RET (*decode)(MppCtx ctx, MppPacket packet, MppFrame *frame); 95 * @brief send video stream packet to decoder only, async interface 98 * @param[in] packet The input video stream, its usage can refer mpp_packet.h. 102 MPP_RET (*decode_put_packet)(MppCtx ctx, MppPacket packet); [all...] |
/device/soc/rockchip/rk3588/hardware/mpp/include/ |
H A D | mpp_packet.h | 32 MPP_RET mpp_packet_new(MppPacket *packet); 33 MPP_RET mpp_packet_init(MppPacket *packet, void *data, size_t size); 34 MPP_RET mpp_packet_init_with_buffer(MppPacket *packet, MppBuffer buffer); 35 MPP_RET mpp_packet_copy_init(MppPacket *packet, const MppPacket src); 36 MPP_RET mpp_packet_deinit(MppPacket *packet); 39 * data : ( R/W ) start address of the whole packet memory 40 * size : ( R/W ) total size of the whole packet memory 41 * pos : ( R/W ) current access position of the whole packet memory, used for buffer read/write 46 void mpp_packet_set_data(MppPacket packet, void *data); 47 void mpp_packet_set_size(MppPacket packet, size_ [all...] |
H A D | rk_mpi.h | 44 * decode : both send video stream packet to decoder and get video frame from 50 * decode_put_packet: send video stream packet to decoder only, async interface 56 * encode_get_packet: get encoded video packet from encoder only, async interface 70 * reset : clear all data in mpp context, discard all packet and frame, 85 * @brief both send video stream packet to decoder and get video frame from 89 * @param[in] packet The input video stream, its usage can refer mpp_packet.h. 94 MPP_RET (*decode)(MppCtx ctx, MppPacket packet, MppFrame *frame); 96 * @brief send video stream packet to decoder only, async interface 99 * @param[in] packet The input video stream, its usage can refer mpp_packet.h. 103 MPP_RET (*decode_put_packet)(MppCtx ctx, MppPacket packet); [all...] |
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/loaderboot/common/ |
H A D | cmd_loop.c | 117 hi_u16 cmd_type = *(hi_u16 *)(&cmd_ctx->packet.payload[0]); in loader_flash_protect() 140 hi_u32 download_addr = *(hi_u32 *)(&cmd_ctx->packet.payload[0]); in loader_download_image() 141 hi_u32 file_len = *(hi_u32 *)(&cmd_ctx->packet.payload[4]); /* offset 4 is file length */ in loader_download_image() 142 hi_u32 erase_size = *(hi_u32 *)(&cmd_ctx->packet.payload[8]); /* offset 8 is erase size */ in loader_download_image() 143 hi_u8 burn_efuse = cmd_ctx->packet.payload[12]; /* offset 12 is burn efuse flag */ in loader_download_image() 177 if (cmd_ctx->packet.head.type == CMD_FACTORY_IMAGE) { in loader_download_image() 425 hi_u32 file_len = *(hi_u32 *)(&cmd_ctx->packet.payload[0]); in loader_burn_version() 474 hi_u32 file_len = *(hi_u32 *)(&cmd_ctx->packet.payload[0]); in loader_burn_efuse() 509 hi_u16 start_bit = *(hi_u16 *)(&cmd_ctx->packet.payload[0]); in loader_read_efuse() 510 hi_u16 size = *(hi_u16 *)(&cmd_ctx->packet in loader_read_efuse() 662 packet_data_info *packet = &ctx->packet; loader_read_frame() local 698 packet_data_info *packet = &ctx->packet; loader_exe_cmd() local [all...] |
/device/soc/rockchip/rk3399/hardware/mpp/src/ |
H A D | mpi_enc_utils.c | 665 MppPacket packet = NULL; in hal_mpp_get_sps() local 677 * Can use packet with normal malloc buffer as input not pkt_buf. in hal_mpp_get_sps() 682 mpp_packet_init_with_buffer(&packet, p->pkt_buf); in hal_mpp_get_sps() 683 /* NOTE: It is important to clear output packet length!! */ in hal_mpp_get_sps() 684 mpp_packet_set_length(packet, 0); in hal_mpp_get_sps() 688 ret = mpi->control(mpp_ctx, MPP_ENC_GET_HDR_SYNC, packet); in hal_mpp_get_sps() 692 mpp_packet_deinit(&packet); in hal_mpp_get_sps() 697 void *ptr = mpp_packet_get_pos(packet); in hal_mpp_get_sps() 698 size_t len = mpp_packet_get_length(packet); in hal_mpp_get_sps() 702 mpp_packet_deinit(&packet); in hal_mpp_get_sps() 729 MppPacket packet = NULL; hal_mpp_encode() local [all...] |
/device/soc/rockchip/rk3568/hardware/mpp/src/ |
H A D | mpi_enc_utils.c | 657 MppPacket packet = NULL; in hal_mpp_get_sps() local 669 * Can use packet with normal malloc buffer as input not pkt_buf. in hal_mpp_get_sps() 674 mpp_packet_init_with_buffer(&packet, p->pkt_buf); in hal_mpp_get_sps() 675 /* NOTE: It is important to clear output packet length!! */ in hal_mpp_get_sps() 676 mpp_packet_set_length(packet, 0); in hal_mpp_get_sps() 680 ret = mpi->control(mpp_ctx, MPP_ENC_GET_HDR_SYNC, packet); in hal_mpp_get_sps() 684 mpp_packet_deinit(&packet); in hal_mpp_get_sps() 689 void *ptr = mpp_packet_get_pos(packet); in hal_mpp_get_sps() 690 size_t len = mpp_packet_get_length(packet); in hal_mpp_get_sps() 694 mpp_packet_deinit(&packet); in hal_mpp_get_sps() 721 MppPacket packet = NULL; hal_mpp_encode() local [all...] |
/device/soc/rockchip/common/hardware/mpp/src/ |
H A D | mpi_enc_utils.c | 643 MppPacket packet = NULL; in hal_mpp_get_sps() local 655 * Can use packet with normal malloc buffer as input not pkt_buf. in hal_mpp_get_sps() 660 mpp_packet_init_with_buffer(&packet, p->pkt_buf); in hal_mpp_get_sps() 661 /* NOTE: It is important to clear output packet length!! */ in hal_mpp_get_sps() 662 mpp_packet_set_length(packet, 0); in hal_mpp_get_sps() 665 ret = mpi->control(mpp_ctx, MPP_ENC_GET_HDR_SYNC, packet); in hal_mpp_get_sps() 669 mpp_packet_deinit(&packet); in hal_mpp_get_sps() 674 void *ptr = mpp_packet_get_pos(packet); in hal_mpp_get_sps() 675 size_t len = mpp_packet_get_length(packet); in hal_mpp_get_sps() 679 mpp_packet_deinit(&packet); in hal_mpp_get_sps() 706 MppPacket packet = NULL; hal_mpp_encode() local [all...] |
/device/soc/rockchip/rk3588/hardware/mpp/src/ |
H A D | mpi_enc_utils.c | 415 MppPacket packet = NULL; in hal_mpp_get_sps() local 418 * Can use packet with normal malloc buffer as input not pkt_buf. in hal_mpp_get_sps() 422 mpp_packet_init_with_buffer(&packet, p->pkt_buf); in hal_mpp_get_sps() 423 /* NOTE: It is important to clear output packet length!! */ in hal_mpp_get_sps() 424 mpp_packet_set_length(packet, 0); in hal_mpp_get_sps() 426 ret = mpi->control(ctx, MPP_ENC_GET_HDR_SYNC, packet); in hal_mpp_get_sps() 432 void *ptr = mpp_packet_get_pos(packet); in hal_mpp_get_sps() 433 size_t len = mpp_packet_get_length(packet); in hal_mpp_get_sps() 438 mpp_packet_deinit(&packet); in hal_mpp_get_sps() 451 mpp_packet_deinit(&packet); in hal_mpp_get_sps() 490 MppPacket packet = NULL; hal_mpp_encode() local [all...] |
/device/soc/rockchip/common/vendor/drivers/media/platform/rockchip/isp/ |
H A D | capture_v2x.h | 21 void rkisp_mipi_v20_isr(u32 phy, u32 packet, u32 overflow, u32 state, struct rkisp_device *dev); 38 static inline void rkisp_mipi_v20_isr(u32 phy, u32 packet, u32 overflow, u32 state, struct rkisp_device *dev) in rkisp_mipi_v20_isr() argument 51 void rkisp_mipi_v21_isr(u32 phy, u32 packet, u32 overflow, u32 state, struct rkisp_device *dev); 63 static inline void rkisp_mipi_v21_isr(u32 phy, u32 packet, u32 overflow, u32 state, struct rkisp_device *dev) in rkisp_mipi_v21_isr() argument
|
H A D | capture_v3x.h | 14 void rkisp_mipi_v30_isr(u32 phy, u32 packet, u32 overflow, u32 state, struct rkisp_device *dev); 26 static inline void rkisp_mipi_v30_isr(u32 phy, u32 packet, u32 overflow, u32 state, struct rkisp_device *dev) in rkisp_mipi_v30_isr() argument
|
/device/soc/rockchip/rk3588/kernel/drivers/media/platform/rockchip/isp/ |
H A D | capture_v2x.h | 21 void rkisp_mipi_v20_isr(u32 phy, u32 packet, u32 overflow, u32 state, struct rkisp_device *dev); 31 static inline void rkisp_mipi_v20_isr(u32 phy, u32 packet, u32 overflow, u32 state, struct rkisp_device *dev) {} in rkisp_mipi_v20_isr() argument 40 void rkisp_mipi_v21_isr(u32 phy, u32 packet, u32 overflow, u32 state, struct rkisp_device *dev); 45 static inline void rkisp_mipi_v21_isr(u32 phy, u32 packet, u32 overflow, u32 state, struct rkisp_device *dev) {} in rkisp_mipi_v21_isr() argument
|
H A D | capture_v3x.h | 15 void rkisp_mipi_v30_isr(u32 phy, u32 packet, u32 overflow, u32 state, struct rkisp_device *dev); 20 static inline void rkisp_mipi_v30_isr(u32 phy, u32 packet, u32 overflow, u32 state, struct rkisp_device *dev) {} in rkisp_mipi_v30_isr() argument
|
/device/soc/rockchip/rk3568/hardware/mpp/mpp/legacy/inc/ |
H A D | mpp_packet_impl.h | 34 /* packet is inputed on reset mark as discard */ 51 * pts : packet pts 52 * dts : packet dts 78 MPP_RET mpp_packet_reset(MppPacketImpl *packet); 81 MPP_RET mpp_packet_set_status(MppPacket packet, MppPacketStatus status); 82 MPP_RET mpp_packet_get_status(MppPacket packet, MppPacketStatus *status);
|
/device/soc/rockchip/rk3568/hardware/codec/src/ |
H A D | hdi_mpp.c | 247 if (component->packet != NULL) { in CodecDestroy() 248 mppApi->HdiMppPacketDeinit(&component->packet); in CodecDestroy() 249 component->packet = NULL; in CodecDestroy() 817 MppPacket packet = component->packet; in CodecDecode() local 819 if (DecodeInitPacket(component, &packet, inputData, pkt_eos) != HDF_SUCCESS) { in CodecDecode() 820 HDF_LOGE("%{public}s: Init packet failed!", __func__); in CodecDecode() 826 ret = mpi->decode_put_packet(ctx, packet); in CodecDecode() 934 int32_t HandleEncodedPacket(RKHdiBaseComponent* component, MppPacket packet, RK_U32 pkt_eos, CodecBuffer *outInfo) in HandleEncodedPacket() argument 937 void *ptr = mppApi->HdiMppPacketGetPos(packet); in HandleEncodedPacket() 972 MppPacket packet = component->packet; CodecEncodeGetPacketLoop() local 1063 MppPacket packet = NULL; CodecEncodeHeader() local [all...] |
/device/soc/rockchip/rk3588/hardware/codec/src/ |
H A D | hdi_mpp.c | 247 if (component->packet != NULL) { in CodecDestroy() 248 mppApi->HdiMppPacketDeinit(&component->packet); in CodecDestroy() 249 component->packet = NULL; in CodecDestroy() 817 MppPacket packet = component->packet; in CodecDecode() local 819 if (DecodeInitPacket(component, &packet, inputData, pkt_eos) != HDF_SUCCESS) { in CodecDecode() 820 HDF_LOGE("%{public}s: Init packet failed!", __func__); in CodecDecode() 826 ret = mpi->decode_put_packet(ctx, packet); in CodecDecode() 934 int32_t HandleEncodedPacket(RKHdiBaseComponent* component, MppPacket packet, RK_U32 pkt_eos, CodecBuffer *outInfo) in HandleEncodedPacket() argument 937 void *ptr = mppApi->HdiMppPacketGetPos(packet); in HandleEncodedPacket() 972 MppPacket packet = component->packet; CodecEncodeGetPacketLoop() local 1063 MppPacket packet = NULL; CodecEncodeHeader() local [all...] |
/device/soc/rockchip/common/sdk_linux/drivers/gpu/drm/ |
H A D | drm_mipi_dsi.c | 368 * mipi_dsi_packet_format_is_short - check if a packet is of the short format 369 * @type: MIPI DSI data type of the packet 371 * Return: true if the packet for the given data type is a short packet, false 393 * mipi_dsi_packet_format_is_long - check if a packet is of the long format 394 * @type: MIPI DSI data type of the packet 396 * Return: true if the packet for the given data type is a long packet, false 416 * mipi_dsi_create_packet - create a packet from a message according to the 418 * @packet 423 mipi_dsi_create_packet(struct mipi_dsi_packet *packet, const struct mipi_dsi_msg *msg) mipi_dsi_create_packet() argument [all...] |
/device/soc/rockchip/rk3568/hardware/mpp/mpp/legacy/ |
H A D | vpu_api_legacy.cpp | 634 MppPacket packet = nullptr; in decode() local 738 (*(mRKMppApi.HdiMppPacketInitWithBuffer))(&packet, str_buf); /* input */ in decode() 757 (*(mRKMppApi.Hdimpp_task_meta_set_packet))(task, KEY_INPUT_PACKET, packet); in decode() 831 (*(mRKMppApi.HdiMppPacketInit))(&packet, pkt->data, pkt->size); in decode() 832 (*(mRKMppApi.HdiMppPacketSetPts))(packet, pkt->pts); in decode() 834 (*(mRKMppApi.HdiMppPacketSetEos))(packet); in decode() 840 ret = mpi->decode(mpp_ctx, packet, &mframe); in decode() 882 if (packet) in decode() 883 (*(mRKMppApi.HdiMppPacketDeinit))(&packet); in decode() 1025 MppPacket packet in encode() local 1373 MppPacket packet = nullptr; encoder_getstream() local [all...] |
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/libcoap/include/coap2/ |
H A D | coap_io.h | 172 * error, @p *packet is set to NULL. 175 * @param packet Received packet metadata and payload. src and dst should be preset. 180 ssize_t coap_network_read( coap_socket_t *sock, struct coap_packet_t *packet ); 187 * Given a packet, set msg and msg_len to an address and length of the packet's 190 void coap_packet_get_memmapped(struct coap_packet_t *packet, 196 * Get the pbuf of a packet. The caller takes over responsibility for freeing 199 struct pbuf *coap_packet_extract_pbuf(struct coap_packet_t *packet);
|
/device/soc/rockchip/rk3568/hardware/codec/include/ |
H A D | hdi_mpp_mpi.h | 31 // mpp packet api 41 typedef void (*hdiMppPacketSetData)(MppPacket packet, void *data); 44 typedef void (*hdiMppPacketSetPos)(MppPacket packet, void *data); 101 typedef MPP_RET (*hdiMppTaskMetaGetPacket)(MppTask task, MppMetaKey key, MppPacket *packet); 103 typedef MPP_RET (*hdiMppTaskMetaSetPacket)(MppTask task, MppMetaKey key, MppPacket packet); 118 // mpp packet api
|
/device/soc/rockchip/rk3588/hardware/codec/include/ |
H A D | hdi_mpp_mpi.h | 31 // mpp packet api 41 typedef void (*hdiMppPacketSetData)(MppPacket packet, void *data); 44 typedef void (*hdiMppPacketSetPos)(MppPacket packet, void *data); 101 typedef MPP_RET (*hdiMppTaskMetaGetPacket)(MppTask task, MppMetaKey key, MppPacket *packet); 103 typedef MPP_RET (*hdiMppTaskMetaSetPacket)(MppTask task, MppMetaKey key, MppPacket packet); 118 // mpp packet api
|