Lines Matching refs:ndp16
1091 struct usb_cdc_ncm_ndp16 *ndp16 = NULL; in cdc_ncm_ndp16() local
1113 ndp16 = (struct usb_cdc_ncm_ndp16 *)(skb->data + ndpoffset); in cdc_ncm_ndp16()
1114 if (ndp16->dwSignature == sign) in cdc_ncm_ndp16()
1115 return ndp16; in cdc_ncm_ndp16()
1116 ndpoffset = le16_to_cpu(ndp16->wNextNdpIndex); in cdc_ncm_ndp16()
1128 if (ndp16) in cdc_ncm_ndp16()
1129 ndp16->wNextNdpIndex = cpu_to_le16(skb->len); in cdc_ncm_ndp16()
1135 ndp16 = skb_put_zero(skb, ctx->max_ndp_size); in cdc_ncm_ndp16()
1137 ndp16 = ctx->delayed_ndp16; in cdc_ncm_ndp16()
1139 ndp16->dwSignature = sign; in cdc_ncm_ndp16()
1140 ndp16->wLength = cpu_to_le16(sizeof(struct usb_cdc_ncm_ndp16) + sizeof(struct usb_cdc_ncm_dpe16)); in cdc_ncm_ndp16()
1141 return ndp16; in cdc_ncm_ndp16()
1208 struct usb_cdc_ncm_ndp16 *ndp16; in cdc_ncm_fill_tx_frame() member
1310 ndp.ndp16 = cdc_ncm_ndp16(ctx, skb_out, sign, skb->len + ctx->tx_modulus + ctx->tx_remainder); in cdc_ncm_fill_tx_frame()
1318 if ((ctx->is_ndp16 && !ndp.ndp16) || (!ctx->is_ndp16 && !ndp.ndp32) || in cdc_ncm_fill_tx_frame()
1342 ndplen = le16_to_cpu(ndp.ndp16->wLength); in cdc_ncm_fill_tx_frame()
1346 ndp.ndp16->dpe16[index].wDatagramLength = cpu_to_le16(skb->len); in cdc_ncm_fill_tx_frame()
1347 ndp.ndp16->dpe16[index].wDatagramIndex = cpu_to_le16(skb_out->len); in cdc_ncm_fill_tx_frame()
1348 ndp.ndp16->wLength = cpu_to_le16(ndplen + sizeof(struct usb_cdc_ncm_dpe16)); in cdc_ncm_fill_tx_frame()
1410 ndp.ndp16 = memset(ctx->delayed_ndp16, 0, ctx->max_ndp_size); in cdc_ncm_fill_tx_frame()
1653 struct usb_cdc_ncm_ndp16 *ndp16; in cdc_ncm_rx_verify_ndp16() local
1661 ndp16 = (struct usb_cdc_ncm_ndp16 *)(skb_in->data + ndpoffset); in cdc_ncm_rx_verify_ndp16()
1663 if (le16_to_cpu(ndp16->wLength) < USB_CDC_NCM_NDP16_LENGTH_MIN) { in cdc_ncm_rx_verify_ndp16()
1665 le16_to_cpu(ndp16->wLength)); in cdc_ncm_rx_verify_ndp16()
1669 ret = ((le16_to_cpu(ndp16->wLength) - in cdc_ncm_rx_verify_ndp16()
1730 struct usb_cdc_ncm_ndp16 *ndp16; in cdc_ncm_rx_fixup() member
1756 ndp.ndp16 = (struct usb_cdc_ncm_ndp16 *)(skb_in->data + ndpoffset); in cdc_ncm_rx_fixup()
1758 if (ndp.ndp16->dwSignature != cpu_to_le32(USB_CDC_NCM_NDP16_NOCRC_SIGN)) { in cdc_ncm_rx_fixup()
1761 le32_to_cpu(ndp.ndp16->dwSignature)); in cdc_ncm_rx_fixup()
1764 dpe.dpe16 = ndp.ndp16->dpe16; in cdc_ncm_rx_fixup()
1828 ndpoffset = le16_to_cpu(ndp.ndp16->wNextNdpIndex); in cdc_ncm_rx_fixup()