MCPcopy Create free account

hub / github.com/chipsalliance/caliptra-mcu-sw / functions

Functions9,086 in github.com/chipsalliance/caliptra-mcu-sw

↓ 4,479 callersFunctionnew
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 callersFunctionstub_warnings_enabled
()
registers/generated-emulator/src/stub_warnings.rs:18
↓ 1,585 callersMethodget
Get the current register value
emulator/periph/src/reset_reason.rs:60
↓ 723 callersFunctiondefault
default
registers/systemrdl-new/src/parser.rs:594
↓ 606 callersMethodset
Set the register value (for software writes)
emulator/periph/src/reset_reason.rs:65
↓ 579 callersMethodclone
(&self)
romtime/src/static_ref.rs:49
↓ 537 callersMethodexpect
(&mut self, expected: Token)
registers/systemrdl/src/token_iter.rs:151
↓ 448 callersMethodgenerated
(&mut self)
registers/generated-emulator/src/mci.rs:6297
↓ 387 callersMethoditer
Iterate through all regions
runtime/kernel/veer/src/pmp.rs:142
↓ 386 callersMethodmap
Map the inner value.
firmware-bundler/src/manifest.rs:70
↓ 359 callersMethodlock
(&self)
emulator/periph/src/mcu_mbox0.rs:218
↓ 341 callersMethodlen
(&self)
romtime/src/soc_manager.rs:379
↓ 275 callersMethodjoin
(mut self)
caliptra-util-host/osal/src/thread.rs:23
↓ 246 callersMethodpush
(&mut self, ch: u8)
emulator/periph/src/uart.rs:192
↓ 241 callersMethodgenerated
(&mut self)
registers/generated-emulator/src/i3c.rs:3545
↓ 241 callersMethodgenerated
(&mut self)
registers/generated-emulator/src/i3c1.rs:3533
↓ 225 callersMethodas_bytes
(&self)
common/mcu-mbox/src/messages.rs:186
↓ 217 callersMethodlen
Get current buffer size
caliptra-util-host/osal/src/memory.rs:62
↓ 213 callersMethodlen
(&self)
runtime/userspace/api/spdm-lib/src/protocol/opaque_data.rs:224
↓ 209 callersMethodclone
(&self)
emulator/bmc/pldm-ua/tests/common.rs:96
↓ 202 callersMethodas_mut
(&mut self)
platforms/fpga/rom/src/flash/flash_drv.rs:82
↓ 192 callersFunctiondecode
(pldm_package_path: &str, output_path: &str)
xtask/src/pldm_fw_pkg.rs:24
↓ 182 callersMethodreplace
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 callersMethodparse_next
(&mut self, input: &mut Tokens<'i>)
registers/systemrdl-new/src/token.rs:64
↓ 154 callersMethodgenerated
(&mut self)
registers/generated-emulator/src/soc.rs:2067
↓ 152 callersMethodas_ref
(&self)
emulator/compliance-test/src/fs.rs:72
↓ 150 callersMethodfetch_add
(&self, value: u32, ordering: core::sync::atomic::Ordering)
caliptra-util-host/osal/src/sync.rs:135
↓ 141 callersMethodarg
(&mut self, arg: &str)
xtask/src/fpga/utils.rs:296
↓ 139 callersMethodlen
Size in bytes.
emulator/periph/src/ecc_ram.rs:147
↓ 139 callersMethodtry_into
(self)
emulator/periph/src/flash_ctrl.rs:57
↓ 113 callersFunctionfailure
(error_code: ErrorCode)
runtime/userspace/libtock/unittest/src/command_return.rs:5
↓ 113 callersMethodlen
(with_pqc_sig: bool)
runtime/userspace/api/caliptra-api/src/evidence/pcr_quote.rs:93
↓ 109 callersMethodis_empty
(&self)
romtime/src/soc_manager.rs:383
↓ 108 callersMethodsend
(&self, payload: &[u8])
emulator/bmc/pldm-ua/tests/common.rs:33
↓ 107 callersMethodgenerate_error_response
( &self, msg_buf: &mut MessageBuf, error_code: ErrorCode, error_data: u8,
runtime/userspace/api/spdm-lib/src/context.rs:220
↓ 105 callersMethodgenerated
(&mut self)
registers/generated-emulator/src/otp.rs:1507
↓ 104 callersFunctionexit
( r0: caliptra_mcu_libtock_platform::Register, r1: caliptra_mcu_libtock_platform::Register, )
runtime/userspace/libtock/unittest/src/fake/syscalls/exit_impl.rs:3
↓ 95 callersMethodwrite_all
(&mut self, buf: &[u8])
emulator/app/src/gdb/gdb_state.rs:47
↓ 94 callersFunctionfatal_error
(error: caliptra_mcu_error::McuError)
rom/src/lib.rs:135
↓ 92 callersFunctionsuccess
()
runtime/userspace/libtock/unittest/src/command_return.rs:43
↓ 92 callersMethodwrite
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 callersFunctioncommand
( driver_id: Register, command_id: Register, argument0: Register, argument1: Register, )
runtime/userspace/libtock/unittest/src/fake/syscalls/command_impl.rs:8
↓ 81 callersMethodmci_fw_fatal_error
(&mut self)
hw/model/src/lib.rs:713
↓ 81 callersFunctionwrite
(path: P, contents: C)
emulator/compliance-test/src/fs.rs:27
↓ 77 callersMethodpath
(&self)
emulator/compliance-test/src/fs.rs:62
↓ 75 callersFunctionread
Same as [`std::fs::read`] but with more informative errors.
emulator/compliance-test/src/fs.rs:33
↓ 75 callersFunctiontest_exit
(code: u32)
romtime/src/lib.rs:94
↓ 74 callersMethodpush_str
(&mut self, s: &str)
runtime/userspace/libtock/ufmt/utils/src/lib.rs:101
↓ 72 callersMethodis_null
Returns true if this is a null callback, false otherwise.
runtime/userspace/libtock/unittest/src/upcall.rs:12
↓ 72 callersMethodreceive_request
( &self, socket: &MockPldmSocket, cmd_code: u8, )
emulator/bmc/pldm-ua/tests/common.rs:274
↓ 72 callersMethodsend_response
(&self, socket: &MockPldmSocket, response: &P)
emulator/bmc/pldm-ua/tests/common.rs:268
↓ 72 callersMethodset_flow_checkpoint
Overwrite current checkpoint, but not the milestone
romtime/src/mci.rs:67
↓ 69 callersMethodstore
(&self, value: u32, ordering: core::sync::atomic::Ordering)
caliptra-util-host/osal/src/sync.rs:131
↓ 68 callersMethodas_mut_bytes
(&mut self)
common/mcu-mbox/src/messages.rs:233
↓ 68 callersMethodto_str
(&self)
runtime/userspace/api/spdm-lib/src/protocol/version.rs:18
↓ 66 callersMethodwrite_str
Writes a string slice to the underlying buffer contained within this formatter.
runtime/userspace/libtock/ufmt/src/lib.rs:390
↓ 65 callersMethodlen
(&self)
rom/src/flash/flash_partition.rs:115
↓ 65 callersMethodstep_until
Execute until the result of `predicate` becomes true.
hw/model/src/lib.rs:382
↓ 64 callersMethodload
Load config from a JSON file, or return defaults if no path is given.
xtask/src/corim.rs:84
↓ 64 callersMethodoutput
(&mut self)
hw/model/src/model_emulated.rs:541
↓ 63 callersMethodas_str
Represent this error code as a string, if defined.
runtime/userspace/libtock/platform/src/error_code.rs:245
↓ 61 callersMethodread_exact
(&mut self, mut buf: &mut [u8])
caliptra-util-host/osal/src/io.rs:11
↓ 60 callersMethodval
(&self)
registers/systemrdl/src/bits.rs:34
↓ 59 callersMethodread
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 callersMethodpopulate_chksum
Calculate and set the checksum for a request payload
common/mcu-mbox/src/messages.rs:328
↓ 56 callersMethodnext
(&mut self)
registers/systemrdl/src/token_iter.rs:142
↓ 56 callersMethodschedule_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 callersFunctiondisasm_inst
(isa: RvIsa, pc: u64, inst: RvInst)
emulator/app/src/dis.rs:5949
↓ 55 callersFunctionstart_runtime_hw_model
(params: TestParams)
tests/integration/src/lib.rs:386
↓ 54 callersMethodwait_for_state_transition
(&self, expected_state: update_sm::States)
emulator/bmc/pldm-ua/tests/common.rs:251
↓ 53 callersMethodcmd_code
(&self)
common/mcu-mbox/src/messages.rs:280
↓ 53 callersMethodpeek
(&mut self, lookahead: usize)
registers/systemrdl/src/token_iter.rs:135
↓ 52 callersFunctionsleep
Sleep for specified duration
caliptra-util-host/osal/src/time.rs:266
↓ 48 callersMethodadd_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 callersMethodexists
Checks if the DOE driver is available. # Returns - `true` if the driver is available, `false` otherwise.
runtime/userspace/syscall/src/doe.rs:27
↓ 48 callersMethodgenerated
(&mut self)
registers/generated-emulator/src/sha512_acc.rs:699
↓ 46 callersMethodfinalize
(self, static_buffer: Self::StaticInput)
platforms/emulator/runtime/src/components/logging.rs:82
↓ 45 callersMethodas_slice
Get buffer data as slice
caliptra-util-host/osal/src/memory.rs:47
↓ 45 callersMethodgenerated
(&mut self)
registers/generated-emulator/src/lc.rs:628
↓ 44 callersMethodcycle_count
(&mut self)
hw/model/src/model_emulated.rs:589
↓ 43 callersFunctionfmt
()
runtime/userspace/libtock/ufmt/tests/vs-std-write.rs:250
↓ 43 callersMethodwrite
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 callersFunctionspawn
Spawn a new thread
caliptra-util-host/osal/src/thread.rs:193
↓ 41 callersMethodwrite
(&self, offset: usize, processid: ProcessId)
runtime/kernel/capsules/src/mbox_sram.rs:73
↓ 38 callersMethodadd_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 callersMethoddata_mut
Returns the mutable data slice in the message buffer of specified length
runtime/userspace/api/spdm-lib/src/codec.rs:287
↓ 38 callersMethodprocess_message
( &mut self, cmd: u32, request: &[u8], )
tests/integration/src/test_mcu_mbox.rs:285
↓ 37 callersFunctionwrite_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 callersMethodas_bytes_partial
(&self)
common/mcu-mbox/src/messages.rs:1301
↓ 36 callersMethodas_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 callersMethodread
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 callersMethodupdate
(&mut self, data: &[u8])
runtime/userspace/api/caliptra-api/src/crypto/hash.rs:127
↓ 34 callersMethodas_bytes_partial_mut
(&mut self)
common/mcu-mbox/src/messages.rs:1307
↓ 34 callersMethodencode
(&self, buffer: &mut MessageBuf)
runtime/userspace/api/spdm-lib/src/commands/vendor_defined_rsp.rs:85
↓ 34 callersFunctiongenerate_failure_response
Helper function to write a failure response message into payload
runtime/userspace/api/pldm-lib/src/cmd_interface.rs:20
↓ 33 callersFunctioncalc_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 callersFunctionconvert_optional_offset_size
(value: c_longlong)
emulator/cbinding/src/lib.rs:1651
↓ 32 callersFunctionexecute_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 callersMethoddiv_ceil
u32::div_ceil is still unstable.
runtime/userspace/libtock/apis/peripherals/alarm/src/lib.rs:46
↓ 30 callersFunctionextract_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