Home
last modified time | relevance | path

Searched refs:ep_mps (Results 1 – 16 of 16) sorted by relevance

/Zephyr-Core-3.5.0/drivers/usb/device/
Dusb_dc_mcux.c94 uint16_t ep_mps; member
254 ep_init.maxPacketSize = cfg->ep_mps; in usb_dc_ep_configure()
287 *block = k_heap_alloc(&ep_buf_pool, cfg->ep_mps, K_NO_WAIT); in usb_dc_ep_configure()
293 memset(*block, 0, cfg->ep_mps); in usb_dc_ep_configure()
298 dev_state.eps[ep_abs_idx].ep_mps = cfg->ep_mps; in usb_dc_ep_configure()
366 (uint32_t)dev_state.eps[ep_abs_idx].ep_mps); in usb_dc_ep_clear_stall()
442 (uint32_t)dev_state.eps[ep_abs_idx].ep_mps); in usb_dc_ep_enable()
525 if (data_len > dev_state.eps[ep_abs_idx].ep_mps) { in usb_dc_ep_write()
526 len_to_send = dev_state.eps[ep_abs_idx].ep_mps; in usb_dc_ep_write()
572 (data_len < dev_state.eps[0].ep_mps)) { in update_control_stage()
[all …]
Dusb_dc_stm32.c151 uint16_t ep_mps; /** Endpoint max packet size */ member
426 usb_dc_stm32_state.out_ep_state[EP0_IDX].ep_mps = EP0_MPS; in usb_dc_stm32_init()
428 usb_dc_stm32_state.in_ep_state[EP0_IDX].ep_mps = EP0_MPS; in usb_dc_stm32_init()
604 LOG_DBG("ep %x, mps %d, type %d", cfg->ep_addr, cfg->ep_mps, in usb_dc_ep_check_cap()
630 ep_cfg->ep_addr, ep_state->ep_mps, ep_cfg->ep_mps, in usb_dc_ep_configure()
634 if (ep_cfg->ep_mps > ep_state->ep_pma_buf_len) { in usb_dc_ep_configure()
636 (usb_dc_stm32_state.pma_offset + ep_cfg->ep_mps)) { in usb_dc_ep_configure()
641 ep_state->ep_pma_buf_len = ep_cfg->ep_mps; in usb_dc_ep_configure()
642 usb_dc_stm32_state.pma_offset += ep_cfg->ep_mps; in usb_dc_ep_configure()
645 ep_state->ep_mps = ep_cfg->ep_mps; in usb_dc_ep_configure()
[all …]
Dusb_dc_dw.c360 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_DW_DEPCTLn_MSP_MASK >> in usb_dw_ep_set()
409 *p_depctl |= ep_mps << USB_DW_DEPCTL_MSP_OFFSET; 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_DW_DEPTSIZ_PKT_CNT_OFFSET) | 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 …]
Dusb_dc_kinetis.c279 if (cfg->ep_mps > USB_MAX_CTRL_MPS) { in usb_dc_ep_check_cap()
284 if (cfg->ep_mps > USB_MAX_FS_BULK_MPS) { in usb_dc_ep_check_cap()
289 if (cfg->ep_mps > USB_MAX_FS_INT_MPS) { in usb_dc_ep_check_cap()
294 if (cfg->ep_mps > USB_MAX_FS_ISO_MPS) { in usb_dc_ep_check_cap()
340 LOG_DBG("ep %x, mps %d, type %d", cfg->ep_addr, cfg->ep_mps, in usb_dc_ep_configure()
357 block->data = k_heap_alloc(&ep_buf_pool, cfg->ep_mps * 2U, K_MSEC(10)); in usb_dc_ep_configure()
359 (void)memset(block->data, 0, cfg->ep_mps * 2U); in usb_dc_ep_configure()
367 bdt[idx_odd].buf_addr = (uint32_t)((uint8_t *)block->data + cfg->ep_mps); in usb_dc_ep_configure()
368 LOG_INF("idx_odd %x", (uint32_t)((uint8_t *)block->data + cfg->ep_mps)); in usb_dc_ep_configure()
371 dev_data.ep_ctrl[ep_idx].mps_in = cfg->ep_mps; in usb_dc_ep_configure()
[all …]
Dusb_dc_native_posix.c155 LOG_DBG("ep %x, mps %d, type %d", cfg->ep_addr, cfg->ep_mps, in usb_dc_ep_check_cap()
163 if (cfg->ep_mps > USBIP_MAX_PACKET_SIZE) { in usb_dc_ep_check_cap()
185 uint16_t ep_mps = cfg->ep_mps; in usb_dc_ep_configure() local
199 usbip_ctrl.out_ep_ctrl[ep_idx].mps = ep_mps; in usb_dc_ep_configure()
201 usbip_ctrl.in_ep_ctrl[ep_idx].mps = ep_mps; in usb_dc_ep_configure()
Dusb_dc_sam_usbhs.c255 .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()
Dusb_dc_sam_usbc.c865 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()
Dusb_dc_rpi_pico.c525 cfg->ep_addr, cfg->ep_mps, cfg->ep_type); in usb_dc_ep_check_cap()
551 ep_cfg->ep_mps, ep_cfg->ep_type); in usb_dc_ep_configure()
553 ep_state->mps = ep_cfg->ep_mps; in usb_dc_ep_configure()
Dusb_dc_nrfx.c1381 LOG_DBG("ep 0x%02x, mps %d, type %d", ep_cfg->ep_addr, ep_cfg->ep_mps, in usb_dc_ep_check_cap()
1434 ep_ctx->cfg.max_sz = ep_cfg->ep_mps; in usb_dc_ep_configure()
1437 if ((ep_cfg->ep_mps & (ep_cfg->ep_mps - 1)) != 0U) { in usb_dc_ep_configure()
1444 ep_cfg->ep_mps); in usb_dc_ep_configure()
Dusb_dc_smartbond.c1063 LOG_DBG("ep %x, mps %d, type %d", cfg->ep_addr, cfg->ep_mps, cfg->ep_type); in usb_dc_ep_check_cap()
1076 if (ep_out_buf_size[ep_idx] < cfg->ep_mps) { in usb_dc_ep_check_cap()
1236 ep_state->mps = ep_cfg->ep_mps; in usb_dc_ep_configure()
1242 if (ep_cfg->ep_mps > ep_out_buf_size[ep_idx]) { in usb_dc_ep_configure()
Dusb_dc_sam0.c413 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()
Dusb_dc_it82xx2.c1011 udata0.ep_data[ep_idx].mps = cfg->ep_mps; in usb_dc_ep_check_cap()
1043 if (!cfg->ep_mps) { in usb_dc_ep_configure()
1049 udata0.ep_data[ep_idx].mps = cfg->ep_mps; in usb_dc_ep_configure()
/Zephyr-Core-3.5.0/subsys/usb/device/
Dusb_descriptor.c245 ep_cfg.ep_mps = ep_descr->wMaxPacketSize; in usb_validate_ep_cfg_data()
362 .ep_mps = USB_MAX_CTRL_MPS, in usb_desc_update_mps0()
370 ep_cfg.ep_mps = 8; in usb_desc_update_mps0()
373 ep_cfg.ep_mps = 0; in usb_desc_update_mps0()
379 desc->bMaxPacketSize0 = ep_cfg.ep_mps; in usb_desc_update_mps0()
Dusb_device.c564 ep_cfg.ep_mps = sys_le16_to_cpu(ep_desc->wMaxPacketSize); in set_endpoint()
568 ep_cfg.ep_addr, ep_cfg.ep_type, ep_cfg.ep_mps); in set_endpoint()
1641 ep0_cfg.ep_mps = usb_dev.mps0; in usb_enable()
/Zephyr-Core-3.5.0/drivers/usb/udc/
Dudc_stm32.c55 uint16_t ep_mps; member
404 size = MIN(ep->mps, cfg->ep_mps); in udc_stm32_ep_mem_config()
433 if (cfg->ep_mps % 4 || cfg->ep0_mps % 4) { in udc_stm32_mem_init()
435 cfg->ep0_mps, cfg->ep_mps); in udc_stm32_mem_init()
442 words = MAX(0x40, cfg->ep_mps / 4); in udc_stm32_mem_init()
473 words = MIN(ep->mps, cfg->ep_mps) / 4; in udc_stm32_ep_mem_config()
824 .ep_mps = EP_MPS,
1040 ep_cfg_out[i].caps.mps = cfg->ep_mps; in udc_stm32_driver_init0()
/Zephyr-Core-3.5.0/include/zephyr/drivers/usb/
Dusb_dc.h117 uint16_t ep_mps; member