Home | History | Annotate | Download | only in mbim_compliance

Lines Matching refs:ndp

95         @returns tuple of (nth, ndp, ndp_entries, payload) where,
97 ndp - NDP header object received.
98 ndp_entries - Array of NDP entry header objects.
116 1. We currently only support a single NDP frame within an NTB.
118 (instead of IPS) prefix in NDP signature if required.
214 @param ntb_ndp_alignment : Used for NDP header alignment within the
224 # the NDP header and the associated NDP entries.
229 # We need one extra ZLP NDP entry at the end, so account for it.
233 # Create the NDP header and an NDP_ENTRY header for each packet.
235 self.ndp = self._ndp_class(
260 # Store the NDP offset to be used in creating NTH header.
261 # NDP alignment is specified by the device with a minimum of 4 and it
289 raw_ntb_frame += array.array('B', self.ndp.pack())
301 This function parses an NTB frame and returns the NTH header, NDP header
307 @returns tuple of (nth, ndp, ndp_entries, payload) where,
309 ndp - NDP header object received.
310 ndp_entries - Array of NDP entry header objects.
314 # Read the nth header to find the ndp header index
324 # Read the NDP header to find the number of packets in the entry
325 self.ndp = self._ndp_class(raw_data=raw_ntb_frame[ndp_offset:])
327 (self.ndp.length - self._ndp_class.get_struct_len()) /
339 # There is one extra ZLP NDP entry at the end, so account for it.
348 return (self.nth, self.ndp, self.ndp_entries, self.payload)