Lines Matching refs:offset

194 	bpf_u_int32 offset = 0;  in swap_linux_usb_header()  local
206 offset += 8; /* skip past id */ in swap_linux_usb_header()
207 if (hdr->caplen < offset) in swap_linux_usb_header()
211 offset += 4; /* skip past various 1-byte fields */ in swap_linux_usb_header()
213 offset += 2; /* skip past bus_id */ in swap_linux_usb_header()
214 if (hdr->caplen < offset) in swap_linux_usb_header()
218 offset += 2; /* skip past various 1-byte fields */ in swap_linux_usb_header()
220 offset += 8; /* skip past ts_sec */ in swap_linux_usb_header()
221 if (hdr->caplen < offset) in swap_linux_usb_header()
225 offset += 4; /* skip past ts_usec */ in swap_linux_usb_header()
226 if (hdr->caplen < offset) in swap_linux_usb_header()
230 offset += 4; /* skip past status */ in swap_linux_usb_header()
231 if (hdr->caplen < offset) in swap_linux_usb_header()
235 offset += 4; /* skip past urb_len */ in swap_linux_usb_header()
236 if (hdr->caplen < offset) in swap_linux_usb_header()
240 offset += 4; /* skip past data_len */ in swap_linux_usb_header()
241 if (hdr->caplen < offset) in swap_linux_usb_header()
246 offset += 4; /* skip past s.iso.error_count */ in swap_linux_usb_header()
247 if (hdr->caplen < offset) in swap_linux_usb_header()
251 offset += 4; /* skip past s.iso.numdesc */ in swap_linux_usb_header()
252 if (hdr->caplen < offset) in swap_linux_usb_header()
256 offset += 8; /* skip USB setup header */ in swap_linux_usb_header()
278 offset += 4; /* skip past interval */ in swap_linux_usb_header()
279 if (hdr->caplen < offset) in swap_linux_usb_header()
283 offset += 4; /* skip past start_frame */ in swap_linux_usb_header()
284 if (hdr->caplen < offset) in swap_linux_usb_header()
288 offset += 4; /* skip past xfer_flags */ in swap_linux_usb_header()
289 if (hdr->caplen < offset) in swap_linux_usb_header()
293 offset += 4; /* skip past ndesc */ in swap_linux_usb_header()
294 if (hdr->caplen < offset) in swap_linux_usb_header()
303 pisodesc = (usb_isodesc *)(void *)(buf+offset); in swap_linux_usb_header()
305 offset += 4; /* skip past status */ in swap_linux_usb_header()
306 if (hdr->caplen < offset) in swap_linux_usb_header()
310 offset += 4; /* skip past offset */ in swap_linux_usb_header()
311 if (hdr->caplen < offset) in swap_linux_usb_header()
313 pisodesc->offset = SWAPLONG(pisodesc->offset); in swap_linux_usb_header()
315 offset += 4; /* skip past len */ in swap_linux_usb_header()
316 if (hdr->caplen < offset) in swap_linux_usb_header()
320 offset += 4; /* skip past padding */ in swap_linux_usb_header()