Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a534f17b authored by Rene Sapiens's avatar Rene Sapiens Committed by Omar Ramirez Luna
Browse files

staging: tidspbridge: set9 remove hungarian from structs



hungarian notation will be removed from the elements inside
structures, the next varibles will be renamed:

Original:               Replacement:
hprocessor              processor
udma_priority           dma_priority
udsp_data_mau_size      dsp_data_mau_size
udsp_heap_addr          dsp_heap_addr
udsp_heap_res_addr      dsp_heap_res_addr
udsp_heap_virt_addr     dsp_heap_virt_addr
udsp_mau_size           dsp_mau_size
udsp_word_size          dsp_word_size
ugpp_heap_addr          gpp_heap_addr
ugpp_heap_virt_addr     gpp_heap_virt_addr
us_data2                data2
us_data3                data3
uc_data4                data4
uc_data5                data5
uc_data6                data6
us_load_type            load_type
usm_length              sm_length
utimeout                timeout
uwc_deadline            wc_deadline
uwc_execution_time      wc_execution_time
uwc_period              wc_period

Signed-off-by: default avatarRene Sapiens <rene.sapiens@ti.com>
Signed-off-by: default avatarArmando Uribe <x0095078@ti.com>
Signed-off-by: default avatarOmar Ramirez Luna <omar.ramirez@ti.com>
parent 085467b8
Loading
Loading
Loading
Loading
+10 −10
Original line number Diff line number Diff line
@@ -45,11 +45,11 @@ void uuid_uuid_to_string(struct dsp_uuid *uuid_obj, char *sz_uuid,

	i = snprintf(sz_uuid, size,
		     "%.8X_%.4X_%.4X_%.2X%.2X_%.2X%.2X%.2X%.2X%.2X%.2X",
		     uuid_obj->data1, uuid_obj->us_data2, uuid_obj->us_data3,
		     uuid_obj->uc_data4, uuid_obj->uc_data5,
		     uuid_obj->uc_data6[0], uuid_obj->uc_data6[1],
		     uuid_obj->uc_data6[2], uuid_obj->uc_data6[3],
		     uuid_obj->uc_data6[4], uuid_obj->uc_data6[5]);
		     uuid_obj->data1, uuid_obj->data2, uuid_obj->data3,
		     uuid_obj->data4, uuid_obj->data5,
		     uuid_obj->data6[0], uuid_obj->data6[1],
		     uuid_obj->data6[2], uuid_obj->data6[3],
		     uuid_obj->data6[4], uuid_obj->data6[5]);

	DBC_ENSURE(i != -1);
}
@@ -85,29 +85,29 @@ void uuid_uuid_from_string(char *sz_uuid, struct dsp_uuid *uuid_obj)
	/* Step over underscore */
	sz_uuid++;

	uuid_obj->us_data2 = (u16) uuid_hex_to_bin(sz_uuid, 4);
	uuid_obj->data2 = (u16) uuid_hex_to_bin(sz_uuid, 4);
	sz_uuid += 4;

	/* Step over underscore */
	sz_uuid++;

	uuid_obj->us_data3 = (u16) uuid_hex_to_bin(sz_uuid, 4);
	uuid_obj->data3 = (u16) uuid_hex_to_bin(sz_uuid, 4);
	sz_uuid += 4;

	/* Step over underscore */
	sz_uuid++;

	uuid_obj->uc_data4 = (u8) uuid_hex_to_bin(sz_uuid, 2);
	uuid_obj->data4 = (u8) uuid_hex_to_bin(sz_uuid, 2);
	sz_uuid += 2;

	uuid_obj->uc_data5 = (u8) uuid_hex_to_bin(sz_uuid, 2);
	uuid_obj->data5 = (u8) uuid_hex_to_bin(sz_uuid, 2);
	sz_uuid += 2;

	/* Step over underscore */
	sz_uuid++;

	for (j = 0; j < 6; j++) {
		uuid_obj->uc_data6[j] = (u8) uuid_hex_to_bin(sz_uuid, 2);
		uuid_obj->data6[j] = (u8) uuid_hex_to_bin(sz_uuid, 2);
		sz_uuid += 2;
	}
}
+1 −1
Original line number Diff line number Diff line
@@ -54,7 +54,7 @@ struct dcd_nodeprops {
	char *pstr_i_alg_name;

	/* Dynamic load properties */
	u16 us_load_type;	/* Static, dynamic, overlay */
	u16 load_type;	/* Static, dynamic, overlay */
	u32 data_mem_seg_mask;		/* Data memory requirements */
	u32 code_mem_seg_mask;		/* Code memory requirements */
};
+15 −15
Original line number Diff line number Diff line
@@ -100,11 +100,11 @@ static inline bool is_valid_proc_event(u32 x)
/* The Node UUID structure */
struct dsp_uuid {
	u32 data1;
	u16 us_data2;
	u16 us_data3;
	u8 uc_data4;
	u8 uc_data5;
	u8 uc_data6[6];
	u16 data2;
	u16 data3;
	u8 data4;
	u8 data5;
	u8 data6[6];
};

/* DCD types */
@@ -229,11 +229,11 @@ struct dsp_strmattr {
	u32 buf_size;		/* Buffer size (DSP words) */
	u32 num_bufs;		/* Number of buffers */
	u32 buf_alignment;	/* Buffer alignment */
	u32 utimeout;		/* Timeout for blocking STRM calls */
	u32 timeout;		/* Timeout for blocking STRM calls */
	enum dsp_strmmode strm_mode;	/* mode of stream when opened */
	/* DMA chnl id if dsp_strmmode is LDMA or RDMA */
	u32 udma_chnl_id;
	u32 udma_priority;	/* DMA channel priority 0=lowest, >0=high */
	u32 dma_priority;	/* DMA channel priority 0=lowest, >0=high */
};

/* The dsp_cbdata structure */
@@ -255,9 +255,9 @@ struct dsp_resourcereqmts {
	u32 static_data_size;
	u32 global_data_size;
	u32 program_mem_size;
	u32 uwc_execution_time;
	u32 uwc_period;
	u32 uwc_deadline;
	u32 wc_execution_time;
	u32 wc_period;
	u32 wc_deadline;
	u32 avg_exection_time;
	u32 minimum_period;
};
@@ -294,7 +294,7 @@ struct dsp_ndbprops {
	u32 message_depth;
	u32 num_input_streams;
	u32 num_output_streams;
	u32 utimeout;
	u32 timeout;
	u32 count_profiles;	/* Number of supported profiles */
	/* Array of profiles */
	struct dsp_nodeprofs node_profiles[MAX_PROFILES];
@@ -306,7 +306,7 @@ struct dsp_ndbprops {
struct dsp_nodeattrin {
	u32 cb_struct;
	s32 prio;
	u32 utimeout;
	u32 timeout;
	u32 profile_id;
	/* Reserved, for Bridge Internal use only */
	u32 heap_size;
@@ -347,7 +347,7 @@ struct dsp_notification {
/* The dsp_processorattrin structure describes the attributes of a processor */
struct dsp_processorattrin {
	u32 cb_struct;
	u32 utimeout;
	u32 timeout;
};
/*
 * The dsp_processorinfo structure describes basic capabilities of a
@@ -401,13 +401,13 @@ struct dsp_resourceinfo {
 */
struct dsp_streamattrin {
	u32 cb_struct;
	u32 utimeout;
	u32 timeout;
	u32 segment_id;
	u32 buf_alignment;
	u32 num_bufs;
	enum dsp_strmmode strm_mode;
	u32 udma_chnl_id;
	u32 udma_priority;
	u32 dma_priority;
};

/* The dsp_bufferattr structure describes the attributes of a data buffer */
+1 −1
Original line number Diff line number Diff line
@@ -129,7 +129,7 @@ struct process_context {
	enum gpp_proc_res_state res_state;

	/* Handle to Processor */
	void *hprocessor;
	void *processor;

	/* DSP Node resources */
	struct idr *node_id;
+22 −22
Original line number Diff line number Diff line
@@ -56,7 +56,7 @@ union trapped_args {
		struct dsp_notification __user *__user *anotifications;
		u32 count;
		u32 __user *pu_index;
		u32 utimeout;
		u32 timeout;
	} args_mgr_wait;

	/* PROC Module */
@@ -67,17 +67,17 @@ union trapped_args {
	} args_proc_attach;

	struct {
		void *hprocessor;
		void *processor;
		u32 cmd;
		struct dsp_cbdata __user *pargs;
	} args_proc_ctrl;

	struct {
		void *hprocessor;
		void *processor;
	} args_proc_detach;

	struct {
		void *hprocessor;
		void *processor;
		void *__user *node_tab;
		u32 node_tab_size;
		u32 __user *pu_num_nodes;
@@ -85,53 +85,53 @@ union trapped_args {
	} args_proc_enumnode_info;

	struct {
		void *hprocessor;
		void *processor;
		u32 resource_type;
		struct dsp_resourceinfo *resource_info;
		u32 resource_info_size;
	} args_proc_enumresources;

	struct {
		void *hprocessor;
		void *processor;
		struct dsp_processorstate __user *proc_state_obj;
		u32 state_info_size;
	} args_proc_getstate;

	struct {
		void *hprocessor;
		void *processor;
		u8 __user *pbuf;
		u8 __user *psize;
		u32 max_size;
	} args_proc_gettrace;

	struct {
		void *hprocessor;
		void *processor;
		s32 argc_index;
		char __user *__user *user_args;
		char *__user *user_envp;
	} args_proc_load;

	struct {
		void *hprocessor;
		void *processor;
		u32 event_mask;
		u32 notify_type;
		struct dsp_notification __user *hnotification;
	} args_proc_register_notify;

	struct {
		void *hprocessor;
		void *processor;
		u32 size;
		void *__user *pp_rsv_addr;
	} args_proc_rsvmem;

	struct {
		void *hprocessor;
		void *processor;
		u32 size;
		void *prsv_addr;
	} args_proc_unrsvmem;

	struct {
		void *hprocessor;
		void *processor;
		void *pmpu_addr;
		u32 size;
		void *req_addr;
@@ -140,34 +140,34 @@ union trapped_args {
	} args_proc_mapmem;

	struct {
		void *hprocessor;
		void *processor;
		u32 size;
		void *map_addr;
	} args_proc_unmapmem;

	struct {
		void *hprocessor;
		void *processor;
		void *pmpu_addr;
		u32 size;
		u32 dir;
	} args_proc_dma;

	struct {
		void *hprocessor;
		void *processor;
		void *pmpu_addr;
		u32 size;
		u32 ul_flags;
	} args_proc_flushmemory;

	struct {
		void *hprocessor;
		void *processor;
		void *pmpu_addr;
		u32 size;
	} args_proc_invalidatememory;

	/* NODE Module */
	struct {
		void *hprocessor;
		void *processor;
		struct dsp_uuid __user *node_id_ptr;
		struct dsp_cbdata __user *pargs;
		struct dsp_nodeattrin __user *attr_in;
@@ -218,7 +218,7 @@ union trapped_args {
	struct {
		void *hnode;
		struct dsp_msg __user *message;
		u32 utimeout;
		u32 timeout;
	} args_node_getmessage;

	struct {
@@ -228,7 +228,7 @@ union trapped_args {
	struct {
		void *hnode;
		struct dsp_msg __user *message;
		u32 utimeout;
		u32 timeout;
	} args_node_putmessage;

	struct {
@@ -248,7 +248,7 @@ union trapped_args {
	} args_node_terminate;

	struct {
		void *hprocessor;
		void *processor;
		struct dsp_uuid __user *node_id_ptr;
		struct dsp_ndbprops __user *node_props;
	} args_node_getuuidprops;
@@ -323,7 +323,7 @@ union trapped_args {
		void *__user *stream_tab;
		u32 strm_num;
		u32 __user *pmask;
		u32 utimeout;
		u32 timeout;
	} args_strm_select;

	/* CMM Module */
@@ -341,7 +341,7 @@ union trapped_args {
	} args_cmm_freebuf;

	struct {
		void *hprocessor;
		void *processor;
		struct cmm_object *__user *ph_cmm_mgr;
	} args_cmm_gethandle;

Loading