Home
last modified time | relevance | path

Searched refs:ep (Results 1 – 25 of 42) sorted by relevance

12

/qemu/hw/usb/
H A Dhcd-musb.c550 MUSBEndPoint *ep = p->ep; in musb_schedule_cb() local
638 ep->packey[dir].ep = ep; in musb_packet()
824 for (ep = 0; ep < 16; ep++) { in musb_async_cancel_device()
827 s->ep[ep].packey[dir].p.ep->dev != dev) { in musb_async_cancel_device()
951 value=ep->buf[1][ep->fifostart[1] + ep->fifolen[1] ++]; in musb_read_fifo()
965 ep->buf[0][ep->fifostart[0] + ep->fifolen[0] ++] = value; in musb_write_fifo()
1068 return s->ep[ep].type[0]; in musb_ep_readb()
1078 return ep ? s->ep[ep].fifosize : s->ep[ep].config; in musb_ep_readb()
1128 return s->ep[ep].csr[0]; in musb_ep_readh()
1132 ret = s->ep[ep].csr[1]; in musb_ep_readh()
[all …]
H A Dcore.c468 USBEndpoint *ep = p->ep; in usb_packet_complete_one() local
488 USBEndpoint *ep = p->ep; in usb_packet_complete() local
590 p->ep = ep; in usb_packet_setup()
653 int ep; in usb_ep_reset() local
662 for (ep = 0; ep < USB_MAX_ENDPOINTS; ep++) { in usb_ep_reset()
663 dev->ep_in[ep].nr = ep + 1; in usb_ep_reset()
664 dev->ep_out[ep].nr = ep + 1; in usb_ep_reset()
684 int ep; in usb_ep_init() local
688 for (ep = 0; ep < USB_MAX_ENDPOINTS; ep++) { in usb_ep_init()
708 for (ep = 0; ep < USB_MAX_ENDPOINTS; ep++) { in usb_ep_dump()
[all …]
H A Dredirect.c429 int ep; in usbredir_fill_already_in_flight() local
434 for (ep = 0; ep < USB_MAX_ENDPOINTS; ep++) { in usbredir_fill_already_in_flight()
497 uint8_t ep) in bufp_free() argument
592 ep, dev->endpoint[EP2I(ep)].iso_error); in usbredir_handle_iso_data()
641 .endpoint = ep in usbredir_stop_iso_stream()
942 uint8_t ep) in usbredir_stop_interrupt_receiving() argument
945 .endpoint = ep in usbredir_stop_interrupt_receiving()
960 uint8_t ep; in usbredir_handle_data() local
962 ep = p->ep->nr; in usbredir_handle_data()
999 if (ep->pid == USB_TOKEN_IN && ep->pipeline) { in usbredir_flush_ep_queue()
[all …]
H A Dcanokey.c21 #define CANOKEY_EP_IN(ep) ((ep) & 0x7F) argument
67 int canokey_emu_stall_ep(void *base, uint8_t ep) in canokey_emu_stall_ep() argument
69 trace_canokey_emu_stall_ep(ep); in canokey_emu_stall_ep()
88 trace_canokey_emu_prepare_receive(ep, size); in canokey_emu_prepare_receive()
90 key->ep_out[ep] = pbuf; in canokey_emu_prepare_receive()
91 key->ep_out_size[ep] = size; in canokey_emu_prepare_receive()
98 trace_canokey_emu_transmit(ep, size); in canokey_emu_transmit()
130 return key->ep_out_size[ep]; in canokey_emu_get_rx_data_size()
163 canokey_emu_data_out(p->ep->nr, data); in canokey_handle_control()
192 uint8_t ep_in = CANOKEY_EP_IN(p->ep->nr); in canokey_handle_data()
[all …]
H A Dcombined-packet.c52 USBEndpoint *ep = p->ep; in usb_combined_input_packet_complete() local
99 usb_ep_combine_input_packets(ep); in usb_combined_input_packet_complete()
122 void usb_ep_combine_input_packets(USBEndpoint *ep) in usb_ep_combine_input_packets() argument
125 USBPort *port = ep->dev->port; in usb_ep_combine_input_packets()
128 assert(ep->pipeline); in usb_ep_combine_input_packets()
129 assert(ep->pid == USB_TOKEN_IN); in usb_ep_combine_input_packets()
131 QTAILQ_FOREACH_SAFE(p, &ep->queue, queue, next) { in usb_ep_combine_input_packets()
133 if (ep->halted) { in usb_ep_combine_input_packets()
171 if ((p->iov.size % ep->max_packet_size) != 0 || !p->short_not_ok || in usb_ep_combine_input_packets()
176 totalsize > 1 * MiB - ep->max_packet_size) { in usb_ep_combine_input_packets()
[all …]
H A Dhost-libusb.c363 if (!ep->pipeline) { in usb_host_use_combining()
369 type = usb_ep_get_type(ep->dev, ep->pid, ep->nr); in usb_host_use_combining()
556 ring->ep = ep; in usb_host_iso_alloc()
591 if (ring->ep == ep) { in usb_host_iso_find()
877 int pid, ep, alt; in usb_host_ep_update() local
911 ep = devep & 0xf; in usb_host_ep_update()
914 if (ep == 0) { in usb_host_ep_update()
1544 int ep, rc; in usb_host_handle_data() local
1560 if (p->ep->halted) { in usb_host_handle_data()
1573 ep = p->ep->nr | (r->in ? USB_DIR_IN : 0); in usb_host_handle_data()
[all …]
H A Ddesc.c207 uint8_t bLength = ep->is_audio ? 0x09 : 0x07; in usb_desc_endpoint()
208 uint8_t extralen = ep->extra ? ep->extra[0] : 0; in usb_desc_endpoint()
223 d->u.endpoint.bInterval = ep->bInterval; in usb_desc_endpoint()
224 if (ep->is_audio) { in usb_desc_endpoint()
225 d->u.endpoint.bRefresh = ep->bRefresh; in usb_desc_endpoint()
238 usb_lo(ep->wBytesPerInterval); in usb_desc_endpoint()
240 usb_hi(ep->wBytesPerInterval); in usb_desc_endpoint()
243 if (ep->extra) { in usb_desc_endpoint()
372 int i, e, pid, ep; in usb_desc_ep_init() local
386 usb_ep_set_max_packet_size(dev, pid, ep, in usb_desc_ep_init()
[all …]
H A Dpcap.c91 epnum |= p->ep->nr; in usbmon_epnum()
122 USBDevice *dev = p->ep->dev; in do_usb_pcap_ctrl()
170 .xfer_type = usbmon_xfer_type[p->ep->type], in do_usb_pcap_data()
172 .devnum = p->ep->dev->addr, in do_usb_pcap_data()
179 if (p->ep->nr == 0) { in do_usb_pcap_data()
235 FILE *fp = p->ep->dev->pcap; in usb_pcap_ctrl()
246 FILE *fp = p->ep->dev->pcap; in usb_pcap_data()
H A Dtrace-events54 usb_ohci_td_too_many_pending(int ep) "ep=%d"
215 usb_dwc2_enable_chan(uint32_t chan, void *dev, void *pkt, uint32_t ep) "ch %d dev %p pkt %p ep %d"
292 usb_mtp_xfer(int dev, uint32_t ep, uint32_t dlen, uint32_t plen) "dev %d, ep %d, %d/%d"
293 usb_mtp_nak(int dev, uint32_t ep) "dev %d, ep %d"
325 …ost_req_data(int bus, int addr, void *p, int in, int ep, int size) "dev %d:%d, packet %p, in %d, e…
329 usb_host_iso_start(int bus, int addr, int ep) "dev %d:%d, ep %d"
330 usb_host_iso_stop(int bus, int addr, int ep) "dev %d:%d, ep %d"
331 usb_host_iso_out_of_bufs(int bus, int addr, int ep) "dev %d:%d, ep %d"
355 canokey_emu_stall_ep(uint8_t ep) "ep %d"
357 canokey_emu_prepare_receive(uint8_t ep, uint16_t size) "ep %d size %d"
[all …]
H A Dhcd-uhci.c90 USBEndpoint *ep; member
124 USBEndpoint *ep) in uhci_queue_new() argument
132 queue->ep = ep; in uhci_queue_new()
149 usb_device_ep_stopped(queue->ep->dev, queue->ep); in uhci_queue_free()
177 queue_token_addr == queue->ep->dev->addr && in uhci_queue_verify()
260 if (queue->ep->dev == dev) { in uhci_async_cancel_device()
812 USBEndpoint *ep; in uhci_handle_td() local
820 q = uhci_queue_new(s, qh_addr, td, ep); in uhci_handle_td()
839 usb_handle_packet(q->ep->dev, &async->packet); in uhci_handle_td()
846 usb_handle_packet(q->ep->dev, &async->packet); in uhci_handle_td()
[all …]
H A Dhcd-xhci.c910 USBEndpoint *ep; in xhci_epmask_to_eps_with_streams() local
1257 if (ep) { in xhci_ep_nuke_xfers()
1258 usb_device_ep_stopped(ep->dev, ep); in xhci_ep_nuke_xfers()
1600 USBEndpoint *ep; in xhci_setup_packet() local
1606 ep = xfer->packet.ep; in xhci_setup_packet()
1609 if (!ep) { in xhci_setup_packet()
1624 xfer->packet.pid, ep->dev->addr, ep->nr); in xhci_setup_packet()
2029 if (ep) { in xhci_kick_epctx()
2030 usb_device_flush_ep_queue(ep->dev, ep); in xhci_kick_epctx()
2415 int slot, ep; in xhci_detach_slot() local
[all …]
H A Dhcd-dwc2.c283 usb_packet_setup(&p->packet, pid, ep, 0, hcdma, in dwc2_handle_packet()
308 usb_device_flush_ep_queue(dev, ep); in dwc2_handle_packet()
505 USBEndpoint *ep; in dwc2_async_packet_complete() local
510 ep = usb_ep_get(dev, p->pid, p->epnum); in dwc2_async_packet_complete()
521 dwc2_handle_packet(s, p->devadr, dev, ep, p->index, false); in dwc2_async_packet_complete()
572 USBEndpoint *ep; in dwc2_work_bh() local
590 ep = usb_ep_get(dev, p->pid, p->epnum); in dwc2_work_bh()
614 USBEndpoint *ep; in dwc2_enable_chan() local
644 ep = usb_ep_get(dev, pid, epnum); in dwc2_enable_chan()
658 dwc2_handle_packet(s, devadr, dev, ep, index, true); in dwc2_enable_chan()
[all …]
H A Du2f.c244 if (p->ep->nr != 1) { in u2f_key_handle_data()
271 usb_wakeup(key->ep, 0); in u2f_send_to_guest()
301 key->ep = usb_ep_get(dev, USB_TOKEN_IN, 1); in u2f_key_realize()
H A Dhcd-ohci.c578 USBEndpoint *ep; in ohci_service_iso_td() local
741 ep = usb_ep_get(dev, pid, OHCI_BM(ed->flags, ED_EN)); in ohci_service_iso_td()
746 usb_packet_setup(pkt, pid, ep, 0, addr, false, int_req); in ohci_service_iso_td()
750 usb_device_flush_ep_queue(dev, ep); in ohci_service_iso_td()
883 USBEndpoint *ep; in ohci_service_td() local
980 ep = usb_ep_get(dev, pid, OHCI_BM(ed->flags, ED_EN)); in ohci_service_td()
988 trace_usb_ohci_td_too_many_pending(ep->nr); in ohci_service_td()
998 usb_device_flush_ep_queue(dev, ep); in ohci_service_td()
1131 usb_device_ep_stopped(ohci->usb_packet.ep->dev, in ohci_service_ed_list()
1132 ohci->usb_packet.ep); in ohci_service_ed_list()
[all …]
H A Dhcd-ehci.c464 int ep = get_field(q->qh.epchar, QH_EPCHAR_EP); in ehci_verify_pid() local
468 if (q->last_pid && ep != 0 && pid != q->last_pid) { in ehci_verify_pid()
814 static void ehci_wakeup_endpoint(USBBus *bus, USBEndpoint *ep, in ehci_wakeup_endpoint() argument
818 uint32_t portsc = s->portsc[ep->dev->port->index]; in ehci_wakeup_endpoint()
1344 USBEndpoint *ep; in ehci_execute() local
1368 ep = usb_ep_get(p->queue->dev, p->pid, endp); in ehci_execute()
1408 USBEndpoint *ep; in ehci_process_itd() local
1457 ep = usb_ep_get(dev, pid, endp); in ehci_process_itd()
1458 if (ep && ep->type == USB_ENDPOINT_XFER_ISOC) { in ehci_process_itd()
1881 USBEndpoint *ep = p->packet.ep; in ehci_fill_queue() local
[all …]
H A Du2f.h59 USBEndpoint *ep; member
H A Dbus.c195 void usb_device_flush_ep_queue(USBDevice *dev, USBEndpoint *ep) in usb_device_flush_ep_queue() argument
199 klass->flush_ep_queue(dev, ep); in usb_device_flush_ep_queue()
203 void usb_device_ep_stopped(USBDevice *dev, USBEndpoint *ep) in usb_device_ep_stopped() argument
207 klass->ep_stopped(dev, ep); in usb_device_ep_stopped()
/qemu/hw/virtio/
H A Dvirtio-iommu.c94 if (!ep || !ep->domain) { in virtio_iommu_device_bypassed()
320 if (ep) { in virtio_iommu_get_endpoint()
321 return ep; in virtio_iommu_get_endpoint()
327 ep = g_malloc0(sizeof(*ep)); in virtio_iommu_get_endpoint()
332 return ep; in virtio_iommu_get_endpoint()
344 g_free(ep); in virtio_iommu_put_endpoint()
486 if (!ep) { in virtio_iommu_attach()
532 if (!ep) { in virtio_iommu_detach()
911 assert(ep && ep->domain && !ep->domain->bypass); in virtio_iommu_translate()
913 if (!ep) { in virtio_iommu_translate()
[all …]
/qemu/util/
H A Dcutils.c390 assert(ep >= nptr); in check_strtox_error()
399 ep = tmp; in check_strtox_error()
404 *endptr = ep; in check_strtox_error()
413 if (!endptr && *ep) { in check_strtox_error()
451 char *ep; in qemu_strtoi() local
507 char *ep; in qemu_strtoui() local
576 char *ep; in qemu_strtol() local
621 char *ep; in qemu_strtoul() local
650 char *ep; in qemu_strtoi64() local
678 char *ep; in qemu_strtou64() local
[all …]
/qemu/include/hw/
H A Dusb.h329 void (*flush_ep_queue)(USBDevice *dev, USBEndpoint *ep);
335 void (*ep_stopped)(USBDevice *dev, USBEndpoint *ep);
394 USBEndpoint *ep; member
419 USBEndpoint *ep, unsigned int stream,
445 struct USBEndpoint *usb_ep_get(USBDevice *dev, int pid, int ep);
446 uint8_t usb_ep_get_type(USBDevice *dev, int pid, int ep);
449 void usb_ep_set_max_packet_size(USBDevice *dev, int pid, int ep,
456 void usb_ep_combine_input_packets(USBEndpoint *ep);
465 void usb_wakeup(USBEndpoint *ep, unsigned int stream);
549 void usb_device_flush_ep_queue(USBDevice *dev, USBEndpoint *ep);
[all …]
H A Dloader.h228 ssize_t load_uimage_as(const char *filename, hwaddr *ep,
237 ssize_t load_uimage(const char *filename, hwaddr *ep,
/qemu/pc-bios/
H A Dbamboo.dts51 compatible = "ibm,uic-440ep","ibm,uic";
61 compatible = "ibm,sdr-440ep";
66 compatible = "ibm,cpr-440ep";
71 compatible = "ibm,plb-440ep", "ibm,plb-440gp", "ibm,plb4";
78 compatible = "ibm,sdram-440ep", "ibm,sdram-405gp";
83 compatible = "ibm,dma-440ep", "ibm,dma-440gp";
88 compatible = "ibm,opb-440ep", "ibm,opb-440gp", "ibm,opb";
101 compatible = "ibm,ebc-440ep", "ibm,ebc-440gp", "ibm,ebc";
134 compatible = "ibm,iic-440ep", "ibm,iic-440gp", "ibm,iic";
142 compatible = "ibm,iic-440ep", "ibm,iic-440gp", "ibm,iic";
[all …]
/qemu/hw/smbios/
H A Dsmbios.c47 static SmbiosEntryPoint ep; variable
1052 ep.ep21.smbios_major_version = 2; in smbios_entry_point_setup()
1053 ep.ep21.smbios_minor_version = 8; in smbios_entry_point_setup()
1062 ep.ep21.checksum = 0; in smbios_entry_point_setup()
1070 ep.ep30.entry_point_revision = 1; in smbios_entry_point_setup()
1071 ep.ep30.reserved = 0; in smbios_entry_point_setup()
1074 ep.ep30.smbios_major_version = 3; in smbios_entry_point_setup()
1075 ep.ep30.smbios_minor_version = 0; in smbios_entry_point_setup()
1076 ep.ep30.smbios_doc_rev = 0; in smbios_entry_point_setup()
1082 ep.ep30.checksum = 0; in smbios_entry_point_setup()
[all …]
/qemu/
H A Dos-posix.c107 const char *ep; in os_set_runas() local
119 rc = qemu_strtoul(user_id, &ep, 0, &lv); in os_set_runas()
121 if (rc || *ep != ':' || got_uid != lv || got_uid == (uid_t)-1) { in os_set_runas()
125 rc = qemu_strtoul(ep + 1, 0, 0, &lv); in os_set_runas()
/qemu/include/standard-headers/linux/
H A Dethtool.h125 static inline void ethtool_cmd_speed_set(struct ethtool_cmd *ep, in ethtool_cmd_speed_set() argument
128 ep->speed = (uint16_t)(speed & 0xFFFF); in ethtool_cmd_speed_set()
129 ep->speed_hi = (uint16_t)(speed >> 16); in ethtool_cmd_speed_set()
132 static inline uint32_t ethtool_cmd_speed(const struct ethtool_cmd *ep) in ethtool_cmd_speed() argument
134 return (ep->speed_hi << 16) | ep->speed; in ethtool_cmd_speed()

12