Lines Matching refs:usize

60     InvalidCpuCount(usize),
83 fn read_kernel_range_from(fdt: &Fdt) -> libfdt::Result<Option<Range<usize>>> { in read_kernel_range_from() argument
89 let addr = addr as usize; in read_kernel_range_from()
90 let size = size as usize; in read_kernel_range_from()
101 fn read_initrd_range_from(fdt: &Fdt) -> libfdt::Result<Option<Range<usize>>> { in read_initrd_range_from() argument
107 return Ok(Some((start as usize)..(end as usize))); in read_initrd_range_from()
114 fn patch_initrd_range(fdt: &mut Fdt, initrd_range: &Range<usize>) -> libfdt::Result<()> { in patch_initrd_range()
147 fn read_and_validate_memory_range(fdt: &Fdt) -> Result<Range<usize>, RebootReason> { in read_and_validate_memory_range() argument
181 fn patch_memory_range(fdt: &mut Fdt, memory_range: &Range<usize>) -> libfdt::Result<()> { in patch_memory_range()
196 const MAX_OPPTABLES: usize = 20;
219 cores: [Option<usize>; ClusterTopology::MAX_CORES_PER_CLUSTER],
223 const MAX_CORES_PER_CLUSTER: usize = 10;
233 const MAX_CLUSTERS: usize = 3;
236 fn read_cpu_map_from(fdt: &Fdt) -> libfdt::Result<Option<BTreeMap<Phandle, (usize, usize)>>> { in read_cpu_map_from() argument
374 n: usize, in get_nth_compatible() argument
516 const IRQ_MASK_CELLS: usize = 4;
517 const IRQ_MAP_CELLS: usize = 10;
518 const MAX_IRQS: usize = 16;
526 struct CellChunkIterator<'a, const N: usize> {
530 impl<'a, const N: usize> CellChunkIterator<'a, N> {
536 impl<'a, const N: usize> Iterator for CellChunkIterator<'a, N> {
577 fn validate_pci_info(pci_info: &PciInfo, memory_range: &Range<usize>) -> Result<(), RebootReason> { in validate_pci_info()
592 memory_range: &Range<usize>, in validate_pci_addr_range() argument
652 fn validate_pci_irq_map(irq_map: &PciIrqMap, idx: usize) -> Result<(), RebootReason> { in validate_pci_irq_map()
653 const PCI_DEVICE_IDX: usize = 11; in validate_pci_irq_map()
744 const MAX_SERIALS: usize = 4;
780 memory: &Range<usize>, in validate_swiotlb_info() argument
832 fn patch_gic(fdt: &mut Fdt, num_cpus: usize) -> libfdt::Result<()> { in patch_gic()
856 fn patch_timer(fdt: &mut Fdt, num_cpus: usize) -> libfdt::Result<()> { in patch_timer()
857 const NUM_INTERRUPTS: usize = 4; in patch_timer()
858 const CELLS_PER_INTERRUPT: usize = 3; in patch_timer()
914 pub kernel_range: Option<Range<usize>>,
915 pub initrd_range: Option<Range<usize>>,
916 pub memory_range: Range<usize>,
930 const MAX_CPUS: usize = 16;
932 const fn gic_patched_size(num_cpus: usize) -> Option<usize> { in gic_patched_size() argument
933 const GIC_REDIST_SIZE_PER_CPU: usize = 32 * SIZE_4KB; in gic_patched_size()
1206 patch_dice_node(fdt, bcc.as_ptr() as usize, bcc.len())?; in modify_for_next_stage()
1225 fn patch_dice_node(fdt: &mut Fdt, addr: usize, size: usize) -> libfdt::Result<()> { in patch_dice_node() argument