Lines Matching defs:ndp32
1132 struct usb_cdc_ncm_ndp32 *ndp32 = NULL;
1154 ndp32 = (struct usb_cdc_ncm_ndp32 *)(skb->data + ndpoffset);
1155 if (ndp32->dwSignature == sign)
1156 return ndp32;
1157 ndpoffset = le32_to_cpu(ndp32->dwNextNdpIndex);
1169 if (ndp32)
1170 ndp32->dwNextNdpIndex = cpu_to_le32(skb->len);
1176 ndp32 = skb_put_zero(skb, ctx->max_ndp_size);
1178 ndp32 = ctx->delayed_ndp32;
1180 ndp32->dwSignature = sign;
1181 ndp32->wLength = cpu_to_le16(sizeof(struct usb_cdc_ncm_ndp32) + sizeof(struct usb_cdc_ncm_dpe32));
1182 return ndp32;
1195 struct usb_cdc_ncm_ndp32 *ndp32;
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) ||
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));
1403 ndp.ndp32 = memset(ctx->delayed_ndp32, 0, ctx->max_ndp_size);
1675 struct usb_cdc_ncm_ndp32 *ndp32;
1683 ndp32 = (struct usb_cdc_ncm_ndp32 *)(skb_in->data + ndpoffset);
1685 if (le16_to_cpu(ndp32->wLength) < USB_CDC_NCM_NDP32_LENGTH_MIN) {
1687 le16_to_cpu(ndp32->wLength));
1691 ret = ((le16_to_cpu(ndp32->wLength) -
1717 struct usb_cdc_ncm_ndp32 *ndp32;
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;
1816 ndpoffset = le32_to_cpu(ndp.ndp32->dwNextNdpIndex);