Lines Matching refs:ndp16
531 /* use ndp16 by default */
1077 struct usb_cdc_ncm_ndp16 *ndp16 = NULL;
1099 ndp16 = (struct usb_cdc_ncm_ndp16 *)(skb->data + ndpoffset);
1100 if (ndp16->dwSignature == sign)
1101 return ndp16;
1102 ndpoffset = le16_to_cpu(ndp16->wNextNdpIndex);
1114 if (ndp16)
1115 ndp16->wNextNdpIndex = cpu_to_le16(skb->len);
1121 ndp16 = skb_put_zero(skb, ctx->max_ndp_size);
1123 ndp16 = ctx->delayed_ndp16;
1125 ndp16->dwSignature = sign;
1126 ndp16->wLength = cpu_to_le16(sizeof(struct usb_cdc_ncm_ndp16) + sizeof(struct usb_cdc_ncm_dpe16));
1127 return ndp16;
1194 struct usb_cdc_ncm_ndp16 *ndp16;
1296 ndp.ndp16 = cdc_ncm_ndp16(ctx, skb_out, sign, skb->len + ctx->tx_modulus + ctx->tx_remainder);
1304 if ((ctx->is_ndp16 && !ndp.ndp16) || (!ctx->is_ndp16 && !ndp.ndp32) ||
1328 ndplen = le16_to_cpu(ndp.ndp16->wLength);
1332 ndp.ndp16->dpe16[index].wDatagramLength = cpu_to_le16(skb->len);
1333 ndp.ndp16->dpe16[index].wDatagramIndex = cpu_to_le16(skb_out->len);
1334 ndp.ndp16->wLength = cpu_to_le16(ndplen + sizeof(struct usb_cdc_ncm_dpe16));
1396 ndp.ndp16 = memset(ctx->delayed_ndp16, 0, ctx->max_ndp_size);
1639 struct usb_cdc_ncm_ndp16 *ndp16;
1647 ndp16 = (struct usb_cdc_ncm_ndp16 *)(skb_in->data + ndpoffset);
1649 if (le16_to_cpu(ndp16->wLength) < USB_CDC_NCM_NDP16_LENGTH_MIN) {
1651 le16_to_cpu(ndp16->wLength));
1655 ret = ((le16_to_cpu(ndp16->wLength) -
1716 struct usb_cdc_ncm_ndp16 *ndp16;
1742 ndp.ndp16 = (struct usb_cdc_ncm_ndp16 *)(skb_in->data + ndpoffset);
1744 if (ndp.ndp16->dwSignature != cpu_to_le32(USB_CDC_NCM_NDP16_NOCRC_SIGN)) {
1747 le32_to_cpu(ndp.ndp16->dwSignature));
1750 dpe.dpe16 = ndp.ndp16->dpe16;
1814 ndpoffset = le16_to_cpu(ndp.ndp16->wNextNdpIndex);