Commit ad55f6c8 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] drx-j: prepend function names with drx_ at drx_driver.c

In order to prepare to get rid of drx_driver.c, prepend all functions
there with drx_.
Acked-by: default avatarDevin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent 1e76a999
...@@ -46,7 +46,7 @@ INCLUDE FILES ...@@ -46,7 +46,7 @@ INCLUDE FILES
*/ */
/* /*
/* MICROCODE RELATED DEFINES * MICROCODE RELATED DEFINES
*/ */
/* Magic word for checking correct Endianess of microcode data */ /* Magic word for checking correct Endianess of microcode data */
...@@ -108,13 +108,13 @@ FUNCTIONS ...@@ -108,13 +108,13 @@ FUNCTIONS
*/ */
/** /**
* u_code_compute_crc - Compute CRC of block of microcode data. * drx_u_code_compute_crc - Compute CRC of block of microcode data.
* @block_data: Pointer to microcode data. * @block_data: Pointer to microcode data.
* @nr_words: Size of microcode block (number of 16 bits words). * @nr_words: Size of microcode block (number of 16 bits words).
* *
* returns The computed CRC residue. * returns The computed CRC residue.
*/ */
static u16 u_code_compute_crc(u8 *block_data, u16 nr_words) static u16 drx_u_code_compute_crc(u8 *block_data, u16 nr_words)
{ {
u16 i = 0; u16 i = 0;
u16 j = 0; u16 j = 0;
...@@ -136,13 +136,13 @@ static u16 u_code_compute_crc(u8 *block_data, u16 nr_words) ...@@ -136,13 +136,13 @@ static u16 u_code_compute_crc(u8 *block_data, u16 nr_words)
} }
/** /**
* check_firmware - checks if the loaded firmware is valid * drx_check_firmware - checks if the loaded firmware is valid
* *
* @demod: demod structure * @demod: demod structure
* @mc_data: pointer to the start of the firmware * @mc_data: pointer to the start of the firmware
* @size: firmware size * @size: firmware size
*/ */
static int check_firmware(struct drx_demod_instance *demod, u8 *mc_data, static int drx_check_firmware(struct drx_demod_instance *demod, u8 *mc_data,
unsigned size) unsigned size)
{ {
struct drxu_code_block_hdr block_hdr; struct drxu_code_block_hdr block_hdr;
...@@ -222,7 +222,7 @@ static int check_firmware(struct drx_demod_instance *demod, u8 *mc_data, ...@@ -222,7 +222,7 @@ static int check_firmware(struct drx_demod_instance *demod, u8 *mc_data,
} }
/** /**
* ctrl_u_code - Handle microcode upload or verify. * drx_ctrl_u_code - Handle microcode upload or verify.
* @dev_addr: Address of device. * @dev_addr: Address of device.
* @mc_info: Pointer to information about microcode data. * @mc_info: Pointer to information about microcode data.
* @action: Either UCODE_UPLOAD or UCODE_VERIFY * @action: Either UCODE_UPLOAD or UCODE_VERIFY
...@@ -240,7 +240,7 @@ static int check_firmware(struct drx_demod_instance *demod, u8 *mc_data, ...@@ -240,7 +240,7 @@ static int check_firmware(struct drx_demod_instance *demod, u8 *mc_data,
* - Invalid arguments. * - Invalid arguments.
* - Provided image is corrupt * - Provided image is corrupt
*/ */
static int ctrl_u_code(struct drx_demod_instance *demod, static int drx_ctrl_u_code(struct drx_demod_instance *demod,
struct drxu_code_info *mc_info, struct drxu_code_info *mc_info,
enum drxu_code_action action) enum drxu_code_action action)
{ {
...@@ -295,7 +295,7 @@ static int ctrl_u_code(struct drx_demod_instance *demod, ...@@ -295,7 +295,7 @@ static int ctrl_u_code(struct drx_demod_instance *demod,
} }
if (action == UCODE_UPLOAD) { if (action == UCODE_UPLOAD) {
rc = check_firmware(demod, (u8 *)mc_data_init, size); rc = drx_check_firmware(demod, (u8 *)mc_data_init, size);
if (rc) if (rc)
goto release; goto release;
...@@ -337,7 +337,7 @@ static int ctrl_u_code(struct drx_demod_instance *demod, ...@@ -337,7 +337,7 @@ static int ctrl_u_code(struct drx_demod_instance *demod,
*/ */
if ((block_hdr.size > 0x7FFF) || if ((block_hdr.size > 0x7FFF) ||
(((block_hdr.flags & DRX_UCODE_CRC_FLAG) != 0) && (((block_hdr.flags & DRX_UCODE_CRC_FLAG) != 0) &&
(block_hdr.CRC != u_code_compute_crc(mc_data, block_hdr.size))) (block_hdr.CRC != drx_u_code_compute_crc(mc_data, block_hdr.size)))
) { ) {
/* Wrong data ! */ /* Wrong data ! */
rc = -EINVAL; rc = -EINVAL;
...@@ -424,7 +424,7 @@ static int ctrl_u_code(struct drx_demod_instance *demod, ...@@ -424,7 +424,7 @@ static int ctrl_u_code(struct drx_demod_instance *demod,
/*============================================================================*/ /*============================================================================*/
/** /**
* ctrl_version - Build list of version information. * drx_ctrl_version - Build list of version information.
* @demod: A pointer to a demodulator instance. * @demod: A pointer to a demodulator instance.
* @version_list: Pointer to linked list of versions. * @version_list: Pointer to linked list of versions.
* *
...@@ -432,7 +432,7 @@ static int ctrl_u_code(struct drx_demod_instance *demod, ...@@ -432,7 +432,7 @@ static int ctrl_u_code(struct drx_demod_instance *demod,
* 0: Version information stored in version_list * 0: Version information stored in version_list
* -EINVAL: Invalid arguments. * -EINVAL: Invalid arguments.
*/ */
static int ctrl_version(struct drx_demod_instance *demod, static int drx_ctrl_version(struct drx_demod_instance *demod,
struct drx_version_list **version_list) struct drx_version_list **version_list)
{ {
static char drx_driver_core_module_name[] = "Core driver"; static char drx_driver_core_module_name[] = "Core driver";
...@@ -607,7 +607,7 @@ int drx_ctrl(struct drx_demod_instance *demod, u32 ctrl, void *ctrl_data) ...@@ -607,7 +607,7 @@ int drx_ctrl(struct drx_demod_instance *demod, u32 ctrl, void *ctrl_data)
/*======================================================================*/ /*======================================================================*/
case DRX_CTRL_VERSION: case DRX_CTRL_VERSION:
return ctrl_version(demod, (struct drx_version_list **)ctrl_data); return drx_ctrl_version(demod, (struct drx_version_list **)ctrl_data);
break; break;
/*======================================================================*/ /*======================================================================*/
...@@ -624,7 +624,7 @@ int drx_ctrl(struct drx_demod_instance *demod, u32 ctrl, void *ctrl_data) ...@@ -624,7 +624,7 @@ int drx_ctrl(struct drx_demod_instance *demod, u32 ctrl, void *ctrl_data)
switch (ctrl) { switch (ctrl) {
/*===================================================================*/ /*===================================================================*/
case DRX_CTRL_LOAD_UCODE: case DRX_CTRL_LOAD_UCODE:
return ctrl_u_code(demod, return drx_ctrl_u_code(demod,
(struct drxu_code_info *)ctrl_data, (struct drxu_code_info *)ctrl_data,
UCODE_UPLOAD); UCODE_UPLOAD);
break; break;
...@@ -632,7 +632,7 @@ int drx_ctrl(struct drx_demod_instance *demod, u32 ctrl, void *ctrl_data) ...@@ -632,7 +632,7 @@ int drx_ctrl(struct drx_demod_instance *demod, u32 ctrl, void *ctrl_data)
/*===================================================================*/ /*===================================================================*/
case DRX_CTRL_VERIFY_UCODE: case DRX_CTRL_VERIFY_UCODE:
{ {
return ctrl_u_code(demod, return drx_ctrl_u_code(demod,
(struct drxu_code_info *)ctrl_data, (struct drxu_code_info *)ctrl_data,
UCODE_VERIFY); UCODE_VERIFY);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment