Lines Matching refs:buffer
92 buffer: NonNull<u8>, field
106 buffer: NonNull::dangling(), in new()
113 buffer: vaddr, in new()
123 return self.buffer; in as_addr()
129 return self.buffer.as_ptr() as u64; in as_addr_u64()
140 return unsafe { from_raw_parts(self.buffer.as_ptr(), self.length) }; in as_slice()
145 return unsafe { from_raw_parts_mut(self.buffer.as_ptr(), self.length) }; in as_mut_slice()
158 unsafe { dma_dealloc(self.paddr, self.buffer, E1000E_DMA_PAGES) }; in free_buffer()
321 let buffer = E1000EBuffer::new(PAGE_SIZE); in new() localVariable
322 ring.addr = buffer.as_paddr() as u64; in new()
324 recv_buffers.push(buffer); in new()
328 let buffer = E1000EBuffer::new(PAGE_SIZE); in new() localVariable
329 ring.addr = buffer.as_paddr() as u64; in new()
331 trans_buffers.push(buffer); in new()
436 let mut buffer = self.recv_buffers[index]; in e1000e_receive() localVariable
440 buffer.set_length(desc.len as usize); in e1000e_receive()
444 return Some(buffer); in e1000e_receive()
461 let buffer = self.trans_buffers[index]; in e1000e_transmit() localVariable
464 buffer.free_buffer(); in e1000e_transmit()
519 Some(buffer) => { in e1000e_receive2()
520 self.napi_buffers[self.napi_buffer_tail] = buffer; in e1000e_receive2()