Lines Matching refs:usize

30 static mut __CPU_PENDING: Option<Box<[VecStatus; MAX_CPU_NUM as usize]>> = None;
42 __CPU_PENDING = Some(Box::new([VecStatus::default(); MAX_CPU_NUM as usize])); in softirq_init()
45 cpu_pending[i as usize] = VecStatus::default(); in softirq_init()
60 fn cpu_pending(cpu_id: usize) -> &'static mut VecStatus { in cpu_pending()
102 table: RwLock<[Option<Arc<dyn SoftirqVec>>; MAX_SOFTIRQ_NUM as usize]>,
106 let mut data: [MaybeUninit<Option<Arc<dyn SoftirqVec>>>; MAX_SOFTIRQ_NUM as usize] = in new()
110 data[i as usize] = MaybeUninit::new(None); in new()
113 let data: [Option<Arc<dyn SoftirqVec>>; MAX_SOFTIRQ_NUM as usize] = unsafe { in new()
114 mem::transmute::<_, [Option<Arc<dyn SoftirqVec>>; MAX_SOFTIRQ_NUM as usize]>(data) in new()
137 if table_guard[softirq_num as usize].is_some() { in register_softirq()
142 table_guard[softirq_num as usize] = Some(handler); in register_softirq()
160 table_guard[softirq_num as usize] = None; in unregister_softirq()
166 cpu_pending(smp_get_processor_id() as usize).set(VecStatus::from(softirq_num), false); in unregister_softirq()
178 let pending = cpu_pending(cpu_id as usize).bits; in do_softirq()
179 cpu_pending(cpu_id as usize).bits = 0; in do_softirq()
190 let softirq_func = table_guard[i as usize].clone(); in do_softirq()
213 if cpu_pending(cpu_id as usize).is_empty() { in do_softirq()
229 let processor_id = smp_get_processor_id() as usize; in raise_softirq()
240 cpu_pending(smp_get_processor_id() as usize).remove(VecStatus::from(softirq_num)); in clear_softirq_pending()