Lines Matching refs:ndp16

985 	struct usb_cdc_ncm_ndp16 *ndp16 = NULL;  in cdc_ncm_ndp()  local
1007 ndp16 = (struct usb_cdc_ncm_ndp16 *)(skb->data + ndpoffset); in cdc_ncm_ndp()
1008 if (ndp16->dwSignature == sign) in cdc_ncm_ndp()
1009 return ndp16; in cdc_ncm_ndp()
1010 ndpoffset = le16_to_cpu(ndp16->wNextNdpIndex); in cdc_ncm_ndp()
1022 if (ndp16) in cdc_ncm_ndp()
1023 ndp16->wNextNdpIndex = cpu_to_le16(skb->len); in cdc_ncm_ndp()
1029 ndp16 = (struct usb_cdc_ncm_ndp16 *)memset(skb_put(skb, ctx->max_ndp_size), 0, ctx->max_ndp_size); in cdc_ncm_ndp()
1031 ndp16 = ctx->delayed_ndp16; in cdc_ncm_ndp()
1033 ndp16->dwSignature = sign; in cdc_ncm_ndp()
1034 ndp16->wLength = cpu_to_le16(sizeof(struct usb_cdc_ncm_ndp16) + sizeof(struct usb_cdc_ncm_dpe16)); in cdc_ncm_ndp()
1035 return ndp16; in cdc_ncm_ndp()
1043 struct usb_cdc_ncm_ndp16 *ndp16; in cdc_ncm_fill_tx_frame() local
1104 ndp16 = cdc_ncm_ndp(ctx, skb_out, sign, skb->len + ctx->tx_modulus + ctx->tx_remainder); in cdc_ncm_fill_tx_frame()
1110 if (!ndp16 || skb_out->len + skb->len + delayed_ndp_size > ctx->tx_max) { in cdc_ncm_fill_tx_frame()
1132 ndplen = le16_to_cpu(ndp16->wLength); in cdc_ncm_fill_tx_frame()
1136 ndp16->dpe16[index].wDatagramLength = cpu_to_le16(skb->len); in cdc_ncm_fill_tx_frame()
1137 ndp16->dpe16[index].wDatagramIndex = cpu_to_le16(skb_out->len); in cdc_ncm_fill_tx_frame()
1138 ndp16->wLength = cpu_to_le16(ndplen + sizeof(struct usb_cdc_ncm_dpe16)); in cdc_ncm_fill_tx_frame()
1191 ndp16 = memset(ctx->delayed_ndp16, 0, ctx->max_ndp_size); in cdc_ncm_fill_tx_frame()
1360 struct usb_cdc_ncm_ndp16 *ndp16; in cdc_ncm_rx_verify_ndp16() local
1368 ndp16 = (struct usb_cdc_ncm_ndp16 *)(skb_in->data + ndpoffset); in cdc_ncm_rx_verify_ndp16()
1370 if (le16_to_cpu(ndp16->wLength) < USB_CDC_NCM_NDP16_LENGTH_MIN) { in cdc_ncm_rx_verify_ndp16()
1372 le16_to_cpu(ndp16->wLength)); in cdc_ncm_rx_verify_ndp16()
1376 ret = ((le16_to_cpu(ndp16->wLength) - in cdc_ncm_rx_verify_ndp16()
1400 struct usb_cdc_ncm_ndp16 *ndp16; in cdc_ncm_rx_fixup() local
1415 ndp16 = (struct usb_cdc_ncm_ndp16 *)(skb_in->data + ndpoffset); in cdc_ncm_rx_fixup()
1417 if (ndp16->dwSignature != cpu_to_le32(USB_CDC_NCM_NDP16_NOCRC_SIGN)) { in cdc_ncm_rx_fixup()
1420 le32_to_cpu(ndp16->dwSignature)); in cdc_ncm_rx_fixup()
1423 dpe16 = ndp16->dpe16; in cdc_ncm_rx_fixup()
1461 ndpoffset = le16_to_cpu(ndp16->wNextNdpIndex); in cdc_ncm_rx_fixup()