us122l 124 sound/usb/usx2y/us122l.c struct us122l *us122l = area->vm_private_data; us122l 125 sound/usb/usx2y/us122l.c atomic_inc(&us122l->mmap_count); us122l 126 sound/usb/usx2y/us122l.c snd_printdd(KERN_DEBUG "%i\n", atomic_read(&us122l->mmap_count)); us122l 134 sound/usb/usx2y/us122l.c struct us122l *us122l = vmf->vma->vm_private_data; us122l 137 sound/usb/usx2y/us122l.c mutex_lock(&us122l->mutex); us122l 138 sound/usb/usx2y/us122l.c s = us122l->sk.s; us122l 150 sound/usb/usx2y/us122l.c vaddr = us122l->sk.write_page + offset; us122l 155 sound/usb/usx2y/us122l.c mutex_unlock(&us122l->mutex); us122l 161 sound/usb/usx2y/us122l.c mutex_unlock(&us122l->mutex); us122l 167 sound/usb/usx2y/us122l.c struct us122l *us122l = area->vm_private_data; us122l 168 sound/usb/usx2y/us122l.c atomic_dec(&us122l->mmap_count); us122l 169 sound/usb/usx2y/us122l.c snd_printdd(KERN_DEBUG "%i\n", atomic_read(&us122l->mmap_count)); us122l 181 sound/usb/usx2y/us122l.c struct us122l *us122l = hw->private_data; us122l 187 sound/usb/usx2y/us122l.c if (!us122l->first) us122l 188 sound/usb/usx2y/us122l.c us122l->first = file; us122l 190 sound/usb/usx2y/us122l.c if (us122l->is_us144) { us122l 191 sound/usb/usx2y/us122l.c iface = usb_ifnum_to_if(us122l->dev, 0); us122l 194 sound/usb/usx2y/us122l.c iface = usb_ifnum_to_if(us122l->dev, 1); us122l 201 sound/usb/usx2y/us122l.c struct us122l *us122l = hw->private_data; us122l 205 sound/usb/usx2y/us122l.c if (us122l->is_us144) { us122l 206 sound/usb/usx2y/us122l.c iface = usb_ifnum_to_if(us122l->dev, 0); us122l 209 sound/usb/usx2y/us122l.c iface = usb_ifnum_to_if(us122l->dev, 1); us122l 211 sound/usb/usx2y/us122l.c if (us122l->first == file) us122l 212 sound/usb/usx2y/us122l.c us122l->first = NULL; us122l 213 sound/usb/usx2y/us122l.c mutex_lock(&us122l->mutex); us122l 214 sound/usb/usx2y/us122l.c if (us122l->master == file) us122l 215 sound/usb/usx2y/us122l.c us122l->master = us122l->slave; us122l 217 sound/usb/usx2y/us122l.c us122l->slave = NULL; us122l 218 sound/usb/usx2y/us122l.c mutex_unlock(&us122l->mutex); us122l 226 sound/usb/usx2y/us122l.c struct us122l *us122l = hw->private_data; us122l 233 sound/usb/usx2y/us122l.c mutex_lock(&us122l->mutex); us122l 234 sound/usb/usx2y/us122l.c s = us122l->sk.s; us122l 254 sound/usb/usx2y/us122l.c area->vm_private_data = us122l; us122l 255 sound/usb/usx2y/us122l.c atomic_inc(&us122l->mmap_count); us122l 257 sound/usb/usx2y/us122l.c mutex_unlock(&us122l->mutex); us122l 264 sound/usb/usx2y/us122l.c struct us122l *us122l = hw->private_data; us122l 268 sound/usb/usx2y/us122l.c poll_wait(file, &us122l->sk.sleep, wait); us122l 271 sound/usb/usx2y/us122l.c if (mutex_trylock(&us122l->mutex)) { us122l 272 sound/usb/usx2y/us122l.c struct usb_stream *s = us122l->sk.s; us122l 274 sound/usb/usx2y/us122l.c if (us122l->first == file) us122l 277 sound/usb/usx2y/us122l.c polled = &us122l->second_periods_polled; us122l 284 sound/usb/usx2y/us122l.c mutex_unlock(&us122l->mutex); us122l 289 sound/usb/usx2y/us122l.c static void us122l_stop(struct us122l *us122l) us122l 292 sound/usb/usx2y/us122l.c list_for_each(p, &us122l->midi_list) us122l 295 sound/usb/usx2y/us122l.c usb_stream_stop(&us122l->sk); us122l 296 sound/usb/usx2y/us122l.c usb_stream_free(&us122l->sk); us122l 317 sound/usb/usx2y/us122l.c static bool us122l_start(struct us122l *us122l, us122l 325 sound/usb/usx2y/us122l.c if (us122l->dev->speed == USB_SPEED_HIGH) { us122l 342 sound/usb/usx2y/us122l.c if (!usb_stream_new(&us122l->sk, us122l->dev, 1, 2, us122l 346 sound/usb/usx2y/us122l.c err = us122l_set_sample_rate(us122l->dev, rate); us122l 348 sound/usb/usx2y/us122l.c us122l_stop(us122l); us122l 352 sound/usb/usx2y/us122l.c err = usb_stream_start(&us122l->sk); us122l 354 sound/usb/usx2y/us122l.c us122l_stop(us122l); us122l 358 sound/usb/usx2y/us122l.c list_for_each(p, &us122l->midi_list) us122l 369 sound/usb/usx2y/us122l.c struct us122l *us122l = hw->private_data; us122l 384 sound/usb/usx2y/us122l.c high_speed = us122l->dev->speed == USB_SPEED_HIGH; us122l 410 sound/usb/usx2y/us122l.c mutex_lock(&us122l->mutex); us122l 411 sound/usb/usx2y/us122l.c s = us122l->sk.s; us122l 412 sound/usb/usx2y/us122l.c if (!us122l->master) us122l 413 sound/usb/usx2y/us122l.c us122l->master = file; us122l 414 sound/usb/usx2y/us122l.c else if (us122l->master != file) { us122l 419 sound/usb/usx2y/us122l.c us122l->slave = file; us122l 423 sound/usb/usx2y/us122l.c us122l_stop(us122l); us122l 424 sound/usb/usx2y/us122l.c if (!us122l_start(us122l, cfg.sample_rate, cfg.period_frames)) us122l 430 sound/usb/usx2y/us122l.c mutex_unlock(&us122l->mutex); us122l 431 sound/usb/usx2y/us122l.c wake_up_all(&us122l->sk.sleep); us122l 464 sound/usb/usx2y/us122l.c struct us122l *us122l = US122L(card); us122l 466 sound/usb/usx2y/us122l.c if (us122l->is_us144) { us122l 467 sound/usb/usx2y/us122l.c err = usb_set_interface(us122l->dev, 0, 1); us122l 473 sound/usb/usx2y/us122l.c err = usb_set_interface(us122l->dev, 1, 1); us122l 479 sound/usb/usx2y/us122l.c pt_info_set(us122l->dev, 0x11); us122l 480 sound/usb/usx2y/us122l.c pt_info_set(us122l->dev, 0x10); us122l 482 sound/usb/usx2y/us122l.c if (!us122l_start(us122l, 44100, 256)) us122l 485 sound/usb/usx2y/us122l.c if (us122l->is_us144) us122l 497 sound/usb/usx2y/us122l.c list_for_each(p, &us122l->midi_list) us122l 505 sound/usb/usx2y/us122l.c us122l_stop(us122l); us122l 511 sound/usb/usx2y/us122l.c struct us122l *us122l = US122L(card); us122l 512 sound/usb/usx2y/us122l.c int index = us122l->card_index; us122l 532 sound/usb/usx2y/us122l.c sizeof(struct us122l), &card); us122l 616 sound/usb/usx2y/us122l.c struct us122l *us122l; us122l 625 sound/usb/usx2y/us122l.c us122l = US122L(card); us122l 626 sound/usb/usx2y/us122l.c mutex_lock(&us122l->mutex); us122l 627 sound/usb/usx2y/us122l.c us122l_stop(us122l); us122l 628 sound/usb/usx2y/us122l.c mutex_unlock(&us122l->mutex); us122l 631 sound/usb/usx2y/us122l.c list_for_each(p, &us122l->midi_list) { us122l 635 sound/usb/usx2y/us122l.c usb_put_intf(usb_ifnum_to_if(us122l->dev, 0)); us122l 636 sound/usb/usx2y/us122l.c usb_put_intf(usb_ifnum_to_if(us122l->dev, 1)); us122l 637 sound/usb/usx2y/us122l.c usb_put_dev(us122l->dev); us122l 639 sound/usb/usx2y/us122l.c while (atomic_read(&us122l->mmap_count)) us122l 648 sound/usb/usx2y/us122l.c struct us122l *us122l; us122l 656 sound/usb/usx2y/us122l.c us122l = US122L(card); us122l 657 sound/usb/usx2y/us122l.c if (!us122l) us122l 660 sound/usb/usx2y/us122l.c list_for_each(p, &us122l->midi_list) us122l 663 sound/usb/usx2y/us122l.c mutex_lock(&us122l->mutex); us122l 664 sound/usb/usx2y/us122l.c usb_stream_stop(&us122l->sk); us122l 665 sound/usb/usx2y/us122l.c mutex_unlock(&us122l->mutex); us122l 673 sound/usb/usx2y/us122l.c struct us122l *us122l; us122l 681 sound/usb/usx2y/us122l.c us122l = US122L(card); us122l 682 sound/usb/usx2y/us122l.c if (!us122l) us122l 685 sound/usb/usx2y/us122l.c mutex_lock(&us122l->mutex); us122l 687 sound/usb/usx2y/us122l.c if (us122l->is_us144) { us122l 688 sound/usb/usx2y/us122l.c err = usb_set_interface(us122l->dev, 0, 1); us122l 694 sound/usb/usx2y/us122l.c err = usb_set_interface(us122l->dev, 1, 1); us122l 700 sound/usb/usx2y/us122l.c pt_info_set(us122l->dev, 0x11); us122l 701 sound/usb/usx2y/us122l.c pt_info_set(us122l->dev, 0x10); us122l 703 sound/usb/usx2y/us122l.c err = us122l_set_sample_rate(us122l->dev, us122l 704 sound/usb/usx2y/us122l.c us122l->sk.s->cfg.sample_rate); us122l 709 sound/usb/usx2y/us122l.c err = usb_stream_start(&us122l->sk); us122l 713 sound/usb/usx2y/us122l.c list_for_each(p, &us122l->midi_list) us122l 716 sound/usb/usx2y/us122l.c mutex_unlock(&us122l->mutex); us122l 25 sound/usb/usx2y/us122l.h #define US122L(c) ((struct us122l *)(c)->private_data)