Searched refs:packet (Results 1 – 3 of 3) sorted by relevance
281 int ps2_mouse_get_packet(void *packet) in ps2_mouse_get_packet() argument294 ((struct ps2_mouse_packet_3bytes *)packet)->byte0 = (unsigned char)code; in ps2_mouse_get_packet()300 ((struct ps2_mouse_packet_3bytes *)packet)->movement_x = (char)code; in ps2_mouse_get_packet()306 ((struct ps2_mouse_packet_3bytes *)packet)->movement_y = (char)code; in ps2_mouse_get_packet()319 ((struct ps2_mouse_packet_4bytes *)packet)->byte0 = (unsigned char)code; in ps2_mouse_get_packet()325 ((struct ps2_mouse_packet_4bytes *)packet)->movement_x = (char)code; in ps2_mouse_get_packet()331 ((struct ps2_mouse_packet_4bytes *)packet)->movement_y = (char)code; in ps2_mouse_get_packet()337 ((struct ps2_mouse_packet_4bytes *)packet)->byte3 = (char)code; in ps2_mouse_get_packet()
107 int ps2_mouse_get_packet(void *packet);
292 let packet = wire::Ipv4Packet::new_unchecked(buf); in read() localVariable296 addr: wire::IpAddress::Ipv4(packet.src_addr()), in read()351 let mut packet: wire::Ipv4Packet<&mut Vec<u8>> = in write() localVariable355 packet.set_version(4); in write()356 packet.set_header_len(20); in write()357 packet.set_total_len((20 + len) as u16); in write()358 packet.set_src_addr(ipv4_src_addr); in write()359 packet.set_dst_addr(ipv4_dst); in write()362 packet.set_next_header(socket.ip_protocol().into()); in write()365 let payload: &mut [u8] = packet.payload_mut(); in write()[all …]