Home
last modified time | relevance | path

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

/Zephyr-latest/subsys/usb/device_next/class/
Dusbd_cdc_ncm.c434 uint16_t max_ndx; in check_frame() local
450 max_ndx = (uint16_t)((sys_le16_to_cpu(ndptr16->wLength) - sizeof(struct ndp16)) / in check_frame()
453 if (max_ndx > (CDC_NCM_RECV_MAX_DATAGRAMS_PER_NTB + 1)) { in check_frame()
454 LOG_DBG("DROP: dgram count %d (%d)", max_ndx - 1, in check_frame()
459 if ((sys_le16_to_cpu(ndp_datagram[max_ndx-1].wDatagramIndex) != 0) || in check_frame()
460 (sys_le16_to_cpu(ndp_datagram[max_ndx-1].wDatagramLength) != 0)) { in check_frame()