Lines Matching refs:ump
60 struct snd_ump_endpoint *ump; /* assigned UMP EP */ member
83 struct snd_ump_endpoint *ump; /* assigned UMP EP object */ member
142 count = snd_ump_transmit(ep->ump, urb->transfer_buffer, in prepare_output_urb()
204 snd_ump_receive(ep->ump, (u32 *)urb->transfer_buffer, len); in input_urb_complete()
336 ump_to_endpoint(struct snd_ump_endpoint *ump, int dir) in ump_to_endpoint() argument
338 struct snd_usb_midi2_ump *rmidi = ump->private_data; in ump_to_endpoint()
344 static int snd_usb_midi_v2_open(struct snd_ump_endpoint *ump, int dir) in snd_usb_midi_v2_open() argument
346 struct snd_usb_midi2_endpoint *ep = ump_to_endpoint(ump, dir); in snd_usb_midi_v2_open()
364 static void snd_usb_midi_v2_close(struct snd_ump_endpoint *ump, int dir) in snd_usb_midi_v2_close() argument
366 struct snd_usb_midi2_endpoint *ep = ump_to_endpoint(ump, dir); in snd_usb_midi_v2_close()
376 static void snd_usb_midi_v2_trigger(struct snd_ump_endpoint *ump, int dir, in snd_usb_midi_v2_trigger() argument
379 struct snd_usb_midi2_endpoint *ep = ump_to_endpoint(ump, dir); in snd_usb_midi_v2_trigger()
387 static void snd_usb_midi_v2_drain(struct snd_ump_endpoint *ump, int dir) in snd_usb_midi_v2_drain() argument
389 struct snd_usb_midi2_endpoint *ep = ump_to_endpoint(ump, dir); in snd_usb_midi_v2_drain()
591 struct snd_ump_endpoint *ump = rmidi->ump; in parse_group_terminal_block() local
610 if (ump->info.protocol && ump->info.protocol != protocol) in parse_group_terminal_block()
613 rmidi->usb_block_id, ump->info.protocol, in parse_group_terminal_block()
615 ump->info.protocol = protocol; in parse_group_terminal_block()
627 if (ump->info.protocol_caps && ump->info.protocol_caps != protocol_caps) in parse_group_terminal_block()
630 rmidi->usb_block_id, ump->info.protocol_caps, in parse_group_terminal_block()
632 ump->info.protocol_caps = protocol_caps; in parse_group_terminal_block()
709 struct snd_ump_endpoint *ump; in create_midi2_ump() local
727 output, input, &ump); in create_midi2_ump()
734 rmidi->ump = ump; in create_midi2_ump()
737 ump->private_data = rmidi; in create_midi2_ump()
738 ump->ops = &snd_usb_midi_v2_ump_ops; in create_midi2_ump()
745 ep_in->ump = ump; in create_midi2_ump()
750 ep_out->ump = ump; in create_midi2_ump()
807 if (!rmidi->ump || in parse_ump_endpoints()
808 !(rmidi->ump->core.info_flags & SNDRV_RAWMIDI_INFO_DUPLEX)) in parse_ump_endpoints()
810 err = snd_ump_parse_endpoint(rmidi->ump); in parse_ump_endpoints()
859 err = snd_ump_block_new(rmidi->ump, blk - 1, type, in create_gtb_block()
889 if (!rmidi->ump) in create_blocks_from_gtb()
892 if (rmidi->ump_parsed || rmidi->ump->info.num_blocks) in create_blocks_from_gtb()
895 rmidi->ump->info.flags |= SNDRV_UMP_EP_INFO_STATIC_BLOCKS; in create_blocks_from_gtb()
920 err = snd_ump_attach_legacy_rawmidi(rmidi->ump, in attach_legacy_rawmidi()
1026 static void fill_ump_ep_name(struct snd_ump_endpoint *ump, in fill_ump_ep_name() argument
1031 usb_string(dev, id, ump->info.name, sizeof(ump->info.name)); in fill_ump_ep_name()
1034 len = strlen(ump->info.name); in fill_ump_ep_name()
1035 if (len > 5 && !strcmp(ump->info.name + len - 5, " MIDI")) in fill_ump_ep_name()
1036 ump->info.name[len - 5] = 0; in fill_ump_ep_name()
1044 struct snd_ump_endpoint *ump; in set_fallback_rawmidi_names() local
1047 ump = rmidi->ump; in set_fallback_rawmidi_names()
1049 if (!*ump->info.name && umidi->hostif->desc.iInterface) in set_fallback_rawmidi_names()
1050 fill_ump_ep_name(ump, dev, umidi->hostif->desc.iInterface); in set_fallback_rawmidi_names()
1051 else if (!*ump->info.name && dev->descriptor.iProduct) in set_fallback_rawmidi_names()
1052 fill_ump_ep_name(ump, dev, dev->descriptor.iProduct); in set_fallback_rawmidi_names()
1054 if (!*ump->info.name) in set_fallback_rawmidi_names()
1055 sprintf(ump->info.name, "USB MIDI %d", rmidi->index); in set_fallback_rawmidi_names()
1057 if (!*ump->core.name) in set_fallback_rawmidi_names()
1058 strscpy(ump->core.name, ump->info.name, in set_fallback_rawmidi_names()
1059 sizeof(ump->core.name)); in set_fallback_rawmidi_names()
1061 if (!*ump->info.product_id && dev->descriptor.iSerialNumber) in set_fallback_rawmidi_names()
1063 ump->info.product_id, in set_fallback_rawmidi_names()
1064 sizeof(ump->info.product_id)); in set_fallback_rawmidi_names()