···807807 * @size: size of parameter to copy (in bytes)808808 * @max_size: size to move up offset; SEP mesg is in word sizes809809 * @msg_offset: pointer to current offset (is updated)810810- * @byte_array: flag ti indicate wheter endian must be changed810810+ * @byte_array: flag ti indicate whether endian must be changed811811 * Copies data into the message area from caller812812 */813813static void sep_write_msg(struct this_task_ctx *ta_ctx, void *in_addr,···855855 * @size: size of parameter to copy (in bytes)856856 * @max_size: size to move up offset; SEP mesg is in word sizes857857 * @msg_offset: pointer to current offset (is updated)858858- * @byte_array: flag ti indicate wheter endian must be changed858858+ * @byte_array: flag ti indicate whether endian must be changed859859 * Copies data out of the message area to caller860860 */861861static void sep_read_msg(struct this_task_ctx *ta_ctx, void *in_addr,···990990 /**991991 * The following unlocks the sep and makes it available992992 * to any other application993993- * First, null out crypto entries in sep before relesing it993993+ * First, null out crypto entries in sep before releasing it994994 */995995 ta_ctx->sep_used->current_hash_req = NULL;996996 ta_ctx->sep_used->current_cypher_req = NULL;···1001100110021002 ta_ctx->call_status.status = 0;1003100310041004- /* Remove anything confidentail */10041004+ /* Remove anything confidential */10051005 memset(ta_ctx->sep_used->shared_addr, 0,10061006 SEP_DRIVER_MESSAGE_SHARED_AREA_SIZE_IN_BYTES);10071007···12071207 req->nbytes, ta_ctx->walk.blocksize, &new_sg, 1);1208120812091209 if (int_error < 0) {12101210- dev_warn(&ta_ctx->sep_used->pdev->dev, "oddball page eerror\n");12101210+ dev_warn(&ta_ctx->sep_used->pdev->dev, "oddball page error\n");12111211 return -ENOMEM;12121212 } else if (int_error == 1) {12131213 ta_ctx->src_sg = new_sg;···18701870 sizeof(struct sep_hash_private_context));1871187118721872 /**18731873- * Following is only for finup; if we just completd the18731873+ * Following is only for finup; if we just completed the18741874 * data portion of finup, we now need to kick off the18751875 * finish portion of finup.18761876 */···20112011}2012201220132013/**20142014- * The sep_finish function is the function that is schedule (via tasket)20142014+ * The sep_finish function is the function that is scheduled (via tasklet)20152015 * by the interrupt service routine when the SEP sends and interrupt20162016 * This is only called by the interrupt handler as a tasklet.20172017 */···22492249 head_len = (block_size - int_ctx->prev_update_bytes) % block_size;22502250 tail_len = (req->nbytes - head_len) % block_size;2251225122522252- /* Make sure all pages are even block */22522252+ /* Make sure all pages are an even block */22532253 int_error = sep_oddball_pages(ta_ctx->sep_used, req->src,22542254 req->nbytes,22552255 block_size, &new_sg, 1);···24822482 dev_dbg(&ta_ctx->sep_used->pdev->dev, "block_size is %x\n", block_size);24832483 dev_dbg(&ta_ctx->sep_used->pdev->dev, "tail len is %x\n", tail_len);2484248424852485- /* Make sure all pages are even block */24852485+ /* Make sure all pages are an even block */24862486 int_error = sep_oddball_pages(ta_ctx->sep_used, req->src,24872487 req->nbytes,24882488 block_size, &new_sg, 1);
+4-4
drivers/staging/sep/sep_driver_api.h
···9191};92929393/*9494- command structure for building dcb block (currently for ext app only9494+ command structure for building dcb block (currently for ext app only)9595*/9696struct build_dcb_struct {9797 /* address value of the data in */···234234 u32 dmatables_len;235235 /* size of input data */236236 u32 input_data_len;237237- /* secure dma use (for imr memory restriced area in output */237237+ /* secure dma use (for imr memory restricted area in output) */238238 bool secure_dma;239239 struct sep_dma_resource dma_res_arr[SEP_MAX_NUM_SYNC_DMA_OPS];240240 /* Scatter gather for kernel crypto */···347347348348/**349349 * sep_free_dma_table_data_handler - free DMA table350350- * @sep: pointere to struct sep_device350350+ * @sep: pointer to struct sep_device351351 * @dma_ctx: dma context352352 *353353- * Handles the request to free DMA table for synchronic actions353353+ * Handles the request to free DMA table for synchronic actions354354 */355355int sep_free_dma_table_data_handler(struct sep_device *sep,356356 struct sep_dma_context **dma_ctx);
+2-2
drivers/staging/sep/sep_driver_config.h
···4343#define SEP_DRIVER_POLLING_MODE 044444545/* flag which defines if the shared area address should be4646- reconfiged (send to SEP anew) during init of the driver */4646+ reconfigured (send to SEP anew) during init of the driver */4747#define SEP_DRIVER_RECONFIG_MESSAGE_AREA 048484949/* the mode for running on the ARM1172 Evaluation platform (flag is 1) */···166166 (SEP_DRIVER_STATIC_AREA_OFFSET_IN_BYTES + \167167 SEP_DRIVER_STATIC_AREA_SIZE_IN_BYTES)168168169169-/* synhronic dma tables area offset */169169+/* synchronic dma tables area offset */170170#define SYNCHRONIC_DMA_TABLES_AREA_OFFSET_BYTES \171171 (SEP_DRIVER_DATA_POOL_AREA_OFFSET_IN_BYTES + \172172 SEP_DRIVER_DATA_POOL_SHARED_AREA_SIZE_IN_BYTES)
+18-18
drivers/staging/sep/sep_main.c
···9494#endif95959696/**9797- * Currenlty, there is only one SEP device per platform;9797+ * Currently, there is only one SEP device per platform;9898 * In event platforms in the future have more than one SEP9999 * device, this will be a linked list100100 */···106106 * @sep: SEP device107107 * @sep_queue_info: pointer to status queue108108 *109109- * This function will removes information about transaction from the queue.109109+ * This function will remove information about transaction from the queue.110110 */111111void sep_queue_status_remove(struct sep_device *sep,112112 struct sep_queue_info **queue_elem)···294294end_function_setpid:295295 /*296296 * The pid_doing_transaction indicates that this process297297- * now owns the facilities to performa a transaction with297297+ * now owns the facilities to perform a transaction with298298 * the SEP. While this process is performing a transaction,299299 * no other process who has the SEP device open can perform300300 * any transactions. This method allows more than one process···447447448448/**449449 * sep_free_dma_table_data_handler - free DMA table450450- * @sep: pointere to struct sep_device450450+ * @sep: pointer to struct sep_device451451 * @dma_ctx: dma context452452 *453453- * Handles the request to free DMA table for synchronic actions453453+ * Handles the request to free DMA table for synchronic actions454454 */455455int sep_free_dma_table_data_handler(struct sep_device *sep,456456 struct sep_dma_context **dma_ctx)···540540 * don't have a page array; the page array is generated541541 * only in the lock_user_pages, which is not called542542 * for kernel crypto, which is what the sg (scatter gather543543- * is used for exclusively543543+ * is used for exclusively)544544 */545545 if (dma->src_sg) {546546 dma_unmap_sg(&sep->pdev->dev, dma->src_sg,···12271227 /* Map array */12281228 struct sep_dma_map *map_array;1229122912301230- /* Set start and end pages and num pages */12301230+ /* Set start and end pages and num pages */12311231 end_page = (app_virt_addr + data_size - 1) >> PAGE_SHIFT;12321232 start_page = app_virt_addr >> PAGE_SHIFT;12331233 num_pages = end_page - start_page + 1;···14311431 /* Array of lli */14321432 struct sep_lli_entry *lli_array;1433143314341434- /* Set start and end pages and num pages */14341434+ /* Set start and end pages and num pages */14351435 end_page = (app_virt_addr + data_size - 1) >> PAGE_SHIFT;14361436 start_page = app_virt_addr >> PAGE_SHIFT;14371437 num_pages = end_page - start_page + 1;···16021602 * @num_table_entries_ptr: pointer to number of tables16031603 * @table_data_size: total data size16041604 *16051605- * Builds ant lli table from the lli_array according to16051605+ * Builds an lli table from the lli_array according to16061606 * the given size of data16071607 */16081608static void sep_build_lli_table(struct sep_device *sep,···17011701 * @virt_address: virtual address to convert17021702 *17031703 * This functions returns the physical address inside shared area according17041704- * to the virtual address. It can be either on the externa RAM device17041704+ * to the virtual address. It can be either on the external RAM device17051705 * (ioremapped), or on the system RAM17061706 * This implementation is for the external RAM17071707 */···17251725 *17261726 * This functions returns the virtual address inside shared area17271727 * according to the physical address. It can be either on the17281728- * externa RAM device (ioremapped), or on the system RAM17281728+ * external RAM device (ioremapped), or on the system RAM17291729 * This implementation is for the external RAM17301730 */17311731static void *sep_shared_area_bus_to_virt(struct sep_device *sep,···18911891 * @lli_table_ptr:18921892 * @num_entries_ptr:18931893 * @table_data_size_ptr:18941894- * @is_kva: set for kernel data (kernel cryptio call)18941894+ * @is_kva: set for kernel data (kernel crypt io call)18951895 *18961896- * This function prepares only input DMA table for synhronic symmetric18961896+ * This function prepares only input DMA table for synchronic symmetric18971897 * operations (HASH)18981898 * Note that all bus addresses that are passed to the SEP18991899 * are in 32 bit format; the SEP is a 32 bit device···21742174 u32 last_table_flag = 0;21752175 /* The data size that should be in table */21762176 u32 table_data_size = 0;21772177- /* Number of etnries in the input table */21772177+ /* Number of entries in the input table */21782178 u32 num_entries_in_table = 0;21792179- /* Number of etnries in the output table */21792179+ /* Number of entries in the output table */21802180 u32 num_entries_out_table = 0;2181218121822182 if (!dma_ctx) {···24012401 * @table_data_size_ptr:24022402 * @is_kva: set for kernel data; used only for kernel crypto module24032403 *24042404- * This function builds input and output DMA tables for synhronic24042404+ * This function builds input and output DMA tables for synchronic24052405 * symmetric operations (AES, DES, HASH). It also checks that each table24062406 * is of the modular block size24072407 * Note that all bus addresses that are passed to the SEP···25562556 "[PID%d] SEP_DRIVER_ENTRIES_PER_TABLE_IN_SEP is (hex) %x\n",25572557 current->pid, SEP_DRIVER_ENTRIES_PER_TABLE_IN_SEP);2558255825592559- /* Call the fucntion that creates table from the lli arrays */25592559+ /* Call the function that creates table from the lli arrays */25602560 dev_dbg(&sep->pdev->dev, "[PID%d] calling create table from lli\n",25612561 current->pid);25622562 error = sep_construct_dma_tables_from_lli(···36633663 goto end_function;36643664 }3665366536663666- /* Checks that user has called necessarry apis */36663666+ /* Checks that user has called necessary apis */36673667 if (0 == test_bit(SEP_FASTCALL_WRITE_DONE_OFFSET,36683668 &call_status->status)) {36693669 dev_warn(&sep->pdev->dev,