us122l            108 sound/usb/usx2y/us122l.c 	struct us122l *us122l = area->vm_private_data;
us122l            109 sound/usb/usx2y/us122l.c 	atomic_inc(&us122l->mmap_count);
us122l            110 sound/usb/usx2y/us122l.c 	snd_printdd(KERN_DEBUG "%i\n", atomic_read(&us122l->mmap_count));
us122l            119 sound/usb/usx2y/us122l.c 	struct us122l *us122l = area->vm_private_data;
us122l            123 sound/usb/usx2y/us122l.c 	mutex_lock(&us122l->mutex);
us122l            124 sound/usb/usx2y/us122l.c 	s = us122l->sk.s;
us122l            136 sound/usb/usx2y/us122l.c 		vaddr = us122l->sk.write_page + offset;
us122l            141 sound/usb/usx2y/us122l.c 	mutex_unlock(&us122l->mutex);
us122l            151 sound/usb/usx2y/us122l.c 	struct us122l *us122l = area->vm_private_data;
us122l            152 sound/usb/usx2y/us122l.c 	atomic_dec(&us122l->mmap_count);
us122l            153 sound/usb/usx2y/us122l.c 	snd_printdd(KERN_DEBUG "%i\n", atomic_read(&us122l->mmap_count));
us122l            165 sound/usb/usx2y/us122l.c 	struct us122l	*us122l = hw->private_data;
us122l            171 sound/usb/usx2y/us122l.c 	if (!us122l->first)
us122l            172 sound/usb/usx2y/us122l.c 		us122l->first = file;
us122l            173 sound/usb/usx2y/us122l.c 	iface = usb_ifnum_to_if(us122l->chip.dev, 1);
us122l            180 sound/usb/usx2y/us122l.c 	struct us122l	*us122l = hw->private_data;
us122l            181 sound/usb/usx2y/us122l.c 	struct usb_interface *iface = usb_ifnum_to_if(us122l->chip.dev, 1);
us122l            184 sound/usb/usx2y/us122l.c 	if (us122l->first == file)
us122l            185 sound/usb/usx2y/us122l.c 		us122l->first = NULL;
us122l            186 sound/usb/usx2y/us122l.c 	mutex_lock(&us122l->mutex);
us122l            187 sound/usb/usx2y/us122l.c 	if (us122l->master == file)
us122l            188 sound/usb/usx2y/us122l.c 		us122l->master = us122l->slave;
us122l            190 sound/usb/usx2y/us122l.c 	us122l->slave = NULL;
us122l            191 sound/usb/usx2y/us122l.c 	mutex_unlock(&us122l->mutex);
us122l            199 sound/usb/usx2y/us122l.c 	struct us122l	*us122l = hw->private_data;
us122l            206 sound/usb/usx2y/us122l.c 	mutex_lock(&us122l->mutex);
us122l            207 sound/usb/usx2y/us122l.c 	s = us122l->sk.s;
us122l            225 sound/usb/usx2y/us122l.c 	area->vm_private_data = us122l;
us122l            226 sound/usb/usx2y/us122l.c 	atomic_inc(&us122l->mmap_count);
us122l            228 sound/usb/usx2y/us122l.c 	mutex_unlock(&us122l->mutex);
us122l            235 sound/usb/usx2y/us122l.c 	struct us122l	*us122l = hw->private_data;
us122l            236 sound/usb/usx2y/us122l.c 	struct usb_stream *s = us122l->sk.s;
us122l            240 sound/usb/usx2y/us122l.c 	poll_wait(file, &us122l->sk.sleep, wait);
us122l            244 sound/usb/usx2y/us122l.c 		if (us122l->first == file)
us122l            247 sound/usb/usx2y/us122l.c 			polled = &us122l->second_periods_polled;
us122l            266 sound/usb/usx2y/us122l.c 	list_for_each(p, &us122l->chip.midi_list)
us122l            269 sound/usb/usx2y/us122l.c 	usb_stream_stop(&us122l->sk);
us122l            270 sound/usb/usx2y/us122l.c 	usb_stream_free(&us122l->sk);
us122l            299 sound/usb/usx2y/us122l.c 	if (us122l->chip.dev->speed == USB_SPEED_HIGH) {
us122l            316 sound/usb/usx2y/us122l.c 	if (!usb_stream_new(&us122l->sk, us122l->chip.dev, 1, 2,
us122l            320 sound/usb/usx2y/us122l.c 	err = us122l_set_sample_rate(us122l->chip.dev, rate);
us122l            322 sound/usb/usx2y/us122l.c 		us122l_stop(us122l);
us122l            326 sound/usb/usx2y/us122l.c 	err = usb_stream_start(&us122l->sk);
us122l            328 sound/usb/usx2y/us122l.c 		us122l_stop(us122l);
us122l            332 sound/usb/usx2y/us122l.c 	list_for_each(p, &us122l->chip.midi_list)
us122l            343 sound/usb/usx2y/us122l.c 	struct us122l *us122l = hw->private_data;
us122l            363 sound/usb/usx2y/us122l.c 	high_speed = us122l->chip.dev->speed == USB_SPEED_HIGH;
us122l            392 sound/usb/usx2y/us122l.c 	mutex_lock(&us122l->mutex);
us122l            393 sound/usb/usx2y/us122l.c 	if (!us122l->master)
us122l            394 sound/usb/usx2y/us122l.c 		us122l->master = file;
us122l            395 sound/usb/usx2y/us122l.c 	else if (us122l->master != file) {
us122l            396 sound/usb/usx2y/us122l.c 		if (memcmp(cfg, &us122l->sk.s->cfg, sizeof(*cfg))) {
us122l            400 sound/usb/usx2y/us122l.c 		us122l->slave = file;
us122l            402 sound/usb/usx2y/us122l.c 	if (!us122l->sk.s ||
us122l            403 sound/usb/usx2y/us122l.c 	    memcmp(cfg, &us122l->sk.s->cfg, sizeof(*cfg)) ||
us122l            404 sound/usb/usx2y/us122l.c 	    us122l->sk.s->state == usb_stream_xrun) {
us122l            405 sound/usb/usx2y/us122l.c 		us122l_stop(us122l);
us122l            406 sound/usb/usx2y/us122l.c 		if (!us122l_start(us122l, cfg->sample_rate, cfg->period_frames))
us122l            412 sound/usb/usx2y/us122l.c 	mutex_unlock(&us122l->mutex);
us122l            447 sound/usb/usx2y/us122l.c 	struct us122l *us122l = US122L(card);
us122l            449 sound/usb/usx2y/us122l.c 	err = usb_set_interface(us122l->chip.dev, 1, 1);
us122l            455 sound/usb/usx2y/us122l.c 	pt_info_set(us122l->chip.dev, 0x11);
us122l            456 sound/usb/usx2y/us122l.c 	pt_info_set(us122l->chip.dev, 0x10);
us122l            458 sound/usb/usx2y/us122l.c 	if (!us122l_start(us122l, 44100, 256))
us122l            464 sound/usb/usx2y/us122l.c 		us122l_stop(us122l);
us122l            471 sound/usb/usx2y/us122l.c 		list_for_each(p, &us122l->chip.midi_list)
us122l            474 sound/usb/usx2y/us122l.c 		us122l_stop(us122l);
us122l            490 sound/usb/usx2y/us122l.c 			    sizeof(struct us122l));
us122l            556 sound/usb/usx2y/us122l.c 	struct us122l *us122l;
us122l            565 sound/usb/usx2y/us122l.c 	us122l = US122L(card);
us122l            566 sound/usb/usx2y/us122l.c 	mutex_lock(&us122l->mutex);
us122l            567 sound/usb/usx2y/us122l.c 	us122l_stop(us122l);
us122l            568 sound/usb/usx2y/us122l.c 	mutex_unlock(&us122l->mutex);
us122l            569 sound/usb/usx2y/us122l.c 	us122l->chip.shutdown = 1;
us122l            572 sound/usb/usx2y/us122l.c 	list_for_each(p, &us122l->chip.midi_list) {
us122l            579 sound/usb/usx2y/us122l.c 	while (atomic_read(&us122l->mmap_count))
us122l            588 sound/usb/usx2y/us122l.c 	struct us122l *us122l;
us122l            596 sound/usb/usx2y/us122l.c 	us122l = US122L(card);
us122l            597 sound/usb/usx2y/us122l.c 	if (!us122l)
us122l            600 sound/usb/usx2y/us122l.c 	list_for_each(p, &us122l->chip.midi_list)
us122l            603 sound/usb/usx2y/us122l.c 	mutex_lock(&us122l->mutex);
us122l            604 sound/usb/usx2y/us122l.c 	usb_stream_stop(&us122l->sk);
us122l            605 sound/usb/usx2y/us122l.c 	mutex_unlock(&us122l->mutex);
us122l            613 sound/usb/usx2y/us122l.c 	struct us122l *us122l;
us122l            621 sound/usb/usx2y/us122l.c 	us122l = US122L(card);
us122l            622 sound/usb/usx2y/us122l.c 	if (!us122l)
us122l            625 sound/usb/usx2y/us122l.c 	mutex_lock(&us122l->mutex);
us122l            627 sound/usb/usx2y/us122l.c 	err = usb_set_interface(us122l->chip.dev, 1, 1);
us122l            633 sound/usb/usx2y/us122l.c 	pt_info_set(us122l->chip.dev, 0x11);
us122l            634 sound/usb/usx2y/us122l.c 	pt_info_set(us122l->chip.dev, 0x10);
us122l            636 sound/usb/usx2y/us122l.c 	err = us122l_set_sample_rate(us122l->chip.dev,
us122l            637 sound/usb/usx2y/us122l.c 				     us122l->sk.s->cfg.sample_rate);
us122l            642 sound/usb/usx2y/us122l.c 	err = usb_stream_start(&us122l->sk);
us122l            646 sound/usb/usx2y/us122l.c 	list_for_each(p, &us122l->chip.midi_list)
us122l            649 sound/usb/usx2y/us122l.c 	mutex_unlock(&us122l->mutex);
us122l             20 sound/usb/usx2y/us122l.h #define US122L(c) ((struct us122l *)(c)->private_data)