Lines Matching refs:ndp

1204 	} ndp;  in cdc_ncm_fill_tx_frame()  local
1306 ndp.ndp16 = cdc_ncm_ndp16(ctx, skb_out, sign, skb->len + ctx->tx_modulus + ctx->tx_remainder); in cdc_ncm_fill_tx_frame()
1308 ndp.ndp32 = cdc_ncm_ndp32(ctx, skb_out, sign, skb->len + ctx->tx_modulus + ctx->tx_remainder); in cdc_ncm_fill_tx_frame()
1314 if ((ctx->is_ndp16 && !ndp.ndp16) || (!ctx->is_ndp16 && !ndp.ndp32) || in cdc_ncm_fill_tx_frame()
1338 ndplen = le16_to_cpu(ndp.ndp16->wLength); in cdc_ncm_fill_tx_frame()
1342 ndp.ndp16->dpe16[index].wDatagramLength = cpu_to_le16(skb->len); in cdc_ncm_fill_tx_frame()
1343 ndp.ndp16->dpe16[index].wDatagramIndex = cpu_to_le16(skb_out->len); in cdc_ncm_fill_tx_frame()
1344 ndp.ndp16->wLength = cpu_to_le16(ndplen + sizeof(struct usb_cdc_ncm_dpe16)); in cdc_ncm_fill_tx_frame()
1346 ndplen = le16_to_cpu(ndp.ndp32->wLength); in cdc_ncm_fill_tx_frame()
1349 ndp.ndp32->dpe32[index].dwDatagramLength = cpu_to_le32(skb->len); in cdc_ncm_fill_tx_frame()
1350 ndp.ndp32->dpe32[index].dwDatagramIndex = cpu_to_le32(skb_out->len); in cdc_ncm_fill_tx_frame()
1351 ndp.ndp32->wLength = cpu_to_le16(ndplen + sizeof(struct usb_cdc_ncm_dpe32)); in cdc_ncm_fill_tx_frame()
1406 ndp.ndp16 = memset(ctx->delayed_ndp16, 0, ctx->max_ndp_size); in cdc_ncm_fill_tx_frame()
1413 ndp.ndp32 = memset(ctx->delayed_ndp32, 0, ctx->max_ndp_size); in cdc_ncm_fill_tx_frame()
1723 } ndp; in cdc_ncm_rx_fixup() local
1747 ndp.ndp16 = (struct usb_cdc_ncm_ndp16 *)(skb_in->data + ndpoffset); in cdc_ncm_rx_fixup()
1749 if (ndp.ndp16->dwSignature != cpu_to_le32(USB_CDC_NCM_NDP16_NOCRC_SIGN)) { in cdc_ncm_rx_fixup()
1752 le32_to_cpu(ndp.ndp16->dwSignature)); in cdc_ncm_rx_fixup()
1755 dpe.dpe16 = ndp.ndp16->dpe16; in cdc_ncm_rx_fixup()
1761 ndp.ndp32 = (struct usb_cdc_ncm_ndp32 *)(skb_in->data + ndpoffset); in cdc_ncm_rx_fixup()
1763 if (ndp.ndp32->dwSignature != cpu_to_le32(USB_CDC_NCM_NDP32_NOCRC_SIGN)) { in cdc_ncm_rx_fixup()
1766 le32_to_cpu(ndp.ndp32->dwSignature)); in cdc_ncm_rx_fixup()
1769 dpe.dpe32 = ndp.ndp32->dpe32; in cdc_ncm_rx_fixup()
1819 ndpoffset = le16_to_cpu(ndp.ndp16->wNextNdpIndex); in cdc_ncm_rx_fixup()
1821 ndpoffset = le32_to_cpu(ndp.ndp32->dwNextNdpIndex); in cdc_ncm_rx_fixup()