Lines Matching refs:i

140         for i in 0..((volatile_read!(cmdheader.prdtl) - 1) as usize) {  in read_at()
141 volatile_write!(cmdtbl.prdt_entry[i].dba, virt_2_phys(buf_ptr) as u64); in read_at()
142 cmdtbl.prdt_entry[i].dbc = 8 * 1024 - 1; in read_at()
143 volatile_set_bit!(cmdtbl.prdt_entry[i].dbc, 1 << 31, true); // 允许中断 prdt_entry.i in read_at()
296 for i in 0..((volatile_read!(cmdheader.prdtl) - 1) as usize) { in write_at()
297 volatile_write!(cmdtbl.prdt_entry[i].dba, virt_2_phys(buf_ptr) as u64); in write_at()
298 volatile_write_bit!(cmdtbl.prdt_entry[i].dbc, (1 << 22) - 1, 8 * 1024 - 1); // 数据长度 in write_at()
299 volatile_set_bit!(cmdtbl.prdt_entry[i].dbc, 1 << 31, true); // 允许中断 in write_at()
380 for i in 0..4 { in new()
382 if table.dpte[i].part_type != 0 { in new()
385 table.dpte[i].starting_sector() as u64, in new()
386 table.dpte[i].starting_lba as u64, in new()
387 table.dpte[i].total_sectors as u64, in new()
389 i as u16, in new()
412 for i in 0..4 { in read_mbr_table()
413 kdebug!("infomation of partition {}:\n", i); in read_mbr_table()
415 table.dpte[i].flags = cursor.read_u8()?; in read_mbr_table()
416 table.dpte[i].starting_head = cursor.read_u8()?; in read_mbr_table()
417 table.dpte[i].starting_sector_cylinder = cursor.read_u16()?; in read_mbr_table()
418 table.dpte[i].part_type = cursor.read_u8()?; in read_mbr_table()
419 table.dpte[i].ending_head = cursor.read_u8()?; in read_mbr_table()
420 table.dpte[i].ending_sector_cylingder = cursor.read_u16()?; in read_mbr_table()
421 table.dpte[i].starting_lba = cursor.read_u32()?; in read_mbr_table()
422 table.dpte[i].total_sectors = cursor.read_u32()?; in read_mbr_table()
424 kdebug!("dpte[i] = {:?}", table.dpte[i]); in read_mbr_table()