Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chipsalliance/caliptra-mcu-sw
/ functions
Functions
9,086 in github.com/chipsalliance/caliptra-mcu-sw
⨍
Functions
9,086
◇
Types & classes
1,726
↓ 4,479 callers
Function
new
Constructs an HwModel based on the cargo features and environment variables, and boot it to the point where CPU execution can occur. This includes pro
hw/model/src/lib.rs:111
↓ 2,728 callers
Function
stub_warnings_enabled
()
registers/generated-emulator/src/stub_warnings.rs:18
↓ 1,585 callers
Method
get
Get the current register value
emulator/periph/src/reset_reason.rs:60
↓ 723 callers
Function
default
default
registers/systemrdl-new/src/parser.rs:594
↓ 606 callers
Method
set
Set the register value (for software writes)
emulator/periph/src/reset_reason.rs:65
↓ 579 callers
Method
clone
(&self)
romtime/src/static_ref.rs:49
↓ 537 callers
Method
expect
(&mut self, expected: Token)
registers/systemrdl/src/token_iter.rs:151
↓ 448 callers
Method
generated
(&mut self)
registers/generated-emulator/src/mci.rs:6297
↓ 387 callers
Method
iter
Iterate through all regions
runtime/kernel/veer/src/pmp.rs:142
↓ 386 callers
Method
map
Map the inner value.
firmware-bundler/src/manifest.rs:70
↓ 359 callers
Method
lock
(&self)
emulator/periph/src/mcu_mbox0.rs:218
↓ 341 callers
Method
len
(&self)
romtime/src/soc_manager.rs:379
↓ 275 callers
Method
join
(mut self)
caliptra-util-host/osal/src/thread.rs:23
↓ 246 callers
Method
push
(&mut self, ch: u8)
emulator/periph/src/uart.rs:192
↓ 241 callers
Method
generated
(&mut self)
registers/generated-emulator/src/i3c.rs:3545
↓ 241 callers
Method
generated
(&mut self)
registers/generated-emulator/src/i3c1.rs:3533
↓ 225 callers
Method
as_bytes
(&self)
common/mcu-mbox/src/messages.rs:186
↓ 217 callers
Method
len
Get current buffer size
caliptra-util-host/osal/src/memory.rs:62
↓ 213 callers
Method
len
(&self)
runtime/userspace/api/spdm-lib/src/protocol/opaque_data.rs:224
↓ 209 callers
Method
clone
(&self)
emulator/bmc/pldm-ua/tests/common.rs:96
↓ 202 callers
Method
as_mut
(&mut self)
platforms/fpga/rom/src/flash/flash_drv.rs:82
↓ 192 callers
Function
decode
(pldm_package_path: &str, output_path: &str)
xtask/src/pldm_fw_pkg.rs:24
↓ 182 callers
Method
replace
Replaces this DriverShareRef with another. `fake:SyscallDrivers` can use `replace` to implement `register` to avoid having to store their `DriverShare
runtime/userspace/libtock/unittest/src/share_data.rs:21
↓ 163 callers
Method
parse_next
(&mut self, input: &mut Tokens<'i>)
registers/systemrdl-new/src/token.rs:64
↓ 154 callers
Method
generated
(&mut self)
registers/generated-emulator/src/soc.rs:2067
↓ 152 callers
Method
as_ref
(&self)
emulator/compliance-test/src/fs.rs:72
↓ 150 callers
Method
fetch_add
(&self, value: u32, ordering: core::sync::atomic::Ordering)
caliptra-util-host/osal/src/sync.rs:135
↓ 141 callers
Method
arg
(&mut self, arg: &str)
xtask/src/fpga/utils.rs:296
↓ 139 callers
Method
len
Size in bytes.
emulator/periph/src/ecc_ram.rs:147
↓ 139 callers
Method
try_into
(self)
emulator/periph/src/flash_ctrl.rs:57
↓ 113 callers
Function
failure
(error_code: ErrorCode)
runtime/userspace/libtock/unittest/src/command_return.rs:5
↓ 113 callers
Method
len
(with_pqc_sig: bool)
runtime/userspace/api/caliptra-api/src/evidence/pcr_quote.rs:93
↓ 109 callers
Method
is_empty
(&self)
romtime/src/soc_manager.rs:383
↓ 108 callers
Method
send
(&self, payload: &[u8])
emulator/bmc/pldm-ua/tests/common.rs:33
↓ 107 callers
Method
generate_error_response
( &self, msg_buf: &mut MessageBuf, error_code: ErrorCode, error_data: u8,
runtime/userspace/api/spdm-lib/src/context.rs:220
↓ 105 callers
Method
generated
(&mut self)
registers/generated-emulator/src/otp.rs:1507
↓ 104 callers
Function
exit
( r0: caliptra_mcu_libtock_platform::Register, r1: caliptra_mcu_libtock_platform::Register, )
runtime/userspace/libtock/unittest/src/fake/syscalls/exit_impl.rs:3
↓ 95 callers
Method
write_all
(&mut self, buf: &[u8])
emulator/app/src/gdb/gdb_state.rs:47
↓ 94 callers
Function
fatal_error
(error: caliptra_mcu_error::McuError)
rom/src/lib.rs:135
↓ 92 callers
Function
success
()
runtime/userspace/libtock/unittest/src/command_return.rs:43
↓ 92 callers
Method
write
Write data of specified size to given address # Arguments `size` - Size of the write `addr` - Address to write `data` - Data to write # Error `RvE
emulator/periph/src/uart.rs:135
↓ 84 callers
Function
command
( driver_id: Register, command_id: Register, argument0: Register, argument1: Register, )
runtime/userspace/libtock/unittest/src/fake/syscalls/command_impl.rs:8
↓ 81 callers
Method
mci_fw_fatal_error
(&mut self)
hw/model/src/lib.rs:713
↓ 81 callers
Function
write
(path: P, contents: C)
emulator/compliance-test/src/fs.rs:27
↓ 77 callers
Method
path
(&self)
emulator/compliance-test/src/fs.rs:62
↓ 75 callers
Function
read
Same as [`std::fs::read`] but with more informative errors.
emulator/compliance-test/src/fs.rs:33
↓ 75 callers
Function
test_exit
(code: u32)
romtime/src/lib.rs:94
↓ 74 callers
Method
push_str
(&mut self, s: &str)
runtime/userspace/libtock/ufmt/utils/src/lib.rs:101
↓ 72 callers
Method
is_null
Returns true if this is a null callback, false otherwise.
runtime/userspace/libtock/unittest/src/upcall.rs:12
↓ 72 callers
Method
receive_request
( &self, socket: &MockPldmSocket, cmd_code: u8, )
emulator/bmc/pldm-ua/tests/common.rs:274
↓ 72 callers
Method
send_response
(&self, socket: &MockPldmSocket, response: &P)
emulator/bmc/pldm-ua/tests/common.rs:268
↓ 72 callers
Method
set_flow_checkpoint
Overwrite current checkpoint, but not the milestone
romtime/src/mci.rs:67
↓ 69 callers
Method
store
(&self, value: u32, ordering: core::sync::atomic::Ordering)
caliptra-util-host/osal/src/sync.rs:131
↓ 68 callers
Method
as_mut_bytes
(&mut self)
common/mcu-mbox/src/messages.rs:233
↓ 68 callers
Method
to_str
(&self)
runtime/userspace/api/spdm-lib/src/protocol/version.rs:18
↓ 66 callers
Method
write_str
Writes a string slice to the underlying buffer contained within this formatter.
runtime/userspace/libtock/ufmt/src/lib.rs:390
↓ 65 callers
Method
len
(&self)
rom/src/flash/flash_partition.rs:115
↓ 65 callers
Method
step_until
Execute until the result of `predicate` becomes true.
hw/model/src/lib.rs:382
↓ 64 callers
Method
load
Load config from a JSON file, or return defaults if no path is given.
xtask/src/corim.rs:84
↓ 64 callers
Method
output
(&mut self)
hw/model/src/model_emulated.rs:541
↓ 63 callers
Method
as_str
Represent this error code as a string, if defined.
runtime/userspace/libtock/platform/src/error_code.rs:245
↓ 61 callers
Method
read_exact
(&mut self, mut buf: &mut [u8])
caliptra-util-host/osal/src/io.rs:11
↓ 60 callers
Method
val
(&self)
registers/systemrdl/src/bits.rs:34
↓ 59 callers
Method
read
Read data of specified size from given address # Arguments `size` - Size of the read `addr` - Address to read from # Error `RvException` - Excepti
emulator/periph/src/uart.rs:100
↓ 58 callers
Method
populate_chksum
Calculate and set the checksum for a request payload
common/mcu-mbox/src/messages.rs:328
↓ 56 callers
Method
next
(&mut self)
registers/systemrdl/src/token_iter.rs:142
↓ 56 callers
Method
schedule_upcall
Schedules the upcall with the specified subscribe number. Like the real kernel, this does nothing if there is no upcall with number `subscribe_num` or
runtime/userspace/libtock/unittest/src/share_data.rs:28
↓ 55 callers
Function
disasm_inst
(isa: RvIsa, pc: u64, inst: RvInst)
emulator/app/src/dis.rs:5949
↓ 55 callers
Function
start_runtime_hw_model
(params: TestParams)
tests/integration/src/lib.rs:386
↓ 54 callers
Method
wait_for_state_transition
(&self, expected_state: update_sm::States)
emulator/bmc/pldm-ua/tests/common.rs:251
↓ 53 callers
Method
cmd_code
(&self)
common/mcu-mbox/src/messages.rs:280
↓ 53 callers
Method
peek
(&mut self, lookahead: usize)
registers/systemrdl/src/token_iter.rs:135
↓ 52 callers
Function
sleep
Sleep for specified duration
caliptra-util-host/osal/src/time.rs:266
↓ 48 callers
Method
add_expected_syscall
Adds an ExpectedSyscall to the expected syscall queue. # What is the expected syscall queue? In addition to routing system calls to drivers, `Kernel
runtime/userspace/libtock/unittest/src/fake/kernel.rs:101
↓ 48 callers
Method
exists
Checks if the DOE driver is available. # Returns - `true` if the driver is available, `false` otherwise.
runtime/userspace/syscall/src/doe.rs:27
↓ 48 callers
Method
generated
(&mut self)
registers/generated-emulator/src/sha512_acc.rs:699
↓ 46 callers
Method
finalize
(self, static_buffer: Self::StaticInput)
platforms/emulator/runtime/src/components/logging.rs:82
↓ 45 callers
Method
as_slice
Get buffer data as slice
caliptra-util-host/osal/src/memory.rs:47
↓ 45 callers
Method
generated
(&mut self)
registers/generated-emulator/src/lc.rs:628
↓ 44 callers
Method
cycle_count
(&mut self)
hw/model/src/model_emulated.rs:589
↓ 43 callers
Function
fmt
()
runtime/userspace/libtock/ufmt/tests/vs-std-write.rs:250
↓ 43 callers
Method
write
Writes data to the flash partition, starting at the specified offset within the partition. # Arguments `partition_offset` - The offset within the pa
rom/src/flash/flash_partition.rs:89
↓ 42 callers
Function
spawn
Spawn a new thread
caliptra-util-host/osal/src/thread.rs:193
↓ 41 callers
Method
write
(&self, offset: usize, processid: ProcessId)
runtime/kernel/capsules/src/mbox_sram.rs:73
↓ 38 callers
Method
add_driver
Adds a `fake::SyscallDriver` to this `fake::Kernel`. After the call, system calls with this driver's ID will be routed to the driver. TODO: It's kind
runtime/userspace/libtock/unittest/src/fake/kernel.rs:62
↓ 38 callers
Method
data_mut
Returns the mutable data slice in the message buffer of specified length
runtime/userspace/api/spdm-lib/src/codec.rs:287
↓ 38 callers
Method
process_message
( &mut self, cmd: u32, request: &[u8], )
tests/integration/src/test_mcu_mbox.rs:285
↓ 37 callers
Function
write_single_fuse_value
For a value that fits into a single u32, duplicates it according to the layout and returns the raw fuse value.
romtime/src/fuse_layout.rs:115
↓ 36 callers
Method
as_bytes_partial
(&self)
common/mcu-mbox/src/messages.rs:1301
↓ 36 callers
Method
as_u32
Casts this register to a u32, truncating it if it is larger than u32::MAX. This conversion should be avoided in host-based test code; use the `TryFrom
runtime/userspace/libtock/platform/src/register.rs:79
↓ 36 callers
Method
read
Reads data from the flash partition into the provided buffer, starting at the specified offset within the partition. # Arguments `partition_offset`
rom/src/flash/flash_partition.rs:70
↓ 36 callers
Method
update
(&mut self, data: &[u8])
runtime/userspace/api/caliptra-api/src/crypto/hash.rs:127
↓ 34 callers
Method
as_bytes_partial_mut
(&mut self)
common/mcu-mbox/src/messages.rs:1307
↓ 34 callers
Method
encode
(&self, buffer: &mut MessageBuf)
runtime/userspace/api/spdm-lib/src/commands/vendor_defined_rsp.rs:85
↓ 34 callers
Function
generate_failure_response
Helper function to write a failure response message into payload
runtime/userspace/api/pldm-lib/src/cmd_interface.rs:20
↓ 33 callers
Function
calc_checksum
Checksum calculation utilities for VDM transport This module provides checksum calculation functions for external mailbox commands. Calculate the che
caliptra-util-host/transport/src/transports/mailbox/checksum.rs:9
↓ 33 callers
Function
convert_optional_offset_size
(value: c_longlong)
emulator/cbinding/src/lib.rs:1651
↓ 32 callers
Function
execute_mailbox_cmd
( mailbox: &Mailbox, cmd: u32, req_bytes: &mut [u8], resp_bytes: &mut [u8], )
runtime/userspace/api/caliptra-api/src/mailbox_api.rs:155
↓ 31 callers
Method
div_ceil
u32::div_ceil is still unstable.
runtime/userspace/libtock/apis/peripherals/alarm/src/lib.rs:46
↓ 30 callers
Function
extract_single_fuse_value
For a raw fuse value that fits into a single u32, collapses it according to the layout and returns the final value.
romtime/src/fuse_layout.rs:168
next →
1–100 of 9,086, ranked by callers