Lines Matching refs:cmdtbl
122 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
293 write_bytes(cmdtbl, 0, 1); in write_at()
298 volatile_write!(cmdtbl.prdt_entry[i].dba, virt_2_phys(buf_ptr) as u64); in write_at()
299 volatile_write_bit!(cmdtbl.prdt_entry[i].dbc, (1 << 22) - 1, 8 * 1024 - 1); // 数据长度 in write_at()
300 volatile_set_bit!(cmdtbl.prdt_entry[i].dbc, 1 << 31, true); // 允许中断 in write_at()
307 volatile_write!(cmdtbl.prdt_entry[las].dba, virt_2_phys(buf_ptr) as u64); in write_at()
308 volatile_set_bit!(cmdtbl.prdt_entry[las].dbc, 1 << 31, true); // 允许中断 in write_at()
310 cmdtbl.prdt_entry[las].dbc, in write_at()
317 ((&mut cmdtbl.cfis) as *mut [u8] as *mut usize as *mut FisRegH2D) in write_at()