Lines Matching refs:desc
440 hostep->desc.bEndpointAddress, in create_midi2_endpoint()
450 endpoint = hostep->desc.bEndpointAddress; in create_midi2_endpoint()
456 if (usb_endpoint_xfer_int(&hostep->desc)) in create_midi2_endpoint()
457 ep->interval = hostep->desc.bInterval; in create_midi2_endpoint()
532 USB_DT_CS_GR_TRM_BLOCK << 8 | hostif->desc.bAlternateSetting, in get_group_terminal_block_descs()
533 hostif->desc.bInterfaceNumber, in get_group_terminal_block_descs()
540 hostif->desc.bInterfaceNumber, hostif->desc.bAlternateSetting); in get_group_terminal_block_descs()
551 USB_DT_CS_GR_TRM_BLOCK << 8 | hostif->desc.bAlternateSetting, in get_group_terminal_block_descs()
552 hostif->desc.bInterfaceNumber, data, size); in get_group_terminal_block_descs()
569 const struct usb_ms20_gr_trm_block_descriptor *desc; in find_group_terminal_block() local
574 desc = (const struct usb_ms20_gr_trm_block_descriptor *)data; in find_group_terminal_block()
575 if (desc->bLength >= sizeof(*desc) && in find_group_terminal_block()
576 desc->bDescriptorType == USB_DT_CS_GR_TRM_BLOCK && in find_group_terminal_block()
577 desc->bDescriptorSubtype == USB_MS_GR_TRM_BLOCK && in find_group_terminal_block()
578 desc->bGrpTrmBlkID == id) in find_group_terminal_block()
579 return desc; in find_group_terminal_block()
589 const struct usb_ms20_gr_trm_block_descriptor *desc) in parse_group_terminal_block() argument
595 switch (desc->bMIDIProtocol) { in parse_group_terminal_block()
618 switch (desc->bMIDIProtocol) { in parse_group_terminal_block()
641 const struct usb_ms20_gr_trm_block_descriptor *desc; in parse_group_terminal_blocks() local
651 desc = find_group_terminal_block(umidi, rmidi->usb_block_id); in parse_group_terminal_blocks()
652 if (!desc) in parse_group_terminal_blocks()
654 err = parse_group_terminal_block(rmidi, desc); in parse_group_terminal_blocks()
670 for (i = 0; i < hostif->desc.bNumEndpoints; i++) { in parse_midi_2_0_endpoints()
672 if (!usb_endpoint_xfer_bulk(&hostep->desc) && in parse_midi_2_0_endpoints()
673 !usb_endpoint_xfer_int(&hostep->desc)) in parse_midi_2_0_endpoints()
826 const struct usb_ms20_gr_trm_block_descriptor *desc; in create_gtb_block() local
830 desc = find_group_terminal_block(umidi, blk); in create_gtb_block()
831 if (!desc) in create_gtb_block()
836 blk, desc->bGrpTrmBlkType, desc->nGroupTrm, in create_gtb_block()
837 desc->nNumGroupTrm, desc->bMIDIProtocol, in create_gtb_block()
838 __le16_to_cpu(desc->wMaxInputBandwidth), in create_gtb_block()
839 __le16_to_cpu(desc->wMaxOutputBandwidth)); in create_gtb_block()
842 switch (desc->bGrpTrmBlkType) { in create_gtb_block()
854 desc->bGrpTrmBlkType); in create_gtb_block()
860 desc->nGroupTrm, desc->nNumGroupTrm, in create_gtb_block()
867 if (desc->iBlockItem) in create_gtb_block()
868 usb_string(rmidi->dev, desc->iBlockItem, in create_gtb_block()
871 if (__le16_to_cpu(desc->wMaxInputBandwidth) == 1 || in create_gtb_block()
872 __le16_to_cpu(desc->wMaxOutputBandwidth) == 1) in create_gtb_block()
1020 umidi->hostif->desc.bInterfaceNumber, in set_altset()
1021 umidi->hostif->desc.bAlternateSetting); in set_altset()
1023 umidi->hostif->desc.bInterfaceNumber, in set_altset()
1024 umidi->hostif->desc.bAlternateSetting); in set_altset()
1051 if (!*ump->info.name && umidi->hostif->desc.iInterface) in set_fallback_rawmidi_names()
1052 fill_ump_ep_name(ump, dev, umidi->hostif->desc.iInterface); in set_fallback_rawmidi_names()
1081 iface->altsetting[0].desc.bInterfaceNumber); in snd_usb_midi_v2_create()
1098 if (!hostif->desc.bNumEndpoints) { in snd_usb_midi_v2_create()
1104 hostif->desc.bInterfaceNumber, in snd_usb_midi_v2_create()
1105 hostif->desc.bAlternateSetting); in snd_usb_midi_v2_create()