Home
last modified time | relevance | path

Searched refs:ctrl (Results 1 – 25 of 31) sorted by relevance

12

/xen/tools/libvchan/
A Dio.c96 uint8_t *notify = ctrl->is_server ? &ctrl->ring->cli_notify : &ctrl->ring->srv_notify; in request_notify()
105 notify = ctrl->is_server ? &ctrl->ring->srv_notify : &ctrl->ring->cli_notify; in send_notify()
108 return xenevtchn_notify(ctrl->event, ctrl->event_port); in send_notify()
119 uint32_t ready = rd_prod(ctrl) - rd_cons(ctrl); in raw_get_data_ready()
161 uint32_t ready = wr_ring_size(ctrl) - (wr_prod(ctrl) - wr_cons(ctrl)); in raw_get_buffer_space()
360 if (!ctrl) in libxenvchan_close()
363 munmap(ctrl->read.buffer, 1 << ctrl->read.order); in libxenvchan_close()
365 munmap(ctrl->write.buffer, 1 << ctrl->write.order); in libxenvchan_close()
369 xengntshr_unshare(ctrl->gntshr, ctrl->ring, 1); in libxenvchan_close()
372 xengnttab_unmap(ctrl->gnttab, ctrl->ring, 1); in libxenvchan_close()
[all …]
A Dinit.c92 ctrl->read.shr = &ctrl->ring->left; in init_gnt_srv()
93 ctrl->write.shr = &ctrl->ring->right; in init_gnt_srv()
94 ctrl->ring->left_order = ctrl->read.order; in init_gnt_srv()
95 ctrl->ring->right_order = ctrl->write.order; in init_gnt_srv()
137 ctrl->write.order = ctrl->read.order = 0; in init_gnt_srv()
153 ctrl->write.order = ctrl->ring->left_order; in init_gnt_cli()
155 ctrl->write.shr = &ctrl->ring->left; in init_gnt_cli()
156 ctrl->read.shr = &ctrl->ring->right; in init_gnt_cli()
161 if (ctrl->read.order == ctrl->write.order && ctrl->read.order < PAGE_SHIFT) in init_gnt_cli()
211 ctrl->write.order = ctrl->read.order = 0; in init_gnt_cli()
[all …]
A Dnode.c79 void reader(struct libxenvchan *ctrl) in reader() argument
84 size = libxenvchan_read(ctrl, buf, size); in reader()
88 libxenvchan_close(ctrl); in reader()
103 void writer(struct libxenvchan *ctrl) in writer() argument
111 libxenvchan_close(ctrl); in writer()
138 struct libxenvchan *ctrl = 0; in main() local
154 if (!ctrl) { in main()
158 ctrl->blocking = 1; in main()
163 writer(ctrl); in main()
165 reader(ctrl); in main()
[all …]
A Dvchan-socket-proxy.c93 struct libxenvchan *ctrl; member
222 struct libxenvchan *ctrl = NULL; in connect_vchan() local
254 if (ctrl) in connect_vchan()
271 return ctrl; in connect_vchan()
335 vchan_wr(state->ctrl); in data_loop()
360 vchan_wr(state->ctrl); in data_loop()
438 if (!state.ctrl) { in main()
507 if (!state.ctrl) { in main()
519 state.ctrl = NULL; in main()
527 if (state.ctrl) in main()
[all …]
A Dlibxenvchan.h120 void libxenvchan_close(struct libxenvchan *ctrl);
129 int libxenvchan_recv(struct libxenvchan *ctrl, void *data, size_t size);
138 int libxenvchan_read(struct libxenvchan *ctrl, void *data, size_t size);
146 int libxenvchan_send(struct libxenvchan *ctrl, const void *data, size_t size);
155 int libxenvchan_write(struct libxenvchan *ctrl, const void *data, size_t size);
159 int libxenvchan_wait(struct libxenvchan *ctrl);
165 int libxenvchan_fd_for_select(struct libxenvchan *ctrl);
172 int libxenvchan_is_open(struct libxenvchan* ctrl);
174 int libxenvchan_data_ready(struct libxenvchan *ctrl);
176 int libxenvchan_buffer_space(struct libxenvchan *ctrl);
A Dnode-select.c54 struct libxenvchan *ctrl = 0; variable
61 ret = libxenvchan_write(ctrl, inbuf, insiz); in vchan_wr()
117 ctrl = libxenvchan_server_init(NULL, atoi(argv[2]), argv[3], rsiz, wsiz); in main()
119 ctrl = libxenvchan_client_init(NULL, atoi(argv[2]), argv[3]); in main()
122 if (!ctrl) { in main()
132 libxenvchan_fd = libxenvchan_fd_for_select(ctrl); in main()
155 libxenvchan_wait(ctrl); in main()
164 libxenvchan_wait(ctrl); in main()
169 while (libxenvchan_data_ready(ctrl) && outsiz < BUFSIZE) { in main()
170 ret = libxenvchan_read(ctrl, outbuf + outsiz, BUFSIZE - outsiz); in main()
[all …]
/xen/xen/drivers/char/
A Dehci-dbgp.c451 u32 ctrl; in dbgp_check_for_completion() local
494 if ( ctrl & DBGP_GO ) in dbgp_check_for_completion()
596 u32 addr, pids, ctrl; in dbgp_bulk_write() local
605 *pctrl = ctrl; in dbgp_bulk_write()
619 u32 addr, pids, ctrl; in dbgp_bulk_read() local
642 u32 addr, pids, ctrl; in dbgp_control_msg() local
737 u32 ctrl, cmd, status; in ehci_dbgp_startup() local
742 ctrl |= DBGP_OWNER; in ehci_dbgp_startup()
873 u32 ctrl, portsc, cmd; in ehci_dbgp_external_startup() local
916 ctrl |= DBGP_CLAIM; in ehci_dbgp_external_startup()
[all …]
A Dscif-uart.c98 uint16_t status, ctrl; in scif_uart_interrupt() local
100 ctrl = scif_readw(uart, SCIF_SCSCR); in scif_uart_interrupt()
103 if ( !(ctrl & SCSCR_TIE) ) in scif_uart_interrupt()
122 ctrl = scif_readw(uart, SCIF_SCSCR); in scif_uart_interrupt()
125 if ( !(ctrl & SCSCR_TIE) ) in scif_uart_interrupt()
/xen/xen/drivers/passthrough/amd/
A Diommu_init.c75 iommu->ctrl.coherent = true; in set_iommu_ht_flags()
191 iommu->ctrl.iommu_en = enable; in set_iommu_translation_control()
199 iommu->ctrl.gt_en = enable; in set_iommu_guest_translation_control()
217 iommu->ctrl.cmd_buf_en = enable; in set_iommu_command_buffer_control()
287 iommu->ctrl.ppr_en = enable; in set_iommu_ppr_log_control()
288 iommu->ctrl.ppr_int_en = enable; in set_iommu_ppr_log_control()
289 iommu->ctrl.ppr_log_en = enable; in set_iommu_ppr_log_control()
509 ctrl.dest_lo = dest; in set_x2apic_affinity()
510 ctrl.dest_hi = dest >> 24; in set_x2apic_affinity()
1120 iommu->ctrl.ga_en = 0; in amd_iommu_init_cleanup()
[all …]
A Diommu_intr.c87 (iommu->ctrl.ga_en ? 4 : 2); in amd_iommu_intremap_table_order()
174 if ( iommu->ctrl.ga_en ) in get_intremap_entry()
187 if ( iommu->ctrl.ga_en ) in free_intremap_entry()
212 if ( iommu->ctrl.ga_en ) in update_intremap_entry()
329 if ( iommu->ctrl.ga_en ) in update_intremap_entry_from_ioapic()
494 val |= MASK_INSR(iommu->ctrl.ga_en in amd_iommu_read_ioapic_from_ire()
690 if ( iommu->ctrl.ga_en ) in amd_iommu_read_msi_from_ire()
756 order = iommu->ctrl.ga_en in amd_iommu_alloc_intremap_table()
859 if ( iommu->ctrl.ga_en in dump_intremap_table()
873 if ( iommu->ctrl.ga_en ) in dump_intremap_table()
A Diommu.h93 union amd_iommu_control ctrl; member
/xen/xen/arch/x86/hvm/vmx/
A Dvvmx.c715 u32 ctrl; in nvmx_update_apic_access_address() local
736 u32 ctrl; in nvmx_update_virtual_apic_address() local
738 ctrl = __n2_exec_control(v); in nvmx_update_virtual_apic_address()
757 u32 ctrl = __n2_exec_control(v); in nvmx_update_tpr_threshold() local
2443 u32 ctrl; in nvmx_n2_vmexit_handler() local
2515 ctrl = __n2_exec_control(v); in nvmx_n2_vmexit_handler()
2530 ctrl = __n2_exec_control(v); in nvmx_n2_vmexit_handler()
2557 ctrl = __n2_exec_control(v); in nvmx_n2_vmexit_handler()
2562 ctrl = __n2_exec_control(v); in nvmx_n2_vmexit_handler()
2655 if ( ctrl & mask ) in nvmx_n2_vmexit_handler()
[all …]
A Dintr.c177 u32 ctrl; in nvmx_intr_intercept() local
192 ctrl = get_vvmcs(v, PIN_BASED_VM_EXEC_CONTROL); in nvmx_intr_intercept()
193 if ( !(ctrl & PIN_BASED_EXT_INTR_MASK) ) in nvmx_intr_intercept()
201 ctrl = get_vvmcs(v, VM_EXIT_CONTROLS); in nvmx_intr_intercept()
202 if ( ctrl & VM_EXIT_ACK_INTR_ON_EXIT ) in nvmx_intr_intercept()
/xen/tools/xl/
A Dxl_usb.c116 int ctrl, port; in main_usbdev_detach() local
125 ctrl = atoi(argv[optind+1]); in main_usbdev_detach()
134 if (libxl_ctrlport_to_device_usbdev(ctx, domid, ctrl, port, &usbdev)) { in main_usbdev_detach()
136 ctrl, port); in main_usbdev_detach()
/xen/tools/debugger/kdd/
A Dkdd.c313 kdd_ctrl ctrl; in v2p() local
320 pg = !!(ctrl.c64.cr0 & 0x80000000); in v2p()
324 pa = ctrl.c64.cr3 & ~0x0fULL; in v2p()
326 pg = !!(ctrl.c32.cr0 & 0x80000000); in v2p()
330 pa = ctrl.c32.cr3 & ~0x0fULL; in v2p()
580 kdd_ctrl ctrl; in get_os_info_64() local
981 kdd_ctrl ctrl; in kdd_handle_read_ctrl() local
1019 if (len > sizeof ctrl.c64) in kdd_handle_read_ctrl()
1020 len = sizeof ctrl.c64; in kdd_handle_read_ctrl()
1030 if (offset > sizeof ctrl.c32) in kdd_handle_read_ctrl()
[all …]
A Dkdd.h491 extern int kdd_get_ctrl(kdd_guest *g, int cpuid, kdd_ctrl *ctrl, int w64);
492 extern int kdd_set_ctrl(kdd_guest *g, int cpuid, kdd_ctrl *ctrl, int w64);
A Dkdd-xen.c409 int kdd_get_ctrl(kdd_guest *g, int cpuid, kdd_ctrl *ctrl, int w64) in kdd_get_ctrl() argument
422 kdd_get_ctrl_x86_64(cpu, lapic, &ctrl->c64); in kdd_get_ctrl()
424 kdd_get_ctrl_x86_32(cpu, &ctrl->c32); in kdd_get_ctrl()
/xen/tools/libxl/
A Dlibxl_usb.c411 GCSPRINTF("xenusb-%d.0", usbdev->ctrl)); in libxl__device_usbdev_add_hvm()
1027 usbdev->ctrl = usbctrl; in libxl__device_usbdev_list_for_usbctrl()
1124 usbdev->ctrl = usbctrls[i].devid; in libxl__device_usbdev_set_default_usbctrl()
1164 if (usbdev->ctrl == -1) { in libxl__device_usbdev_setdefault()
1189 usbdev->ctrl = usbctrl->devid; in libxl__device_usbdev_setdefault()
1313 busid, usbdev->ctrl, usbdev->port); in libxl__device_usbdev_add_xenstore()
1341 usbdev->ctrl, usbdev->port); in libxl__device_usbdev_remove_xenstore()
1716 if (usbdev->ctrl != -1) { in libxl__device_usbdev_add()
1905 if (usbdev->ctrl < 0 || usbdev->port < 1) { in libxl__device_usbdev_remove()
2071 int ctrl, in libxl_ctrlport_to_device_usbdev() argument
[all …]
A Dlibxl_utils.h93 int ctrl, int port,
/xen/xen/drivers/passthrough/
A Dpci.c350 pdev->msi_maxvec = multi_msi_capable(ctrl); in alloc_pdev()
358 uint16_t ctrl; in alloc_pdev() local
368 msix->nr_entries = msix_table_size(ctrl); in alloc_pdev()
611 u16 cap, ctrl, seg = pdev->seg; in pci_enable_acs() local
622 ctrl = pci_conf_read16(pdev->sbdf, pos + PCI_ACS_CTRL); in pci_enable_acs()
625 ctrl |= (cap & PCI_ACS_SV); in pci_enable_acs()
628 ctrl |= (cap & PCI_ACS_RR); in pci_enable_acs()
631 ctrl |= (cap & PCI_ACS_CR); in pci_enable_acs()
634 ctrl |= (cap & PCI_ACS_UF); in pci_enable_acs()
636 pci_conf_write16(pdev->sbdf, pos + PCI_ACS_CTRL, ctrl); in pci_enable_acs()
[all …]
/xen/xen/arch/x86/cpu/
A Dvpmu_amd.c480 uint64_t ctrl, cntr; in amd_vpmu_dump() local
482 rdmsrl(ctrls[i], ctrl); in amd_vpmu_dump()
485 ctrls[i], ctrl_regs[i], ctrl, in amd_vpmu_dump()
/xen/xen/include/public/io/
A Dusbif.h194 uint8_t ctrl[8]; /* setup_packet (Ctrl) */ member
/xen/docs/misc/
A Dhypfs-paths.pandoc103 spec-ctrl "No", "IBRS+" or "IBRS-"
109 msr-spec-ctrl "No" or "Yes"
114 msr-spec-ctrl "No" or "Yes"
A Dkexec_and_kdump.txt208 ctrl^a ctrl^a (may be bound to a different key, this is the default)
/xen/tools/debugger/gdbsx/
A DREADME33 - when need to break into gdb, instead of ctrl-c, just do "xm pause <domid>"
36 - if ctrl-c or core-dumped, make sure to do xm unpause if guest still paused.

Completed in 55 milliseconds

12