• Home
  • Raw
  • Download

Lines Matching refs:ndp32

1145 	struct usb_cdc_ncm_ndp32 *ndp32 = NULL;  in cdc_ncm_ndp32()  local
1167 ndp32 = (struct usb_cdc_ncm_ndp32 *)(skb->data + ndpoffset); in cdc_ncm_ndp32()
1168 if (ndp32->dwSignature == sign) in cdc_ncm_ndp32()
1169 return ndp32; in cdc_ncm_ndp32()
1170 ndpoffset = le32_to_cpu(ndp32->dwNextNdpIndex); in cdc_ncm_ndp32()
1182 if (ndp32) in cdc_ncm_ndp32()
1183 ndp32->dwNextNdpIndex = cpu_to_le32(skb->len); in cdc_ncm_ndp32()
1189 ndp32 = skb_put_zero(skb, ctx->max_ndp_size); in cdc_ncm_ndp32()
1191 ndp32 = ctx->delayed_ndp32; in cdc_ncm_ndp32()
1193 ndp32->dwSignature = sign; in cdc_ncm_ndp32()
1194 ndp32->wLength = cpu_to_le16(sizeof(struct usb_cdc_ncm_ndp32) + sizeof(struct usb_cdc_ncm_dpe32)); in cdc_ncm_ndp32()
1195 return ndp32; in cdc_ncm_ndp32()
1208 struct usb_cdc_ncm_ndp32 *ndp32; in cdc_ncm_fill_tx_frame() member
1311 ndp.ndp32 = cdc_ncm_ndp32(ctx, skb_out, sign, skb->len + ctx->tx_modulus + ctx->tx_remainder); in cdc_ncm_fill_tx_frame()
1317 if ((ctx->is_ndp16 && !ndp.ndp16) || (!ctx->is_ndp16 && !ndp.ndp32) || in cdc_ncm_fill_tx_frame()
1349 ndplen = le16_to_cpu(ndp.ndp32->wLength); in cdc_ncm_fill_tx_frame()
1352 ndp.ndp32->dpe32[index].dwDatagramLength = cpu_to_le32(skb->len); in cdc_ncm_fill_tx_frame()
1353 ndp.ndp32->dpe32[index].dwDatagramIndex = cpu_to_le32(skb_out->len); in cdc_ncm_fill_tx_frame()
1354 ndp.ndp32->wLength = cpu_to_le16(ndplen + sizeof(struct usb_cdc_ncm_dpe32)); in cdc_ncm_fill_tx_frame()
1416 ndp.ndp32 = memset(ctx->delayed_ndp32, 0, ctx->max_ndp_size); in cdc_ncm_fill_tx_frame()
1688 struct usb_cdc_ncm_ndp32 *ndp32; in cdc_ncm_rx_verify_ndp32() local
1696 ndp32 = (struct usb_cdc_ncm_ndp32 *)(skb_in->data + ndpoffset); in cdc_ncm_rx_verify_ndp32()
1698 if (le16_to_cpu(ndp32->wLength) < USB_CDC_NCM_NDP32_LENGTH_MIN) { in cdc_ncm_rx_verify_ndp32()
1700 le16_to_cpu(ndp32->wLength)); in cdc_ncm_rx_verify_ndp32()
1704 ret = ((le16_to_cpu(ndp32->wLength) - in cdc_ncm_rx_verify_ndp32()
1730 struct usb_cdc_ncm_ndp32 *ndp32; in cdc_ncm_rx_fixup() member
1769 ndp.ndp32 = (struct usb_cdc_ncm_ndp32 *)(skb_in->data + ndpoffset); in cdc_ncm_rx_fixup()
1771 if (ndp.ndp32->dwSignature != cpu_to_le32(USB_CDC_NCM_NDP32_NOCRC_SIGN)) { in cdc_ncm_rx_fixup()
1774 le32_to_cpu(ndp.ndp32->dwSignature)); in cdc_ncm_rx_fixup()
1777 dpe.dpe32 = ndp.ndp32->dpe32; in cdc_ncm_rx_fixup()
1829 ndpoffset = le32_to_cpu(ndp.ndp32->dwNextNdpIndex); in cdc_ncm_rx_fixup()