Skip to content

Commit 5e69395

Browse files
authored
Fix typos (#234)
Found via `codespell -q 3 -S "./rust,./artwork" -L afe,als,ane,ans,ba,blong,busses,clen,crate,inout,opps,reenable,reenabled,ro,runn,sart,ser,statics,tge` Signed-off-by: Luz Paz <luzpaz@pm.me>
1 parent 243cdf4 commit 5e69395

File tree

13 files changed

+19
-19
lines changed

13 files changed

+19
-19
lines changed

proxyclient/m1n1/fw/agx/cmdqueue.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class WorkCommandInitBM(ConstructClass):
4848

4949
class WorkCommandComputeUnk10(ConstructClass):
5050
"""
51-
occassionally sent before WorkCommandCP on the SubmitCP queue.
51+
occasionally sent before WorkCommandCP on the SubmitCP queue.
5252
"""
5353
subcon = Struct(
5454
"magic" / Const(0xa, Hex(Int32ul)),
@@ -57,7 +57,7 @@ class WorkCommandComputeUnk10(ConstructClass):
5757

5858
class WorkCommandComputeUnk11(ConstructClass):
5959
"""
60-
occassionally sent before WorkCommandCP on the SubmitCP queue.
60+
occasionally sent before WorkCommandCP on the SubmitCP queue.
6161
"""
6262
subcon = Struct(
6363
"magic" / Const(0xb, Hex(Int32ul)),

proxyclient/m1n1/fw/agx/microsequence.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@ class TimestampCmd(ConstructClass):
914914
"unk_1" / Int8ul,
915915
"unk_2" / Int8ul,
916916
"unk_3" / Int8ul, # Sometimes 0x80
917-
# all these pointers point to 0xfa0... addresses. Might be where the timestamp should be writen?
917+
# all these pointers point to 0xfa0... addresses. Might be where the timestamp should be written?
918918
"ts0_addr" / Int64ul,
919919
"ts0" / ROPointer(this.ts0_addr, TimeStamp),
920920
"ts_pointers_addr" / Int64ul,

proxyclient/m1n1/fw/dcp/manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def swap_complete_intent_gated(self, swap_id, unkB, unkInt, width, height):
122122
def enable_backlight_message_ap_gated(self, unkB):
123123
print(f"enable_backlight_message_ap_gated({unkB})")
124124

125-
# wrapper for set_digital_out_mode to print information on the setted modes
125+
# wrapper for set_digital_out_mode to print information on the set modes
126126
def SetDigitalOutMode(self, color_id, timing_id):
127127
color_mode = [x for x in self.dcpav_prop['ColorElements'] if x['ID'] == color_id][0]
128128
timing_mode = [x for x in self.dcpav_prop['TimingElements'] if x['ID'] == timing_id][0]

proxyclient/m1n1/hw/aes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class AESControlReg(Register32):
9090
START = 0, 0
9191
STOP = 1, 1
9292
CLEAR_FIFO = 2, 2
93-
# TOOD: not convinced about RESET anymore, I remember this un-broke the engine once but I can't reproduce that anymore
93+
# TODO: not convinced about RESET anymore, I remember this un-broke the engine once but I can't reproduce that anymore
9494
RESET = 3, 3
9595

9696

proxyclient/m1n1/hw/ane.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def execute_tq(self, req):
146146

147147
# transfer to main queue (now in in TM range)
148148
self.regs.REQ_ADDR.val = self.tq.REQ_ADDR1[qid].val
149-
# doesnt go through if 0
149+
# doesn't go through if 0
150150
self.regs.REQ_INFO.val = self.tq.REQ_SIZE1[qid].val | req.td_count
151151
# let's do magic
152152
self.regs.REQ_PUSH.val = self.tq_prty[qid] | (qid & 7) << 8

proxyclient/m1n1/hw/i2c.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class R_SMSTA(Register32):
6565
XIP = 28 # Xaction in progress
6666
XEN = 27 # Xaction ended
6767
UJF = 26 # UnJam failure
68-
JMD = 25 # Jam ocurred
68+
JMD = 25 # Jam occurred
6969
JAM = 24 # Currently jammed
7070
MTO = 23 # Master timeout
7171
MTA = 22 # Master arb lost

proxyclient/m1n1/proxy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ class GUARD(IntFlag):
471471
REGION_RX_EL1 = 0xc0000000000
472472

473473
# Uses UartInterface.proxyreq() to send requests to M1N1 and process
474-
# reponses sent back.
474+
# responses sent back.
475475
class M1N1Proxy(Reloadable):
476476
S_OK = 0
477477
S_BADCMD = -1

src/chickens.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const char *init_cpu(void)
5151
printf(" CPU part: 0x%x rev: 0x%x\n", part, rev);
5252

5353
if (part >= MIDR_PART_T8015_MONSOON) {
54-
/* Enable NEX powergating, the reset cycles might be overriden by chickens */
54+
/* Enable NEX powergating, the reset cycles might be overridden by chickens */
5555
if (!is_ecore()) {
5656
reg_mask(SYS_IMP_APL_HID13, HID13_RESET_CYCLES_MASK, HID13_RESET_CYCLES(12));
5757
reg_set(SYS_IMP_APL_HID14, HID14_ENABLE_NEX_POWER_GATING);

src/dlmalloc/malloc.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1680,7 +1680,7 @@ static FORCEINLINE void* win32direct_mmap(size_t size) {
16801680
return (ptr != 0)? ptr: MFAIL;
16811681
}
16821682

1683-
/* This function supports releasing coalesed segments */
1683+
/* This function supports releasing coalesced segments */
16841684
static FORCEINLINE int win32munmap(void* ptr, size_t size) {
16851685
MEMORY_BASIC_INFORMATION minfo;
16861686
char* cptr = (char*)ptr;
@@ -1768,7 +1768,7 @@ static FORCEINLINE int win32munmap(void* ptr, size_t size) {
17681768
#define CALL_MREMAP(addr, osz, nsz, mv) MFAIL
17691769
#endif /* HAVE_MMAP && HAVE_MREMAP */
17701770

1771-
/* mstate bit set if continguous morecore disabled or failed */
1771+
/* mstate bit set if contiguous morecore disabled or failed */
17721772
#define USE_NONCONTIGUOUS_BIT (4U)
17731773

17741774
/* segment bit set in create_mspace_with_base */
@@ -4682,7 +4682,7 @@ void* dlmalloc(size_t bytes) {
46824682

46834683
void dlfree(void* mem) {
46844684
/*
4685-
Consolidate freed chunks with preceeding or succeeding bordering
4685+
Consolidate freed chunks with preceding or succeeding bordering
46864686
free chunks, if they exist, and then place in a bin. Intermixed
46874687
with special cases for top, dv, mmapped chunks, and usage errors.
46884688
*/
@@ -6216,10 +6216,10 @@ int mspace_mallopt(int param_number, int value) {
62166216
Wolfram Gloger (Gloger@lrz.uni-muenchen.de).
62176217
* Use last_remainder in more cases.
62186218
* Pack bins using idea from colin@nyx10.cs.du.edu
6219-
* Use ordered bins instead of best-fit threshhold
6219+
* Use ordered bins instead of best-fit threshold
62206220
* Eliminate block-local decls to simplify tracing and debugging.
62216221
* Support another case of realloc via move into top
6222-
* Fix error occuring when initial sbrk_base not word-aligned.
6222+
* Fix error occurring when initial sbrk_base not word-aligned.
62236223
* Rely on page size for units instead of SBRK_UNIT to
62246224
avoid surprises about sbrk alignment conventions.
62256225
* Add mallinfo, mallopt. Thanks to Raymond Nijssen

src/kboot.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1818,7 +1818,7 @@ static int dt_set_display(void)
18181818
dart_lock_adt("/arm-io/dart-disp0", 0);
18191819

18201820
/* Add "/reserved-memory" nodes with iommu mapping and link them to their
1821-
* devices. The memory is already excluded from useable RAM so these nodes
1821+
* devices. The memory is already excluded from usable RAM so these nodes
18221822
* are only required to inform the OS about the existing mappings.
18231823
* Required for disp0, dcp and all dcpext.
18241824
* Checks for dcp* / disp*_piodma / disp* aliases and fails silently if
@@ -2525,7 +2525,7 @@ int kboot_prepare_dt(void *fdt)
25252525
if (fdt_add_mem_rsv(dt, (u64)_base, ((u64)_end) - ((u64)_base)))
25262526
bail("FDT: couldn't add reservation for m1n1\n");
25272527

2528-
/* setup console log buffer early to cpature as much log as possible */
2528+
/* setup console log buffer early to capture as much log as possible */
25292529
dt_setup_mtd_phram();
25302530

25312531
if (dt_set_chosen())

0 commit comments

Comments
 (0)