Lines Matching refs:ndp16

1057 	struct usb_cdc_ncm_ndp16 *ndp16 = NULL;  in cdc_ncm_ndp()  local
1079 ndp16 = (struct usb_cdc_ncm_ndp16 *)(skb->data + ndpoffset); in cdc_ncm_ndp()
1080 if (ndp16->dwSignature == sign) in cdc_ncm_ndp()
1081 return ndp16; in cdc_ncm_ndp()
1082 ndpoffset = le16_to_cpu(ndp16->wNextNdpIndex); in cdc_ncm_ndp()
1094 if (ndp16) in cdc_ncm_ndp()
1095 ndp16->wNextNdpIndex = cpu_to_le16(skb->len); in cdc_ncm_ndp()
1101 ndp16 = skb_put_zero(skb, ctx->max_ndp_size); in cdc_ncm_ndp()
1103 ndp16 = ctx->delayed_ndp16; in cdc_ncm_ndp()
1105 ndp16->dwSignature = sign; in cdc_ncm_ndp()
1106 ndp16->wLength = cpu_to_le16(sizeof(struct usb_cdc_ncm_ndp16) + sizeof(struct usb_cdc_ncm_dpe16)); in cdc_ncm_ndp()
1107 return ndp16; in cdc_ncm_ndp()
1115 struct usb_cdc_ncm_ndp16 *ndp16; in cdc_ncm_fill_tx_frame() local
1205 ndp16 = cdc_ncm_ndp(ctx, skb_out, sign, skb->len + ctx->tx_modulus + ctx->tx_remainder); in cdc_ncm_fill_tx_frame()
1211 if (!ndp16 || skb_out->len + skb->len + delayed_ndp_size > ctx->tx_curr_size) { in cdc_ncm_fill_tx_frame()
1233 ndplen = le16_to_cpu(ndp16->wLength); in cdc_ncm_fill_tx_frame()
1237 ndp16->dpe16[index].wDatagramLength = cpu_to_le16(skb->len); in cdc_ncm_fill_tx_frame()
1238 ndp16->dpe16[index].wDatagramIndex = cpu_to_le16(skb_out->len); in cdc_ncm_fill_tx_frame()
1239 ndp16->wLength = cpu_to_le16(ndplen + sizeof(struct usb_cdc_ncm_dpe16)); in cdc_ncm_fill_tx_frame()
1292 ndp16 = memset(ctx->delayed_ndp16, 0, ctx->max_ndp_size); in cdc_ncm_fill_tx_frame()
1463 struct usb_cdc_ncm_ndp16 *ndp16; in cdc_ncm_rx_verify_ndp16() local
1471 ndp16 = (struct usb_cdc_ncm_ndp16 *)(skb_in->data + ndpoffset); in cdc_ncm_rx_verify_ndp16()
1473 if (le16_to_cpu(ndp16->wLength) < USB_CDC_NCM_NDP16_LENGTH_MIN) { in cdc_ncm_rx_verify_ndp16()
1475 le16_to_cpu(ndp16->wLength)); in cdc_ncm_rx_verify_ndp16()
1479 ret = ((le16_to_cpu(ndp16->wLength) - in cdc_ncm_rx_verify_ndp16()
1503 struct usb_cdc_ncm_ndp16 *ndp16; in cdc_ncm_rx_fixup() local
1518 ndp16 = (struct usb_cdc_ncm_ndp16 *)(skb_in->data + ndpoffset); in cdc_ncm_rx_fixup()
1520 if (ndp16->dwSignature != cpu_to_le32(USB_CDC_NCM_NDP16_NOCRC_SIGN)) { in cdc_ncm_rx_fixup()
1523 le32_to_cpu(ndp16->dwSignature)); in cdc_ncm_rx_fixup()
1526 dpe16 = ndp16->dpe16; in cdc_ncm_rx_fixup()
1564 ndpoffset = le16_to_cpu(ndp16->wNextNdpIndex); in cdc_ncm_rx_fixup()