Lines Matching refs:nthdr16
346 const struct nth16 *nthdr16 = &ntb->nth; in verify_nth16() local
354 if (sys_le16_to_cpu(nthdr16->wHeaderLength) != sizeof(struct nth16)) { in verify_nth16()
356 sys_le16_to_cpu(nthdr16->wHeaderLength)); in verify_nth16()
360 if (sys_le32_to_cpu(nthdr16->dwSignature) != NTH16_SIGNATURE) { in verify_nth16()
362 (unsigned int)sys_le32_to_cpu(nthdr16->dwSignature)); in verify_nth16()
366 if (sys_le16_to_cpu(nthdr16->wSequence) != data->rx_seq) { in verify_nth16()
368 sys_le16_to_cpu(nthdr16->wSequence), data->rx_seq); in verify_nth16()
369 data->rx_seq = sys_le16_to_cpu(nthdr16->wSequence); in verify_nth16()
380 if (sys_le16_to_cpu(nthdr16->wBlockLength) != len) { in verify_nth16()
382 sys_le16_to_cpu(nthdr16->wBlockLength)); in verify_nth16()
386 if (sys_le16_to_cpu(nthdr16->wBlockLength) > CDC_NCM_RECV_NTB_MAX_SIZE) { in verify_nth16()
388 sys_le16_to_cpu(nthdr16->wBlockLength)); in verify_nth16()
392 if ((sys_le16_to_cpu(nthdr16->wNdpIndex) < sizeof(struct nth16)) || in verify_nth16()
393 (sys_le16_to_cpu(nthdr16->wNdpIndex) > in verify_nth16()
396 sys_le16_to_cpu(nthdr16->wNdpIndex), len); in verify_nth16()
401 sys_le16_to_cpu(nthdr16->wNdpIndex)); in verify_nth16()
429 const struct nth16 *nthdr16 = &ntb->nth; in check_frame() local
445 (ntb->data + sys_le16_to_cpu(nthdr16->wNdpIndex) + in check_frame()
448 ndptr16 = (const struct ndp16 *)(ntb->data + sys_le16_to_cpu(nthdr16->wNdpIndex)); in check_frame()
509 const struct nth16 *nthdr16; in cdc_ncm_acl_out_cb() local
542 nthdr16 = &ntb->nth; in cdc_ncm_acl_out_cb()
544 nthdr16->wSequence, nthdr16->wBlockLength, nthdr16->wNdpIndex); in cdc_ncm_acl_out_cb()
549 ndp = (const struct ndp16 *)(ntb->data + sys_le16_to_cpu(nthdr16->wNdpIndex)); in cdc_ncm_acl_out_cb()