Home
last modified time | relevance | path

Searched refs:ndp16 (Results 1 – 3 of 3) sorted by relevance

/linux/drivers/net/wwan/
H A Dmhi_wwan_mbim.c81 struct usb_cdc_ncm_ndp16 ndp16; member
112 struct usb_cdc_ncm_ndp16 *ndp16; in mbim_tx_fixup() local
134 ndp16 = &mbim_hdr->ndp16; in mbim_tx_fixup()
135 ndp16->dwSignature = cpu_to_le32(USB_CDC_MBIM_NDP16_IPS_SIGN | (session << 24)); in mbim_tx_fixup()
136 ndp16->wLength = cpu_to_le16(sizeof(struct usb_cdc_ncm_ndp16) in mbim_tx_fixup()
138 ndp16->wNextNdpIndex = 0; in mbim_tx_fixup()
141 ndp16->dpe16[0].wDatagramIndex = cpu_to_le16(sizeof(struct mbim_tx_hdr)); in mbim_tx_fixup()
142 ndp16->dpe16[0].wDatagramLength = cpu_to_le16(dgram_size); in mbim_tx_fixup()
145 ndp16->dpe16[1].wDatagramIndex = 0; in mbim_tx_fixup()
146 ndp16->dpe16[1].wDatagramLength = 0; in mbim_tx_fixup()
[all …]
/linux/drivers/net/usb/
H A Dcdc_ncm.c1092 struct usb_cdc_ncm_ndp16 *ndp16 = NULL; in cdc_ncm_ndp16() local
1114 ndp16 = (struct usb_cdc_ncm_ndp16 *)(skb->data + ndpoffset); in cdc_ncm_ndp16()
1115 if (ndp16->dwSignature == sign) in cdc_ncm_ndp16()
1116 return ndp16; in cdc_ncm_ndp16()
1117 ndpoffset = le16_to_cpu(ndp16->wNextNdpIndex); in cdc_ncm_ndp16()
1129 if (ndp16) in cdc_ncm_ndp16()
1130 ndp16->wNextNdpIndex = cpu_to_le16(skb->len); in cdc_ncm_ndp16()
1136 ndp16 = skb_put_zero(skb, ctx->max_ndp_size); in cdc_ncm_ndp16()
1138 ndp16 = ctx->delayed_ndp16; in cdc_ncm_ndp16()
1140 ndp16->dwSignature = sign; in cdc_ncm_ndp16()
[all …]
H A Dcdc_mbim.c420 struct usb_cdc_ncm_ndp16 *ndp16; in cdc_mbim_rx_fixup() local
437 ndp16 = (struct usb_cdc_ncm_ndp16 *)(skb_in->data + ndpoffset); in cdc_mbim_rx_fixup()
439 switch (ndp16->dwSignature & cpu_to_le32(0x00ffffff)) { in cdc_mbim_rx_fixup()
441 c = (u8 *)&ndp16->dwSignature; in cdc_mbim_rx_fixup()
448 c = (u8 *)&ndp16->dwSignature; in cdc_mbim_rx_fixup()
454 le32_to_cpu(ndp16->dwSignature)); in cdc_mbim_rx_fixup()
459 dpe16 = ndp16->dpe16; in cdc_mbim_rx_fixup()
492 ndpoffset = le16_to_cpu(ndp16->wNextNdpIndex); in cdc_mbim_rx_fixup()