/Zephyr-Core-3.7.0/drivers/usb/device/ |
D | usb_dc_native_posix.c | 378 int usb_dc_ep_read_wait(uint8_t ep, uint8_t *data, uint32_t max_data_len, in usb_dc_ep_read_wait() argument 396 if (!data && max_data_len) { in usb_dc_ep_read_wait() 407 if (data == NULL && max_data_len == 0 && read_bytes != NULL) { in usb_dc_ep_read_wait() 413 to_copy = MIN(usbip_ctrl.out_ep_ctrl[ep_idx].data_len, max_data_len); in usb_dc_ep_read_wait() 448 const uint32_t max_data_len, uint32_t * const read_bytes) in usb_dc_ep_read() argument 450 LOG_DBG("ep %x max_data_len %u", ep, max_data_len); in usb_dc_ep_read() 452 if (usb_dc_ep_read_wait(ep, data, max_data_len, read_bytes) != 0) { in usb_dc_ep_read() 456 if (!data && !max_data_len) { in usb_dc_ep_read()
|
D | usb_dc_mcux.c | 589 uint32_t data_len, uint32_t max_data_len) in update_control_stage() argument 605 if ((data_len >= max_data_len) || in update_control_stage() 613 int usb_dc_ep_read_wait(uint8_t ep, uint8_t *data, uint32_t max_data_len, in usb_dc_ep_read_wait() argument 632 if (!data && max_data_len) { in usb_dc_ep_read_wait() 650 if (!data && !max_data_len) { in usb_dc_ep_read_wait() 660 if (data_len > max_data_len) { in usb_dc_ep_read_wait() 662 data_len = max_data_len; in usb_dc_ep_read_wait() 677 data_len, max_data_len); in usb_dc_ep_read_wait() 724 const uint32_t max_data_len, uint32_t *const read_bytes) in usb_dc_ep_read() argument 726 int retval = usb_dc_ep_read_wait(ep, data, max_data_len, read_bytes); in usb_dc_ep_read() [all …]
|
D | usb_dc_stm32.c | 615 int usb_dc_ep_start_read(uint8_t ep, uint8_t *data, uint32_t max_data_len) in usb_dc_ep_start_read() argument 619 LOG_DBG("ep 0x%02x, len %u", ep, max_data_len); in usb_dc_ep_start_read() 622 if (!USB_EP_DIR_IS_OUT(ep) && (ep != EP0_IN || max_data_len)) { in usb_dc_ep_start_read() 627 if (max_data_len > EP_MPS) { in usb_dc_ep_start_read() 628 max_data_len = EP_MPS; in usb_dc_ep_start_read() 633 max_data_len); in usb_dc_ep_start_read() 911 int usb_dc_ep_read_wait(uint8_t ep, uint8_t *data, uint32_t max_data_len, in usb_dc_ep_read_wait() argument 924 LOG_DBG("ep 0x%02x, %u bytes, %u+%u, %p", ep, max_data_len, in usb_dc_ep_read_wait() 937 read_count = MIN(read_count, max_data_len); in usb_dc_ep_read_wait() 942 } else if (max_data_len) { in usb_dc_ep_read_wait() [all …]
|
D | usb_dc_rpi_pico.c | 772 uint32_t max_data_len, uint32_t *read_bytes) in usb_dc_ep_read_wait() argument 789 if (read_count != max_data_len) { in usb_dc_ep_read_wait() 791 " (expected: %d, read: %d)", read_count, max_data_len); in usb_dc_ep_read_wait() 797 LOG_DBG("ep 0x%02x, %u bytes, %u+%u, %p", ep, max_data_len, ep_state->read_offset, in usb_dc_ep_read_wait() 801 read_count = MIN(read_count, max_data_len); in usb_dc_ep_read_wait() 810 } else if (max_data_len) { in usb_dc_ep_read_wait() 900 const uint32_t max_data_len, uint32_t *const read_bytes) in usb_dc_ep_read() argument 902 if (usb_dc_ep_read_wait(ep, data, max_data_len, read_bytes) != 0) { in usb_dc_ep_read() 906 if (!max_data_len) { in usb_dc_ep_read()
|
D | usb_dc_sam_usbhs.c | 779 int usb_dc_ep_read(uint8_t ep, uint8_t *data, uint32_t max_data_len, uint32_t *read_bytes) in usb_dc_ep_read() argument 784 rc = usb_dc_ep_read_wait(ep, data, max_data_len, read_bytes); in usb_dc_ep_read() 790 if (!data && !max_data_len) { in usb_dc_ep_read() 827 int usb_dc_ep_read_wait(uint8_t ep, uint8_t *data, uint32_t max_data_len, in usb_dc_ep_read_wait() argument 855 if (!data && !max_data_len) { in usb_dc_ep_read_wait() 866 if (data_len > max_data_len) { in usb_dc_ep_read_wait() 868 data_len = max_data_len; in usb_dc_ep_read_wait()
|
D | usb_dc_kinetis.c | 659 int usb_dc_ep_read_wait(uint8_t ep, uint8_t *data, uint32_t max_data_len, in usb_dc_ep_read_wait() argument 687 if (!data && max_data_len) { in usb_dc_ep_read_wait() 699 if (!data && !max_data_len) { in usb_dc_ep_read_wait() 710 if (data_len > max_data_len) { in usb_dc_ep_read_wait() 712 data_len = max_data_len; in usb_dc_ep_read_wait() 721 LOG_DBG("Read idx %d, req %d, read %d bytes", bd_idx, max_data_len, in usb_dc_ep_read_wait() 781 const uint32_t max_data_len, uint32_t *const read_bytes) in usb_dc_ep_read() argument 783 int retval = usb_dc_ep_read_wait(ep, data, max_data_len, read_bytes); in usb_dc_ep_read() 789 if (!data && !max_data_len) { in usb_dc_ep_read()
|
D | usb_dc_sam0.c | 632 int usb_dc_ep_read_ex(uint8_t ep, uint8_t *buf, uint32_t max_data_len, in usb_dc_ep_read_ex() argument 671 take = MIN(max_data_len, remain); in usb_dc_ep_read_ex() 690 int usb_dc_ep_read(uint8_t ep, uint8_t *buf, uint32_t max_data_len, uint32_t *read_bytes) in usb_dc_ep_read() argument 692 return usb_dc_ep_read_ex(ep, buf, max_data_len, read_bytes, false); in usb_dc_ep_read() 695 int usb_dc_ep_read_wait(uint8_t ep, uint8_t *buf, uint32_t max_data_len, in usb_dc_ep_read_wait() argument 698 return usb_dc_ep_read_ex(ep, buf, max_data_len, read_bytes, true); in usb_dc_ep_read_wait()
|
D | usb_dc_dw.c | 1230 int usb_dc_ep_read_wait(uint8_t ep, uint8_t *data, uint32_t max_data_len, in usb_dc_ep_read_wait() argument 1249 if (!data && max_data_len) { in usb_dc_ep_read_wait() 1262 if (!data && !max_data_len) { in usb_dc_ep_read_wait() 1273 if (data_len > max_data_len) { in usb_dc_ep_read_wait() 1275 bytes_to_copy = max_data_len; in usb_dc_ep_read_wait() 1280 LOG_DBG("Read EP%d, req %d, read %d bytes", ep, max_data_len, in usb_dc_ep_read_wait() 1330 const uint32_t max_data_len, uint32_t * const read_bytes) in usb_dc_ep_read() argument 1332 if (usb_dc_ep_read_wait(ep, data, max_data_len, read_bytes) != 0) { in usb_dc_ep_read() 1336 if (!data && !max_data_len) { in usb_dc_ep_read()
|
D | usb_dc_it82xx2.c | 1336 int usb_dc_ep_read(uint8_t ep, uint8_t *buf, uint32_t max_data_len, in usb_dc_ep_read() argument 1358 if (!buf && !max_data_len) { in usb_dc_ep_read() 1394 if (rx_fifo_len > max_data_len) { in usb_dc_ep_read() 1395 *read_bytes = max_data_len; in usb_dc_ep_read() 1396 for (uint32_t idx = 0; idx < max_data_len; idx++) { in usb_dc_ep_read() 1400 LOG_DBG("Read Max (%d) Packets", max_data_len); in usb_dc_ep_read() 1438 int usb_dc_ep_read_wait(uint8_t ep, uint8_t *buf, uint32_t max_data_len, in usb_dc_ep_read_wait() argument 1468 *read_bytes = (rx_fifo_len > max_data_len) ? in usb_dc_ep_read_wait() 1469 max_data_len : rx_fifo_len; in usb_dc_ep_read_wait()
|
D | usb_dc_nrfx.c | 1713 int usb_dc_ep_read_wait(uint8_t ep, uint8_t *data, uint32_t max_data_len, in usb_dc_ep_read_wait() argument 1728 if (!data && max_data_len) { in usb_dc_ep_read_wait() 1744 bytes_to_copy = MIN(max_data_len, ep_ctx->buf.len); in usb_dc_ep_read_wait() 1746 if (!data && !max_data_len) { in usb_dc_ep_read_wait() 1815 const uint32_t max_data_len, uint32_t *const read_bytes) in usb_dc_ep_read() argument 1817 LOG_DBG("ep_read: ep 0x%02x, maxlen %d", ep, max_data_len); in usb_dc_ep_read() 1820 ret = usb_dc_ep_read_wait(ep, data, max_data_len, read_bytes); in usb_dc_ep_read() 1825 if (!data && !max_data_len) { in usb_dc_ep_read()
|
D | usb_dc_sam_usbc.c | 1338 int usb_dc_ep_read_ex(uint8_t ep, uint8_t *data, uint32_t max_data_len, in usb_dc_ep_read_ex() argument 1382 take = MIN(max_data_len, remaining); in usb_dc_ep_read_ex() 1439 int usb_dc_ep_read(uint8_t ep, uint8_t *data, uint32_t max_data_len, in usb_dc_ep_read() argument 1442 return usb_dc_ep_read_ex(ep, data, max_data_len, read_bytes, false); in usb_dc_ep_read() 1445 int usb_dc_ep_read_wait(uint8_t ep, uint8_t *data, uint32_t max_data_len, in usb_dc_ep_read_wait() argument 1448 return usb_dc_ep_read_ex(ep, data, max_data_len, read_bytes, true); in usb_dc_ep_read_wait()
|
D | usb_dc_smartbond.c | 1226 int usb_dc_ep_read_wait(uint8_t ep, uint8_t *data, uint32_t max_data_len, in usb_dc_ep_read_wait() argument 1237 LOG_DBG("ep 0x%02x, %u bytes, %p", ep, max_data_len, (void *)data); in usb_dc_ep_read_wait() 1246 read_count = MIN(read_count, max_data_len); in usb_dc_ep_read_wait() 1249 } else if (max_data_len) { in usb_dc_ep_read_wait() 1261 const uint32_t max_data_len, uint32_t *const read_bytes) in usb_dc_ep_read() argument 1263 if (usb_dc_ep_read_wait(ep, data, max_data_len, read_bytes) != 0) { in usb_dc_ep_read()
|
D | usb_dc_numaker.c | 1735 int usb_dc_ep_read(const uint8_t ep, uint8_t *const data, const uint32_t max_data_len, in usb_dc_ep_read() argument 1743 rc = usb_dc_ep_read_wait(ep, data, max_data_len, read_bytes); in usb_dc_ep_read() 1760 int usb_dc_ep_read_wait(uint8_t ep, uint8_t *data_buf, uint32_t max_data_len, uint32_t *read_bytes) in usb_dc_ep_read_wait() argument 1788 if (!data_buf || max_data_len != 8) { in usb_dc_ep_read_wait() 1815 data_len_act = max_data_len; in usb_dc_ep_read_wait() 1825 } else if (max_data_len) { in usb_dc_ep_read_wait()
|
/Zephyr-Core-3.7.0/include/zephyr/drivers/usb/ |
D | usb_dc.h | 337 const uint32_t max_data_len, uint32_t *const read_bytes); 373 int usb_dc_ep_read_wait(uint8_t ep, uint8_t *data, uint32_t max_data_len,
|
/Zephyr-Core-3.7.0/include/zephyr/usb/ |
D | usb_device.h | 286 int usb_read(uint8_t ep, uint8_t *data, uint32_t max_data_len, uint32_t *ret_bytes); 332 int usb_ep_read_wait(uint8_t ep, uint8_t *data, uint32_t max_data_len,
|
/Zephyr-Core-3.7.0/include/zephyr/usb/class/ |
D | usb_hid.h | 102 uint32_t max_data_len,
|
/Zephyr-Core-3.7.0/subsys/usb/device_next/class/ |
D | usbd_hid_api.c | 174 uint8_t *data, uint32_t max_data_len, uint32_t *ret_bytes) in hid_int_ep_read() argument 178 ARG_UNUSED(max_data_len); in hid_int_ep_read()
|
/Zephyr-Core-3.7.0/subsys/net/lib/lwm2m/ |
D | lwm2m_registry.c | 488 res_inst->max_data_len = buffer_len; in lwm2m_set_res_buf() 543 size_t max_data_len = 0; in lwm2m_engine_set() local 579 max_data_len = res_inst->max_data_len; in lwm2m_engine_set() 584 res_inst->res_inst_id, &max_data_len); in lwm2m_engine_set() 594 ret = lwm2m_check_buf_sizes(obj_field->data_type, len, max_data_len); in lwm2m_engine_set() 597 max_data_len); in lwm2m_engine_set() 647 if (!lwm2m_validate_time_resource_lenghts(max_data_len, len)) { in lwm2m_engine_set() 649 max_data_len); in lwm2m_engine_set() 653 if (max_data_len == sizeof(time_t)) { in lwm2m_engine_set() 850 *buffer_len = res_inst->max_data_len; in lwm2m_get_res_buf() [all …]
|
D | lwm2m_object.h | 255 _ri_ptr[_ri_idx + _i].max_data_len = \ 276 _ri_ptr[_ri_idx + _i].max_data_len = 0; \ 390 uint16_t max_data_len; member
|
D | lwm2m_pull_context.c | 306 write_buflen = res->res_instances->max_data_len; in do_firmware_transfer_reply_cb()
|
D | lwm2m_message_handling.c | 1049 data_len = res_inst->max_data_len; in lwm2m_write_handler()
|
/Zephyr-Core-3.7.0/subsys/usb/device/ |
D | usb_device.c | 1404 int usb_read(uint8_t ep, uint8_t *data, uint32_t max_data_len, uint32_t *ret_bytes) in usb_read() argument 1406 return usb_dc_ep_read(ep, data, max_data_len, ret_bytes); in usb_read() 1419 int usb_ep_read_wait(uint8_t ep, uint8_t *data, uint32_t max_data_len, uint32_t *ret_bytes) in usb_ep_read_wait() argument 1421 return usb_dc_ep_read_wait(ep, data, max_data_len, ret_bytes); in usb_ep_read_wait()
|
/Zephyr-Core-3.7.0/subsys/usb/device/class/hid/ |
D | core.c | 708 int hid_int_ep_read(const struct device *dev, uint8_t *data, uint32_t max_data_len, in hid_int_ep_read() argument 715 data, max_data_len, ret_bytes); in hid_int_ep_read()
|
/Zephyr-Core-3.7.0/subsys/bluetooth/host/ |
D | iso.c | 816 uint16_t max_data_len; in iso_chan_max_data_len() local 822 max_data_len = chan->qos->tx->sdu; in iso_chan_max_data_len() 828 max_data_len = MIN(max_data_len, max_controller_data_len); in iso_chan_max_data_len() 830 return max_data_len; in iso_chan_max_data_len() 861 uint16_t max_data_len; in validate_send() local 887 max_data_len = iso_chan_max_data_len(chan); in validate_send() 888 if (buf->len > max_data_len) { in validate_send() 890 max_data_len); in validate_send()
|