MCPcopy Create free account

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

Functions8,212 in github.com/chipsalliance/caliptra-sw

↓ 3,355 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:139
↓ 731 callersMethodlen
(&self)
x509/src/cert_bldr.rs:221
↓ 507 callersMethodread
(&self)
ureg/src/lib.rs:443
↓ 478 callersMethodtry_into
(self)
drivers/src/hand_off.rs:85
↓ 469 callersMethodclone
(&self)
drivers/src/bounded_address.rs:77
↓ 451 callersMethodas_bytes
(&self)
runtime/tests/runtime_integration_tests/common.rs:655
↓ 445 callersMethoditer
(&self)
sw-emulator/lib/bus/src/register_array.rs:46
↓ 436 callersMethodmailbox_execute
Executes `cmd` with request data `buf`. Returns `Ok(Some(_))` if the uC responded with data, `Ok(None)` if the uC indicated success without data, Err(
hw-model/src/lib.rs:1097
↓ 363 callersMethodexpect
(&mut self, expected: Token)
systemrdl/src/token_iter.rs:128
↓ 342 callersMethodsoc_ifc
A register block that can be used to manipulate the soc_ifc peripheral over the simulated SoC->Caliptra APB bus.
api/src/soc_mgr.rs:174
↓ 318 callersMethodget
(&self, index: usize)
ureg/src/lib.rs:697
↓ 317 callersFunctionbytes_to_words_6
Converts a byte array to word arrays as used in the LMS types. Intended for use at compile-time or in tests / host utilities; not optimized for use in
lms-types/src/lib.rs:469
↓ 313 callersMethodas_bytes
(&self)
api/src/mailbox.rs:347
↓ 262 callersMethodas_bytes
Returns the byte representation of the packet's payload
runtime/src/packet.rs:75
↓ 241 callersMethodpopulate_chksum
Calculate and set the checksum for a response payload Takes into account the size override for variable-length payloads
api/src/mailbox.rs:475
↓ 210 callersMethodwrite
Write the string to UART # Arguments `str` - String to write to UART
drivers/src/uart.rs:37
↓ 199 callersMethodat
(&self, index: usize)
ureg/src/lib.rs:688
↓ 190 callersFunctionrun_rt_test
Run a test which boots ROM -> FMC -> test_bin. If test_bin_name is None, run the production runtime image.
runtime/tests/runtime_integration_tests/common.rs:323
↓ 179 callersMethodto_bytes
(&self)
image/types/src/lib.rs:420
↓ 171 callersMethodas_mut_bytes
(&mut self)
api/src/mailbox.rs:410
↓ 171 callersMethodmodify
(&self, f: impl FnOnce(TReg::WriteVal) -> TReg::WriteVal)
ureg/src/lib.rs:588
↓ 164 callersMethodlen
(&self)
common/eat/src/cbor.rs:77
↓ 164 callersMethodregs_mut
(&mut self)
hw/latest/registers/src/dv.rs:39
↓ 161 callersMethodstep_until
Execute until the result of `predicate` becomes true.
hw-model/src/lib.rs:869
↓ 154 callersMethodget_mut
(&mut self)
drivers/src/persistent.rs:589
↓ 150 callersMethodregs
(&self)
hw/latest/registers/src/dv.rs:30
↓ 148 callersMethodset
(&self, idx: u8, val: bool)
sw-emulator/lib/cpu/src/pic.rs:334
↓ 144 callersMethodpush
(&mut self, ch: u8)
hw-model/src/output.rs:108
↓ 140 callersMethodstep_until_boot_status
( &mut self, expected_status_u32: u32, ignore_intermediate_status: bool, )
hw-model/src/lib.rs:1009
↓ 135 callersMethodval
(&self)
systemrdl/src/bits.rs:34
↓ 128 callersMethodupdate
(&mut self, bytes: &[u8])
runtime/src/dpe_crypto.rs:350
↓ 124 callersMethodwrite
(&self, f: impl FnOnce(TReg::WriteVal) -> TReg::WriteVal)
ureg/src/lib.rs:506
↓ 121 callersFunctioncalc_checksum
Calculate the checksum 0 - (SUM(command code bytes) + SUM(request/response bytes))
api/src/checksum.rs:10
↓ 120 callersMethodlen
(&self)
sw-emulator/lib/periph/src/csrng.rs:561
↓ 118 callersFunctionbytes_to_words_8
Converts a byte array to word arrays as used in the LMS types. Intended for use at compile-time or in tests / host utilities; not optimized for use in
lms-types/src/lib.rs:487
↓ 110 callersMethodwrite
(&mut self, size: RvSize, addr: AxiAddr, val: RvData)
sw-emulator/lib/periph/src/dma/axi_root_bus.rs:282
↓ 109 callersMethodread
(&mut self, size: RvSize, addr: AxiAddr)
sw-emulator/lib/periph/src/dma/axi_root_bus.rs:245
↓ 108 callersFunctionbuild_firmware_rom
(id: &FwId<'static>)
builder/src/lib.rs:535
↓ 106 callersMethodwrite
Write data and wait for ACK (blocking).
hw-model/src/model_fpga_subsystem.rs:345
↓ 98 callersMethodget
(&self, idx: u8)
sw-emulator/lib/cpu/src/pic.rs:331
↓ 94 callersMethodstatus
(&self)
drivers/src/mailbox.rs:253
↓ 93 callersMethodfinalize
Finalize the digest operations
drivers/src/hmac.rs:693
↓ 91 callersFunctionbuild_and_sign_image
( fmc: &FwId<'static>, app: &FwId<'static>, opts: ImageOptions, )
builder/src/lib.rs:633
↓ 91 callersFunctionbuild_hw_model_and_image_bundle
( fuses: Fuses, image_options: ImageOptions, )
rom/dev/tests/rom_integration_tests/helpers.rs:207
↓ 84 callersMethodread
Receive data (blocking).
hw-model/src/model_fpga_subsystem.rs:297
↓ 82 callersMethoditer_mut
(&mut self)
sw-emulator/lib/bus/src/register_array.rs:49
↓ 79 callersMethodstep_until_ready_for_runtime
Step until the system is ready to receive runtime mailbox commands.
hw-model/src/lib.rs:893
↓ 78 callersMethodis_empty
(&self)
common/eat/src/cbor.rs:82
↓ 76 callersFunctionassert_fatal_fw_load
( hw: &mut DefaultHwModel, pqc_key_type: FwVerificationPqcKeyType, data: &[u8], err: CaliptraE
rom/dev/tests/rom_integration_tests/helpers.rs:175
↓ 71 callersMethodto_big_endian
(&mut self)
sw-emulator/lib/crypto/src/helpers.rs:19
↓ 70 callersMethodsoc_mbox
A register block that can be used to manipulate the mbox peripheral over the simulated SoC->Caliptra APB bus.
api/src/soc_mgr.rs:196
↓ 69 callersMethodlen
(self, val: u32)
hw/latest/registers/src/spi_host.rs:256
↓ 69 callersMethodset_device_lifecycle
(&mut self, val: DeviceLifecycle)
api/types/src/lib.rs:98
↓ 66 callersMethodadd
(&'a self, s: String)
systemrdl/src/string_arena.rs:16
↓ 66 callersMethodset_debug_locked
(&mut self, val: bool)
api/types/src/lib.rs:86
↓ 65 callersMethodcptra_flow_status
( &self, )
hw/latest/registers/src/soc_ifc.rs:254
↓ 65 callersMethodwrite
(&mut self, size: RvSize, addr: RvAddr, val: RvData)
sw-emulator/lib/bus/src/mem.rs:136
↓ 64 callersMethodexecute
This function executes the Known Answer Tests (aka KAT) for LMS.
kat/src/lms_kat.rs:27
↓ 63 callersMethodencode_int
Encode integer (automatically choose positive or negative)
common/eat/src/cbor.rs:155
↓ 63 callersFunctionexecute_dpe_cmd
( model: &mut DefaultHwModel, dpe_cmd: &mut Command, expected_result: DpeResult, )
runtime/tests/runtime_integration_tests/common.rs:381
↓ 63 callersFunctionread
Same as [`std::fs::read`] but with more informative errors.
sw-emulator/compliance-test/src/fs.rs:33
↓ 62 callersFunctionreport_boot_status
(val: u32)
drivers/src/soc_ifc.rs:28
↓ 62 callersMethodschedule_poll_in
Schedules a future call to [`Bus::poll()`] at `self.now() + time`, and returns a `ActionHandle` that can be used with [`Timer::cancel`] or [`Timer::fi
sw-emulator/lib/bus/src/clock.rs:108
↓ 61 callersMethodas_bytes_partial
(&self)
api/src/mailbox.rs:983
↓ 61 callersFunctioncfi_launder
Launder the value to prevent compiler optimization # Arguments `val` - Value to launder # Returns `T` - Same value
cfi/lib/src/cfi.rs:97
↓ 61 callersFunctionexecute
(env: &mut Drivers)
runtime/src/fips.rs:142
↓ 61 callersMethodto_little_endian
(&mut self)
sw-emulator/lib/crypto/src/helpers.rs:23
↓ 60 callersFunctionbit_range
(val: u16, msb: usize, lsb: usize)
sw-emulator/lib/cpu/src/instr/compression.rs:358
↓ 60 callersFunctionbuild_fw_image
(image_options: ImageOptions)
test/tests/fips_test_suite/fw_load.rs:46
↓ 59 callersMethodregs
(&self)
hw-model/src/xi3c/controller.rs:194
↓ 59 callersMethodupdate
Update the digest with data # Arguments `data` - Data to used to update the digest
drivers/src/hmac.rs:653
↓ 57 callersMethodcptra_boot_status
( &self, )
hw/latest/registers/src/soc_ifc.rs:238
↓ 57 callersFunctiondump_caliptra_error_codes
libcaliptra/examples/generic/test.c:234
↓ 56 callersMethodextend
(&mut self, data: &[u8], pcr_entry_id: PcrLogEntryId)
rom/dev/src/pcr.rs:44
↓ 55 callersMethodas_bytes_partial_mut
(&mut self)
api/src/mailbox.rs:991
↓ 52 callersMethodctrl
(&self)
hw/latest/registers/src/doe.rs:94
↓ 52 callersFunctionwrite
(path: P, contents: C)
sw-emulator/compliance-test/src/fs.rs:27
↓ 50 callersFunctionrom_from_env
()
rom/dev/tests/rom_integration_tests/helpers.rs:192
↓ 50 callersMethodsign
( &mut self, priv_key: Ecc384PrivKeyIn, pub_key: &Ecc384PubKey, data: &Ecc384S
drivers/src/ecc384.rs:617
↓ 50 callersMethodstatus
(drivers: &mut Drivers, resp: &mut [u8])
runtime/src/cryptographic_mailbox.rs:413
↓ 49 callersMethodincrement_and_process_timer_actions
( &self, delta: u64, bus: &mut impl Bus, )
sw-emulator/lib/bus/src/clock.rs:167
↓ 49 callersMethodtake
Take at most `limit` characters from the output
hw-model/src/output.rs:341
↓ 48 callersFunctionhandle_fatal_error
(code: u32)
common/src/error_handler.rs:8
↓ 48 callersMethodpeek
(&mut self, lookahead: usize)
systemrdl/src/token_iter.rs:112
↓ 47 callersFunctionbytes_from_words_le
(arr: &A)
sw-emulator/lib/periph/src/helpers.rs:95
↓ 47 callersMethodwrite
Write data of specified size to given address
sw-emulator/lib/periph/src/soc_reg.rs:446
↓ 46 callersMethodcptra_fw_extended_error_info
( &self, )
hw/latest/registers/src/soc_ifc.rs:218
↓ 46 callersFunctionfw_load_error_flow
( fw_image: Option<ImageBundle>, fuses: Option<Fuses>, exp_error_code: u32, pqc_key_type: FwVe
test/tests/fips_test_suite/fw_load.rs:144
↓ 46 callersMethodsubsystem_mode
(&self)
drivers/src/soc_ifc.rs:561
↓ 45 callersFunctionassert_error
( model: &mut DefaultHwModel, expected_err: CaliptraError, actual_err: ModelError, )
runtime/tests/runtime_integration_tests/common.rs:753
↓ 45 callersMethodnext
(&mut self)
systemrdl/src/token_iter.rs:119
↓ 44 callersMethodstep
Called once every clock cycle by the emulator so the BMC can do work
hw-model/src/bmc.rs:44
↓ 43 callersMethodas_str
Access the contents of the log without modifying it.
sw-emulator/lib/bus/src/testing/log.rs:53
↓ 42 callersMethodfinish
(self)
runtime/src/dpe_crypto.rs:356
↓ 42 callersMethodfuse_bank
(&self)
drivers/src/soc_ifc.rs:304
↓ 41 callersMethodwrite_csr_machine
Write the specified Configuration status register as if we were in M mode # Arguments `reg` - Configuration status register to write `val` - Value
sw-emulator/lib/cpu/src/cpu.rs:508
↓ 40 callersMethodencode_bytes
Major type 2: Byte string
common/eat/src/cbor.rs:164
↓ 40 callersFunctionpack_and_execute_command
* pack_and_execute_command * * HELPER - Create the caliptra buffer structs and call caliptra_mailbox_send * * @param[in] parcel struct with tx and
libcaliptra/src/caliptra_api.c:759
↓ 40 callersMethodregs
(&self)
hw-model/src/model_fpga_subsystem.rs:192
↓ 39 callersMethodoffset
(&self)
sw-emulator/lib/cpu/src/instr/compression.rs:628
next →1–100 of 8,212, ranked by callers