Lines Matching refs:iso
517 struct usbip_iso_packet_descriptor *iso, int send) in usbip_iso_packet_correct_endian() argument
521 iso->offset = cpu_to_be32(iso->offset); in usbip_iso_packet_correct_endian()
522 iso->length = cpu_to_be32(iso->length); in usbip_iso_packet_correct_endian()
523 iso->status = cpu_to_be32(iso->status); in usbip_iso_packet_correct_endian()
524 iso->actual_length = cpu_to_be32(iso->actual_length); in usbip_iso_packet_correct_endian()
526 iso->offset = be32_to_cpu(iso->offset); in usbip_iso_packet_correct_endian()
527 iso->length = be32_to_cpu(iso->length); in usbip_iso_packet_correct_endian()
528 iso->status = be32_to_cpu(iso->status); in usbip_iso_packet_correct_endian()
529 iso->actual_length = be32_to_cpu(iso->actual_length); in usbip_iso_packet_correct_endian()
533 static void usbip_pack_iso(struct usbip_iso_packet_descriptor *iso, in usbip_pack_iso() argument
537 iso->offset = uiso->offset; in usbip_pack_iso()
538 iso->length = uiso->length; in usbip_pack_iso()
539 iso->status = uiso->status; in usbip_pack_iso()
540 iso->actual_length = uiso->actual_length; in usbip_pack_iso()
542 uiso->offset = iso->offset; in usbip_pack_iso()
543 uiso->length = iso->length; in usbip_pack_iso()
544 uiso->status = iso->status; in usbip_pack_iso()
545 uiso->actual_length = iso->actual_length; in usbip_pack_iso()
553 struct usbip_iso_packet_descriptor *iso; in usbip_alloc_iso_desc_pdu() local
555 ssize_t size = np * sizeof(*iso); in usbip_alloc_iso_desc_pdu()
558 iso = kzalloc(size, GFP_KERNEL); in usbip_alloc_iso_desc_pdu()
559 if (!iso) in usbip_alloc_iso_desc_pdu()
563 usbip_pack_iso(&iso[i], &urb->iso_frame_desc[i], 1); in usbip_alloc_iso_desc_pdu()
564 usbip_iso_packet_correct_endian(&iso[i], 1); in usbip_alloc_iso_desc_pdu()
569 return iso; in usbip_alloc_iso_desc_pdu()
577 struct usbip_iso_packet_descriptor *iso; in usbip_recv_iso() local
579 int size = np * sizeof(*iso); in usbip_recv_iso()
609 iso = (struct usbip_iso_packet_descriptor *) buff; in usbip_recv_iso()
611 usbip_iso_packet_correct_endian(&iso[i], 0); in usbip_recv_iso()
612 usbip_pack_iso(&iso[i], &urb->iso_frame_desc[i], 0); in usbip_recv_iso()