Home
last modified time | relevance | path

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

123

/qemu/net/
H A Dqueue.c87 g_free(packet); in qemu_del_net_queue()
100 NetPacket *packet; in qemu_net_queue_append() local
107 packet->flags = flags; in qemu_net_queue_append()
108 packet->size = size; in qemu_net_queue_append()
123 NetPacket *packet; in qemu_net_queue_append_iov() local
137 packet->flags = flags; in qemu_net_queue_append_iov()
138 packet->size = 0; in qemu_net_queue_append_iov()
143 memcpy(packet->data + packet->size, iov[i].iov_base, len); in qemu_net_queue_append_iov()
266 packet->sent_cb(packet->sender, 0); in qemu_net_queue_purge()
298 packet->sent_cb(packet->sender, ret); in qemu_net_queue_flush()
[all …]
H A Dvmnet-common.m45 return "packet size is larger than MTU";
49 return "packet count exceeds limit";
76 struct vmpktdesc packet;
82 warn_report("vmnet: packet is too big, %zu > %" PRIu64,
83 packet.vm_pkt_size,
91 packet.vm_pkt_iovcnt = 1;
92 packet.vm_flags = 0;
93 packet.vm_pkt_size = size;
94 packet.vm_pkt_iov = &iov;
97 if_status = vmnet_write(s->vmnet_if, &packet, &pkt_cnt);
[all …]
/qemu/hw/usb/
H A Dpcap.c115 header.orig_len = packet->length + sizeof(*packet); in do_usb_pcap_header()
117 fwrite(packet, sizeof(*packet), 1, fp); in do_usb_pcap_header()
146 packet.flag_data = '<'; in do_usb_pcap_ctrl()
147 packet.length = 0; in do_usb_pcap_ctrl()
151 packet.flag_data = '>'; in do_usb_pcap_ctrl()
152 packet.length = 0; in do_usb_pcap_ctrl()
156 packet.len_cap = data_len + sizeof(packet); in do_usb_pcap_ctrl()
198 packet.flag_data = '<'; in do_usb_pcap_data()
199 packet.length = 0; in do_usb_pcap_data()
204 packet.length = 0; in do_usb_pcap_data()
[all …]
H A Du2f-passthru.c100 return *((uint32_t *)packet); in packet_get_cid()
103 static inline bool packet_is_init(const void *packet) in packet_is_init() argument
105 return ((uint8_t *)packet)[4] & (1 << 7); in packet_is_init()
265 cid = packet_get_cid(packet); in u2f_passthru_recv_from_host()
268 if (!packet_is_init(packet)) { in u2f_passthru_recv_from_host()
282 if (packet_is_init(packet)) { in u2f_passthru_recv_from_host()
302 u2f_send_to_guest(&key->base, packet); in u2f_passthru_recv_from_host()
309 uint8_t packet[2 * U2FHID_PACKET_SIZE]; in u2f_passthru_read() local
317 ret = read(key->hidraw_fd, packet, sizeof(packet)); in u2f_passthru_read()
329 u2f_passthru_recv_from_host(key, packet); in u2f_passthru_read()
[all …]
H A Ddev-storage.c182 USBPacket *p = s->packet; in usb_msd_packet_complete()
190 s->packet = NULL; in usb_msd_packet_complete()
198 if (s->packet) { in usb_msd_fatal_error()
245 USBPacket *p = s->packet; in usb_msd_transfer_data()
256 p = s->packet; in usb_msd_transfer_data()
267 USBPacket *p = s->packet; in usb_msd_command_complete()
276 if (s->packet) { in usb_msd_command_complete()
334 if (s->packet) { in usb_msd_handle_reset()
391 assert(s->packet == p); in usb_msd_cancel_io()
392 s->packet = NULL; in usb_msd_cancel_io()
[all …]
H A Dhcd-dwc2.c248 p = &s->packet[chan]; in dwc2_handle_packet()
282 usb_packet_init(&p->packet); in dwc2_handle_packet()
287 usb_handle_packet(dev, &p->packet); in dwc2_handle_packet()
292 stsidx = -p->packet.status; in dwc2_handle_packet()
294 actual = p->packet.actual_length; in dwc2_handle_packet()
375 usb_packet_cleanup(&p->packet); in dwc2_handle_packet()
508 p = container_of(packet, DWC2Packet, packet); in dwc2_async_packet_complete()
516 usb_cancel_packet(packet); in dwc2_async_packet_complete()
517 usb_packet_cleanup(packet); in dwc2_async_packet_complete()
587 p = &s->packet[chan]; in dwc2_work_bh()
[all …]
H A Du2f.c197 uint8_t packet[U2FHID_PACKET_SIZE]; in u2f_key_recv_from_guest() local
203 usb_packet_copy(p, packet, p->iov.size); in u2f_key_recv_from_guest()
204 kc->recv_from_guest(key, packet); in u2f_key_recv_from_guest()
208 const uint8_t packet[U2FHID_PACKET_SIZE]) in u2f_pending_in_add()
220 memcpy(key->pending_in[index], packet, U2FHID_PACKET_SIZE); in u2f_pending_in_add()
268 const uint8_t packet[U2FHID_PACKET_SIZE]) in u2f_send_to_guest()
270 u2f_pending_in_add(key, packet); in u2f_send_to_guest()
H A Dxen-usb.c82 USBPacket packet; member
226 USBPacket *packet = &usbback_req->packet; in usbback_init_packet() local
242 usb_packet_setup(packet, pid, ep, 0, 1, sok, true); in usbback_init_packet()
262 packet->parameter, in usbback_init_packet()
294 if (usbback_req->packet.iov.iov) { in usbback_do_response()
295 qemu_iovec_destroy(&usbback_req->packet.iov); in usbback_do_response()
361 USBPacket *packet = &usbback_req->packet; in usbback_packet_complete() local
366 status = usbback_xlat_status(packet->status); in usbback_packet_complete()
385 usb_cancel_packet(&usbback_req->packet); in usbback_cancel_req()
575 if (usbback_req->packet.status != USB_RET_ASYNC) { in usbback_dispatch()
[all …]
H A Du2f-emulated.c112 const uint8_t packet[U2FHID_PACKET_SIZE]) in u2f_pending_out_add()
124 memcpy(&key->pending_out[index], packet, U2FHID_PACKET_SIZE); in u2f_pending_out_add()
143 const uint8_t packet[U2FHID_PACKET_SIZE]) in u2f_emulated_recv_from_guest()
148 u2f_pending_out_add(key, packet); in u2f_emulated_recv_from_guest()
159 uint8_t packet[U2FHID_PACKET_SIZE]; in u2f_emulated_thread() local
181 memcpy(packet, packet_out, U2FHID_PACKET_SIZE); in u2f_emulated_thread()
185 u2f_emu_vdev_send(key->vdev, U2F_EMU_USB, packet, in u2f_emulated_thread()
H A Dhcd-uhci.c77 USBPacket packet; member
188 usb_packet_init(&async->packet); in uhci_async_alloc()
197 usb_packet_cleanup(&async->packet); in uhci_async_free()
224 usb_cancel_packet(&async->packet); in uhci_async_cancel()
688 if (async->packet.status != USB_RET_SUCCESS) { in uhci_complete_td()
693 len = async->packet.actual_length; in uhci_complete_td()
839 usb_handle_packet(q->ep->dev, &async->packet); in uhci_handle_td()
840 if (async->packet.status == USB_RET_SUCCESS) { in uhci_handle_td()
841 async->packet.actual_length = max_len; in uhci_handle_td()
853 if (async->packet.status == USB_RET_ASYNC) { in uhci_handle_td()
[all …]
H A Dhcd-ehci.c512 usb_packet_init(&p->packet); in ehci_alloc_packet()
527 usb_cancel_packet(&p->packet); in ehci_free_packet()
541 usb_packet_cleanup(&p->packet); in ehci_free_packet()
1249 p = container_of(packet, EHCIPacket, packet); in ehci_async_complete_packet()
1280 p->packet.status, p->packet.actual_length); in ehci_execute_complete()
1282 switch (p->packet.status) { in ehci_execute_complete()
1311 tbytes -= p->packet.actual_length; in ehci_execute_complete()
1326 usb_packet_unmap(&p->packet, &p->sgl); in ehci_execute_complete()
1389 p->qtdaddr, p->pid, p->packet.iov.size, endp, p->packet.status, in ehci_execute()
1390 p->packet.actual_length); in ehci_execute()
[all …]
H A Du2f.h49 const uint8_t packet[U2FHID_PACKET_SIZE]);
74 const uint8_t packet[U2FHID_PACKET_SIZE]);
H A Dhcd-xhci.c239 USBPacket packet; member
1175 usb_packet_init(&xfer->packet); in xhci_ep_alloc_xfer()
1605 if (xfer->packet.ep) { in xhci_setup_packet()
1606 ep = xfer->packet.ep; in xhci_setup_packet()
1658 switch (xfer->packet.status) { in xhci_try_complete_packet()
1677 xfer->packet.status); in xhci_try_complete_packet()
1731 usb_handle_packet(xfer->packet.ep->dev, &xfer->packet); in xhci_fire_ctl_transfer()
1831 usb_handle_packet(xfer->packet.ep->dev, &xfer->packet); in xhci_submit()
1916 usb_handle_packet(xfer->packet.ep->dev, &xfer->packet); in xhci_kick_epctx()
1924 usb_handle_packet(xfer->packet.ep->dev, &xfer->packet); in xhci_kick_epctx()
[all …]
/qemu/target/hexagon/
H A Ddecode.c107 tmpinsn = packet->insn[i]; in decode_send_insn_to()
108 packet->insn[i] = packet->insn[i + direction]; in decode_send_insn_to()
109 packet->insn[i + direction] = tmpinsn; in decode_send_insn_to()
115 decode_fill_newvalue_regno(Packet *packet) in decode_fill_newvalue_regno() argument
119 for (i = 1; i < packet->num_insns; i++) { in decode_fill_newvalue_regno()
155 packet->insn[def_idx].slot; in decode_fill_newvalue_regno()
277 int last_insn = packet->num_insns - 1; in decode_shuffle_for_execution()
391 for (i = 0; i < packet->num_insns; i++) { in decode_apply_extenders()
394 apply_extender(packet, i + 1, packet->insn[i].immed[0]); in decode_apply_extenders()
408 packet->insn[j] = packet->insn[j + 1]; in decode_remove_extenders()
[all …]
H A DREADME22 This has all the instruction and packet semantics
101 when the packet commits (see "Packet Semantics" below).
186 the packet, and we mark the implicit writes. The analysis determines if the packet
226 gen_start_packet - initialize the data structures for packet semantics
228 decode_and_translate_packet - disassemble a packet and generate code
247 For example, this packet performs a swap of registers r0 and r1
259 track what needs to be done during packet commit. Here are the relevant
278 future_VRegs Registers to be stored during packet commit
281 future_QRegs Registers to be stored during packet commit
309 At the start of execution of a packet for a given PC
[all …]
/qemu/docs/
H A Dcolo-proxy.txt28 packet and drop the queued secondary packet.
69 1.Guest receive packet route:
81 If receive packet is TCP packet,we will adjust ack
85 2.Guest send packet route:
96 If packet same,send queued primary packet and clear
97 queued secondary packet, Otherwise send primary packet
105 Send the packet.
110 If the packet is TCP packet,we will adjust seq
116 Forward packet to primary.
127 and redirect indev's packet to filter.
[all …]
/qemu/tests/qtest/
H A De1000e-test.c39 static const struct eth_header packet = { variable
53 memwrite(data, &packet, sizeof(packet)); in e1000e_send_verify()
79 g_assert_false(memcmp(buffer, &packet, sizeof(packet))); in e1000e_send_verify()
89 struct eth_header test_iov = packet; in e1000e_receive_verify()
90 int len = htonl(sizeof(packet)); in e1000e_receive_verify()
97 .iov_len = sizeof(packet), in e1000e_receive_verify()
105 ret = iov_send(test_sockets[0], iov, 2, 0, sizeof(len) + sizeof(packet)); in e1000e_receive_verify()
106 g_assert_cmpint(ret, == , sizeof(packet) + sizeof(len)); in e1000e_receive_verify()
127 g_assert_false(memcmp(buffer, &packet, sizeof(packet))); in e1000e_receive_verify()
H A Digb-test.c43 static const struct eth_header packet = { variable
57 memwrite(data, &packet, sizeof(packet)); in igb_send_verify()
82 g_assert_false(memcmp(buffer, &packet, sizeof(packet))); in igb_send_verify()
92 struct eth_header test_iov = packet; in igb_receive_verify()
93 int len = htonl(sizeof(packet)); in igb_receive_verify()
100 .iov_len = sizeof(packet), in igb_receive_verify()
108 ret = iov_send(test_sockets[0], iov, 2, 0, sizeof(len) + sizeof(packet)); in igb_receive_verify()
109 g_assert_cmpint(ret, == , sizeof(packet) + sizeof(len)); in igb_receive_verify()
130 g_assert_false(memcmp(buffer, &packet, sizeof(packet))); in igb_receive_verify()
/qemu/migration/
H A Dmultifd.c401 MultiFDPacket_t *packet = p->packet; in multifd_send_fill_packet() local
437 MultiFDPacket_t *packet = p->packet; in multifd_recv_unfill_packet() local
440 packet->magic = be32_to_cpu(packet->magic); in multifd_recv_unfill_packet()
448 packet->version = be32_to_cpu(packet->version); in multifd_recv_unfill_packet()
458 packet->pages_alloc = be32_to_cpu(packet->pages_alloc); in multifd_recv_unfill_packet()
500 packet->ramblock[255] = 0; in multifd_recv_unfill_packet()
504 packet->ramblock); in multifd_recv_unfill_packet()
784 g_free(p->packet); in multifd_send_cleanup_channel()
785 p->packet = NULL; in multifd_send_cleanup_channel()
1354 g_free(p->packet); in multifd_recv_cleanup_channel()
[all …]
H A Dmultifd.h142 MultiFDPacket_t *packet; member
198 MultiFDPacket_t *packet; member
249 p->iov[0].iov_base = p->packet; in multifd_send_prepare_header()
/qemu/tests/tcg/multiarch/system/
H A DMakefile.softmmu-target38 run-gdbstub-untimely-packet: hello
42 --output untimely-packet.gdb.out \
43 --stderr untimely-packet.gdb.err \
49 (! grep -Fq 'Packet instead of Ack, ignoring it' untimely-packet.gdb.err), \
50 "GREP", file untimely-packet.gdb.err)
67 run-gdbstub-untimely-packet run-gdbstub-registers
/qemu/hw/net/
H A Dtrace-events72 net_rx_pkt_l4_csum_calc_ip4_udp(void) "IP4/UDP packet"
73 net_rx_pkt_l4_csum_calc_ip4_tcp(void) "IP4/TCP packet"
74 net_rx_pkt_l4_csum_calc_ip6_udp(void) "IP6/UDP packet"
75 net_rx_pkt_l4_csum_calc_ip6_tcp(void) "IP6/TCP packet"
82 net_rx_pkt_l4_csum_fix_not_xxp(void) "Not an IP4 packet"
88 net_rx_pkt_l3_csum_validate_not_ip4(void) "Not an IP4 packet"
188 e1000e_rx_metadata_ack(void) "the packet is TCP ACK"
324 sungem_tx_overflow(void) "TX packet queue overflow"
337 sungem_rx_packet(size_t size) "RX got %zu bytes packet"
459 npcm7xx_emc_sent_packet(uint32_t len) "Sent %u byte packet"
[all …]
/qemu/docs/specs/
H A Drocker.txt314 network packet data. All non-network-packet TLV multi-byte values will be LE.
537 functions, and finally frame packet on wire (network). Once packet processing
543 TLV is used for each packet fragment.
590 from the beginning of the packet,
620 completion, and signal to software that a new packet is ready. Since Rx packet
632 (1 << 0): IPv4 packet
633 (1 << 1): IPv6 packet
637 (1 << 5): TCP packet
638 (1 << 6): UDP packet
645 RX_FRAG_ADDR 8 DMA address of packet fragment
[all …]
/qemu/docs/devel/
H A Debpf_rss.rst6 by calculating packet hash. Usually every queue is processed then by a specific guest CPU core.
18 If steering BPF is set for TUN the BPF code calculates the hash of packet header and
19 returns the virtqueue number to place the packet to.
25 queue_index = indirection_table[hash(<packet data>)%<indirection_table size>]
87 …different hash types. See ``VIRTIO_NET_RSS_HASH_TYPE_*`` defines. If for packet hash should not be…
89 - default_queue - the queue index that used for packet that shouldn't be hashed. For some packets, …
/qemu/docs/system/
H A Dgdb.rst177 ``maintenance packet qqemu.sstepbits``
183 (gdb) maintenance packet qqemu.sstepbits
187 ``maintenance packet qqemu.sstep``
193 (gdb) maintenance packet qqemu.sstep
197 ``maintenance packet Qqemu.sstep=HEX_VALUE``
203 (gdb) maintenance packet Qqemu.sstep=0x5
219 ``maintenance packet qqemu.PhyMemMode``
223 ``maintenance packet Qqemu.PhyMemMode:1``
226 ``maintenance packet Qqemu.PhyMemMode:0``

123