/Zephyr-latest/drivers/usb/device/ |
D | usb_dc_stm32.c | 155 uint16_t ep_mps; /** Endpoint max packet size */ member 563 usb_dc_stm32_state.out_ep_state[EP0_IDX].ep_mps = EP0_MPS; in usb_dc_stm32_init() 565 usb_dc_stm32_state.in_ep_state[EP0_IDX].ep_mps = EP0_MPS; in usb_dc_stm32_init() 748 LOG_DBG("ep %x, mps %d, type %d", cfg->ep_addr, cfg->ep_mps, in usb_dc_ep_check_cap() 774 ep_cfg->ep_addr, ep_state->ep_mps, ep_cfg->ep_mps, in usb_dc_ep_configure() 777 if (ep_cfg->ep_mps > ep_state->ep_pma_buf_len) { in usb_dc_ep_configure() 780 (usb_dc_stm32_state.pma_offset + ep_cfg->ep_mps*2)) { in usb_dc_ep_configure() 784 (usb_dc_stm32_state.pma_offset + ep_cfg->ep_mps)) { in usb_dc_ep_configure() 791 ((usb_dc_stm32_state.pma_offset + ep_cfg->ep_mps) << 16)); in usb_dc_ep_configure() 792 ep_state->ep_pma_buf_len = ep_cfg->ep_mps*2; in usb_dc_ep_configure() [all …]
|
D | usb_dc_mcux.c | 128 uint16_t ep_mps; member 288 ep_init.maxPacketSize = cfg->ep_mps; in usb_dc_ep_configure() 321 *block = k_heap_alloc(&ep_buf_pool, cfg->ep_mps, K_NO_WAIT); in usb_dc_ep_configure() 327 memset(*block, 0, cfg->ep_mps); in usb_dc_ep_configure() 332 dev_state.eps[ep_abs_idx].ep_mps = cfg->ep_mps; in usb_dc_ep_configure() 400 (uint32_t)dev_state.eps[ep_abs_idx].ep_mps); in usb_dc_ep_clear_stall() 476 (uint32_t)dev_state.eps[ep_abs_idx].ep_mps); in usb_dc_ep_enable() 559 if (data_len > dev_state.eps[ep_abs_idx].ep_mps) { in usb_dc_ep_write() 560 len_to_send = dev_state.eps[ep_abs_idx].ep_mps; in usb_dc_ep_write() 606 (data_len < dev_state.eps[0].ep_mps)) { in update_control_stage() [all …]
|
D | usb_dc_dw.c | 360 uint32_t ep_mps, enum usb_dc_ep_transfer_type ep_type) in usb_dw_ep_set() argument 366 LOG_DBG("%s ep %x, mps %d, type %d", __func__, ep, ep_mps, ep_type); in usb_dw_ep_set() 370 usb_dw_ctrl.out_ep_ctrl[ep_idx].mps = ep_mps; in usb_dw_ep_set() 373 usb_dw_ctrl.in_ep_ctrl[ep_idx].mps = ep_mps; in usb_dw_ep_set() 380 switch (ep_mps) { in usb_dw_ep_set() 403 if (ep_mps > (USB_DWC2_DEPCTL_MPS_MASK >> in usb_dw_ep_set() 409 *p_depctl |= ep_mps << USB_DWC2_DEPCTL_MPS_POS; in usb_dw_ep_set() 450 uint32_t ep_mps = usb_dw_ctrl.out_ep_ctrl[ep_idx].mps; in usb_dw_prep_rx() local 458 (1 << USB_DWC2_DEPTSIZ_PKT_CNT_POS) | ep_mps; in usb_dw_prep_rx() 476 uint32_t ep_mps = usb_dw_ctrl.in_ep_ctrl[ep_idx].mps; in usb_dw_tx() local [all …]
|
D | usb_dc_kinetis.c | 281 if (cfg->ep_mps > USB_MAX_CTRL_MPS) { in usb_dc_ep_check_cap() 286 if (cfg->ep_mps > USB_MAX_FS_BULK_MPS) { in usb_dc_ep_check_cap() 291 if (cfg->ep_mps > USB_MAX_FS_INT_MPS) { in usb_dc_ep_check_cap() 296 if (cfg->ep_mps > USB_MAX_FS_ISO_MPS) { in usb_dc_ep_check_cap() 342 LOG_DBG("ep %x, mps %d, type %d", cfg->ep_addr, cfg->ep_mps, in usb_dc_ep_configure() 359 block->data = k_heap_alloc(&ep_buf_pool, cfg->ep_mps * 2U, K_NO_WAIT); in usb_dc_ep_configure() 361 (void)memset(block->data, 0, cfg->ep_mps * 2U); in usb_dc_ep_configure() 369 bdt[idx_odd].buf_addr = (uint32_t)((uint8_t *)block->data + cfg->ep_mps); in usb_dc_ep_configure() 370 LOG_INF("idx_odd %x", (uint32_t)((uint8_t *)block->data + cfg->ep_mps)); in usb_dc_ep_configure() 373 dev_data.ep_ctrl[ep_idx].mps_in = cfg->ep_mps; in usb_dc_ep_configure() [all …]
|
D | usb_dc_native_posix.c | 159 LOG_DBG("ep %x, mps %d, type %d", cfg->ep_addr, cfg->ep_mps, in usb_dc_ep_check_cap() 167 if (cfg->ep_mps > USBIP_MAX_PACKET_SIZE) { in usb_dc_ep_check_cap() 189 uint16_t ep_mps = cfg->ep_mps; in usb_dc_ep_configure() local 203 usbip_ctrl.out_ep_ctrl[ep_idx].mps = ep_mps; in usb_dc_ep_configure() 205 usbip_ctrl.in_ep_ctrl[ep_idx].mps = ep_mps; in usb_dc_ep_configure()
|
D | usb_dc_sam_usbhs.c | 255 .ep_mps = dev_data.ep_data[0].mps, in usb_dc_isr() 450 if (cfg->ep_mps < 1 || cfg->ep_mps > 1024 || in usb_dc_ep_check_cap() 451 (cfg->ep_type == USB_DC_EP_CONTROL && cfg->ep_mps > 64)) { in usb_dc_ep_check_cap() 482 LOG_INF("Configure ep %x, mps %d, type %d", cfg->ep_addr, cfg->ep_mps, in usb_dc_ep_configure() 520 log2ceil_mps = 32 - __builtin_clz((MAX(cfg->ep_mps, 8) << 1) - 1) - 1; in usb_dc_ep_configure() 522 dev_data.ep_data[ep_idx].mps = cfg->ep_mps; in usb_dc_ep_configure()
|
D | usb_dc_sam_usbc.c | 865 if (cfg->ep_mps < 1 || cfg->ep_mps > 1024 || in usb_dc_ep_check_cap() 866 (cfg->ep_type == USB_DC_EP_CONTROL && cfg->ep_mps > 64)) { in usb_dc_ep_check_cap() 894 cfg->ep_addr, cfg->ep_mps, cfg->ep_type); in usb_dc_ep_configure() 924 log2ceil_mps = 32 - __builtin_clz((MAX(cfg->ep_mps, 8) << 1) - 1) - 1; in usb_dc_ep_configure() 926 dev_data.ep_data[ep_idx].mps = cfg->ep_mps; in usb_dc_ep_configure()
|
D | usb_dc_numaker.c | 629 ep_cur->mps = ep_cfg->ep_mps; in numaker_usbd_ep_config_major() 1436 LOG_DBG("EP=0x%02x, MPS=%d, Type=%d", ep_cfg->ep_addr, ep_cfg->ep_mps, ep_cfg->ep_type); in usb_dc_ep_configure() 1450 if (!ep_cur->dmabuf_valid || ep_cur->dmabuf_size < ep_cfg->ep_mps) { in usb_dc_ep_configure() 1452 rc = numaker_usbd_ep_mgmt_alloc_dmabuf(dev, ep_cfg->ep_mps, &dmabuf_base, in usb_dc_ep_configure() 1897 uint16_t ep_mps = 0; in usb_dc_ep_mps() local 1911 ep_mps = ep_cur->mps; in usb_dc_ep_mps() 1917 return rc == 0 ? ep_mps : rc; in usb_dc_ep_mps()
|
D | usb_dc_nrfx.c | 1383 LOG_DBG("ep 0x%02x, mps %d, type %d", ep_cfg->ep_addr, ep_cfg->ep_mps, in usb_dc_ep_check_cap() 1436 ep_ctx->cfg.max_sz = ep_cfg->ep_mps; in usb_dc_ep_configure() 1439 if ((ep_cfg->ep_mps & (ep_cfg->ep_mps - 1)) != 0U) { in usb_dc_ep_configure() 1446 ep_cfg->ep_mps); in usb_dc_ep_configure()
|
D | usb_dc_rpi_pico.c | 592 cfg->ep_addr, cfg->ep_mps, cfg->ep_type); in usb_dc_ep_check_cap() 618 ep_cfg->ep_mps, ep_cfg->ep_type); in usb_dc_ep_configure() 620 ep_state->mps = ep_cfg->ep_mps; in usb_dc_ep_configure()
|
D | usb_dc_smartbond.c | 1278 LOG_DBG("ep %x, mps %d, type %d", cfg->ep_addr, cfg->ep_mps, cfg->ep_type); in usb_dc_ep_check_cap() 1291 if (ep_out_buf_size[ep_idx] < cfg->ep_mps) { in usb_dc_ep_check_cap() 1454 ep_state->mps = ep_cfg->ep_mps; in usb_dc_ep_configure() 1460 if (ep_cfg->ep_mps > ep_out_buf_size[ep_idx]) { in usb_dc_ep_configure()
|
D | usb_dc_sam0.c | 413 if (usb_sam0_pcksize_bytes[i] == cfg->ep_mps) { in usb_dc_ep_configure() 435 buf = k_malloc(cfg->ep_mps); in usb_dc_ep_configure()
|
D | usb_dc_it82xx2.c | 1097 udata0.ep_data[ep_idx].mps = cfg->ep_mps; in usb_dc_ep_check_cap() 1116 if (!cfg->ep_mps) { in usb_dc_ep_configure() 1122 udata0.ep_data[ep_idx].mps = cfg->ep_mps; in usb_dc_ep_configure()
|
/Zephyr-latest/subsys/usb/device/ |
D | usb_descriptor.c | 269 ep_cfg.ep_mps = sys_le16_to_cpu(ep_descr->wMaxPacketSize); in usb_validate_ep_cfg_data() 385 .ep_mps = USB_MAX_CTRL_MPS, in usb_desc_update_mps0() 393 ep_cfg.ep_mps = 8; in usb_desc_update_mps0() 396 ep_cfg.ep_mps = 0; in usb_desc_update_mps0() 402 desc->bMaxPacketSize0 = ep_cfg.ep_mps; in usb_desc_update_mps0()
|
D | usb_device.c | 565 ep_cfg.ep_mps = sys_le16_to_cpu(ep_desc->wMaxPacketSize); in set_endpoint() 569 ep_cfg.ep_addr, ep_cfg.ep_type, ep_cfg.ep_mps); in set_endpoint() 1657 ep0_cfg.ep_mps = usb_dev.mps0; in usb_enable()
|
/Zephyr-latest/include/zephyr/drivers/usb/ |
D | usb_dc.h | 119 uint16_t ep_mps; member
|
/Zephyr-latest/drivers/usb/udc/ |
D | udc_stm32.c | 60 uint16_t ep_mps; member 427 size = MIN(udc_mps_ep_size(ep), cfg->ep_mps); in udc_stm32_ep_mem_config() 456 if (cfg->ep_mps % 4 || cfg->ep0_mps % 4) { in udc_stm32_mem_init() 458 cfg->ep0_mps, cfg->ep_mps); in udc_stm32_mem_init() 465 words = MAX(0x40, cfg->ep_mps / 4); in udc_stm32_mem_init() 491 words = MIN(udc_mps_ep_size(ep), cfg->ep_mps) / 4; in udc_stm32_ep_mem_config() 877 .ep_mps = EP_MPS, 1135 ep_cfg_out[i].caps.mps = cfg->ep_mps; in udc_stm32_driver_init0()
|
D | udc_ambiq.c | 812 int ep_mps = 0; in udc_ambiq_driver_init() local 818 ep_mps = EP_FS_MPS; in udc_ambiq_driver_init() 822 ep_mps = EP_HS_MPS; in udc_ambiq_driver_init() 834 cfg->ep_cfg_out[i].caps.mps = ep_mps; in udc_ambiq_driver_init() 854 cfg->ep_cfg_in[i].caps.mps = ep_mps; in udc_ambiq_driver_init()
|