Lines Matching refs:ndp
1196 } ndp;
1296 ndp.ndp16 = cdc_ncm_ndp16(ctx, skb_out, sign, skb->len + ctx->tx_modulus + ctx->tx_remainder);
1298 ndp.ndp32 = cdc_ncm_ndp32(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));
1336 ndplen = le16_to_cpu(ndp.ndp32->wLength);
1339 ndp.ndp32->dpe32[index].dwDatagramLength = cpu_to_le32(skb->len);
1340 ndp.ndp32->dpe32[index].dwDatagramIndex = cpu_to_le32(skb_out->len);
1341 ndp.ndp32->wLength = cpu_to_le16(ndplen + sizeof(struct usb_cdc_ncm_dpe32));
1396 ndp.ndp16 = memset(ctx->delayed_ndp16, 0, ctx->max_ndp_size);
1403 ndp.ndp32 = memset(ctx->delayed_ndp32, 0, ctx->max_ndp_size);
1718 } ndp;
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;
1756 ndp.ndp32 = (struct usb_cdc_ncm_ndp32 *)(skb_in->data + ndpoffset);
1758 if (ndp.ndp32->dwSignature != cpu_to_le32(USB_CDC_NCM_NDP32_NOCRC_SIGN)) {
1761 le32_to_cpu(ndp.ndp32->dwSignature));
1764 dpe.dpe32 = ndp.ndp32->dpe32;
1814 ndpoffset = le16_to_cpu(ndp.ndp16->wNextNdpIndex);
1816 ndpoffset = le32_to_cpu(ndp.ndp32->dwNextNdpIndex);