Commit 13b18c29 authored by Rene Sapiens's avatar Rene Sapiens Committed by Greg Kroah-Hartman
Browse files

staging: ti dspbridge: Rename words with camel case.



The intention of this patch is to rename the remaining variables with camel
case. Variables will be renamed avoiding camel case and Hungarian notation.
The words to be renamed in this patch are:
========================================
pPhysAddr to phys_addr
pPhysicalAddress to physical_address
ppIntfFxns to if_fxns
pProcLoadStat to proc_load_stat
pProcStat to proc_lstat
ppSym to sym_val
pRefData to ref_data
pRef to ref
preservedBit to preserved_bit
pResult to result
procID to proc_id
pSectInfo to sect_inf
pSrc to src
pstrContent to str_content
pstrDummyFile to str_dummy_file
pstrExecFile to str_exec_file
========================================

Signed-off-by: default avatarRene Sapiens <rene.sapiens@ti.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent fb6aabb7
Loading
Loading
Loading
Loading
+17 −16
Original line number Diff line number Diff line
@@ -148,9 +148,9 @@ static void output_msg(struct io_mgr *pio_mgr, struct msg_mgr *hmsg_mgr);
static u32 find_ready_output(struct chnl_mgr *chnl_mgr_obj,
			     struct chnl_object *pchnl, u32 mask);
static u32 read_data(struct bridge_dev_context *dev_ctxt, void *dest,
		     void *pSrc, u32 usize);
		     void *src, u32 usize);
static u32 write_data(struct bridge_dev_context *dev_ctxt, void *dest,
		      void *pSrc, u32 usize);
		      void *src, u32 usize);

/* Bus Addr (cached kernel) */
static int register_shm_segs(struct io_mgr *hio_mgr,
@@ -919,9 +919,9 @@ static void io_dispatch_pm(struct io_mgr *pio_mgr)
 *      out the dispatch of I/O as a non-preemptible event.It can only be
 *      pre-empted      by an ISR.
 */
void io_dpc(IN OUT unsigned long pRefData)
void io_dpc(IN OUT unsigned long ref_data)
{
	struct io_mgr *pio_mgr = (struct io_mgr *)pRefData;
	struct io_mgr *pio_mgr = (struct io_mgr *)ref_data;
	struct chnl_mgr *chnl_mgr_obj;
	struct msg_mgr *msg_mgr_obj;
	struct deh_mgr *hdeh_mgr;
@@ -1702,9 +1702,9 @@ static int register_shm_segs(struct io_mgr *hio_mgr,
 *      Copies buffers from the shared memory to the host buffer.
 */
static u32 read_data(struct bridge_dev_context *dev_ctxt, void *dest,
		     void *pSrc, u32 usize)
		     void *src, u32 usize)
{
	memcpy(dest, pSrc, usize);
	memcpy(dest, src, usize);
	return usize;
}

@@ -1713,9 +1713,9 @@ static u32 read_data(struct bridge_dev_context *dev_ctxt, void *dest,
 *      Copies buffers from the host side buffer to the shared memory.
 */
static u32 write_data(struct bridge_dev_context *dev_ctxt, void *dest,
		      void *pSrc, u32 usize)
		      void *src, u32 usize)
{
	memcpy(dest, pSrc, usize);
	memcpy(dest, src, usize);
	return usize;
}

@@ -1793,20 +1793,21 @@ int io_sh_msetting(struct io_mgr *hio_mgr, u8 desc, void *pargs)
 *      Gets the Processor's Load information
 */
int bridge_io_get_proc_load(IN struct io_mgr *hio_mgr,
				OUT struct dsp_procloadstat *pProcStat)
				OUT struct dsp_procloadstat *proc_lstat)
{
	pProcStat->curr_load = hio_mgr->shared_mem->load_mon_info.curr_dsp_load;
	pProcStat->predicted_load =
	proc_lstat->curr_load =
			hio_mgr->shared_mem->load_mon_info.curr_dsp_load;
	proc_lstat->predicted_load =
	    hio_mgr->shared_mem->load_mon_info.pred_dsp_load;
	pProcStat->curr_dsp_freq =
	proc_lstat->curr_dsp_freq =
	    hio_mgr->shared_mem->load_mon_info.curr_dsp_freq;
	pProcStat->predicted_freq =
	proc_lstat->predicted_freq =
	    hio_mgr->shared_mem->load_mon_info.pred_dsp_freq;

	dev_dbg(bridge, "Curr Load = %d, Pred Load = %d, Curr Freq = %d, "
		"Pred Freq = %d\n", pProcStat->curr_load,
		pProcStat->predicted_load, pProcStat->curr_dsp_freq,
		pProcStat->predicted_freq);
		"Pred Freq = %d\n", proc_lstat->curr_load,
		proc_lstat->predicted_load, proc_lstat->curr_dsp_freq,
		proc_lstat->predicted_freq);
	return 0;
}

+6 −6
Original line number Diff line number Diff line
@@ -85,7 +85,7 @@ static hw_status mmu_flush_entry(const void __iomem *base_address);
 *       TypE		: const u32
 *       Description     : It indicates the page size
 *
 *       Identifier      : preservedBit
 *       Identifier      : preserved_bit
 *       Type		: const u32
 *       Description     : It indicates the TLB entry is preserved entry
 *							or not
@@ -114,7 +114,7 @@ static hw_status mmu_flush_entry(const void __iomem *base_address);
 */
static hw_status mmu_set_cam_entry(const void __iomem *base_address,
				   const u32 page_sz,
				   const u32 preservedBit,
				   const u32 preserved_bit,
				   const u32 validBit,
				   const u32 virtual_addr_tag);

@@ -337,7 +337,7 @@ hw_status hw_mmu_tlb_add(const void __iomem *base_address,
			 u32 page_sz,
			 u32 entry_num,
			 struct hw_mmu_map_attrs_t *map_attrs,
			 s8 preservedBit, s8 validBit)
			 s8 preserved_bit, s8 validBit)
{
	hw_status status = RET_OK;
	u32 lock_reg;
@@ -380,7 +380,7 @@ hw_status hw_mmu_tlb_add(const void __iomem *base_address,
	virtual_addr_tag = ((virtualAddr & MMU_ADDR_MASK) >> 12);

	/* Write the fields in the CAM Entry Register */
	mmu_set_cam_entry(base_address, mmu_pg_size, preservedBit, validBit,
	mmu_set_cam_entry(base_address, mmu_pg_size, preserved_bit, validBit,
			  virtual_addr_tag);

	/* Write the different fields of the RAM Entry Register */
@@ -538,7 +538,7 @@ static hw_status mmu_flush_entry(const void __iomem *base_address)
/* mmu_set_cam_entry */
static hw_status mmu_set_cam_entry(const void __iomem *base_address,
				   const u32 page_sz,
				   const u32 preservedBit,
				   const u32 preserved_bit,
				   const u32 validBit,
				   const u32 virtual_addr_tag)
{
@@ -551,7 +551,7 @@ static hw_status mmu_set_cam_entry(const void __iomem *base_address,

	mmu_cam_reg = (virtual_addr_tag << 12);
	mmu_cam_reg = (mmu_cam_reg) | (page_sz) | (validBit << 2) |
	    (preservedBit << 3);
	    (preserved_bit << 3);

	/* write values to register */
	MMUMMU_CAM_WRITE_REGISTER32(base_address, mmu_cam_reg);
+1 −1
Original line number Diff line number Diff line
@@ -85,7 +85,7 @@ extern hw_status hw_mmu_tlb_add(const void __iomem *base_address,
				u32 page_sz,
				u32 entry_num,
				struct hw_mmu_map_attrs_t *map_attrs,
				s8 preservedBit, s8 validBit);
				s8 preserved_bit, s8 validBit);

/* For PTEs */
extern hw_status hw_mmu_pte_set(const u32 pg_tbl_va,
+5 −5
Original line number Diff line number Diff line
@@ -100,20 +100,20 @@ extern int cfg_get_dev_object(IN struct cfg_devnode *dev_node_obj,
 *  Parameters:
 *      dev_node_obj: Handle to the dev_node who's driver we are querying.
 *      buf_size:       Size of buffer.
 *      pstrExecFile:   Ptr to character buf to hold ExecFile.
 *      str_exec_file:  Ptr to character buf to hold ExecFile.
 *  Returns:
 *      0:                Success.
 *      -EFAULT:  dev_node_obj is invalid or pstrExecFile is invalid.
 *      -EFAULT:  dev_node_obj is invalid or str_exec_file is invalid.
 *      -ENODATA: The resource is not available.
 *  Requires:
 *      CFG initialized.
 *  Ensures:
 *      0:    Not more than buf_size bytes were copied into pstrExecFile,
 *                  and *pstrExecFile contains default executable for this
 *      0:    Not more than buf_size bytes were copied into str_exec_file,
 *                  and *str_exec_file contains default executable for this
 *                  devnode.
 */
extern int cfg_get_exec_file(IN struct cfg_devnode *dev_node_obj,
				    IN u32 buf_size, OUT char *pstrExecFile);
				    IN u32 buf_size, OUT char *str_exec_file);

/*
 *  ======== cfg_get_object ========
+4 −4
Original line number Diff line number Diff line
@@ -350,7 +350,7 @@ extern int cod_open_base(struct cod_manager *hmgr, IN char *pszCoffPath,
 *  Parameters:
 *      cod_mgr_obj    - manager in which to search for the symbol
 *      pstrSect    - name of the section, with or without leading "."
 *      pstrContent - buffer to store content of the section.
 *      str_content - buffer to store content of the section.
 *  Returns:
 *      0: on success, error code on failure
 *      -ESPIPE:  Symbols have not been loaded onto the board.
@@ -358,12 +358,12 @@ extern int cod_open_base(struct cod_manager *hmgr, IN char *pszCoffPath,
 *      COD module initialized.
 *      valid cod_mgr_obj.
 *      pstrSect != NULL;
 *      pstrContent != NULL;
 *      str_content != NULL;
 *  Ensures:
 *      0:  *pstrContent stores the content of the named section.
 *      0:  *str_content stores the content of the named section.
 */
extern int cod_read_section(struct cod_libraryobj *lib,
				   IN char *pstrSect,
				   OUT char *pstrContent, IN u32 content_size);
				   OUT char *str_content, IN u32 content_size);

#endif /* COD_ */
Loading