Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dancrossnyc/r9
/ functions
Functions
438 in github.com/dancrossnyc/r9
⨍
Functions
438
◇
Types & classes
116
↓ 54 callers
Function
ptr2hpa
(ptr: *const T)
x86_64/src/node0.rs:91
↓ 49 callers
Method
addr
(&self)
port/src/mem.rs:70
↓ 45 callers
Method
add
(self, offset: u64)
port/src/mem.rs:92
↓ 43 callers
Method
array_mut
(&mut self)
x86_64/src/dat.rs:338
↓ 31 callers
Method
map
(&self, pa: PhysAddr)
aarch64/src/vm.rs:392
↓ 30 callers
Function
putstr
(s: &str)
aarch64/src/pre_mmu/util.rs:92
↓ 26 callers
Method
next
Returns the next level to translate
aarch64/src/vm.rs:250
↓ 25 callers
Function
write_reg
Write val into the reg RegBlock at offset from reg.addr. Panics if offset is outside any range specified by reg.len.
aarch64/src/io.rs:21
↓ 24 callers
Method
as_ptr
(&self)
x86_64/src/dat.rs:353
↓ 20 callers
Method
size
(&self)
aarch64/src/vm.rs:44
↓ 19 callers
Method
get
(&mut self)
riscv64/src/uart16550.rs:60
↓ 15 callers
Method
start
(&self)
port/src/mem.rs:34
↓ 15 callers
Function
workspace
()
xtask/src/main.rs:869
↓ 14 callers
Function
annotated_status
Annotates the error result with the calling binary's name.
xtask/src/main.rs:892
↓ 12 callers
Method
len
Returns the length of the region.
port/src/allocator.rs:60
↓ 12 callers
Method
run
(self)
xtask/src/main.rs:305
↓ 11 callers
Method
find_by_path
Return the node specified by the path, or None
port/src/fdt.rs:352
↓ 10 callers
Function
bytes_to_u32_offset
Extract u32 from bytes + offset
port/src/fdt.rs:23
↓ 10 callers
Method
find_compatible
Return the first node matching the compatible string 'comp'
port/src/fdt.rs:389
↓ 10 callers
Method
property_translated_reg_iter
Get the reg values, translated by ranges of the parent
port/src/fdt.rs:300
↓ 10 callers
Method
with_phys_addr
(self, pa: PhysAddr)
aarch64/src/vm.rs:190
↓ 9 callers
Method
as_ptr
Returns a raw mutable pointer to the beginning of the owned region.
port/src/allocator.rs:55
↓ 9 callers
Method
regblock
(&self)
port/src/fdt.rs:734
↓ 8 callers
Method
end
(&self)
port/src/mem.rs:38
↓ 8 callers
Method
len
(&self)
x86_64/src/dat.rs:361
↓ 8 callers
Method
structs
Return slice containing `structs` area in FDT
port/src/fdt.rs:90
↓ 8 callers
Function
va_index
(va: usize, level: Level)
aarch64/src/vm.rs:269
↓ 8 callers
Function
verbose
(matches: &clap::ArgMatches)
xtask/src/main.rs:284
↓ 7 callers
Function
cargo
()
xtask/src/main.rs:242
↓ 7 callers
Method
load
# Safety It is up to the caller to ensure that `self` has been properly initialized.
x86_64/src/vsvm.rs:239
↓ 7 callers
Method
lock
(&self, node: &'a LockNode)
port/src/mcslock.rs:48
↓ 7 callers
Method
property
(&self, node: &Node, prop_name: &str)
port/src/fdt.rs:152
↓ 7 callers
Function
putu64h
(v: u64)
aarch64/src/pre_mmu/util.rs:98
↓ 6 callers
Method
children
(&'b self, parent: &'b Node)
port/src/fdt.rs:107
↓ 6 callers
Function
env_or
(var: &str, default: &str)
xtask/src/main.rs:237
↓ 6 callers
Function
map_device_register
Map a device register to device memory TODO Maybe make this a macro and wrap the error reporting?
aarch64/src/deviceutil.rs:9
↓ 6 callers
Function
next_mut
Return the next table in the walk. If it doesn't exist, create it.
aarch64/src/pre_mmu/vminit.rs:409
↓ 6 callers
Method
next_mut
Return the next table in the walk. If it doesn't exist, create it.
aarch64/src/vm.rs:333
↓ 6 callers
Method
parent
Find the parent of child.
port/src/fdt.rs:124
↓ 6 callers
Function
print_memory_range
(name: &str, range: &PhysRange)
aarch64/src/main.rs:46
↓ 6 callers
Function
read_reg
Read from the reg RegBlock at offset from reg.addr. Panics if offset is outside any range specified by reg.len.
aarch64/src/io.rs:40
↓ 6 callers
Method
set
Set bit `i` within the bitmap
port/src/bitmapalloc.rs:36
↓ 6 callers
Method
step_by_rounded
(&self, step_size: usize)
port/src/mem.rs:163
↓ 6 callers
Method
with_next_index
(&self, i: usize)
aarch64/src/vmdebug.rs:33
↓ 5 callers
Method
bytes_per_bitmap
Returns number of physical bytes a single bitmap can cover.
port/src/bitmapalloc.rs:77
↓ 5 callers
Method
consume_cells
(&self, value_i: usize, num_cells: usize)
port/src/fdt.rs:196
↓ 5 callers
Method
mark_free
Mark the bits corresponding to the given physical range as free, regardless of the existing state.
port/src/bitmapalloc.rs:94
↓ 5 callers
Method
property_reg_iter
Return the reg values as u64 whether the size is 1 or 2 cells. Doesn't support > 2 cells.
port/src/fdt.rs:205
↓ 4 callers
Method
alloc_physpage
(&mut self)
aarch64/src/pre_mmu/vminit.rs:492
↓ 4 callers
Method
byte
(&self, indices: &ByteIndices)
port/src/bitmapalloc.rs:284
↓ 4 callers
Method
clear
(&mut self)
aarch64/src/vm.rs:57
↓ 4 callers
Function
ctrl
(b: u8)
port/src/devcons.rs:5
↓ 4 callers
Function
delay
(count: u32)
aarch64/src/io.rs:13
↓ 4 callers
Method
is_multiple_of
(&self, n: u64)
port/src/mem.rs:84
↓ 4 callers
Method
malloc
Allocates a block of memory of the requested size and alignment. Returns a pointer to such a block, or nil if the block cannot be allocated.
port/src/allocator.rs:209
↓ 4 callers
Method
map_phys_range
Map the physical range using the requested page size. This aligns on page size boundaries, and rounds the requested range so that both the alignment r
aarch64/src/vm.rs:470
↓ 4 callers
Method
putb
(&self, b: u8)
x86_64/src/devcons.rs:11
↓ 4 callers
Function
request
(code: u32, tags: &Tag<T>)
aarch64/src/mailbox.rs:141
↓ 4 callers
Method
size
(&self)
port/src/fdt.rs:66
↓ 4 callers
Function
wrmsr
Writes an MSR # Safety The caller must ensure that the value and MSR are valid, and that the value makes sense for the MSR.
x86_64/src/cpu.rs:130
↓ 3 callers
Function
allocate_physpage
Try to allocate a physical page. Note that this is NOT mapped.
aarch64/src/pagealloc.rs:63
↓ 3 callers
Function
allocate_virtpage
Try to allocate a physical page and map it into virtual memory at va.
aarch64/src/pagealloc.rs:81
↓ 3 callers
Method
as_mut_ptr
(&mut self)
x86_64/src/dat.rs:357
↓ 3 callers
Method
bytes
(&self)
port/src/bitmapalloc.rs:289
↓ 3 callers
Method
bytes_per_bitmap_byte
Returns number of physical bytes a single bitmap can cover.
port/src/bitmapalloc.rs:72
↓ 3 callers
Function
entry_mut
Return a mutable entry from the table based on the virtual address and the level. (It uses the level to extract the index from the correct part of th
aarch64/src/pre_mmu/vminit.rs:466
↓ 3 callers
Method
entry_mut
Return a mutable entry from the table based on the virtual address and the level. (It uses the level to extract the index from the correct part of th
aarch64/src/vm.rs:327
↓ 3 callers
Method
free
Frees a block of memory characterized by the `layout` argument. If the block can be freed to one of the quick lists, it is; otherwise, it is treated
port/src/allocator.rs:356
↓ 3 callers
Function
from_ptr_to_physaddr_offset_from_kzero
Given an address, return the physical address. Makes a massive assumption that the code is mapped offset to KZERO, so should be used with extreme car
aarch64/src/kmem.rs:97
↓ 3 callers
Method
indices
Iterate over each of the bytes in turn. Iterates only over the bytes covering pages up to `end`. If `end` is within one of the bytes, that byte will
port/src/bitmapalloc.rs:239
↓ 3 callers
Method
indices_from
Iterate over each of the bytes in turn, starting from a particular bitmap and byte, and looping to iterate across all bytes. Iterates only over the b
port/src/bitmapalloc.rs:247
↓ 3 callers
Function
init
()
aarch64/src/trap.rs:9
↓ 3 callers
Function
init
(mach: &mut Mach)
x86_64/src/vsvm.rs:383
↓ 3 callers
Function
init_early_uart_putc
(b: u8)
aarch64/src/pre_mmu/util.rs:83
↓ 3 callers
Method
is_table
(self, level: Level)
aarch64/src/vm.rs:198
↓ 3 callers
Function
kernel_pagetable
()
aarch64/src/vm.rs:26
↓ 3 callers
Function
load_config
(arch: Arch, matches: &clap::ArgMatches)
xtask/src/main.rs:273
↓ 3 callers
Method
mark_range
( &mut self, range: &PhysRange, mark_allocated: bool, check_end: bool, )
port/src/bitmapalloc.rs:214
↓ 3 callers
Method
max_bytes
Returns number of physical bytes covered by all bitmaps.
port/src/bitmapalloc.rs:82
↓ 3 callers
Method
node_address_size_cells
Return the node's #address-cells and #size-cells values as a tuple
port/src/fdt.rs:184
↓ 3 callers
Method
node_name
(&self, node: &Node)
port/src/fdt.rs:148
↓ 3 callers
Function
objcopy
()
xtask/src/main.rs:246
↓ 3 callers
Method
offset_addr
(&self, offset: usize)
port/src/mem.rs:29
↓ 3 callers
Method
physaddr_as_indices
For the given physaddr, returns a tuple of (the bitmap containing pa, the index of the byte containing the pa, and the index of the bit within that by
port/src/bitmapalloc.rs:185
↓ 3 callers
Method
root
(&self)
port/src/fdt.rs:103
↓ 3 callers
Function
root_page_table
Return the root user or kernel level page table
aarch64/src/vm.rs:527
↓ 3 callers
Method
round
Round extents so that start and end lie on multiples of step_size
port/src/mem.rs:174
↓ 3 callers
Function
sbi_call_legacy
(eid: usize, arg0: usize, arg1: usize, arg2: usize)
riscv64/src/sbi.rs:18
↓ 3 callers
Function
swtch
(save: &mut Label, next: &mut Label)
x86_64/src/proc.rs:5
↓ 3 callers
Function
user_pagetable
()
aarch64/src/vm.rs:31
↓ 3 callers
Method
with_allocator
(&self, thunk: F)
port/src/allocator.rs:509
↓ 2 callers
Function
align4
(n: usize)
port/src/fdt.rs:43
↓ 2 callers
Method
allocate
Try to allocate the next available page.
port/src/bitmapalloc.rs:131
↓ 2 callers
Function
apply_platform_config
(cmd: &mut Command, rustflags: &mut Vec<String>, config: &Configuration)
xtask/src/config.rs:133
↓ 2 callers
Function
apply_rustflags
(cmd: &mut Command, rustflags: &[String])
xtask/src/config.rs:271
↓ 2 callers
Function
base_physaddr
()
aarch64/src/kmem.rs:17
↓ 2 callers
Function
boottext_physrange
()
aarch64/src/kmem.rs:57
↓ 2 callers
Function
bss_physrange
()
aarch64/src/kmem.rs:73
↓ 2 callers
Function
data_physrange
()
aarch64/src/kmem.rs:69
↓ 2 callers
Function
ebss_physaddr
()
aarch64/src/kmem.rs:53
next →
1–100 of 438, ranked by callers