Lines Matching refs:offset

248 	bpf_u_int32 offset = 0;  in swap_linux_usb_header()  local
260 offset += 8; /* skip past id */ in swap_linux_usb_header()
261 if (hdr->caplen < offset) in swap_linux_usb_header()
265 offset += 4; /* skip past various 1-byte fields */ in swap_linux_usb_header()
267 offset += 2; /* skip past bus_id */ in swap_linux_usb_header()
268 if (hdr->caplen < offset) in swap_linux_usb_header()
272 offset += 2; /* skip past various 1-byte fields */ in swap_linux_usb_header()
274 offset += 8; /* skip past ts_sec */ in swap_linux_usb_header()
275 if (hdr->caplen < offset) in swap_linux_usb_header()
279 offset += 4; /* skip past ts_usec */ in swap_linux_usb_header()
280 if (hdr->caplen < offset) in swap_linux_usb_header()
284 offset += 4; /* skip past status */ in swap_linux_usb_header()
285 if (hdr->caplen < offset) in swap_linux_usb_header()
289 offset += 4; /* skip past urb_len */ in swap_linux_usb_header()
290 if (hdr->caplen < offset) in swap_linux_usb_header()
294 offset += 4; /* skip past data_len */ in swap_linux_usb_header()
295 if (hdr->caplen < offset) in swap_linux_usb_header()
300 offset += 4; /* skip past s.iso.error_count */ in swap_linux_usb_header()
301 if (hdr->caplen < offset) in swap_linux_usb_header()
305 offset += 4; /* skip past s.iso.numdesc */ in swap_linux_usb_header()
306 if (hdr->caplen < offset) in swap_linux_usb_header()
310 offset += 8; /* skip USB setup header */ in swap_linux_usb_header()
332 offset += 4; /* skip past interval */ in swap_linux_usb_header()
333 if (hdr->caplen < offset) in swap_linux_usb_header()
337 offset += 4; /* skip past start_frame */ in swap_linux_usb_header()
338 if (hdr->caplen < offset) in swap_linux_usb_header()
342 offset += 4; /* skip past xfer_flags */ in swap_linux_usb_header()
343 if (hdr->caplen < offset) in swap_linux_usb_header()
347 offset += 4; /* skip past ndesc */ in swap_linux_usb_header()
348 if (hdr->caplen < offset) in swap_linux_usb_header()
357 pisodesc = (usb_isodesc *)(void *)(buf+offset); in swap_linux_usb_header()
359 offset += 4; /* skip past status */ in swap_linux_usb_header()
360 if (hdr->caplen < offset) in swap_linux_usb_header()
364 offset += 4; /* skip past offset */ in swap_linux_usb_header()
365 if (hdr->caplen < offset) in swap_linux_usb_header()
367 pisodesc->offset = SWAPLONG(pisodesc->offset); in swap_linux_usb_header()
369 offset += 4; /* skip past len */ in swap_linux_usb_header()
370 if (hdr->caplen < offset) in swap_linux_usb_header()
374 offset += 4; /* skip past padding */ in swap_linux_usb_header()