Lines Matching full:iso
69 pr_debug("ISO\n"); in usbip_dump_pipe()
603 struct usbip_iso_packet_descriptor *iso, int send) in usbip_iso_packet_correct_endian() argument
607 iso->offset = cpu_to_be32(iso->offset); in usbip_iso_packet_correct_endian()
608 iso->length = cpu_to_be32(iso->length); in usbip_iso_packet_correct_endian()
609 iso->status = cpu_to_be32(iso->status); in usbip_iso_packet_correct_endian()
610 iso->actual_length = cpu_to_be32(iso->actual_length); in usbip_iso_packet_correct_endian()
612 iso->offset = be32_to_cpu(iso->offset); in usbip_iso_packet_correct_endian()
613 iso->length = be32_to_cpu(iso->length); in usbip_iso_packet_correct_endian()
614 iso->status = be32_to_cpu(iso->status); in usbip_iso_packet_correct_endian()
615 iso->actual_length = be32_to_cpu(iso->actual_length); in usbip_iso_packet_correct_endian()
619 static void usbip_pack_iso(struct usbip_iso_packet_descriptor *iso, in usbip_pack_iso() argument
623 iso->offset = uiso->offset; in usbip_pack_iso()
624 iso->length = uiso->length; in usbip_pack_iso()
625 iso->status = uiso->status; in usbip_pack_iso()
626 iso->actual_length = uiso->actual_length; in usbip_pack_iso()
628 uiso->offset = iso->offset; in usbip_pack_iso()
629 uiso->length = iso->length; in usbip_pack_iso()
630 uiso->status = iso->status; in usbip_pack_iso()
631 uiso->actual_length = iso->actual_length; in usbip_pack_iso()
639 struct usbip_iso_packet_descriptor *iso; in usbip_alloc_iso_desc_pdu() local
641 ssize_t size = np * sizeof(*iso); in usbip_alloc_iso_desc_pdu()
644 iso = kzalloc(size, GFP_KERNEL); in usbip_alloc_iso_desc_pdu()
645 if (!iso) in usbip_alloc_iso_desc_pdu()
649 usbip_pack_iso(&iso[i], &urb->iso_frame_desc[i], 1); in usbip_alloc_iso_desc_pdu()
650 usbip_iso_packet_correct_endian(&iso[i], 1); in usbip_alloc_iso_desc_pdu()
655 return iso; in usbip_alloc_iso_desc_pdu()
663 struct usbip_iso_packet_descriptor *iso; in usbip_recv_iso() local
665 int size = np * sizeof(*iso); in usbip_recv_iso()
673 /* my Bluetooth dongle gets ISO URBs which are np = 0 */ in usbip_recv_iso()
695 iso = (struct usbip_iso_packet_descriptor *) buff; in usbip_recv_iso()
697 usbip_iso_packet_correct_endian(&iso[i], 0); in usbip_recv_iso()
698 usbip_pack_iso(&iso[i], &urb->iso_frame_desc[i], 0); in usbip_recv_iso()
706 "total length of iso packets %d not equal to actual length of buffer %d\n", in usbip_recv_iso()
725 * buffer and iso packets need to be stored and be in propeper endian in urb