/Zephyr-latest/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 | 704 int usb_dc_ep_start_read(uint8_t ep, uint8_t *data, uint32_t max_data_len) in usb_dc_ep_start_read() argument 708 LOG_DBG("ep 0x%02x, len %u", ep, max_data_len); in usb_dc_ep_start_read() 711 if (!USB_EP_DIR_IS_OUT(ep) && (ep != EP0_IN || max_data_len)) { in usb_dc_ep_start_read() 716 if (max_data_len > EP_MPS) { in usb_dc_ep_start_read() 717 max_data_len = EP_MPS; in usb_dc_ep_start_read() 722 max_data_len); in usb_dc_ep_start_read() 1000 int usb_dc_ep_read_wait(uint8_t ep, uint8_t *data, uint32_t max_data_len, in usb_dc_ep_read_wait() argument 1013 LOG_DBG("ep 0x%02x, %u bytes, %u+%u, %p", ep, max_data_len, in usb_dc_ep_read_wait() 1026 read_count = MIN(read_count, max_data_len); in usb_dc_ep_read_wait() 1031 } else if (max_data_len) { in usb_dc_ep_read_wait() [all …]
|
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_rpi_pico.c | 828 uint32_t max_data_len, uint32_t *read_bytes) in usb_dc_ep_read_wait() argument 845 if (read_count != max_data_len) { in usb_dc_ep_read_wait() 847 " (expected: %d, read: %d)", read_count, max_data_len); in usb_dc_ep_read_wait() 853 LOG_DBG("ep 0x%02x, %u bytes, %u+%u, %p", ep, max_data_len, ep_state->read_offset, in usb_dc_ep_read_wait() 857 read_count = MIN(read_count, max_data_len); in usb_dc_ep_read_wait() 866 } else if (max_data_len) { in usb_dc_ep_read_wait() 956 const uint32_t max_data_len, uint32_t *const read_bytes) in usb_dc_ep_read() argument 958 if (usb_dc_ep_read_wait(ep, data, max_data_len, read_bytes) != 0) { in usb_dc_ep_read() 962 if (!max_data_len) { in usb_dc_ep_read()
|
D | usb_dc_kinetis.c | 661 int usb_dc_ep_read_wait(uint8_t ep, uint8_t *data, uint32_t max_data_len, in usb_dc_ep_read_wait() argument 689 if (!data && max_data_len) { in usb_dc_ep_read_wait() 701 if (!data && !max_data_len) { in usb_dc_ep_read_wait() 712 if (data_len > max_data_len) { in usb_dc_ep_read_wait() 714 data_len = max_data_len; in usb_dc_ep_read_wait() 723 LOG_DBG("Read idx %d, req %d, read %d bytes", bd_idx, max_data_len, in usb_dc_ep_read_wait() 783 const uint32_t max_data_len, uint32_t *const read_bytes) in usb_dc_ep_read() argument 785 int retval = usb_dc_ep_read_wait(ep, data, max_data_len, read_bytes); in usb_dc_ep_read() 791 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 | 1382 int usb_dc_ep_read(uint8_t ep, uint8_t *buf, uint32_t max_data_len, in usb_dc_ep_read() argument 1404 if (!buf && !max_data_len) { in usb_dc_ep_read() 1440 if (rx_fifo_len > max_data_len) { in usb_dc_ep_read() 1441 *read_bytes = max_data_len; in usb_dc_ep_read() 1442 for (uint32_t idx = 0; idx < max_data_len; idx++) { in usb_dc_ep_read() 1446 LOG_DBG("Read Max (%d) Packets", max_data_len); in usb_dc_ep_read() 1484 int usb_dc_ep_read_wait(uint8_t ep, uint8_t *buf, uint32_t max_data_len, in usb_dc_ep_read_wait() argument 1514 *read_bytes = (rx_fifo_len > max_data_len) ? in usb_dc_ep_read_wait() 1515 max_data_len : rx_fifo_len; in usb_dc_ep_read_wait()
|
D | usb_dc_nrfx.c | 1714 int usb_dc_ep_read_wait(uint8_t ep, uint8_t *data, uint32_t max_data_len, in usb_dc_ep_read_wait() argument 1729 if (!data && max_data_len) { in usb_dc_ep_read_wait() 1745 bytes_to_copy = MIN(max_data_len, ep_ctx->buf.len); in usb_dc_ep_read_wait() 1747 if (!data && !max_data_len) { in usb_dc_ep_read_wait() 1816 const uint32_t max_data_len, uint32_t *const read_bytes) in usb_dc_ep_read() argument 1818 LOG_DBG("ep_read: ep 0x%02x, maxlen %d", ep, max_data_len); in usb_dc_ep_read() 1821 ret = usb_dc_ep_read_wait(ep, data, max_data_len, read_bytes); in usb_dc_ep_read() 1826 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-latest/include/zephyr/drivers/usb/ |
D | usb_dc.h | 339 const uint32_t max_data_len, uint32_t *const read_bytes); 375 int usb_dc_ep_read_wait(uint8_t ep, uint8_t *data, uint32_t max_data_len,
|
/Zephyr-latest/include/zephyr/usb/ |
D | usb_device.h | 288 int usb_read(uint8_t ep, uint8_t *data, uint32_t max_data_len, uint32_t *ret_bytes); 334 int usb_ep_read_wait(uint8_t ep, uint8_t *data, uint32_t max_data_len,
|
/Zephyr-latest/include/zephyr/usb/class/ |
D | usb_hid.h | 104 uint32_t max_data_len,
|
/Zephyr-latest/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-latest/subsys/net/lib/lwm2m/ |
D | lwm2m_registry.c | 488 res_inst->max_data_len = buffer_len; in lwm2m_set_res_buf() 544 size_t max_data_len = 0; in lwm2m_engine_set() local 580 max_data_len = res_inst->max_data_len; in lwm2m_engine_set() 585 res_inst->res_inst_id, &max_data_len); in lwm2m_engine_set() 595 ret = lwm2m_check_buf_sizes(obj_field->data_type, len, max_data_len); in lwm2m_engine_set() 598 max_data_len); in lwm2m_engine_set() 648 if (!lwm2m_validate_time_resource_lenghts(max_data_len, len)) { in lwm2m_engine_set() 650 max_data_len); in lwm2m_engine_set() 655 if (max_data_len == sizeof(time_t)) { in lwm2m_engine_set() 847 *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_shell.c | 776 ri->max_data_len); in print_object_instance()
|
D | lwm2m_message_handling.c | 1094 data_len = res_inst->max_data_len; in lwm2m_write_handler()
|
/Zephyr-latest/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-latest/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-latest/subsys/bluetooth/host/ |
D | iso.c | 788 uint16_t max_data_len; in iso_chan_max_data_len() local 794 max_data_len = chan->qos->tx->sdu; in iso_chan_max_data_len() 800 max_data_len = MIN(max_data_len, max_controller_data_len); in iso_chan_max_data_len() 802 return max_data_len; in iso_chan_max_data_len() 826 uint16_t max_data_len; in validate_send() local 864 max_data_len = iso_chan_max_data_len(chan); in validate_send() 865 if (buf->len > max_data_len) { in validate_send() 867 max_data_len); in validate_send()
|