libxcoder  5.2.0
ni_nvme.h File Reference

Private definitions for interfacing with NETINT video processing devices over NVMe. More...

#include "ni_defs.h"

Go to the source code of this file.

Data Structures

struct  _ni_nvme_command
 
struct  _ni_nvme_id_power_state
 
struct  _ni_nvme_identity_xcoder_hw
 
struct  _ni_nvme_identity
 
struct  _ni_nvme_write_complete_dw0_t
 

Macros

#define NI_NVME_IDENTITY_CMD_DATA_SZ   4096
 
#define WRITE_INSTANCE_SET_DW2_SUBFRAME_IDX(dst, size)   (dst = (size & 0xFFFFFFFFUL))
 
#define WRITE_INSTANCE_SET_DW3_SUBFRAME_SIZE(dst, size)   (dst = (size & 0xFFFFFFFFUL))
 
#define CREATE_SESSION_SET_DW10_SUBTYPE(dst)   (dst = (nvme_open_xcoder_create_session & 0xFFFFUL))
 
#define CREATE_SESSION_SET_DW11_INSTANCE(dst, instance)   (dst = (instance & 0xFFFFUL))
 
#define CREATE_SESSION_SET_DW12_DEC_CID(dst, cid)   (dst = (cid & 0xFFFFUL))
 
#define CREATE_SESSION_SET_DW12_DEC_HWF(dst, hwf)   (dst = (((hwf << 16) & 0xFFFF0000UL) | (dst & 0xFFFFUL)))
 
#define CREATE_SESSION_SET_DW12_SCL_OPC(dst, opc)   (dst = (opc & 0xFFFFUL))
 
#define CREATE_SESSION_SET_DW12_ENC_CID_FRWIDTH(dst, cid, width)   (dst = (((width << 16) & 0xFFFF0000UL) | (cid & 0xFFFFUL)))
 
#define CREATE_SESSION_SET_DW13_ENC_FRHIGHT(dst, hight)   (dst = (hight & 0xFFFFUL))
 
#define CREATE_SESSION_SET_DW14_MODEL_LOAD(dst, load)   (dst = (load & 0xFFFFFFFFUL))
 
#define CREATE_SESSION_SET_DW12_AI_HWF(dst, hwf)   (dst = (((hwf << 16) & 0xFFFF0000UL) | (dst & 0xFFFFUL)))
 
#define DESTROY_SESSION_SET_DW10_INSTANCE(dst, sid)   (dst = (((sid << 16) & 0xFFFF0000UL) | (nvme_close_xcoder_destroy_session & 0xFFFFUL)))
 
#define READ_INSTANCE_SET_DW10_SUBTYPE(dst, sid)   (dst = (((sid << 16) & 0xFFFF0000UL) | (nvme_write_xcoder_write_instance & 0xFFFFUL)))
 
#define READ_INSTANCE_SET_DW11_INSTANCE(dst, instance)   (dst = (instance & 0xFFFFUL))
 
#define READ_INSTANCE_SET_DW15_SIZE(dst, size)   (dst = (size & 0xFFFFFFFFUL))
 
#define WRITE_INSTANCE_SET_DW10_SUBTYPE(dst, sid)   (dst = (((sid << 16) & 0xFFFF0000UL) | (nvme_write_xcoder_write_instance & 0xFFFFUL)))
 
#define WRITE_INSTANCE_SET_DW11_INSTANCE(dst, instance)   (dst = (instance & 0xFFFFUL))
 
#define WRITE_INSTANCE_SET_DW11_PAGEOFFSET(dst, pageoffset)   (dst = (((pageoffset << 16) | dst)))
 
#define WRITE_INSTANCE_SET_DW12_ISHWDESC(dst, ishwdesc)   (dst = (ishwdesc & 0xFFFFUL))
 
#define WRITE_INSTANCE_SET_DW12_FRAMEINSTID(dst, fid)   (dst = (0xFFFFUL & dst) | ((fid<<16) & 0xFFFF0000UL))
 
#define WRITE_INSTANCE_SET_DW15_SIZE(dst, size)   (dst = (size & 0xFFFFFFFFUL))
 
#define QUERY_SESSION_SET_DW10_SUBTYPE(dst, sid)   (dst = (((sid << 16) & 0xFFFF0000UL) | (nvme_query_xcoder_query_session & 0xFFFFUL)))
 
#define QUERY_SESSION_SET_DW11_INSTANCE(dst, instance)   (dst = (instance & 0xFFFFUL))
 
#define QUERY_SESSION_SET_DW11_SESSION_STATS(dst)   (dst = (nvme_query_xcoder_session_get_stats & 0xFFFFUL))
 
#define QUERY_SESSION_SET_DW15_SIZE(dst, size)   (dst = (size & 0xFFFFFFFFUL))
 
#define QUERY_INSTANCE_SET_DW10_SUBTYPE(dst, sid)   (dst = (((sid << 16) & 0xFFFF0000UL) | (nvme_query_xcoder_query_instance & 0xFFFFUL)))
 
#define QUERY_INSTANCE_SET_DW11_INSTANCE_STATUS(dst, instance)   (dst = (((nvme_query_xcoder_instance_get_status << 16) & 0xFFFF0000UL) | (instance & 0xFFFFUL)))
 
#define QUERY_INSTANCE_SET_DW11_INSTANCE_STREAM_INFO(dst, instance)   (dst = (((nvme_query_xcoder_instance_get_stream_info << 16) & 0xFFFF0000UL) | (instance & 0xFFFFUL)))
 
#define QUERY_INSTANCE_SET_DW11_INSTANCE_END_OF_OUTPUT(dst, instance)   (dst = (((nvme_query_xcoder_instance_get_end_of_output << 16) & 0xFFFF0000UL) | (instance & 0xFFFFUL)))
 
#define QUERY_INSTANCE_SET_DW11_INSTANCE_BUF_INFO(dst, rw_type, inst_type)   (dst = (((rw_type << 16) & 0xFFFF0000UL) | (inst_type & 0xFFFFUL)))
 
#define QUERY_INSTANCE_SET_DW15_SIZE(dst, size)   (dst = (size & 0xFFFFFFFFUL))
 
#define QUERY_GENERAL_SET_DW10_SUBTYPE(dst)   (dst = ( (nvme_query_xcoder_query_general & 0xFFFFUL)))
 
#define QUERY_GENERAL_SET_DW11_INSTANCE_STATUS(dst, instance)   (dst = (((nvme_query_xcoder_general_get_status << 16) & 0xFFFF0000UL) | (instance & 0xFFFFUL)))
 
#define CONFIG_SESSION_SET_DW10_SESSION_ID(dst, sid)   (dst = (((sid << 16) & 0xFFFF0000UL) | (nvme_config_xcoder_config_session & 0xFFFFUL)))
 
#define CONFIG_SESSION_SET_DW11_SUBTYPE(dst, subtype)   (dst = (((0 << 16) & 0xFFFF0000UL) | (subtype & 0xFFFFUL)))
 
#define CONFIG_SESSION_SET_DW15_SIZE(dst, size)   (dst = (size & 0xFFFFFFFFUL))
 
#define CONFIG_INSTANCE_SET_DW10_SUBTYPE(dst, sid)   (dst = (((sid << 16) & 0xFFFF0000UL) | (nvme_config_xcoder_config_instance & 0xFFFFUL)))
 
#define CONFIG_INSTANCE_SET_DW11_SOS(dst, instance)   (dst = (((nvme_config_xcoder_config_set_sos << 16) & 0xFFFF0000UL) | (instance & 0xFFFFUL)))
 
#define CONFIG_INSTANCE_SET_DW11_EOS(dst, instance)   (dst = (((nvme_config_xcoder_config_set_eos << 16) & 0xFFFF0000UL) | (instance & 0xFFFFUL)))
 
#define CONFIG_INSTANCE_SET_DW11_DEC_PARAMS(dst, instance)   (dst = (((nvme_config_xcoder_config_set_dec_params << 16) & 0xFFFF0000UL) | (instance & 0xFFFFUL)))
 
#define CONFIG_INSTANCE_SET_DW11_ENC_PARAMS(dst, instance)   (dst = (((nvme_config_xcoder_config_set_enc_params << 16) & 0xFFFF0000UL) | (instance & 0xFFFFUL)))
 
#define CONFIG_INSTANCE_SET_DW11_ENC_FRAME_PARAMS(dst, instance)   (dst = (((nvme_config_xcoder_config_set_enc_frame_params << 16) & 0xFFFF0000UL) | (instance & 0xFFFFUL)))
 
#define CONFIG_INSTANCE_SET_DW11_FLUSH(dst, instance)   (dst = (((nvme_config_xcoder_config_flush << 16) & 0xFFFF0000UL) | (instance & 0xFFFFUL)))
 
#define CONFIG_INSTANCE_SET_DW11_UPDATE_PARAMS(dst, instance)   (dst = (((nvme_config_xcoder_config_update_enc_params << 16) & 0xFFFF0000UL) | (instance & 0xFFFFUL)))
 
#define CONFIG_INSTANCE_SET_DW11_ALLOC_FRAME(dst, instance)   (dst = (((nvme_config_xcoder_config_alloc_frame << 16) & 0xFFFF0000UL) | (instance & 0xFFFFUL)))
 
#define CONFIG_INSTANCE_SET_DW11_WRITE_LEN(dst, instance)   (dst = (((nvme_config_xcoder_config_set_write_legth << 16) & 0xFFFF0000UL) | (instance & 0xFFFFUL)))
 
#define CONFIG_INSTANCE_SET_DW11_AI_PARAMS(dst, instance)
 
#define CONFIG_INSTANCE_SET_DW15_SIZE(dst, size)   (dst = (size & 0xFFFFFFFFUL))
 
#define RECYCLE_BUFFER_SET_DW10_BUFID(dst, bid)   (dst = (bid & 0xFFFFUL))
 
#define NI_DATA_BUFFER_LEN   4096
 
#define LBA_BIT_OFFSET   12
 
#define NI_SUB_BIT_OFFSET   4
 
#define NI_OP_BIT_OFFSET   8
 
#define NI_INSTANCE_TYPE_OFFSET   19
 
#define NI_SESSION_ID_OFFSET   22
 
#define NI_SESSION_ID_SHIFT_HI   3
 
#define MBs(xMB)   ((xMB)*1024*1024)
 
#define MBs_to_4k(xMB)   ((xMB)*1024*1024/4096)
 
#define START_OFFSET_IN_4K   MBs_to_4k(512)
 
#define CTL_OFFSET_IN_4K(op, sub, subtype)
 
#define RD_OFFSET_IN_4K   (START_OFFSET_IN_4K + MBs_to_4k(128))
 
#define WR_OFFSET_IN_4K   (RD_OFFSET_IN_4K + MBs_to_4k(256))
 
#define LOAD_OFFSET_IN_4K   (WR_OFFSET_IN_4K + MBs_to_4k(256))
 
#define WR_METADATA_OFFSET_IN_4K   (MBs_to_4k(1024) + MBs_to_4k(256))
 
#define DOWNLOAD_OFFSET_IN_4K   (WR_METADATA_OFFSET_IN_4K + MBs_to_4k(128))
 
#define DUMP_LOG_OFFSET_IN_4K   (LOAD_OFFSET_IN_4K + MBs_to_4k(8))
 
#define NVME_LOG_OFFSET_IN_4K   (DUMP_LOG_OFFSET_IN_4K)
 
#define EP_LOG_OFFSET_IN_4K   (NVME_LOG_OFFSET_IN_4K + MBs_to_4k(1))
 
#define DP_LOG_OFFSET_IN_4K   (EP_LOG_OFFSET_IN_4K + MBs_to_4k(1))
 
#define TP_LOG_OFFSET_IN_4K   (DP_LOG_OFFSET_IN_4K + MBs_to_4k(1))
 
#define FP_LOG_OFFSET_IN_4K   (TP_LOG_OFFSET_IN_4K + MBs_to_4k(1))
 
#define HIGH_OFFSET_IN_4K(sid, instance)
 
#define GAP(opcode)   ((opcode) - nvme_admin_cmd_xcoder_open)
 
#define WRITE_INSTANCE_W(sid, instance)   HIGH_OFFSET_IN_4K(sid,instance) + WR_OFFSET_IN_4K
 
#define WRITE_METADATA_W(sid, instance)   HIGH_OFFSET_IN_4K(sid, instance) + WR_METADATA_OFFSET_IN_4K
 
#define READ_INSTANCE_R(sid, instance)   HIGH_OFFSET_IN_4K(sid,instance) + RD_OFFSET_IN_4K
 
#define DOWNLOAD_FRAMEIDX_R(frame_id)   ((frame_id & 0xFFFUL) << NI_INSTANCE_TYPE_OFFSET) + DOWNLOAD_OFFSET_IN_4K
 
#define IDENTIFY_DEVICE_R   HIGH_OFFSET_IN_4K(0,0) + CTL_OFFSET_IN_4K(GAP(0xD9), 1, 0)
 
#define OPEN_GET_SID_R(instance)
 
#define OPEN_SESSION_W(sid, instance)
 
#define OPEN_SESSION_CODEC(instance, codec, param)
 
#define OPEN_ADD_CODEC(instance, codec, param)
 
#define CLOSE_SESSION_R(sid, instance)
 
#define QUERY_SESSION_R(sid, instance)
 
#define QUERY_SESSION_STATS_R(sid, instance)
 
#define QUERY_INSTANCE_STATUS_R(sid, instance)
 
#define QUERY_INSTANCE_CUR_STATUS_INFO_R(sid, instance)
 
#define QUERY_INSTANCE_AI_INFO_R(sid, instance)
 
#define QUERY_INSTANCE_STREAM_INFO_R(sid, instance)
 
#define QUERY_INSTANCE_EOS_R(sid, instance)
 
#define QUERY_INSTANCE_RBUFF_SIZE_R(sid, instance)
 
#define QUERY_INSTANCE_WBUFF_SIZE_R(sid, instance)
 
#define QUERY_INSTANCE_WBUFF_SIZE_R_BY_EP(sid, instance)
 
#define QUERY_INSTANCE_RBUFF_SIZE_BUSY_R(sid, instance)
 
#define QUERY_INSTANCE_WBUFF_SIZE_BUSY_R(sid, instance)
 
#define QUERY_INSTANCE_UPLOAD_ID_R(sid, instance)
 
#define QUERY_INSTANCE_ACQUIRE_BUF(sid, instance)
 
#define QUERY_INSTANCE_HW_OUT_SIZE_R(sid, instance)
 
#define QUERY_INSTANCE_NL_SIZE_R(sid, instance)
 
#define QUERY_INSTANCE_NL_R(sid, instance)
 
#define QUERY_INSTANCE_NL_SIZE_V2_R(sid, instance)
 
#define QUERY_INSTANCE_NL_V2_R(sid, instance)
 
#define QUERY_INSTANCE_METRICS_R(sid, instance)
 
#define QUERY_GENERAL_GET_STATUS_R(instance)
 
#define QUERY_DETAIL_GET_STATUS_R(instance)
 
#define QUERY_DETAIL_GET_STATUS_V1_R(instance)
 
#define QUERY_GET_NVME_STATUS_R
 
#define QUERY_GET_VERSIONS_R
 
#define QUERY_GET_NS_VF_R
 
#define QUERY_GET_TEMPERATURE_R
 
#define QUERY_GET_EXTTRA_INFO_R
 
#define CONFIG_INSTANCE_SetSOS_W(sid, instance)
 
#define CONFIG_INSTANCE_SetEOS_W(sid, instance)
 
#define CONFIG_INSTANCE_Flush_W(sid, instance)
 
#define CONFIG_INSTANCE_SetDecPara_W(sid, instance)
 
#define CONFIG_INSTANCE_SetScalerPara_W(sid, instance)
 
#define CONFIG_INSTANCE_SetScalerAlloc_W(sid, instance)
 
#define CONFIG_INSTANCE_SetScalerDrawBoxPara_W(sid, instance)
 
#define CONFIG_INSTANCE_SetScalerWatermarkPara_W(sid, instance)
 
#define CONFIG_INSTANCE_SetEncPara_W(sid, instance)
 
#define CONFIG_INSTANCE_UpdateEncPara_W(sid, instance)
 
#define CONFIG_INSTANCE_SetEncFramePara_W(sid, instance)
 
#define CONFIG_INSTANCE_SetPktSize_W(sid, instance)
 
#define CONFIG_INSTANCE_SetSeqChange_W(sid, instance)
 
#define CONFIG_INSTANCE_SetEncRoiQpMap_W(sid, instance)
 
#define CONFIG_INSTANCE_SetAiPara_W(sid, instance)
 
#define CONFIG_INSTANCE_SetAiHVSPlus_W(sid, instance)
 
#define CONFIG_INSTANCE_SetAiFrm_W(sid, instance)
 
#define CONFIG_INSTANCE_SetP2P_W(sid, instance)
 
#define CONFIG_SESSION_KeepAlive_W(sid)
 
#define CONFIG_SESSION_Read_W(sid)
 
#define CONFIG_SESSION_Write_W(sid)
 
#define CLEAR_INSTANCE_BUF_W(frame_id)   CTL_OFFSET_IN_4K(GAP(nvme_admin_cmd_xcoder_recycle_buffer), 0, (frame_id & 0x00FF)) + (((frame_id & 0xFF00)>>8)<<NI_INSTANCE_TYPE_OFFSET)
 
#define SEND_P2P_BUF_W   CTL_OFFSET_IN_4K(GAP(nvme_admin_cmd_xcoder_p2p_send), 0, 0)
 
#define CONFIG_SESSION_KeepAliveTimeout_W(sid)
 
#define CONFIG_SESSION_SWVersion_W(sid)
 
#define CONFIG_GLOBAL_NAMESPACE_NUM
 
#define CONFIG_SESSION_DDR_PRIORITY_W(sid)
 
#define CONFIG_SESSION_FRAME_COPY_W(sid)
 
#define CONFIG_INSTANCE_UploadModel_W(sid, instance)
 

Typedefs

typedef struct _ni_nvme_command ni_nvme_command_t
 
typedef struct _ni_nvme_id_power_state ni_nvme_id_power_state_t
 
typedef struct _ni_nvme_identity_xcoder_hw ni_nvme_identity_xcoder_hw_t
 
typedef struct _ni_nvme_identity ni_nvme_identity_t
 
typedef enum _ni_nvme_admin_opcode ni_nvme_admin_opcode_t
 
typedef enum _nvme_open_xcoder_subtype nvme_open_xcoder_subtype_t
 
typedef enum _nvme_close_xcoder_subtype nvme_close_xcoder_subtype_t
 
typedef enum _nvme_read_xcoder_subtype nvme_read_xcoder_subtype_t
 
typedef enum _nvme_write_xcoder_subtype nvme_write_xcoder_subtype_t
 
typedef enum _nvme_query_xcoder_subtype nvme_query_xcoder_subtype_t
 
typedef enum _nvme_query_xcoder_session_subtype nvme_query_xcoder_session_subtype_t
 
typedef enum _nvme_query_xcoder_instance_subtype nvme_query_xcoder_instance_subtype_t
 
typedef enum _nvme_query_xcoder_general_subtype nvme_query_xcoder_general_subtype_t
 
typedef enum _nvme_config_xcoder_subtype nvme_config_xcoder_subtype_t
 
typedef enum _nvme_config_xcoder_config_session_subtype nvme_config_xcoder_config_session_subtype_t
 
typedef enum _nvme_config_xcoder_config_instance_subtype nvme_config_xcoder_config_instance_subtype_t
 
typedef enum _nvme_xcoder_general_subtype nvme_xcoder_general_subtype_t
 
typedef struct _ni_nvme_write_complete_dw0_t ni_nvme_write_complete_dw0_t
 
typedef uint32_t ni_nvme_result_t
 

Enumerations

enum  _ni_nvme_admin_opcode {
  nvme_admin_cmd_delete_sq = 0x00, nvme_admin_cmd_create_sq = 0x01, nvme_admin_cmd_get_log_page = 0x02, nvme_admin_cmd_delete_cq = 0x04,
  nvme_admin_cmd_create_cq = 0x05, nvme_admin_cmd_identify = 0x06, nvme_admin_cmd_abort_cmd = 0x08, nvme_admin_cmd_set_features = 0x09,
  nvme_admin_cmd_get_features = 0x0a, nvme_admin_cmd_async_event = 0x0c, nvme_admin_cmd_ns_mgmt = 0x0d, nvme_admin_cmd_activate_fw = 0x10,
  nvme_admin_cmd_download_fw = 0x11, nvme_admin_cmd_ns_attach = 0x15, nvme_admin_cmd_format_nvm = 0x80, nvme_admin_cmd_security_send = 0x81,
  nvme_admin_cmd_security_recv = 0x82, nvme_admin_cmd_xcoder_open = 0xD0, nvme_admin_cmd_xcoder_close = 0xD1, nvme_admin_cmd_xcoder_query = 0xD2,
  nvme_admin_cmd_xcoder_connect = 0xD3, nvme_admin_cmd_xcoder_read = 0xD4, nvme_admin_cmd_xcoder_write = 0xD5, nvme_admin_cmd_xcoder_config = 0xD6,
  nvme_admin_cmd_xcoder_recycle_buffer = 0xD7, nvme_admin_cmd_xcoder_init_framepool = 0xD8, nvme_admin_cmd_xcoder_identity = 0xD9, nvme_admin_cmd_xcoder_general = 0xDA,
  nvme_admin_cmd_xcoder_load = 0xDB, nvme_admin_cmd_xcoder_p2p_send = 0xDC, nvme_admin_cmd_xcoder_download_buffer = 0xDD
}
 
enum  _nvme_open_xcoder_subtype { nvme_open_xcoder_create_session = 0x0000, nvme_open_xcoder_add_session = 0x0001 }
 
enum  _nvme_close_xcoder_subtype { nvme_close_xcoder_destroy_session = 0x0000 }
 
enum  _nvme_read_xcoder_subtype { nvme_read_xcoder_read_instance = 0x0001 }
 
enum  _nvme_write_xcoder_subtype { nvme_write_xcoder_write_instance = 0x0001 }
 
enum  _nvme_query_xcoder_subtype { nvme_query_xcoder_query_session = 0x0000, nvme_query_xcoder_query_instance = 0x0001, nvme_query_xcoder_query_general = 0x0002 }
 
enum  _nvme_query_xcoder_session_subtype { nvme_query_xcoder_session_get_stats = 0x0000 }
 
enum  _nvme_query_xcoder_instance_subtype {
  nvme_query_xcoder_instance_read_ai_hw_output = 0x0000, nvme_query_xcoder_instance_read_perf_metrics = 0x0001, nvme_query_xcoder_instance_get_status = 0x0002, nvme_query_xcoder_instance_get_current_status = 0x0003,
  nvme_query_xcoder_instance_get_stream_info = 0x0004, nvme_query_xcoder_instance_network_layer_size_v2 = 0x0004, nvme_query_xcoder_instance_get_end_of_output = 0x0005, nvme_query_xcoder_instance_read_network_layer_v2 = 0x0005,
  nvme_query_xcoder_instance_write_buf_size_by_ep = 0x0007, nvme_query_xcoder_instance_acquire_buf = 0x0008, nvme_query_xcoder_instance_read_buf_size = 0x0009, nvme_query_xcoder_instance_write_buf_size = 0x000a,
  nvme_query_xcoder_instance_upload_idx = 0x000b, nvme_query_xcoder_instance_network_layer_size = 0x000b, nvme_query_xcoder_instance_read_output_buf_size = 0x00b, nvme_query_xcoder_instance_dec_place_holder,
  nvme_query_xcoder_instance_read_network_layer = 0x000c, nvme_query_xcoder_instance_scl_place_holder = 0x000d, nvme_query_xcoder_instance_read_buf_size_busy = 0x000e, nvme_query_xcoder_instance_write_buf_size_busy = 0x000f
}
 
enum  _nvme_query_xcoder_general_subtype { nvme_query_xcoder_general_get_status = 0x0002, nvme_query_xcoder_general_get_detail_info = 0x0007, nvme_query_xcoder_general_get_detail_info_v1 = 0x0008 }
 
enum  _nvme_config_xcoder_subtype { nvme_config_xcoder_config_session = 0x0000, nvme_config_xcoder_config_instance = 0x0001, nvme_config_xcoder_config_global = 0x0002 }
 
enum  _nvme_config_xcoder_config_session_subtype {
  nvme_config_xcoder_config_session_keep_alive = 0x0000, nvme_config_xcoder_config_session_read = 0x0001, nvme_config_xcoder_config_session_write = 0x0002, nvme_config_xcoder_config_session_keep_alive_timeout = 0x0003,
  nvme_config_xcoder_config_session_sw_version = 0x0004, nvme_config_xcoder_config_namespace_num = 0x0005, nvme_config_xcoder_config_ddr_priority = 0x0006, nvme_config_xcoder_config_frame_clone = 0x0007
}
 
enum  _nvme_config_xcoder_config_instance_subtype {
  nvme_config_xcoder_config_set_sos = 0x0000, nvme_config_xcoder_config_set_eos = 0x0001, nvme_config_xcoder_config_set_enc_params = 0x0005, nvme_config_xcoder_config_set_dec_params = 0x0005,
  nvme_config_xcoder_config_set_scaler_params = 0x0005, nvme_config_xcoder_config_set_scaler_drawbox_params = 0x0006, nvme_config_xcoder_config_set_p2p_params = 0x0006, nvme_config_xcoder_config_flush = 0x0007,
  nvme_config_xcoder_config_set_upload_load = 0x0007, nvme_config_xcoder_config_hvsplus = 0x0007, nvme_config_xcoder_config_update_enc_params = 0x0008, nvme_config_xcoder_config_set_network_binary = 0x0008,
  nvme_config_xcoder_config_set_enc_frame_params = 0x0009, nvme_config_xcoder_config_set_roi_qp_map = 0x000b, nvme_config_xcoder_config_set_write_legth = 0x000c, nvme_config_xcoder_config_alloc_frame = 0x000d,
  nvme_config_xcoder_config_set_sequence_change = 0x000d, nvme_config_xcoder_instance_read_buf_size_busy_place_holder = 0x000e, nvme_config_xcoder_config_set_scaler_watermark_params = 0x000e, nvme_config_xcoder_instance_write_buf_size_busy_place_holder = 0x000f
}
 
enum  _nvme_xcoder_general_subtype {
  nvme_xcoder_general_status_query = 2, nvme_xcoder_general_versions_query = 3, nvme_xcoder_general_nsvf_query = 4, nvme_xcoder_general_temperature_query = 5,
  nvme_xcoder_general_extra_info_query = 5
}
 

Functions

int32_t ni_nvme_send_admin_cmd (ni_nvme_admin_opcode_t opcode, ni_device_handle_t fd, ni_nvme_command_t *p_ni_nvme_cmd, uint32_t data_len, void *data, uint32_t *pResult)
 Compose a nvme admin command. More...
 
int32_t ni_nvme_send_io_cmd (ni_nvme_opcode_t opcode, ni_device_handle_t fd, ni_nvme_command_t *p_ni_nvme_cmd, uint32_t data_len, void *data, uint32_t *pResult)
 Compose a nvme io command. More...
 
int32_t ni_nvme_send_io_cmd_thru_admin_queue (ni_nvme_admin_opcode_t opcode, ni_device_handle_t fd, ni_nvme_command_t *p_ni_nvme_cmd, uint32_t data_len, void *data, uint32_t *pResult)
 
ni_retcode_t ni_nvme_check_error_code (int rc, int opcode, uint32_t xcoder_type, uint32_t hw_id, uint32_t *inst_id)
 Check f/w error return code, and if it's a fatal one, terminate application's decoding/encoding processing by sending self a SIGTERM signal. Application shall handle this gracefully. More...
 
int ni_nvme_enumerate_devices (char ni_devices[][NI_MAX_DEVICE_NAME_LEN], int max_handles)
 
int32_t ni_nvme_send_read_cmd (ni_device_handle_t handle, ni_event_handle_t event_handle, void *p_data, uint32_t data_len, uint32_t lba)
 Compose an io read command. More...
 
int32_t ni_nvme_send_write_cmd (ni_device_handle_t handle, ni_event_handle_t event_handle, void *p_data, uint32_t data_len, uint32_t lba)
 Compose a io write command. More...
 

Detailed Description

Private definitions for interfacing with NETINT video processing devices over NVMe.


Definition in file ni_nvme.h.

Macro Definition Documentation

◆ CLEAR_INSTANCE_BUF_W

#define CLEAR_INSTANCE_BUF_W (   frame_id)    CTL_OFFSET_IN_4K(GAP(nvme_admin_cmd_xcoder_recycle_buffer), 0, (frame_id & 0x00FF)) + (((frame_id & 0xFF00)>>8)<<NI_INSTANCE_TYPE_OFFSET)

Definition at line 878 of file ni_nvme.h.

◆ CLOSE_SESSION_R

#define CLOSE_SESSION_R (   sid,
  instance 
)

◆ CONFIG_GLOBAL_NAMESPACE_NUM

#define CONFIG_GLOBAL_NAMESPACE_NUM

◆ CONFIG_INSTANCE_Flush_W

#define CONFIG_INSTANCE_Flush_W (   sid,
  instance 
)

◆ CONFIG_INSTANCE_SET_DW10_SUBTYPE

#define CONFIG_INSTANCE_SET_DW10_SUBTYPE (   dst,
  sid 
)    (dst = (((sid << 16) & 0xFFFF0000UL) | (nvme_config_xcoder_config_instance & 0xFFFFUL)))

Definition at line 575 of file ni_nvme.h.

◆ CONFIG_INSTANCE_SET_DW11_AI_PARAMS

#define CONFIG_INSTANCE_SET_DW11_AI_PARAMS (   dst,
  instance 
)
Value:
0xFFFF0000UL) | \
(instance & 0xFFFFUL)))

Definition at line 586 of file ni_nvme.h.

◆ CONFIG_INSTANCE_SET_DW11_ALLOC_FRAME

#define CONFIG_INSTANCE_SET_DW11_ALLOC_FRAME (   dst,
  instance 
)    (dst = (((nvme_config_xcoder_config_alloc_frame << 16) & 0xFFFF0000UL) | (instance & 0xFFFFUL)))

Definition at line 583 of file ni_nvme.h.

◆ CONFIG_INSTANCE_SET_DW11_DEC_PARAMS

#define CONFIG_INSTANCE_SET_DW11_DEC_PARAMS (   dst,
  instance 
)    (dst = (((nvme_config_xcoder_config_set_dec_params << 16) & 0xFFFF0000UL) | (instance & 0xFFFFUL)))

Definition at line 578 of file ni_nvme.h.

◆ CONFIG_INSTANCE_SET_DW11_ENC_FRAME_PARAMS

#define CONFIG_INSTANCE_SET_DW11_ENC_FRAME_PARAMS (   dst,
  instance 
)    (dst = (((nvme_config_xcoder_config_set_enc_frame_params << 16) & 0xFFFF0000UL) | (instance & 0xFFFFUL)))

Definition at line 580 of file ni_nvme.h.

◆ CONFIG_INSTANCE_SET_DW11_ENC_PARAMS

#define CONFIG_INSTANCE_SET_DW11_ENC_PARAMS (   dst,
  instance 
)    (dst = (((nvme_config_xcoder_config_set_enc_params << 16) & 0xFFFF0000UL) | (instance & 0xFFFFUL)))

Definition at line 579 of file ni_nvme.h.

◆ CONFIG_INSTANCE_SET_DW11_EOS

#define CONFIG_INSTANCE_SET_DW11_EOS (   dst,
  instance 
)    (dst = (((nvme_config_xcoder_config_set_eos << 16) & 0xFFFF0000UL) | (instance & 0xFFFFUL)))

Definition at line 577 of file ni_nvme.h.

◆ CONFIG_INSTANCE_SET_DW11_FLUSH

#define CONFIG_INSTANCE_SET_DW11_FLUSH (   dst,
  instance 
)    (dst = (((nvme_config_xcoder_config_flush << 16) & 0xFFFF0000UL) | (instance & 0xFFFFUL)))

Definition at line 581 of file ni_nvme.h.

◆ CONFIG_INSTANCE_SET_DW11_SOS

#define CONFIG_INSTANCE_SET_DW11_SOS (   dst,
  instance 
)    (dst = (((nvme_config_xcoder_config_set_sos << 16) & 0xFFFF0000UL) | (instance & 0xFFFFUL)))

Definition at line 576 of file ni_nvme.h.

◆ CONFIG_INSTANCE_SET_DW11_UPDATE_PARAMS

#define CONFIG_INSTANCE_SET_DW11_UPDATE_PARAMS (   dst,
  instance 
)    (dst = (((nvme_config_xcoder_config_update_enc_params << 16) & 0xFFFF0000UL) | (instance & 0xFFFFUL)))

Definition at line 582 of file ni_nvme.h.

◆ CONFIG_INSTANCE_SET_DW11_WRITE_LEN

#define CONFIG_INSTANCE_SET_DW11_WRITE_LEN (   dst,
  instance 
)    (dst = (((nvme_config_xcoder_config_set_write_legth << 16) & 0xFFFF0000UL) | (instance & 0xFFFFUL)))

Definition at line 584 of file ni_nvme.h.

◆ CONFIG_INSTANCE_SET_DW15_SIZE

#define CONFIG_INSTANCE_SET_DW15_SIZE (   dst,
  size 
)    (dst = (size & 0xFFFFFFFFUL))

Definition at line 591 of file ni_nvme.h.

◆ CONFIG_INSTANCE_SetAiFrm_W

#define CONFIG_INSTANCE_SetAiFrm_W (   sid,
  instance 
)

◆ CONFIG_INSTANCE_SetAiHVSPlus_W

#define CONFIG_INSTANCE_SetAiHVSPlus_W (   sid,
  instance 
)
Value:

Definition at line 853 of file ni_nvme.h.

◆ CONFIG_INSTANCE_SetAiPara_W

#define CONFIG_INSTANCE_SetAiPara_W (   sid,
  instance 
)

◆ CONFIG_INSTANCE_SetDecPara_W

#define CONFIG_INSTANCE_SetDecPara_W (   sid,
  instance 
)

◆ CONFIG_INSTANCE_SetEncFramePara_W

#define CONFIG_INSTANCE_SetEncFramePara_W (   sid,
  instance 
)

◆ CONFIG_INSTANCE_SetEncPara_W

#define CONFIG_INSTANCE_SetEncPara_W (   sid,
  instance 
)

◆ CONFIG_INSTANCE_SetEncRoiQpMap_W

#define CONFIG_INSTANCE_SetEncRoiQpMap_W (   sid,
  instance 
)

◆ CONFIG_INSTANCE_SetEOS_W

#define CONFIG_INSTANCE_SetEOS_W (   sid,
  instance 
)

◆ CONFIG_INSTANCE_SetP2P_W

#define CONFIG_INSTANCE_SetP2P_W (   sid,
  instance 
)

◆ CONFIG_INSTANCE_SetPktSize_W

#define CONFIG_INSTANCE_SetPktSize_W (   sid,
  instance 
)

◆ CONFIG_INSTANCE_SetScalerAlloc_W

#define CONFIG_INSTANCE_SetScalerAlloc_W (   sid,
  instance 
)

◆ CONFIG_INSTANCE_SetScalerDrawBoxPara_W

#define CONFIG_INSTANCE_SetScalerDrawBoxPara_W (   sid,
  instance 
)

◆ CONFIG_INSTANCE_SetScalerPara_W

#define CONFIG_INSTANCE_SetScalerPara_W (   sid,
  instance 
)

◆ CONFIG_INSTANCE_SetScalerWatermarkPara_W

#define CONFIG_INSTANCE_SetScalerWatermarkPara_W (   sid,
  instance 
)

◆ CONFIG_INSTANCE_SetSeqChange_W

#define CONFIG_INSTANCE_SetSeqChange_W (   sid,
  instance 
)

◆ CONFIG_INSTANCE_SetSOS_W

#define CONFIG_INSTANCE_SetSOS_W (   sid,
  instance 
)

◆ CONFIG_INSTANCE_UpdateEncPara_W

#define CONFIG_INSTANCE_UpdateEncPara_W (   sid,
  instance 
)

◆ CONFIG_INSTANCE_UploadModel_W

#define CONFIG_INSTANCE_UploadModel_W (   sid,
  instance 
)

◆ CONFIG_SESSION_DDR_PRIORITY_W

#define CONFIG_SESSION_DDR_PRIORITY_W (   sid)

◆ CONFIG_SESSION_FRAME_COPY_W

#define CONFIG_SESSION_FRAME_COPY_W (   sid)

◆ CONFIG_SESSION_KeepAlive_W

#define CONFIG_SESSION_KeepAlive_W (   sid)

◆ CONFIG_SESSION_KeepAliveTimeout_W

#define CONFIG_SESSION_KeepAliveTimeout_W (   sid)

◆ CONFIG_SESSION_Read_W

#define CONFIG_SESSION_Read_W (   sid)

◆ CONFIG_SESSION_SET_DW10_SESSION_ID

#define CONFIG_SESSION_SET_DW10_SESSION_ID (   dst,
  sid 
)    (dst = (((sid << 16) & 0xFFFF0000UL) | (nvme_config_xcoder_config_session & 0xFFFFUL)))

Definition at line 571 of file ni_nvme.h.

◆ CONFIG_SESSION_SET_DW11_SUBTYPE

#define CONFIG_SESSION_SET_DW11_SUBTYPE (   dst,
  subtype 
)    (dst = (((0 << 16) & 0xFFFF0000UL) | (subtype & 0xFFFFUL)))

Definition at line 572 of file ni_nvme.h.

◆ CONFIG_SESSION_SET_DW15_SIZE

#define CONFIG_SESSION_SET_DW15_SIZE (   dst,
  size 
)    (dst = (size & 0xFFFFFFFFUL))

Definition at line 573 of file ni_nvme.h.

◆ CONFIG_SESSION_SWVersion_W

#define CONFIG_SESSION_SWVersion_W (   sid)

◆ CONFIG_SESSION_Write_W

#define CONFIG_SESSION_Write_W (   sid)

◆ CREATE_SESSION_SET_DW10_SUBTYPE

#define CREATE_SESSION_SET_DW10_SUBTYPE (   dst)    (dst = (nvme_open_xcoder_create_session & 0xFFFFUL))

Definition at line 527 of file ni_nvme.h.

◆ CREATE_SESSION_SET_DW11_INSTANCE

#define CREATE_SESSION_SET_DW11_INSTANCE (   dst,
  instance 
)    (dst = (instance & 0xFFFFUL))

Definition at line 528 of file ni_nvme.h.

◆ CREATE_SESSION_SET_DW12_AI_HWF

#define CREATE_SESSION_SET_DW12_AI_HWF (   dst,
  hwf 
)    (dst = (((hwf << 16) & 0xFFFF0000UL) | (dst & 0xFFFFUL)))

Definition at line 538 of file ni_nvme.h.

◆ CREATE_SESSION_SET_DW12_DEC_CID

#define CREATE_SESSION_SET_DW12_DEC_CID (   dst,
  cid 
)    (dst = (cid & 0xFFFFUL))

Definition at line 529 of file ni_nvme.h.

◆ CREATE_SESSION_SET_DW12_DEC_HWF

#define CREATE_SESSION_SET_DW12_DEC_HWF (   dst,
  hwf 
)    (dst = (((hwf << 16) & 0xFFFF0000UL) | (dst & 0xFFFFUL)))

Definition at line 530 of file ni_nvme.h.

◆ CREATE_SESSION_SET_DW12_ENC_CID_FRWIDTH

#define CREATE_SESSION_SET_DW12_ENC_CID_FRWIDTH (   dst,
  cid,
  width 
)    (dst = (((width << 16) & 0xFFFF0000UL) | (cid & 0xFFFFUL)))

Definition at line 534 of file ni_nvme.h.

◆ CREATE_SESSION_SET_DW12_SCL_OPC

#define CREATE_SESSION_SET_DW12_SCL_OPC (   dst,
  opc 
)    (dst = (opc & 0xFFFFUL))

Definition at line 532 of file ni_nvme.h.

◆ CREATE_SESSION_SET_DW13_ENC_FRHIGHT

#define CREATE_SESSION_SET_DW13_ENC_FRHIGHT (   dst,
  hight 
)    (dst = (hight & 0xFFFFUL))

Definition at line 535 of file ni_nvme.h.

◆ CREATE_SESSION_SET_DW14_MODEL_LOAD

#define CREATE_SESSION_SET_DW14_MODEL_LOAD (   dst,
  load 
)    (dst = (load & 0xFFFFFFFFUL))

Definition at line 536 of file ni_nvme.h.

◆ CTL_OFFSET_IN_4K

#define CTL_OFFSET_IN_4K (   op,
  sub,
  subtype 
)
Value:
((sub)<<NI_SUB_BIT_OFFSET)+subtype))

Definition at line 641 of file ni_nvme.h.

◆ DESTROY_SESSION_SET_DW10_INSTANCE

#define DESTROY_SESSION_SET_DW10_INSTANCE (   dst,
  sid 
)    (dst = (((sid << 16) & 0xFFFF0000UL) | (nvme_close_xcoder_destroy_session & 0xFFFFUL)))

Definition at line 541 of file ni_nvme.h.

◆ DOWNLOAD_FRAMEIDX_R

#define DOWNLOAD_FRAMEIDX_R (   frame_id)    ((frame_id & 0xFFFUL) << NI_INSTANCE_TYPE_OFFSET) + DOWNLOAD_OFFSET_IN_4K

Definition at line 684 of file ni_nvme.h.

◆ DOWNLOAD_OFFSET_IN_4K

#define DOWNLOAD_OFFSET_IN_4K   (WR_METADATA_OFFSET_IN_4K + MBs_to_4k(128))

Definition at line 655 of file ni_nvme.h.

◆ DP_LOG_OFFSET_IN_4K

#define DP_LOG_OFFSET_IN_4K   (EP_LOG_OFFSET_IN_4K + MBs_to_4k(1))

Definition at line 664 of file ni_nvme.h.

◆ DUMP_LOG_OFFSET_IN_4K

#define DUMP_LOG_OFFSET_IN_4K   (LOAD_OFFSET_IN_4K + MBs_to_4k(8))

Definition at line 660 of file ni_nvme.h.

◆ EP_LOG_OFFSET_IN_4K

#define EP_LOG_OFFSET_IN_4K   (NVME_LOG_OFFSET_IN_4K + MBs_to_4k(1))

Definition at line 663 of file ni_nvme.h.

◆ FP_LOG_OFFSET_IN_4K

#define FP_LOG_OFFSET_IN_4K   (TP_LOG_OFFSET_IN_4K + MBs_to_4k(1))

Definition at line 666 of file ni_nvme.h.

◆ GAP

#define GAP (   opcode)    ((opcode) - nvme_admin_cmd_xcoder_open)

Definition at line 671 of file ni_nvme.h.

◆ HIGH_OFFSET_IN_4K

#define HIGH_OFFSET_IN_4K (   sid,
  instance 
)
Value:
((((sid & 0x1FFUL) << NI_SESSION_ID_SHIFT_HI) | (instance)) \

Definition at line 668 of file ni_nvme.h.

◆ IDENTIFY_DEVICE_R

#define IDENTIFY_DEVICE_R   HIGH_OFFSET_IN_4K(0,0) + CTL_OFFSET_IN_4K(GAP(0xD9), 1, 0)

Definition at line 688 of file ni_nvme.h.

◆ LBA_BIT_OFFSET

#define LBA_BIT_OFFSET   12

Definition at line 626 of file ni_nvme.h.

◆ LOAD_OFFSET_IN_4K

#define LOAD_OFFSET_IN_4K   (WR_OFFSET_IN_4K + MBs_to_4k(256))

Definition at line 649 of file ni_nvme.h.

◆ MBs

#define MBs (   xMB)    ((xMB)*1024*1024)

Definition at line 636 of file ni_nvme.h.

◆ MBs_to_4k

#define MBs_to_4k (   xMB)    ((xMB)*1024*1024/4096)

Definition at line 637 of file ni_nvme.h.

◆ NI_DATA_BUFFER_LEN

#define NI_DATA_BUFFER_LEN   4096

Definition at line 625 of file ni_nvme.h.

◆ NI_INSTANCE_TYPE_OFFSET

#define NI_INSTANCE_TYPE_OFFSET   19

Definition at line 631 of file ni_nvme.h.

◆ NI_NVME_IDENTITY_CMD_DATA_SZ

#define NI_NVME_IDENTITY_CMD_DATA_SZ   4096

Definition at line 38 of file ni_nvme.h.

◆ NI_OP_BIT_OFFSET

#define NI_OP_BIT_OFFSET   8

Definition at line 630 of file ni_nvme.h.

◆ NI_SESSION_ID_OFFSET

#define NI_SESSION_ID_OFFSET   22

Definition at line 632 of file ni_nvme.h.

◆ NI_SESSION_ID_SHIFT_HI

#define NI_SESSION_ID_SHIFT_HI   3

Definition at line 634 of file ni_nvme.h.

◆ NI_SUB_BIT_OFFSET

#define NI_SUB_BIT_OFFSET   4

Definition at line 629 of file ni_nvme.h.

◆ NVME_LOG_OFFSET_IN_4K

#define NVME_LOG_OFFSET_IN_4K   (DUMP_LOG_OFFSET_IN_4K)

Definition at line 662 of file ni_nvme.h.

◆ OPEN_ADD_CODEC

#define OPEN_ADD_CODEC (   instance,
  codec,
  param 
)
Value:

Definition at line 697 of file ni_nvme.h.

◆ OPEN_GET_SID_R

#define OPEN_GET_SID_R (   instance)

◆ OPEN_SESSION_CODEC

#define OPEN_SESSION_CODEC (   instance,
  codec,
  param 
)
Value:

Definition at line 695 of file ni_nvme.h.

◆ OPEN_SESSION_W

#define OPEN_SESSION_W (   sid,
  instance 
)

◆ QUERY_DETAIL_GET_STATUS_R

#define QUERY_DETAIL_GET_STATUS_R (   instance)

◆ QUERY_DETAIL_GET_STATUS_V1_R

#define QUERY_DETAIL_GET_STATUS_V1_R (   instance)

◆ QUERY_GENERAL_GET_STATUS_R

#define QUERY_GENERAL_GET_STATUS_R (   instance)

◆ QUERY_GENERAL_SET_DW10_SUBTYPE

#define QUERY_GENERAL_SET_DW10_SUBTYPE (   dst)    (dst = ( (nvme_query_xcoder_query_general & 0xFFFFUL)))

Definition at line 569 of file ni_nvme.h.

◆ QUERY_GENERAL_SET_DW11_INSTANCE_STATUS

#define QUERY_GENERAL_SET_DW11_INSTANCE_STATUS (   dst,
  instance 
)    (dst = (((nvme_query_xcoder_general_get_status << 16) & 0xFFFF0000UL) | (instance & 0xFFFFUL)))

Definition at line 570 of file ni_nvme.h.

◆ QUERY_GET_EXTTRA_INFO_R

#define QUERY_GET_EXTTRA_INFO_R

◆ QUERY_GET_NS_VF_R

#define QUERY_GET_NS_VF_R

◆ QUERY_GET_NVME_STATUS_R

#define QUERY_GET_NVME_STATUS_R

◆ QUERY_GET_TEMPERATURE_R

#define QUERY_GET_TEMPERATURE_R

◆ QUERY_GET_VERSIONS_R

#define QUERY_GET_VERSIONS_R

◆ QUERY_INSTANCE_ACQUIRE_BUF

#define QUERY_INSTANCE_ACQUIRE_BUF (   sid,
  instance 
)
Value:

Definition at line 742 of file ni_nvme.h.

◆ QUERY_INSTANCE_AI_INFO_R

#define QUERY_INSTANCE_AI_INFO_R (   sid,
  instance 
)

◆ QUERY_INSTANCE_CUR_STATUS_INFO_R

#define QUERY_INSTANCE_CUR_STATUS_INFO_R (   sid,
  instance 
)

◆ QUERY_INSTANCE_EOS_R

#define QUERY_INSTANCE_EOS_R (   sid,
  instance 
)

◆ QUERY_INSTANCE_HW_OUT_SIZE_R

#define QUERY_INSTANCE_HW_OUT_SIZE_R (   sid,
  instance 
)

◆ QUERY_INSTANCE_METRICS_R

#define QUERY_INSTANCE_METRICS_R (   sid,
  instance 
)

◆ QUERY_INSTANCE_NL_R

#define QUERY_INSTANCE_NL_R (   sid,
  instance 
)

◆ QUERY_INSTANCE_NL_SIZE_R

#define QUERY_INSTANCE_NL_SIZE_R (   sid,
  instance 
)

◆ QUERY_INSTANCE_NL_SIZE_V2_R

#define QUERY_INSTANCE_NL_SIZE_V2_R (   sid,
  instance 
)

◆ QUERY_INSTANCE_NL_V2_R

#define QUERY_INSTANCE_NL_V2_R (   sid,
  instance 
)

◆ QUERY_INSTANCE_RBUFF_SIZE_BUSY_R

#define QUERY_INSTANCE_RBUFF_SIZE_BUSY_R (   sid,
  instance 
)

◆ QUERY_INSTANCE_RBUFF_SIZE_R

#define QUERY_INSTANCE_RBUFF_SIZE_R (   sid,
  instance 
)

◆ QUERY_INSTANCE_SET_DW10_SUBTYPE

#define QUERY_INSTANCE_SET_DW10_SUBTYPE (   dst,
  sid 
)    (dst = (((sid << 16) & 0xFFFF0000UL) | (nvme_query_xcoder_query_instance & 0xFFFFUL)))

Definition at line 560 of file ni_nvme.h.

◆ QUERY_INSTANCE_SET_DW11_INSTANCE_BUF_INFO

#define QUERY_INSTANCE_SET_DW11_INSTANCE_BUF_INFO (   dst,
  rw_type,
  inst_type 
)    (dst = (((rw_type << 16) & 0xFFFF0000UL) | (inst_type & 0xFFFFUL)))

Definition at line 565 of file ni_nvme.h.

◆ QUERY_INSTANCE_SET_DW11_INSTANCE_END_OF_OUTPUT

#define QUERY_INSTANCE_SET_DW11_INSTANCE_END_OF_OUTPUT (   dst,
  instance 
)    (dst = (((nvme_query_xcoder_instance_get_end_of_output << 16) & 0xFFFF0000UL) | (instance & 0xFFFFUL)))

Definition at line 563 of file ni_nvme.h.

◆ QUERY_INSTANCE_SET_DW11_INSTANCE_STATUS

#define QUERY_INSTANCE_SET_DW11_INSTANCE_STATUS (   dst,
  instance 
)    (dst = (((nvme_query_xcoder_instance_get_status << 16) & 0xFFFF0000UL) | (instance & 0xFFFFUL)))

Definition at line 561 of file ni_nvme.h.

◆ QUERY_INSTANCE_SET_DW11_INSTANCE_STREAM_INFO

#define QUERY_INSTANCE_SET_DW11_INSTANCE_STREAM_INFO (   dst,
  instance 
)    (dst = (((nvme_query_xcoder_instance_get_stream_info << 16) & 0xFFFF0000UL) | (instance & 0xFFFFUL)))

Definition at line 562 of file ni_nvme.h.

◆ QUERY_INSTANCE_SET_DW15_SIZE

#define QUERY_INSTANCE_SET_DW15_SIZE (   dst,
  size 
)    (dst = (size & 0xFFFFFFFFUL))

Definition at line 567 of file ni_nvme.h.

◆ QUERY_INSTANCE_STATUS_R

#define QUERY_INSTANCE_STATUS_R (   sid,
  instance 
)

◆ QUERY_INSTANCE_STREAM_INFO_R

#define QUERY_INSTANCE_STREAM_INFO_R (   sid,
  instance 
)

◆ QUERY_INSTANCE_UPLOAD_ID_R

#define QUERY_INSTANCE_UPLOAD_ID_R (   sid,
  instance 
)

◆ QUERY_INSTANCE_WBUFF_SIZE_BUSY_R

#define QUERY_INSTANCE_WBUFF_SIZE_BUSY_R (   sid,
  instance 
)

◆ QUERY_INSTANCE_WBUFF_SIZE_R

#define QUERY_INSTANCE_WBUFF_SIZE_R (   sid,
  instance 
)

◆ QUERY_INSTANCE_WBUFF_SIZE_R_BY_EP

#define QUERY_INSTANCE_WBUFF_SIZE_R_BY_EP (   sid,
  instance 
)

◆ QUERY_SESSION_R

#define QUERY_SESSION_R (   sid,
  instance 
)

◆ QUERY_SESSION_SET_DW10_SUBTYPE

#define QUERY_SESSION_SET_DW10_SUBTYPE (   dst,
  sid 
)    (dst = (((sid << 16) & 0xFFFF0000UL) | (nvme_query_xcoder_query_session & 0xFFFFUL)))

Definition at line 555 of file ni_nvme.h.

◆ QUERY_SESSION_SET_DW11_INSTANCE

#define QUERY_SESSION_SET_DW11_INSTANCE (   dst,
  instance 
)    (dst = (instance & 0xFFFFUL))

Definition at line 556 of file ni_nvme.h.

◆ QUERY_SESSION_SET_DW11_SESSION_STATS

#define QUERY_SESSION_SET_DW11_SESSION_STATS (   dst)    (dst = (nvme_query_xcoder_session_get_stats & 0xFFFFUL))

Definition at line 557 of file ni_nvme.h.

◆ QUERY_SESSION_SET_DW15_SIZE

#define QUERY_SESSION_SET_DW15_SIZE (   dst,
  size 
)    (dst = (size & 0xFFFFFFFFUL))

Definition at line 558 of file ni_nvme.h.

◆ QUERY_SESSION_STATS_R

#define QUERY_SESSION_STATS_R (   sid,
  instance 
)

◆ RD_OFFSET_IN_4K

#define RD_OFFSET_IN_4K   (START_OFFSET_IN_4K + MBs_to_4k(128))

Definition at line 643 of file ni_nvme.h.

◆ READ_INSTANCE_R

#define READ_INSTANCE_R (   sid,
  instance 
)    HIGH_OFFSET_IN_4K(sid,instance) + RD_OFFSET_IN_4K

Definition at line 681 of file ni_nvme.h.

◆ READ_INSTANCE_SET_DW10_SUBTYPE

#define READ_INSTANCE_SET_DW10_SUBTYPE (   dst,
  sid 
)    (dst = (((sid << 16) & 0xFFFF0000UL) | (nvme_write_xcoder_write_instance & 0xFFFFUL)))

Definition at line 543 of file ni_nvme.h.

◆ READ_INSTANCE_SET_DW11_INSTANCE

#define READ_INSTANCE_SET_DW11_INSTANCE (   dst,
  instance 
)    (dst = (instance & 0xFFFFUL))

Definition at line 544 of file ni_nvme.h.

◆ READ_INSTANCE_SET_DW15_SIZE

#define READ_INSTANCE_SET_DW15_SIZE (   dst,
  size 
)    (dst = (size & 0xFFFFFFFFUL))

Definition at line 545 of file ni_nvme.h.

◆ RECYCLE_BUFFER_SET_DW10_BUFID

#define RECYCLE_BUFFER_SET_DW10_BUFID (   dst,
  bid 
)    (dst = (bid & 0xFFFFUL))

Definition at line 592 of file ni_nvme.h.

◆ SEND_P2P_BUF_W

#define SEND_P2P_BUF_W   CTL_OFFSET_IN_4K(GAP(nvme_admin_cmd_xcoder_p2p_send), 0, 0)

Definition at line 880 of file ni_nvme.h.

◆ START_OFFSET_IN_4K

#define START_OFFSET_IN_4K   MBs_to_4k(512)

Definition at line 639 of file ni_nvme.h.

◆ TP_LOG_OFFSET_IN_4K

#define TP_LOG_OFFSET_IN_4K   (DP_LOG_OFFSET_IN_4K + MBs_to_4k(1))

Definition at line 665 of file ni_nvme.h.

◆ WR_METADATA_OFFSET_IN_4K

#define WR_METADATA_OFFSET_IN_4K   (MBs_to_4k(1024) + MBs_to_4k(256))

Definition at line 652 of file ni_nvme.h.

◆ WR_OFFSET_IN_4K

#define WR_OFFSET_IN_4K   (RD_OFFSET_IN_4K + MBs_to_4k(256))

Definition at line 646 of file ni_nvme.h.

◆ WRITE_INSTANCE_SET_DW10_SUBTYPE

#define WRITE_INSTANCE_SET_DW10_SUBTYPE (   dst,
  sid 
)    (dst = (((sid << 16) & 0xFFFF0000UL) | (nvme_write_xcoder_write_instance & 0xFFFFUL)))

Definition at line 547 of file ni_nvme.h.

◆ WRITE_INSTANCE_SET_DW11_INSTANCE

#define WRITE_INSTANCE_SET_DW11_INSTANCE (   dst,
  instance 
)    (dst = (instance & 0xFFFFUL))

Definition at line 548 of file ni_nvme.h.

◆ WRITE_INSTANCE_SET_DW11_PAGEOFFSET

#define WRITE_INSTANCE_SET_DW11_PAGEOFFSET (   dst,
  pageoffset 
)    (dst = (((pageoffset << 16) | dst)))

Definition at line 549 of file ni_nvme.h.

◆ WRITE_INSTANCE_SET_DW12_FRAMEINSTID

#define WRITE_INSTANCE_SET_DW12_FRAMEINSTID (   dst,
  fid 
)    (dst = (0xFFFFUL & dst) | ((fid<<16) & 0xFFFF0000UL))

Definition at line 551 of file ni_nvme.h.

◆ WRITE_INSTANCE_SET_DW12_ISHWDESC

#define WRITE_INSTANCE_SET_DW12_ISHWDESC (   dst,
  ishwdesc 
)    (dst = (ishwdesc & 0xFFFFUL))

Definition at line 550 of file ni_nvme.h.

◆ WRITE_INSTANCE_SET_DW15_SIZE

#define WRITE_INSTANCE_SET_DW15_SIZE (   dst,
  size 
)    (dst = (size & 0xFFFFFFFFUL))

Definition at line 553 of file ni_nvme.h.

◆ WRITE_INSTANCE_SET_DW2_SUBFRAME_IDX

#define WRITE_INSTANCE_SET_DW2_SUBFRAME_IDX (   dst,
  size 
)    (dst = (size & 0xFFFFFFFFUL))

Definition at line 524 of file ni_nvme.h.

◆ WRITE_INSTANCE_SET_DW3_SUBFRAME_SIZE

#define WRITE_INSTANCE_SET_DW3_SUBFRAME_SIZE (   dst,
  size 
)    (dst = (size & 0xFFFFFFFFUL))

Definition at line 525 of file ni_nvme.h.

◆ WRITE_INSTANCE_W

#define WRITE_INSTANCE_W (   sid,
  instance 
)    HIGH_OFFSET_IN_4K(sid,instance) + WR_OFFSET_IN_4K

Definition at line 675 of file ni_nvme.h.

◆ WRITE_METADATA_W

#define WRITE_METADATA_W (   sid,
  instance 
)    HIGH_OFFSET_IN_4K(sid, instance) + WR_METADATA_OFFSET_IN_4K

Definition at line 677 of file ni_nvme.h.

Typedef Documentation

◆ ni_nvme_admin_opcode_t

◆ ni_nvme_command_t

◆ ni_nvme_id_power_state_t

◆ ni_nvme_identity_t

◆ ni_nvme_identity_xcoder_hw_t

◆ ni_nvme_result_t

typedef uint32_t ni_nvme_result_t

Definition at line 461 of file ni_nvme.h.

◆ ni_nvme_write_complete_dw0_t

◆ nvme_close_xcoder_subtype_t

◆ nvme_config_xcoder_config_instance_subtype_t

◆ nvme_config_xcoder_config_session_subtype_t

◆ nvme_config_xcoder_subtype_t

◆ nvme_open_xcoder_subtype_t

◆ nvme_query_xcoder_general_subtype_t

◆ nvme_query_xcoder_instance_subtype_t

◆ nvme_query_xcoder_session_subtype_t

◆ nvme_query_xcoder_subtype_t

◆ nvme_read_xcoder_subtype_t

◆ nvme_write_xcoder_subtype_t

◆ nvme_xcoder_general_subtype_t

Enumeration Type Documentation

◆ _ni_nvme_admin_opcode

Enumerator
nvme_admin_cmd_delete_sq 
nvme_admin_cmd_create_sq 
nvme_admin_cmd_get_log_page 
nvme_admin_cmd_delete_cq 
nvme_admin_cmd_create_cq 
nvme_admin_cmd_identify 
nvme_admin_cmd_abort_cmd 
nvme_admin_cmd_set_features 
nvme_admin_cmd_get_features 
nvme_admin_cmd_async_event 
nvme_admin_cmd_ns_mgmt 
nvme_admin_cmd_activate_fw 
nvme_admin_cmd_download_fw 
nvme_admin_cmd_ns_attach 
nvme_admin_cmd_format_nvm 
nvme_admin_cmd_security_send 
nvme_admin_cmd_security_recv 
nvme_admin_cmd_xcoder_open 
nvme_admin_cmd_xcoder_close 
nvme_admin_cmd_xcoder_query 
nvme_admin_cmd_xcoder_connect 
nvme_admin_cmd_xcoder_read 
nvme_admin_cmd_xcoder_write 
nvme_admin_cmd_xcoder_config 
nvme_admin_cmd_xcoder_recycle_buffer 
nvme_admin_cmd_xcoder_init_framepool 
nvme_admin_cmd_xcoder_identity 
nvme_admin_cmd_xcoder_general 
nvme_admin_cmd_xcoder_load 
nvme_admin_cmd_xcoder_p2p_send 
nvme_admin_cmd_xcoder_download_buffer 

Definition at line 299 of file ni_nvme.h.

◆ _nvme_close_xcoder_subtype

Enumerator
nvme_close_xcoder_destroy_session 

Definition at line 340 of file ni_nvme.h.

◆ _nvme_config_xcoder_config_instance_subtype

Enumerator
nvme_config_xcoder_config_set_sos 
nvme_config_xcoder_config_set_eos 
nvme_config_xcoder_config_set_enc_params 
nvme_config_xcoder_config_set_dec_params 
nvme_config_xcoder_config_set_scaler_params 
nvme_config_xcoder_config_set_scaler_drawbox_params 
nvme_config_xcoder_config_set_p2p_params 
nvme_config_xcoder_config_flush 
nvme_config_xcoder_config_set_upload_load 
nvme_config_xcoder_config_hvsplus 
nvme_config_xcoder_config_update_enc_params 
nvme_config_xcoder_config_set_network_binary 
nvme_config_xcoder_config_set_enc_frame_params 
nvme_config_xcoder_config_set_roi_qp_map 
nvme_config_xcoder_config_set_write_legth 
nvme_config_xcoder_config_alloc_frame 
nvme_config_xcoder_config_set_sequence_change 
nvme_config_xcoder_instance_read_buf_size_busy_place_holder 
nvme_config_xcoder_config_set_scaler_watermark_params 
nvme_config_xcoder_instance_write_buf_size_busy_place_holder 

Definition at line 418 of file ni_nvme.h.

◆ _nvme_config_xcoder_config_session_subtype

Enumerator
nvme_config_xcoder_config_session_keep_alive 
nvme_config_xcoder_config_session_read 
nvme_config_xcoder_config_session_write 
nvme_config_xcoder_config_session_keep_alive_timeout 
nvme_config_xcoder_config_session_sw_version 
nvme_config_xcoder_config_namespace_num 
nvme_config_xcoder_config_ddr_priority 
nvme_config_xcoder_config_frame_clone 

Definition at line 406 of file ni_nvme.h.

◆ _nvme_config_xcoder_subtype

Enumerator
nvme_config_xcoder_config_session 
nvme_config_xcoder_config_instance 
nvme_config_xcoder_config_global 

Definition at line 399 of file ni_nvme.h.

◆ _nvme_open_xcoder_subtype

Enumerator
nvme_open_xcoder_create_session 
nvme_open_xcoder_add_session 

Definition at line 334 of file ni_nvme.h.

◆ _nvme_query_xcoder_general_subtype

Enumerator
nvme_query_xcoder_general_get_status 
nvme_query_xcoder_general_get_detail_info 
nvme_query_xcoder_general_get_detail_info_v1 

Definition at line 392 of file ni_nvme.h.

◆ _nvme_query_xcoder_instance_subtype

Enumerator
nvme_query_xcoder_instance_read_ai_hw_output 
nvme_query_xcoder_instance_read_perf_metrics 
nvme_query_xcoder_instance_get_status 
nvme_query_xcoder_instance_get_current_status 
nvme_query_xcoder_instance_get_stream_info 
nvme_query_xcoder_instance_network_layer_size_v2 
nvme_query_xcoder_instance_get_end_of_output 
nvme_query_xcoder_instance_read_network_layer_v2 
nvme_query_xcoder_instance_write_buf_size_by_ep 
nvme_query_xcoder_instance_acquire_buf 
nvme_query_xcoder_instance_read_buf_size 
nvme_query_xcoder_instance_write_buf_size 
nvme_query_xcoder_instance_upload_idx 
nvme_query_xcoder_instance_network_layer_size 
nvme_query_xcoder_instance_read_output_buf_size 
nvme_query_xcoder_instance_dec_place_holder 
nvme_query_xcoder_instance_read_network_layer 
nvme_query_xcoder_instance_scl_place_holder 
nvme_query_xcoder_instance_read_buf_size_busy 
nvme_query_xcoder_instance_write_buf_size_busy 

Definition at line 367 of file ni_nvme.h.

◆ _nvme_query_xcoder_session_subtype

Enumerator
nvme_query_xcoder_session_get_stats 

Definition at line 362 of file ni_nvme.h.

◆ _nvme_query_xcoder_subtype

Enumerator
nvme_query_xcoder_query_session 
nvme_query_xcoder_query_instance 
nvme_query_xcoder_query_general 

Definition at line 355 of file ni_nvme.h.

◆ _nvme_read_xcoder_subtype

Enumerator
nvme_read_xcoder_read_instance 

Definition at line 345 of file ni_nvme.h.

◆ _nvme_write_xcoder_subtype

Enumerator
nvme_write_xcoder_write_instance 

Definition at line 350 of file ni_nvme.h.

◆ _nvme_xcoder_general_subtype

Enumerator
nvme_xcoder_general_status_query 
nvme_xcoder_general_versions_query 
nvme_xcoder_general_nsvf_query 
nvme_xcoder_general_temperature_query 
nvme_xcoder_general_extra_info_query 

Definition at line 442 of file ni_nvme.h.

Function Documentation

◆ ni_nvme_check_error_code()

ni_retcode_t ni_nvme_check_error_code ( int  rc,
int  opcode,
uint32_t  xcoder_type,
uint32_t  hw_id,
uint32_t *  p_instance_id 
)

Check f/w error return code, and if it's a fatal one, terminate application's decoding/encoding processing by sending self a SIGTERM signal. Application shall handle this gracefully.


Parameters

Definition at line 62 of file ni_nvme.c.

◆ ni_nvme_enumerate_devices()

int ni_nvme_enumerate_devices ( char  ni_devices[][NI_MAX_DEVICE_NAME_LEN],
int  max_handles 
)

◆ ni_nvme_send_admin_cmd()

int32_t ni_nvme_send_admin_cmd ( ni_nvme_admin_opcode_t  opcode,
ni_device_handle_t  handle,
ni_nvme_command_t p_ni_nvme_cmd,
uint32_t  data_len,
void *  p_data,
uint32_t *  p_result 
)

Compose a nvme admin command.


Parameters

Definition at line 324 of file ni_nvme.c.

◆ ni_nvme_send_io_cmd()

int32_t ni_nvme_send_io_cmd ( ni_nvme_opcode_t  opcode,
ni_device_handle_t  handle,
ni_nvme_command_t p_ni_nvme_cmd,
uint32_t  data_len,
void *  p_data,
uint32_t *  p_result 
)

Compose a nvme io command.


Parameters

Definition at line 371 of file ni_nvme.c.

◆ ni_nvme_send_io_cmd_thru_admin_queue()

int32_t ni_nvme_send_io_cmd_thru_admin_queue ( ni_nvme_admin_opcode_t  opcode,
ni_device_handle_t  fd,
ni_nvme_command_t p_ni_nvme_cmd,
uint32_t  data_len,
void *  data,
uint32_t *  pResult 
)

◆ ni_nvme_send_read_cmd()

int32_t ni_nvme_send_read_cmd ( ni_device_handle_t  handle,
ni_event_handle_t  event_handle,
void *  p_data,
uint32_t  data_len,
uint32_t  lba 
)

Compose an io read command.


Parameters

Definition at line 528 of file ni_nvme.c.

◆ ni_nvme_send_write_cmd()

int32_t ni_nvme_send_write_cmd ( ni_device_handle_t  handle,
ni_event_handle_t  event_handle,
void *  p_data,
uint32_t  data_len,
uint32_t  lba 
)

Compose a io write command.


Parameters

Definition at line 634 of file ni_nvme.c.

NI_OP_BIT_OFFSET
#define NI_OP_BIT_OFFSET
Definition: ni_nvme.h:630
nvme_query_xcoder_instance_get_status
@ nvme_query_xcoder_instance_get_status
Definition: ni_nvme.h:371
NI_SUB_BIT_OFFSET
#define NI_SUB_BIT_OFFSET
Definition: ni_nvme.h:629
nvme_query_xcoder_instance_read_buf_size
@ nvme_query_xcoder_instance_read_buf_size
Definition: ni_nvme.h:379
nvme_xcoder_general_temperature_query
@ nvme_xcoder_general_temperature_query
Definition: ni_nvme.h:447
nvme_query_xcoder_general_get_detail_info_v1
@ nvme_query_xcoder_general_get_detail_info_v1
Definition: ni_nvme.h:396
nvme_config_xcoder_config_set_scaler_drawbox_params
@ nvme_config_xcoder_config_set_scaler_drawbox_params
Definition: ni_nvme.h:425
nvme_xcoder_general_nsvf_query
@ nvme_xcoder_general_nsvf_query
Definition: ni_nvme.h:446
nvme_query_xcoder_instance_get_stream_info
@ nvme_query_xcoder_instance_get_stream_info
Definition: ni_nvme.h:373
nvme_query_xcoder_instance_get_current_status
@ nvme_query_xcoder_instance_get_current_status
Definition: ni_nvme.h:372
START_OFFSET_IN_4K
#define START_OFFSET_IN_4K
Definition: ni_nvme.h:639
nvme_close_xcoder_destroy_session
@ nvme_close_xcoder_destroy_session
Definition: ni_nvme.h:342
nvme_config_xcoder_config_set_p2p_params
@ nvme_config_xcoder_config_set_p2p_params
Definition: ni_nvme.h:426
nvme_open_xcoder_add_session
@ nvme_open_xcoder_add_session
Definition: ni_nvme.h:337
nvme_query_xcoder_instance_write_buf_size_busy
@ nvme_query_xcoder_instance_write_buf_size_busy
Definition: ni_nvme.h:389
nvme_query_xcoder_instance_read_network_layer
@ nvme_query_xcoder_instance_read_network_layer
Definition: ni_nvme.h:386
nvme_query_xcoder_instance_write_buf_size_by_ep
@ nvme_query_xcoder_instance_write_buf_size_by_ep
Definition: ni_nvme.h:377
nvme_config_xcoder_config_set_network_binary
@ nvme_config_xcoder_config_set_network_binary
Definition: ni_nvme.h:431
nvme_config_xcoder_config_set_sequence_change
@ nvme_config_xcoder_config_set_sequence_change
Definition: ni_nvme.h:436
nvme_query_xcoder_instance_read_network_layer_v2
@ nvme_query_xcoder_instance_read_network_layer_v2
Definition: ni_nvme.h:376
nvme_config_xcoder_config_session_read
@ nvme_config_xcoder_config_session_read
Definition: ni_nvme.h:409
nvme_config_xcoder_config_instance
@ nvme_config_xcoder_config_instance
Definition: ni_nvme.h:402
nvme_config_xcoder_config_set_write_legth
@ nvme_config_xcoder_config_set_write_legth
Definition: ni_nvme.h:434
nvme_config_xcoder_config_set_roi_qp_map
@ nvme_config_xcoder_config_set_roi_qp_map
Definition: ni_nvme.h:433
nvme_query_xcoder_instance_upload_idx
@ nvme_query_xcoder_instance_upload_idx
Definition: ni_nvme.h:381
nvme_config_xcoder_config_session_write
@ nvme_config_xcoder_config_session_write
Definition: ni_nvme.h:410
nvme_config_xcoder_config_set_enc_frame_params
@ nvme_config_xcoder_config_set_enc_frame_params
Definition: ni_nvme.h:432
nvme_xcoder_general_extra_info_query
@ nvme_xcoder_general_extra_info_query
Definition: ni_nvme.h:448
nvme_query_xcoder_query_general
@ nvme_query_xcoder_query_general
Definition: ni_nvme.h:359
nvme_open_xcoder_create_session
@ nvme_open_xcoder_create_session
Definition: ni_nvme.h:336
nvme_config_xcoder_config_set_scaler_watermark_params
@ nvme_config_xcoder_config_set_scaler_watermark_params
Definition: ni_nvme.h:438
nvme_admin_cmd_xcoder_open
@ nvme_admin_cmd_xcoder_open
Definition: ni_nvme.h:318
nvme_xcoder_general_versions_query
@ nvme_xcoder_general_versions_query
Definition: ni_nvme.h:445
NI_INSTANCE_TYPE_OFFSET
#define NI_INSTANCE_TYPE_OFFSET
Definition: ni_nvme.h:631
nvme_query_xcoder_query_session
@ nvme_query_xcoder_query_session
Definition: ni_nvme.h:357
NI_SESSION_ID_SHIFT_HI
#define NI_SESSION_ID_SHIFT_HI
Definition: ni_nvme.h:634
nvme_config_xcoder_config_set_upload_load
@ nvme_config_xcoder_config_set_upload_load
Definition: ni_nvme.h:428
nvme_admin_cmd_xcoder_config
@ nvme_admin_cmd_xcoder_config
Definition: ni_nvme.h:324
nvme_config_xcoder_config_global
@ nvme_config_xcoder_config_global
Definition: ni_nvme.h:403
nvme_admin_cmd_xcoder_query
@ nvme_admin_cmd_xcoder_query
Definition: ni_nvme.h:320
nvme_admin_cmd_xcoder_general
@ nvme_admin_cmd_xcoder_general
Definition: ni_nvme.h:328
nvme_xcoder_general_status_query
@ nvme_xcoder_general_status_query
Definition: ni_nvme.h:444
nvme_query_xcoder_session_get_stats
@ nvme_query_xcoder_session_get_stats
Definition: ni_nvme.h:364
GAP
#define GAP(opcode)
Definition: ni_nvme.h:671
nvme_query_xcoder_query_instance
@ nvme_query_xcoder_query_instance
Definition: ni_nvme.h:358
nvme_config_xcoder_config_session
@ nvme_config_xcoder_config_session
Definition: ni_nvme.h:401
nvme_query_xcoder_instance_read_perf_metrics
@ nvme_query_xcoder_instance_read_perf_metrics
Definition: ni_nvme.h:370
nvme_config_xcoder_config_frame_clone
@ nvme_config_xcoder_config_frame_clone
Definition: ni_nvme.h:415
nvme_config_xcoder_config_namespace_num
@ nvme_config_xcoder_config_namespace_num
Definition: ni_nvme.h:413
nvme_config_xcoder_config_set_scaler_params
@ nvme_config_xcoder_config_set_scaler_params
Definition: ni_nvme.h:424
nvme_query_xcoder_instance_write_buf_size
@ nvme_query_xcoder_instance_write_buf_size
Definition: ni_nvme.h:380
nvme_config_xcoder_config_flush
@ nvme_config_xcoder_config_flush
Definition: ni_nvme.h:427
nvme_config_xcoder_config_set_sos
@ nvme_config_xcoder_config_set_sos
Definition: ni_nvme.h:420
nvme_query_xcoder_instance_read_output_buf_size
@ nvme_query_xcoder_instance_read_output_buf_size
Definition: ni_nvme.h:383
nvme_query_xcoder_instance_read_buf_size_busy
@ nvme_query_xcoder_instance_read_buf_size_busy
Definition: ni_nvme.h:388
nvme_config_xcoder_config_session_keep_alive
@ nvme_config_xcoder_config_session_keep_alive
Definition: ni_nvme.h:408
nvme_admin_cmd_xcoder_close
@ nvme_admin_cmd_xcoder_close
Definition: ni_nvme.h:319
nvme_config_xcoder_config_set_enc_params
@ nvme_config_xcoder_config_set_enc_params
Definition: ni_nvme.h:422
nvme_config_xcoder_config_session_sw_version
@ nvme_config_xcoder_config_session_sw_version
Definition: ni_nvme.h:412
nvme_query_xcoder_instance_acquire_buf
@ nvme_query_xcoder_instance_acquire_buf
Definition: ni_nvme.h:378
nvme_config_xcoder_config_set_eos
@ nvme_config_xcoder_config_set_eos
Definition: ni_nvme.h:421
nvme_config_xcoder_config_session_keep_alive_timeout
@ nvme_config_xcoder_config_session_keep_alive_timeout
Definition: ni_nvme.h:411
nvme_config_xcoder_config_ddr_priority
@ nvme_config_xcoder_config_ddr_priority
Definition: ni_nvme.h:414
CTL_OFFSET_IN_4K
#define CTL_OFFSET_IN_4K(op, sub, subtype)
Definition: ni_nvme.h:641
nvme_config_xcoder_config_alloc_frame
@ nvme_config_xcoder_config_alloc_frame
Definition: ni_nvme.h:435
nvme_query_xcoder_instance_network_layer_size
@ nvme_query_xcoder_instance_network_layer_size
Definition: ni_nvme.h:382
nvme_config_xcoder_config_hvsplus
@ nvme_config_xcoder_config_hvsplus
Definition: ni_nvme.h:429
HIGH_OFFSET_IN_4K
#define HIGH_OFFSET_IN_4K(sid, instance)
Definition: ni_nvme.h:668
nvme_config_xcoder_config_update_enc_params
@ nvme_config_xcoder_config_update_enc_params
Definition: ni_nvme.h:430
nvme_config_xcoder_config_set_dec_params
@ nvme_config_xcoder_config_set_dec_params
Definition: ni_nvme.h:423
nvme_query_xcoder_instance_network_layer_size_v2
@ nvme_query_xcoder_instance_network_layer_size_v2
Definition: ni_nvme.h:374
nvme_query_xcoder_general_get_status
@ nvme_query_xcoder_general_get_status
Definition: ni_nvme.h:394
nvme_query_xcoder_instance_read_ai_hw_output
@ nvme_query_xcoder_instance_read_ai_hw_output
Definition: ni_nvme.h:369
nvme_query_xcoder_instance_get_end_of_output
@ nvme_query_xcoder_instance_get_end_of_output
Definition: ni_nvme.h:375
nvme_query_xcoder_general_get_detail_info
@ nvme_query_xcoder_general_get_detail_info
Definition: ni_nvme.h:395