Lines Matching refs:ntb

344 			const union recv_ntb *const ntb, const uint16_t len)  in verify_nth16()  argument
346 const struct nth16 *nthdr16 = &ntb->nth; in verify_nth16()
349 if (len < sizeof(ntb->nth)) { in verify_nth16()
400 ndphdr16 = (const struct ndp16 *)(ntb->data + in verify_nth16()
428 const union recv_ntb *ntb = (union recv_ntb *)buf->data; in check_frame() local
429 const struct nth16 *nthdr16 = &ntb->nth; in check_frame()
438 ret = verify_nth16(data, ntb, len); in check_frame()
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()
455 sys_le16_to_cpu(ntb->nth.wBlockLength)); in check_frame()
494 LOG_HEXDUMP_DBG(ntb->data, len, "NTB"); in check_frame()
506 const union recv_ntb *ntb = (union recv_ntb *)buf->data; in cdc_ncm_acl_out_cb() local
542 nthdr16 = &ntb->nth; 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()
1025 union send_ntb *ntb; in cdc_ncm_send() local
1046 ntb = (union send_ntb *)buf->data; in cdc_ncm_send()
1048 ntb->nth.dwSignature = sys_cpu_to_le32(NTH16_SIGNATURE); in cdc_ncm_send()
1049 ntb->nth.wHeaderLength = sys_cpu_to_le16(sizeof(struct nth16)); in cdc_ncm_send()
1050 ntb->nth.wSequence = sys_cpu_to_le16(++data->tx_seq); in cdc_ncm_send()
1051 ntb->nth.wNdpIndex = sys_cpu_to_le16(sizeof(struct nth16)); in cdc_ncm_send()
1052 ntb->ndp.dwSignature = sys_cpu_to_le32(NDP16_SIGNATURE_NCM0); in cdc_ncm_send()
1053 ntb->ndp.wLength = sys_cpu_to_le16(sizeof(struct ndp16) + in cdc_ncm_send()
1056 ntb->ndp.wNextNdpIndex = 0; in cdc_ncm_send()
1057 ntb->ndp_datagram[0].wDatagramIndex = in cdc_ncm_send()
1058 sys_cpu_to_le16(sys_le16_to_cpu(ntb->nth.wHeaderLength) + in cdc_ncm_send()
1059 sys_le16_to_cpu(ntb->ndp.wLength)); in cdc_ncm_send()
1060 ntb->ndp_datagram[0].wDatagramLength = sys_cpu_to_le16(len); in cdc_ncm_send()
1061 ntb->ndp_datagram[1].wDatagramIndex = 0; in cdc_ncm_send()
1062 ntb->ndp_datagram[1].wDatagramLength = 0; in cdc_ncm_send()
1063 ntb->nth.wBlockLength = sys_cpu_to_le16( in cdc_ncm_send()
1064 sys_le16_to_cpu(ntb->ndp_datagram[0].wDatagramIndex) + len); in cdc_ncm_send()
1066 net_buf_add(buf, sys_le16_to_cpu(ntb->ndp_datagram[0].wDatagramIndex)); in cdc_ncm_send()
1077 if (sys_le16_to_cpu(ntb->nth.wBlockLength) % cdc_ncm_get_bulk_in_mps(c_data) == 0) { in cdc_ncm_send()