Lines Matching refs:endpoint

81 	UsbDeviceEndpoint *endpoint = &regs->DeviceEndpoint[ep];  in usb_sam0_ep_isr()  local
82 uint32_t intflag = endpoint->EPINTFLAG.reg; in usb_sam0_ep_isr()
84 endpoint->EPINTFLAG.reg = intflag; in usb_sam0_ep_isr()
124 UsbDeviceEndpoint *endpoint = &regs->DeviceEndpoint[0]; in usb_sam0_isr() local
129 endpoint->EPINTENSET.reg = USB_DEVICE_EPINTENSET_TRCPT0 | in usb_sam0_isr()
385 UsbDeviceEndpoint *endpoint = &regs->DeviceEndpoint[ep_idx]; in usb_dc_ep_configure() local
444 endpoint->EPCFG.bit.EPTYPE1 = type; in usb_dc_ep_configure()
445 endpoint->EPSTATUSCLR.bit.BK1RDY = 1; in usb_dc_ep_configure()
447 endpoint->EPCFG.bit.EPTYPE0 = type; in usb_dc_ep_configure()
448 endpoint->EPSTATUSCLR.bit.BK0RDY = 1; in usb_dc_ep_configure()
459 UsbDeviceEndpoint *endpoint = &regs->DeviceEndpoint[ep_idx]; in usb_dc_ep_set_stall() local
467 endpoint->EPSTATUSSET.bit.STALLRQ1 = 1; in usb_dc_ep_set_stall()
469 endpoint->EPSTATUSSET.bit.STALLRQ0 = 1; in usb_dc_ep_set_stall()
480 UsbDeviceEndpoint *endpoint = &regs->DeviceEndpoint[ep_idx]; in usb_dc_ep_clear_stall() local
488 endpoint->EPSTATUSCLR.bit.STALLRQ1 = 1; in usb_dc_ep_clear_stall()
490 endpoint->EPSTATUSCLR.bit.STALLRQ0 = 1; in usb_dc_ep_clear_stall()
501 UsbDeviceEndpoint *endpoint = &regs->DeviceEndpoint[ep_idx]; in usb_dc_ep_is_stalled() local
514 *stalled = endpoint->EPSTATUS.bit.STALLRQ1; in usb_dc_ep_is_stalled()
516 *stalled = endpoint->EPSTATUS.bit.STALLRQ0; in usb_dc_ep_is_stalled()
550 UsbDeviceEndpoint *endpoint = &regs->DeviceEndpoint[ep_idx]; in usb_dc_ep_enable() local
558 endpoint->EPSTATUSCLR.bit.BK1RDY = 1; in usb_dc_ep_enable()
560 endpoint->EPSTATUSCLR.bit.BK0RDY = 1; in usb_dc_ep_enable()
563 endpoint->EPINTENSET.reg = USB_DEVICE_EPINTENSET_TRCPT0 | in usb_dc_ep_enable()
575 UsbDeviceEndpoint *endpoint = &regs->DeviceEndpoint[ep_idx]; in usb_dc_ep_disable() local
582 endpoint->EPINTENCLR.reg = USB_DEVICE_EPINTENCLR_TRCPT0 in usb_dc_ep_disable()
595 UsbDeviceEndpoint *endpoint = &regs->DeviceEndpoint[ep_idx]; in usb_dc_ep_write() local
606 if (endpoint->EPSTATUS.bit.BK1RDY) { in usb_dc_ep_write()
620 endpoint->EPINTFLAG.reg = in usb_dc_ep_write()
622 endpoint->EPSTATUSSET.bit.BK1RDY = 1; in usb_dc_ep_write()
638 UsbDeviceEndpoint *endpoint = &regs->DeviceEndpoint[ep_idx]; in usb_dc_ep_read_ex() local
650 if (!endpoint->EPSTATUS.bit.BK0RDY) { in usb_dc_ep_read_ex()
680 endpoint->EPSTATUSCLR.bit.BK0RDY = 1; in usb_dc_ep_read_ex()
706 UsbDeviceEndpoint *endpoint = &regs->DeviceEndpoint[ep_idx]; in usb_dc_ep_read_continue() local
713 endpoint->EPSTATUSCLR.bit.BK0RDY = 1; in usb_dc_ep_read_continue()
742 UsbDeviceEndpoint *endpoint = &regs->DeviceEndpoint[ep_idx]; in usb_dc_ep_mps() local
751 if (endpoint->EPCFG.bit.EPTYPE1 == 0) { in usb_dc_ep_mps()
759 if (endpoint->EPCFG.bit.EPTYPE0 == 0) { in usb_dc_ep_mps()