Home
last modified time | relevance | path

Searched refs:cmdtbl (Results 1 – 1 of 1) sorted by relevance

/DragonOS-0.1.8/kernel/src/driver/disk/ahci/
Dahcidisk.rs122 let cmdtbl = unsafe { in read_at() localVariable
131 write_bytes(cmdtbl, 0, 1); in read_at()
136 volatile_write!(cmdtbl.prdt_entry[i].dba, virt_2_phys(buf_ptr) as u64); in read_at()
137 … volatile_write_bit!(cmdtbl.prdt_entry[i].dbc, (1 << 22) - 1, 8 * 1024 - 1); // 数据长度 prdt_entry.dbc in read_at()
138 volatile_set_bit!(cmdtbl.prdt_entry[i].dbc, 1 << 31, true); // 允许中断 prdt_entry.i in read_at()
145 volatile_write!(cmdtbl.prdt_entry[las].dba, virt_2_phys(buf_ptr) as u64); in read_at()
147 cmdtbl.prdt_entry[las].dbc, in read_at()
151 volatile_set_bit!(cmdtbl.prdt_entry[las].dbc, 1 << 31, true); // 允许中断 in read_at()
155 ((&mut cmdtbl.cfis) as *mut [u8] as *mut usize as *mut FisRegH2D) in read_at()
283 let cmdtbl = unsafe { in write_at() localVariable
[all …]