Home
last modified time | relevance | path

Searched refs:ep_ctrl (Results 1 – 8 of 8) sorted by relevance

/Zephyr-latest/drivers/usb/device/
Dusb_dc_kinetis.c115 struct usb_ep_ctrl_data ep_ctrl[NUM_OF_EP_MAX]; member
323 struct usb_ep_ctrl_data *ep_ctrl; in usb_dc_ep_configure() local
334 ep_ctrl = &dev_data.ep_ctrl[ep_idx]; in usb_dc_ep_configure()
336 if (ep_idx && (dev_data.ep_ctrl[ep_idx].status.in_enabled || in usb_dc_ep_configure()
337 dev_data.ep_ctrl[ep_idx].status.out_enabled)) { in usb_dc_ep_configure()
346 block = &(ep_ctrl->mblock_out); in usb_dc_ep_configure()
348 block = &(ep_ctrl->mblock_in); in usb_dc_ep_configure()
373 dev_data.ep_ctrl[ep_idx].mps_in = cfg->ep_mps; in usb_dc_ep_configure()
375 dev_data.ep_ctrl[ep_idx].mps_out = cfg->ep_mps; in usb_dc_ep_configure()
381 dev_data.ep_ctrl[ep_idx].status.out_data1 = false; in usb_dc_ep_configure()
[all …]
Dusb_dc_native_posix.c516 struct usb_ep_ctrl_prv *ep_ctrl; in handle_usb_control() local
518 ep_ctrl = &usbip_ctrl.out_ep_ctrl[ep_idx]; in handle_usb_control()
519 if (ep_ctrl->cb == NULL) { in handle_usb_control()
530 ep_ctrl->data_len = 8; in handle_usb_control()
531 LOG_DBG("SETUP event ep 0x%02x %u", ep_idx, ep_ctrl->data_len); in handle_usb_control()
532 memcpy(ep_ctrl->buf, &hdr->u.submit.bmRequestType, ep_ctrl->data_len); in handle_usb_control()
533 ep_ctrl->cb(ep_idx, USB_DC_EP_SETUP); in handle_usb_control()
539 if (data_len > ARRAY_SIZE(ep_ctrl->buf)) { in handle_usb_control()
543 ep_ctrl->data_len = data_len; in handle_usb_control()
545 if (usbip_recv(ep_ctrl->buf, ep_ctrl->data_len) < 0) { in handle_usb_control()
[all …]
Dusb_dc_it82xx2.c440 ep_regs[ep_fifo].ep_ctrl.fields.ready_bit = enable; in it82xx2_usb_extend_ep_ctrl()
461 ep_ctrl_value = ep_regs[ep_idx].ep_ctrl.value & ~ENDPOINT_READY_BIT; in it82xx2_usb_ep_ctrl()
479 return ep_regs[ep_idx].ep_ctrl.fields.send_stall_bit; in it82xx2_usb_ep_ctrl()
519 ep_regs[ep_idx].ep_ctrl.value = ep_ctrl_value; in it82xx2_usb_ep_ctrl()
596 if (ep_regs[ep_idx].ep_ctrl.fields.send_stall_bit) { in it82xx2_handler_setup()
626 ep_regs[fifo_idx].ep_ctrl.fields.outdata_sequence_bit = 1; in it82xx2_handler_setup()
642 if (ep_regs[ep_idx].ep_ctrl.fields.send_stall_bit) { in it82xx2_handler_in()
791 enable_bit = (ep_regs[ep_idx].ep_ctrl.fields.enable_bit != 0); in it82xx2_usb_fake_token()
792 ready_bit = (ep_regs[ep_idx].ep_ctrl.fields.ready_bit != 0); in it82xx2_usb_fake_token()
1042 ep_regs[0].ep_ctrl.value = ENDPOINT_ENABLE_BIT; in usb_dc_reset()
[all …]
Dusb_dc_rpi_pico.c448 state.out_ep_state[i].ep_ctl = &usb_dpram->ep_ctrl[i - 1].out; in udc_rpi_init_endpoint()
449 state.in_ep_state[i].ep_ctl = &usb_dpram->ep_ctrl[i - 1].in; in udc_rpi_init_endpoint()
/Zephyr-latest/drivers/usb/udc/
Dudc_it82xx2.c275 ep_regs[fifo_idx].ep_ctrl.fields.ready_bit = enable; in it82xx2_usb_extend_ep_ctrl()
298 ep_ctrl_value = ep_regs[ep_idx].ep_ctrl.value & ~ENDPOINT_READY_BIT; in it82xx2_usb_ep_ctrl()
354 ep_regs[ep_idx].ep_ctrl.value = ep_ctrl_value; in it82xx2_usb_ep_ctrl()
741 ep_regs[0].ep_ctrl.value = ENDPOINT_EN; in it82xx2_dc_reset()
1230 if (ep_regs[ep_idx].ep_ctrl.fields.send_stall_bit) { in it82xx2_check_ep0_stall()
1257 uint8_t ep, ep_idx, ep_ctrl, transtype; in it82xx2_usb_xfer_done() local
1259 ep_ctrl = ep_regs[fifo_idx].ep_ctrl.value; in it82xx2_usb_xfer_done()
1278 enable_bit = (ep_regs[ep_idx].ep_ctrl.fields.enable_bit != 0); in it82xx2_usb_xfer_done()
1279 ready_bit = (ep_regs[ep_idx].ep_ctrl.fields.ready_bit != 0); in it82xx2_usb_xfer_done()
Dudc_rpi_pico.c109 return (uintptr_t)&dpram->ep_ctrl[USB_EP_GET_IDX(ep) - 1].out; in get_ep_ctrl_reg()
112 return (uintptr_t)&dpram->ep_ctrl[USB_EP_GET_IDX(ep) - 1].in; in get_ep_ctrl_reg()
156 const uint32_t ep_ctrl) in write_ep_ctrl_reg() argument
160 sys_write32(ep_ctrl, ep_ctrl_reg); in write_ep_ctrl_reg()
765 uint32_t ep_ctrl = EP_CTRL_ENABLE_BITS | in udc_rpi_pico_ep_enable() local
777 ep_ctrl |= (uintptr_t)ep_data->buf & 0xFFFFUL; in udc_rpi_pico_ep_enable()
778 write_ep_ctrl_reg(dev, cfg->addr, ep_ctrl); in udc_rpi_pico_ep_enable()
/Zephyr-latest/soc/ite/ec/common/
Dcheck_regs.c166 IT8XXX2_REG_OFFSET_CHECK(usb_it82xx2_regs, usb_ep_regs[0].ep_ctrl, 0x40);
172 IT8XXX2_REG_OFFSET_CHECK(usb_it82xx2_regs, usb_ep_regs[3].ep_ctrl, 0x4C);
Dchip_chipregs.h542 union ep_ctrl_reg ep_ctrl; member