Changeset c477c80 in mainline


Ignore:
Timestamp:
2019-01-03T22:23:00Z (5 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
06412ba
Parents:
7acd787
Message:

Fix some common misspellings

Files:
23 edited

Legend:

Unmodified
Added
Removed
  • abi/include/abi/ipc/methods.h

    r7acd787 rc477c80  
    152152         *
    153153         * - ARG1 - dst as_area lower bound
    154          * - ARG2 - dst as_area base adress pointer
     154         * - ARG2 - dst as_area base address pointer
    155155         *          (filled automatically by the kernel)
    156156         */
  • kernel/arch/arm32/src/mm/tlb.c

    r7acd787 rc477c80  
    7676/** Invalidate single entry in TLB
    7777 *
    78  * @param page Virtual adress of the page
     78 * @param page Virtual address of the page
    7979 */
    8080static inline void invalidate_page(uintptr_t page)
  • kernel/arch/ppc32/include/arch/istate_struct.h

    r7acd787 rc477c80  
    8686        /* imitation of frame pointer linkage */
    8787        uint32_t sp_frame;
    88         /* imitation of return adress linkage */
     88        /* imitation of return address linkage */
    8989        uint32_t lr_frame;
    9090        uint32_t r0;
  • kernel/generic/src/mm/as.c

    r7acd787 rc477c80  
    194194}
    195195
    196 /** Destroy adress space.
     196/** Destroy address space.
    197197 *
    198198 * When there are no tasks referencing this address space (i.e. its refcount is
     
    13471347}
    13481348
    1349 /** Change adress space area flags.
     1349/** Change address space area flags.
    13501350 *
    13511351 * The idea is to have the same data, but with a different access mode.
     
    21502150}
    21512151
    2152 /** Get list of adress space areas.
     2152/** Get list of address space areas.
    21532153 *
    21542154 * @param as    Address space.
  • kernel/generic/src/proc/thread.c

    r7acd787 rc477c80  
    180180         * covered by the kernel identity mapping, which guarantees not to
    181181         * nest TLB-misses infinitely (either via some hardware mechanism or
    182          * by the construciton of the assembly-language part of the TLB-miss
     182         * by the construction of the assembly-language part of the TLB-miss
    183183         * handler).
    184184         *
    185185         * This restriction can be lifted once each architecture provides
    186          * a similar guarantee, for example by locking the kernel stack
     186         * a similar guarantee, for example, by locking the kernel stack
    187187         * in the TLB whenever it is allocated from the high-memory and the
    188188         * thread is being scheduled to run.
  • uspace/app/wavplay/drec.c

    r7acd787 rc477c80  
    8888 * Writes recorded data.
    8989 *
    90  * @param icall Poitner to IPC call structure.
    91  * @param arg   Argument. Poitner to recording helper structure.
     90 * @param icall Pointer to IPC call structure.
     91 * @param arg   Argument. Pointer to recording helper structure.
    9292 *
    9393 */
  • uspace/drv/block/ahci/ahci.c

    r7acd787 rc477c80  
    816816 *
    817817 * @param sata     SATA device structure.
    818  * @param phys     Physical addres of buffer with sector data.
     818 * @param phys     Physical address of buffer with sector data.
    819819 * @param blocknum Block number to write.
    820820 *
  • uspace/drv/bus/usb/ehci/hw_struct/iso_transfer_descriptor.h

    r7acd787 rc477c80  
    5656#define ITD_TRANSACTION_STATUS_BABBLE_FLAG   (1 << 29)
    5757#define ITD_TRANSACTION_STATUS_TRANS_ERROR_FLAG  (1 << 28)
    58 #define ITD_TRANSACTION_LENGHT_MASK    0xfff
    59 #define ITD_TRANSACTION_LENGHT_SHIFT   16
     58#define ITD_TRANSACTION_LENGTH_MASK    0xfff
     59#define ITD_TRANSACTION_LENGTH_SHIFT   16
    6060#define ITD_TRANSACTION_IOC_FLAG       (1 << 15)
    6161#define ITD_TRANSACTION_PG_MASK        0x3
  • uspace/drv/nic/rtl8139/driver.h

    r7acd787 rc477c80  
    107107        void *tx_buff_virt;
    108108
    109         /** Virtual adresses of the Tx buffers */
     109        /** Virtual addresses of the Tx buffers */
    110110        void *tx_buff[TX_BUFF_COUNT];
    111111
  • uspace/lib/c/generic/as.c

    r7acd787 rc477c80  
    126126 *
    127127 * @param      virt Virtual address to find mapping for.
    128  * @param[out] phys Physical adress.
     128 * @param[out] phys Physical address.
    129129 *
    130130 * @return EOK on no error.
  • uspace/lib/c/generic/loc.c

    r7acd787 rc477c80  
    239239}
    240240
    241 /** Register new driver with loc. */
     241/** Register new server with loc. */
    242242errno_t loc_server_register(const char *name)
    243243{
  • uspace/lib/c/generic/vol.c

    r7acd787 rc477c80  
    220220 * @param vol Volume service
    221221 * @param sid Service ID of the partition
    222  * @param vinfo Place to sore partition information
     222 * @param vinfo Place to store partition information
    223223 * @return EOK on success or an error code
    224224 */
     
    578578 * @param vol Volume service
    579579 * @param vid Volume ID
    580  * @param vinfo Place to sore volume configuration information
     580 * @param vinfo Place to store volume configuration information
    581581 * @return EOK on success or an error code
    582582 */
  • uspace/lib/nettl/include/nettl/amap.h

    r7acd787 rc477c80  
    8282        /** Local links */
    8383        list_t llink; /* of amap_llink_t */
    84         /** Nothing specified (listen on all local adresses) */
     84        /** Nothing specified (listen on all local addresses) */
    8585        portrng_t *unspec;
    8686} amap_t;
  • uspace/lib/nic/src/nic_addr_db.c

    r7acd787 rc477c80  
    163163 * @return EOK          If the address was inserted
    164164 * @return ENOMEM       If there was not enough memory
    165  * @return EEXIST       If this adress already is in the db
     165 * @return EEXIST       If this address already is in the db
    166166 */
    167167errno_t nic_addr_db_insert(nic_addr_db_t *db, const uint8_t *addr)
  • uspace/lib/nic/src/nic_driver.c

    r7acd787 rc477c80  
    418418}
    419419
    420 /** Inform the NICF about device's MAC adress.
     420/** Inform the NICF about device's MAC address.
    421421 *
    422422 * @return EOK On success
  • uspace/srv/fs/udf/udf.h

    r7acd787 rc477c80  
    7070        uint32_t access_type;
    7171        uint32_t start;
    72         uint32_t lenght;
     72        uint32_t length;
    7373} udf_partition_t;
    7474
     
    9191        udf_unallocated_space_descriptor_t *uasd;
    9292        uint64_t uaspace_start;
    93         uint64_t uaspace_lenght;
     93        uint64_t uaspace_length;
    9494        uint8_t space_type;
    9595} udf_instance_t;
  • uspace/srv/fs/udf/udf_file.c

    r7acd787 rc477c80  
    114114                        if ((node->index >= node->instance->partitions[i].start) &&
    115115                            (node->index < node->instance->partitions[i].start +
    116                             node->instance->partitions[i].lenght)) {
     116                            node->instance->partitions[i].length)) {
    117117                                if (node->instance->partitions[i].start >= min_start) {
    118118                                        min_start = node->instance->partitions[i].start;
     
    258258                            (udf_file_entry_descriptor_t *) block->data;
    259259                        uint16_t icb_flag = FLE16(file->icbtag.flags) & UDF_ICBFLAG_MASK;
    260                         node->data_size = FLE64(file->info_lenght);
     260                        node->data_size = FLE64(file->info_length);
    261261                        node->type = (file->icbtag.file_type == UDF_ICBTYPE_DIR) ? NODE_DIR : NODE_FILE;
    262262
    263263                        rc = udf_read_allocation_sequence(node, (uint8_t *) file, icb_flag,
    264                             FLE32(file->ea_lenght) + UDF_FE_OFFSET, FLE32(file->ad_lenght));
     264                            FLE32(file->ea_length) + UDF_FE_OFFSET, FLE32(file->ad_length));
    265265                        block_put(block);
    266266                        return rc;
     
    272272                            (udf_extended_file_entry_descriptor_t *) block->data;
    273273                        icb_flag = FLE16(efile->icbtag.flags) & UDF_ICBFLAG_MASK;
    274                         node->data_size = FLE64(efile->info_lenght);
     274                        node->data_size = FLE64(efile->info_length);
    275275                        node->type = (efile->icbtag.file_type == UDF_ICBTYPE_DIR) ? NODE_DIR : NODE_FILE;
    276276
    277277                        rc = udf_read_allocation_sequence(node, (uint8_t *) efile, icb_flag,
    278                             FLE32(efile->ea_lenght) + UDF_EFE_OFFSET, FLE32(efile->ad_lenght));
     278                            FLE32(efile->ea_length) + UDF_EFE_OFFSET, FLE32(efile->ad_length));
    279279                        block_put(block);
    280280                        return rc;
     
    338338
    339339                /* According to ECMA 167 4/14.4.9 */
    340                 size_t padding = 4 * (((*fid)->lenght_file_id +
    341                     FLE16((*fid)->lenght_iu) + 38 + 3) / 4) -
    342                     ((*fid)->lenght_file_id + FLE16((*fid)->lenght_iu) + 38);
    343                 size_t size_fid = (*fid)->lenght_file_id +
    344                     FLE16((*fid)->lenght_iu) + padding + 38;
     340                size_t padding = 4 * (((*fid)->length_file_id +
     341                    FLE16((*fid)->length_iu) + 38 + 3) / 4) -
     342                    ((*fid)->length_file_id + FLE16((*fid)->length_iu) + 38);
     343                size_t size_fid = (*fid)->length_file_id +
     344                    FLE16((*fid)->length_iu) + padding + 38;
    345345
    346346                fid_sum += size_fid;
    347347
    348348                /* aAcording to ECMA 167 4/8.6 */
    349                 if (((*fid)->lenght_file_id != 0) &&
     349                if (((*fid)->length_file_id != 0) &&
    350350                    (((*fid)->file_characteristics & 4) == 0)) {
    351351                        n++;
     
    516516
    517517                        /* According to ECMA 167 4/14.4.9 */
    518                         size_t padding = 4 * (((*fid)->lenght_file_id +
    519                             FLE16((*fid)->lenght_iu) + 38 + 3) / 4) -
    520                             ((*fid)->lenght_file_id + FLE16((*fid)->lenght_iu) + 38);
    521                         size_t size_fid = (*fid)->lenght_file_id +
    522                             FLE16((*fid)->lenght_iu) + padding + 38;
     518                        size_t padding = 4 * (((*fid)->length_file_id +
     519                            FLE16((*fid)->length_iu) + 38 + 3) / 4) -
     520                            ((*fid)->length_file_id + FLE16((*fid)->length_iu) + 38);
     521                        size_t size_fid = (*fid)->length_file_id +
     522                            FLE16((*fid)->length_iu) + padding + 38;
    523523                        if (buf_flag)
    524524                                fid_sum += size_fid - *len;
     
    527527
    528528                        /* According to ECMA 167 4/8.6 */
    529                         if (((*fid)->lenght_file_id != 0) &&
     529                        if (((*fid)->length_file_id != 0) &&
    530530                            (((*fid)->file_characteristics & 4) == 0)) {
    531531                                (*n)++;
  • uspace/srv/fs/udf/udf_file.h

    r7acd787 rc477c80  
    9999        uint16_t file_version_number;
    100100        uint8_t file_characteristics;
    101         uint8_t lenght_file_id;
     101        uint8_t length_file_id;
    102102        udf_long_ad_t icb;
    103         uint16_t lenght_iu;
     103        uint16_t length_iu;
    104104        uint8_t implementation_use[0];
    105105        udf_dstring file_id[0];
     
    128128        uint8_t record_format;
    129129        uint8_t record_display_attributes;
    130         uint32_t record_lenght;
    131         uint64_t info_lenght;
     130        uint32_t record_length;
     131        uint64_t info_length;
    132132        uint64_t lblocks_recorded;
    133133        udf_timestamp_t access_data_and_time;
     
    138138        udf_regid_t implementation_id;
    139139        uint64_t unique_id;
    140         uint32_t ea_lenght;
    141         uint32_t ad_lenght;
     140        uint32_t ea_length;
     141        uint32_t ad_length;
    142142        uint8_t extended_attributes [0];
    143143        uint8_t allocation_descriptors[0];
     
    154154        uint8_t record_format;
    155155        uint8_t record_display_attributes;
    156         uint32_t record_lenght;
    157         uint64_t info_lenght;
     156        uint32_t record_length;
     157        uint64_t info_length;
    158158        uint64_t object_size;
    159159        uint64_t lblocks_recorded;
     
    166166        udf_regid_t implementation_id;
    167167        uint64_t unique_id;
    168         uint32_t ea_lenght;
    169         uint32_t ad_lenght;
     168        uint32_t ea_length;
     169        uint32_t ad_length;
    170170        uint8_t extended_attributes [0];
    171171        uint8_t allocation_descriptors[0];
     
    182182        udf_descriptor_tag_t tag;
    183183        udf_icbtag_t icbtag;
    184         uint32_t ad_lenght;
     184        uint32_t ad_length;
    185185        uint8_t allocation_descriptors[0];
    186186} __attribute__((packed)) udf_unallocated_space_entry_descriptor_t;
  • uspace/srv/fs/udf/udf_ops.c

    r7acd787 rc477c80  
    128128
    129129                udf_to_unix_name(name, MAX_FILE_NAME_LEN,
    130                     (char *) fid->implementation_use + FLE16(fid->lenght_iu),
    131                     fid->lenght_file_id, &UDF_NODE(pfn)->instance->charset);
     130                    (char *) fid->implementation_use + FLE16(fid->length_iu),
     131                    fid->length_file_id, &UDF_NODE(pfn)->instance->charset);
    132132
    133133                if (str_casecmp(name, component) == 0) {
     
    502502
    503503                        udf_to_unix_name(name, MAX_FILE_NAME_LEN,
    504                             (char *) fid->implementation_use + FLE16(fid->lenght_iu),
    505                             fid->lenght_file_id, &node->instance->charset);
     504                            (char *) fid->implementation_use + FLE16(fid->length_iu),
     505                            fid->length_file_id, &node->instance->charset);
    506506
    507507                        async_data_read_finalize(&call, name, str_size(name) + 1);
  • uspace/srv/fs/udf/udf_volume.c

    r7acd787 rc477c80  
    386386                udf_file_entry_descriptor_t *fed =
    387387                    (udf_file_entry_descriptor_t *) block->data;
    388                 uint32_t start_alloc = FLE32(fed->ea_lenght) + UDF_FE_OFFSET;
     388                uint32_t start_alloc = FLE32(fed->ea_length) + UDF_FE_OFFSET;
    389389                udf_short_ad_t *short_d =
    390390                    (udf_short_ad_t *) ((uint8_t *) fed + start_alloc);
    391391                instance->partitions[id].start = FLE32(short_d->position);
    392                 instance->partitions[id].lenght = FLE32(short_d->length);
     392                instance->partitions[id].length = FLE32(short_d->length);
    393393                break;
    394394
     
    398398                udf_extended_file_entry_descriptor_t *efed =
    399399                    (udf_extended_file_entry_descriptor_t *) block->data;
    400                 start_alloc = FLE32(efed->ea_lenght) + UDF_EFE_OFFSET;
     400                start_alloc = FLE32(efed->ea_length) + UDF_EFE_OFFSET;
    401401                short_d = (udf_short_ad_t *) ((uint8_t *) efed + start_alloc);
    402402                instance->partitions[id].start = FLE32(short_d->position);
    403                 instance->partitions[id].lenght = FLE32(short_d->length);
     403                instance->partitions[id].length = FLE32(short_d->length);
    404404                break;
    405405        }
     
    503503                                instance->partitions[j].access_type =
    504504                                    FLE32(pd[pd_num].access_type);
    505                                 instance->partitions[j].lenght =
     505                                instance->partitions[j].length =
    506506                                    FLE32(pd[pd_num].length);
    507507                                instance->partitions[j].number =
     
    518518
    519519                                instance->volumes[i].partition_cnt++;
    520                                 idx += pm1->partition_map_lenght;
     520                                idx += pm1->partition_map_length;
    521521                                continue;
    522522                        }
     
    586586                            "found and skipped", i, pm->partition_map_type);
    587587
    588                         idx += pm->partition_map_lenght;
     588                        idx += pm->partition_map_length;
    589589                }
    590590        }
     
    710710                                    FLE32(vol->partition.starting_location) +
    711711                                    FLE32(phd->unallocated_space_table.position);
    712                                 instance->uaspace_lenght =
     712                                instance->uaspace_length =
    713713                                    FLE32(phd->unallocated_space_table.length);
    714714                        }
     
    724724                                    FLE32(vol->partition.starting_location) +
    725725                                    FLE32(phd->unallocated_space_bitmap.position);
    726                                 instance->uaspace_lenght =
     726                                instance->uaspace_length =
    727727                                    FLE32(phd->unallocated_space_bitmap.length);
    728728                        }
     
    773773                            sizeof(udf_extent_t)), sizeof(udf_common_descriptor_t));
    774774                        instance->uaspace_start = pos;
    775                         instance->uaspace_lenght = sct;
     775                        instance->uaspace_length = sct;
    776776                        instance->uasd = (udf_unallocated_space_descriptor_t *)
    777777                            malloc(sct * instance->sector_size);
  • uspace/srv/fs/udf/udf_volume.h

    r7acd787 rc477c80  
    4949#define UDF_TAG_LVID  0x0009  /* Logical Volume Integrity Descriptor */
    5050
    51 /* Start adress of Anchor Volume Descriptor */
     51/* Start address of Anchor Volume Descriptor */
    5252#define UDF_AVDP_SECTOR  256
    5353
     
    165165typedef struct udf_general_type {
    166166        uint8_t partition_map_type;
    167         uint8_t partition_map_lenght;
     167        uint8_t partition_map_length;
    168168} __attribute__((packed)) udf_general_type_t;
    169169
    170170typedef struct udf_type1_partition_map {
    171171        uint8_t partition_map_type;
    172         uint8_t partition_map_lenght;
     172        uint8_t partition_map_length;
    173173        uint16_t volume_sequence_number;
    174174        uint16_t partition_number;
  • uspace/srv/logger/logs.c

    r7acd787 rc477c80  
    198198}
    199199
    200 /** Decreases reference counter on the log and destory the log if
     200/** Decreases reference counter on the log and destroy the log if
    201201 * necessary.
    202202 *
  • uspace/srv/net/dnsrsrv/dns_msg.c

    r7acd787 rc477c80  
    5252/** Extend dynamically allocated string with suffix.
    5353 *
    54  * @a *dstr points to a dynamically alocated buffer containing a string.
     54 * @a *dstr points to a dynamically allocated buffer containing a string.
    5555 * Reallocate this buffer so that concatenation of @a *dstr and @a suff can
    5656 * fit in and append @a suff.
Note: See TracChangeset for help on using the changeset viewer.