Home
last modified time | relevance | path

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

/DragonOS/kernel/src/driver/input/ps2_mouse/
H A Dps_mouse_device.rs289 let packet = self.read_data_port()?; in process_packet() localVariable
291 guard.buf.push(packet); // 更新缓冲区 in process_packet()
294 let flags: MouseFlags = MouseFlags::from_bits_truncate(packet); in process_packet()
303 guard.current_state.x = self.get_x_movement(packet, flags); in process_packet()
309 guard.current_state.y = self.get_y_movement(packet, flags); in process_packet()
325 fn get_x_movement(&self, packet: u8, flags: MouseFlags) -> i16 { in get_x_movement()
327 return self.sign_extend(packet); in get_x_movement()
329 return packet as i16; in get_x_movement()
333 fn get_y_movement(&self, packet: u8, flags: MouseFlags) -> i16 { in get_y_movement()
335 return self.sign_extend(packet); in get_y_movement()
[all …]
/DragonOS/kernel/crates/rbpf/
H A DREADME.md104 performed on a memory area representing the packet data. However, in the Linux
107 metadata about the packet—including memory addresses of the beginning and of
108 the end of the packet data area. So the program first loads those pointers from
109 the `sk_buff`, and then can access the packet data.
118 start and the end of the packet data memory area.
125 of packet data in the buffer. On calling the function that runs the program
128 packet data the program is called upon.
130 * `struct EbpfVmRaw` is for programs that want to run directly on packet data.
132 address of the packet data in its first register. This is the behavior of
168 the memory area of packet data are to be stored in the internal metadata buffer
[all …]
/DragonOS/kernel/src/net/socket/
H A Dinet.rs117 let packet = wire::Ipv4Packet::new_unchecked(buf); in read() localVariable
121 addr: wire::IpAddress::Ipv4(packet.src_addr()), in read()
176 let mut packet: wire::Ipv4Packet<&mut Vec<u8>> = in write() localVariable
180 packet.set_version(4); in write()
181 packet.set_header_len(20); in write()
182 packet.set_total_len((20 + len) as u16); in write()
183 packet.set_src_addr(ipv4_src_addr); in write()
184 packet.set_dst_addr(ipv4_dst); in write()
187 packet.set_next_header(socket.ip_protocol()); in write()
190 let payload: &mut [u8] = packet.payload_mut(); in write()
[all …]
/DragonOS/kernel/src/driver/tty/pty/
H A Dmod.rs199 if !ctrl.packet { in pty_set_packet_mode()
202 ctrl.packet = true; in pty_set_packet_mode()
205 ctrl.packet = false; in pty_set_packet_mode()
213 user_writer.copy_one_to_user(&tty.contorl_info_irqsave().packet, 0)?; in pty_get_packet_mode()
H A Dunix98pty.rs116 if link.contorl_info_irqsave().packet { in set_termios()
/DragonOS/kernel/crates/rbpf/tests/
H A Dmisc.rs136 let packet = &mut [ in test_vm_block_port() localVariable
153 let res = vm.execute_program(packet).unwrap(); in test_vm_block_port()
202 let packet = &mut [ in test_jit_block_port() localVariable
221 let res = vm.execute_program_jit(packet).unwrap(); in test_jit_block_port()
/DragonOS/kernel/src/driver/net/e1000e/
H A De1000e.rs457 pub fn e1000e_transmit(&mut self, packet: E1000EBuffer) { in e1000e_transmit()
462 self.trans_buffers[index] = packet; in e1000e_transmit()
466 desc.addr = packet.as_paddr() as u64; in e1000e_transmit()
467 desc.len = packet.len() as u16; in e1000e_transmit()
/DragonOS/kernel/src/driver/tty/tty_ldisc/
H A Dntty.rs1529 if link.core().contorl_info_irqsave().packet { in packet_mode_flush()
1637 let packet = core.contorl_info_irqsave().packet; in read() localVariable
1644 if packet { in read()
1714 if packet && offset == 0 { in read()
2065 if core.contorl_info_irqsave().packet { in poll()
/DragonOS/kernel/src/driver/tty/
H A Dtty_core.rs290 pub packet: bool, field