MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / shift_and_mask

Function shift_and_mask

pci/src/bus.rs:510–512  ·  view source on GitHub ↗
(value: u32, offset: usize, mask: u32)

Source from the content-addressed store, hash-verified

508}
509
510fn shift_and_mask(value: u32, offset: usize, mask: u32) -> usize {
511 ((value >> offset) & mask) as usize
512}
513
514// Parse the MMIO address offset to a (bus, device, function, register) tuple.
515// See section 7.2.2 PCI Express Enhanced Configuration Access Mechanism (ECAM)

Callers 2

parse_io_config_addressFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected