Lines Matching refs:usize
33 struct Version(usize);
119 const MAX_EC_SIZE: usize = 30;
120 const MAX_BLK_SIZE: usize = 123;
221 fn max_data(&self) -> usize { in max_data() argument
225 fn ec_size(&self) -> usize { in ec_size() argument
229 fn g1_blocks(&self) -> usize { in g1_blocks() argument
230 VPARAM[self.0 - 1].1 as usize in g1_blocks()
233 fn g2_blocks(&self) -> usize { in g2_blocks() argument
234 VPARAM[self.0 - 1].2 as usize in g2_blocks()
237 fn g1_blk_size(&self) -> usize { in g1_blk_size() argument
238 VPARAM[self.0 - 1].3 as usize in g1_blk_size()
300 const NUM_CHARS_BITS: [usize; 4] = [0, 4, 7, 10];
303 const BYTES_TO_DIGITS: [usize; 8] = [0, 3, 5, 8, 10, 13, 15, 17];
311 fn get_header(&self) -> (u16, usize) { in get_header() argument
319 fn length_bits_count(&self, version: Version) -> usize { in length_bits_count() argument
335 fn character_count(&self) -> usize { in character_count() argument
346 fn get_length_field(&self, version: Version) -> (u16, usize) { in get_length_field() argument
353 fn total_size_bits(&self, version: Version) -> usize { in total_size_bits() argument
375 const MAX_FIFO_SIZE: usize = 19;
381 len: usize,
405 fn push(&mut self, data: u64, len: usize) { in push() argument
418 fn pop3(&mut self) -> Option<(u16, usize)> { in pop3() argument
437 offset: usize,
442 type Item = (u16, usize);
474 ec_size: usize,
475 g1_blocks: usize,
476 g2_blocks: usize,
477 g1_blk_size: usize,
478 g2_blk_size: usize,
513 fn push(&mut self, offset: &mut usize, bits: (u16, usize)) { in push() argument
544 let mut offset: usize = 0; in add_segments()
561 fn error_code_for_blocks(&mut self, offset: usize, size: usize, ec_offset: usize) { in error_code_for_blocks() argument
566 let lead_coeff = tmp[i] as usize; in error_code_for_blocks()
570 let log_lead_coeff = usize::from(LOG_TABLE[lead_coeff]); in error_code_for_blocks()
572 *u ^= EXP_TABLE[(usize::from(v) + log_lead_coeff) % 255]; in error_code_for_blocks()
611 offset: usize,
688 let off = y as usize * self.stride as usize + x as usize / 8; in set()
696 let off = y as usize * self.stride as usize + x as usize / 8; in xor()
944 data_len: usize, in drm_panic_qr_generate() argument
945 data_size: usize, in drm_panic_qr_generate() argument
947 tmp_size: usize, in drm_panic_qr_generate() argument
997 pub unsafe extern "C" fn drm_panic_qr_max_data_size(version: u8, url_len: usize) -> usize { in drm_panic_qr_max_data_size() argument
1002 let max_data = Version(version as usize).max_data(); in drm_panic_qr_max_data_size()