Lines Matching refs:nth16
78 struct usb_cdc_ncm_nth16 nth16; member
100 struct usb_cdc_ncm_nth16 *nth16; in mbim_tx_fixup() local
115 nth16 = &mbim_hdr->nth16; in mbim_tx_fixup()
116 nth16->dwSignature = cpu_to_le32(USB_CDC_NCM_NTH16_SIGN); in mbim_tx_fixup()
117 nth16->wHeaderLength = cpu_to_le16(sizeof(struct usb_cdc_ncm_nth16)); in mbim_tx_fixup()
118 nth16->wSequence = cpu_to_le16(tx_seq); in mbim_tx_fixup()
119 nth16->wBlockLength = cpu_to_le16(skb->len); in mbim_tx_fixup()
120 nth16->wNdpIndex = cpu_to_le16(sizeof(struct usb_cdc_ncm_nth16)); in mbim_tx_fixup()
184 struct usb_cdc_ncm_nth16 *nth16; in mbim_rx_verify_nth16() local
193 nth16 = (struct usb_cdc_ncm_nth16 *)skb->data; in mbim_rx_verify_nth16()
195 if (nth16->dwSignature != cpu_to_le32(USB_CDC_NCM_NTH16_SIGN)) { in mbim_rx_verify_nth16()
197 le32_to_cpu(nth16->dwSignature)); in mbim_rx_verify_nth16()
202 len = le16_to_cpu(nth16->wBlockLength); in mbim_rx_verify_nth16()
209 if (mbim->rx_seq + 1 != le16_to_cpu(nth16->wSequence) && in mbim_rx_verify_nth16()
210 (mbim->rx_seq || le16_to_cpu(nth16->wSequence)) && in mbim_rx_verify_nth16()
211 !(mbim->rx_seq == 0xffff && !le16_to_cpu(nth16->wSequence))) { in mbim_rx_verify_nth16()
213 mbim->rx_seq, le16_to_cpu(nth16->wSequence)); in mbim_rx_verify_nth16()
215 mbim->rx_seq = le16_to_cpu(nth16->wSequence); in mbim_rx_verify_nth16()
217 return le16_to_cpu(nth16->wNdpIndex); in mbim_rx_verify_nth16()