Lines Matching refs:ndp16
79 struct usb_cdc_ncm_ndp16 ndp16;
101 struct usb_cdc_ncm_ndp16 *ndp16;
123 ndp16 = &mbim_hdr->ndp16;
124 ndp16->dwSignature = cpu_to_le32(USB_CDC_MBIM_NDP16_IPS_SIGN | (session << 24));
125 ndp16->wLength = cpu_to_le16(sizeof(struct usb_cdc_ncm_ndp16)
127 ndp16->wNextNdpIndex = 0;
130 ndp16->dpe16[0].wDatagramIndex = cpu_to_le16(sizeof(struct mbim_tx_hdr));
131 ndp16->dpe16[0].wDatagramLength = cpu_to_le16(dgram_size);
134 ndp16->dpe16[1].wDatagramIndex = 0;
135 ndp16->dpe16[1].wDatagramLength = 0;
220 static int mbim_rx_verify_ndp16(struct sk_buff *skb, struct usb_cdc_ncm_ndp16 *ndp16)
224 if (le16_to_cpu(ndp16->wLength) < USB_CDC_NCM_NDP16_LENGTH_MIN) {
226 le16_to_cpu(ndp16->wLength));
230 ret = ((le16_to_cpu(ndp16->wLength) - sizeof(struct usb_cdc_ncm_ndp16))
256 struct usb_cdc_ncm_ndp16 ndp16;
262 if (skb_copy_bits(skb, ndpoffset, &ndp16, sizeof(ndp16))) {
269 nframes = mbim_rx_verify_ndp16(skb, &ndp16);
276 if ((ndp16.dwSignature & cpu_to_le32(MBIM_NDP16_SIGN_MASK))
282 session = (le32_to_cpu(ndp16.dwSignature) & ~MBIM_NDP16_SIGN_MASK) >> 24;
342 ndpoffset = (int)le16_to_cpu(ndp16.wNextNdpIndex);